function getParameterByName(name){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(window.location.href);if(results==null)return"";else return decodeURIComponent(results[1].replace(/\+/g," "))}$(document).ready(function(){$("#loginPage #forgot-password").hide();var isOpen=false;$('#headerLoginPanel #login h2').click(function(){$('a',this).removeAttr("href");var l=$('#headerLoginPanel #login');if(!isOpen){isOpen=true;$(l).animate({'top':'10px'},{duration:500,easing:'elasout',complete:setActive})}else{isOpen=false;$(l).animate({'top':'203px'},{duration:500,easing:'elasout',complete:setActive})}});function setActive(){if(isOpen){$('#headerLoginPanel #login h2').addClass("active")}else{$('#headerLoginPanel #login h2').removeClass("active");forgot=false;$('#headerLoginPanel #btnForgotPass').text('Forgot Password');$('#headerLoginPanel #forgot-password').animate({'left':'260px'},{duration:250,easing:'elasout'});$('#headerLoginPanel #main-login').animate({'left':'0'},{duration:500,easing:'elasout'})}};$('#headerLoginPanel #btnForgotPass').click(function(){$(".error-report").hide();if(!$(this).hasClass('cancel')){$(this).addClass('cancel');$(this).html('<strong style="color:#cc0000">Cancel</strong>');$('#headerLoginPanel #forgot-password').animate({'left':'0'},{duration:500,easing:'elasout'});$('#headerLoginPanel #main-login').animate({'left':'-260px'},{duration:250,easing:'elasout'})}else{$(this).removeClass('cancel');$(this).text('Forgot Password');$('#headerLoginPanel #forgot-password').animate({'left':'260px'},{duration:250,easing:'elasout'});$('#headerLoginPanel #main-login').animate({'left':'0'},{duration:500,easing:'elasout'})}});$('#loginPage #login-extras').after($('#loginPage #forgot-password'));$('#loginPage #login-extras').after($('#loginPage #forgot-password'));$('#loginPage #btnForgotPass').click(function(){$('#loginPage #forgot-password').toggle()});var testuname=$("#headerLoginPanel input.login-username").val();if($("#headerLoginPanel .LoginErrorMsgOuter").size()<=0||$("#headerLoginPanel input.login-username").val()==''){$("#headerLoginPanel input.login-username").val("Username")}$("#headerLoginPanel .lblUserName").hide();$("#headerLoginPanel input.login-username").focus(function(){if(this.value=='Username'){this.value=''}});$("#headerLoginPanel input.login-username").blur(function(){if(this.value==''){this.value='Username'}});$("#headerLoginPanel input.login-password").hide();$("#headerLoginPanel input.login-password").before("<input type=\"text\" class=\"login-password-clear\" />");$("#headerLoginPanel input.login-password-clear").show();$("#headerLoginPanel input.login-password-clear").val("Password");$("#headerLoginPanel .lblPassword").hide();$("#headerLoginPanel input.login-password-clear").focus(function(){$(this).hide();$("#headerLoginPanel input.login-password").value="";$("#headerLoginPanel input.login-password").show();$("#headerLoginPanel input.login-password").focus()});$("#headerLoginPanel input.login-password").blur(function(){if(this.value==''){$(this).hide();$("#headerLoginPanel input.login-password-clear").show()}return true});if($("#loginPage .PassRetreivalErrorMsgOuter").size()!=0){$("#loginPage #forgot-password").show();$("#loginPage .error-report").css('top','225px')}if($("#loginPage .LoginErrorMsgOuter").size()!=0){}if($("#headerLoginPanel .PassRetreivalErrorMsgOuter").size()!=0){$("#headerLoginPanel #forgot-password").css("left","0");$("#headerLoginPanel #main-login").css("left","-260px");$('#headerLoginPanel #login').css("top","10px");$("#headerLoginPanel #btnForgotPass").html('<strong style="color:#cc0000">Cancel</strong>');$("#headerLoginPanel #btnForgotPass").addClass('cancel')}if($("#headerLoginPanel .LoginErrorMsgOuter").size()!=0){$("#headerLoginPanel #forgot-password").css("left","260px");$("#headerLoginPanel #main-login").css("left","0px");$('#headerLoginPanel #login').css("top","10px")}$.easing.elasout=function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/ 2) < 1) return c /2
*Math.pow(2,5*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b};$('.select-replacement').selectbox();$('#loginPage #login #login-container #forgot-password .lblEmail').html("E-mail:")});

