"use strict";(function(){var F,G,A="ionFooter",E,C,D;function B(){F=new SWFObject(E,"ionAlbums",C,D,"8","#000000");F.addParam("scale","exactfit");F.addParam("wmode","transparent");F.addParam("allowfullscreen","true");F.write(A)}$(document).ready(function(){G=$("#ionFooter");E=G.attr("data-swfUrl");if(G.length&&E){C=parseInt(G.attr("data-swfWidth"),10);D=parseInt(G.attr("data-swfHeight"),10);B()}})}());"use strict";var Forms=(function(){function G(I,J){var H=I.wrapper.find("select");H.selectbox(I);if(jQuery.isFunction(J)){J()}}function A(P,R,L,H){var N=parseInt(R.css("margin-top"),10),Q,I,K,M=P==="up"?"-"+L+"px":"0px",S=P==="up"?(H+L)+"px":H+"px",J=2500,O=1000;Q=(N-(N*2));I=(J-(Q/2));K=(O+(Q/2));R.animate({marginTop:M,height:S},P==="up"?I:K,function(){A(P,R,L,H)})}function F(H,K){var L,I,J=H.find("ul");(K?K:H).addClass("scrollableSelectBox").show(function(){I=parseInt(J.css("height"),10);H.prepend($('<a class="scrollUp"></a>').mouseover(function(M){M.stopPropagation();M.preventDefault();A("down",J,(J.get(0).scrollHeight-I),I)}).mouseout(function(M){M.stopPropagation();M.preventDefault();J.stop()})).append($('<a class="scrollDown"></a>').mouseover(function(M){M.stopPropagation();M.preventDefault();A("up",J,(J.get(0).scrollHeight-I),I)}).mouseout(function(M){M.stopPropagation();M.preventDefault();J.stop()}))})}function D(){var I,J,H;I=$(this);if(I.attr("type")==="password"){J={id:I.attr("id"),name:I.attr("name"),type:"text",value:I.attr("id")==="password"?"Password":"Re-Enter Password"};H=$("<input />").attr(J);I.replaceWith(H);H.focus(C)}}function C(){var I,J,H;I=$(this);if(I.attr("type")==="text"){J={id:I.attr("id"),name:I.attr("name"),type:"password"};H=$("<input />").attr(J);I.replaceWith(H);H.get(0).focus();H.blur(function(){if($(this).val()===""){D.call(this)}})}}function E(H){H.focus(C)}function B(H){$(H).each(function(){var I=this;I.jqSelector.blur(function(){if($(this).val()===""){$(this).val(I.textValue)}}).focus(function(){if($(this).val()===I.textValue){$(this).val("")}})})}return{setSelectBox:G,scrollSelectBox:F,passwordInputToText:D,textInputToPassword:C,switchInputTypeOnFocus:E,setInputValueOnBlur:B}}());"use strict";function Carousel(b,d){var Z,U,O,P,R,T,G,N,a,H,F=b.find(".thegoods"),Q=false,W=0,Y=true,C,D;C=jQuery.extend({itemSelector:".box",upTrigger:b.find(".goup"),downTrigger:b.find(".godown"),addDotsToFrame:null,parentElement:null,friend:b,fill:false,doHover:true,padVisual:false,motion:"linear",disposition:"horizontal",offUpClass:"greyUp",offDownClass:"greyDown",hoverUpClass:"greenUp",hoverDownClass:"greenDown",removeDots:0,fullAmount:3,postScroll:function(){return true},movingCallback:function(){},useSpeed:null},d);a=C.itemSelector;H=C.friend;N=C.parentElement?F.find(C.parentElement):F;O=C.upTrigger;P=C.downTrigger;D=C.useSpeed;R=N.children(a);T=R.length;G=C.preScroll||function(g,f){if(g.size()<C.fullAmount+1||N.find(".no").length>0){return false}else{return !(f==="up"&&g.current()>=g.size()-C.fullAmount)}};F.removeAttr("style");if(C.motion==="circular"){R.each(function(f){$(this).attr("rel",f)})}if(C.addDotsToFrame){Q=$("#"+C.addDotsToFrame).find(".dotControls")}if($("body").hasClass("ie6")){O.bind("mouseenter mouseleave",function(f){$(this)[(f.type==="mouseenter"?"add":"remove")+"Class"]("ie6fix")});P.bind("mouseenter mouseleave",function(f){$(this)[(f.type==="mouseenter"?"add":"remove")+"Class"]("ie6fix")})}function E(g){var f;$(g).unbind().mouseover(function(){if($(this).find(".border-div").length){f=$(this).find("img");$(this).find(".border-div").css({height:(parseInt(f.height(),10)-6)+"px",width:(parseInt(f.width(),10)-6)+"px"}).show()}}).mouseout(function(){$(this).find(".border-div").hide()})}function M(f){N.append(f)}if(T<=C.fullAmount&&C.fill){P.addClass(C.offUpClass);O.addClass(C.offDownClass);Q.hide();if(T<C.fullAmount){for(U=0;U<C.fullAmount-T;U=U+1){M('<div class="no"></div>')}}else{if(T===C.fullAmount&&C.padVisual){M('<div class="no"></div>')}}}else{if(b!==C.friend&&C.doHover){N.unbind().mouseover(function(f){f.stopPropagation();f.preventDefault();P.addClass(C.hoverDownClass);O.addClass(C.hoverUpClass)}).mouseout(function(f){f.stopPropagation();f.preventDefault();P.removeClass(C.hoverDownClass);O.removeClass(C.hoverUpClass)})}}function I(){var i,f,h,g=[],j=(C.disposition==="horizontal")?"left":"top";N.children(a).each(function(k){i=parseInt($(this).offset()[j],10);f=parseInt($(this).parent().offset()[j],10);h=i-f;h=h-(h*2);g.push(h)});return g}function c(){W=(W+1>=N.children(a).length)?0:W+1}function J(){W=(W-1<=0)?0:W-1}function L(){return W}function X(f){return N.children(a).eq(f)}function B(){return N.children(a).length}function S(h){if(Q){var g=h||W,f=Q.find("a");$(f).each(function(j){$(this).unbind("click").click(function(){e(parseInt(j,10))}).removeClass("on")});$(f[g]).addClass("on").unbind().siblings().unbind("mouseover").unbind("mouseout").mouseover(function(){$(this).addClass("on")}).mouseout(function(){$(this).removeClass("on")})}}function V(i,k){var f,g=I(),h=(undefined!==k?k:"normal"),j;if(C.motion==="circular"){}else{f=G({size:B,box:N,current:L,fullAmount:C.fullAmount},i);if(f){switch(i){case"up":c();break;case"down":J();break;default:break}switch(C.disposition){case"horizontal":j={left:g[W]+"px"};break;case"vertical":j={top:g[W]+"px"};break}F.stop().animate(j,h,function(){S();C.postScroll(i)})}}C.movingCallback(f,i);return false}function e(i){var g,f=[],h;if(C.motion==="circular"){S(i);R.each(function(){h=$(this).attr("rel");f[h]=$(this).clone(true);if(h===i){return false}else{N.append(f[h]);$(this).remove()}})}else{g="normal";if(i-W>5||W-i>5){g="slow"}if(D){g=D}if(i<W){W=i+1>=N.children(a).length?0:i+1;V("down",g)}else{W=i-1<0?0:i-1;V("up",g)}}}function K(){return Y&&V("up")}function A(){return Y&&V("down")}O.unbind().click(K);P.unbind().click(A);if(Q){Q.html("");if(T-C.removeDots>1){for(Z=0;Z<T-C.removeDots;Z=Z+1){Q.append("<a>&nbsp;</a>")}Q.children().each(function(f){$(this).click(function(){e(parseInt(f,10))})});S()}}return{preScroll:G,postScroll:C.postScroll,unlocked:Y,size:B,current:L,addToCollection:M,goTo:e,move:V,getChild:X,addHighlight:E}}function RemoteCarousel(D){var M,R=[],Q=D.numVisible,C=D.visibleEnd||Q,J=D.maxNumData,O=D.getHtmlFromData,K=D.getData,N=D.processHtml,A=false;function G(S){M.unlocked=true;A=true}function L(S){R=R.concat(S)}function B(S){M.unlocked=false;K(function(T){M.unlocked=true;if(!T){A=true}L(T);S(T)},G)}function H(S){var T=O(S,R);M.addToCollection(T);N(M.getChild(S),S,R)}function E(S){if(S.length>0){H(M.size());M.goTo(M.current()+1)}}function F(U,S){var T=U.size(),V=U.current()+1+Q;if(S==="down"){return U.current()>0}else{if((Math.min(V,J-1)<R.length)&&(U.current()<(J-C))){if(V>=T&&T<R.length){H(T)}return true}else{if(R.length<J){B(E)}return false}}}D.preScroll=F;M=new Carousel(D.jqElem,D);function P(){var S,T=M.size();for(S=T;S<Math.min(T+Q+1,R.length,J);S=S+1){H(S)}}B(P);function I(S,T){if(S+1+Q<M.size()){M.goTo(S);T(S,R)}else{B(function(U){P();M.goTo(S);T(S,R)})}}M.setMax=function(S){J=S};M.getMax=function(){return J};M.getNumVisible=function(){return Q};M.get=function(S){return R[S]};M.loadAndGoTo=I;return M}"use strict";(function(){var E,J,F,C;function A(N){return N.split("#")[1]+"_block"}function H(N){$("#"+N).fadeIn().siblings().hide();return new Carousel($("#browseCarousel"),{parentElement:"#"+N,itemSelector:".album_box",preScroll:function(O){return(O.size()>1)}})}function G(N){if(J){J.find("a").removeClass("on");N.addClass("on")}}function B(O){var P,N;J.each(function(){P=$(this).find("a");P.click(function(){G($(this));H(A(this.href))});if(P.attr("href").indexOf(O)>-1){N=P}});if(N){G(N);H(A(N.attr("href")))}}function I(){var N;$("#questionList a").each(function(O){F=(O===0);$(this).click(function(){N=this.id;$(this).addClass("selected").parent().siblings().find("a").removeClass("selected");$("#answer").find("li").hide();$("#"+N.replace("q","a")).show();return false});if(F){$("#questionList a:first").addClass("selected");$("#answer li:first").show()}})}function M(){J=$(".carouselNav li");if(window.location.hash){E=window.location.hash;if(E.indexOf("#")===0){B(E)}else{B("#"+E)}}else{B("#list0")}}function L(){var P=$("#countryTrigger"),O=$("#countryPop"),Q,R=$("#pitchWrapper"),N=$("body").attr("id")==="start"||$("body").attr("id")==="why";P.click(function(){Q=$(this);if(Q.hasClass("bubbleOpen")){if(N){R.css("z-index",1)}O[C?"hide":"fadeOut"]();Q.removeClass("bubbleOpen").text("Don't see your country?")}else{if(N){R.css("z-index",2)}Q.addClass("bubbleOpen").text("Close bubble");O[C?"show":"fadeIn"]()}return false})}function K(){$(".linkButton").click(function(){window.location.href=$(this).attr("data-url");return false})}function D(){$(".cp_flash").each(function(){var R,Q=$(this),O,P,S,N;O=Q.attr("id");P=Q.attr("data-width");S=Q.attr("data-height");N=Q.attr("data-src");R=new SWFObject(N,O,P,S,"8","#000000");R.addParam("scale","exactfit");R.addParam("wmode","transparent");R.write(O)})}$(function(){C=$("body").hasClass("ie");D();if($("#browseCarousel").length){M()}if($("#countryTrigger").length){L()}if($("#startForm, #startFormShort, #startFormLong").length){Forms.setSelectBox({wrapper:$("#startForm, #startFormShort, #startFormLong")},null)}if($("#howDivider").length){I()}if($(".linkButton").length){K()}});jQuery.extend(QUnit,{createCarouselId:A,setCarouselContext:H})}());"use strict";$(function(){var D=$("<a href='#' class='moreLink'>more tracks > </a>"),C=$("#albumPitch #trackListing"),B,E=$(".listing"),G=C.is(".multiDisc")?true:false,A,F=300;B=C.find("ul");function L(){if(G){F=F+42}}function I(){return A>F}function H(){D.toggle(function(){E.animate({height:A+"px"},"medium").parent().find(".moreLink").html("less tracks >");return false},function(){E.height(F).parent().find(".moreLink").html("more tracks >");return false})}function K(){C.append(D);H()}function J(){var M;if(E.length>0){A=E.get(0).scrollHeight;M=I();L();if(M){K()}else{B.removeClass("listing")}}}J()});(function(){var F,G,E,D,A=200;function B(H){E=H.parents("li").find(".ttDescription div").html();F.html(E)}function C(){D=$("#artwork img").height();if(D<=A){$("#artwork").addClass("noCrop")}}C();$(function(){F=$("#currentAlbum");G=$("a.topTrackSample");G.bind("click.topTrack",function(){B($(this))});B($("a.topTrackSample:first"))})}());