


// CUSTOMS FUNCTIONS #######################################################


function popup(url, w, h) {
var windowprops = "width=" + w + ",height=" + h + ", toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no";
window.open(url,'popwin',windowprops);
}

function popupScroll(url, w, h) {
var windowprops = "width=" + w + ",height=" + h + ", toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no";
window.open(url,'',windowprops);
}

function popupChambres(url) {
var windowprops = "width=540,height=540, toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no";
window.open(url,'popwin',windowprops);
}


function popupImage(file,w,h) { 
if (this.focus == null) return;
var win= open('','Image', 'width='+(w+0)+',height='+(h+0)+',status=no,toolbar=no,menubar=no,resizable=no'); 
var d=win.document;
d.open(); 
if (win.moveTo != null) win.moveTo(0,0);
win.focus();
d.write("<html><head><title>LA RESERVE GENEVE HOTEL & SPA</title></head><body bgcolor=#FFFFFF marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>");
d.write('<img src="../../_js/'+file+'" width="'+w+'" height="'+h+'">');
d.write('</body></html>');
d.close(); 
}

function popupNewsletter(lang) {
    var url = "http://www.wellcome-guide.com/"+lang+"/newsletter/newsletter_form.htm";
	window.open(url,'newsletter','scrollbars=no,width=380,height=400');	
    }


// ROTATE #######################################################
imgPath = new Array;
SiClickGoTo = new Array;
if (document.images)
	{
	i0 = new Image;
	i0.src = '/V2/images/img_com/visuel_guide-white.jpg';
	SiClickGoTo[0] = "";
	imgPath[0] = i0.src;
	i1 = new Image;
	i1.src = '/V2/images/img_com/visuel_guide-urban.jpg';
	SiClickGoTo[1] = "";
	imgPath[1] = i1.src;
	}
a = 0;
function ejs_img_fx(img)
	{
	if(img && img.filters && img.filters[0])
		{
		img.filters[0].apply();
		img.filters[0].play();
		}
	}

function StartAnim()
	{
	if (document.images)
		{
		document.write('<IMG SRC="/V2/images/img_com/visuel_guide-white.jpg" BORDER=0 NAME=defil style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=100,Duration=1)">');
		defilimg()
		}
	else
		{
		document.write('<A HREF=""><IMG SRC="/V2/images/img_com/visuel_guide-white.jpg" BORDER=0></A>')
		}
	}
function ImgDest()
	{
	document.location.href = SiClickGoTo[a-1];
	}
function defilimg()
	{
	if (a == 2)
		{
		a = 0;
		}
	if (document.images)
		{
		ejs_img_fx(document.defil)
		document.defil.src = imgPath[a];
		tempo3 = setTimeout("defilimg()",5000);
		a++;
		}
	}
