function resize() {
if (screen.availWidth/screen.availHeight>1.33) {
window.resizeTo(screen.availHeight*1.33,screen.availHeight);
window.moveTo((screen.availWidth-screen.availHeight*1.33)/2,0);}
else {
window.resizeTo(screen.availWidth,screen.availHeight);
window.moveTo(0,0); }
}

function ChangeBackGround(fichier){
  document.background.src=fichier;

}


function MM_jumpMenu(targ,selObj,restore){ //v3.0

		if(selObj.options[selObj.selectedIndex].value=="contact.php"||selObj.options[selObj.selectedIndex].value=="tarifs.php"||selObj.options[selObj.selectedIndex].value=="riviera.php"||selObj.options[selObj.selectedIndex].value=="acces.php"||selObj.options[selObj.selectedIndex].value=="curiosite.php"||selObj.options[selObj.selectedIndex].value=="essentiels.php") {
		Modalbox.show('', selObj.options[selObj.selectedIndex].value, {width: 560, height:575}); return false;
		}

	else {
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0;
		}
}


function preloadImages() {
var d=document; if(d.images){ if(!d.p) d.p=new Array();
var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}


function fr() {
window.open('index-fr.php','_blank','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=1280, height=1024'); 
}
function uk() {
window.open('index-uk.php','_blank','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=1280, height=1024');
}
