(function(){function o(a,c,d,h){var f={};a=a.split(d);for(d=0;d<a.length;d++){var g=a[d],i=g.indexOf(c);if(i>0){var m=g.substring(0,i);m=h?m.toUpperCase():m.toLowerCase();g=g.substring(i+1,g.length);f[m]=g}}return f}function q(){var a=document.location.search;if(a.length<1)return"";a=a.substring(1,a.length);a=o(a,"=","&",false);if(b.googleSearchQueryString!="q"&&a[b.googleSearchQueryString]){a.q=a[b.googleSearchQueryString];delete a[b.googleSearchQueryString]}if(a.cof){var c=o(decodeURIComponent(a.cof),
":",";",true);if(c=c.FORID)k=parseInt(c,10)}if(c=document.getElementById(b.googleSearchFormName)){if(c.q&&a.q&&(!a.ie||a.ie.toLowerCase()=="utf-8"))c.q.value=decodeURIComponent(a.q.replace(/\+/g," "));if(c.sitesearch)for(var d=0;d<c.sitesearch.length;d++)c.sitesearch[d].checked=a.sitesearch==e&&c.sitesearch[d].value==""?true:c.sitesearch[d].value==a.sitesearch?true:false}c="";for(var h in a)c+="&"+h+"="+a[h];return c.substring(1,c.length)}function n(a,c){return c?"&"+a+"="+encodeURIComponent(c):""}
function r(){var a="http://";a+=b.googleSearchDomain?b.googleSearchDomain:"www.google.com";a+=b.googleSearchPath?b.googleSearchPath:"/custom";a+="?";if(b.googleSearchQueryString)b.googleSearchQueryString=b.googleSearchQueryString.toLowerCase();a+=q();a+=n("ad","w"+l);a+=n("num",j);a+=n("adtest",b.googleAdtest);if(p){var c=b.location.href,d=c.indexOf("#");if(d!=-1)c=c.substring(0,d);a+=n("rurl",c)}return a}function s(){(l=b.googleSearchNumAds)||(l=9);j=(j=b.googleNumSearchResults)?Math.min(j,20):10;
var a={};a[9]=795;a[10]=795;a[11]=500;var c={};c[9]=300+90*j;c[10]=250+50*Math.min(l,4)+90*j;c[11]=300+50*l+90*j;var d=r();if(!b.googleSearchFrameborder)b.googleSearchFrameborder="0";var h=document.getElementById(b.googleSearchIframeName);if(h&&a[k]){a=b.googleSearchFrameWidth?Math.max(b.googleSearchFrameWidth,a[k]):a[k];c=b.googleSearchFrameHeight?Math.max(b.googleSearchFrameHeight,c[k]):c[k];var f=document.createElement("iframe");d={name:"googleSearchFrame",src:d,frameBorder:b.googleSearchFrameborder,
width:"740",height:c,marginWidth:"0",marginHeight:"0",hspace:"0",vspace:"0",allowTransparency:"true",scrolling:"no"};for(var g in d)f.setAttribute(g,d[g]);h.appendChild(f);f.attachEvent?f.attachEvent("onload",function(){window.scrollTo(0,0)}):f.addEventListener("load",function(){window.scrollTo(0,0)},false);p&&b.setInterval(function(){if(b.location.hash&&b.location.hash!="#"){var i=b.location.hash.substring(1)+"px";if(f.height!=i&&i!="0px")f.height=i}},10)}b.googleSearchIframeName=e;b.googleSearchFormName=
e;b.googleSearchResizeIframe=e;b.googleSearchQueryString=e;b.googleSearchDomain=e;b.googleSearchPath=e;b.googleSearchFrameborder=e;b.googleSearchFrameWidth=e;b.googleSearchFrameHeight=e;b.googleSearchNumAds=e;b.googleNumSearchResults=e;b.googleAdtest=e}var e=null,b=window,p=b.googleSearchResizeIframe||b.googleSearchPath&&b.googleSearchPath=="/cse"&&typeof b.googleSearchResizeIframe=="undefined",k,l,j;s()})();
