
/* function lib_bwcheck()
		{ this.ver=navigator.appVersion; this.agent=navigator.userAgent; this.dom=document.getElementById?1:0; this.opera5=this.agent.indexOf("Opera 5")>-1; this.ie5=(this.ver.indexOf("MSIE 5")>-1&&this.dom&&!this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1&&this.dom&&!this.opera5)?1:0; this.ie4=(document.all&&!this.dom&&!this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6; this.mac=this.agent.indexOf("Mac")>-1; this.ns6=(this.dom&&parseInt(this.ver)>=5)?1:0; this.ns4=(document.layers&&!this.dom)?1:0; this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5); return this; } var bw=new lib_bwcheck(); fromX=((screen.width-972)/4)-90; fromY=20; function makeObj(_1){ this.evnt=bw.dom?document.getElementById(_1):bw.ie4?document.all[_1]:bw.ns4?document.layers[_1]:0; if(!this.evnt){ return false; } this.css=bw.dom||bw.ie4?this.evnt.style:bw.ns4?this.evnt:0; this.wref=bw.dom||bw.ie4?this.evnt:bw.ns4?this.css.document:0; this.writeIt=b_writeIt; return this; } var px=bw.ns4||window.opera?"":"px"; function b_writeIt(_2){ if(bw.ns4){ this.wref.write(_2); this.wref.close(); }else{ this.wref.innerHTML=_2; } } var descx=0; var descy=0; 
		
		function popmousemove(e){ descx=bw.ns4||bw.ns6?e.pageX:event.x; descy=bw.ns4||bw.ns6?e.pageY:event.y; } var oDesc; var oDescAide; 
		
		function popup(_4){ if(oDesc){ oDesc.writeIt("
"+_4+"
"); if(bw.ie5||bw.ie6){ descy=descy+document.body.scrollTop; } oDesc.css.left=(descx+fromX)+px; oDesc.css.top=(descy+fromY)+px; oDesc.css.visibility="visible"; } } 
		
		function popupAide(_5){ if(oDescAide){ oDescAide.writeIt("
"+_5+"	
"); if(bw.ie5||bw.ie6){ descy=descy+document.body.scrollTop; } oDescAide.css.left=(descx+fromX)-165+px; oDescAide.css.top=(descy+fromY)+px; oDescAide.css.visibility="visible"; } } 
		
		function popupBlue(_6){ if(oDesc){ oDesc.writeIt("
"+_6+"
"); if(bw.ie5||bw.ie6){ descy=descy+document.body.scrollTop; } oDesc.css.left=(descx+fromX)+px; oDesc.css.top=(descy+fromY)+px; oDesc.css.visibility="visible"; } } 
		
		function popout()
		{ if(oDesc){ oDesc.css.visibility="hidden"; } } 
		
		function popoutAide()
		{ if(oDescAide){ oDescAide.css.visibility="hidden"; } } 
		
		function setPopup()
		{ if(bw.ns4){ document.captureEvents(Event.MOUSEMOVE); } document.onmousemove=popmousemove; oDesc=new makeObj("divDescription"); } 
		
		function setPopupAide()
		{ if(bw.ns4){ document.captureEvents(Event.MOUSEMOVE); } document.onmousemove=popmousemove; oDescAide=new makeObj("divDescriptionAide"); }
	
		function centerWindow(){ var _1=document.location.search.substring(1); param=_1.split("&&"); newRien=param[0].split("=="); newWinL=param[1].split("=="); newWinH=param[2].split("=="); window.resizeTo(newWinL[1],newWinH[1]); var _2=0,winH=0; if(parseInt(navigator.appVersion)>3){ if(navigator.appName=="Netscape"){ _2=window.innerWidth+25; winH=window.innerHeight+35; } if(navigator.appName.indexOf("Microsoft")!=-1){ _2=document.body.offsetWidth; winH=document.body.offsetHeight+20; } } var _3=_2; var _4=winH; widthmax=screen.width; widthmax=widthmax-80; heightmax=screen.height; heightmax=heightmax-20; var _5=0; var _6=0; if(_3>widthmax){ _3=widthmax; _5=1; } if(_4>heightmax){ _4=heightmax; _6=1; } if((_6==1)&&(_5==1)){ self.moveTo(0,0); self.resizeTo(screen.width,(screen.height-50)); }else{ if(_5==1){ self.moveTo(0,(screen.height-_4)/2); self.resizeTo(screen.width,_4+30); }else{ if(_6==1){ self.moveTo((screen.width-_3)/2,0); self.resizeTo((_3+20),(screen.height-50)); }else{ self.moveTo((screen.width-_3)/2,(screen.height-_4)/2); self.resizeTo((_3+20),(_4+20)); } } } self.focus(); }
	
		function init(){ document.getElementById("branch1").style.display="none"; document.getElementById("branch2").style.display="none"; document.getElementById("branch3").style.display="none"; document.getElementById("branch4").style.display="none"; } var openImg=new Image(); openImg.src="../../../templates/llv/images/arrow_branch_open.gif"; var closedImg=new Image(); closedImg.src="../../../templates/llv/images/arrow_branch_close.gif"; function showBranch(_1){ var _2=document.getElementById(_1).style; if(_2.display=="block"){ _2.display="none"; }else{ _2.display="block"; } _2.visibility="visible"; } function swapFolder(_3){ objImg=document.getElementById(_3); if(objImg.src.indexOf("arrow_branch_close.gif")>-1){ objImg.src=openImg.src; }else{ objImg.src=closedImg.src; } } var openImgContent=new Image(); openImgContent.src="../../../templates/llv/images/arrow_content_open.gif"; var closedImgContent=new Image(); closedImgContent.src="../../../templates/llv/images/arrow_content_close.gif"; function swapFolderContent(_4){ objImgContent=document.getElementById(_4); if(objImgContent.src.indexOf("arrow_content_close.gif")>-1){ objImgContent.src=openImgContent.src; }else{ objImgContent.src=closedImgContent.src; } } 
	
		function DoPopup(_5,_6,_7,_8){ var _9=""; _7=eval(_7)+100; _8=eval(_8)+160; if(_6=="form"){ _9="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=455,height=520"; window.open(_5,"newWin",_9); } if(_6=="demo"){ _9="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=444,height=313"; window.open(_5,"newWin",_9); } if(_6=="agenda"){ _9="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=565,height=410"; window.open(_5,"newWin",_9); } if(_6=="impression"){ _9="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=660,height=640"; window.open(_5,"impression",_9); } if(_6=="envoyer"){ _9="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=560,height=440"; window.open(_5,"newWin",_9); } if(_6=="detailImage"){ _9="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+_7+",height="+_8; strNewUrl=_5+"&&newWidth=="+_7+"&&newHeight=="+_8; window.open(strNewUrl,"newWin2",_9); } if(_6=="detailOeuvre"){ _9="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=700,height=410"; window.open(_5,"newWin",_9); } if(_6=="aideDetail"){ _9="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=390,height=260"; window.open(_5,"newWin",_9); } if(_6=="OAL"){ _9="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+window.screen.availWidth+",height="+window.screen.availHeight; window.open(_5,"newWin",_9); } if(_6=="jeu"){ _9="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=650,height=650"; window.open(_5,"newWin",_9); } if(_6=="biographie"){ _9="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=750,height=500"; window.open(_5,"newWin3",_9); } } function chgColorContent(id){ objBackground=document.getElementById(id); if(objBackground.className.indexOf("bgWapContentOff")>-1){ objBackground.className="bgWapContentOn"; }else{ objBackground.className="bgWapContentOff"; } } function chgBgBlocTitle(id){ objBackground=document.getElementById(id); if(objBackground.className.indexOf("bgTitlePresContentOff")>-1){ objBackground.className="bgTitlePresContentOn"; }else{ objBackground.className="bgTitlePresContentOff"; } } function chgColorNavLeft(id){ objClass=document.getElementById(id); if(objClass.className.indexOf("titleBoxOff")>-1){ objClass.className="titleBoxOn"; }else{ objClass.className="titleBoxOff"; } } var oldCol; function chgColorNavMac(td,_12){ if(_12==0){ oldCol=td.className; td.className="bgMenuMacOn"; }else{ td.className="bgMenuMacOff"; } } var ver=navigator.appVersion; var agent=navigator.userAgent.toLowerCase(); var ie5=(this.ver.indexOf("msie 5")>-1)?1:0; var mac=this.agent.indexOf("mac")>-1;
	*/

function popup(page,vWidth,vHeight,scroll) 
{
	siteWindow = window.open(page,'','width='+vWidth+',height='+vHeight+',scrollbars='+scroll+',top=0,left=0,status=no,toolbar=no,resizable=no,location=no,menubar=no')
	siteWindow.focus()
}
function centerWindow(){
	//alert ("allo");
	var _1=document.location.search.substring(1);
	param=_1.split("&&");
	newRien=param[0].split("==");
	newWinL=param[1].split("==");
	newWinH=param[2].split("==");

	newWinH[1]=Number(newWinH[1])+180;

	window.resizeTo(newWinL[1],newWinH[1]);
	var _2=0,winH=0;
	if(parseInt(navigator.appVersion)>3){
		if(navigator.appName=="Netscape"){
			_2=window.innerWidth+25;
			winH=window.innerHeight+35;
		}
		if(navigator.appName.indexOf("Microsoft")!=-1){
			_2=document.body.offsetWidth;
			winH=document.body.offsetHeight+20;
		}
	}
	var _3=_2;
	var _4=winH;
	widthmax=screen.width;
	widthmax=widthmax-80;
	heightmax=screen.height;
	heightmax=heightmax-20;
	var _5=0;
	var _6=0;
	if(_3>widthmax){
		_3=widthmax;
		_5=1;
	}
	if(_4>heightmax){
		_4=heightmax;
		_6=1;
	}
	if((_6==1)&&(_5==1)){
		self.moveTo(0,0);
		self.resizeTo(screen.width,(screen.height-50));
	}else{
		if(_5==1){
			self.moveTo(0,(screen.height-_4)/2);
			self.resizeTo(screen.width,_4+30);
		}else{
			if(_6==1){
				self.moveTo((screen.width-_3)/2,0);
				self.resizeTo((_3+20),(screen.height-50));
			}else{
				self.moveTo((screen.width-_3)/2,(screen.height-_4)/2);
				self.resizeTo((_3+20),(_4+20));
			}
		}
	}
	self.focus();
}
