<!--
function center_structure(){
lib_fonction = new lib_obj('fonction')
lib_content = new lib_obj('content')

//
if(lib_content) content_height = lib_content.getS('h')

if(document.all){
str = '<div id="footer" style="position:absolute;width:740px;visibility:hidden;z-index: 10"></div>'
document.body.insertAdjacentHTML('BeforeEnd',str)
}

else if(document.getElementById && !document.all){
tmp = document.createElement('div');
tmp.setAttribute('id','footer');
tmp.setAttribute('style','position:absolute;width:740px;visibility:hidden;z-index: 10');
document.body.appendChild(tmp);
}

lib_footer = new lib_obj('footer')
lib_footer.moveIt(0,content_height)
str_mention = "<table width=\'740\' border=\'0\' cellspacing=\'0\' cellpadding=\'0\'><tr><td background=/img/structure/ligne_vertical.gif width=\'1\'><img height=\'1\' src=\'/img/spacer.gif\' width=\'1\'></td><td align=\'center\' class=\'v9808080\'>&copy; Mairie du Touquet 2008. Tous droits r&eacute;serv&eacute;s &#150; <a href=\'javascript:NewWindow(\'/webspe/fr/outils/mentions_legales.html\',\'mentions\',\'420\',\'300\',\'yes\')\' class=\'lv9808080\'>infos &eacute;diteur &amp; mentions l&eacute;gales</a></td><td background=/img/structure/ligne_vertical.gif width=\'1\'><img height=\'1\' src=\'/img/spacer.gif\' width=\'1\'></td></tr></table>";

str_mention = "<table width=\'740\' border=\'0\' cellspacing=\'0\' cellpadding=\'0\'><tr><td background=/img/structure/ligne_vertical.gif width=\'1\'><img height=\'1\' src=\'/img/spacer.gif\' width=\'1\'></td><td align=\'center\' class=\'v9808080\'>&copy; Mairie du Touquet 2008. Tous droits r&eacute;serv&eacute;s &#150; <a href='javascript:mention()' class=\'lv9808080\'>infos &eacute;diteur &amp; mentions l&eacute;gales</a></td><td background=/img/structure/ligne_vertical.gif width=\'1\'><img height=\'1\' src=\'/img/spacer.gif\' width=\'1\'></td></tr></table>";
lib_footer.writeIt(str_mention)
lib_footer.showIt()

//

winSize = lib_doc_size(1);
checkSize(); posObj();
lib_fonction.showIt(); lib_content.showIt()
}

function mention()
{
NewWindow('/webspe/fr/outils/mentions_legales.html','mentions','760','400','yes');
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function flevDivPositionValue(sDiv, sProperty) { // v2.1, Marja Ribbers-de Vroed, FlevOOware
	this.opera = (window.opera); // Opera 5+
	this.ns4 = (document.layers); // Netscape 4.x
	this.ns6 = (document.getElementById && !document.all && !this.opera); // Netscape 6+
	this.ie = (document.all);  // Internet Explorer 4+
	var sValue = ""; docObj = eval("MM_findObj('" + sDiv + "')"); if (docObj == null) {return 0;}
	if ((sProperty == "left") || (sProperty == "top")) {
		if (!this.ns4) {docObj = docObj.style;} 
		sValue = eval("docObj." + sProperty);
		if ((this.ie) && (sValue == "")) { // IE (on PC) bug with nested layers
			if (sProperty == "top") { sValue = eval(sDiv + ".offsetTop"); } 
			else { sValue = eval(sDiv + ".offsetLeft"); } 
		};
	}
	else {
		if (this.opera) {
			docObj = docObj.style;
			if (sProperty == "height") { sValue = docObj.pixelHeight; } 
			else if (sProperty == "width") { sValue = docObj.pixelWidth; } 
		}
		else if (this.ns4) {sValue = eval("docObj.clip." + sProperty);} 
		else if (this.ns6) {sValue = document.defaultView.getComputedStyle(docObj, "").getPropertyValue(sProperty); } 
		else if (this.ie) { 
			if (sProperty == "width") { sValue = eval(sDiv + ".offsetWidth"); } 
			else if (sProperty == "height") { sValue = eval(sDiv + ".offsetHeight"); } 
		}
	}
	sValue = (sValue == "") ? 0 : sValue; 
	if (isNaN(sValue)) { if (sValue.indexOf('px') > 0) { sValue = sValue.substring(0,sValue.indexOf('px')); } } 
	return parseInt(sValue); 
}

function flevPersistentLayer(){
	if (flevPersistentLayer.arguments.length < 7) {return;}
	// gather arguments
	var sDivID = arguments[0]; if (sDivID == "") {return;}
	var	docObj = eval("MM_findObj('" + sDivID + "')"); if (docObj == null) {return;}
	if (!document.layers) {docObj = docObj.style;} // not NS4.x 
	if (docObj.tmpTimeout != null) {clearTimeout(docObj.tmpTimeout);}
	var sXLeft = arguments[1], sXCenter = arguments[2], sXRight = arguments[3];
	var sYTop = arguments[4], sYCenter = arguments[5], sYBottom = arguments[6];
	var iSpeed = (arguments.length > 7) ? parseInt(arguments[7]) : 0;
	var iPx = (arguments.length > 8) ? parseInt(arguments[8]) : 0;
	var iTimeout = 10, sSuffix = "";
	// determine current document window size and scroll position
	var iWinWidth, iWinHeight, iScrollX, iScrollY;
	if (window.innerWidth) { // NS4, NS6 and Opera
		iWinWidth = window.innerWidth;
		iWinHeight = window.innerHeight;
		iScrollX = window.pageXOffset;
		iScrollY = window.pageYOffset;
		}
	else if (document.documentElement && document.documentElement.clientWidth) { // IE6 in standards compliant mode
		iWinWidth = document.documentElement.clientWidth; 
		iWinHeight = document.documentElement.clientHeight; 
		iScrollX = document.documentElement.scrollLeft;
		iScrollY = document.documentElement.scrollTop;
		}
	else if (document.body) { // IE4+
		iWinWidth = document.body.clientWidth; 
		iWinHeight = document.body.clientHeight; 
		iScrollX = document.body.scrollLeft;
		iScrollY = document.body.scrollTop;
		}
	else {return;}
	// determine current layer position
	var iCurX = iNewX = parseInt(docObj.left), iCurY = iNewY = parseInt(docObj.top);
	// calculate new X coordinate
	if (sXLeft != "") {iNewX = iScrollX + parseInt(sXLeft);}
	else if (sXCenter != "") {iNewX = Math.round(iScrollX + (iWinWidth/2) - (flevDivPositionValue(sDivID, 'width')/2));}
	else if (sXRight != "") {iNewX = iScrollX + iWinWidth - (flevDivPositionValue(sDivID, 'width') + parseInt(sXRight));}
	// calculate new Y coordinate
	if (sYTop != "") {iNewY = iScrollY + parseInt(sYTop);}
	else if (sYCenter != "") {iNewY = Math.round(iScrollY + (iWinHeight/2) - (flevDivPositionValue(sDivID, 'height')/2));}
	else if (sYBottom != "") {iNewY = iScrollY + (iWinHeight - flevDivPositionValue(sDivID, 'height') - parseInt(sYBottom));}
	// force persistency?
	if ((iCurX != iNewX) || (iCurY != iNewY)) {  // layer position needs to be adjusted
		if (iSpeed > 0) { // animated move
			if (iPx > 0) { // constant speed
				iTimeout = iSpeed;
				var iPxX = iPx, iPxY = iPx, iMoveX = Math.abs(iCurX - iNewX), iMoveY = Math.abs(iCurY - iNewY);
				// take care of diagonal movement
				if (iMoveX < iMoveY) {iPxY = (iMoveX != 0) ? ((iMoveY/iMoveX)*iPx) : iPx;}
				else {iPxX = (iMoveY != 0) ? ((iMoveX/iMoveY)*iPx) : iPx;}
				if (iPxX >= iMoveX) {iPxX = Math.min(Math.ceil(iPxX), iPx);}
				if (iPxY >= iMoveY) {iPxY = Math.min(Math.ceil(iPxY), iPx);}
				// calculate temporary X/Y coordinates
				if ((iCurX < iNewX) && (iCurX + iPxX < iNewX)) {iNewX = iCurX + iPxX;}
				if ((iCurX > iNewX) && (iCurX - iPxX > iNewX)) {iNewX = iCurX - iPxX;}
				if ((iCurY < iNewY) && (iCurY + iPxY < iNewY)) {iNewY = iCurY + iPxY;}
				if ((iCurY > iNewY) && (iCurY - iPxY > iNewY)) {iNewY = iCurY - iPxY;}
			}
			else { // gradually decreasing speed
				var iMoveX = ((iNewX - iCurX) / iSpeed); 
				iMoveX = (iMoveX > 0) ? Math.ceil(iMoveX) : Math.floor(iMoveX);
				iNewX = iCurX + iMoveX; 
				var iMoveY = ((iNewY - iCurY) / iSpeed); 
				iMoveY = (iMoveY > 0) ? Math.ceil(iMoveY) : Math.floor(iMoveY);
				iNewY = iCurY + iMoveY;
			}
		}
		// now actually move layer
		if ((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1) && (!window.opera)) {sSuffix="px";}
		if (iMoveX != 0) {eval("docObj.left = '" + iNewX + sSuffix + "'");}
		if (iMoveY != 0) {eval("docObj.top = '" + iNewY + sSuffix + "'");}
	}
	var sFunction = "flevPersistentLayer('" + sDivID + "','" + sXLeft + "','" + sXCenter + "','" + sXRight + "','" + sYTop + "','" + sYCenter + "','" + sYBottom + "'," + iSpeed + "," + iPx + ")";
	docObj.tmpTimeout = setTimeout(sFunction,1);
}

function flevInitPersistentLayer() { // v3.0, Marja Ribbers-de Vroed, FlevOOware
	if (arguments.length < 8) {return;}
	// gather arguments
	var sDivID = arguments[0]; if (sDivID == "") {return;}
	var	docObj = eval("MM_findObj('" + sDivID + "')"); if (docObj == null) {return;}
	var iCSS = parseInt(arguments[1]);
	var sXLeft = arguments[2], sXCenter = arguments[3], sXRight = arguments[4];
	var sYTop = arguments[5], sYCenter = arguments[6], sYBottom = arguments[7];
	var iSpeed = (arguments.length > 8) ?parseInt(arguments[8]) : 0;
	var iPx = (arguments.length > 9) ? parseInt(arguments[9]) : 0;
	// Position according to CSS style?
	if (iCSS != 0) { // maintain top/left position specified by CSS style
		if (!document.layers) {docObj = docObj.style;} // not NS4.x 
		sXLeft = parseInt(docObj.left), sYTop = parseInt(docObj.top);
	}
	var sFunction = "flevPersistentLayer('" + sDivID + "','" + sXLeft + "','" + sXCenter + "','" + sXRight + "','" + sYTop + "','" + sYCenter + "','" + sYBottom + "'," + iSpeed + "," + iPx + ")";
	eval(sFunction);
}


function zoom(recupImageOuvrante,recupImageOuverte)
	{
	document.write('<a href="javascript:ouvrelePopUp(\''+recupImageOuverte+'\')"><img src="'+recupImageOuvrante+'" width="140" border="0" alt="zoom"></A>');
	}

function ouvrelePopUp(chemin)
	{
	i1 = new Image;
	i1.src = chemin;
	html = '<HTML><HEAD><TITLE>Le Touquet</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><div align="left"><a href=javascript:window.close()><img src="'+chemin+'" border=0 name=nomImage id=nomImage onLoad="window.resizeTo(document.nomImage.width+10,document.nomImage.height+58);window.focus();" alt="Fermer"></a></div></BODY></HTML>';
	ouverture = window.open('','nomFenetre','toolbar=0,status=1,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
	//ouverture.document.open();
	ouverture.document.write(html);
	ouverture.document.close();
	}

function ouvre360()
	{
	
	var winl = (screen.width - 440) / 2;
	var wint = (screen.height - 320) / 2;
/*
	w=open("",'image','width=440,height=320,top=320,left=400,toolbar=no,scrollbars=no,resizable=no');	
	w.document.write("<HTML><HEAD><TITLE>Le Touquet</TITLE><link rel='stylesheet' href='/includes/css/style_ie.css' type='text/css'></HEAD><BODY LEFTMARGIN='0' MARGINWIDTH='0' TOPMARGIN='0' MARGINHEIGHT='0'>");
	w.document.write("<br><table width='420' border='0' cellspacing='0' cellpadding='0' align='center'><tr><td width='14'><img src='/img/structure/coin_hg.gif'></td><td width='392' colspan='2'><img src='/img/spacer.gif' width='392' height='1'></td><td width='14'><img src='/img/structure/coin_hd.gif'></td></tr><tr><td rowspan='2'><img src='/img/spacer.gif'></td><td width='14'><img src='/img/structure/puce1.gif' width='14' height='14'></td><td class='v10446A82' width='378'><b>&nbsp;Visitez la salle</b></td>");
	w.document.write("<td rowspan='2'><img src='/img/spacer.gif'></td></tr><tr><td align='center' colspan='2'>"+chaine360+"</td></tr><tr><td><img src='/img/structure/coin_bg.gif'></td><td colspan='2'><img src='/img/spacer.gif'></td><td><img src='/img/structure/coin_bd.gif'></td></tr></table>");
	w.document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td align='center'><a href='javascript:window.close()'><img src='/img/fr/boutons/b_fermer.gif' border='0'></a></td></tr></table>");
	w.document.write("</BODY></HTML>");
	w.document.write("");
*/
	html = '<HTML><HEAD><TITLE>Le Touquet</TITLE><link rel=\'stylesheet\' href=\'/includes/css/style_ie.css\' type=\'text/css\'></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0>';
	html = html + '<br><table width=\'420\' border=\'0\' cellspacing=\'0\' cellpadding=\'0\' align=\'center\'><tr><td width=\'14\'><img src=\'/img/structure/coin_hg.gif\'></td><td width=\'392\' colspan="2"><img src=\'/img/spacer.gif\' width=\'392\' height=\'1\'></td><td width=\'14\'><img src=\'/img/structure/coin_hd.gif\'></td></tr><tr><td rowspan="2"><img src=\'/img/spacer.gif\'></td><td width="14"><img src="/img/structure/puce1.gif" width="14" height="14"></td><td class=v10446A82 width=378><b>&nbsp;Visitez la salle</b></td>';
	html = html + '<td rowspan=\'2\'><img src=\'/img/spacer.gif\'></td></tr><tr><td align=\'center\' colspan="2">'+chaine360+'</td></tr><tr><td><img src=\'/img/structure/coin_bg.gif\'></td><td colspan="2"><img src=\'/img/spacer.gif\'></td><td><img src=\'/img/structure/coin_bd.gif\'></td></tr></table>';
	html = html + '<table width=\'100%\' border=\'0\' cellspacing=\'0\' cellpadding=\'0\'><tr><td align=\'center\'><a href=\'javascript:window.close()\'><img src=\'/img/fr/boutons/b_fermer.gif\' border=\'0\'></a></td></tr></table>';
	html = html + '<!-- VISIOSTATS TELMEDIA 2001 --><script language=\'javascript\' src=\'/visiotag.js\'></script><script language=\'javascript\'>visiotag(\'181\',\'vue_360_degres\',\'\');</script><noscript>Mairie du Touquet 2003. Tous droits r&eacute;serv&eacute;s </noscript><!-- VISIOSTATS TELMEDIA 2001 --></BODY></HTML>';
	ouverture = window.open('','360','height=320,width=440,top='+wint+',left='+winl+',toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
	ouverture.document.write(html);
	ouverture.document.close();
	
	}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//-->