var nome ="";

function Is()
{
	var agent = navigator.userAgent.toLowerCase();
	this.major = parseInt(navigator.appVersion);
	this.minor = parseFloat(navigator.appVersion);
	this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
	this.ns4 = (this.ns && (this.major >= 4));
	this.ie   = (agent.indexOf("msie") != -1);
	this.ie4  = (this.ie && (this.major >= 4));

	this.opera   = (agent.indexOf("opera") != -1);

	this.win   = (agent.indexOf("win")!=-1);
	this.mac   = (agent.indexOf("mac")!=-1);
}
function pop() {
	var od=window.open("http://www.odyss.fr/index.html",od,"width="+(screen.width-30)+",height="+(screen.height-30)+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=no,fullscreen=no,top=0,left="+(((screen.width)/2)-((screen.width-30)/2))+"");
	od.document.close();
    	od.focus();
}

function pop2(lenom,haut,large) {
	var lenom=window.open(/shelter/+lenom+".htm",lenom,"width="+large+",height="+haut+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=no,fullscreen=no,top="+(((screen.height)/2)-(haut/2))+",left="+(((screen.width)/2)-(large/2))+"");
	lenom.document.close();
    	lenom.focus();
}
function popenpress(lenom,haut,large) {
	var lenom=window.open(/enpress/+lenom+".php",lenom,"width="+large+",height="+haut+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=yes,fullscreen=no,top="+(((screen.height)/2)-(haut/2))+",left="+(((screen.width)/2)-(large/2))+"");
	lenom.document.close();
    	lenom.focus();
}
function poppress(lenom,haut,large) {
	var lenom=window.open(/press/+lenom+".php",lenom,"width="+large+",height="+haut+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=yes,fullscreen=no,top="+(((screen.height)/2)-(haut/2))+",left="+(((screen.width)/2)-(large/2))+"");
	lenom.document.close();
    	lenom.focus();
}

function pop3(lenom,haut,large) {
	var lenom=window.open(lenom+".htm",lenom,"width="+large+",height="+haut+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=no,fullscreen=no,top=0,left=0");
	lenom.document.close();
    	lenom.focus();
}

function pop33(lenome,haut,large) {
	var lenom=window.open(lenome+".htm","thename","width="+large+",height="+haut+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=no,fullscreen=no,top=300,left=0");
	lenom.document.close();
    	lenom.resizeTo(large,haut);
    	lenom.focus();
    	nome=lenome;
}

function popfla(lenom,haut,large) {
	var lenom=window.open("../shelter/"+lenom+".htm",lenom,"width="+large+",height="+haut+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=no,fullscreen=no,top=260,left=10");
	lenom.document.close();
    	lenom.focus();
}

function pop5(lenom,haut,large) {
	var lenom=window.open("../"+lenom+".htm",lenom,"width="+large+",height="+haut+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=no,fullscreen=no,top=0,left=0");
	lenom.document.close();
    	lenom.focus();
}

function pop6(lenom,haut,large) {
	var lenom=window.open(lenom+".htm",lenom,"width="+large+",height="+haut+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=yes,fullscreen=no,top=0,left=0");
	lenom.document.close();
    	lenom.focus();
}

function pop4(lenom,haut,large) {
	var lenom=window.open(lenom+".php",lenom,"width="+large+",height="+haut+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=yes,fullscreen=no,top="+(((screen.height)/2)-(haut/2))+",left="+(((screen.width)/2)-(large/2))+"");
	lenom.document.close();
    	lenom.focus();
}
function pop44(lenom,haut,large) {
	var lenom=window.open("rub/"+lenom+".htm",lenom,"width="+large+",height="+haut+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=yes,fullscreen=no,top="+(((screen.height)/2)-(haut/2))+",left="+(((screen.width)/2)-(large/2))+"");
	lenom.document.close();
    	lenom.focus();
}
function popfondec(lenom,haut,large) {
	var lenom=window.open("interview/"+lenom+".htm",lenom,"width="+large+",height="+haut+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=yes,fullscreen=no,top="+(((screen.height)/2)-(haut/2))+",left="+(((screen.width)/2)-(large/2))+"");
	lenom.document.close();
    	lenom.focus();
}
function popartscene(lenom,haut,large) {
	var lenom=window.open("interview/"+lenom+".php",lenom,"width="+large+",height="+haut+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=yes,fullscreen=no,top="+(((screen.height)/2)-(haut/2))+",left="+(((screen.width)/2)-(large/2))+"");
	lenom.document.close();
    	lenom.focus();
}

function pop7(lenom,haut,large) {
	var lenom=window.open(lenom+".htm",lenom,"width="+large+",height="+haut+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=no,fullscreen=no,top=0,left=0");
	lenom.document.close();
    	lenom.focus();
}
function gallery(lenom,haut,large) {
	var lenom=window.open("/"+lenom,lenom,"width="+large+",height="+haut+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=auto,fullscreen=no,top="+(((screen.height)/2)-(haut/2))+",left="+(((screen.width)/2)-(large/2))+"");
	lenom.document.close();
    	lenom.focus();
}

function resize(x,y) {
	parent.window.resizeTo(x,y);
}

function closethis() {
	window.close();
}

function resizex(pg) {
}

//ciblage d'un calque
  function styleCalque(idCalque)
  {
    if (document.all) calqueStyle = document.all[idCalque].style;
    if (document.layers) calqueStyle = document.layers[idCalque];
    if (document.getElementById) calqueStyle = document.getElementById(idCalque).style;
    return calqueStyle;
  }
//fonction d'apparition de calques
  function ShCalq(nom)
  {
    calqueStyle=styleCalque(nom);
    calqueStyle.visibility="visible";
  }

//fonction de disparition des calques
  function HdCalq(nom)
  {
    calqueStyle=styleCalque(nom);
    calqueStyle.visibility="hidden";
  }

//fonction de disparition des calques
  function HdTCalq(nom)
  {
  
  l=20;
  while (l<410)
  {
    li='liens'+l;
    //alert(li);
    calqueStyle=styleCalque(li);
    calqueStyle.visibility="hidden";
    l=l+10;
  }
    calqueStyle=styleCalque(nom);
    calqueStyle.visibility="visible";
  }

//fonction de disparition des calques
  function HdTCalqMad(nom,pg,haut,large)
  {
  
  l=20;
  while (l<410)
  {
    li='liens'+l;
    calqueStyle=styleCalque(li);
    calqueStyle.visibility="hidden";
    l=l+10;
  }
    calqueStyle=styleCalque(nom);
    calqueStyle.visibility="visible";
    pop33(pg,haut,large);
  }

//fonction de disparition des calques
  function HdTCalqTag(nom)
  {
  
  l=20;
  while (l<90)
  {
    li='liens'+l;
    //alert(li);
    calqueStyle=styleCalque(li);
    calqueStyle.visibility="hidden";
    l=l+10;
  }
    calqueStyle=styleCalque(nom);
    calqueStyle.visibility="visible";
  }
  
//fonction de disparition des calques
  function HdTCalqSerail(nom,pg,haut,large)
  {
  
  l=1;
  while (l<53)
  {
    li='contenu'+l;
    //alert(li);
    calqueStyle=styleCalque(li);
    calqueStyle.visibility="hidden";
    l=l+1;
  }
    calqueStyle=styleCalque(nom);
    calqueStyle.visibility="visible";
    pop33(pg,haut,large);
  }

//fonction de disparition des calques
  function HdT3CalqSerail(nom,pg,haut,large)
  {
  
  l=1;
  while (l<53)
  {
    li='contenu'+l;
    //alert(li);
    calqueStyle=styleCalque(li);
    calqueStyle.visibility="hidden";
    l=l+1;
  }
    calqueStyle=styleCalque(nom);
    calqueStyle.visibility="visible";
  }

//fonction de disparition des calques
  function HdT2CalqSerail(nom)
  {
  
  l=1;
  while (l<53)
  {
    li='contenu'+l;
    //alert(li);
    calqueStyle=styleCalque(li);
    calqueStyle.visibility="hidden";
    l=l+1;
  }
    calqueStyle=styleCalque(nom);
    calqueStyle.visibility="visible";
  }

//focus
  function Foc(nom)
  {
    calqueStyle=styleCalque(nom);
    calqueStyle.focus();
  }

//lancer les sons
  function changer(son)
  {
    calqueStyle=styleCalque('lecteur');
    calqueStyle.document.audio1.DoStop();
    calqueStyle.document.audio1.SetSource(son);
    calqueStyle.document.audio1.DoPlay();
    ShCalq('lecteur');
    ShCalq('stop');
  }
  
//stopper les sons
  function stopS()
  {
    calqueStyle=styleCalque('lecteur');
    calqueStyle.document.audio1.DoStop();
    HdCalq('lecteur');
    HdCalq('stop');

  }
  
function PImg(img,titre) {
 	browser_type = null;
 	var is = new Is();
	var ww = 12;
	var hh = 30;
	if(is.win)
	{
    	    var ww = 12;
	    var hh = 30;
	}
	else if (is.mac)
	{
    	    var ww = 0;
	    var hh = 0;
	}
	w=open("",'thename','width=400,height=300,top=300,toolbar=no,scrollbars=no,resizable=yes');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+"+ww+",document.images[0].height+"+hh+"); window.focus();} else { setTimeout('check()',50) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0 bgcolor=#000000 onBlur='window.close()'><IMG src='"+img+"' border=0>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}

function PImg2(img,titre,li1,ex) {
 	browser_type = null;
 	var is = new Is();
	var ww = 42;
	var www=420;
	var hh = 100;
	if(is.win)
	{
    	    var ww = 42;
    	    var www=432;
	    var hh = 100;
	}
	else if (is.mac)
	{
    	    var ww = 30;
    	    var www=420;
	    var hh = 70;
	}
	w=open("",'thename','width=400,height=300,top=300,toolbar=no,scrollbars=no,resizable=yes');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+"+ww+",document.images[0].height+"+hh+"); window.focus();} else { setTimeout('check()',50) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0 bgcolor=#000000><IMG src='"+img+"' border=0>");
	w.document.write("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="+www+">");
	w.document.write("<TR><TD WIDTH=120 align=center valign=top>");
	w.document.write("<P ALIGN='left'><FONT COLOR=white>Ecouter un extrait</FONT></P></TD>");
	w.document.write("<TD WIDTH=35 HEIGHT=34 VALIGN=top>");
	w.document.write("<OBJECT id='audio1' width='35' height='27' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'>");
	w.document.write("<param name='src' value="+li1+">");
	w.document.write("<param name='console' value='cons3'>");
	w.document.write("<param name='controls' value='PlayButton'>");
	w.document.write("<param name='autostart' value='false'>");
	w.document.write("<embed src="+li1+" type='audio/x-pn-realaudio-plugin' console='cons3' controls='PlayButton' height='27' width='35' autostart='false' align='absmiddle'></embed>");
	w.document.write("</OBJECT></TD>");
	w.document.write("<TD WIDTH='100' ALIGN='left' valign='top'>");
	w.document.write("<OBJECT id='audio1' width='100' height='27' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'>");
	w.document.write("<param name='src' value="+li1+">");
	w.document.write("<param name='console' value='cons3'>");
	w.document.write("<param name='controls' value='StatusField'>");
	w.document.write("<param name='autostart' value='false'>");
	w.document.write("<embed src="+li1+" type='audio/x-pn-realaudio-plugin' console='cons3' controls='StatusField' height='27' width='100' autostart='false' align='absmiddle'></embed>");
	w.document.write("</OBJECT></TD><TD WIDTH='145'>&nbsp;</TD></TR>");
	w.document.write("<TR><TD WIDTH="+www+" align=center valign=top COLSPAN=4>");
	w.document.write("<P ALIGN='left'><FONT SIZE=2 COLOR=white>"+ex+"</FONT></P></TD></TR>");
	w.document.write("</TABLE>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}