function hidden_login(first_command,second_command,key,logged_in)
{jQuery(document).keydown(function(e)
{var command1=false;switch(first_command)
{case'ctrl':if(e.ctrlKey)
command1=true;break;case'shift':if(e.shiftKey)
command1=true;break;case'alt':if(e.altKey)
command1=true;break;default:break;}
var command2=false;switch(second_command)
{case'ctrl':if(e.ctrlKey)
command2=true;break;case'shift':if(e.shiftKey)
command2=true;break;case'alt':if(e.altKey)
command2=true;break;case'':command2=true;break;default:break;}
if(e.keyCode==(key.toUpperCase()).charCodeAt(0)&&command1&&command2)
{if(logged_in)
{window.location.href='/wordpress/wp-admin/';}
else
{hidden_login_toggle();}
return false;}});function hidden_login_toggle()
{if(jQuery('#hidden-login-window').is(":visible"))
{jQuery('#hidden-login-window').fadeOut(200);jQuery('#hidden-login-mask').fadeOut(200);}
else
{if(jQuery(window).width()<jQuery(document).width())
$maskWidth=jQuery(document).width();else
$maskWidth=jQuery(window).width();jQuery('#hidden-login-mask').css({'width':$maskWidth,'height':jQuery(document).height()});jQuery('#hidden-login-mask').fadeTo(200,0.8);jQuery('#hidden-login-window').css('top',jQuery(window).height()/2-jQuery('#hidden-login-window').height()/2);jQuery('#hidden-login-window').css('left',jQuery(window).width()/2-jQuery('#hidden-login-window').width()/2);jQuery('#hidden-login-window').fadeIn(200);jQuery('#user_login').focus();}}
jQuery('#hidden-login-mask').click(function()
{hidden_login_toggle();});jQuery(window).resize(function()
{jQuery('#hidden-login-mask').css({'width':'0px'});if(jQuery(window).width()<jQuery(document).width())
$maskWidth=jQuery(document).width();else
$maskWidth=jQuery(window).width();jQuery('#hidden-login-mask').css({'width':$maskWidth,'height':jQuery(document).height()});jQuery('#hidden-login-window').css('top',jQuery(window).height()/2-jQuery('#hidden-login-window').height()/2);jQuery('#hidden-login-window').css('left',jQuery(window).width()/2-jQuery('#hidden-login-window').width()/2);});}
