function isIE(){return(/msie/i).test(navigator.userAgent)&&!(/opera/i).test(navigator.userAgent)}function urlencode(a){a=encodeURIComponent(a);return a.replace(/~/g,"%7E").replace(/%20/g,"+")}function refloatWolf(){var a=document.getElementById("wdiv");if(window.innerWidth<1216){a.style.right="";a.style.left="402px"}else{a.style.left="";a.style.right="0px"}}function selectSlot(){var a=document.getElementsByName("googleSearchFrame");var b=document.getElementById("wolf_window");a=a[0];b.height=a.height}function doNothing(){}function notifyWolfLoaded(){selectSlot()}function getDomain(b){var a=new RegExp("(http|ftp|https)://(.*?)/.*$");var c=b.match(a);return c[2]}function putPermaCookie(d,c){var b=new Date();b.setFullYear(b.getFullYear()+16);var a=d+"="+c+"; expires="+b+"; ";a+="path=/; domain="+getDomain(document.URL)+";";document.cookie=a}function addOpenSearch(a){try{window.external.AddSearchProvider(a)}catch(b){alert("Your browser doesn't appear to support OpenSearch providers. Try a newer version of your browser or install Firefox to add Goofram to your quick searches.\r\nYou may also install the quick search plugins by using the drop down menu to the right of the search box.")}putPermaCookie("hasopensearch",1);document.getElementById("addquicksearch").style.display="none"}function calcHeight(b){var a=500;var c=30;b.height=a+c}function valert(a){alert("this is "+a)}function onLoadHandler(){}function changeHandler(){onLoadHandler=function(){alert("added successfully")}}function repositionFooter(a){var b,c;if(a<document.body.clientHeight){b=document.body.clientHeight-a-330;if(b>0){c=document.getElementById("footer");c.style.paddingTop=b+"px"}}}function resizeWolfWindow(c){var d=c||((isIE())?window.frames.wolf_window:document.getElementById("wolf_window")),b,a;if(!d){return}b=document.getElementById("gresults");a=b.clientHeight;if(a<505){a=505}if(isIE()){d.style.height=a+"px"}else{d.height=a}repositionFooter(a)}function fadeOutWaiting(b){var a=document.getElementById("wolf_window"),b=b||0;window.wolfCount=(++window.wolfCount||1);if(window.wolfCount>=b){$("#waiting").fadeOut("fast")}}function focusSearchForm(){var a=document.getElementsByName("q")[0];a.focus()}$(document).ready(function(){var d=document.getElementById("addquicksearch");resizeWolfWindow();$("#outimg").mouseover(function(){$("#message").show("slow")});$(".breakout").mouseout(function(){$("#message").hide("fast")});$("#addquicksearch").mouseover(function(){d.style.backgroundColor="#D60202"}).mouseout(function(){d.style.backgroundColor="#DF5162"});try{refloatWolf();window.onresize=refloatWolf}catch(c){if(window.console&&console.log){}}try{focusSearchForm()}catch(c){}try{var b=$('input[name="q"]'),a=b[0];b.keypress(function(f){try{a.onfocus()}catch(g){}})}catch(c){}});if(window.live_couple){live_couple()};
