function jspSetPositionToSidebar(id)
{
TG(id);
}
function jspSetPositionToFootbar(id)
{
JN(id);
}
function jspSwapMenu(ue,qo)
{
oV(ue,qo);
}
function jspGetOffsetForFootbar()
{
return vL();
}
function jspGetOffsetForLeftSideBar()
{
return rE();
}
function jspGetOffsetForRightSideBar()
{
return DQ();
}
function jspGetOffsetForSideBar()
{
return AR();
}
function jspGetTopPositionForMainPopup()
{
return Mv();
}
function jspLoginStart()
{
WL();
}
function jspOnPageLoad()
{
xS();
}
function jspHideShowFootbar()
{
VJ();
}
function jspHideFootbarMessage()
{
Sp();
}
function jspSetPositionToFootbar(id)
{
JN(id);
}
function jspSetStatementForFootbar(BV,type)
{
ZM(BV,type);
}
function jspAddStatementForFootbar(BV,type)
{
XM(BV,type);
}
function jspOnThanksPageLoad()
{
xo();
}
function strClosePopUp(id)
{
AX(id);
}
function WL()
{
document["SubmitHandler"]=Fc;
AJ(document,"keydown","SubmitHandler","div");
}
function Fc(e)
{
if(e.keyCode==13)
{
setTimeout("document.forms[0].submit();", 20);
if(!document.all)
{
e.preventDefault();
e.stopPropagation();
}
else
{
e.cancelBubble=true;
e.returnValue=false;
}
return true;
}
}
function xS()
{
var image=new Image;
image.src="images/popup-close.gif";
}
function xo()
{
window.opener.document.getElementById('messageToTrialUser').display='hidden';
}

var np='mouseover';
var Tx='mouseout';

var DZ="block";
var Go="body";
var TJ="BODY";
var Za='default';
var pO="display: none;";
var aZ='div';
var Bs='hidden';
var ph="input";
var as='none';
var hT='pointer';
var nm='px';
var WG='span';
var STYLE="style";
var eG='table';
var hE='TABLE';
var pc='tbody';
var Cd='td';
var DV='tr';
var Rv='undefined';
var tp='visible';





function MJ(url,rc,ok)
{
IP();
var tt=null;
if(window.XMLHttpRequest)
{
try
{
tt=new XMLHttpRequest();
}
catch(e)
{
alert("new XMLHttpRequest()");
tt=null;
}
if(tt)
{
if(ok&&rc!=null)
{
tt.onreadystatechange=function(){rc(tt);};
}
tt.open("GET",window.location.protocol+'//'+window.location.host+url,ok);
tt.send(null);
}
}
else if(window.ActiveXObject)
{
try
{
tt=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try
{
tt=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e)
{
alert("new XMLHttpRequest()");
tt=null;
}
alert("new XMLHttpRequest()");
}
if(tt)
{
if(ok&&rc!=null)
{
tt.onreadystatechange=function(){rc(tt);};
}
tt.open("GET",url,ok);
tt.send();
}
}
return tt;
}
function pU(url,sd,rc,ok)
{
IP();
var CG=null;
var tt=null;
sd=encodeURI(sd);
sd=sd.replace(/&amp;/g,"%26");
sd=sd.replace(/\+/g,"%2B");
if(window.XMLHttpRequest)
{
try
{
tt=new XMLHttpRequest();
}
catch(e)
{
alert("new XMLHttpRequest()");
tt=null;
}
if(tt)
{
if(ok&&rc!=null)
{
tt.onreadystatechange=function(){rc(tt);};
}
tt.open("POST",window.location.protocol+'//'+window.location.host+url,ok);
tt.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
tt.setRequestHeader("Content-length",sd.length);
tt.setRequestHeader("Connection","close");
CG=tt.send(sd);
}
}
else if(window.ActiveXObject)
{
try
{
tt=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try
{
tt=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e)
{
alert("new XMLHttpRequest()");
tt=null;
}
alert("new XMLHttpRequest()");
}
if(tt)
{
if(ok&&rc!=null)
{
tt.onreadystatechange=function(){rc(tt);};
}
tt.open("POST",url,ok);
tt.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
tt.setRequestHeader("Content-length",sd.length);
tt.setRequestHeader("Connection","close");
CG=tt.send(sd);
}
}
try
{
CG=tt;
}
catch(e)
{
CG=null;
}
return CG;
}
function IP()
{
if(!KA(idTimeOut) )
{
resetTimoutCounter();
}
}
var nX=false;
var RM=false;
var EX=false;
var XL=false;
var Qe=false;
var nF=true;
Vj();
function Vj()
{
var ot=navigator.appVersion.toLowerCase();
var index=ot.indexOf("msie");
if(index>-1)
{
var aW=ot.substring(index+5,index+8);
var iP=parseFloat(aW);
if(iP==6)
{
nX=true;
RM=true;
}
else if(iP>=7)
{
nX=true;
EX=true;
}
else
{
nF=false;
}
}
else if(navigator.appName=="Netscape")
{
XL=true;
}
else
{
nF=false;
}
if(document.getElementById!=null)
{
Qe=true;
}
}
function isIEall()
{
return nX;
}
function LI()
{
return RM;
}
function isIE7()
{
return EX;
}
function rY()
{
return XL;
}
function Zm()
{
return Qe;
}
function vK()
{
return nF;
}

function AJ(target,nj,lW,av)
{
if(target.addEventListener )
{
target.addEventListener(nj,function(e){target[lW](e);},true);
}
else if(target.attachEvent&&av!=null)
{
target.attachEvent("on"+nj,function(e){target[lW](e);});
}
else if(target.attachEvent)
{
target.document.body.attachEvent("on"+nj,function(e){target[lW](e);});
}
else
{
var YC=target["on"+nj];
if(YC )
{
target["on"+nj]=function(){YC();target[lW](e);};
}
else
{
target["on"+nj]=target[lW];
}
}
}
function Ds(e)
{
if(e==null)
{
e=window.event;
}
return e;
}
function ZM(BV,type)
{
VJ(true);
var cR=document.getElementById('pageFootbarTime');
cR.innerHTML='&nbsp;&nbsp;'+ic()+'&nbsp;&nbsp;';
var Fj=cR.parentNode;
Fj.style.display="";
var span=document.createElement('SPAN');
span.innerHTML=BV;
span.className=type;
var Os=document.getElementById("pageFootbarMessage");
Os.innerHTML='';
Os.appendChild(span);
}
function XM(BV,type)
{
VJ(true);
var cR=document.getElementById('pageFootbarTime');
cR.innerHTML='&nbsp;&nbsp;'+ic()+'&nbsp;&nbsp;';
var Fj=cR.parentNode;
Fj.style.display="";
var span=document.createElement('SPAN');
span.innerHTML=BV;
span.className=type;
var Os=document.getElementById("pageFootbarMessage");
if(Os.innerHTML!='')
{
Os.appendChild(document.createElement('BR'));
}
Os.appendChild(span);
}
function Sp()
{
var Yo=xl('editorFootbarTime');
var Fj=Yo.parentNode;
Fj.style.display=as;
}
function VJ(show)
{
var PN=xl('mainFootbarRow');
var eN=xl('footbarHideShowImg');
if(PN.style.display==as||show==true)
{
PN.style.display="";
eN.src=eN.src.replace('topOpen','topClose');
}
else
{
PN.style.display=as;
eN.src=eN.src.replace('topClose','topOpen');
}
}

function oV(XN,it)
{
XN.className=it;
}
var Np=150;
var hC=0;
var XW=0;
var MO=null;
var Ex=0;
var ju=0;
var EE=false;
function Kh()
{
if(!LI() ) setInterval('strMovepopup()',40);
if(Zm() )
{
document.onmousemove=iC;
document.onmouseup=Nb;
}
}
function OY()
{
return(Pq()?document.documentElement:document.body);
}
function ML(Be)
{
ge=0;
hu=0;
if(!document.all||isIE7())
{
ge=Pq();
if(ge==0&&OY().scrollTop>0)
{
ge=OY().scrollTop;
gR=false;
EE=true;
}
hu=ND();
if(hu==0&&OY().scrollLeft>0)
{
hu=OY().scrollLeft;
EE=true;
}
}
var lT=(isIEall() )?event.clientX:Be.pageX-hu;
var Zg=(isIEall() )?event.clientY:Be.pageY-ge;
if(isIEall()&&!isIE7() )
{
lT+=OY().scrollLeft;
Zg+=OY().scrollTop;
}
MO=xl(this.TK);
MO.className='popupAbsolute';
MO.style.position='absolute';
ax=MO.offsetLeft;
bm=MO.offsetTop;
MO.style.left=ax+hu+"px";
MO.style.top=bm+ge+"px";
pj=parseInt(ax)-lT;
Zv=parseInt(bm)-Zg;
return false;
}
function Nb()
{
if(MO!=null)
{
MO.className='';
if(document.all&&!isIE7())
{
mM=MO.style.top-getDocumentElementScrollTop();
MO.style.position='absolute';
MO.setAttribute("style","_top: expression(eval(Pq()+"+150+"));");
}
else
{
MO.style.position='';
ge=0;
hu=0;
if(EE)
{
ge=OY().scrollTop;
hu=OY().scrollLeft;
}
else
{
ge=Pq();
hu=ND();
}
MO.style.left=parseInt(MO.style.left)-hu+"px";
MO.style.top=parseInt(MO.style.top)-ge+"px";
}
MO.className='popupFixed';
}
MO=null;
}
function iC(Be)
{
if(!Be) Be=window.event;
try
{
Ex=(isIEall() )?Be.clientX+OY().scrollLeft:Be.pageX;
ju=(isIEall() )?Be.clientY+OY().scrollTop:Be.pageY;
}
catch(err)
{
}
if(!rY() )
Sh();
if(MO!=null)
return false;
}
function Sh()
{
if((MO!=null)&&Zm() )
{
var x=Ex+pj;
var y=ju+Zv;
MO.style.left=x+'px';
MO.style.top=y+'px';
}
}
function Ck(id,size,title,content)
{
AV=id;
var jT="popup"+id;
var on=xl(jT);
if(on!=null)
{
AX(id);
}
on=document.createElement(aZ);
on.id=jT;
on.className="popupFixed";
on.setAttribute("style","display: none; background-color:#FFFFFF;");
on.style.display="none";
var ZN=parseInt((pL()-size)/2);
on.style.left=ZN+"px";
on.style.width=size+'px';
var RT=document.createElement(aZ);
RT.id="popupOpt"+id;
RT.className="tabboxPopup";
RT.style.width=size+'px';
var Uh=document.createElement(aZ);
Uh.className="text";
Uh.setAttribute("style","background-color:#FFFFFF; padding:0px 0px 0px 0px; border: 1px solid black;");
var nx=document.createElement(aZ);
nx.id="popupBar"+id;
nx.className="table_full";
nx.TK=jT;
nx.innerHTML="<div id=\"popupTitle\" class=\"left\">"+
title+"</div>"+
"<div id=\"popupCloseIcon_"+id+"\" class=\"right\">"+ 
"</div>";
var MT=document.createElement(aZ);
MT.className="content";
MT.id="popupContent"+id;
MT.appendChild(content);
if(document.all)
{
content.style.paddingTop="30px";
RT.style.borderStyle="solid";
RT.style.borderWidth="1px";
RT.style.borderColor="black";
}
Uh.appendChild(nx);
Uh.appendChild(MT);
RT.appendChild(Uh);
on.appendChild(RT);
if(document.all&&!isIE7())
{
var uV=document.createElement('DIV');
var iframe=document.createElement('IFRAME');
iframe.id='iframeDIVoverSELECTbug'+id;
iframe.style.width=(size-1)+'px';
uV.appendChild(iframe);
on.appendChild(uV);
}
document.body.appendChild(on);
if(!LI())
{
Gh(nx);
}
var bl=xl("popupCloseIcon_"+id);
var PA=document.createElement("IMG");
PA.src="images/popup-close.gif";
PA.id="closeimage_"+id;
PA.className="cursors";
PA.width=15;
PA.height=21;
PA.border=0;
PA["id"]=id;
PA["CloseHandler"]=bh;
AJ(PA,"click","CloseHandler",aZ);
bl.appendChild(PA);
}
function Gh(Vt)
{
Vt["MouseDownHandler"]=ML;
Vt["MouseUpHandler"]=Nb;
Vt["SelectionHandler"]=selection;
AJ(Vt,"mousedown","MouseDownHandler",aZ);
AJ(Vt,"mouseup","MouseUpHandler",aZ);
AJ(Vt,"selectstart","SelectionHandler",aZ);
}
function Wl(title,content)
{
var Pe=xl("autoPopup");
Pe.setAttribute("style","left: "+getConcWindowLeft()+"px;"+
"top: "+getConcWindowTop()+"px;"+
"width: "+getConcWindowWidth()+"px; "+
"margin:auto;"+
"border: 1px solid black;");
Pe.style.display="";
Pe.style.width=getConcWindowWidth()+'px';
Pe.style.left=getConcWindowLeft()+'px';
var RT=Pe.childNodes[0];
var lr=xl("autoPopupTitle");
var MT=xl("autoPopupContent");
xG(MT);
xG(lr);
lr.appendChild(document.createTextNode(title));
SW=content;
MT.appendChild(SW);
}
function GD(name)
{
var Pe=xl("popup"+name);
if(Pe!=null)
{
Pe.style.display="";
Pe.focus();
var RT=xl("popupOpt"+name);
if(document.all&&!isIE7())
{
var AM=xl('iframeDIVoverSELECTbug'+name);
AM.style.height=(RT.offsetHeight-3)+'px';
}
var wE=getWindowHeight()-RT.offsetHeight-13;
if(wE-Np<=0)
{
if(wE<0)
{
wE=0;
}
if(!LI())
{
Pe.style.top=wE+'px';
}
Np=wE;
}
}
}
function Mv()
{
return document.documentElement.scrollTop+Np;
}
function AX(Ph)
{
var popup=xl("popup"+Ph);
if(popup!=null)
{
var nu=document.body;
nu.removeChild(popup);
}
nd(Ph);
}
function bh()
{
var id=this["id"];
AX(id);
}
function EJ(Ph)
{
MT=xl(Ph+"Content");
xG(MT);
pop=xl(Ph);
pop.style.display="none";
}
function OV(name)
{
pop=xl("popup"+name);
pop.style.display=as;
}
function xG(Rd)
{
MS=Rd.childNodes;
start=MS.length-1;
for(i=start;i>=0;i--)
{
fD=MS[i];
Rd.removeChild(fD);
}
}
function selection()
{
return false;
}
function nd(Ph)
{
if(Ph=='spellChecker')
{
hR=false;
}
}
function xl(id)
{
return document.getElementById(id);
}
function CK(name)
{
return document.getElementsByName(name);
}
function Pq()
{
return document.documentElement.scrollTop;
}
function ND()
{
return document.documentElement.scrollLeft;
}
function NQ(value)
{
return parseInt(value);
}
function KA(cr)
{
var CG=false;
if(cr==null||cr==Rv)
{
CG=true;
}
return CG;
}
function uk(cr)
{
var CG=false;
if(cr==null||cr==Rv||cr=='')
{
CG=true;
}
return CG;
}
function ox(table)
{
var CG=true;
if(!KA(table)&&table.length>0)
{
CG=false;
}
return CG;
}


function pL()
{
var sM=0;
if(document.all)
{
sM=document.documentElement.offsetWidth;
}
else
{
sM=window.innerWidth;
}
return sM;
}
function getWindowHeight()
{
var me=0;
if(document.all)
{
me=document.documentElement.offsetHeight;
}
else
{
me=window.innerHeight;
}
return me;
}
function vL()
{
var og=xl('bottomheader').offsetHeight;
var sQ=Pq()+getWindowHeight()-og-2;
return sQ;
}
function rE()
{
var og=xl('leftHeader').offsetHeight/2;
var sQ=Pq()+(getWindowHeight()/2)-og-2;
return sQ;
}
function DQ()
{
var og=xl('rightHeader').offsetHeight/2;
var sQ=Pq()+(getWindowHeight()/2)-og-2;
return sQ;
}
function AR()
{
return Pq()+(getWindowHeight()/2)-(Al("sideBar")/2);
}
function Fr()
{
if(document.all)
{
return 25;
}
else
{
return 20;
}
}
function Al(id)
{
FX=xl(id);
return(FX.getElementsByTagName("p").length * Fr())+14;
}
function TG(id)
{
if(!LI())
{
var FX=xl(id);
FX.style.top=((getWindowHeight() / 2)-(FX.getElementsByTagName("p").length * Fr()))+'px';
}
}
function JN(id)
{
if(!LI() )
{
var dR=xl(id);
dR.style.bottom=0+'px';
}
}
function Ng(message)
{
var lo=xl('messageAboveButtons');
if(lo!=null)
{
var qb='<div class="errorBox" style="margin:auto; width:100%;" align="center">'+
'<div class="message">'+
message+
'</div>'+
'</div>';
lo.innerHTML=qb;
}
}
function AC(name)
{
content=Cm(300,15,'white',1,'white','#495B7C',300,7,3,"");
Ck("simpleProgressBar",320,name,content);
var mq=Fg(300,15,'white',1,'black','#495B7C',300,7,3,"");
GD('simpleProgressBar');
}
function ic()
{
var nY=new Date();
var oP='';
var TO=nY.getHours();
var Lu=AM;
if(TO>12)
{
TO=parseInt(TO)-12;
Lu=PM;
}
var ou=nY.getMinutes();
if(ou<10)
{
ou="0"+ou;
}
var Xp=nY.getSeconds();
if(Xp<10)
{
Xp="0"+Xp;
}
oP=TO+':'+ou+':'+Xp+'&nbsp;'+Lu;
return oP;
}
function Vo()
{
var nY=new Date();
var oP='';
var Jg=nY.getYear()+1900;
var jA=nY.getMonth()+1;
if(jA<10)
{
jA="0"+jA;
}
var Gi=nY.getDate();
if(Gi<10)
{
Gi="0"+Gi;
}
var TO=nY.getHours();
var ou=nY.getMinutes();
if(ou<10)
{
ou="0"+ou;
}
var Xp=nY.getSeconds();
if(Xp<10)
{
Xp="0"+Xp;
}
oP=Jg+'-'+jA+'-'+Gi+' '+TO+':'+ou+':'+Xp+' ';
return oP;
}
function LW(action,name)
{
var rv=xl('action');
rv.value=action;
var Mc=CK(name)[0];
Mc.submit();
}
function aN()
{
alert(mainsc_notyet_imp);
}
function lY()
{
var width=75;
var NW=isIEall()?1085:1050;
if(pL()<NW)
{
width=100;
}
var Ag=CK(TABLE_SMALL);
for(var i=0;i<Ag.length;i++)
{
Ag[i].style.width=width+'%';
}
}











var Qe=(document.getElementById)?true:false;
var nX=(document.all)?true:false;
var N=-1;
var Ob=1;
var dC=2;
var rj=200;
function Cm(w,h,Sn,la,IB,Xf,Eu,ja,Zf,action)
{
nt=document.createElement(aZ);
nt.setAttribute("id","spellContent");
var t='<div id="_xpbar'+(++N)+'" style="visibility:visible; position:relative; overflow:hidden; width:'+w+'px; height:'+h+'px; background-color:'+Sn+'; border-color:'+IB+'; border-width:'+la+'px; border-style:solid; font-size:1px;">';
t+='<span id="blocks'+N+'" style="left:-'+(h*2+1-10)+'px; position:absolute; font-size:1px">';
for(i=0;i<ja;i++)
{
t+='<span style="background-color:'+Xf+'; left:-'+((h*i)+i)+'px; font-size:1px; position:absolute; width:'+h+'px; height:'+h+'px; ';
t+=(nX)?'filter:alpha(opacity='+(100-i*(100/ja))+')':'-Moz-opacity:'+((100-i*(100/ja))/100);
t+='"></span>';
}
t+='</span></div>';
nt.innerHTML=t;
return nt;
}
function Fg(w,h,Sn,la,IB,Xf,Eu,ja,Zf,action){
if(nX||Qe)
{
var Gg=(nX)?document.all['blocks'+N]:xl('blocks'+N);
Gg.PM=(nX)?document.all['_xpbar'+N]:xl('_xpbar'+N);
Gg.ja=ja;
Gg.N=N;
Gg.w=w;
Gg.h=h;
Gg.Eu=Eu;
Gg.pH=0;
Gg.Zf=Zf;
Gg.action=action;
Gg.oD=oD;
Gg.TN=function()
{
this.PM.style.visibility="visible";
};
Gg.GS=function()
{
this.PM.style.visibility="hidden";
};
Gg.xn=setTimeout('strStartBar('+N+','+Ob+')',Ob);
return Gg;
}}
function qq(nT,Eu)
{
var t=(nX)?document.all['blocks'+nT]:xl('blocks'+nT);
if(t==null)
{
return;
}
if(parseInt(t.style.left)+t.h+1-(t.ja*t.h+t.ja)>t.w)
{
t.style.left=-(t.h*2+1)+'px';
t.pH++;
if(t.pH>=t.Zf)
{
eval(t.action);
t.pH=0;
}
}
else
t.style.left=(parseInt(t.style.left)+t.h+1)+'px';
Eu=Math.min(Eu+dC,rj);
setTimeout('strStartBar('+N+','+Eu+')',Eu);
}
function oD(){
if(this.xn==0){
this.xn=setInterval('strStartBar('+this.N+')',this.Eu);
}else{
clearInterval(this.xn);
this.xn=0;
}}
