/*function openwindow (url,width,height) {
	var ow = window.open(url, 'MichelIssaly', "top=0, left=0, toolbar=no, location=no, menubar=no, resizable=no, status=no, scrollbars=yes");
	ow.resizeTo(width,height);
	ow.focus();
	}*/

function zoom (photo) {
	var owzoom = window.open('ow_zoom.php?photo='+photo, 'MichelIssaly', "top=0, left=0, width=850, height=850, toolbar=no, location=no, menubar=no, resizable=no, status=no, scrollbars=yes");
	owzoom.focus();
	}
	
function cuisine (recette) {
	var owcuisine = window.open('ow_cuisine.php?recette='+recette, 'RecetteCuisine', "top=0, left=0, width=530, height=530, toolbar=no, location=no, menubar=no, resizable=no, status=no, scrollbars=yes");
	owcuisine.focus();
	}
	
function fichevin (vin,fiche) {
	var owvin = window.open('ow_fiche_vin.php?vin='+vin+'&fiche='+fiche, 'FicheVin', "top=0, left=0, width=530, height=530, toolbar=no, location=no, menubar=no, resizable=no, status=no, scrollbars=yes");
	owvin.focus();
	}
	

function acces () {
	var owacces = window.open('ow_acces.php', 'PlanAcces', "top=0, left=0, width=530, height=530, toolbar=no, location=no, menubar=no, resizable=no, status=no, scrollbars=yes");
	owacces.focus();
	}

timer=0;
y=0;
						
function init_timer(){
	timer=1;
}

function avant(max,calq1,calq2){
	maximum=max;
	calque1=calq1;
	calque2=calq2;
if (document.getElementById){
	document.getElementById(calque2).style.top=y;
}
if ((document.all)&&(!document.getElementById)){
	document.all[calque2].style.top=y;
}
if (document.layers){
	document.layers[calque1].layers[calque2].top=y;
}
if(timer==1 && y<maximum){
setTimeout("avant(maximum,calque1,calque2)",40);
y+=7;}					
}

function arriere(max,calq1,calq2){
	//alert(max);
	maximum=max;
	calque1=calq1;
	calque2=calq2;
if (document.getElementById){
	document.getElementById(calque2).style.top=y;
}
if ((document.all)&&(!document.getElementById)){
	document.all[calque2].style.top=y;
}
if (document.layers){
	document.layers[calque1].layers[calque2].top=y;
}
if(timer==1 && y>maximum){
setTimeout("arriere(maximum,calque1,calque2)",40);
y-=7;}
}

function stop_timer(){
	timer=0;
}