
var toptickerhound={current:1,init:function(){if(document.getElementById('toptickerhoundCategoryMain')){Event.observe($('toptickerhoundCategoryMain'),'change',function(){var newCategoryId=$('toptickerhoundCategoryMain').options[$('toptickerhoundCategoryMain').selectedIndex];newCategoryId.text=newCategoryId.text.replace(/[^A-Za-z0-9]/g,'');var str=window.location.href;var newWeekly=(str.charAt(str.length-1)=='w')?'/w':'/';window.location=THSiteURL+'tophounds/category/'+newCategoryId.text+'/'+newCategoryId.value+newWeekly;},false);}
if(document.getElementById('toptickerhoundgame')){Event.observe($('toptickerhoundgame'),'change',function(){var newLevel=$('toptickerhoundgame').options[$('toptickerhoundgame').selectedIndex];if(newLevel.text!='All Levels'){newLevel.text=newLevel.text.replace(/[^0-9]/g,'');}
else{newLevel.text='0';}
var str=window.location.href;window.location=THSiteURL+'tophounds/game/'+newLevel.text+'/0/10';},false);}
if(!document.getElementById('bycategory')){return;}
toptickerhound.showCurrent();},showCurrent:function(){if(!document.getElementById('bycategory')){return;}
$('th_cat_'+toptickerhound.current).style.display='block';},setCurrent:function(){if(!document.getElementById('bycategory')){return;}
var selected=$('toptickerhoundcategory').selectedIndex;selected=$('toptickerhoundcategory').options[selected].value;$('th_cat_'+toptickerhound.current).style.display='none';toptickerhound.current=selected;toptickerhound.showCurrent();}}
Event.observe(window,'load',toptickerhound.init,false);