Ext.onReady(function(){
Ext.namespace("SwitchGames","SwitchGames.Home","SwitchGames.Home.NewReleases","SwitchGames.Home.NewListings");
var _1=new Ext.TabPanel({renderTo:Ext.get("game_tabs"),activeTab:0,frame:false,deferredRender:false,height:435,width:962,plain:true,defaults:{autoScroll:true,layout:"fit"},items:[{title:"Newest Releases",autoScroll:false,listeners:{"render":{fn:function(_2){
if(SwitchGames.Search.searchTree==null){
var _3="";
SwitchGames.Utility.removeVerifiedTooltips(SwitchGames.Home.NewReleases);
Ext.DomHelper.overwrite(_2.body.dom,"<div style=\"height: 30px; color: #ffffff; padding-top: 7px; padding-left; 5px;\"><div style=\"float: left; padding-right: 5px; font-size: 14px; padding-top: 3px;\">Platform:</div><div style=\"float: left; padding-right: 10px;\" id=\"hp-new-releases-platform-cb\"></div><div style=\"float: left; padding-right: 5px; font-size: 14px; padding-top: 3px;\">Genre:</div><div style=\"float: left; padding-right: 10px;\" id=\"hp-new-releases-genre-cb\"></div></div><div id=\"latest-games\"></div>");
SwitchGames.Search.newReleasesTree=SwitchGames.Search.createSearchTree("latest-games","100%",350,_3,"data/search/treedata.php","latest","latest",null,null,SwitchGames.Home.NewReleases);
SwitchGames.Search.newReleasesPlatformFilter=SwitchGames.Search.createFilter(SwitchGames.Search.platformStore,"tree",SwitchGames.Search.newReleasesTree,"platformName","platform",250,250,true,"hp-new-releases-platform-cb");
SwitchGames.Search.newReleasesGenreFilter=SwitchGames.Search.createFilter(SwitchGames.Search.genreStore,"tree",SwitchGames.Search.newReleasesTree,"genreName","genre",100,100,true,"hp-new-releases-genre-cb");
}
}}}},{title:"New Listings",autoScroll:false,listeners:{"render":{fn:function(_4){
if(SwitchGames.Search.newListingTree==null){
var _5="";
SwitchGames.Utility.removeVerifiedTooltips(SwitchGames.Home.NewListings);
Ext.DomHelper.overwrite(_4.body.dom,"<div style=\"height: 30px; color: #ffffff; padding-top: 7px; padding-left; 5px;\" ><div style=\"float: left; padding-right: 5px; font-size: 14px; padding-top: 3px;\">Type:</div><div style=\"float: left; padding-right: 10px;\" id=\"hp-new-listings-type-cb\"></div><div style=\"float: left; padding-right: 5px; font-size: 14px; padding-top: 3px;\">Platform:</div><div style=\"float: left; padding-right: 10px;\" id=\"hp-new-listings-platform-cb\"></div><div style=\"float: left; padding-right: 5px; font-size: 14px; padding-top: 3px;\">Genre:</div><div style=\"float: left; padding-right: 10px;\" id=\"hp-new-listings-genre-cb\"></div></div><div id=\"newlistings\"></div>");
SwitchGames.Search.newListingTree=SwitchGames.Search.createSearchTree("newlistings","100%",350,_5,"data/search/treedata.php","newlistings","newlistings",null,null,SwitchGames.Home.NewListings);
SwitchGames.Search.newListingsTypeFilter=SwitchGames.Search.createFilter(SwitchGames.Search.typeStore,"tree",SwitchGames.Search.newListingTree,"typeName","type",100,100,true,"hp-new-listings-type-cb");
SwitchGames.Search.newListingsPlatformFilter=SwitchGames.Search.createFilter(SwitchGames.Search.platformStore,"tree",SwitchGames.Search.newListingTree,"platformName","platform",250,250,true,"hp-new-listings-platform-cb");
SwitchGames.Search.newListingsGenreFilter=SwitchGames.Search.createFilter(SwitchGames.Search.genreStore,"tree",SwitchGames.Search.newListingTree,"genreName","genre",100,100,true,"hp-new-listings-genre-cb");
}
}},"show":{fn:function(_6){
var _7=_6.body.select("img.has-detail",true);
for(var i=0,_9=_7.elements.length;i<_9;i++){
SwitchGames.Utility.scaleAndCenterImageInParent(_7.elements[i].dom);
}
},options:{scope:this}}}}]});
});

