v=0;
click1=0;
click2=0;
click3=0;
click4=0;
click5=0;
click6=0;
click7=0;
click8=0;
click9=0;



whichbrowser = navigator.appName;
ver = parseInt(navigator.appVersion);
if ( (whichbrowser == "Netscape" && ver >= 3) || ver == 4 ){v=1;}

ns = (document.layers)? true:false
ie = (document.all)? true:false

ns4 = (document.layers)? true:false
ie4 = (document.all && !document.getElementById)? true:false
dom = (document.getElementById)? true:false

if (ns4){layerRef="document.layers['";		styleSwitch="']";	layerStyleRef=".document";}
if (ie4){layerRef="document.all['";		styleSwitch="'].style";	layerStyleRef="";}
if (ie){layerRef="document.all['";		styleSwitch="'].style";	layerStyleRef="";}
if (dom){layerRef="document.getElementById('";	styleSwitch="').style";	layerStyleRef="";}

document.write('<LINK REL="stylesheet" HREF="style/anime_home.css" TYPE="text/css">')
document.write('<LINK REL="stylesheet" HREF="style/style_ie.css" TYPE="text/css">')

function montre(layerName)	{eval(layerRef+layerName+styleSwitch+'.visibility = "visible"')}
function cache(layerName)	{eval(layerRef+layerName+styleSwitch+'.visibility = "hidden"')}
function xpos(layerName)	{return parseInt(eval(layerRef+layerName+styleSwitch+'.left'));}
function ypos(layerName)	{return parseInt(eval(layerRef+layerName+styleSwitch+'.top'));}
function tox(layerName,x)	{eval(layerRef+layerName+styleSwitch+'.left = '+x);}
function toy(layerName,y)	{eval(layerRef+layerName+styleSwitch+'.top = '+y);}
function byx(layerName,x)	{eval(layerRef+layerName+styleSwitch+'.left = '+xpos(layerName)+'+'+x);}
function byy(layerName,y)	{eval(layerRef+layerName+styleSwitch+'.top = '+ypos(layerName)+'+'+y);}


if (top == self) self.location.href = "index.htm";

var fen
function pop_up(sURL, iWidth, iHeight, X0, Y0, bScrollbar){
	if(bScrollbar){iWidth+=16;}
	var sName, sFeatures;
	
	
	var top=(screen.height-iHeight)/2;
  var left=(screen.width-iWidth)/2;
  
  
	sName = 'pop_up';
	if(ie4||dom){if((fen)&&(!fen.closed)){fen.close();}}
	sFeatures = 'toolbar=no,location=no,directories=no,status=no,menubar=no';
	if ( bScrollbar == false )
		sFeatures += ',scrollbars=no';
	else
		sFeatures += ',scrollbars=yes';
	sFeatures += ',resizable=no,screenY='+top+',screenX='+left+',top='+top+',left='+left+',width='+iWidth+',height='+iHeight;
	fen=window.open(sURL, sName, sFeatures);
	}
	
	
        function pop_up2(sURL, iWidth, iHeight, X0, Y0, bScrollbar){
	if(bScrollbar){iWidth+=16;}
	var sName, sFeatures;
	sName = 'pop_up';
	if(ie4||dom){if((fen)&&(!fen.closed)){fen.close();}}
	sFeatures = 'toolbar=no,location=no,directories=no,status=no,menubar=no';
	if ( bScrollbar == false )
		sFeatures += ',scrollbars=no';
	else
		sFeatures += ',scrollbars=yes';
	sFeatures += ',resizable=no,screenY='+Y0+',screenX='+X0+',top='+Y0+',left='+X0+',width='+iWidth+',height='+iHeight;
	fen=window.open(sURL, sName, sFeatures);
	}


if(v){
 img1on = new Image();        
 img1on.src = "img/pers1_on.gif";
 img1off = new Image();        
 img1off.src = "img/pers1_off.gif";

 img2on = new Image();        
 img2on.src = "img/pers2_on.gif";
 img2off = new Image();        
 img2off.src = "img/pers2_off.gif";
 
 img3on = new Image();        
 img3on.src = "img/pers3_on.gif";
 img3off = new Image();        
 img3off.src = "img/pers3_off.gif";
 
 img4on = new Image();        
 img4on.src = "img/pers4_on.gif";
 img4off = new Image();        
 img4off.src = "img/pers4_off.gif";
 
 img5on = new Image();        
 img5on.src = "img/pers5_on.gif";
 img5off = new Image();        
 img5off.src = "img/pers5_off.gif";
 
 img6on = new Image();        
 img6on.src = "img/pers6_on.gif";
 img6off = new Image();        
 img6off.src = "img/pers6_off.gif";
 
 img7on = new Image();        
 img7on.src = "img/pers7_on.gif";
 img7off = new Image();        
 img7off.src = "img/pers7_off.gif";
 
 img8on = new Image();        
 img8on.src = "img/pers8_on.gif";
 img8off = new Image();        
 img8off.src = "img/pers8_off.gif";
 
 img9on = new Image();        
 img9on.src = "img/pers9_on.gif";
 img9off = new Image();        
 img9off.src = "img/pers9_off.gif";
 
 

}  

        
function change_img(img_name,img_var){

	img=eval(img_var+".src");
	document[img_name].src=img;
	
}
        

function fix_img(ind){
		
	
		eval("change_img('img"+ind+"','img"+ind+"on')");
		eval("click"+ind+"=1");
		if(ind==1){pop_up('atelier/index.php',980,730,10,200,false)}
		if(ind==5){pop_up('mystere/jouretnuit/index.htm',980,730,10,200,false)}
		if(ind==3){pop_up('livre/index.htm',980,730,10,200,false)}
		if(ind==2){pop_up('peinture/index.php',980,730,10,200,false)}
		if(ind==6){pop_up('expression/index.php',980,730,10,200,false)}
		if(ind==4){pop_up('textes/index.htm',980,730,10,200,false)}
		if(ind==7){pop_up('films/index.htm',980,730,10,200,false)}
		if(ind==9){pop_up('cv/index.htm',980,730,10,200,false)}
		if(ind==8){pop_up('contact/index.htm',980,730,10,200,false)}
		
		
}


