// JavaScript Document


function MMpopup(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function PopupImage(img,h,l) { 
titre="Musicaprod2004"; 
w=open("",'image','width='+l+',height='+h+',left=150,top=150,toolbar=no,scrollbars=no,resizable=no');
w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>"); 
w.document.write("<BODY leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><A HREF='javascript:window.close()'><IMG src='"+img+"' border=0></A>"); 
w.document.write(""); 
w.document.write("</BODY></HTML>"); 
w.document.close(); 
} 

function Popupscroll(img,h,l) { 
titre="Musicaprod2004"; 
w=open("",'image','width='+l+',height='+h+',left=150,top=150,toolbar=no,scrollbars=yes,resizable=no');
w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>"); 
w.document.write("<BODY leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><A HREF='javascript:window.close()'><IMG src='"+img+"' border=0></A>"); 
w.document.write(""); 
w.document.write("</BODY></HTML>"); 
w.document.close(); 
}

function VersionNavigateur(Netscape, Explorer) {
if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      
(navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
return true;
else return false;
}


function stopError() {
{return true;}
window.onerror=stopError;
}

function load() {
	if (document.images) {
		this.length=load.arguments.length;
		for (var i=0;i<this.length;i++) {
			this[i+1]=new Image();
			this[i+1].src=load.arguments[i];
		}
	}
}
function preload() {
// Cette fonction charge dans le cache toutes les images passées en paramètre
	var temp=new load("photos/queuel1p.jpg","photos/queuel2p.jpg","photos/queuel3p.jpg")
}

function popupcentree(page,largeur,hauteur,options)
{
var top=(screen.height-hauteur)/2;
var left=(screen.width-largeur)/2;
window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}

idimg=1;
total=25;
function diapo(imgsuiv){
idimg=idimg + imgsuiv;if(idimg > total){idimg = 1;} if(idimg == 0){idimg = total;};document.photo.src="diapos/baz" + idimg + ".jpg";
}

function first(imgfirst){
document.location.href="diapos_baz.html";
document.photo.src="diapos/baz1" + ".jpg";
}
function firsten(imgfirst){
document.location.href="diapos_baz_en.html";
document.photo.src="diapos/baz1" + ".jpg";
}
function last(imgsuiv){
idimg=idimg + imgsuiv;if(idimg > total){idimg = 25;} if(idimg == 0){idimg = total;};document.photo.src="diapos/baz" + idimg + ".jpg";
}
function MM_preloadImages()
{
var d=document; if(d.images){ if(!d.PreChgt) d.PreChgt=new Array();
var i,j=d.PreChgt.length,a=MM_preloadImages.arguments;
for(i=0;i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.PreChgt[j]=new Image; d.PreChgt[j++].src=a[i];}}
}
