var TUBEFOOT=TUBEFOOT||{};TUBEFOOT.base=function(){var b=YAHOO.util.Dom,a=YAHOO.util.Event;var d=b.get("query");d.focus();function c(f){if(YAHOO.lang.trim(d.value)==""){a.stopEvent(f);alert("You'll want to type something in the search box.");d.focus()}}a.on("search","submit",c);a.on("search_submit","click",c);a.onDOMReady(function(){if(typeof(YAHOO.lang.JSON)!="undefined"){var f=YAHOO.lang.JSON.stringify(google.loader.ClientLocation);var e=document.title;e=(e.indexOf("tubefoot")<0)?"tubefoot : "+e:e;if(f){YAHOO.util.Connect.asyncRequest("POST","http://"+document.location.hostname+g_sBasePath+"_services/ucl",{success:function(){},failure:function(g){}},"cLoc="+encodeURIComponent(f)+"&ipt="+encodeURIComponent(e)+"&ipu="+encodeURIComponent(document.location.href))}}});return{adsense:{propagate:function(){var g=b.get("ad_script_divs").getAttribute("ads");var f=function(m,i){var l=b.get(i);var k=b.get(l.getAttribute("slot"));if(k){k.appendChild(l);var n=k.getAttribute("class");k.setAttribute("class",n);if(!b.hasClass(l,"fjso_reveal_wait")){b.removeClass(l,"adScript")}}m=null;n=null;k=null;l=null};var j=function(){this.listen=function(i){if(YAHOO.env.ua.opera){a.onContentReady(i,function(){f(this,i)})}else{a.onAvailable(i,function(){f(this,i)})}}};for(var e=0;e<=g+1;e++){var h=new j;h.listen("ad_"+e+"_script");h=null}},init:function(){this.propagate()}},getQSParam:function(j){var e=location.search.replace(/\?/,"&");if(e.length>0){var h=e.split("&");for(var g=0;g<h.length;g++){var f=h[g].split("=");if(f[0]==j){return f[1]}}}}}}();
