function CheckSession(){var b=PHOTOZIG.Utils;var a=PHOTOZIG.Properties;var c="authorized_login_id="+b.getCookie("PHPSESSID")+"&username="+b.getCookie("username")+"&PZLogin="+b.getCookie("PZLOGIN")+"&auth_session_id="+b.getCookie("auth_session_id")+"&auth_referer_scripts_location="+pzescape(a.MY_DEV_SCRIPTS);return c}function SetSession(f,b,a,d){var c=location.hostname.split(".").reverse();var e="."+c[1]+"."+c[0];document.cookie="valid_user="+f+"; path=/; domain="+e;document.cookie="username="+f+"; path=/";document.cookie="PHPSESSID="+b+"; path=/";document.cookie="albums_location="+a+"; path=/; domain="+e;document.cookie="scripts_location="+d+"; path=/; domain="+e;document.cookie="auth_session_id="+b+"; path=/; domain="+e;$("#header .greeting .username").html(f);$("#header .menu .login, #header .menu .signup").hide();$("#header .menu .logout").show();$("#header .teaser .create").hide();$("#header .teaser .organize").fadeIn().fadeOut().fadeIn();return true}function CheckCommunity(){return"id="+SOCIAL_CURRENT_COMMUNITY_ID+"&name="+SOCIAL_CURRENT_COMMUNITY_NAME}function CheckTemplate(){var a="template=&name=&url=&version="}$(function(){var c=PHOTOZIG.Utils;var a=PHOTOZIG.Properties;function b(){if(!c.getCookie("PZLOGIN")&&!c.getCookie("auth_session_id")){var e=a.CENTRAL_PZLOGIN_URL+"?actions=get_pz_login&redirect_url="+pzescape(location.href);c.redirectByPost(e)}}function d(){var e=DetectFlashVer(a.FLASH_REQUIRED_MAJOR_VERSION,a.FLASH_REQUIRED_MINOR_VERSION,a.FLASH_REQUIRED_REVISION);if(!e){$("body").prepend(a.FLASH_REQUIRED_MESSAGE);alert("Your Flash plugin needs to be updated. Please go to www.adobe.com and update it.")}}b();d()});