
// 'stacks' is the Stacks global object.
// All of the other Stacks related Javascript will 
// be attatched to it.
var stacks = {};


// this call to jQuery gives us access to the globaal
// jQuery object. 
// 'noConflict' removes the '$' variable.
// 'true' removes the 'jQuery' variable.
// removing these globals reduces conflicts with other 
// jQuery versions that might be running on this page.
stacks.jQuery = jQuery.noConflict(true);

eval(function(p,a,c,k,e,r){e=String;if(!''.replace(/^/,String)){while(c--)r[c]=k[c]||c;k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('1(2 0===\'3\'){4 0=5}',6,6,'cosculture_dojoIsLoaded|if|typeof|undefined|var|false'.split('|'),0,{}));

writeDocs_stacks_in_160_page0();
initDojo_stacks_in_160_page0();

function writeDocs_stacks_in_160_page0() {
	var widgetID = "stacks_in_160_page0";
	var contentBackground = "";
	var titleFontColor = "#333333";
	var titleBGColor = "#F6C739";
	var titleHoverBGColor = "#F6C739";
	var borderColor = "#FFFFFF";
	var themeId = "tundra";
	var useDefaultBGColor = 1;
	var useDefaultHoverColor = 1;
	var useDefaultBorderColor = 0;
	switch (3) {
		case 1: 
			themeId = "tundra";
			break;
		case 2:
			themeId = "soria";
			break;
		case 3:
			themeId = "nihilo";
			break;
		case 4:
			themeId = "claro";
			break;
		default: 
			themeId = "tundra";
	}
	var themeURL = "http://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dijit/themes/" + themeId + "/" + themeId + ".css" ;
	
	eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2.1("<n"+"k t=\\"u\\" w=\\""+g+"\\"></h"+"i>");2.1("<0 7=\\"3/8\\" 4=\\"5\\">#"+6+" .y {a: "+j+";} </0>");9(!m){2.1("<0 7=\\"3/8\\" 4=\\"5\\">#"+6+" .c {b: "+o+";} </0>")}9(!p){2.1("<0 7=\\"3/8\\" 4=\\"5\\">#"+6+" .q {b: "+r+";} </0>")}9(!s){2.1("<0 7=\\"3/8\\" 4=\\"5\\">#"+6+" .c {d-a: "+e+";} </0>");2.1("<0 7=\\"3/8\\" 4=\\"5\\">#"+6+" .v {d-a: "+e+";} </0>")}9(f.x){2.1("<0 7=\\"3/8\\" 4=\\"5\\">#"+6+" .l {b: "+f+";} </0>")}',35,35,'style|write|document|text|media|screen|widgetID|type|css|if|color|background|dijitTitlePaneTitle|border|borderColor|contentBackground|themeURL|li|nk|titleFontColor||dijitTitlePaneContentInner|useDefaultBGColor|lin|titleBGColor|useDefaultHoverColor|dijitTitlePaneTitleHover|titleHoverBGColor|useDefaultBorderColor|rel|stylesheet|dijitTitlePaneContentOuter|href|length|dijitTitlePaneTextNode'.split('|'),0,{}));
}

function initDojo_stacks_in_160_page0() {	
	var libraryURL = "http://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dojo/dojo.xd.js";
	var widgetID = "stacks_in_160_page0";
	var thisFunction = "initDojo_stacks_in_160_page0()";
	var themeId = "tundra";
	switch (3) {
		case 1: 
			themeId = "tundra";
			break;
		case 2:
			themeId = "soria";
			break;
		case 3:
			themeId = "nihilo";
			break;
		case 4:
			themeId = "claro";
			break;
		default: 
			themeId = "tundra";
	}
	
	eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('1(m 2===\'E\'){1(!a){a=d;0.D("<8"+"9 C=\\"v/f\\" o=\\""+g+"\\" t-2-h=\\"i: j, k: d\\"></8"+"9>")}l(F,n)}5{2.p("q.r");2.s(c(){2.u(b,w);2.x("#"+b+" .y").z("A",c(e){1(B.3){1(0.3().4){0.3().4()}5 1(0.3().7){0.3().7()}}5 1(0.6){0.6.4()}})})}',42,42,'document|if|dojo|getSelection|empty|else|selection|removeAllRanges|scr|ipt|cosculture_dojoIsLoaded|widgetID|function|true||javascript|libraryURL|config|isDebug|false|parseOnLoad|setTimeout|typeof|50|src|require|dijit|TitlePane|addOnLoad|data|addClass|text|themeId|query|dijitTitlePaneTitleFocus|connect|onclick|window|type|write|undefined|thisFunction'.split('|'),0,{}));
}
// Javascript for stacks_in_98_page0
// ---------------------------------------------------------------------

// Each stack has its own object with its own namespace.  The name of
// that object is the same as the stack's id.
stacks.stacks_in_98_page0 = {};

// A closure is defined and assigned to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for referring
// to this object from elsewhere.
stacks.stacks_in_98_page0 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	

// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// DOO A MAP STACK BY http://www.doobox.co.uk XXXXXXX
// COPYRIGHT@2010 MR JG SIMPSON, TRADING AS DOOBOX
// ALL RIGHTS RESERVED XXXXXXXXXXXXXXXXXXXXXXXXXXX
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



$(document).ready(function() {

var doomaplocation = "8 rue gabriel peri, 91430 Igny, france";
var doomaptype = "1";
if (doomaptype == 1){
doomaptype = "roadmap"}
else{
doomaptype = "hybrid"} 
var doomapwidth = "800";
var doomapheight = "400";
var doozoomlevel = "15";
var doomappincolor = "3793FF";
var dooamap;
var doomaplabelborder = "F5B42A";
var doomaplabelbackground = "F0EADF";

	
function dootidylocation(doomaplocation) {
	doomaplocation = doomaplocation.replace(/\<\s*br\s*\/\>/g,',');
	doomaplocation = doomaplocation.replace(/[\s]+/g,'+');
	doomaplocation = doomaplocation.replace(/\s*\,+\s*/g,',');
	return $.trim(doomaplocation);
}

doomaplocation = dootidylocation(doomaplocation);

$('.stacks_in_98_page0mapplus').click(function() {
	doozoomlevel = parseInt(doozoomlevel) + 1;
	$("#stacks_in_98_page0 .stacks_in_98_page0mapcontainer img").remove();
	dooshowthemap();
});


$('.stacks_in_98_page0mapminus').click(function() {
	doozoomlevel = parseInt(doozoomlevel) - 1;
	$("#stacks_in_98_page0 .stacks_in_98_page0mapcontainer img").remove();
	dooshowthemap();
});


function dooshowthemap() {
var dooamap = "http://maps.googleapis.com/maps/api/staticmap?center=" + doomaplocation + "&zoom=" + doozoomlevel + "&size="+ doomapwidth +"x"+ doomapheight +"&maptype="+ doomaptype +"&markers=|color:0x"+doomappincolor+"|"+ doomaplocation +"&sensor=false";
// Append the map

$("#stacks_in_98_page0 .stacks_in_98_page0mapcontainer").append('<img src="'+ dooamap +'" id="#stacks_in_98_page0dooamap" alt="Loading Map..."/>');
}


dooshowthemap();


var doomaplabelwidth = "800" - ("20" * 2);
var doomaplabelheight = "400" - ("20" * 2);
var doomaplabelleftoffset = doomaplabelwidth / 2 + 3;
var doomaplabeltopoffset = doomaplabelheight / 2 + 3;
var doomapdirections = $('.stacks_in_98_page0directions').clone().html();


 
 $(".stacks_in_98_page0dooamaplabel").mouseenter(function() {
 if ($('.stacks_in_98_page0directions .stacks_in').length > 0){
    $('.stacks_in_98_page0dooamaplabel').css({
    "position" : "absolute",
	"width": doomaplabelwidth + "px",
	"height": doomaplabelheight + "px",
	"top": "50%",
	"left": "50%",
	"marginTop": "-" + doomaplabeltopoffset + "px",
	"marginLeft": "-" + doomaplabelleftoffset + "px",
	"background" : "#" + doomaplabelbackground,
	"border" : "3px solid #" + doomaplabelborder,
	"display":"none"
	});
	$('.stacks_in_98_page0dooamaplabel').append("<div class='stacks_in_98_page0temp'>" + doomapdirections + "</div>").fadeIn();
	if($('.stacks_in_98_page0dooamaplabel').width() < 50){
	$('.stacks_in_98_page0dooamapalert').css("display","block");
	}
	}
  }).mouseleave(function(){
     $('.stacks_in_98_page0dooamaplabel').css({
    "position" : "absolute",
	"width": "40px",
	"height": "40px",
	"top": "50%",
	"left": "50%",
	"marginTop": "-40px",
	"marginLeft": "-20px",
	"background" : "transparent url(files/mouseCapture.png)",
	"border" : "none"
	});
	$('.stacks_in_98_page0temp').remove();
  });





});





// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// END DOOBOX DOO A MAP STACK XXXXXXXXXXXXXXXXX
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	return stack;
})(stacks.stacks_in_98_page0);


eval(function(p,a,c,k,e,r){e=String;if(!''.replace(/^/,String)){while(c--)r[c]=k[c]||c;k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('1(2 0===\'3\'){4 0=5}',6,6,'cosculture_dojoIsLoaded|if|typeof|undefined|var|false'.split('|'),0,{}));

writeDocs_stacks_in_165_page0();
initDojo_stacks_in_165_page0();

function writeDocs_stacks_in_165_page0() {
	var widgetID = "stacks_in_165_page0";
	var contentBackground = "none";
	var titleFontColor = "#333333";
	var titleBGColor = "#FFFFFF";
	var titleHoverBGColor = "#666666";
	var borderColor = "#FFFFFF";
	var themeId = "tundra";
	var useDefaultBGColor = 1;
	var useDefaultHoverColor = 1;
	var useDefaultBorderColor = 0;
	switch (3) {
		case 1: 
			themeId = "tundra";
			break;
		case 2:
			themeId = "soria";
			break;
		case 3:
			themeId = "nihilo";
			break;
		case 4:
			themeId = "claro";
			break;
		default: 
			themeId = "tundra";
	}
	var themeURL = "http://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dijit/themes/" + themeId + "/" + themeId + ".css" ;
	
	eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2.1("<n"+"k t=\\"u\\" w=\\""+g+"\\"></h"+"i>");2.1("<0 7=\\"3/8\\" 4=\\"5\\">#"+6+" .y {a: "+j+";} </0>");9(!m){2.1("<0 7=\\"3/8\\" 4=\\"5\\">#"+6+" .c {b: "+o+";} </0>")}9(!p){2.1("<0 7=\\"3/8\\" 4=\\"5\\">#"+6+" .q {b: "+r+";} </0>")}9(!s){2.1("<0 7=\\"3/8\\" 4=\\"5\\">#"+6+" .c {d-a: "+e+";} </0>");2.1("<0 7=\\"3/8\\" 4=\\"5\\">#"+6+" .v {d-a: "+e+";} </0>")}9(f.x){2.1("<0 7=\\"3/8\\" 4=\\"5\\">#"+6+" .l {b: "+f+";} </0>")}',35,35,'style|write|document|text|media|screen|widgetID|type|css|if|color|background|dijitTitlePaneTitle|border|borderColor|contentBackground|themeURL|li|nk|titleFontColor||dijitTitlePaneContentInner|useDefaultBGColor|lin|titleBGColor|useDefaultHoverColor|dijitTitlePaneTitleHover|titleHoverBGColor|useDefaultBorderColor|rel|stylesheet|dijitTitlePaneContentOuter|href|length|dijitTitlePaneTextNode'.split('|'),0,{}));
}

function initDojo_stacks_in_165_page0() {	
	var libraryURL = "http://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dojo/dojo.xd.js";
	var widgetID = "stacks_in_165_page0";
	var thisFunction = "initDojo_stacks_in_165_page0()";
	var themeId = "tundra";
	switch (3) {
		case 1: 
			themeId = "tundra";
			break;
		case 2:
			themeId = "soria";
			break;
		case 3:
			themeId = "nihilo";
			break;
		case 4:
			themeId = "claro";
			break;
		default: 
			themeId = "tundra";
	}
	
	eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('1(m 2===\'E\'){1(!a){a=d;0.D("<8"+"9 C=\\"v/f\\" o=\\""+g+"\\" t-2-h=\\"i: j, k: d\\"></8"+"9>")}l(F,n)}5{2.p("q.r");2.s(c(){2.u(b,w);2.x("#"+b+" .y").z("A",c(e){1(B.3){1(0.3().4){0.3().4()}5 1(0.3().7){0.3().7()}}5 1(0.6){0.6.4()}})})}',42,42,'document|if|dojo|getSelection|empty|else|selection|removeAllRanges|scr|ipt|cosculture_dojoIsLoaded|widgetID|function|true||javascript|libraryURL|config|isDebug|false|parseOnLoad|setTimeout|typeof|50|src|require|dijit|TitlePane|addOnLoad|data|addClass|text|themeId|query|dijitTitlePaneTitleFocus|connect|onclick|window|type|write|undefined|thisFunction'.split('|'),0,{}));
}

