var ERASlider=new (function(){var grab=null;var open=false;this.frmLoginSubmit=function(frm){try{var url="/sfl/loginajax.jsp";var params="email="+escape(frm.email.value)+"&password="+escape(frm.password.value);var http=g_CyberAjaxQueue.getNewXMLObject();http.open("POST",url,false);http.setRequestHeader("Content-type","application/x-www-form-urlencoded");http.setRequestHeader("Content-length",params.length);http.setRequestHeader("Connection","close");http.send(params);if(http.responseText=="Invalid"){obj("Msg").innerHTML="Incorrect Username or Password";
obj("Msg").style.color="red"}else{SetCookie("myerasession",http.responseText,false,"/");obj("sconLoginForm").style.display="none";obj("sconLogin").style.display=""}}catch(e){}return false};function animate(start,end,dir){var o=obj("ERASlider");var count=0;var l=0;var intLoop=setInterval(function(){l=start+((end-start)/30)*count;if(dir==1){o.style.left=l+"px";o.style.width=34+Math.abs(l-start)+"px"}else{o.style.left=l+"px";o.style.width=34+(end-l)+"px"}count++;if(count==30){clearInterval(intLoop);if(dir==1){o.style.left=end+"px";
o.style.width=34+Math.abs(end-start)+"px"}else{o.style.left=end+"px";o.style.width=34+"px";grab.style.visibility="visible";obj("ERASlider").style.display="none"}}},30)}this.slideOut=function(o){open=true;grab=o;grab.style.visibility="hidden";var sX=CyberCoreFindPosX(o);var sY=CyberCoreFindPosY(o);var con=obj("ERASlider");with(con.style){display="";position="absolute";top=(sY-60)+"px";left=sX+"px"}document.body.appendChild(con);animate(sX,sX-201,1)};this.slideIn=function(o){open=false;var sX=CyberCoreFindPosX(o);
animate(sX,sX+201,0)};window.onresize=function(){if(open){obj("ERASlider").style.left=CyberCoreFindPosX(grab)-201+"px"}}});
