// JavaScript Document

function onLoad(){
	//montre();
	//MM_preloadImages('images/products/42.jpg');
	pageInit();
}
function mystart(){
			 myFlashLightBoxInjector.reset();
			 myFlashLightBoxInjector.appendElement('../pics/Azure/IMG_7013.jpg', '', '1', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Azure/IMG_7053.jpg', '', '2', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Azure/IMG_7059.jpg', '', '3', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Azure/lorange008.jpg', '', '4', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Azure/IMG_7029.jpg', '', '5', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Azure/lorange021.jpg', '', '6', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Azure/lorange026.jpg', '', '7', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Azure/lorange029.jpg', '', '8', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Azure/lorange030.jpg', '', '9', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Azure/lorange035.jpg', '', '10', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Azure/lorange036.jpg', '', '11', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Azure/lorange042.jpg', '', '12', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Azure/IMG_6986.jpg', '', '13', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Azure/lorange043.jpg', '', '14', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Azure/lorange045.jpg', '', '15', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Azure/lorange047.jpg', '', '16', 'setid');
			 myFlashLightBoxInjector.updateImageList();
			 myFlashLightBoxInjector.start('1');
}    

function mystartGold(){
myFlashLightBoxInjector.reset();
			 myFlashLightBoxInjector.appendElement('../pics/Gold/gold_004.jpg', '', '1', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/Blancpain01_big.jpg', '', '2', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/Lorange_gold_011.jpg', '', '3', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/hublot_04_big.jpg', '', '4', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/Australia_rings_big.jpg', '', '5', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/Lorange_gold_0001.jpg', '', '6', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/Blancpain02_big.jpg', '', '7', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/lun_01_big.jpg', '', '8', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/hublot_01_big.jpg', '', '9', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/Lorange_gold_009.jpg', '', '10', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/Blancpain07_big.jpg', '', '11', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/Panama_02_big.jpg', '', '12', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/hublot_08_big.jpg', '', '13', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/Blancpain06_big.jpg', '', '14', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/mg_9big.jpg', '', '15', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/lun_02_big.jpg', '', '16', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/Blancpain03_big.jpg', '', '17', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/vis04_big.jpg', '', '18', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/hublot_06_big.jpg', '', '19', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/Blancpain04_big.jpg', '', '20', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/mg_11big.jpg', '', '21', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/hublot_03_big.jpg', '', '22', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/lun_03_big.jpg', '', '23', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/hublot_05_big.jpg', '', '24', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/hublot_02_big.jpg', '', '25', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/Panama_01_big.jpg', '', '26', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/Blancpain05_big.jpg', '', '27', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/vis01_big.jpg', '', '28', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/Lorange_gold_016.jpg', '', '29', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/mg_12big.jpg', '', '30', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Gold/hublot_07_big.jpg', '', '31', 'setid');
			 myFlashLightBoxInjector.updateImageList();
			 myFlashLightBoxInjector.start('1');
}        
function mystartCafe(){
			 myFlashLightBoxInjector.reset();
			 myFlashLightBoxInjector.appendElement('../pics/Tumanyan/LorangeT_001.jpg', '', '1', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Tumanyan/LorangeT_003.jpg', '', '2', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Tumanyan/LorangeT_005.jpg', '', '3', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Tumanyan/LorangeT_006.jpg', '', '4', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Tumanyan/LorangeT_007.jpg', '', '5', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Tumanyan/LorangeT_008.jpg', '', '6', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Tumanyan/LorangeT_015.jpg', '', '7', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Tumanyan/LorangeT_018.jpg', '', '8', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Tumanyan/LorangeT_021.jpg', '', '9', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Tumanyan/LorangeT_023.jpg', '', '10', 'setid');
			 myFlashLightBoxInjector.appendElement('../pics/Tumanyan/LorangeT_025.jpg', '', '11', 'setid');
			 myFlashLightBoxInjector.updateImageList();
			 myFlashLightBoxInjector.start('1');
}    
   

function popupWindow(url, w, h){
        window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=yes,statusbar=yes,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width='+w+',height='+h+',screenX=150,screenY=150,top=10,left=10');

}

function montre(id) {
	var d = document.getElementById(id);
		for (var i = 1; i<=10; i++) {
			if (document.getElementById('smenu'+i)) {
				document.getElementById('smenu'+i).style.display='none';}
		}
	if (d) {d.style.display='block';}
}

<!--
function MM_swapImgRestore() { 
	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() { 
	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_swapImage() { 
	var i,j=0,x,a=MM_swapImage.arguments; 
	//alert(MM_findObj(a[0]).src);
	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 MM_findObj(n, d) { 
	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;
}
//-->


// this works on IE only, designed for png24 alpha tranparency by Arman Mkrtchyan
function applyPNGFilter(o) {
     var t="images/spacer.gif";
     if( o.src != t ) {
         var s=o.src;
         o.src = t;
         o.runtimeStyle.filter =  
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+s 
+"',sizingMethod='scale')";
     }
}
