

function popupcentre(adresse, nomFenetre, largeur, hauteur, scroll) 

  {

  var largeurEcran = (screen.width - largeur) / 2;

  var hauteurEcran = (screen.height - hauteur) / 2;

  window.open(adresse, nomFenetre, 'height=' + hauteur + ', width=' + largeur + ', top=' + hauteurEcran + ', left=' + largeurEcran + ', scrollbars=' + scroll + ', toolbar=no, status=no, resizable=yes,menubar=no')

  }



  function xiti()

  {

  hsh = new Date();

hsd = document;

hsr = hsd.referrer.replace(/[<>]/g, '');

hsi = '<a href="http://www.xiti.com/xiti.asp?s=97236"';

hsi += ' rel="nofollow" TARGET="_top"><img width="39" height="25" border=0 ';

hsi += 'src="http://logv20.xiti.com/hit.xiti?s=97236';

hsi += '&p=';

hsi += '&hl=' + hsh.getHours() + 'x' + hsh.getMinutes() + 'x' + hsh.getSeconds();

if(parseFloat(navigator.appVersion)>=4)

{Xiti_s=screen;hsi += '&r=' + Xiti_s.width + 'x' + Xiti_s.height + 'x' + Xiti_s.pixelDepth + 'x' + Xiti_s.colorDepth;}

hsd.writeln(hsi + '&ref=' + hsr.replace(/&/g, '$') + '" title="Mesurez votre audience"></a>');

  

  

  }



function resolution(sid,lg)

{







var xhr_object = null;

	

	if(window.XMLHttpRequest) // Firefox

		xhr_object = new XMLHttpRequest();

	else if(window.ActiveXObject) // Internet Explorer

		xhr_object = new ActiveXObject("Microsoft.XMLHTTP");

	else { // XMLHttpRequest non supporté par le navigateur

		

		return;

	}



	var filename = "/putreso.php5";

	    

	if (document.body)

	{

	var s1 = (document.body.clientWidth);

	}

	else

	{

	var s1 = (window.innerWidth);

	}

	var data     = null;

	

	if(s1 != "")

		{

		data = "s1="+s1+"&PHPSSID="+sid+"&lg="+lg;

		}

	

	var method="GET";

		filename += "?"+data;

	

	xhr_object.open(method, filename, true);

	

	xhr_object.onreadystatechange = function anonymous() {

		if(xhr_object.readyState == 4) {

			var tmp = xhr_object.responseText;

			

			  document.getElementById("result").innerHTML=tmp;

			

			

		}

	}	

	xhr_object.send(data);

}



	

function mesure(_MesurePro, _page)

{

scr_w = screen.width;

scr_h = screen.height;

color = screen.colorDepth;

ref = escape(window.document.referrer);



document.write("<IMG src='http://www.direct-stats.com/cgi-bin/pro/stats/drpark/marqueur.pl/"+ "?page="+ _page+ "&n="+ Math.round (Math.random () * 1000000000000000)+ "&reso_w="+ scr_w+ "&reso_h="+ scr_h+ "&color="+ color+ "&referer="+ ref+"' border=0>");

}

function req() {

	var xhr_object = null;

	

	if(window.XMLHttpRequest) // Firefox

		xhr_object = new XMLHttpRequest();

	else if(window.ActiveXObject) // Internet Explorer

		xhr_object = new ActiveXObject("Microsoft.XMLHTTP");

	else { // XMLHttpRequest non supporté par le navigateur

		

		return;

	}



	var filename = "/getsearch.php";

	var s1       = document.search.search.value;

	var s2       = document.search.lang.value;

	

	var data     = null;

	

	if(s1 != "" && s2!="")

		{

		data = "s1="+s1+"&s2="+s2;

		}

	

	var method="GET";

		filename += "?"+data;

	

	xhr_object.open(method, filename, true);

	

	xhr_object.onreadystatechange = function anonymous() {

		if(xhr_object.readyState == 4) {

			var tmp = xhr_object.responseText;

			

			  document.getElementById("sbox").innerHTML=tmp;

			

			

		}

	}



	if(method == "POST")

		xhr_object.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");



	xhr_object.send(data);

}

function Search(){

	if (document.frmSearch.Cat.value == '') {

		alert('Vous devez sélectionner une catégorie!');

	}

	else if (document.frmSearch.Key.value == '') {

		alert('Vous devez entrer un mot clé!');

		document.frmSearch.Key.focus();

	}

	else {

	sellg= document.frmSearch.Lg.value;

		keyword = document.frmSearch.Key.value;

		nomrub=document.frmSearch.nomrub.value;

		window.location = '/' + sellg + '/'+ nomrub + '/' + document.frmSearch.Cat.value + '/search/' + keyword;

	}

}



function CheckKey() {

	if (window.event.keyCode == 13) {

		Search();

	}

	return false;

}

var BookmarkURL = window.location.href;

var BookmarkTitle = "Attractionland Mobile";



function Bookmark() {

	if (document.all) window.external.AddFavorite(BookmarkURL,BookmarkTitle)

}



function jsOpenhWnd (u) {

	p = "height=660,width=380,toolbar=no,directories=no,status=no,scrollbars=auto,resizable=no,menubar=no";

	hWnd = window.open (u, "Hwnd", p);

	hWnd.focus();

}



function mobilspace(u){

p="toolbar=no,height=720,width=548,directories=no,status=no,scrollbars=auto,resizable=no,menubar=no";

oliv_win=window.open(u,"MobilSpaceMultimedia",p);

oliv_win.focus();

}





        function numberofroomspeoplecombos(x,y){



            document.location.href = "/servlet/xmlbrochure/dates2.jsp?rooms"+y+"="+x;



            //parent.location.reload(true);

        }











    function OpenNewPopupWinRoomDetails (c) {

        window.open(c,'Full Room Details','width=500,height=350,scrollbars=auto,status=yes');

    }







    function changeDrops(newDay,newMonth,newYear) {



        var newDay = (newDay-1);

        var newMonth = (newMonth-1);



        searchform.day.selectedIndex = newDay;

        searchform.month.selectedIndex = newMonth;





        var found = 0;

        for(i=1;i<searchform.year.options.length;i++) {

            if (searchform.year.options[i].value == newYear) {

                found = i;

                break;

            }

        }

        searchform.year.selectedIndex = found;

    }
 function launchphoto(i)
{
	Effect.Appear('photo-'+i,{duration:0.2});
}	
function fermerphoto(i)
{	   
	
	Effect.BlindUp('photo-'+i,{duration:0.2});	
	
}