var sPath='scripts/src/';var sTgt='self';
var theme=new Array();theme['apprendre']=21;theme['sexercer']=70;theme['sevaluer']=140;
var sBase=self.location.href;if(sBase.indexOf("?")>=0) sBase=sBase.substring(0,sBase.lastIndexOf("?"));sBase=sBase.substring(0,sBase.lastIndexOf("/"))+'/';sPath=buildUrl(sBase,sPath);
function toHex(iNum){var iRet=iNum.toString(16);return ((iRet.length==1)?'0'+iRet:iRet);}
function hToRGB(n1,n2,hue){if(hue<0) hue+=255;if(hue>255) hue-=255;if(hue<42) return (n1+(((n2-n1)*hue+21)/42));else if(hue<127) return (n2);else if(hue<170) return (n1+(((n2-n1)*(170-hue)+21)/42));else return (n1);}
function HLStoRGB(hue,sat,lum){var hR,hG,hB;var M1,M2;if(sat==0) R=G=B=lum;else{if(lum<=127) M2=Math.floor((lum*(255+sat)+127)/255);else M2=Math.floor(lum+sat-((lum*sat)+127)/255);M1=2*lum-M2;hR=Math.floor((hToRGB(M1,M2,hue+85)*255+127)/255);hG=Math.floor((hToRGB(M1,M2,hue)*255+127)/255);hB=Math.floor((hToRGB(M1,M2,hue-85)*255+127)/255);} return '#'+toHex(hR)+toHex(hG)+toHex(hB);}var _bgcol="";var _cnbor="#645E00";var _cncol="#F4F3EC";var _bordr="0";var _padd="3";var _tbcol="#645E00";var _tfcol="#F4F3EC";var _scstp=15;var _close="Quitter cette annotation";var _zoom="Ouvrir dans une nouvelle fenetre";var _up="Defiler vers le haut";var _down="Defiler vers le bas";var _minmx="Reduire / Agrandir la taille";var _focus="L\'annotation est ouverte en arri\xE8re plan !";var upbtn0=new Image();upbtn0.src=sPath+'up0.gif';var upbtn1=new Image();upbtn1.src=sPath+'up1.gif';var downbtn0=new Image();downbtn0.src=sPath+'down0.gif';var downbtn1=new Image();downbtn1.src=sPath+'down1.gif';var closebtn=new Image();closebtn.src=sPath+'close.gif';var minmaxbtn=new Image();minmaxbtn.src=sPath+'minmax.gif';var zoombtn=new Image();zoombtn.src=sPath+'zoom.gif';var emptybtn=new Image();emptybtn.src=sPath+'pix.gif';var bSAFE=false;var bIE=false;var bNS4=false;var bDOM=false;var iADJ=-1;
function detectEnv(){var pp=parent.parent;if (pp.bIdRun){bSAFE=pp.bSafe;bIE=pp.bIE;bNS4=pp.bNS4;bDOM=pp.bDOM;iADJ=pp.iADJ;} else{if(document.all&&document.body&&document.body.innerHTML) bIE=true;else if(document.layers) bNS4=true;else if(document.createElement&&document.appendChild&&document.getElementsByTagName) bDOM=true;else bSAFE=true;var uA=navigator.userAgent.toLowerCase();if(uA.indexOf('icab')>=0) {bIE=false;bSAFE=true}iADJ=0;if(bIE){var nVer=parseFloat(uA.substring(uA.indexOf('msie ')+5, uA.indexOf(';',uA.indexOf('msie '))));if(uA.indexOf('mac')!=-1) iADJ=(nVer<5)?1:2;else if(nVer<5) iADJ=4;else if(nVer<5.5) iADJ=6;}else if(bNS4){if((uA.indexOf('mac')==-1)&&(uA.indexOf('win')==-1)) iADJ=3;else if(uA.indexOf('mac')!=-1) iADJ=5;}else if(bDOM){if(uA.indexOf('mac')!=-1) iADJ=7;}}}
function showPopup(sId,sTitle,sCnt,iX,iY,iWid,iHei,sOpt,sHue){if(iADJ<0) detectEnv();var oTgt=eval(sTgt);if(!oTgt.oMsg) oTgt.oMsg=new MessageSet();oTgt.oMsg.showmessage(sId,sTitle,sCnt,iX,iY,iWid,iHei,sOpt,sHue);sResize(oTgt, sTgt + '.history.go(0)');}
function closeWindows(){var oTgt=eval(sTgt);if(oTgt&&oTgt.oMsg) oTgt.oMsg.closeall(true);}
function MessageSet(){this.msg=new Array();this.num=0;this.cur='';this.showmessage=msshow;this.closeall=msclosall;this.closeone=msclose;}
function msshow(sId,sTitle,sCnt,iX,iY,iWid,iHei,sOpt,sHue){var bCnt=false;var bEvt=false;this.cur=sId;if(!this.msg[sId]){this.msg[sId]=new MessageBox();this.msg[sId].init(this,sId,sTitle,sCnt,iX,iY,iWid,iHei,sOpt,sHue);this.msg[sId].crea();bCnt=true;bEvt=true;this.num++;}else if((this.msg[sId].bwnd)&&(this.msg[sId].mla.closed)){this.msg[sId].crea();bCnt = true;}else if (this.msg[sId].id==''){this.msg[sId].id=sId;bCnt=true;}this.msg[sId].show();if (bCnt) this.msg[sId].cloa();if (bEvt) this.msg[sId].hevt();}
function msclosall(bWnd){for(var i in this.msg) this.closeone(i,bWnd);}
function msclose(sId,bWnd){if((!this.msg[sId].bwnd&&(this.msg[sId].id!='')&&!bWnd)||(this.msg[sId].bwnd&&!this.msg[sId].mla.closed)) this.msg[sId].clos();}
function MessageBox(){this.par=null;this.tgt='';this.id='';this.mla=null;this.cfr=null;this.cla=null;this.acl=null;this.burl=false;this.cnt='';this.tit='';this.bvis=false;this.wid=0;this.hei=0;this.x=0;this.y=0;this.scrx=0;this.scry=0;this.inwid=0;this.inhei=0;this.bwnd=false;this.bcent=false;this.bsiz=true;this.bmov=false;this.bscr=true;this.bclos=true;this.bunl=false;this.bzoo=false;this.btog=false;this.bloa=false;this.ibtn=0;this.itim=0;this.bmvn=false;this.bmin=false;this.xoff=0;this.yoff=0;this.init=mini;this.crea=mcrea;this.show=mshow;this.cloa=mcloa;this.lcnt=mlcnt;this.hevt=mevt;this.clos=mclos;this.ipos=mipos;this.gstr=mgstr;this.svis=msvis;this.move=mmove;this.size=msize;this.frnt=mfrnt;this.back=mback;this.zoom=mzoom;this.togg=mtogg;this.scrl=mscrl;this.stop=mstop;this.upd=mupd;}
function mini(sPar,sId,sTitle,sCnt,iX,iY,iWid,iHei,sOpt,sAct){if(theme[sAct]){_cnbor=_tbcol=HLStoRGB(theme[sAct],255,80);_cncol=HLStoRGB(theme[sAct],255,245);_tfcol=HLStoRGB(theme[sAct],255,245);}this.par=sPar;this.tgt=sTgt;this.id=sId;this.tit=sTitle;this.x=iX;this.y=iY;this.scrx=iX;this.scry=iY;this.cnt=sCnt;this.burl=(sCnt.substring(0,4).toLowerCase()=='url:');if((sOpt.indexOf("window")>=0)||bSAFE) this.bwnd=true;if(sOpt.indexOf('center')>=0) this.bcent=true;if((sOpt.indexOf('move')>=0)&&((iADJ!=1)||!this.burl)) this.bmov=true;if(sOpt.indexOf('noresize')>=0) this.bsiz=false;if(sOpt.indexOf('noscroll')>=0) this.bscr=false;if(sOpt.indexOf('noclose')>=0) this.bclos=false;if(sOpt.indexOf('unload')>=0) this.bunl=true;if(((sOpt.indexOf('zoom')>=0)||(iADJ==1))&&(this.burl)) this.bzoo=true;if((sOpt.indexOf('minmax')>=0)&&((iADJ!=1)||!this.burl)) this.btog=true;this.wid=(iWid+2*parseInt(_padd))+2+(parseInt(_bordr)>0)*(2*parseInt(_bordr)+2)+(this.bscr&&bNS4)*(21+(parseInt(_bordr)>0)*2);this.hei=(iHei+2*parseInt(_padd))+2+(parseInt(_bordr)>0)*(2*parseInt(_bordr)+2)+((this.tit!='')||this.bzoo||this.btog||this.bclos)*(21+(parseInt(_bordr)>0)*2);this.inwid=iWid;this.inhei=iHei;}
function mcrea(){this.ipos();if(!this.bwnd){this.mla=cLay(eval(this.tgt),this.id,this.x,this.y,this.wid,this.hei);wLay(this.mla,this.gstr());}else{if(bSAFE&&this.burl) this.mla=cWnd(eval(this.tgt),this.id,buildUrl(sBase,this.cnt.substring(4,this.cnt.length)),this.x,this.y,this.wid,this.hei,this.bscr,this.bsiz);else this.mla=cWnd(eval(this.tgt),this.id,sPath+'empty.htm',this.x,this.y,this.wid,this.hei,this.bscr,this.bsiz);}}
function mshow(){var tTgt=eval(this.tgt);if (!this.bwnd){if((this.x+ this.wid<=gFSL(tTgt))||(this.x>=gFSL(tTgt)+gFIW(tTgt))) this.x=this.scrx+gFSL(tTgt);if((this.y+(this.bmin?25:this.hei)<=gFST(tTgt))||(this.y>=gFST(tTgt)+gFIH(tTgt))) this.y=this.scry+gFST(tTgt);this.move(this.x,this.y);this.svis(true);}this.frnt(true);}
function mcloa(){this.bloa=false;if(!this.bwnd){if(this.cla==null){this.cfr=gFrame(eval(this.tgt),this.mla,this.id+'_frame',this.burl);this.cla=gFrame(eval(this.tgt),((this.cfr!=null)?this.cfr:this.mla),this.id+'_content',this.burl);this.acl=gAlt(eval(this.tgt),this.id+'_content');}if(!this.burl&&!bNS4) this.lcnt(this.cnt,false,true);else if(this.burl&&bNS4) this.lcnt(this.cnt,true,true);else this.lcnt('url:'+sPath+'msgbox_runfrm.htm',true,false);}else {if(bSAFE&&!this.burl) wFrame(this.mla,this.cnt);else if(!bSAFE) this.lcnt('url:'+sPath+'msgbox_runwnd.htm',true,false);}}
function mlcnt(sCnt,bUrl,bSLoad){if(!this.bwnd){if(!bUrl) wLay((this.acl==null)?this.cla:this.acl,sCnt);else opnUrl(this.cla,buildUrl(sBase,sCnt.substring(4,sCnt.length)));} else{if(!bUrl){wFrame(this.mla,sCnt);if(bSLoad) wndBck(this.mla,_cncol);} else opnUrl(this.mla,buildUrl(sBase,sCnt.substring(4,sCnt.length)));}this.bloa=bSLoad;}
function mevt(){if(!this.bwnd&&this.bmov){this.mla.msg=this;if(bIE){this.mla.style.cursor='hand';this.mla.onmousedown=mouseDown;eval(this.tgt).document.body.onmouseup=mouseUp;} else if(bNS4){this.mla.captureEvents(Event.MOUSEDOWN);this.mla.onmousedown=mouseDown;eval(this.tgt).document.captureEvents(Event.MOUSEUP);eval(this.tgt).document.onmouseup=mouseUp;} else if(bDOM){this.mla.addEventListener("mousedown",mouseDown,false);eval(this.tgt).document.addEventListener("mouseup",mouseUp,false);}}}
function mclos(){if(!this.bwnd){this.move(-2*this.wid,-2*this.hei);this.svis(false);if(this.bunl){this.lcnt('url:'+sPath+'empty.htm',true,false,false);this.id='';}} else{if(!this.mla.closed) this.mla.close();}}
function mipos(){var tTgt=eval(this.tgt);if(!this.bwnd){if(this.bcent&&(gFIW(tTgt)>0)){this.scrx=Math.floor(gFIW(tTgt)/2)-Math.floor(this.wid/2);this.x=this.scrx+gFSL(tTgt);this.scry=Math.floor(gFIH(tTgt)/2)-Math.floor(this.hei/2);this.y=this.scry+gFST(tTgt);} else{this.scrx=this.x;this.x+=gFSL(tTgt);this.scry=this.y;this.y+=gFST(tTgt);}} else if(this.bwnd&&this.bcent&&(gSW(tTgt)>0)){this.x=Math.floor(gSW(tTgt)/2)-Math.floor(this.wid/2);this.y=Math.floor(gSH(tTgt)/2)-Math.floor(this.hei/2);}}
function mgstr(){var sCode="";var cellw=this.inwid+2*parseInt(_padd);var cellh=this.inhei+2*parseInt(_padd);var btnnum=0+(this.bzoo)*1+(this.btog)*1;var istit=((this.tit!='')||((btnnum>0)||this.bclos));var titw=this.wid-2-(parseInt(_bordr)>0)*(2*parseInt(_bordr)+2);var cleft=1+(parseInt(_bordr)>0)*(parseInt(_bordr)+1)+parseInt(_padd);var ctop=1+(parseInt(_bordr)>0)*(parseInt(_bordr)+1)+parseInt(_padd)+(istit)*(20+1+(parseInt(_bordr)>0)*2);sCode+='<table border="'+_bordr+'" width="'+this.wid+'" height="'+this.hei+'" cellspacing="1" cellpadding="0"'+((_bgcol!='')?' bgcolor="'+_bgcol+'"':'')+'>';if(istit){sCode+='<tr><td valign="top" width="'+(titw-20*(1+btnnum))+'" height="20"'+((_tbcol!='')?' bgcolor="'+_tbcol+'"':'')+'>&nbsp;<font face="Verdana,Arial" size="2" color="'+_tfcol+'"><b>'+this.tit+'</b></font></td>';if(btnnum>0){sCode+='<td align="center" width="'+(20*btnnum)+'" height="20" valign="middle">';if(this.bzoo) sCode+='<img src="'+emptybtn.src+'" width="1" height="17"><a href="javascript:void(0)" onclick="oMsg.msg[\''+this.id+'\'].zoom();return false" onmouseover="oMsg.msg[\''+this.id+'\'].ibtn=5;window.status=\''+_zoom+'\';return true" onmouseout="oMsg.msg[\''+this.id+'\'].ibtn=0;window.status=\'\';return true"><img src="'+zoombtn.src+'" width="17" height="17" border="0"></a>';if(this.btog) sCode+='<img src="'+emptybtn.src+'" width="1" height="17"><a href="javascript:void(0)" onclick="oMsg.msg[\''+this.id+'\'].togg();return false" onmouseover="oMsg.msg[\''+this.id+'\'].ibtn=6;window.status=\''+_minmx+'\';return true" onmouseout="oMsg.msg[\''+this.id+'\'].ibtn=0;window.status=\'\';return true"><img src="'+minmaxbtn.src+'" width="17" height="17" border="0"></a>';sCode+='</td>';}sCode+='<td align="right" width="20" height="20" valign="middle"><img src="'+emptybtn.src+'" width="1" height="17">';if(this.bclos) sCode+='<a href="javascript:void(0)" onclick="oMsg.msg[\''+this.id+'\'].clos(); return false" onmouseover="oMsg.msg[\''+this.id+'\'].ibtn=7;window.status=\''+_close+'\';return true" onmouseout="oMsg.msg[\''+this.id+'\'].ibtn=0;window.status=\'\';return true"><img src="'+closebtn.src+'" width="17" height="17" border="0"></a>';else sCode+='<img src="'+emptybtn.src+'" width="17" height="17">';sCode+='<img src="'+emptybtn.src+'" width="1" height="17"></td></tr>';}sCode+='<tr>';sCode+='<td colspan="'+(1+1*(btnnum>0)+1*(!bNS4||!this.bscr))+'" width="'+cellw+'" height="'+cellh+'" align="center"'+((_cnbor!='')?' bgcolor="'+_cnbor+'"':'')+'><img src="'+emptybtn.src+'" width="1" height="'+cellh+'" align="left">';if(bNS4) sCode+='<layer id="'+this.id+'_frame" width="'+this.inwid+'" height="'+this.inhei+'" left="'+cleft+'" top="'+ctop+'" visibility="show"'+((_cncol!='')?' bgcolor="'+_cncol+'"':'')+'><layer id="'+this.id+'_content" width="'+this.inwid+'" height="'+this.inhei+'" left="0" top="0" visibility="show" src="'+sPath+'empty.htm" onmouseover="oMsg.msg[\''+this.id+'\'].ibtn=1;return true" onmouseout="oMsg.msg[\''+this.id+'\'].ibtn=0;return true"></layer></layer>';sCode+='</td>';if(bNS4&&this.bscr){sCode +='<td width="20" height="'+cellh+'" valign="bottom">';sCode+='<a href="javascript:void(0)" onmousedown="oMsg.msg[\''+this.id+'\'].scrl();return false" onmouseup="oMsg.msg[\''+this.id+'\'].stop();return false" onmouseover="oMsg.msg[\''+this.id+'\'].ibtn=2;window.status=\''+_up+'\';return true" onmouseout="oMsg.msg[\''+this.id+'\'].stop();oMsg.msg[\''+this.id+'\'].ibtn=0;window.status=\'\';return true"><img src="'+upbtn1.src+'" name="'+this.id+'_up_btn" width="17" height="21" border="0"></a><br>';sCode+='<a href="javascript:void(0)" onmousedown="oMsg.msg[\''+this.id+'\'].scrl();return false" onmouseup="oMsg.msg[\''+this.id+'\'].stop();return false" onmouseover="oMsg.msg[\''+this.id+'\'].ibtn=3;window.status=\''+_down+'\';return true" onmouseout="oMsg.msg[\''+this.id+'\'].stop();oMsg.msg[\''+this.id+'\'].ibtn=0;window.status=\'\';return true"><img src="'+downbtn1.src+'" name="'+this.id+'_down_btn" width="17" height="21" border="0"></a>';sCode+='</td>';}sCode+='</tr></table>';if(!bNS4){if(this.burl) sCode+='<iframe id="'+this.id+'_content" scrolling="'+((this.bscr)?'auto':'no')+'" border="0" frameborder="no" marginwidth="5" marginheight="5" style="position:absolute;left:'+cleft+';top:'+ctop+';width:'+this.inwid+';height:'+this.inhei+';border-style:none" src="'+sPath+'empty.htm"></iframe>';else sCode+='<div id="'+this.id+'_content" style="position:absolute;left:'+cleft+';top:'+ctop+';width:'+this.inwid+';height:'+this.inhei+';clip:rect(0,'+this.inwid+','+this.inhei+',0);overflow:'+((iADJ==2)?'hidden':'auto')+((_cncol!='')?';background-color:'+_cncol:'')+';scrollbar-base-color:#DEDEC8;cursor:auto" onmouseover="oMsg.msg[\''+this.id+'\'].ibtn=1;return true" onmouseout="oMsg.msg[\''+this.id+'\'].ibtn=0;return true"></div>';}sCode+=(iADJ==2)?' ':'';return sCode;}
function mmove(iLeft,iTop){sPos(this.mla,false,iLeft,iTop);}
function msize(iWid,iHei){sLVS(this.mla,iWid,iHei);}
function msvis(bVis){this.bvis=bVis;sLV(this.mla,this.bvis);}
function mfrnt(bShow){if(!this.bwnd){sLTF(eval(this.tgt),this.id,this.par.num+1);for(var item in this.par.msg) if((this.par.msg[item].id!=this.id)&&(this.par.msg[item].id!='')) this.par.msg[item].back();if((iADJ==1)&&this.burl){window.scrollBy(1,1);window.scrollBy(-1,-1);}} else if(this.mla.focus) this.mla.focus();else window.alert(_focus);}
function mback(){if(!this.bwnd){sLTB(eval(this.tgt),this.id);if(this.burl){if((iADJ==1)||(iADJ==2)||(iADJ==4)||(iADJ==6)||(iADJ==7)) this.clos();}}}
function mtogg(){if(!this.bmin){if(bNS4||bDOM||((iADJ>0))&&(iADJ<6)) sLV(this.cla,false);this.size(this.wid,25);this.bmin=true;} else{if(bNS4||bDOM||((iADJ>0))&&(iADJ<6)) sLV(this.cla,true);this.size(this.wid,this.hei);this.bmin=false;}}
function mzoom(){var wndoptions='toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1';var zoomWnd=self.open(this.cnt.substring(4,this.cnt.length),'_blank',wndoptions);}
function mscrl(){if(this.ibtn==3){var cltop=this.cla.top;var clleft=this.cla.left;var clheight=this.cla.clip.height;var cfheight=this.cfr.clip.height;if(cltop+clheight-(1+(this.ibtn==4)*4)*_scstp>=cfheight) this.cla.moveTo(clleft,cltop-(1+(this.ibtn==4)*4)*_scstp);else if(cltop+clheight>cfheight) this.cla.moveTo(clleft,cfheight-clheight);window.status=Math.floor(cltop*100/(cfheight-clheight))+" %";this.itim=setTimeout(this.tgt+".oMsg.msg['"+this.id+"'].scrl()",10);} else if(this.ibtn==2){var cltop=this.cla.top;var clleft=this.cla.left;var clheight=this.cla.clip.height;var cfheight=this.cfr.clip.height;if(cltop+(1+(this.ibtn==1)*4)*_scstp<=0) this.cla.moveTo(clleft,cltop+(1+(this.ibtn==1)*4)*_scstp);else if(cltop<0) this.cla.moveTo(clleft,0);window.status=Math.ceil(cltop*100/(cfheight-clheight))+" %";this.itim=setTimeout(this.tgt+".oMsg.msg['"+this.id+"'].scrl()",10);}}
function mstop(){clearTimeout(this.itim);this.upd();}
function mupd(){var tTgt=eval(this.tgt);var tImg=tTgt.oMsg.msg[this.id].mla.document.images;if(this.cla.top+this.cla.clip.height<=this.cfr.clip.height) tImg[this.id+'_down_btn'].src=downbtn0.src;else tImg[this.id+'_down_btn'].src=downbtn1.src;if(this.cla.top>=0) tImg[this.id+'_up_btn'].src=upbtn0.src;else tImg[this.id+'_up_btn'].src=upbtn1.src;}
function sResize(oTgt,fFunc){if(bNS4) oTgt.onresize=new Function(fFunc);}
function gFIW(oFrame){if(bIE) return oFrame.document.body.clientWidth;else if(bNS4) return oFrame.innerWidth;else if(bDOM){if(oFrame.innerWidth) return oFrame.innerWidth;else return parseInt(oFrame.style.width);}else return 0;}
function gFIH(oFrame){if(bIE) return oFrame.document.body.clientHeight;else if(bNS4) return oFrame.innerHeight;else if(bDOM){if (oFrame.innerHeight) return oFrame.innerHeight;else return parseInt(oFrame.style.height);}else return 0;}
function gFSL(oFrame) {if(bIE) return oFrame.document.body.scrollLeft;else if(bNS4) return oFrame.pageXOffset;else if(bDOM) return oFrame.scrollX;else return 0;}
function gFST(oFrame) {if(bIE) return oFrame.document.body.scrollTop;else if(bNS4) return oFrame.pageYOffset;else if(bDOM) return oFrame.scrollY;else return 0;}
function gSW(){if(self.screen) return screen.availWidth;else return 0;}
function gSH(){if(self.screen) return screen.availHeight;else return 0;}
function cLay(oPar,sId,iLeft,iTop,iWidth,iHeight){if(bIE){var nlayer='<div id="'+sId+'" style="position:absolute;left:'+iLeft+';top:'+iTop+';width:'+iWidth+';height:'+iHeight+';clip:rect(0,'+iWidth+','+iHeight+',0);overflow:hidden;visibility:hidden" onselectstart="return false"></div>';if(iADJ==1) oPar.document.body.insertAdjacentHTML("afterBegin",nlayer);else oPar.document.body.insertAdjacentHTML("beforeEnd",nlayer);return oPar.document.all[sId];} else if(bNS4){var nlayer=oPar.document.layers[sId]=new Layer(iWidth,oPar);nlayer.name=sId;nlayer.moveTo(iLeft,iTop);nlayer.resizeTo(iWidth,iHeight);nlayer.visibility='hide';return nlayer;} else if(bDOM){var nlayer=oPar.document.createElement('DIV');nlayer.setAttribute('id',sId);nlayer.setAttribute('style','position:absolute;left:'+iLeft+';top:'+iTop+';width:'+iWidth+';height:'+iHeight+';clip:rect(0,'+iWidth+','+iHeight+',0);overflow:hidden;visibility:hidden');oPar.document.body.appendChild(nlayer);return nlayer;} else return null;}
function cWnd(oPar,sId,sUrl,iLeft,iTop,iWidth,iHeight,bScroll,bSize){var wndoptions='toolbar=0,location=0,directories=0,status=1,menubar=0'+((bScroll)?',scrollbars=1':',scrollbars=0')+((bSize)?',resizable=1':',resizable=0')+',width='+iWidth+',height='+iHeight+',top='+iTop+',left='+iLeft;var msgWnd=oPar.open(sUrl,sId,wndoptions);return msgWnd;}
function wLay(oLayer,sContent){if(bIE||bDOM) oLayer.innerHTML=sContent;else if(bNS4){oLayer.document.open();oLayer.document.write(sContent);oLayer.document.close();}}
function wFrame(oFrame,sContent){if(bIE){if ((iADJ==1)||(iADJ==2)){oFrame.document.open();oFrame.document.write(sContent);oFrame.document.close();}else oFrame.document.body.innerHTML=sContent;}else if(bNS4||bSAFE){oFrame.document.open();oFrame.document.write(sContent);oFrame.document.close();}else if(bDOM){if(oFrame.contentDocument) oFrame.contentDocument.body.innerHTML=sContent;else oFrame.document.body.innerHTML=sContent;}}
function sLV(oLayer,bVisible){if(bIE||bDOM) oLayer.style.visibility=((bVisible)?'visible':'hidden');else if(bNS4) oLayer.visibility=((bVisible)?'show':'hide');}
function sFV(oFrame,bVisible){if(bIE) oFrame.document.body.style.visibility=(bVisible)?'visible':'hidden';else if(bNS4) oFrame.visibility=(bVisible)?'show':'hide';else if(bDOM) oFrame.style.visibility=(bVisible)?'visible':'hidden';}
function sPos(oLayer,bFrame,iLeft,iTop){if(bIE){if(bFrame){oLayer.document.body.style.left=iLeft;oLayer.document.body.style.top=iTop;} else{oLayer.style.left=iLeft;oLayer.style.top=iTop;}} else if(bNS4) oLayer.moveTo(iLeft,iTop);else if(bDOM){oLayer.style.left=iLeft;oLayer.style.top=iTop;}}
function sLTF(oTgt,sId,iZindex){if(bIE) oTgt.document.all[sId].style.zIndex=iZindex;else if(bNS4){for(var i=0;i<oTgt.document.layers.length;i++) if(oTgt.document.layers[i].name!=oTgt.document.layers[sId].name) oTgt.document.layers[sId].moveAbove(oTgt.document.layers[i]);}else if(bDOM) oTgt.document.getElementById(sId).style.zIndex=iZindex;}
function sLTB(oTgt,sId){if(bIE){if(oTgt.document.all[sId].style.zIndex>0) oTgt.document.all[sId].style.zIndex--;}else if(bDOM){if(oTgt.document.getElementById(sId).style.zIndex>0) oTgt.document.getElementById(sId).style.zIndex--;}}
function gFrame(oTgt,oPar,sId,bFrame){if(bIE){if((iADJ!=1)&&(iADJ!=2)&&(iADJ!=4)&&bFrame) return ((oTgt.frames[sId])?oTgt.frames[sId]:null);else return ((oTgt.document.all[sId])?oTgt.document.all[sId]:null);} else if(bNS4){return ((oPar.document.layers[sId])?oPar.document.layers[sId]:null);} else if(bDOM) return ((oTgt.document.getElementById(sId))?oTgt.document.getElementById(sId):null);else return null;}
function gAlt(oTgt,sId){if (bIE&&((iADJ==1)||(iADJ==2)||(iADJ==4))) return ((oTgt.frames[sId])?oTgt.frames[sId]:null);else return null;}
function opnUrl(oTgt,sUrl){if(oTgt.src) oTgt.src=sUrl;else if(oTgt.location) oTgt.location=sUrl;}
function wndBck(oWindow,sColor){if(bIE) oWindow.document.body.style.backgroundColor=sColor;else if(bNS4) oWindow.document.bgColor=sColor;else if(bDOM) oWindow.document.body.bgColor=sColor;}
function sLVS(oLayer,iWidth,iHeight){if (bIE||bDOM){if(iADJ==1) oLayer.style.overflow='visible';oLayer.style.clip='rect(0,'+iWidth+','+iHeight+',0)';if(iADJ==1) oLayer.style.overflow='hidden';}else if(bNS4) oLayer.resizeTo(iWidth,iHeight);}
function buildUrl(sS1,sS2){if(sS2.indexOf('://')>=0) return sS2;else if(sS2.indexOf('../')>=0){while (sS2.indexOf('../')>=0){sS2=sS2.substring(sS2.indexOf('../')+3,sS2.length);sS1=sS1.substring(0,sS1.length-1);sS1=sS1.substring(0,sS1.lastIndexOf("/"))+'/';}return sS1+sS2;} else return sS1+sS2;}
function mouseDown(e){var eBtn=0;var msTgt=eval(this.msg.tgt);if(bIE) eBtn=msTgt.event.button;else if(bNS4||bDOM) eBtn=e.which;this.msg.frnt(false);this.msg.bmvn=false;if((this.msg.ibtn==0)&&(eBtn==1)){if(bIE) this.msg.xoff=msTgt.event.clientX-this.msg.x;else if(bNS4||bDOM) this.msg.xoff=e.pageX-gFSL(msTgt)-this.msg.x;if(bIE) this.msg.yoff=msTgt.event.clientY-this.msg.y;else if(bNS4||bDOM) this.msg.yoff=e.pageY-gFST(msTgt)-this.msg.y;this.msg.bmvn=true;if(bIE){msTgt.document.body.msg=this.msg;if(msTgt.document.body.setCapture) msTgt.document.body.setCapture();msTgt.document.body.onmousemove=mouseMove;} else if(bNS4){msTgt.document.msg=this.msg;msTgt.document.captureEvents(Event.MOUSEMOVE);msTgt.document.onmousemove=mouseMove;} else if (bDOM){msTgt.document.msg=this.msg;msTgt.document.addEventListener("mousemove",mouseMove,false);}return ((bNS4)?false:true);} else return ((bNS4)?this.routeEvent(e):true);}
function mouseMove(e){if (this.msg.bmvn){var msTgt=eval(this.msg.tgt);var mPosX=0;var mPosY=0;if(bIE) mPosX=msTgt.event.clientX;else if(bNS4||bDOM) mPosX=e.pageX-gFSL(msTgt);if(bIE) mPosY=msTgt.event.clientY;else if(bNS4||bDOM) mPosY=e.pageY-gFST(msTgt);if((mPosX>=10)&&(mPosY>=10)&&(mPosX+10<=gFIW(msTgt))&&(mPosY+10<=gFIH(msTgt))){this.msg.x=mPosX-this.msg.xoff;this.msg.y=mPosY-this.msg.yoff;if (bDOM) setTimeout(this.msg.tgt + ".oMsg.msg['" + this.msg.id + "'].move(" + this.msg.x + "," + this.msg.y + ")", 1);else this.msg.move(this.msg.x,this.msg.y);return false;} else return true;} else return true;}
function mouseUp(e){if(this.msg&&this.msg.bmvn){if(bIE){if(this.releaseCapture) this.releaseCapture();this.onmousemove=null;} else if(bNS4){this.releaseEvents(Event.MOUSEMOVE);this.onmousemove=null;} else if(bDOM){this.removeEventListener("mousemove", mouseMove, false);}this.msg.bmvn=false;} return ((bNS4)?this.routeEvent(e):true);}