var userLoggedIn;var g_currentProfileId;var g_unlockUrl;function OnUnlockLevel(){if(userLoggedIn){window.location=g_unlockUrl;}else{Btv.User.InitLogin(postLoginUser);}}function postLoginUser(){userLoggedIn=true;OnUnlockLevel();}function showTodaysTopRated(){document.getElementById("allTimeTopRatedContainer").style.display="none";document.getElementById("todaysTopRatedContainer").style.display="block";document.getElementById("friendsTopRatedContainer").style.display="none";document.getElementById("todaysTopRatedTab").className="strong";document.getElementById("allTimeTopRatedTab").className="";document.getElementById("friendsTopRatedTab").className="";}function showAllTimeTopRated(){document.getElementById("allTimeTopRatedContainer").style.display="block";document.getElementById("todaysTopRatedContainer").style.display="none";document.getElementById("friendsTopRatedContainer").style.display="none";document.getElementById("todaysTopRatedTab").className="";document.getElementById("allTimeTopRatedTab").className="strong";document.getElementById("friendsTopRatedTab").className="";}function showFriendsTopRated(){document.getElementById("allTimeTopRatedContainer").style.display="none";document.getElementById("todaysTopRatedContainer").style.display="none";document.getElementById("friendsTopRatedContainer").style.display="block";document.getElementById("todaysTopRatedTab").className="";document.getElementById("allTimeTopRatedTab").className="";document.getElementById("friendsTopRatedTab").className="strong";}var assignPointNode;var warningTop1;var warningBottom1;var lockImageTop;var lockImageBottom;var rateZeroId1;var rateZeroId2;var rateZeroId3;function celebRaterInit(postBackUrl){var retryCall='eval(celebRaterInit("'+postBackUrl+'"));';var form=document.getElementById("aspnetForm");if(null!=form&&null!=postBackUrl&&postBackUrl.length>0){form.action=postBackUrl;}assignPointNode=document.getElementById("assign_points_changer");warningTop1=document.getElementById("warning_top1");warningBottom1=document.getElementById("warning_Bottom1");lockImageTop=document.getElementById("lock_image_top");lockImageBottom=document.getElementById("lock_image_bottom");rateZeroId1=document.getElementById("rate_zero_id1");rateZeroId2=document.getElementById("rate_zero_id2");rateZeroId3=document.getElementById("rate_zero_id3");if(null==form||null==assignPointNode||null==warningTop1||null==warningBottom1||null==lockImageTop||null==lockImageBottom||null==rateZeroId1||null==rateZeroId2||null==rateZeroId3){setTimeout(retryCall,100);return;}warningTop1.onmouseover=warningTopOneFunction;warningTop1.onmouseout=warningTopOneFunctionOut;lockImageTop.onmouseover=warningTopOneFunction;warningBottom1.onmouseover=warningBottomOneFunction;warningBottom1.onmouseout=warningBottomOneFunctionOut;lockImageBottom.onmouseover=warningBottomOneFunction;}function warningTopOneFunction(){warningTop1.style.display="block";}function warningTopOneFunctionOut(){warningTop1.style.display="none";}function warningBottomOneFunction(){warningBottom1.style.display="block";}function warningBottomOneFunctionOut(){warningBottom1.style.display="none";}function assignPoint(x){if(null==assignPointNode){return;}assignPointNode.innerHTML=x+"pts";rateZeroId1.className="nothing";rateZeroId2.className="nothing";rateZeroId3.className="nothing";if(x==0){rateZeroId1.className="rate_zero";rateZeroId2.className="rate_zero";rateZeroId3.className="rate_zero";}}function warningBubble(x){x.style.display="block";}function warningBubbleOut(x){x.style.display="none";}function submitCaptcha(){document.getElementById("aspnetForm").submit();}function displayCaptchaError(rating){if(null==g_userRating||null==g_captchaContainer){setTimeout("eval(displayCaptchaError("+rating+"));",50);return;}displayCaptcha();g_userRating.value=rating;}function displayCaptcha(){g_captchaContainer.style.display="block";}function submitPoints(points){if((typeof g_userRating=="undefined")||(typeof g_displayCaptcha=="undefined")||null==g_userRating||null==g_displayCaptcha){setTimeout("eval(submitPoints("+points+"));",200);return;}g_userRating.value=points;if(null!=g_captchaContainer&&true==g_displayCaptcha){displayCaptcha();return;}document.getElementById("aspnetForm").submit();}