browser = navigator.appName;
version = navigator.appVersion;
os = navigator.platform;
ie = "Microsoft Internet Explorer";
nn = "MacPPC";

if (browser == ie) {
	document.write('<link rel=stylesheet type="text/css" href="ie.css" title=master>');
} 

else {
	document.write('<link rel=stylesheet type="text/css" href="mac.css" title=master>');
}



function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function printit(){


window.print(); 


}


function MM_preloadImages() { //v3.0
  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_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImgRestore() { //v3.0
  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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; 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 loadb(){
		
			//image 2
			var aleatoire = Math.round(Math.random()*5);
			var image = "pechec_" + aleatoire +".jpg";
			var images_path = "./img/peche_c/";
			
			document.write("<img src=\"" +images_path +  image + "\"/  width=\"261\" height=\"89\" >" );
							
				
		}
//
function load(){
		
			//image 1
			var aleatoire = Math.round(Math.random()*38);
			var image = "pechea_" + aleatoire +".jpg";
			var images_path = "./img/peche_a/";
			
			document.write("<img src=\"" +images_path +  image + "\"/  width=\"176\" height=\"136\"><img src=\"img/A.gif\" width=\"1\" height=\"136\">" );
				
			//image2 seul
			var aleatoirea = Math.round(Math.random()*8);
			var imagea = "pecheb_" + aleatoirea +".jpg";
			var images_path = "./img/peche_b/";
			
			document.write("<img src=\"" +images_path +  imagea + "\"/  width=\"86\" height=\"136\" ><img src=\"img/A.gif\" width=\"1\" height=\"136\">" );
					
			
			//image3
			
			var aleatoire2 = Math.round(Math.random()*38);
			while (aleatoire2==aleatoire)
			{
			var aleatoire2 = Math.round(Math.random()*38);
			}	
			var image2 = "pechea_" + aleatoire2 +".jpg";
			var images_path = "./img/peche_a/";
			
			document.write("<img src=\"" +images_path +  image2 + "\"/  width=\"176\" height=\"136\" ><img src=\"img/A.gif\" width=\"1\" height=\"136\">" );
			
			//4
			var aleatoire3 = Math.round(Math.random()*38);
			while (aleatoire3==aleatoire || aleatoire3==aleatoire2 )
			{
			var aleatoire3 = Math.round(Math.random()*38);
			}			
			var image3 = "pechea_" + aleatoire3 +".jpg";
			var images_path = "./img/peche_a/";
			
			document.write("<img src=\"" +images_path +  image3 + "\"/  width=\"176\" height=\"136\" ><img src=\"img/A.gif\" width=\"1\" height=\"136\">" );
				
				
			//5				
			var aleatoire4 = Math.round(Math.random()*38);
			while (aleatoire4==aleatoire || aleatoire4==aleatoire2 || aleatoire4==aleatoire3)
			{
			var aleatoire4 = Math.round(Math.random()*38);
			}
			var image4 = "pechea_" + aleatoire4 +".jpg";
			var images_path = "./img/peche_a/";
			
			document.write("<img src=\"" +images_path +  image4 + "\"/  width=\"176\" height=\"136\" >" );
							
				
			
			


		}



//probleme flash2
function RunFoo(swf, hauteur, largeur, couleur, nom) {
document.write("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" WIDTH="+largeur+" HEIGHT="+hauteur+">");
document.write("<PARAM NAME=movie VALUE=\""+nom+".swf\">");
document.write("<PARAM NAME=quality VALUE=high>");
document.write("<PARAM NAME=bgcolor VALUE="+couleur+">");
document.write("<EMBED src=\""+nom+"swf\" quality=high bgcolor=#FFFFFF  WIDTH="+largeur+" HEIGHT="+hauteur+" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED>");
document.write("</OBJECT>");
}


