function expandFlash(){$.browser.webkit&&$("#flash").animate({height:"558px"},{duration:300,easing:"easeOutQuint"});$.browser.mozilla&&$("#flash").height(558);$.browser.msie&&$("#flash").height(558)}function contractFlash(){$.browser.webkit&&$("#flash").animate({height:"438px"},{duration:300,easing:"easeOutQuint"});$.browser.mozilla&&$("#flash").height(438);$.browser.msie&&$("#flash").height(438)}$(function(){var a=function(a){if(a instanceof Array)a=a.join(" > ");document.netminers.title="Sign up > "+a+" > Splash";$netminers.push(["postPageView",document.netminers.title])},b=function(f,g){var a=location.pathname,e=false;if(a=="/"||a.match(/\/\w{2}-\w{2}\/$/g)||a.match(/\/\w{2}-\w{2}$/g))e=true;var j=Utils.isGiftCardsServer();if(!g){var h=window.selectingLanguage;if(h){var d=function(){var a=$(".closePandoraDialog, a.selected");if(a.length==0)setTimeout(d,100);else a.click(function(){b(c,true)})};d();return false}}if(window.showingSignupPopup||User.Authenticated||!e||j||$.cookie("membered")||$.cookie("Membered")||$.cookie("signupDeclined")||$.browser.msie&&$.browser.version=="6.0")return false;window.showingSignupPopup=true;var k=Utils.SiteLanguage(false);if(k==null)return false;var l=$("#page"),i=l.attr("data-signupsettingsactive");f&&i=="true"&&f(true)},d=function(){var a=new Date;$.cookie("signupDeclined","1",{expires:3650})},c=function(){var c="/"+Utils.SiteLanguage()+"/signup",b=function(c){var e=DictionaryItems.E.ErrorUserAlreadyExists,b=$('<form id="clubSplash"/>').append($("#clubSplash",c).children(".thankYou").remove().end().find("#joinPandoraClub").click(function(){if(!$("#clubSplash").valid())return false;Utils.BlockUI("#clubSplash");var f=function(b){Utils.UnblockUI("#clubSplash");if(!b.Success){a("Fail");alert(e);return}a("Sign up > Success");$("#clubSplash").empty().append($("#clubSplash",c).children(".thankYou").find("div.close a").click(function(){$("#clubSplash").fancyDialog("close")}).end()).find("div.inner").cufon({fontFamily:"Optima"})},d={firstName:$("#tbSignUpFirstName").val(),lastName:$("#tbSignUpLastName").val(),email:$("#tbSignUpEmail").val(),gender:$("div.checkbox-label.checked [name='rblGender']",b).val(),zip:$("#tbZip").val()==$("#tbZip").attr("title")?null:$("#tbZip").val(),source:"Home Splash",signupEventSource:Events.Signup.FromHomePageSplash,callback:f};AuthenticationClass.SignupUser(d);return false}).end().find("#fbConnectButton").click(function(){$(this).trigger("link-clicked");FBConnect.loginWithFacebookConnect();if($.browser.msie){b.parent().remove();b.remove()}else b.dialog("close");return false}).end());b.find("div.mainInfo > cufon").remove().end().fancyDialog({width:814,height:431,useDefaultUI:false,draggable:false,open:function(){a("Enter");b.find("h1, h2, h3, h4, p.price, div.mainInfo, p.mainFooter, #fbConnectButton .c, #joinPandoraClub .c").cufon({fontFamily:"Optima"}).end()},close:function(){d()}});$("input",b).coolinput();jQuery.validator.addMethod("termsAndConditionsAreAccepted",function(){return $("#cbIAcceptPanndoraConditions:checked",b).length>0},DictionaryItems.A.AcceptTermsAndConditions);b.validate({messages:{tbSignUpFirstName:{required:DictionaryItems.F.FirstNameRequired,notInputHint:DictionaryItems.F.FirstNameRequired},tbSignUpLastName:{required:DictionaryItems.L.LastNameRequired,notInputHint:DictionaryItems.L.LastNameRequired},tbSignUpEmail:{required:DictionaryItems.E.EmailRequired,notInputHint:DictionaryItems.E.EmailRequired,email:DictionaryItems.E.EmailInvalidFormat},tbZip:{required:DictionaryItems.Z.ZipCodeRequired},cbIAcceptPanndoraConditions:{termsAndConditionsAreAccepted:DictionaryItems.A.AcceptTermsAndConditions}},errorClass:"fancyError",errorPlacement:function(){return false}})};$.get(c,b)};b(c)});$(document).ready(function(){if($("#frontpage-curtain").length>0){$("#page .frontpage-text").length>0&&$("#frontpage-curtain .curtain-text").show();$("#frontpage-curtain").fadeOut(0)}});$(document).ready(function(){pageHeight();$(window).resize(function(){pageHeight()})});function pageHeight(){$("#page").height($(window).height()-($("#menu").height()+$("#top").height()+$("#footer").height()))}$(document).ready(function(){if($.browser.msie)if($(".background.fullscreen").length>0){backgroundImageIE();backgroundImageIEc();$(window).resize(function(){backgroundImageIE();backgroundImageIEc()})}});function backgroundImageIE(){var a=$(window).height();$("#backgroundContainerIE").css("height","100%");if($("#page").height()+$("#menu").height()+$("#top").height()+$("#footer").height()>a){a=$("#page").height()+$("#menu").height()+$("#top").height()+$("#footer").height();$("#backgroundContainerIE").css("height",a)}$("#backgroundIE").css("height","auto").css("width","100%");$("#backgroundIE").height()<a&&$("#backgroundIE").css("height","100%").css("width","auto")}function backgroundImageIEc(){var a=$(window).height();$("#backgroundContainerIEc").css("height","100%");if($("#page").height()+$("#menu").height()+$("#top").height()+$("#footer").height()>a){a=$("#page").height()+$("#menu").height()+$("#top").height()+$("#footer").height();$("#backgroundContainerIEc").css("height",a)}$(".backgroundIEc").css("height","auto").css("width","100%");$(".backgroundIEc").height()<a&&$(".backgroundIEc").css("height","100%").css("width","auto")}$(document).ready(function(){$("body").hasClass("righttoleft")&&$("#frontpage-text h2 span.ani-arrows").removeClass("right").addClass("left")});$(document).ready(function(){$("#frontpage-explore").listSqueeze().scrollWrap(961,true,null,null,null,null);var a=150;$("#frontpage-explore .scroll-navigation-button").hover(function(){$(this).find("img.bullet").animate({top:"-3px",width:"35px",height:"34px"},a)},function(){$(this).find("img.bullet").animate({top:"0px",width:"29px",height:"28px"},a)})})
