var AutoSwiff=new Class({Extends:Swiff,initialize:function(d,b){this.setOptions(b);var c=$(this.options.container);if(Browser.Plugins.Flash.version>0){c.addClass("swfLoaded");if(this.versionCheck()){this.parent(d,b)}}else{c.addClass("swfFailed");c.setStyles({background:"rgba(0,0,0,0.5)",position:"relative"});c.set("html",'<div><h3>Adobe Flashplayer not found!</h3><div>			<p>Please download Adobe Flashplayer:</p>			<ul><li><a href="http://www.adobe.com/go/getflashplayer" target="_blank">http://www.adobe.com/go/getflashplayer</a></li></ul>			</div></div>');var a=c.getElement("div");containerSize=c.getSize();a.setStyle("position","absolute");msgContainerSize=a.getSize();a.setStyles({top:((containerSize.y/2)-(msgContainerSize.y/2)),left:((containerSize.x/2)-(msgContainerSize.x/2))})}},versionCheck:function(){var a=this.options.vars.version;if(Browser.Plugins.Flash.version<a){var b=this;new Swiff(b.options.vars.expressinstall,{container:b.options.container,width:b.options.width,height:b.options.height,params:{},vars:{}});return false}else{return true}}});(function(a){this.GT=this.GT||{};this.GT.Step=this.GT.Step||new Class({Implements:[Options,Events],options:{texts:{prevLink:"Previous Page",nextLink:"Next Page",page:"Page #"},movingContainerSelector:"div.container ul",tweenDuration:"normal",tweenTransition:"cubic:in:out",cssClassPaging:"paging",cssClassShowAll:"showAll",cssClassActive:"active",cssClassInactive:"inactive",cssClassPrev:"prev",cssClassNext:"next"},initialize:function(c,b){b.texts.prevLink=(b.texts.prevLink)?b.texts.prevLink:this.options.texts.prevLink;b.texts.nextLink=(b.texts.nextLink)?b.texts.nextLink:this.options.texts.nextLink;b.texts.page=(b.texts.page)?b.texts.page:this.options.texts.page;this.setOptions(b);this.contBox=$$(c)[0];this.pageContainer=this.contBox.getElement(this.options.movingContainerSelector);this.currentStep=1;if(this.contBox&&this.pageContainer){this.pageContainerMargins=this.pageContainer.getStyle("margin-left").toInt()+this.pageContainer.getStyle("margin-right").toInt();this.prepareNavigation()}},showPrev:function(){this.show(this.currentStep-1)},showNext:function(){this.show(this.currentStep+1)},show:function(c){var b=(c.toInt()).limit(1,this.pages);if(!$type(b)){b=1}if(this.currentStep===b){return}this.currentStep=b;this.pageContainer.tween("margin-left",(-((b-1)*this.pageWidth)+this.pageContainerMargins));if(1===b){this.prevLinkContainer.addClass(this.options.cssClassInactive)}else{this.prevLinkContainer.removeClass(this.options.cssClassInactive)}if(this.pages===b){this.nextLinkContainer.addClass(this.options.cssClassInactive)}else{this.nextLinkContainer.removeClass(this.options.cssClassInactive)}this.stepLinks.each(function(e,d){if(d===(b-1)){e.getParent().addClass(this.options.cssClassActive)}else{e.getParent().removeClass(this.options.cssClassActive)}},this)},prepareNavigation:function(){this.stepLinks=[];this.pageWidth=this.pageContainer.getParent().getSize().x;this.totalWidth=this.pageContainer.getSize().x;this.pages=Math.ceil(this.totalWidth/this.pageWidth);this.pageNav=new Element("ul",{"class":this.options.cssClassPaging});this.pageContainer.set("tween",{duration:this.options.tweenDuration,transition:this.options.tweenTransition});if(this.pages>1){this.preparePrevLink();this.prepareStepNav();this.prepareNextLink();this.prepareShowAll();this.contBox.grab(this.pageNav)}else{this.prepareShowAll()}},preparePrevLink:function(b){var c;this.prevLinkContainer=new Element("li",{"class":this.options.cssClassPrev+" "+this.options.cssClassInactive});c=new Element("a",{href:"#",text:this.options.texts.prevLink,title:this.options.texts.prevLink,events:{click:function(d){d.preventDefault();this.showPrev()}.bind(this)}});this.prevLinkContainer.grab(c);this.pageNav.grab(this.prevLinkContainer)},prepareStepNav:function(){var b=new Element("ol");this.pages.times(function(e){var c,d,f;e++;f=this.options.texts.page.replace(/#/,e);if(1===e){c=new Element("li",{"class":this.options.cssClassActive})}else{c=new Element("li")}d=new Element("a",{href:"#",text:f,title:f,events:{click:function(h,g){h.preventDefault();this.show(g)}.bindWithEvent(this,e)}});this.stepLinks[(e-1)]=d;b.grab(c.grab(d))},this);this.pageNav.grab(b)},prepareNextLink:function(){var b;this.nextLinkContainer=new Element("li",{"class":this.options.cssClassNext});b=new Element("a",{href:"#",text:this.options.texts.nextLink,title:this.options.texts.nextLink,events:{click:function(c){c.preventDefault();this.showNext()}.bind(this)}});this.nextLinkContainer.grab(b);this.pageNav.grab(this.nextLinkContainer)},prepareShowAll:function(){var b,c;c=this.contBox.getElement("span."+this.options.cssClassShowAll);if(c){b=new Element("li",{"class":this.options.cssClassShowAll});b.grab(c.getChildren()[0].clone());c.destroy();this.pageNav.grab(b)}},addMouseWheel:function(){this.pageBox.addEvent("mousewheel",function(b){b.preventDefault();if(b.wheel>0){this.showNext()}else{if(b.wheel<0){this.showPrev()}}}.bindWithEvent(this))},toElement:function(){return this.pageNav}})})(document.id);(function(a){this.GT=this.GT||{};this.GT.Steps=this.GT.Steps||new Class({Implements:[Options],options:{texts:{prevLink:"Previous Page",nextLink:"Next Page",page:"Page #"},movingContainerSelector:"div.container ul",tweenDuration:"normal",tweenTransition:"cubic:in:out",cssClassPaging:"paging",cssClassShowAll:"showAll",cssClassActive:"active",cssClassInactive:"inactive",cssClassPrev:"prev",cssClassNext:"next"},initialize:function(c,b){if(b&&b.texts){b.texts.prevLink=(b.texts.prevLink)?b.texts.prevLink:this.options.texts.prevLink;b.texts.nextLink=(b.texts.nextLink)?b.texts.nextLink:this.options.texts.nextLink;b.texts.page=(b.texts.page)?b.texts.page:this.options.texts.page}this.setOptions(b);this.contBoxes=$$(c);this.contBoxes.each(function(d){new GT.Step(d,this.options)},this)},toElement:function(){return null}})})(document.id);(function(a){this.GT=this.GT||{};this.GT.Address=this.GT.Address||new Class({Implements:[Options,Events],options:{relIdentifier:"ax:",activeClassName:"active",evalScripts:false,useSpinner:true,spinnerOptions:{"class":"ajax-address-spinner"}},initialize:function(b,c){this.setOptions(c);this.targetContainer=$$(b)[0];this.sourceLinks=$$("a[rel^="+this.options.relIdentifier+"]");if(this.targetContainer&&this.sourceLinks.length){this.currentHash="";this.parentHash="";this.matchedUrl="";this.interceptLinks=false;this.request=new GT.Request.HTML({evalScripts:this.options.evalScripts,update:this.targetContainer,data:"ax=1",useSpinner:this.options.useSpinner,spinnerOptions:this.options.spinnerOptions,spinnerTarget:this.targetContainer,onComplete:function(){this.fireEvent("requestComplete")}.bind(this),onSuccess:function(g,f,d,i){this.fireEvent("requestSuccess",[g,f,d,i]);try{GT_TRACKER.track("_trackPageview",this.matchedUrl)}catch(h){}}.bind(this),onFailure:function(d){this.fireEvent("requestFailure",d)}.bind(this)});this.currentLocation=[location.pathname,location.search].join("");this.prepareLinks();this.prepareContentContainer();this.addEvent("change",this.change);this.intervalID=this.interval.periodical(300,this)}},interval:function(){var b=this.getHash();if(this.currentHash!=b){this.currentHash=b;this.fireEvent("change")}},prepareLinks:function(){this.sourceLinks.addEvent("click",function(c){var d=a(c.target),b=(d.get("tag")==="a")?d:d.getParent("a");this.fireEvent("linkClick",c);if(b){c.preventDefault();location.hash=b.get("rel").replace(new RegExp("^"+this.options.relIdentifier,"g"),"")}}.bindWithEvent(this))},prepareContentContainer:function(){this.targetContainer.addEvent("click",function(c){var d=a(c.target),b=(d.get("tag")==="a")?d:d.getParent("a");if(b){var e=true;if(b.hasClass("room")){e=false;c.preventDefault();GT.gameWindow(b.href)}if(b.hasClass("profile")){e=false}if(this.interceptLinks&&e){c.preventDefault();location.hash=this.parentHash+b.get("href").replace(new RegExp("^"+location.protocol+"//"+location.hostname,"g"),"")}}}.bindWithEvent(this));this.targetContainer.addEvent("submit",function(b){b.preventDefault();var c=a(b.target)}.bindWithEvent(this))},change:function(){var c=this.currentHash;if(c){var d=null;var b="";this.sourceLinks.each(function(g){var e=new RegExp("^"+this.options.relIdentifier+"(.+)$","g").exec(g.get("rel"));var h=g;var f=g.getParent("li");g=f?f:g;if(e.length){if(e[1]===c){b=h.get("href");if((this.currentLocation!=b)||(this.parentHash&&(this.parentHash!=e[1]))){d=g}this.parentHash=e[1]}else{if(c.test(e[1])){this.parentHash=e[1];d=g;b=c.replace(new RegExp("^"+e[1],"g"),"")}}}},this);if(d){this.sourceLinks.getParent("li").removeClass(this.options.activeClassName);d.addClass(this.options.activeClassName);this.interceptLinks=(d.hasClass("interceptLinks"))?true:false;if(USE_CUFON&&("function"==typeof Cufon)){Cufon.refresh()}this.matchedUrl=b;if(b.substr(0,1)==="#"){this.loadInlineContent(b.substr(1,(b.length-1)))}else{this.request.get(b)}}}},loadInlineContent:function(b){var c=a(b);if(c){this.targetContainer.set("html",c.get("html"));this.fireEvent("requestComplete")}else{this.fireEvent("requestFailure",{})}},getHash:function(){var b=location.href.indexOf("#");return(b!=-1)?encodeURI(decodeURI(location.href.substr(b+1))):""}})})(document.id);(function(a){this.GT=this.GT||{};this.GT.console=this.GT.console||{log:function(){if("object"==typeof console){console.log.run(arguments)}}}})(document.id);(function(a){this.GT=this.GT||{};this.GT.Countdown=this.GT.Countdown||new Class({Implements:[Options,Events],options:{elementsSelector:".to1.tournBox_0_1_1",countdownTextElementSelectors:[],cufonCountdownSelectors:[],cufonCountdownCompletedSelectors:[]},initialize:function(b){this.setOptions(b);this.countdowns=$$(this.options.elementsSelector);if(this.countdowns.length){this.startPeriodical=this.count.periodical(1000,this)}},count:function(){for(var b=0,e=this.countdowns.length;b<e;++b){var d=this.countdowns[b],c=d.getElement(this.options.countdownTextElementSelectors[0]),f,g;if(c){f=c.get("text")||"00:00:00";g=(this.stringToTime(f)-1);this.fireEvent("singleTick",[d,g]);this.singleTick(d,g);if(g<=0){this.fireEvent("singleCompleted",d);this.singleCompleted(d);if(this.countdowns.indexOf(d)<=b){--b}this.countdowns.erase(d);e=this.countdowns.length;if(!e){this.fireEvent("allCompleted");this.allCompleted()}}}}this.fireEvent("allTick");this.allTick()},singleTick:function(b,d){var c=this.timeToString(d);this.options.countdownTextElementSelectors.each(function(e){var f=b.getElement(e);if(f){f.set("text",c)}})},allTick:function(){if(USE_CUFON&&("function"==typeof Cufon)){this.options.cufonCountdownSelectors.each(function(b){Cufon.refresh(b)})}},singleCompleted:function(b){if(USE_CUFON&&("function"==typeof Cufon)){this.options.cufonCountdownCompletedSelectors.each(function(c){Cufon.refresh(c)})}},allCompleted:function(){$clear(this.startPeriodical)},stringToTime:function(d){var b,e,c,f=d.split(":");b=parseFloat(f[0]*3600);e=parseFloat(f[1]*60);c=parseFloat(f[2]);return b+e+c},timeToString:function(d){var b,e,c;b=this.addZero(Math.floor(d/3600));e=this.addZero(Math.floor((d/60)%60));c=this.addZero(Math.floor(d%60));return[b,e,c].join(":")},addZero:function(b){if(b<10){b=["0",b].join("")}return b}})})(document.id);(function(a){this.GT=this.GT||{};this.GT.Overlay=this.GT.Overlay||new Class({Implements:[Options,Events],options:{templateUrl:"/display.asp?page=overlay_templates",topPlayersUrl:"/games_details.asp",names:{overlay:"so2overlay",overlayBottom:"so2overlayBottom",container:".so1_container",tourn:".so1Tourn"},offset:{x:0,y:0},offset2:{x:0,y:0},changeDirectionAtPositionX:465,delayShow:600,delayHide:400,durationShow:200,durationHide:100},initialize:function(c,b){this.setOptions(b);this.currentlyHoveredElement;this.currentlyActiveElement;this.timerShow;this.timerHide;this.requestingTemplate=false;this.topPlayersCache=[];this.gameSelector=$$(c);if(this.gameSelector.length){this.prepareGameElements()}},prepareGameElements:function(){this.gameSelector.each(function(b){var c=b.getElement(this.options.names.container);if(!c||b.hasClass("noOverlay")){return}c.addEvents({mouseenter:function(d){if(this.getTemplate()&&!this.requestingTemplate){this.currentlyHoveredElement=b;this.timerShow=$clear(this.timerShow);if(this.timerHide){this.timerHide=$clear(this.timerHide);if(this.currentlyActiveElement!=this.currentlyHoveredElement){this.timerShow=this.hideAndShow.delay(this.options.delayShow,this)}}else{this.currentlyActiveElement=null;this.timerShow=this.show.delay(this.options.delayShow,this)}}else{if(!this.requestingTemplate){this.requestingTemplate=true;this.firstHoveredElem=b;this.requestTemplates()}else{this.firstHoveredElem=b}}}.bindWithEvent(this),mouseleave:function(d){this.firstHoveredElem=null;if(this.getTemplate()){this.timerHide=$clear(this.timerHide);this.timerShow=$clear(this.timerShow);this.timerHide=this.hide.delay(this.options.delayHide,this)}}.bindWithEvent(this)})},this)},init:function(){var b=new Element("div",{html:this.getTemplate()});this.overlayContainer=b.getChildren()[0];this.overlayContainer.setStyles({opacity:0,top:-9999,left:-9999});this.overlayContainer.getElement(".btnClose a").addEvent("click",function(c){c.preventDefault();this.hide()}.bindWithEvent(this));GT.tooltip.attach(this.overlayContainer.getElements("a[title]"));a(document.body).grab(this.overlayContainer);this.elementBuffer={title:this.overlayContainer.getElement("#so2overlayTop h3 span"),description:this.overlayContainer.getElement("#so2overlayTop div.gameDesc p"),players:this.overlayContainer.getElement("#so2overlayTop dl dd"),gameImage:this.overlayContainer.getElement("#so2overlayTop .gameShot img"),rating:this.overlayContainer.getElement("#so2rating"),tournDate:this.overlayContainer.getElement("#so2overlayBottom .tournDate"),tournPrize:this.overlayContainer.getElement("#so2overlayBottom .tournPrize"),btnPlay:this.overlayContainer.getElement("#so2nav li.btnPlay a"),btnHelp:this.overlayContainer.getElement("#so2nav li.btnHelp a"),btnInfo:this.overlayContainer.getElement("#so2nav li.btnInfo a"),btnStats:this.overlayContainer.getElement("#so2nav li.btnStats a"),btnTourn:this.overlayContainer.getElement("#so2nav li.btnTourn a")};this.elementBuffer.btnPlay.addEvent("click",function(c){c.preventDefault();GT.gameWindow(this.href)});this.topPlayersRequest=new GT.Request.HTML({url:this.options.topPlayersUrl,link:"cancel",useSpinner:true,spinnerTarget:"topGame",onSuccess:function(d,e,c,f){this.writeTopPlayers(c)}.bind(this)});this.prepareTweens();this.overlayContainer.addEvents({mouseenter:function(c){this.timerHide=$clear(this.timerHide);this.timerShow=$clear(this.timerShow);if(this.currentlyActiveElement){this.currentlyActiveElement.getElement(this.options.names.container+" a").addClass("hover")}}.bindWithEvent(this),mouseleave:function(c){this.timerHide=$clear(this.timerHide);this.timerShow=$clear(this.timerShow);if(this.currentlyActiveElement){this.currentlyActiveElement.getElement(this.options.names.container+" a").removeClass("hover")}this.timerHide=this.hide.delay(this.options.delayHide,this)}.bindWithEvent(this)})},prepareTweens:function(){this.tweenShow=new Fx.Tween(this.overlayContainer,{link:"cancel",duration:this.options.durationShow,transition:"cubic:out",onComplete:function(){var c=0;var d=a("nav");var e=d.hasClass("sticky");if(e){c=50}if((this.currentlyHoveredElement.getPosition(window).y-this.overlayContainer.getSize().y-c)<window.getScroll().y){var b=new Fx.Scroll(window).start(0,this.overlayContainer.getPosition().y-c)}}.bind(this),onStart:function(){if(this.TweenHide){this.TweenHide.cancel()}if(this.tweenHideAndShow){this.tweenHideAndShow.cancel()}}.bind(this)});this.tweenHide=new Fx.Tween(this.overlayContainer,{link:"cancel",duration:this.options.durationHide,transition:"cubic:out",onComplete:function(){this.overlayContainer.setStyles({top:-99999,left:-99999})}.bind(this),onStart:function(){if(this.tweenShow){this.tweenShow.cancel()}if(this.tweenHideAndShow){this.tweenHideAndShow.cancel()}}.bind(this)});this.tweenHideAndShow=new Fx.Tween(this.overlayContainer,{link:"cancel",duration:this.options.durationHide,transition:"cubic:out",onComplete:function(){this.show()}.bind(this),onStart:function(){if(this.tweenShow){this.tweenShow.cancel()}if(this.TweenHide){this.TweenHide.cancel()}}.bind(this)})},show:function(){this.currentlyActiveElement=this.currentlyHoveredElement;this.replaceWildcards();this.setPosition();if(IE){this.tweenShow.set("opacity",1);this.tweenShow.start("opacity",1)}else{this.tweenShow.start("opacity",1)}},hide:function(){if(0!==this.overlayContainer.getStyle("opacity")){if(this.currentlyActiveElement){this.currentlyActiveElement.getElement(this.options.names.container+" a").removeClass("hover");this.currentlyActiveElement=null}if(IE){this.tweenHide.set("opacity",0);this.tweenHide.start("opacity",0)}else{this.tweenHide.start("opacity",0)}}},hideAndShow:function(){if(this.currentlyActiveElement){this.currentlyActiveElement.getElement(this.options.names.container+" a").removeClass("hover");this.currentlyActiveElement=null}if(IE){this.tweenHideAndShow.set("opacity",0);this.tweenHideAndShow.start("opacity",0)}else{this.tweenHideAndShow.start("opacity",0)}},replaceWildcards:function(){var c=this.currentlyActiveElement,b=[],i=c.getElements(this.options.names.container+" > p").getLast(),d=/gameId_([0-9_]+)/.exec(c.get("class")),e=/(status([a-zA-Z])+)/.exec(c.get("class")),g=/(rating[0-9])+/.exec(c.get("class")),f=c.getElements(this.options.names.tourn+" > dl > dd"),h;if(c.hasClass("friendsOnline")){b.push("friendsOnline")}if(e){b.push(e[1])}h={title:c.getElement("h4").get("text"),description:i?i.get("text"):"",id:d.length?d[1]:1,rating:g?(g.length?g[1]:""):"",players:c.getElement("dl > dd").get("text"),tournDate:f.length?f[0].get("text"):"",tournPrize:f.length?f[1].get("text"):"",gameLink:c.getElement(".so1_container a").get("href"),gameDetailLink:c.getElement("h4 a").get("href")};this.elementBuffer.title.set("text",h.title);this.elementBuffer.description.set("text",h.description);this.elementBuffer.players.set("text",h.players);this.elementBuffer.gameImage.set("src","https://static1.greentube.com/xsl_gamebase/_dev_skill7/imgs/screens/gameshot_"+h.id+"_tn.jpg");this.elementBuffer.rating.set("class",h.rating);this.elementBuffer.tournDate.set("text",h.tournDate);this.elementBuffer.tournPrize.set("text",h.tournPrize);this.elementBuffer.btnPlay.set("href",h.gameLink);this.elementBuffer.btnHelp.set("href",h.gameDetailLink+this.elementBuffer.btnHelp.get("text")+".html");this.elementBuffer.btnInfo.set("href",h.gameDetailLink);this.elementBuffer.btnStats.set("href","/stats.asp?id_game="+h.id);this.overlayContainer.set("class",b.join(" "));if(USE_CUFON&&("function"==typeof Cufon)){if(this.cufonTitleStarted){Cufon.refresh("#"+this.options.names.overlay+" h3")}else{this.cufonTitleStarted=true;Cufon.replace("#"+this.options.names.overlay+" h3").replace("#"+this.options.names.overlay+" button")}}this.topPlayersRequest.cancel();this.overlayContainer.getElement("#topGame").empty();if(!c.hasClass("external")){this.requestTopPlayers(h.id)}},setPosition:function(){var e=this.currentlyActiveElement,g=e.getElement(this.options.names.container),b=g.getPosition(),d=g.getPosition("main"),c,f=this.overlayContainer.getElement(".overlayPointer").getSize();if(d.x>this.options.changeDirectionAtPositionX){if(this.overlayContainer.hasClass("statusTourn")){this.overlayContainer.addClass("type4")}else{this.overlayContainer.addClass("type2")}c=this.overlayContainer.getSize();this.positionTop=(b.y-c.y);this.overlayContainer.setStyles({top:this.positionTop+this.options.offset2.y,left:b.x-c.x+g.getSize().x+this.options.offset2.x})}else{if(this.overlayContainer.hasClass("statusTourn")){this.overlayContainer.addClass("type3")}else{this.overlayContainer.addClass("type1")}c=this.overlayContainer.getSize();this.positionTop=(b.y-c.y);this.overlayContainer.setStyles({top:this.positionTop+this.options.offset.y,left:b.x+this.options.offset.x})}},requestTemplates:function(){if(this.options.templateUrl){var b=new GT.Request.HTML({url:this.options.templateUrl,onSuccess:function(d,e,c,f){this.requestingTemplate=false;this.overlayTemplate=c;this.init();if(this.firstHoveredElem){this.firstHoveredElem.getElement(this.options.names.container).fireEvent("mouseenter")}}.bind(this)});b.get()}else{}},requestTopPlayers:function(b){this.topPlayersRequest.get({id_game:b,xpf:"top3_ax"})},writeTopPlayers:function(e){var b=this.overlayContainer.getElement("#topGame");if(b){b.set("html",e);var d=this.topPlayersRequest.getSpinner();d.clearChain();d.hide();if(USE_CUFON&&("function"==typeof Cufon)){if(this.cufonTop3TitleStarted){Cufon.refresh("#topGame h5")}else{this.cufonTop3TitleStarted=true;Cufon.replace("#topGame h5")}}GT.tooltip.attach(b.getElements("a[title]"));if(!IE6){var c=b.getElement(".contBox");if(c){c.setStyle("opacity",0).tween("opacity",1)}}}},getTemplate:function(){return this.overlayTemplate},toElement:function(){return this.overlayContainer}})})(document.id);(function(a){this.GT=this.GT||{};this.GT.GameSize=this.GT.GameSize||new Class({Implements:[Options,Events],options:{windowResize:true,centerWindow:true,ignoreCookie:false,wrapperMargin:{x:0,y:0},gameFrame:false,wrapper:a("wrapper"),gameFrameId:"gameFrame",gameFrameTarget:"main",resizeMenu:a("windowSizes"),defaultSize:"sizeS",gameFrameAttributes:{scrolling:"no",frameborder:"0"},gameFrameSrc:"",ratio:"1.625"},initialize:function(b){this.setOptions(b);this.windowObject=top;this.windowObjectDiff={};this.windowObjectSizes=["s","m","l"];this.scrollbarWidth=(IE)?0:17;this.wrapperSize=0;if(IE6){this.ie6Styles=this.getie6Styles()}this.initGameSizeCookie();this.insertGameFrame();this.addResizeLinkEvent();this.initWindow()},addResizeLinkEvent:function(){this.options.resizeMenu.getElements("a").addEvent("click",function(b){this.options.resizeMenu.getElements("li").removeClass("active");a(b.target).getParent("li").addClass("active");this.wrapperResize();this.writeGameSizeCookie("sSize",this.options.resizeMenu.getElement("li.active").get("id"))}.bindWithEvent(this))},initWindow:function(){if(this.readGameSizeCookie("sSize")&&(a(this.options.resizeMenu).getElements("li").get("id").contains(this.readGameSizeCookie("sSize")))&&!this.options.ignoreCookie){a(this.readGameSizeCookie("sSize")).addClass("active")}else{a(this.options.defaultSize).addClass("active")}this.wrapperResize()},wrapperResize:function(){this.removeWrapperClass();this.options.wrapper.addClass(this.windowObjectSizes[this.options.resizeMenu.getElements("li").indexOf(this.options.resizeMenu.getElement("li.active"))]);if(this.options.windowResize){this.windowResize()}},windowResize:function(){this.wrapperSize=this.getWrapperSize();this.windowObjectDiff=this.getOuterInnerWindowDiff();var b={x:this.wrapperSize.x+this.windowObjectDiff.x+this.options.wrapperMargin.x,y:this.wrapperSize.y+this.windowObjectDiff.y+this.options.wrapperMargin.y};if(Browser.Engine.webkit){this.windowObject.resizeTo(b.x+10,b.y)}if(IE&&$chk(top.unloadEvent)){top.unloadEvent.target.onbeforeunload=function(){return}}this.windowObject.resizeTo(Math.min(screen.availWidth,b.x),Math.min(screen.availHeight,b.y));this.options.resizeMenu.setStyle("left",(Math.min(screen.availWidth,b.x)-102)+"px");if(IE&&$chk(top.unloadEvent)){(function(){top.unloadEvent.target.onbeforeunload=top.unloadEvent.handler}).delay(1000)}this.writeGameSizeCookie("winX",b.x);this.writeGameSizeCookie("winY",b.y);if(this.options.centerWindow){this.centerWindow(b.x,b.y)}},getie6Styles:function(){relevantStyles=this.getGameFrameStyleSheet();relevantRules=(relevantStyles)?relevantStyles.rules:[];widths=[];heights=[];$A(relevantRules).each(function(c,b){if(/^#gameFrame\..{2,3}$/.test(c.selectorText)){widths.push(c.style.width);heights.push(c.style.height)}});return{x:widths,y:heights}},setie6Styles:function(b,c){$$("#gameFrame","#wrapper","#footer","#main","#content","#header").setStyle("width",b[this.options.resizeMenu.selectedIndex]);a("gameFrame").setStyle("height",c[this.options.resizeMenu.selectedIndex])},getWrapperSize:function(){if(IE6){this.setie6Styles(this.ie6Styles.x,this.ie6Styles.y)}return{x:this.options.wrapper.getSize().x,y:this.options.wrapper.getSize().y}},getOuterInnerWindowDiff:function(){if(!IE){return{x:this.windowObject.outerWidth-this.windowObject.innerWidth+this.scrollbarWidth,y:this.windowObject.outerHeight-this.windowObject.innerHeight}}else{this.windowObject.moveTo(0,0);this.windowObject.resizeTo(screen.availWidth,screen.availHeight);return{x:screen.availWidth-this.windowObject.document.body.clientWidth+this.scrollbarWidth,y:screen.availHeight-this.windowObject.document.documentElement.clientHeight}}},initGameSizeCookie:function(){this.gameSizeCookie=new Hash.Cookie("gameSize",{duration:3600,path:"/",domain:/(?:.*\.)?([^.]+\.[^.]+)/.exec(location.hostname)[1]})},writeGameSizeCookie:function(b,c){return this.gameSizeCookie.set(b,c)},readGameSizeCookie:function(b){return this.gameSizeCookie.get(b)},addWrapperClass:function(b){this.options.wrapper.addClass(b)},removeWrapperClass:function(){this.windowObjectSizes.each(function(b){this.options.wrapper.removeClass(b)},this)},centerWindow:function(c,b){this.windowObject.moveTo(Math.max(0,screen.availWidth/2-c/2),Math.max(0,screen.availHeight/2-b/2))},insertGameFrame:function(){this.gameFrame=this.gameFrame||new IFrame({src:this.options.gameFrameSrc,id:this.options.gameFrameId,frameBorder:"no"}).inject("ajaxContainer","after").setProperties(this.options.gameFrameAttributes).addEvent("domready",function(){})},getGameFrameStyleSheet:function(){return $A(this.windowObject.document.styleSheets).filter(function(b,c){if(b&&b.title){return b.title}}).getLast()},rewriteGameFrameStyles:function(c){b=this.getGameFrameStyleSheet();if(b){var b=$A(IE?b.rules:b.cssRules);$A(b).each(function(d){d.style.height=(d.style.width.toInt()/c).round()+"px"})}},toElement:function(){return this.gameFrame}})})(document.id);(function(a){this.GT=this.GT||{};this.GT.Request=this.GT.Request||{};this.GT.Request.HTML=this.GT.Request.HTML||new Class({Extends:Request.HTML,isSuccess:function(){var b=false;if((this.status>=200&&this.status<300)){b=/^(?:<(?:\!|\?)[^>]*>\s*)?<div success="true">/.test(this.xhr.responseText)}return b},success:function(c){var b=this.options,e=this.response;e.html=c.stripScripts(function(f){e.javascript=f});e.html=e.html.replace(/^(?:<(?:\!|\?)[^>]*>\s*)?<div success="true">(\s)*/,"").replace(/(\s)*<\/div>$/,"");var d=this.processHTML(e.html);e.tree=d.childNodes;e.elements=d.getElements("*");if(b.filter){e.tree=e.elements.filter(b.filter)}if(b.update){document.id(b.update).empty().set("html",e.html)}else{if(b.append){document.id(b.append).adopt(d.getChildren())}}if(b.evalScripts){$exec(e.javascript)}this.onSuccess(e.tree,e.elements,e.html,e.javascript)}})})(document.id);(function(a){this.GT=this.GT||{};this.GT.Tooltip=this.GT.Tooltip||new Class({Extends:Tips})})(document.id);(function(a){this.GT=this.GT||{};this.GT.Tracker=this.GT.Tracker||new Class({Implements:Options,options:{codes:["UA-4621772-1"]},initialize:function(b){this.setOptions(b);this.trackers=new Hash();this.options.codes.each(function(c,e){try{var d=_gat._getTracker(c);d._addOrganic("suche.web.de","su");d._addOrganic("suche.t-online.de","q");d._setAllowAnchor(true);d._setCookieTimeout("31536000");d._trackPageview();this.trackers.set(c,d)}catch(f){}},this)},track:function(){var d=$A(arguments),b=d[0],c=d.filter(function(e,f){return f>0}).join();this.trackers.each(function(f){try{f[b](c)}catch(e){}})}})})(document.id);(function(a){this.GT=this.GT||{};this.GT.StatusBox=this.GT.StatusBox||new Class({Implements:[Options,Events],options:{delayShow:0,delayHide:500,durationShow:1000,durationHide:100,maxBoxHeight:false,maxBoxHeightToAdd:0},initialize:function(c,b){this.setOptions(b);this.timerShow;this.timerHide;this.boxSelector=$$(c);this.containerBox=this.options.containerBox;this.containerBox.setStyle("display","block");this.containerBoxPool=[this.containerBox,this.containerBox.getElement(".container")];this.containerBoxTableHeight=this.containerBox.getElement(".container").getStyle("height").toInt();this.invisible=true;this.initTweens();this.prepareContainerBox()},initTweens:function(){this.tweenContainerBox=new Fx.Elements(this.containerBoxPool,{link:"cancel"}).set({"0":{opacity:0}})},prepareContainerBox:function(){var b=this.boxSelector[0];if(!b){return}if(this.options.maxBoxHeight&&this.containerBox.getElement(".container table").getStyle("height").toInt()>this.options.maxBoxHeight){this.containerBox.getElement(".container").setStyle("overflow","auto");if(IE){this.containerBox.getElement(".container table").setStyle("width",this.containerBox.getElement(".container table").getStyle("width").toInt()+10)}}b.addEvents({mouseenter:function(c){if(this.timerHide){this.timerHide=$clear(this.timerHide)}if(this.tweenContainerBox){this.timerHide=$clear(this.timerHide);this.tweenContainerBox.cancel()}this.show()}.bindWithEvent(this),mouseleave:function(c){this.timerHide=$clear(this.timerHide);this.timerHide=this.hide.delay(this.options.delayHide,this)}.bindWithEvent(this)});this.containerBox.addEvents({mouseenter:function(c){if(this.tweenContainerBox){this.timerHide=$clear(this.timerHide);this.tweenContainerBox.cancel();this.show()}}.bindWithEvent(this),mouseleave:function(c){this.timerHide=$clear(this.timerHide);this.hide()}.bindWithEvent(this)})},show:function(){this.invisible=false;if(this.invisible){this.tweenContainerBox.set({})}if(this.options.maxBoxHeight){this.tweenContainerBox.start({"0":{opacity:1},"1":{height:(this.containerBox.getElement(".container table").getStyle("height").toInt()<this.options.maxBoxHeight)?this.containerBox.getElement(".container table").getStyle("height").toInt():this.options.maxBoxHeight}})}else{if(this.options.maxBoxHeightToAdd){this.tweenContainerBox.start({"0":{opacity:1},"1":{height:this.containerBox.getElement(".container table").getStyle("height").toInt()+this.options.maxBoxHeightToAdd}})}}},hide:function(){this.invisible=false;this.tweenContainerBox.start({"0":{opacity:0},"1":{height:this.containerBoxTableHeight}})}})})(document.id);if((typeof SIDENAV_ACCORDION_NR1!="undefined")&&(typeof SIDENAV_ACCORDION_NR2!="undefined")){window.addEvent("domready",function(){new Accordion($("sideNav"),"h4.toggler","div.element",{opacity:false,show:SIDENAV_ACCORDION_NR1,onActive:function(b,a){b.setStyle("cursor","default")},onBackground:function(b,a){b.setStyle("cursor","")}});new Accordion($("helpContainer303"),"li.gameToggler","ul.gameElement",{opacity:false,show:SIDENAV_ACCORDION_NR2,onActive:function(b,a){b.setStyle("cursor","default");b.setStyle("color","#fff")},onBackground:function(b,a){b.setStyle("cursor","");b.setStyle("color","")}})})};(function(a){this.GT=this.GT||{};this.GT.IESelects=this.GT.IESelects||new Class({Implements:[Options],options:{selectTags:"select#fk_country, select#securityQuestionTag, select#bank_country",maxWidth:700},initialize:function(c){this.setOptions(c);if(Browser.Engine.trident){var b=$$(this.options.selectTags);b.each(function(f){var i=f,g=normalWidth=i.getSize().x,j=this.options.maxWidth;i.setStyles({width:"auto",visibility:"hidden"});var e=i.getSize().x;g=(e>g)?e:g;var k=i.getParent();var d=k.getSize().y;i.setStyles({position:"absolute",width:normalWidth,visibility:"visible"});k.setStyles({position:"relative",height:d});if(g>normalWidth){if(g>j){g=j}var h=function(){i.setStyle("width",normalWidth)};i.addEvents({mouseenter:function(){this.setStyle("width",g)},focus:function(){this.setStyle("width",g)},mouseleave:h,click:function(){this.removeEvent("mouseleave",h)},blur:function(){this.addEvent("mouseleave",h);h()}})}},this)}}})})(document.id);window.addEvent("domready",function(){var a={selectTags:"select#fk_country, select#securityQuestionTag, select#bank_country",maxWidth:700};new GT.IESelects(a)});(function(a){this.GT=this.GT||{};this.GT.FormTips=this.GT.FormTips||new Class({Implements:[Options],options:{},initialize:function(c,b){this.setOptions(b);var d=$$(c);if(d.length){this.tips={};this.tip=new Element("div",{id:"formTip",html:'<span class="arrow"></span><p></p>'});a(document.body).grab(this.tip);this.myShim=new IframeShim(this.tip);d.each(function(e){var g=e.getParent("li");var f=g.get("title");var h=f.split("::");this.tips[e.get("id")]=(h.length>1)?h[1]:h[0];g.set("title","")},this);d.addEvents({focus:function(f){this.activeInput=f.target;this.change()}.bindWithEvent(this),blur:function(f){this.activeInput=null;this.tip.setStyle("display","none");this.myShim.hide()}.bindWithEvent(this)});window.addEvent("resize",function(){this.updatePosition()}.bindWithEvent(this))}},change:function(d){var b=d?d:this.activeInput;if(b){var c=b.getSize();var e=b.getPosition();this.tip.getElement("p").set("text",this.tips[b.get("id")]);this.tip.setStyle("display","block");var f=this.tip.getSize();this.tip.setStyles({top:(e.y-(f.y/2)+(c.y/2)),left:(e.x+c.x+12)});this.tip.getElement(".arrow").setStyle("top",((f.y/2)-7));this.myShim.show()}},updatePosition:function(d){var e=(d&&(d>=20))?d:1000;var f=(e/20);var b=0;var c=setInterval(function(){if(b>=f){$clear(c)}else{this.change();b++}this.myShim.position()}.bind(this),20)}})})(document.id);var GTFormTip;window.addEvent("domready",function(){GTFormTip=new GT.FormTips($$("#register li[title] input[type='text'], #register li[title] input[type='password'], #moneyRegister li[title] input[type='text'], #moneyRegister li[title] input[type='password']"))});var Mediabox;(function(){var g,u,h,W,z,x,r,P,m,c,R,N,D,q=new Image(),K=new Image(),t=false,S=false,E,y,p,B,F,i,d,C,U,H,f,L,b,J,V,Q,v="none",j,s="mediaBox",k;window.addEvent("domready",function(){$(document.body).adopt($$([E=new Element("div",{id:"mbOverlay"}).addEvent("click",l),y=new Element("div",{id:"mbCenter"})]).setStyle("display","none"));p=new Element("div",{id:"mbImage"}).injectInside(y);B=new Element("div",{id:"mbBottom"}).injectInside(y).adopt(new Element("a",{id:"mbCloseLink",href:"#"}).addEvent("click",l),H=new Element("a",{id:"mbNextLink",href:"#"}).addEvent("click",T),C=new Element("a",{id:"mbPrevLink",href:"#"}).addEvent("click",M),i=new Element("div",{id:"mbTitle"}),U=new Element("div",{id:"mbNumber"}),d=new Element("div",{id:"mbCaption"}));N={overlay:new Fx.Tween(E,{property:"opacity",duration:360}).set(0),image:new Fx.Tween(p,{property:"opacity",duration:360,onComplete:G}),bottom:new Fx.Tween(B,{property:"opacity",duration:240}).set(0)}});Mediabox={close:function(){l()},open:function(Y,X,Z){g=$extend({loop:false,stopKey:false,overlayOpacity:"0.7",resizeOpening:true,resizeDuration:240,resizeTransition:false,initialWidth:320,initialHeight:180,defaultWidth:640,defaultHeight:360,showCaption:true,showCounter:true,counterText:"({x} of {y})",imgBackground:false,imgPadding:70,scriptaccess:"true",fullscreen:"true",fullscreenNum:"1",autoplay:"true",autoplayNum:"1",autoplayYes:"yes",bgcolor:"#000000",wmode:"opaque",playerpath:"/js/player.swf",backcolor:"000000",frontcolor:"999999",lightcolor:"000000",screencolor:"000000",controlbar:"over",useNB:true,NBpath:"/js/NonverBlaster.swf",NBloop:"true",controlColor:"0xFFFFFF",controlBackColor:"0x000000",showTimecode:"false",controller:"true",flInfo:"true",revverID:"187866",revverFullscreen:"true",revverBack:"000000",revverFront:"ffffff",revverGrad:"000000",usViewers:"true",ytBorder:"0",ytColor1:"000000",ytColor2:"333333",ytQuality:"&ap=%2526fmt%3D18",ytRel:"0",ytInfo:"1",ytSearch:"0",vuPlayer:"basic",vmTitle:"1",vmByline:"1",vmPortrait:"1",vmColor:"ffffff"},Z||{});if((Browser.Engine.gecko)&&(Browser.Engine.version<19)){t=true;g.overlayOpacity=1;E.className="mbOverlayFF"}if(typeof Y=="string"){Y=[[Y,X,Z]];X=0}u=Y;g.loop=g.loop&&(u.length>1);if((Browser.Engine.trident)&&(Browser.Engine.version<5)){S=true;E.className="mbOverlayIE";E.setStyle("position","absolute");a()}n();o(true);x=window.getScrollTop()+(window.getHeight()/2);P=window.getScrollLeft()+(window.getWidth()/2);N.resize=new Fx.Morph(y,$extend({duration:g.resizeDuration,onComplete:A},g.resizeTransition?{transition:g.resizeTransition}:{}));y.setStyles({top:x,left:P,width:g.initialWidth,height:g.initialHeight,marginTop:-(g.initialHeight/2),marginLeft:-(g.initialWidth/2),display:""});N.overlay.start(g.overlayOpacity);return w(X)}};Element.implement({mediabox:function(X,Y){$$(this).mediabox(X,Y);return this}});Elements.implement({mediabox:function(X,Z,Y){Z=Z||function(ab){J=ab.rel.split(/[\[\]]/);J=J[1];return[ab.href,ab.title,J]};Y=Y||function(){return true};var aa=this;aa.addEvent("contextmenu",function(ab){if(this.toString().match(/\.gif|\.jpg|\.png/i)){ab.stop()}});aa.removeEvents("click").addEvent("click",function(){var ac=aa.filter(Y,this);var ab=[];var ad=[];ac.each(function(ae,af){if(ad.indexOf(ae.toString())<0){ab.include(ac[af]);ad.include(ac[af].toString())}});return Mediabox.open(ab.map(Z),ad.indexOf(this.toString()),X)});return aa}});function a(){E.setStyles({top:window.getScrollTop(),left:window.getScrollLeft()})}function n(){c=window.getWidth();R=window.getHeight();E.setStyles({width:c,height:R})}function o(Y){["object",window.ie?"select":"embed"].forEach(function(Z){Array.forEach(document.getElementsByTagName(Z),function(aa){if(Y){aa._mediabox=aa.style.visibility}aa.style.visibility=Y?"hidden":aa._mediabox})});E.style.display=Y?"":"none";var X=Y?"addEvent":"removeEvent";if(S){window[X]("scroll",a)}window[X]("resize",n);document[X]("keydown",e)}function e(X){switch(X.code){case 27:l();break;case 37:M();break;case 39:T()}if(g.stopKey){return false}}function M(){return w(W)}function T(){return w(z)}function w(X){if(X>=0){p.set("html","");h=X;W=((h||!g.loop)?h:u.length)-1;z=h+1;if(z==u.length){z=g.loop?0:-1}I();y.className="mbLoading";L=u[X][2].split(" ");b=L.length;if(b>1){V=(L[b-2].match("%"))?(window.getWidth()*("0."+(L[b-2].replace("%",""))))+"px":L[b-2]+"px";Q=(L[b-1].match("%"))?(window.getHeight()*("0."+(L[b-1].replace("%",""))))+"px":L[b-1]+"px"}else{V="";Q=""}f=u[X][0];f=encodeURI(f).replace("(","%28").replace(")","%29");F=u[h][1].split("::");if(f.match(/quietube\.com/i)){j=f.split("v.php/");f=j[1]}else{if(f.match(/\/\/yfrog/i)){v=(f.substring(f.length-1));if(v.match(/b|g|j|p|t/i)){v="image"}if(v=="s"){v="flash"}if(v.match(/f|z/i)){v="video"}f=f+":iphone"}}if(f.match(/\.gif|\.jpg|\.png|twitpic\.com/i)||v=="image"){v="img";f=f.replace(/twitpic\.com/i,"twitpic.com/show/full");D=new Image();D.onload=O;D.src=f}else{if(f.match(/\.flv|\.mp4/i)||v=="video"){v="obj";V=V||g.defaultWidth;Q=Q||g.defaultHeight;if(g.useNB){D=new Swiff(""+g.NBpath+"?mediaURL="+f+"&allowSmoothing=true&autoPlay="+g.autoplay+"&buffer=6&showTimecode="+g.showTimecode+"&loop="+g.NBloop+"&controlColor="+g.controlColor+"&controlBackColor="+g.controlBackColor+"&scaleIfFullScreen=true&showScalingButton=true&crop=false",{id:"MediaboxSWF",width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}})}else{D=new Swiff(""+g.playerpath+"?file="+f+"&backcolor="+g.backcolor+"&frontcolor="+g.frontcolor+"&lightcolor="+g.lightcolor+"&screencolor="+g.screencolor+"&autostart="+g.autoplay+"&controlbar="+g.controlbar,{id:"MediaboxSWF",width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}})}O()}else{if(f.match(/\.mp3|\.aac|tweetmic\.com|tmic\.fm/i)||v=="audio"){v="obj";V=V||g.defaultWidth;Q=Q||"20px";if(f.match(/tweetmic\.com|tmic\.fm/i)){f=f.split("/");f[4]=f[4]||f[3];f="http://media4.fjarnet.net/tweet/tweetmicapp-"+f[4]+".mp3"}if(g.useNB){D=new Swiff(""+g.NBpath+"?mediaURL="+f+"&allowSmoothing=true&autoPlay="+g.autoplay+"&buffer=6&showTimecode="+g.showTimecode+"&loop="+g.NBloop+"&controlColor="+g.controlColor+"&controlBackColor="+g.controlBackColor+"&scaleIfFullScreen=true&showScalingButton=true&crop=false",{id:"MediaboxSWF",width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}})}else{D=new Swiff(""+g.playerpath+"?file="+f+"&backcolor="+g.backcolor+"&frontcolor="+g.frontcolor+"&lightcolor="+g.lightcolor+"&screencolor="+g.screencolor+"&autostart="+g.autoplay,{id:"MediaboxSWF",width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}})}O()}else{if(f.match(/\.swf/i)||v=="flash"){v="obj";V=V||g.defaultWidth;Q=Q||g.defaultHeight;D=new Swiff(f,{id:"MediaboxSWF",width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/blip\.tv/i)){v="obj";V=V||"640px";Q=Q||"390px";D=new Swiff(f,{src:f,width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/break\.com/i)){v="obj";V=V||"464px";Q=Q||"376px";s=f.match(/\d{6}/g);D=new Swiff("http://embed.break.com/"+s,{width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/dailymotion\.com/i)){v="obj";V=V||"480px";Q=Q||"381px";D=new Swiff(f,{id:s,width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/facebook\.com/i)){v="obj";V=V||"320px";Q=Q||"240px";j=f.split("v=");j=j[1].split("&");s=j[0];D=new Swiff("http://www.facebook.com/v/"+s,{movie:"http://www.facebook.com/v/"+s,classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/flickr\.com/i)){v="obj";V=V||"500px";Q=Q||"375px";j=f.split("/");s=j[5];D=new Swiff("http://www.flickr.com/apps/video/stewart.swf",{id:s,classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",width:V,height:Q,params:{flashvars:"photo_id="+s+"&amp;show_info_box="+g.flInfo,wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/fliggo\.com/i)){v="obj";V=V||"425px";Q=Q||"355px";f=f.replace("/video/","/embed/");D=new Swiff(f,{width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/gametrailers\.com/i)){v="obj";V=V||"480px";Q=Q||"392px";s=f.match(/\d{5}/g);D=new Swiff("http://www.gametrailers.com/remote_wrap.php?mid="+s,{id:s,width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/google\.com\/videoplay/i)){v="obj";V=V||"400px";Q=Q||"326px";j=f.split("=");s=j[1];D=new Swiff("http://video.google.com/googleplayer.swf?docId="+s+"&autoplay="+g.autoplayNum,{id:s,width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/justin\.tv/i)){v="obj";V=V||"353px";Q=Q||"295px";j=f.split("/");s=j[3];D=new Swiff("http://www.justin.tv/widgets/jtv_player.swf",{id:"jtv_player_flash",width:V,height:Q,params:{flashvars:"channel="+s,wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/megavideo\.com/i)){v="obj";V=V||"640px";Q=Q||"360px";j=f.split("=");s=j[1];D=new Swiff("http://wwwstatic.megavideo.com/mv_player.swf?v="+s,{id:s,width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/metacafe\.com\/watch/i)){v="obj";V=V||"400px";Q=Q||"345px";j=f.split("/");s=j[4];D=new Swiff("http://www.metacafe.com/fplayer/"+s+"/.swf?playerVars=autoPlay="+g.autoplayYes,{id:s,width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/myspacetv\.com|vids\.myspace\.com/i)){v="obj";V=V||"425px";Q=Q||"360px";j=f.split("=");s=j[2];D=new Swiff("http://lads.myspace.com/videos/vplayer.swf?m="+s+"&v=2&a="+g.autoplayNum+"&type=video",{id:s,width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/revver\.com/i)){v="obj";V=V||"480px";Q=Q||"392px";j=f.split("/");s=j[4];D=new Swiff("http://flash.revver.com/player/1.0/player.swf?mediaId="+s+"&affiliateId="+g.revverID+"&allowFullScreen="+g.revverFullscreen+"&autoStart="+g.autoplay+"&backColor=#"+g.revverBack+"&frontColor=#"+g.revverFront+"&gradColor=#"+g.revverGrad+"&shareUrl=revver",{id:s,width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/rutube\.ru/i)){v="obj";V=V||"470px";Q=Q||"353px";j=f.split("=");s=j[1];D=new Swiff("http://video.rutube.ru/"+s,{movie:"http://video.rutube.ru/"+s,width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/seesmic\.com/i)){v="obj";V=V||"435px";Q=Q||"355px";j=f.split("/");s=j[5];D=new Swiff("http://seesmic.com/Standalone.swf?video="+s,{id:s,width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/tudou\.com/i)){v="obj";V=V||"400px";Q=Q||"340px";j=f.split("/");s=j[5];D=new Swiff("http://www.tudou.com/v/"+s,{width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/twitcam\.com/i)){v="obj";V=V||"320px";Q=Q||"265px";j=f.split("/");s=j[3];D=new Swiff("http://static.livestream.com/chromelessPlayer/wrappers/TwitcamPlayer.swf?hash="+s,{width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/twitvid\.com/i)){v="obj";V=V||"600px";Q=Q||"338px";j=f.split("/");s=j[3];D=new Swiff("http://www.twitvid.com/player/"+s,{width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/twitvid\.io/i)){v="obj";V=V||"580px";Q=Q||"323px";j=f.split("/");s=j[3];D=new Swiff("http://twitvid.io/embed/"+s,{width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/ustream\.tv/i)){v="obj";V=V||"400px";Q=Q||"326px";D=new Swiff(f+"&amp;viewcount="+g.usViewers+"&amp;autoplay="+g.autoplay,{width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/youku\.com/i)){v="obj";V=V||"480px";Q=Q||"400px";j=f.split("id_");s=j[1];D=new Swiff("http://player.youku.com/player.php/sid/"+s+"=/v.swf",{width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/youtube\.com\/watch/i)){v="obj";j=f.split("v=");s=j[1];if(s.match(/fmt=18/i)){k="&ap=%2526fmt%3D18";V=V||"560px";Q=Q||"345px"}else{if(s.match(/fmt=22/i)){k="&ap=%2526fmt%3D22";V=V||"640px";Q=Q||"385px"}else{k=g.ytQuality;V=V||"480px";Q=Q||"295px"}}D=new Swiff("http://www.youtube.com/v/"+s+"&autoplay="+g.autoplayNum+"&fs="+g.fullscreenNum+k+"&border="+g.ytBorder+"&color1=0x"+g.ytColor1+"&color2=0x"+g.ytColor2+"&rel="+g.ytRel+"&showinfo="+g.ytInfo+"&showsearch="+g.ytSearch,{id:s,width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/youtube\.com\/view/i)){v="obj";j=f.split("p=");s=j[1];V=V||"480px";Q=Q||"385px";D=new Swiff("http://www.youtube.com/p/"+s+"&autoplay="+g.autoplayNum+"&fs="+g.fullscreenNum+k+"&border="+g.ytBorder+"&color1=0x"+g.ytColor1+"&color2=0x"+g.ytColor2+"&rel="+g.ytRel+"&showinfo="+g.ytInfo+"&showsearch="+g.ytSearch,{id:s,width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/veoh\.com/i)){v="obj";V=V||"410px";Q=Q||"341px";j=f.split("videos/");s=j[1];D=new Swiff("http://www.veoh.com/videodetails2.swf?permalinkId="+s+"&player=videodetailsembedded&videoAutoPlay="+g.AutoplayNum,{id:s,width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/viddler\.com/i)){v="obj";V=V||"437px";Q=Q||"370px";j=f.split("/");s=j[4];D=new Swiff(f,{id:"viddler_"+s,movie:f,classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen,id:"viddler_"+s,movie:f}});O()}else{if(f.match(/viddyou\.com/i)){v="obj";V=V||"416px";Q=Q||"312px";j=f.split("=");s=j[1];D=new Swiff("http://www.viddyou.com/get/v2_"+g.vuPlayer+"/"+s+".swf",{id:s,movie:"http://www.viddyou.com/get/v2_"+g.vuPlayer+"/"+s+".swf",width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/vimeo\.com/i)){v="obj";V=V||"640px";Q=Q||"360px";j=f.split("/");s=j[3];D=new Swiff("http://www.vimeo.com/moogaloop.swf?clip_id="+s+"&amp;server=www.vimeo.com&amp;fullscreen="+g.fullscreenNum+"&amp;autoplay="+g.autoplayNum+"&amp;show_title="+g.vmTitle+"&amp;show_byline="+g.vmByline+"&amp;show_portrait="+g.vmPortrait+"&amp;color="+g.vmColor,{id:s,width:V,height:Q,params:{wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/12seconds\.tv/i)){v="obj";V=V||"430px";Q=Q||"360px";j=f.split("/");s=j[5];D=new Swiff("http://embed.12seconds.tv/players/remotePlayer.swf",{id:s,width:V,height:Q,params:{flashvars:"vid="+s+"",wmode:g.wmode,bgcolor:g.bgcolor,allowscriptaccess:g.scriptaccess,allowfullscreen:g.fullscreen}});O()}else{if(f.match(/\#mb_/i)){v="inline";V=V||g.defaultWidth;Q=Q||g.defaultHeight;URLsplit=f.split("#");D=$(URLsplit[1]).get("html");O()}else{v="url";V=V||g.defaultWidth;Q=Q||g.defaultHeight;s="mediaId_"+new Date().getTime();D=new Element("iframe",{src:f,id:s,width:V,height:Q,frameborder:0});O()}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return false}function O(){if(v=="img"){V=D.width;Q=D.height;if(g.imgBackground){p.setStyles({backgroundImage:"url("+f+")",display:""})}else{if(Q>=R-g.imgPadding){Q=R-g.imgPadding;V=D.width=parseInt((Q/D.height)*V);D.height=Q}else{if(V>=c-g.imgPadding){V=c-g.imgPadding;Q=D.height=parseInt((V/D.width)*Q);D.width=V}}if(Browser.Engine.trident){D=$(D)}D.addEvent("mousedown",function(X){X.stop()}).addEvent("contextmenu",function(X){X.stop()});p.setStyles({backgroundImage:"none",display:""});D.inject(p)}}else{if(v=="obj"){if(Browser.Plugins.Flash.version<8){p.setStyles({backgroundImage:"none",display:""});p.set("html",'<div id="mbError"><b>Error</b><br/>Adobe Flash is either not installed or not up to date, please visit <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" title="Get Flash" target="_new">Adobe.com</a> to download the free player.</div>');V=g.DefaultWidth;Q=g.DefaultHeight}else{p.setStyles({backgroundImage:"none",display:""});D.inject(p)}}else{if(v=="inline"){p.setStyles({backgroundImage:"none",display:""});p.set("html",D)}else{if(v=="url"){p.setStyles({backgroundImage:"none",display:""});D.inject(p)}else{p.setStyles({backgroundImage:"none",display:""});p.set("html",'<div id="mbError"><b>Error</b><br/>A file type error has occoured, please visit iaian7 or contact the website author for more information.</div>');V=g.defaultWidth;Q=g.defaultHeight}}}}p.setStyles({width:V,height:Q});i.set("html",(g.showCaption)?F[0]:"");d.set("html",(g.showCaption&&(F.length>1))?F[1]:"");U.set("html",(g.showCounter&&(u.length>1))?g.counterText.replace(/{x}/,h+1).replace(/{y}/,u.length):"");if((W>=0)&&(u[W][0].match(/\.gif|\.jpg|\.png|twitpic\.com/i))){q.src=u[W][0].replace(/twitpic\.com/i,"twitpic.com/show/full")}if((z>=0)&&(u[z][0].match(/\.gif|\.jpg|\.png|twitpic\.com/i))){K.src=u[z][0].replace(/twitpic\.com/i,"twitpic.com/show/full")}V=p.offsetWidth;Q=p.offsetHeight+B.offsetHeight;if(Q>=x+x-10){r=-(x-10)}else{r=-(Q/2)}if(V>=P+P-10){m=-(P-10)}else{m=-(V/2)}if(g.resizeOpening){N.resize.start({width:V,height:Q,marginTop:r,marginLeft:m})}else{y.setStyles({width:V,height:Q,marginTop:r,marginLeft:m});A()}}function A(){N.image.start(1)}function G(){y.className="";if(W>=0){C.style.display=""}if(z>=0){H.style.display=""}N.bottom.start(1)}function I(){if(D){D.onload=$empty}N.resize.cancel();N.image.cancel().set(0);N.bottom.cancel().set(0);$$(C,H).setStyle("display","none")}function l(){if(h>=0){D.onload=$empty;p.set("html","");for(var X in N){N[X].cancel()}y.setStyle("display","none");N.overlay.chain(o).start(0)}return false}})();Mediabox.scanPage=function(){var a=$$("a").filter(function(b){return b.rel&&b.rel.test(/^lightbox/i)});$$(a).mediabox({},null,function(b){var d=this.rel.replace(/[[]|]/gi," ");var c=d.split(" ");return(this==b)||((this.rel.length>8)&&b.rel.match(c[1]))})};window.addEvent("domready",Mediabox.scanPage);window.onerror=handleErr;var domreadyFired=false;var loadFired=false;var errorElement=false;var IE6=(Browser.Engine.trident4)?true:false;var IE=(Browser.Engine.trident)?true:false;var BODY=$(document.body);window.addEvent("domready",function(){domreadyFired=true});window.addEvent("load",function(){loadFired=true});BODY.removeClass("static");if(Browser.Engine.presto){BODY.addClass("opera")}(function(){var b=document.getElementsByTagName("a");for(var a=0,c=b.length;a<c;++a){var d=b[a].getAttribute("gtl");if(!b[a].getAttribute("href")&&d){b[a].setAttribute("href",encodeURI(d));b[a].removeAttribute("gtl")}}})();if($("main")){var tipBox=$("main").getElement(".tipBox");if(tipBox){$("tipHolder").empty();tipBox.inject("tipHolder")}}if(USE_CUFON){Cufon.replace("	h1,	h2,	body.account #container h4,	#nav a,	#topGame h5,	#gamesTopGames h3,	#subNav li a,	#sideNav h4,	.so1Status + span,	.to1Status + span,	.featureBox > h3,	.featureBox h5,	.featureBox .playnow,	.gameCat > h3,	#gameCat dt a,	#siteMap dt a,	#status .logout,	#status h5,	#languages .active,	#presUserOnline,	#presCounter,	#rollover h4,	#topGame h5,	#top7Gamer th,	#top7Tourn th,	#gameHeader .date,	#gameShot dl,	.topWinner th,	.topWinner .money,	.topJackpot .item,	.topJackpot p,	.to1 th,	.to1 strong,	.to1 th,	.tabBox li a,	.phone,	#footerEmail,	#poweredBy,	.button,	.linkBig,	button.fbSubmit",{hoverables:{button:true,a:true},hover:true}).replace("h3",{hoverables:{button:true,a:true},hover:true});Cufon.replace(".tipBox h3",{textShadow:"1px 1px rgba(0,0,0,.5), -1px -1px rgba(0,0,0,.1), 1px -1px rgba(0,0,0,.1), -1px 1px rgba(0,0,0,.1)"});Cufon.replace(".to1 strong",{textShadow:"2px 2px #999, -2px -2px #999, 2px -2px #999, -2px 2px #999"});Cufon.replace(".to1 ul li a span",{textShadow:"1px 1px #911807, -1px -1px #911807, 1px -1px #911807, -1px 1px #911807"});Cufon.replace(".to1.tournStatus_2 strong",{textShadow:"2px 2px #ff1e00, -2px -2px #ff1e00, 2px -2px #ff1e00, -2px 2px #ff1e00"});Cufon.replace(".to1.tournStatus_3 strong",{textShadow:"2px 2px #6cb459, -2px -2px #6cb459, 2px -2px #6cb459, -2px 2px #6cb459"});Cufon.replace(".to1.tournStatus_4 strong",{textShadow:"2px 2px #ff1e00, -2px -2px #ff1e00, 2px -2px #ff1e00, -2px 2px #ff1e00"});Cufon.replace(".to1.tournStatus_5 strong",{textShadow:"2px 2px #6cb459, -2px -2px #6cb459, 2px -2px #6cb459, -2px 2px #6cb459"});Cufon.replace(".singedUp strong",{textShadow:"2px 2px #6ad241, -2px -2px #6ad241, 2px -2px #6ad241, -2px 2px #6ad241"});Cufon.replace(".to1.tournStatus_7 ul li a",{textShadow:"1px 1px #5b7aa5, -1px -1px #5b7aa5, 1px -1px #5b7aa5, -1px 1px #5b7aa5"});Cufon.replace(".to1.tournStatus_3 ul li a span",{textShadow:"1px 1px #6cb459, -1px -1px #6cb459, 1px -1px #6cb459, -1px 1px #6cb459"});Cufon.replace(".to1.tournStatus_5 ul li a span",{textShadow:"1px 1px #6cb459, -1px -1px #6cb459, 1px -1px #6cb459, -1px 1px #6cb459"});Cufon.replace(".to1.tournStatus_8 ul li",{textShadow:"1px 1px #6cb459, -1px -1px #6cb459, 1px -1px #6cb459, -1px 1px #6cb459"});Cufon.replace(".to1.tournStatus_8 strong",{textShadow:"1px 1px #6cb459, -1px -1px #6cb459, 1px -1px #6cb459, -1px 1px #6cb459"});Cufon.replace("#gameHeader .room",{textShadow:"1px 1px rgba(0,0,0,.5), -1px -1px rgba(0,0,0,.1), 1px -1px rgba(0,0,0,.1), -1px 1px rgba(0,0,0,.1)"});Cufon.replace(".games h3",{textShadow:"1px 1px rgba(0,0,0,.5), -1px -1px rgba(0,0,0,.1), 1px -1px rgba(0,0,0,.1), -1px 1px rgba(0,0,0,.1)"});Cufon.replace(".so1 ul li a span",{textShadow:"1px 1px #911807, -1px -1px #911807, 1px -1px #911807, -1px 1px #911807"});Cufon.replace(".fbApprove",{textShadow:"1px 1px #dd7400, -1px -1px #dd7400, 1px -1px #dd7400, -1px 1px #dd7400",hover:{textShadow:"1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff"},hoverables:{button:true}});Cufon.replace(".fbCancel",{textShadow:"1px 1px #5e83a9, -1px -1px #5e83a9, 1px -1px #5e83a9, -1px 1px #5e83a9",hover:{textShadow:"1px 1px #6f93b5, -1px -1px #6f93b5, 1px -1px #6f93b5, -1px 1px #6f93b5"},hoverables:{button:true}});Cufon.replace(".tournCufon",{textShadow:"1.5px 1.5px #b2a448,					-1.5px -1.5px #b2a448,					1.5px -1.5px #b2a448,					-1.5px 1.5px #b2a448,					1.5px 0px #b2a448,					0px 1.5px #b2a448,					0px -1.5px #b2a448,					-1.5px 0px #b2a448,					0px 4px rgba(255,255,255,.2),					2px 3px rgba(255,255,255,.5),					3px 2px rgba(255,255,255,.5),					4px 0px rgba(255,255,255,.2),					3px -2px rgba(255,255,255,.5),					2px -3px rgba(255,255,255,.5),					0px -4px rgba(255,255,255,.2),					-2px -3px rgba(255,255,255,.5),					-3px -2px rgba(255,255,255,.5),					-4px 0px rgba(255,255,255,.2),					-3px 2px rgba(255,255,255,.5),					-2px 3px rgba(255,255,255,.5)"});Cufon.replace("#tournamentSignOn p",{textShadow:"1.5px 1.5px #71808d,					-1.5px -1.5px #71808d,					1.5px -1.5px #71808d,					-1.5px 1.5px #71808d,					1.5px 0px #71808d,					-1.5px 0px #71808d,					0px 1.5px #71808d,					0px -1.5px #71808d,					0px 4px rgba(255,255,255,.2),					2px 3px rgba(255,255,255,.5),					3px 2px rgba(255,255,255,.5),					4px 0px rgba(255,255,255,.2),					3px -2px rgba(255,255,255,.5),					2px -3px rgba(255,255,255,.5),					0px -4px rgba(255,255,255,.2),					-2px -3px rgba(255,255,255,.5),					-3px -2px rgba(255,255,255,.5),					-4px 0px rgba(255,255,255,.2),					-3px 2px rgba(255,255,255,.5),					-2px 3px rgba(255,255,255,.5)"});Cufon.now()}GT.gameWindow=function(b){var d=new Hash.Cookie("gameSize",{duration:3600,path:"/",domain:/(?:.*\.)?([^.]+\.[^.]+)/.exec(location.hostname)[1]}),c=d.get("winX"),a=d.get("winY");if(!c||!a){c=1024;a=768}if(IE6){b=decodeURIComponent(escape(b))}Popup=window.open(b,"gameWindow","width="+c+",height="+a+",scrollbars=yes,resizable=yes,location=yes,left="+Math.max(0,screen.availWidth/2-c/2)+",top= "+Math.max(0,screen.availHeight/2-a/2));if(Popup){Popup.focus()}return Popup};window.addEvent("loaded",function(){if(IE6&&$("tipHolder").get("html")){$("tipHolder").setStyle("line-height",13)}});window.addEvent("domready",function(){new GT.Overlay("#main .so1, #main .to1",{offset:{x:-2,y:-4},offset2:{x:5,y:-4},delayShow:200,delayHide:200,durationShow:200,durationHide:100});new GT.Steps($$("#main div.tournList"),{texts:GTStepsText});if($("status")&&$("status").getElements("li.friendsOnline")&&$("friendsOnlineBox")){new GT.StatusBox($("status").getElements("li.friendsOnline a"),{containerBox:$("friendsOnlineBox"),maxBoxHeight:300})}if($("status")&&$("status").getElements("li.amountOfMoney")&&$("currencyContainer")){new GT.StatusBox($("status").getElements("li.amountOfMoney a"),{containerBox:$("currencyContainer"),maxBoxHeightToAdd:$("currencyContainer").getElement(".currencyInfo").getStyle("height").toInt()+$("currencyContainer").getElement("h3").getStyle("height").toInt()+10})}$$("a.room").addEvent("click",function(m){GT.gameWindow(this.href);m.preventDefault()});$$("button.room").addEvent("click",function(m){GT.gameWindow($("gameHeader").getElement("a.room").href);m.preventDefault()});(function(){var o=$("regPlayForReal");if(o){var m=o.getElement("button.formButton");var n=o.getElement(".next a");m.addEvent("click",function(p){p.preventDefault();window.location=n.get("href")})}})();smallToRoot();$$("a.profile").each(function(m){m.addEvent("click",function(n){n.preventDefault();popupWindowNew(470,400,"scrollbars=yes",m)})});if($("status")&&$("languages")){var g=$("languages"),f={width:g.getSize().x,height:g.getSize().y},l=g.measure(function(){var m;this.setStyles({width:IE6?"100":"auto",height:"auto"});m={width:this.getSize().x,height:this.getSize().y+3};this.setStyles(f);return m});g.addEvents({mouseenter:function(){this.morph(l)},mouseleave:function(){this.morph(f)}})}if(IE){$$(".listTable tbody > tr:nth-child(even),.formTable tbody > tr:nth-child(even)").addClass("even");$$(".listTable tbody > tr:nth-child(odd),.formTable tbody > tr:nth-child(odd)").addClass("odd")}new GT.Countdown({elementsSelector:[".to1.tournStatus_3",".to1.tournStatus_8"],countdownTextElementSelectors:["strong.countdown","strong.countdownOver"],cufonCountdownSelectors:[".to1.tournStatus_3 strong",".to1.tournStatus_8 strong"],cufonCountdownCompletedSelectors:[".to1.tournStatus_5 ul li a span"],onSingleTick:function(n,o){if(!n.hasClass("tournStatus_8")){if((o<=900)&&(o>0)){var m=n.getElement(".to1_container a");n.removeClass("tournStatus_3");n.addClass("tournStatus_8");if(m){m.addEvent("click",function(p){GT.gameWindow(this.href);p.preventDefault()});m.set("href",n.getElement(".switchPlay").get("href"))}}}},onSingleCompleted:function(n){var m=n.getElement(".to1_container a");n.removeClass("tournStatus_8");n.removeClass("tournStatus_3");n.addClass("tournStatus_5");if(m){m.addEvent("click",function(o){GT.gameWindow(this.href);o.preventDefault()});m.set("href",n.getElement(".switchPlay").get("href"))}}});var k=BODY.hasClass("tournStatus_1");var a=BODY.hasClass("tournStatus_2");var c=BODY.hasClass("tournStatus_3");var b=BODY.hasClass("tournStatus_4");var e=BODY.hasClass("tournStatus_5");var j=BODY.hasClass("tournStatus_6");var d=BODY.hasClass("tournStatus_7");var h=BODY.hasClass("tournStatus_8");var i=$("landingSend");if(e){if(i){i.addEvent("click",function(m){m.preventDefault();GT.gameWindow(GT_COUNTER.play.href)})}}else{if(h){if(i){i.addEvent("click",function(m){m.preventDefault();GT.gameWindow(GT_COUNTER.warmup.href)})}}new GT.Countdown({elementsSelector:"#tournamentSignOn",countdownTextElementSelectors:["#countdown"],cufonCountdownSelectors:["#tournamentSignOn p"],cufonCountdownCompletedSelectors:[],onSingleTick:function(n,p){countdown2=$("countdown2");if(!BODY.hasClass("tournStatus_8")){if((p<=900)&&(p>0)){var m=$("landingSend");BODY.removeClass("tournStatus_3");BODY.addClass("tournStatus_8");if(countdown2){var o=new Element("a",{"class":"room",href:GT_COUNTER.warmup.href,text:GT_COUNTER.warmup.text,events:{click:function(q){q.preventDefault();GT.gameWindow(this.href)}}});countdown2.empty();countdown2.grab(o);if(m){m.set("text",GT_COUNTER.warmup.text);m.addEvent("click",function(q){q.preventDefault();GT.gameWindow(GT_COUNTER.warmup.href)});if(USE_CUFON&&("function"==typeof Cufon)){Cufon.replace("button.fbSubmit")}}}}else{if(countdown2){countdown2.set("html",this.timeToString(p))}}}},onSingleCompleted:function(n){countdown2=$("countdown2");i=$("landingSend");BODY.removeClass("tournStatus_3").removeClass("tournStatus_8").addClass("tournStatus_5");if(countdown2){var m=new Element("a",{"class":"room",href:GT_COUNTER.play.href,text:GT_COUNTER.play.text,events:{click:function(o){o.preventDefault();GT.gameWindow(this.href)}}});countdown2.empty();countdown2.grab(m);if(i){i.set("text",GT_COUNTER.play.text);i.removeEvents("click");i.addEvent("click",function(o){o.preventDefault();GT.gameWindow(GT_COUNTER.play.href)});if(USE_CUFON&&("function"==typeof Cufon)){Cufon.replace("button.fbSubmit")}}}}})}});window.addEvent("load",function(){if(!BODY.hasClass("room")&&$("nav")){var g=$("nav"),h=false,a=false,b=g.getSize().y,i=42,j=g.getOffsets().y,d=j;var f=function(){if((b+j)<$(window).getScroll().y){if(!g.hasClass("sticky")){g.addClass("sticky")}if(!a){a=new Element("a",{id:"backToTop",href:"#",events:{click:function(k){k.preventDefault();var l=new Fx.Scroll(BODY);l.toTop()}}});a.inject($("nav"))}if(!IE6){g.setStyle("top",Math.min(0,-i+$(window).getScroll().y-j-b))}else{g.setStyles({left:-$("wrapper").getCoordinates().left+"px",width:$(window).getSize().x+"px"}).style.setExpression("top","parseInt(document.documentElement.scrollTop) + 'px'")}if(Browser.Engine.webkit&&$("footer")){$("footer").getElement("span").set("text",$("footer").getElement("span").get("text"))}h=true}};f();$(window).addEvent("scroll",function(){f();if((b+j)>$(window).getScroll().y&&h){g.removeClass("sticky");g.setStyle("top",d);if(IE6){g.setStyles({left:"auto",width:"auto"}).style.removeExpression("top")}h=false}})}var c=$$("a[title]:not(a[rel^=lightbox])");GT.tooltip=new GT.Tooltip(c,{text:"",className:"tooltip",showDelay:100,hideDelay:50,onShow:function(l,k){l.set("tween",{onStart:function(){this.set("display","block")},onComplete:function(){if(!this.subject.getStyle("opacity")){this.set("display","none")}}});l.tween("opacity",1)},onHide:function(l,k){l.tween("opacity",0)}});var e=$("thisamount");if(USE_CUFON&&e){if(e.value){Cufon.refresh("h3")}e.addEvent("keyup",function(k){Cufon.refresh("h3")})}});function submitSmallForm(){$$("body.small form, body.register form").addEvent("submit",function(a){if(opener&&!opener.closed){this.target="root";self.close()}})}function smallToRoot(){if(BODY.hasClass("small")){BODY.addEvent("click",function(c){var d=$(c.target),b=(d.get("tag")=="a")?d:d.getParent("a"),a;if(b){a=b.getParent("h1")||b.getParent("#footer")||false;if(b.hasClass("opener")||a){b.setProperty("target","root");if(opener&&!opener.closed){opener.focus()}}if(b.hasClass("close")||a){(function(){self.close()}).delay(500)}}});BODY.addEvent("submit",function(a){var b=$(a.target);if(b.hasClass("opener")){b.setProperty("target","root");if(opener&&!opener.closed){opener.focus()}}if(b.hasClass("close")){(function(){self.close()}).delay(500)}})}}function popupWindowNew(b,c,d,a){openWindow(a.getAttribute("href"),a.getAttribute("target")||"_blank",d,b,c)}function openWindow(e,d,h,c,g,b,a){if(!isNaN(h)){a=b;b=g;g=c;c=h;h=null}if(!b){b=Math.round((screen.width-c-10)/2)}if(!a){a=Math.round((screen.height-g-30)/2)}if(b<0){b=0}if(a<0){a=0}h=(h)?h+",":"";h+=(c)?"width="+c+",left="+b+",":"";h+=(g)?"height="+g+",top="+a:"";d=(d)?d:"_blank";Popup=window.open(e,d,h);if(Popup){Popup.focus()}return Popup}if(typeof SIDEBAR_ACCORDION_NR1!="undefined"){window.addEvent("domready",function(){new Accordion($("sideBar"),"h3.toggler","div.element",{opacity:false,show:SIDEBAR_ACCORDION_NR1,onActive:function(b,a){b.setStyle("cursor","default")},onBackground:function(b,a){b.setStyle("cursor","")}})})}function pgPrint(){var a=self.location.href,b=/.*(\?|~|&).*/,c=(b.exec(a))?"&":"?",d=/([^#]*)(#?.*)$/;d=d.exec(a);a=[d[1],c,"rm=print"].join("");window.open(a)}function handleErr(g,a,b,d){var f="";f+="?Error="+encodeURIComponent(g);f+="&URL="+encodeURIComponent(a);f+="&Line="+encodeURIComponent(b);f+="&domready="+domreadyFired;f+="&onload="+loadFired;f+="&referer="+encodeURIComponent(location.href);f+="&errorElement="+encodeURIComponent(errorElement);var c=new Image();c.src="http://logjs.skill7.com/log_js.asp"+f;return false};window.addEvent("domready",function(){var b=$("tournamentsReg");var c=$("tournFreerollReg");if(b){var f=$$("#tournamentSignOn #landingSend, #tournamentsReg"),e=new GT.Request.HTML({method:"get",url:b.get("href"),onFailure:function(g){window.location="/login.asp"},onSuccess:function(h,i,g,k){var j=$("mb_tournament_register");if(j){j.set("html",g)}else{j=new Element("div",{id:"mb_tournament_register",html:g,styles:{display:"none"}});$$("body").grab(j)}Mediabox.open("#mb_tournament_register","","500 200");if(USE_CUFON&&("function"==typeof Cufon)){Cufon.replace("h3").replace("button");Cufon.refresh(".tipBox h3").refresh(".fbCancel").refresh(".fbApprove")}doSubscribe()}.bind(this)});f.addEvent("click",function(g){g.preventDefault();e.send("xpf=ax")})}else{if(c){var d=c.get("href");var a=$("landingSend");a.addEvent("click",function(g){g.preventDefault();window.location=d})}}});function doSubscribe(){var a=$("mbLandingCancel");var b=$("mbLandingSend");if(b){b=b,request=new GT.Request.HTML({method:"get",url:window.location.href,onSuccess:function(d,e,c,f){var g=$("mbImage").getElement(".contBox .container");if(g){g.set("html",c)}if(USE_CUFON&&("function"==typeof Cufon)){Cufon.replace("h3");Cufon.refresh(".fbCancel")}closeMediaBox()}.bind(this)});b.addEvent("click",function(c){c.preventDefault();request.send("doSubscribe=1&xpf=ax")})}if(a){a.addEvent("click",function(c){c.preventDefault();Mediabox.close()})}}function closeMediaBox(){if($("tournMessages").getElement(".tournSubscriptionSuccess")||$("tournMessages").getElement(".tournSubscriptionError")){var a=[$("mbCloseLink"),$("mbOverlay")];a.each(function(b){b.addEvent("click",function(c){c.preventDefault();location.reload();Mediabox.close()})})}};var konami={input:"",clear:setTimeout("konami.clear_input()",2000),load:function(a){window.document.onkeyup=function(b){konami.input+=b?b.keyCode:event.keyCode;if(konami.input=="3838404037393739666513"){konami.code(a);clearTimeout(konami.clear)}clearTimeout(konami.clear);konami.clear=setTimeout("konami.clear_input()",2000)}},code:function(a){window.location=a},clear_input:function(){konami.input="";clearTimeout(konami.clear)}};konami.code=function(){$$("html")[0].setStyles({"-webkit-transform":"rotate(-0.5deg)","-moz-transform":"rotate(-0.5deg)",filter:"Blur()"})};konami.load();