$(document).ready(function(){$("#already_member, #already_member_top a").click(function(){Halo.setCookie("HLMEMBER",1,365)});register=new (function(){this.add_member=function(c){if(typeof c=="undefined"||c===null)c="new_member_signup";if(Halo.getAjaxStatus()===false){Halo.setAjaxStatus(true);$("#signup_confirm_password").val($("#signup_password").val());params=$("#"+c).serialize();$.ajax({url:"/signup/create",type:"POST",data:params,dataType:"html",haloHandleAjaxResponse:true,haloSuccess:function(e){if(e.result){Halo.setCookie("HL_PIXEL",
"new_member",1);Halo.setCookie("NOAKAMAI","1",1);if(window.invite_dglp){var a=window.location.pathname.split("/");a=a.splice(5,a.length-5);for(var b={},d=0;d<a.length;d+=2)b[a[d]]=decodeURIComponent(a[d+1]);if(b.event_id)window.location.href="/event/"+b.event_id;else if(b.content)window.location.href="/content/"+b.content;else if(b.inventory_id)window.location.href="/product/"+b.inventory_id;else{a=window.location.pathname;window.location.href=a.length==1||a.indexOf("indexf")>0||a.indexOf("indexg")>
0||a.indexOf("indexh")>0?"/events/start":"/events"}}else window.location.href=e.redirect_url}else{if(typeof signup_error!="object")signup_error=new messaging({base_url:"signup"});signup_error.display(null,function(){errors="<ul>";$.each(e.errors,function(h,g){errors=errors+"<li>"+g+"</li>"});errors+="</ul>";$("#signup_messaging .message").html(errors);Halo.setAjaxStatus(false)})}}})}return false}});$("#register_btn").click(function(){register.add_member("signup_campaigns")});var f=false;$(".btn_reg_form").click(function(){if(typeof f!=
"object")f=new messaging({base_url:"registration",colorbox:{width:"387",height:"467"}});f.display()})});$(document).ready(function(){typeof $.innerfade=="function"&&$("#press_quotes_images").innerfade({timeout:5E3})});function signup_why(){if(typeof signup_why_messaging!="object")signup_why_messaging=new messaging({base_url:"signup-why"});signup_why_messaging.display(null)};
