var fxWindow1;var fxWindow2;var WindowCount=5;var ActualWindow=1;var Window1Morphing=false;var Window2Morphing=false;var Repeater;var fxP1;var fxS1;var fxP2;var fxS2;var fxP3;var fxS3;var fxP4;var fxS4;var fxP5;var fxD1;var fxD2;var fxD3;var fxD4;var fxD5;TrackAffiliate();function TrackAffiliate(){var c=window.location.href.indexOf("#");if(c!=-1){var f=window.location.href.indexOf("?",c);var d;if(f!=-1){d=window.location.href.substr(c+1,f-c-1)}else{d=window.location.href.substr(c+1)}if(Cookie.read("bmr")!=d){Cookie.write("bmr",d,{duration:30,domain:".bonusminer.com"});if(Cookie.read("bmr")==d){var b=new Object();b.affiliate_id=d;b.referrer=document.referrer;var e="http://";if(window.location.href.substr(0,8)=="https://"){e="https://"}var a=new Request({url:e+"bonusminer.com/app/bmr/"}).send("Data="+escape(JSON.encode(b)))}}}}window.addEvent("domready",function(){fxWindow1=new Fx.Morph("Cont1-Window1",{duration:500,transition:Fx.Transitions.Cubic.easeIn,onComplete:function(){Window1Morphing=false;WindowMorphed()}});fxWindow2=new Fx.Morph("Cont1-Window2",{duration:1000,transition:Fx.Transitions.Cubic.easeOut,onComplete:function(){Window2Morphing=false;WindowMorphed()}});fxWindow1Reverse=new Fx.Morph("Cont1-Window1",{duration:1000,transition:Fx.Transitions.Cubic.easeOut,onComplete:function(){Window1Morphing=false;WindowMorphed()}});fxWindow2Reverse=new Fx.Morph("Cont1-Window2",{duration:500,transition:Fx.Transitions.Cubic.easeIn,onComplete:function(){Window2Morphing=false;WindowMorphed()}});$("Cont1-LeftArrow").addEvent("click",function(a){_gaq.push(["_trackEvent","Interactions","Home - Change BM UI Preview","Prev"]);if(Window1Morphing==false&&Window2Morphing==false){PrevWindow()}});$("Cont1-RightArrow").addEvent("click",function(a){_gaq.push(["_trackEvent","Interactions","Home - Change BM UI Preview","Next"]);if(Window1Morphing==false&&Window2Morphing==false){NextWindow()}});Repeater=setTimeout(NextWindow,5000);fxP1=new Fx.Morph("Cont3-2-p1",{duration:250,transition:Fx.Transitions.Linerar});fxS1=new Fx.Morph("Cont3-2-s1",{duration:250,transition:Fx.Transitions.Linerar});fxP2=new Fx.Morph("Cont3-2-p2",{duration:250,transition:Fx.Transitions.Linerar});fxS2=new Fx.Morph("Cont3-2-s2",{duration:250,transition:Fx.Transitions.Linerar});fxP3=new Fx.Morph("Cont3-2-p3",{duration:250,transition:Fx.Transitions.Linerar});fxS3=new Fx.Morph("Cont3-2-s3",{duration:250,transition:Fx.Transitions.Linerar});fxP4=new Fx.Morph("Cont3-2-p4",{duration:250,transition:Fx.Transitions.Linerar});fxS4=new Fx.Morph("Cont3-2-s4",{duration:250,transition:Fx.Transitions.Linerar});fxP5=new Fx.Morph("Cont3-2-p5",{duration:250,transition:Fx.Transitions.Linerar});fxD1=new Fx.Morph("Cont3-2-d1",{duration:250,transition:Fx.Transitions.Linerar});fxD2=new Fx.Morph("Cont3-2-d2",{duration:250,transition:Fx.Transitions.Linerar});fxD3=new Fx.Morph("Cont3-2-d3",{duration:250,transition:Fx.Transitions.Linerar});fxD4=new Fx.Morph("Cont3-2-d4",{duration:250,transition:Fx.Transitions.Linerar});fxD5=new Fx.Morph("Cont3-2-d5",{duration:250,transition:Fx.Transitions.Linerar});$("Cont3-2-hp1").addEvent("mouseover",function(a){PillarHighlight(1)});$("Cont3-2-hd1").addEvent("mouseover",function(a){PillarHighlight(1)});$("Cont3-2-hp1").addEvent("mouseout",function(a){PillarHighlight(0)});$("Cont3-2-hd1").addEvent("mouseout",function(a){PillarHighlight(0)});$("Cont3-2-hp2").addEvent("mouseover",function(a){PillarHighlight(2)});$("Cont3-2-hd2").addEvent("mouseover",function(a){PillarHighlight(2)});$("Cont3-2-hp2").addEvent("mouseout",function(a){PillarHighlight(0)});$("Cont3-2-hd2").addEvent("mouseout",function(a){PillarHighlight(0)});$("Cont3-2-hp3").addEvent("mouseover",function(a){PillarHighlight(3)});$("Cont3-2-hd3").addEvent("mouseover",function(a){PillarHighlight(3)});$("Cont3-2-hp3").addEvent("mouseout",function(a){PillarHighlight(0)});$("Cont3-2-hd3").addEvent("mouseout",function(a){PillarHighlight(0)});$("Cont3-2-hp4").addEvent("mouseover",function(a){PillarHighlight(4)});$("Cont3-2-hd4").addEvent("mouseover",function(a){PillarHighlight(4)});$("Cont3-2-hp4").addEvent("mouseout",function(a){PillarHighlight(0)});$("Cont3-2-hd4").addEvent("mouseout",function(a){PillarHighlight(0)});$("Cont3-2-hp5").addEvent("mouseover",function(a){PillarHighlight(5)});$("Cont3-2-hd5").addEvent("mouseover",function(a){PillarHighlight(5)});$("Cont3-2-hp5").addEvent("mouseout",function(a){PillarHighlight(0)});$("Cont3-2-hd5").addEvent("mouseout",function(a){PillarHighlight(0)});fxD1.set({opacity:"0.4"});fxD2.set({opacity:"0.4"});fxD3.set({opacity:"0.4"});fxD4.set({opacity:"0.4"});fxD5.set({opacity:"0.4"})});function NextWindow(){clearTimeout(Repeater);Window1Morphing=true;Window2Morphing=true;$("Cont1-LeftArrow").style.display="none";$("Cont1-RightArrow").style.display="none";fxWindow2.set({opacity:"0"});$("Cont1-Window2").style.left="130px";if(ActualWindow<WindowCount){ActualWindow++}else{ActualWindow=1}$("Cont1-Window2").style.backgroundPosition="-"+248*(ActualWindow-1)+"px 0px";fxWindow2.start({opacity:"1",left:"31px"});fxWindow1.start({opacity:"0",left:"-99px"})}function PrevWindow(){clearTimeout(Repeater);Window1Morphing=true;Window2Morphing=true;$("Cont1-LeftArrow").style.display="none";$("Cont1-RightArrow").style.display="none";fxWindow2.set({opacity:"0"});$("Cont1-Window2").style.left="31px";$("Cont1-Window2").style.backgroundPosition=$("Cont1-Window1").style.backgroundPosition;fxWindow2.set({opacity:"1"});if(ActualWindow>1){ActualWindow--}else{ActualWindow=WindowCount}fxWindow1.set({opacity:"0"});$("Cont1-Window1").style.backgroundPosition="-"+248*(ActualWindow-1)+"px 0px";$("Cont1-Window1").style.left="-99px";fxWindow2Reverse.start({opacity:"0",left:"130px"});fxWindow1Reverse.start({opacity:"1",left:"31px"})}function WindowMorphed(){if(Window1Morphing==false&&Window2Morphing==false){$("Cont1-Window1").style.backgroundPosition="-"+248*(ActualWindow-1)+"px 0px";$("Cont1-Window1").style.left="31px";fxWindow1.set({opacity:"1"});fxWindow2.set({opacity:"0"});$("Cont1-LeftArrow").style.display="";$("Cont1-RightArrow").style.display="";Repeater=setTimeout(NextWindow,5000)}}function PillarHighlight(a){if(a==0){OpacityHigh(fxP1);OpacityLow(fxD1);OpacityHigh(fxP2);OpacityLow(fxD2);OpacityHigh(fxP3);OpacityLow(fxD3);OpacityHigh(fxP4);OpacityLow(fxD4);OpacityHigh(fxP5);OpacityLow(fxD5);OpacityHigh(fxS1);OpacityHigh(fxS2);OpacityHigh(fxS3);OpacityHigh(fxS4)}else{if(a==1){OpacityHigh(fxP1);OpacityHigh(fxD1)}else{OpacityLow(fxP1);OpacityLow(fxD1)}if(a==2){OpacityHigh(fxP2);OpacityHigh(fxD2)}else{OpacityLow(fxP2);OpacityLow(fxD2)}if(a==3){OpacityHigh(fxP3);OpacityHigh(fxD3)}else{OpacityLow(fxP3);OpacityLow(fxD3)}if(a==4){OpacityHigh(fxP4);OpacityHigh(fxD4)}else{OpacityLow(fxP4);OpacityLow(fxD4)}if(a==5){OpacityHigh(fxP5);OpacityHigh(fxD5)}else{OpacityLow(fxP5);OpacityLow(fxD5)}OpacityLow(fxS1);OpacityLow(fxS2);OpacityLow(fxS3);OpacityLow(fxS4)}}function OpacityHigh(a){a.cancel();a.start({opacity:"1"})}function OpacityLow(a){a.cancel();a.start({opacity:"0.4"})};