// 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=yes');
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=preload.arguments.length;
		for (var i=0;i<this.length;i++) {
			this[i+1]=new Image();
			this[i+1].src=preload.arguments[i];
		}
	}
}
function preload() {
	var temp=new load("troupe1a.jpg","troupe2a.jpg","troupe3a.jpg","troupe4a.jpg","troupe5a.jpg","troupe6a.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";
}
