/* Check for ad cookies; if not present, call a variant of the login box to make it load faster */
(function () {
	var community_ad_cookie = decodeURIComponent ($RS.getCookie ('ti_community_ad'));
	var comm = $RS.getParam ('comm', community_ad_cookie);
	if (community_ad_cookie == '' || comm == '' || comm == 0) {  
       $("#profile_box").html(Profile.logged_out_profile_box_template_first());
    }
})();

