
function highlightLoginForm()
{toggleLoginPopupShort($('#loginButton').get('0'), true);}
function getRegisterForm()
{if ($("#registrationWindow").html()=='')
gRegisterForm(false)}
function getRegisterFormFromMiracle(o_id)
{if ($("#registrationWindow").html()=='')
gRegisterForm(o_id)}
function guestCallback(params)
{}
function gRegisterForm(o_id)
{params=new Object;params.action="GetRegisterForm";params.redirect_url=getHrefWOAnchor(location.href);if (o_id!=false)
params.object_id=o_id;$("#registrationWindow").html('<div style="margin:0 auto;height:300px;padding-top:150px;text-align:center"><img src="'+HOST_BASE+'img/loading.gif" alt="" title="" /></div>');$("#registrationWindow").load(script_url, params, refreshRegistrationCaptcha);}
function setCacheRecommend(url, domain)
{$.cookie('FLUSH_CACHE_RECOMMEND', 1,{domain:COOKIE_HOST, path:'/', expires:10000});location.href=url;}
function toggleLoginPopupShort(anchor, only_show)
{var offset=$(anchor).offset();$('#loginPopup')
.css('left', offset.left)
.css('top', offset.top - $('#header').offset().top+23);if (only_show)
{$('#loginPopup').show();if (anchor.src.indexOf('over')==-1)
anchor.src=anchor.src.replace('button_login','button_login_over');}
else
{$('#loginPopup').toggle();if (anchor.src.indexOf('over')>=0)
anchor.src=anchor.src.replace('button_login_over','button_login');else
anchor.src=anchor.src.replace('button_login','button_login_over');}
$('#authorizeLoginInput').focus();}