function popImg (imgPath)
{
//DEFINE EXTENTION
		ext = imgPath.substring(imgPath.lastIndexOf(".")+1);
	//alert('imgPath : '+imgPath+'\nimgWidth : '+imgWidth +'\nimgHeight : '+imgHeight+'\next : '+ext);
	imgWidth = 100;
	imgHeight= 100;
	var param = ",width="+imgWidth+",height="+imgHeight;
	
	newWindow = window.open("","popIt","resizable=no,scrollbars=no,status=no"+param);
	newWindow.document.open();
	newWindow.document.writeln('<HTML><HEAD>');
	newWindow.document.writeln('<title>BiObernai 2005</title>');
	newWindow.document.writeln('<script language=javascript>');	
	newWindow.document.writeln('function adjustPage(){');
	newWindow.document.writeln('	var nW = document.media.width + 60;');	
	newWindow.document.writeln('	var nH = document.media.height + 60;');	
	newWindow.document.writeln('	bVer = parseInt(navigator.appVersion);');	
	
	//newWindow.document.writeln('alert(\'adjustPage to \'+ nW +\'x\'+ nH +\'      \')              ');
	//newWindow.document.writeln('alert(\'\')              ');
	//newWindow.document.writeln('	window.resizeTo (nW, nH);');	
	
	newWindow.document.writeln('	if (bVer >= 4) {');	
	newWindow.document.writeln('				var nX = ( (screen.width-nW) >>1 );');	
	newWindow.document.writeln('				var nY = ( (screen.height-nH) >>1 );');	
	newWindow.document.writeln('			} else {');	
	newWindow.document.writeln('				var nX = ( (800-nW) >>1 );');	
	newWindow.document.writeln('				var nY = ( (600-nH) >>1 );');	
	newWindow.document.writeln('	}');
	newWindow.document.writeln('	window.resizeTo (nW, nH);');	
	newWindow.document.writeln('	window.moveTo (nX, nY);');	
	newWindow.document.writeln('	window.focus();');		
	newWindow.document.writeln('}</SCRIPT>');		
	
	newWindow.document.writeln('</HEAD>');	

	//PRINT A IMG
	newWindow.document.writeln('<BODY bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad=adjustPage() >');
	newWindow.document.writeln('<TABLE width="100%" height="100%"><TR><TD align="center">');
	newWindow.document.writeln('<A HREF="javascript:window.close()">');
	newWindow.document.writeln('<IMG NAME=media SRC="'+imgPath+'" ALT="Fermer" BORDER=0>');
	newWindow.document.writeln('</A></TD></TR/></TABLE>');
	
	newWindow.document.writeln('</BODY></HTML>');
	newWindow.document.close();

}

function Videos () {
	window.open('http://www.footpro.fr/video/video_cl_03_04.asp?saison=2004/2005','videos','width=585, height=510, scrollbars=no')
}

function Reglement () {
	window.open('reglement.htm','regle','width=375, height=500, scrollbars=yes')
}

function ShakeIt() {
	magnitude=5;
	for (i=0;i,i<15;i++){
		if ((document.all||document.layers)) {
			window.moveBy(0,magnitude);
			window.moveBy(magnitude,0);
			window.moveBy(0,-magnitude);
			window.moveBy(-magnitude,0);
		} else {
			window.moveTo(0,magnitude);
			window.moveTo(magnitude,0);
		}	
	}
}

function openSite() {
	if (screen.width<=900)
		{
		var name = navigator.appName
		var machine = navigator.platform
		if ((machine == "Win32") && (name == "Microsoft Internet Explorer"))
			{
			var toto=screen.Height-100;
			var tata=screen.width;
			window.open('coupe.htm','rcs','width='+tata+',height='+toto+',top=0,left=0,toolbar=1,status=0,location=0,tool=0,resizable=1');
			}
		else
			{
			var toto=screen.height-100;
			var tata=screen.width;
			window.open('coupe.htm','rcs','width='+tata+',height='+toto+',top=0,left=0,toolbar=1,status=0,location=0,tool=0,resizable=1');
			}

		}

	else
		{
		window.open('coupe.htm','rcs','width='+screen.width+',height='+screen.height+',top=0,left=0,toolbar=0,status=0,location=0,tool=0,resizable=1');
		}
}


