// FELIXONE.it © 2001/2010 - All rights reserved.

var fx_opnsize=new Array();var fx_lnk=new Array();var fx_tgt=new Array();var fx_opened;var fx_opdest;var fx_opelm;var fx_optop;var ftimer=null;var f2timer=null;var stimer=null;function doOutline(evnt){var targetId,srcElm,theElm;if(window.event){srcElm=window.event.srcElement;}else{srcElm=evnt.target;}var id=srcElm.id;fxxx_opn=id.substring(id.lastIndexOf("_"));fxxx_mname="";if(fxxx_opn=="_I"||fxxx_opn=="_H"){theElm=id;theElm=theElm.substr(0,theElm.length-2);targetId=theElm+"_S";fxxx_checkid=theElm;fxxx_mname=fxxx_checkid.replace(/_\d+/g,"");fxxx_mname=fxxx_mname.replace(/_$/,"");fxxx_topid=fxxx_mname+"__0_H";fxxx_mnid=fxxx_mname+"__0_S";if(ffxclk)allOff(fxxx_mname);fxxx_srcElm1=theElm+"_I";fxxx_srcElm2=theElm+"_F";fxxx_mtime=parseInt(eval(fxxx_mname+"_ffxsp"));fxxx_pout=eval(fxxx_mname+"_ffxpo").split(" ");fxxx_shift=eval(fxxx_mname+"_ffxlt").split(" ");fxxx_top=document.getElementById(fxxx_topid);fxxx_mn=document.getElementById(fxxx_mnid);if(document.getElementById(fxxx_srcElm1))fxxx_srcElm1=document.getElementById(fxxx_srcElm1);if(document.getElementById(fxxx_srcElm2))fxxx_srcElm2=document.getElementById(fxxx_srcElm2);fxxx_targetElm=document.getElementById(targetId);if(fxxx_targetElm){fxxx_prnElm=fxxx_targetElm.parentNode;fxxx_mytag=fxxx_prnElm.nodeName;fxxx_alltext=fxxx_targetElm.parentNode.innerHTML;if(fxxx_srcElm1.src)fxxx_imgopn=fxxx_srcElm1.src.replace(/_open\./,".");if(fxxx_srcElm2.src)fxxx_imgcnt=fxxx_srcElm2.src.replace(/_open\./,".");fxxx_go=true;if(fxxx_targetElm.style.display=="none"){if(eval(fxxx_mname+"_ffxcls"))closeAll(fxxx_alltext);if(fxxx_srcElm1.src&&fxxx_srcElm1.src.indexOf("_open.")==-1){fxxx_srcElm1.src=fxxx_imgopn.replace(/\.(\w+)$/,"_open.$1");}if(fxxx_srcElm2.src&&fxxx_srcElm2.src.indexOf("_open.")==-1){var tmpimg=fxxx_imgcnt.replace(/\.(\w+)$/,"_open.$1");if(file_exists(tmpimg))fxxx_srcElm2.src=tmpimg;}if(eval(fxxx_mname+"_ffxnm")=="Slide"&&fxxx_checkid.indexOf("__0")==-1){if(parseInt(fxxx_shift[0])==0)startOpen();fxxx_targetElm.style.zIndex="1";}else{if(fxxx_checkid.indexOf("__0")==-1){if(eval(fxxx_mname+"_ffxnm")=="Fade"){elmOpac(fxxx_targetElm);fadeIn(fxxx_targetElm.id,fxxx_mname);}fxxx_targetElm.style.position="relative";eval("fxxx_targetElm.style."+fxxx_pout[1]+"=fxxx_pout[0]+'px'");eval("fxxx_targetElm.style."+fxxx_shift[1]+"=fxxx_shift[0]+'px'");}fxxx_targetElm.style.display="";fxxx_targetElm.style.zIndex="1";if(parseInt(fxxx_shift[0])>0)fxxx_targetElm.style.height="0px";if(fxxx_top)fxxx_mn.style.left=fxxx_top.offsetLeft+"px";}}else{if(eval(fxxx_mname+"_ffxnm")=="Slide"){if(fxxx_checkid.indexOf("__0")==-1){if(eval(fxxx_mname+"_ffxcls")){closeAll(fxxx_alltext);}else startClose();}else closeAll(fxxx_alltext);}else{if(fxxx_srcElm1.src)fxxx_srcElm1.src=fxxx_imgopn;if(fxxx_srcElm2.src)fxxx_srcElm2.src=fxxx_imgcnt;fxxx_targetElm.style.display='none';if(fxxx_top)fxxx_mn.style.left=fxxx_top.offsetLeft+"px";}}}}else if(ffxclk){allOff();}}function reopen(node){var fxoid=node;var fxsrc,fxsrc1,fxsrc2,imgopn,imgcnt;var lr,ud,tlsrc,fxid="";var fxparam=fxoid.split(",");var fxsrcs=fxparam[1].split("_");var fstsrc=fxparam[0]+"__0_S";var topsrc=fxparam[0]+"__0_H";var pout=eval(fxparam[0]+"_ffxpo").split(" ");var xshift=eval(fxparam[0]+"_ffxlt").split(" ");topsrc=document.getElementById(topsrc);tlsrc=document.getElementById(fstsrc);if(tlsrc){tlsrc.style.display="";if(topsrc)tlsrc.style.left=topsrc.offsetLeft+"px";}for(var i=0;i<fxsrcs.length;i++){if(fxid!="")fxid+="_";fxid+=fxsrcs[i];fxsrc=fxparam[0]+"__"+fxid;fxsrc1=fxsrc+"_I";fxsrc2=fxsrc+"_F";fxsrc+="_S";fxsrc=document.getElementById(fxsrc);fxsrc1=document.getElementById(fxsrc1);if(document.getElementById(fxsrc2))fxsrc2=document.getElementById(fxsrc2);if(fxsrc){if(fxsrc1.src){imgopn=fxsrc1.src;if(imgopn.indexOf("_open.")==-1){fxsrc1.src=imgopn.replace(/\.(\w+)$/,"_open.$1");}}if(fxsrc2.src){imgcnt=fxsrc2.src;if(imgcnt.indexOf("_open.")==-1){var tmpimg=imgcnt.replace(/\.(\w+)$/,"_open.$1");if(file_exists(tmpimg))fxsrc2.src=tmpimg;}}lr=parseInt(eval(fxparam[0]+"_ffxpo"));ud=parseInt(eval(fxparam[0]+"_ffxlt"));fxsrc.style.position="relative";eval("fxsrc.style."+pout[1]+"=lr+'px'");eval("fxsrc.style."+xshift[1]+"=ud+'px'");fxsrc.style.display="";fxsrc.style.zIndex="1";if(ud>0)fxsrc.style.height="0px";}}}function allOff(mn){var thisElm,Elm1,Elm2,thisname,pout,xshift,oside,overt,mx;var imgopn,imgcnt,imx,cmx;var all=document.body.innerHTML;var matches=all.match(/id="*\w+_S"*/gi);if(matches){for(var m=0;m<matches.length;m++){mx=matches[m].match(/="*((\w+)_S)"*/i);imx=String(mx[1]).replace(/_S/,"_I");cmx=String(mx[1]).replace(/_S/,"_F");thisElm=document.getElementById(mx[1]);if(document.getElementById(imx))Elm1=document.getElementById(imx);if(document.getElementById(cmx))Elm2=document.getElementById(cmx);if(fxxx_opn==""){if(Elm1&&Elm1.src)Elm1.src=Elm1.src.replace(/_open\./,".");if(Elm2&&Elm2.src)Elm2.src=Elm2.src.replace(/_open\./,".");}thisname=mx[2].match(/^(\w+)__/i);pout=eval(thisname[1]+"_ffxpo").split(" ");xshift=eval(thisname[1]+"_ffxlt").split(" ");oside=pout[1];overt=xshift[1];if(mx[1].indexOf(mn)==-1){if(mx[1].indexOf("__0_S")==-1){thisElm.style.position="relative";eval("thisElm.style."+overt+"='0px'");eval("thisElm.style."+oside+"='0px'");}if(parseInt(xshift[0])>0)thisElm.style.height="0px";thisElm.style.display="none";}}}}function startOpen(){if(fxxx_mytag.toLowerCase()=="div")fxxx_prnElm.style.height="";fxxx_ops=parseInt(fxxx_pout[0]);fxxx_oside=fxxx_pout[1];fxxx_ovl=parseInt(fxxx_shift[0]);fxxx_overt=fxxx_shift[1];fxxx_targetElm.style.height="";fxxx_targetElm.style.overflow="hidden";fxxx_targetElm.style.display="";fxxx_oh=fxxx_targetElm.offsetHeight;fxxx_shf=fxxx_oh;fx_opnsize[fxxx_targetElm.id]=fxxx_oh;fxxx_h=0;fxxx_lf=0;fxxx_ot=0;fxxx_bt=0;openSlide();}function openSlide(){if(fxxx_h<fxxx_oh){fxxx_h+=parseInt(eval(fxxx_mname+"_ffxst"));if(fxxx_h>fxxx_oh)fxxx_h=fxxx_oh;fxxx_targetElm.style.height=fxxx_h+"px";setTimeout("openSlide()",fxxx_mtime);}if(fxxx_h==fxxx_oh){if(fxxx_targetElm.id.indexOf("__0_S")!=-1){if(fxxx_targetElm.style.overflow=="hidden")fxxx_targetElm.style.overflow="";fxxx_lf=fxxx_ops;}if(fxxx_lf<fxxx_ops){fxxx_lf+=parseInt(eval(fxxx_mname+"_ffxst"));if(fxxx_lf>fxxx_ops)fxxx_lf=fxxx_ops;fxxx_targetElm.style.position="relative";eval("fxxx_targetElm.style."+fxxx_oside+"=fxxx_lf+'px'");setTimeout("openSlide()",fxxx_mtime);}}if(fxxx_lf==fxxx_ops){if(fxxx_ot<fxxx_ovl){fxxx_ot+=parseInt(eval(fxxx_mname+"_ffxst"));if(fxxx_ot>fxxx_ovl)fxxx_ot=fxxx_ovl;eval("fxxx_targetElm.style."+fxxx_overt+"=fxxx_ot+'px'");setTimeout("openSlide()",fxxx_mtime);}}if(fxxx_ovl>0&&fxxx_ot==fxxx_ovl&&eval("fxxx_targetElm.style."+fxxx_oside)){var fxxx_csh=parseInt(fxxx_targetElm.style.height);if(fxxx_csh>0&&fxxx_checkid.indexOf("__0")==-1){fxxx_csh-=parseInt(eval(fxxx_mname+"_ffxst"));if(fxxx_csh<0)fxxx_csh=0;fxxx_targetElm.style.overflow="";fxxx_targetElm.style.height=fxxx_csh+"px";setTimeout("openSlide()",fxxx_mtime);}}if(fxxx_top)fxxx_mn.style.left=fxxx_top.offsetLeft+"px";}function startImplode(){if(fxxx_len>0){var prElm=fxxx_allElm[fxxx_ix].parentNode;var thetag=prElm.nodeName;if(thetag.toLowerCase()=="div")prElm.style.height="";fxxx_theElm=fxxx_allElm[fxxx_ix];fxxx_theElm1=fxxx_allElm1[fxxx_ix];fxxx_theElm2=fxxx_allElm2[fxxx_ix];fxxx_ch=fxxx_ach[fxxx_ix];fxxx_clf=parseInt(fxxx_pout[0]);fxxx_cside=fxxx_pout[1];fxxx_ct=parseInt(fxxx_shift[0]);fxxx_cvert=fxxx_shift[1];var stk=parseInt(eval(fxxx_mname+"_ffxst"));var spd=fxxx_mtime;var delay=(fxxx_ch/stk*spd)*1.4+((fxxx_clf/stk)*(spd/2))+(fxxx_ct/stk*spd)*1.4;fxxx_csh=fxxx_theElm.style.height?parseInt(fxxx_theElm.style.height):0;fxxx_len--;fxxx_ix++;closeSlide();setTimeout("startImplode()",parseInt(delay)+200);}}function startClose(){if(fxxx_mytag.toLowerCase()=="div")fxxx_prnElm.style.height="";fxxx_targetElm.style.overflow="hidden";if(!fxxx_checkid.match(/^\w+__\d+(_\d+)?$/i))setCont();fxxx_theElm=fxxx_targetElm;fxxx_theElm1=fxxx_srcElm1;fxxx_theElm2=fxxx_srcElm2;fxxx_clf=parseInt(fxxx_pout[0]);fxxx_cside=fxxx_pout[1];fxxx_ct=parseInt(fxxx_shift[0]);fxxx_cvert=fxxx_shift[1];fxxx_ch=fxxx_targetElm.offsetHeight;fxxx_csh=fxxx_targetElm.style.height?parseInt(fxxx_targetElm.style.height):0;closeSlide();}function closeSlide(){if(parseInt(fxxx_shift[0])>0){if(fxxx_csh<fxxx_ch){fxxx_csh+=parseInt(eval(fxxx_mname+"_ffxst"));if(fxxx_csh>fxxx_ch)fxxx_csh=fxxx_ch;fxxx_theElm.style.height=fxxx_csh+"px";setTimeout("closeSlide()",fxxx_mtime/2);}}if(fxxx_csh==fxxx_ch){if(fxxx_ct>0){fxxx_ct-=parseInt(eval(fxxx_mname+"_ffxst"));if(fxxx_ct<0)fxxx_ct=0;eval("fxxx_theElm.style."+fxxx_cvert+"=fxxx_ct+'px'");setTimeout("closeSlide()",fxxx_mtime);}}if(fxxx_ct==0){if(fxxx_theElm.id.indexOf("__0_S")!=-1)fxxx_clf=0;if(fxxx_clf>0){fxxx_clf-=parseInt(eval(fxxx_mname+"_ffxst"));if(fxxx_clf<0)fxxx_clf=0;fxxx_theElm.style.position="relative";eval("fxxx_theElm.style."+fxxx_cside+"=fxxx_clf+'px'");setTimeout("closeSlide()",fxxx_mtime/2);}}if(fxxx_clf==0){if(fxxx_ch>1){fxxx_ch-=parseInt(eval(fxxx_mname+"_ffxst"));if(fxxx_ch<1)fxxx_ch=1;fxxx_theElm.style.overflow="hidden";fxxx_theElm.style.height=fxxx_ch+"px";setTimeout("closeSlide()",fxxx_mtime);}else{if(fxxx_theElm1&&fxxx_theElm1.src)fxxx_theElm1.src=fxxx_imgopn;if(fxxx_theElm2&&fxxx_theElm2.src)fxxx_theElm2.src=fxxx_imgcnt;fxxx_theElm.style.display="none";}}if(parseInt(fxxx_shift[0])>0&&fxxx_ch<=1&&fxxx_theElm.id!=fxxx_checkid+"_S"&&fxxx_go){fxxx_theElm.style.display="none";fxxx_go=false;var first=fxxx_checkid.match(/__0/);if(first){startClose();}else startOpen();}if(fxxx_top)fxxx_mn.style.left=fxxx_top.offsetLeft+"px";}function elmOpac(src){clearTimeout(ftimer);if(src){src.style.filter="Alpha(Opacity=0)";src.style.opacity=0;}}function fadeIn(id,nm){var elm=document.getElementById(id);if(getIE()){var op=elm.style.filter;op=parseInt(op.match(/\d+/));if(!op)op=0;}else var op=elm.style.opacity*100;if(op<100){op+=parseInt(eval(nm+"_ffxst"));if(getIE()){elm.style.filter="Alpha(Opacity="+op+")";}else elm.style.opacity=op/100;ftimer=setTimeout("fadeIn('"+id+"','"+nm+"')",parseInt(eval(nm+"_ffxsp")));}}function fadeOut(id,nm){var elm=document.getElementById(id);if(getIE()){var op=elm.style.filter;op=parseInt(op.match(/\d+/));if(!op)op=0;}else var op=elm.style.opacity*100;if(op>0){op-=parseInt(eval(nm+"_ffxst"));if(op<0)op=0;if(getIE()){elm.style.filter="Alpha(Opacity="+op+")";}else elm.style.opacity=op/100;stimer=setTimeout("fadeOut('"+id+"','"+nm+"')",parseInt(eval(nm+"_ffxsp")));}if(op==0)elm.style.visibility="hidden";}function elmOff(id){clearTimeout(ftimer);clearTimeout(f2timer);if(id){var dest=id.replace(/_\w$/,"_D");var nwid=id.replace(/_\w$/,"_K");var elm=document.getElementById(dest);if(elm&&document.getElementById(nwid)){var par=elm.parentNode;elm.style.position="absolute";elm.style.visibility="hidden";par.parentNode.appendChild(elm);par.parentNode.removeChild(par);fx_opelm=null;}}}function PreIn(src,l,t,hop,vop,fx,st){var swdt=src.offsetWidth;var shgt=src.offsetHeight;var id=src.id;var nwid=id.replace(/_\w$/,"_K");var par=src.parentNode;if(!document.getElementById(nwid)){src.style.position="relative";if(fx=="Roll"){if(vop){src.style.top=vop+shgt+"px";}else src.style.left=hop+swdt+"px";}src.style.visibility="visible";var myelm=document.createElement('div');myelm.setAttribute("id",nwid);myelm.style.padding="0px";myelm.style.backgroundColor="";myelm.style.backgroundImage="url('')";myelm.style.border="0px";myelm.style.position="absolute";myelm.style.left=l+"px";myelm.style.top=t+"px";myelm.style.overflow="hidden";if(fx=="Roll"){myelm.style.width=swdt+"px";if(!vop)myelm.style.zIndex="-1";}else if(fx=="Draw"){myelm.style.width="0px";myelm.style.height="0px";}myelm.appendChild(src);par.appendChild(myelm);if(fx=="Roll"){rollIn(id,hop,vop);}else if(fx=="Draw"){var nm=id.substring(0,id.indexOf("_"));var anc=eval(nm+"_ffxanc");var pos=eval(nm+"_ffxpos");if(hop)pos=1;if(swdt>shgt){var st1=st;var st2=st*shgt/swdt;}else{var st1=st*swdt/shgt;var st2=st;}if(!anc)myelm.style.left=(l+swdt)+"px";if(!pos)myelm.style.top=(t+shgt)+"px";var lp=(!anc)?(l):0;var tp=(!pos)?(t):0;drawWdt(id,nwid,st1,anc,lp);drawHgt(id,nwid,st2,pos,tp);}}}function drawWdt(id,nwid,st,l,p){var nm=id.substring(0,id.indexOf("_"));var ms=parseInt(eval(nm+"_ffxsp"));var elm=document.getElementById(nwid);var src=document.getElementById(id);if(elm&&src){var curwd=elm.offsetWidth;var wdt=src.offsetWidth;if(curwd<wdt){curwd+=st;if(curwd>wdt)curwd=wdt;elm.style.width=Math.round(curwd)+"px";if(!l){var elmleft=parseInt(elm.style.left)-st;if(elmleft<p)elmleft=p;elm.style.left=Math.round(elmleft)+"px";var srcleft=wdt-curwd;src.style.left="-"+Math.round(srcleft)+"px";}ftimer=setTimeout("drawWdt('"+id+"','"+nwid+"',"+st+","+l+","+p+")",ms);}}}function drawHgt(id,nwid,st,t,p){var nm=id.substring(0,id.indexOf("_"));var ms=parseInt(eval(nm+"_ffxsp"));var elm=document.getElementById(nwid);var src=document.getElementById(id);if(elm&&src){var hgt=src.offsetHeight;var curhg=elm.offsetHeight;if(curhg<hgt){curhg+=st;if(curhg>hgt)curhg=hgt;elm.style.height=Math.round(curhg)+"px";if(!t){var elmtop=parseInt(elm.style.top)-st;if(elmtop<p)elmtop=p;elm.style.top=Math.round(elmtop)+"px";var srctop=hgt-curhg;src.style.top="-"+Math.round(srctop)+"px";}f2timer=setTimeout("drawHgt('"+id+"','"+nwid+"',"+st+","+t+","+p+")",ms);}}}function rollIn(id,hop,vop){var nm=id.substring(0,id.indexOf("_"));var elm=document.getElementById(id);var pos=(vop)?parseInt(elm.style.top):parseInt(elm.style.left);var opr=(vop)?vop:hop;var st=parseInt(eval(nm+"_ffxst"));var ms=parseInt(eval(nm+"_ffxsp"));if(opr=="-"){if(pos<0){pos+=st;if(pos>0)pos=0;if(vop){elm.style.top=pos+"px";}else elm.style.left=pos+"px";ftimer=setTimeout("rollIn('"+id+"','"+hop+"','"+vop+"')",ms);}}else{if(pos>0){pos-=st;if(pos<0)pos=0;if(vop){elm.style.top=pos+"px";}else elm.style.left=pos+"px";ftimer=setTimeout("rollIn('"+id+"','"+hop+"','"+vop+"')",ms);}}if(pos==0)elm.parentNode.style.zIndex=1;}function closeAll(txt){var myelm,myelm1,myelm2,theid,cnh;var opnarray=new Array();var opn1array=new Array();var opn2array=new Array();var allids=txt.match(/id="*\w+_S"*\s*/gi);for(var y=0;y<allids.length;y++){theid=allids[y].match(/="*((\w+)_S)"*/i);myelm=document.getElementById(theid[1]);if(document.getElementById(theid[2]+"_I"))myelm1=document.getElementById(theid[2]+"_I");if(document.getElementById(theid[2]+"_F"))myelm2=document.getElementById(theid[2]+"_F");if(myelm.style.display==""){if(eval(fxxx_mname+"_ffxnm")=="Slide"){opnarray.push(myelm);opn1array.push(myelm1);if(myelm2)opn2array.push(myelm2);}else{if(myelm1&&myelm1.src)myelm1.src=fxxx_imgopn;if(myelm2&&myelm2.src)myelm2.src=fxxx_imgcnt;myelm.style.display="none";}}}fxxx_allElm=new Array();fxxx_allElm1=new Array();fxxx_allElm2=new Array();fxxx_ach=new Array();if(opnarray.length>0){for(var r=opnarray.length-1;r>=0;r--){fxxx_allElm.push(opnarray[r]);fxxx_allElm1.push(opn1array[r]);fxxx_allElm2.push(opn2array[r]);cnh=fx_opnsize[opnarray[r].id];fxxx_ach.push(cnh);delete fx_opnsize[opnarray[r].id];}fxxx_len=fxxx_ach.length;fxxx_ix=0;startImplode();}else if(eval(fxxx_mname+"_ffxnm")=="Slide"&&parseInt(fxxx_shift[0])>0)startOpen();}function setCont(){var myelm,myid;var myrefer=fxxx_checkid.match(/^\w+__\d+/i);var mynwelm=document.getElementById(myrefer+"_S");mynwelm.style.height="";var mynwtext=mynwelm.innerHTML;var mynwids=mynwtext.match(/id="*\w+_S"*/gi);for(var i=0;i<mynwids.length;i++){myid=mynwids[i].match(/id="*(\w+)"*/i);myelm=document.getElementById(myid[1]);myelm.style.height="";}}function FX_showItemChild(elm){var eleft,etop;var id=elm.id;var ok=false;if(id!=fx_opened)ok=true;fx_opened=id;var name=id.substring(0,id.indexOf("_"));var efx=eval(name+"_ffxnm");var stk=parseInt(eval(name+"_ffxst"));var dest=id.replace(/_\w$/,"_D");var doit=false;if(dest!=fx_opdest)doit=true;fx_opdest=null;var myelm=dest.replace(/_\d+_D$/,"_D");var k=myelm.replace(/_\w$/,"_K");dest=document.getElementById(dest);myelm=document.getElementById(myelm);k=document.getElementById(k);var lgap=0;var tgap=(elm.tagName=="TD")?elm.parentNode.parentNode.parentNode.offsetLeft:0;var opr,opr2="";if(eval(name+"_ffxanc")==1){opr="-";var pad=parseInt(getRule(name+" table").style.paddingRight);if(!pad)pad=getRule(name+" table").style.padding?parseInt(getRule(name+" table").style.padding):0;var bdr=parseInt(getRule(name+" table").style.borderRightWidth);if(!bdr)bdr=getRule(name+" table").style.border?parseInt(getRule(name+" table").style.border):0;if(k){eleft=k.offsetLeft+myelm.offsetWidth-pad-bdr-4;}else if(elm.tagName=="TD"){eleft=elm.offsetLeft+tgap;opr="";}else eleft=myelm.offsetLeft+myelm.offsetWidth-pad-bdr-4;}else{opr="+";var pad=parseInt(getRule(name+" table").style.paddingLeft);if(!pad)pad=getRule(name+" table").style.padding?parseInt(getRule(name+" table").style.padding):0;var bdr=parseInt(getRule(name+" table").style.borderLeftWidth);if(!bdr)bdr=getRule(name+" table").style.border?parseInt(getRule(name+" table").style.border):0;if(k){eleft=k.offsetLeft-dest.offsetWidth+pad+bdr+3;}else if(elm.tagName=="TD"){if(dest.offsetWidth>elm.offsetWidth)lgap+=dest.offsetWidth-elm.offsetWidth;eleft=elm.offsetLeft+tgap-lgap;opr="";}else eleft=myelm.offsetLeft-dest.offsetWidth+pad+bdr+3;}if(k){etop=elm.offsetTop+k.offsetTop+3;}else if(elm.tagName=="TD"){etop=0-elm.offsetTop;opr2="-";if(eval(name+"_ffxpos")==0){etop-=(dest.offsetHeight+elm.offsetHeight);opr2="+";}}else etop=elm.offsetTop+myelm.offsetTop+3;if(efx!="none"&&efx!="Fade"){if(ok&&fx_opelm&&fx_opelm!=myelm.id.replace(/_\w$/,"_P")){if(id.indexOf(fx_opelm.replace(/_\w$/,""))==-1)elmOff(fx_opelm);var mydivs=document.getElementsByTagName("DIV");for(var i=0;i<mydivs.length;i++){if(mydivs[i].id!=""&&mydivs[i].id.indexOf(name+"__")==0&&mydivs[i].id.match(/_K$/)){if(mydivs[i].id.replace(/_\w$/,"_P")!=myelm.id.replace(/_\w$/,"_P")){var ref=mydivs[i].id.replace(/_\w$/,"_");if(!mydivs[i].id.match(/__P$/)&&myelm.id.indexOf(ref)==-1&&doit){elmOff(mydivs[i].id.replace(/_\w$/,"_P"));break;}}}}}PreIn(dest,eleft,etop,opr,opr2,efx,stk);fx_opelm=id;}else{dest.style.left=eleft+"px";dest.style.top=etop+"px";dest.style.visibility="visible";}if(efx=="Fade"){if(ok&&doit){elmOpac(dest);}fadeIn(dest.id,name);}}function FX_hideItemChild(elm){var id=elm.id;var name=id.substring(0,id.indexOf("_"));var dest=id.replace(/_\w$/,"_D");dest=document.getElementById(dest);dest.style.visibility="hidden";}function FX_showChild(elm){fx_opdest=elm.id;var name=fx_opdest.substring(0,fx_opdest.indexOf("_"));if(eval(name+"_ffxnm")!="Roll"){var mydivs=document.getElementsByTagName("TABLE");for(var i=0;i<mydivs.length;i++){if(mydivs[i].id!=""&&mydivs[i].id.match(/_D$/)){if(elm.id.indexOf(mydivs[i].id.replace(/_\w$/,"")+"_")==0){if(mydivs[i].style.position!="relative"){mydivs[i].style.visibility="visible";}}}}}}function FX_hide(elm){while(!elm.id)elm=elm.parentNode;var id=elm.id;var name=id.substring(0,id.indexOf("_"));var mtop=document.getElementById(name+"__P");if(eval(name+"_ffxnm")=="Fade"){if(mtop){fx_optop=null;}else if(id.match(/__D$/))elm.onmouseout=watchFade;}var mydivs=document.getElementsByTagName("TABLE");for(var i=0;i<mydivs.length;i++){if(mydivs[i].id!=""&&mydivs[i].id.match(/_D$/)){if(elm.id.indexOf(mydivs[i].id.replace(/_\w$/,"")+"_")==0){if(mydivs[i].style.position!="relative"){mydivs[i].style.visibility="hidden";}}}}}function FX_showMenu(elm){var etop,opr="+";var id=elm.id;var name=id.substring(0,id.indexOf("_"));var efx=eval(name+"_ffxnm");var stk=parseInt(eval(name+"_ffxst"));var dest=id.replace(/_\w$/,"_D");dest=document.getElementById(dest);var IEver=getIEVersion();var lgap=0;if(IEver>0&&IEver<8)lgap=0;if(eval(name+"_ffxpos")==1){etop=elm.offsetTop+elm.offsetHeight;opr="-";}else etop=elm.offsetTop-dest.offsetHeight;if(eval(name+"_ffxanc")==0&&dest.offsetWidth>elm.offsetWidth){lgap+=dest.offsetWidth-elm.offsetWidth;}var eleft=elm.offsetLeft-lgap;if(efx!="none"&&efx!="Fade"){PreIn(dest,eleft,etop,'',opr,efx,stk);fx_optop=id;}else{dest.style.left=eleft+"px";dest.style.top=etop+"px";dest.style.visibility="visible";}if(efx=="Fade"){if(!fx_optop){elmOpac(dest);}fadeIn(dest.id,name);fx_optop=dest;}}function FX_hideMenu(elm){var id=elm.id;var name=id.substring(0,id.indexOf("_"));var dest=id.replace(/_\w$/,"_D");dest=document.getElementById(dest);dest.style.visibility="hidden";}function setFXPopupDMenu(name,oid,icn,iw,lnk){var mytbls=document.getElementsByTagName("TABLE");var mytds=document.getElementsByTagName("TD");var mytrs=document.getElementsByTagName("TR");var myitms=new Array();for(var e=0;e<mytds.length;e++){myitms.push(mytds[e]);}for(var b=0;b<mytrs.length;b++){myitms.push(mytrs[b]);}var mtop=name+"__P";var fsize=getRule(name).style.fontSize?parseInt(getRule(name).style.fontSize):15;var pad=getRule(name+" td").style.padding?parseInt(getRule(name+" td").style.padding):2;var tsize=parseInt(fsize*0.8/2+pad);mtop=document.getElementById(mtop);if(mtop){mtop.onmouseover=function(){FX_showMenu(this);};if(eval(name+"_ffxnm")!="none"){mtop.onmouseout=watchTop;}else mtop.onmouseout=function(){FX_hideMenu(this);};}for(var i=0;i<mytbls.length;i++){if(mytbls[i].id.indexOf(name+"__")==0&&mytbls[i].id.match(/_D$/)){mytbls[i].setAttribute("cellSpacing",0);if(mytbls[i].id.match(/__D$/)&&!mtop){mytbls[i].style.position="relative";mytbls[i].style.visibility="visible";}else{mytbls[i].style.position="absolute";mytbls[i].style.visibility="hidden";}mytbls[i].onmouseover=function(){FX_showChild(this);};if(eval(name+"_ffxnm")!="none"&&eval(name+"_ffxnm")!="Fade"){mytbls[i].onmouseout=watchEvent;}else{mytbls[i].onmouseout=function(){FX_hide(this);};}}}for(var x=0;x<myitms.length;x++){if(myitms[x].id.indexOf(name+"__")==0&&myitms[x].id.match(/_P$/)){var el=myitms[x].tagName;var tmp=(el=="TR")?myitms[x].firstChild:myitms[x];if(!lnk){if(tmp.firstChild.nodeName=="A"){var mynode=tmp.firstChild;var mychildren=mynode.childNodes;fx_lnk[myitms[x].id]=mynode.getAttribute("href");fx_tgt[myitms[x].id]=mynode.getAttribute("target")?mynode.getAttribute("target"):"";tmp.removeChild(mynode);for(var y=0;y<mychildren.length;y++){if(mychildren[y].nodeName!="#text"){var attr=mychildren[y].attributes;var nwelm=document.createElement(mychildren[y].nodeName);for(var a=0;a<attr.length;a++){nwelm.setAttribute(attr[a].name,attr[a].value);}}else var nwelm=document.createTextNode(mychildren[y].nodeValue);tmp.appendChild(nwelm);}myitms[x].onmouseup=function(){if(oid==""){eval(setLink(fx_lnk[this.id],fx_tgt[this.id]));}else getContents(fx_lnk[this.id],oid);};}if(tmp.firstChild.nodeName=="IMG"){tmp.firstChild.setAttribute("border",0);tmp.firstChild.style.paddingRight="5px";}}if(tmp.firstChild.firstChild){if(tmp.firstChild.firstChild.nodeName=="IMG"){tmp.firstChild.firstChild.setAttribute("border",0);tmp.firstChild.firstChild.style.paddingRight="5px";}}tmp.setAttribute("width","100%");var dest=myitms[x].id.replace(/_\w$/,"_D");dest=document.getElementById(dest);var nwchild=document.createElement('td');nwchild.setAttribute("vAlign","top");nwchild.style.padding="0px";if(icn!="")var nwicn=document.createElement('img');if(dest){myitms[x].onmouseover=function(){FX_showItemChild(this);};if(eval(name+"_ffxnm")=="none"||eval(name+"_ffxnm")=="Fade"){myitms[x].onmouseout=function(){FX_hideItemChild(this);};}if(nwicn){nwchild.style.paddingTop=tsize+"px";nwicn.setAttribute("src",icn);}}else{if(eval(name+"_ffxnm")=="Fade")myitms[x].onmouseover=function(){fx_opened=this.id;};if(eval(name+"_ffxnm")!="none"&&eval(name+"_ffxnm")!="Fade"){myitms[x].onmouseover=function(){var ok=false;if(this.id!=fx_opened)ok=true;var mypar=this.id.replace(/_\d+_P$/,"_P");if(ok&&fx_opelm&&fx_opelm!=mypar){if(this.id.indexOf(fx_opelm.replace(/_\w$/,""))==-1)elmOff(fx_opelm);var mydivs=document.getElementsByTagName("DIV");for(var i=0;i<mydivs.length;i++){if(mydivs[i].id!=""&&mydivs[i].id.indexOf(name+"__")==0&&mydivs[i].id.match(/_K$/)){if(mydivs[i].id.replace(/_\w$/,"_P")!=mypar){var ref=mydivs[i].id.replace(/_\w$/,"_");if(!mydivs[i].id.match(/__P$/)&&mypar.indexOf(ref)==-1){elmOff(mydivs[i].id.replace(/_\w$/,"_P"));break;}}}}fx_opelm=this.id.replace(/_\d+_P$/,"_P");}};myitms[x].onclick=watchEvent;}else myitms[x].onclick=function(){FX_hide(this.parentNode);};if(nwicn){nwicn.setAttribute("src","FXInc/none.gif");nwicn.setAttribute("width",iw);}}if(nwicn)nwchild.appendChild(nwicn);if(el=="TR"){if(eval(name+"_ffxanc")==1){nwchild.style.paddingRight="4px";myitms[x].appendChild(nwchild);}else{nwchild.style.paddingLeft="2px";myitms[x].insertBefore(nwchild,myitms[x].firstChild);}}}}}function setFXOutliningDMenu(name,oid,op){var mydivs=document.getElementsByTagName("DIV");var myspans=document.getElementsByTagName("SPAN");var myimgs=document.getElementsByTagName("IMG");for(var i=0;i<mydivs.length;i++){if(mydivs[i].id.indexOf(name+"__")==0&&mydivs[i].id.match(/_S$/)){mydivs[i].style.display="none";}}if(op=="Item"){for(var x=0;x<myspans.length;x++){if(myspans[x].id.indexOf(name+"__")==0&&myspans[x].id.match(/_H$/)){if(myspans[x].childNodes[1].firstChild.nodeName=="A"){var mynode=myspans[x].childNodes[1].firstChild;var mychildren=mynode.childNodes;fx_lnk[myspans[x].id]=mynode.getAttribute("href");fx_tgt[myspans[x].id]=mynode.getAttribute("target")?mynode.getAttribute("target"):"";myspans[x].childNodes[1].removeChild(mynode);for(var y=0;y<mychildren.length;y++){if(mychildren[y].nodeName!="#text"){var attr=mychildren[y].attributes;var nwelm=document.createElement(mychildren[y].nodeName);for(var a=0;a<attr.length;a++){nwelm.setAttribute(attr[a].name,attr[a].value);}}else var nwelm=document.createTextNode(mychildren[y].nodeValue);myspans[x].childNodes[1].appendChild(nwelm);}myspans[x].onclick=function(){if(oid==""){eval(setLink(fx_lnk[this.id.replace(/_\w$/,"_H")],fx_tgt[this.id.replace(/_\w$/,"_H")]));}else getContents(fx_lnk[this.id.replace(/_\w$/,"_H")],oid);};}if(myspans[x].childNodes[0].firstChild){myspans[x].childNodes[0].firstChild.setAttribute("border",0);}if(myspans[x].childNodes[1].firstChild.nodeName=="IMG"){myspans[x].childNodes[1].firstChild.setAttribute("border",0);myspans[x].childNodes[1].firstChild.style.paddingRight="5px";}}}}else{for(var j=0;j<myimgs.length;j++){if(myimgs[j].id.indexOf(name+"__")==0){if(myimgs[j].id.match(/_I$/))myimgs[j].setAttribute("border",0);if(myimgs[j].id.match(/_F$/)){myimgs[j].setAttribute("border",0);myimgs[j].style.paddingRight="5px";}}}if(oid!=""){for(var x=0;x<myspans.length;x++){if(myspans[x].className.indexOf(name+"_level")==0){if(myspans[x].childNodes[1].firstChild.nodeName=="A"){var mynode=myspans[x].childNodes[1].firstChild;var id=myspans[x].childNodes[0].firstChild.id;if(!id)id=myspans[x].id;var nwid=id.replace(/_\w$/,"_N");mynode.setAttribute("id",nwid);fx_lnk[nwid]=mynode.getAttribute("href");fx_tgt[nwid]=mynode.getAttribute("target")?mynode.getAttribute("target"):"";mynode.setAttribute("href","javascript:;");mynode.onclick=function(){getContents(fx_lnk[this.id],oid);};}}}}}}function getRule(name){var shtrul,rule;var csss=document.styleSheets;for(var is=0;is<csss.length;is++){shtrul=csss[is].rules?csss[is].rules:csss[is].cssRules;for(var x=0;x<shtrul.length;x++){var rname=shtrul[x].selectorText;var chunk=rname.substring(rname.indexOf(" "));if(chunk.indexOf(" ")!=-1)rname=rname.replace(chunk,chunk.toLowerCase());if(rname=="."+name){rule=shtrul[x];break;}}}return rule;}function setLink(url,tgt){var prop,valstr="";tgt=tgt.replace(/^_/,"");if(tgt=="parent"||tgt=="top"||tgt=="self"){prop=tgt+".location.href=$";}else if(tgt==""){prop="window.location.href=$";}else{prop="window.open($)";}if(prop.indexOf(".href=")!=-1){valstr=prop.replace(/\$/,"'"+url+"'");}else{valstr=prop.replace(/\$/,"'"+url+"','"+tgt+"'");}return valstr;}function getIE(){var ie=false;var userAgent=navigator.userAgent;if(userAgent.indexOf('MSIE')!=-1)ie=true;return ie;}function getIEVersion(){var version=0;var userAgent=navigator.userAgent;if(getIE()){version=parseFloat(userAgent.substring(userAgent.indexOf('MSIE')+4,userAgent.length));}return version;}function inArray(arr,val){var found=-1;for(var i=0;i<arr.length;i++){if(val==arr[i]){found=i;break;}}return found;}function checkEvent(evnt){var src,rtg,myarr=new Array();if(window.event){src=event.srcElement;if(event.type=="mouseover")rtg=event.fromElement;if(event.type=="mouseout")rtg=event.toElement;}else{src=evnt.target;if(evnt.type=="mouseover"||evnt.type=="mouseout")rtg=evnt.relatedTarget;}myarr.push(src,rtg);return myarr;}function watchFade(evnt){var srcElm=checkEvent(evnt)[0];while(!srcElm.id)srcElm=srcElm.parentNode;var name=srcElm.id.substring(0,srcElm.id.indexOf("_"));var mtop=document.getElementById(name+"__P");var tgElm=checkEvent(evnt)[1];if(tgElm&&tgElm.nodeName!="HTML"&&tgElm.nodeName!="BODY"){while(tgElm&&tgElm.nodeName!="TABLE"){tgElm=tgElm.parentNode;}}if(tgElm&&tgElm.id&&tgElm.id.match(/_D$/)){return;}else{var op=document.getElementById(fx_opened.replace(/_\w$/,"_D"));elmOpac(op);}}function watchEvent(evnt){var srcElm=checkEvent(evnt)[0];while(!srcElm.id)srcElm=srcElm.parentNode;var tgElm=checkEvent(evnt)[1];var ref1=tgElm;var ref2=ref1;var name=srcElm.id.substring(0,srcElm.id.indexOf("_"));var mtop=document.getElementById(name+"__P");if(tgElm&&tgElm.nodeName!="HTML"&&tgElm.nodeName!="BODY"){while(ref1&&ref1.nodeName!="TABLE"){ref1=ref1.parentNode;}while(ref2&&ref2.nodeName!="DIV"){ref2=ref2.parentNode;}}if((ref1&&ref1.id&&ref1.id.match(/_D$/))){return;}else{if(fx_opelm){var fx_op=fx_opelm;var matches=fx_opelm.match(/_\d+/g);elmOff(fx_opelm);if(matches){for(var i=0;i<matches.length;i++){fx_op=fx_op.replace(/_\d+_P$/,"_P");if(mtop){if((ref2&&ref2.id&&ref2.id.match(/__P$/))){return;}else elmOff(fx_op);}else if(!fx_op.match(/__P$/))elmOff(fx_op);}}}}}function watchTop(evnt){if(!evnt)var evnt=window.event;var src=(window.event)?evnt.srcElement:evnt.target;while(!src.id)src=src.parentNode;var name=src.id.substring(0,src.id.indexOf("_"));var re=eval(name+"_ffxnm")=="Fade"?/__D$/:/__K$/;var rtg=(evnt.relatedTarget)?evnt.relatedTarget:evnt.toElement;while(rtg!=src&&rtg.nodeName!='BODY'&&rtg.nodeName!='HTML'){if(rtg.id&&rtg.id.match(re))break;rtg=rtg.parentNode;}if(rtg==src)return;if(!rtg.id){if(eval(name+"_ffxnm")!="none"&&eval(name+"_ffxnm")!="Fade"){elmOff(fx_optop);}if(eval(name+"_ffxnm")=="Fade"){elmOpac(fx_optop);fx_optop.style.visibility="hidden";}fx_optop=null;}}
