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