$(function(){var a=$(".home_banner.current");$("#flash_notice").delay(2500).fadeOut(function(){$(this).remove()}),$("#home_games a").mouseenter(function(){var a=$(this).attr("href"),b=a.split("_")[1];switch(b){case"swtor":$("#preload_banners").css({"background-image":"url('http://cloudfront-assets.shivtr.com/assets/graphics/shivtr/home_banners/swtor-62e8e250cd0e51a2b5fef83f6864628a.png')"});break;case"lol":$("#preload_banners").css({"background-image":"url('http://cloudfront-assets.shivtr.com/assets/graphics/shivtr/home_banners/lol-7c7e7aac0951a42f074c49c9e78fa4a5.png')"});break;case"gw2":$("#preload_banners").css({"background-image":"url('http://cloudfront-assets.shivtr.com/assets/graphics/shivtr/home_banners/gw2-8e2b691811579391669b578460eab158.png')"});break;case"wow":$("#preload_banners").css({"background-image":"url('http://cloudfront-assets.shivtr.com/assets/graphics/shivtr/home_banners/wow-e23bbb74d249a9776ff19f4e6aeb6e93.png')"});break;case"pwi":$("#preload_banners").css({"background-image":"url('http://cloudfront-assets.shivtr.com/assets/graphics/shivtr/home_banners/pwi-e140fdcddc6b2cd782ae391f06546b57.png')"});break;case"rift":$("#preload_banners").css({"background-image":"url('http://cloudfront-assets.shivtr.com/assets/graphics/shivtr/home_banners/rift-153826f214a39c1228870256435771e8.png')"});break;case"lotro":$("#preload_banners").css({"background-image":"url('http://cloudfront-assets.shivtr.com/assets/graphics/shivtr/home_banners/lotro-dde2f544f29460cfcaac91df4eaa0d5b.png')"});break;case"war":$("#preload_banners").css({"background-image":"url('http://cloudfront-assets.shivtr.com/assets/graphics/shivtr/home_banners/war-009ae9cbe83defcbd7bd1fc9582b8d44.png')"});break;case"aion":$("#preload_banners").css({"background-image":"url('http://cloudfront-assets.shivtr.com/assets/graphics/shivtr/home_banners/aion-b8485691b976b84c5f986455f55073cb.png')"});break;default:}}),$("#home_games a").click(function(){var b=$(this).attr("href"),c=$(b),d=$(".home_banner.current"),e=b.split("_")[1];if(b.substr(1)!=a.attr("id")){var f=$(".home_banner:not("+b+")");$(".home_banner:not(.current)").hide(),c.addClass("current").show(),d.addClass("fading").removeClass("current").show().fadeOut("medium",function(){$(this).removeClass("fading"),$(".home_banner.current").show()}),a=$(".home_banner.current"),$("#home_games a").removeClass("selected"),$("#home_games a.game_"+e).addClass("selected")}var g=b.split("_")[1];switch(g){case"swtor":$("#home_features > div").animate({marginLeft:["-600px","swing"]},500,function(){});break;case"wow":$("#home_features > div").animate({marginLeft:["-1200px","swing"]},500,function(){});break;case"gw2":$("#home_features > div").animate({marginLeft:["-1800px","swing"]},500,function(){});break;case"lol":$("#home_features > div").animate({marginLeft:["-2400px","swing"]},500,function(){});break;case"pwi":$("#home_features > div").animate({marginLeft:["-3000px","swing"]},500,function(){});break;case"rift":$("#home_features > div").animate({marginLeft:["-3600px","swing"]},500,function(){});break;case"lotro":$("#home_features > div").animate({marginLeft:["-4200px","swing"]},500,function(){});break;case"war":$("#home_features > div").animate({marginLeft:["-4800px","swing"]},500,function(){});break;case"aion":$("#home_features > div").animate({marginLeft:["-5400px","swing"]},500,function(){});break;default:$("#home_features > div").animate({marginLeft:["0px","swing"]},500,function(){})}return!1})})
