//MODIFIED 042909( function(){ var e=null, a=window, n="e", k="sitesearch", s=a.BaSearchIframe||a.BaSearchPath&&typeof a.BaSearchIframe=="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.BasSearchQuery!=n&&b[a.BasSearchQuery]){b[n]=b[a.BasSearchQuery]; delete b[a.BasSearchQuery]}
if(b.ss){ var i=t(decodeURIComponent(b.ss),"o",";",true),m=i.SS; if(m)q=parseInt(m,10)}
var f=document.getElementById(a.BaSearchFormName); 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.BaSearchDomain; c+="/"; c+=a.BaSearchCustom; c+="?"; if(a.BasSearchQuery)a.BasSearchQuery=a.BasSearchQuery.toLowerCase(); c+=w(); c+=r("ad","w"+p); c+=r("num",l); 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.BaSearchAds)||(p=1); l=(l=10)?Math.min(l,20):8; var c={}; c[1]=895; c[10]=895; c[11]=500; var b={}; b[1]=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.BaSearchFrameborder)a.BaSearchFrameborder="0"; var m=document.getElementById(a.BaSearchIframeName); if(m&&c[q]){ var f=u(a.BaSearchWidth,c[q]),g=u(a.BaSearchFrameHeight,b[q]), d=document.createElement("iframe"),h={name:"BaSearchFrame",src:i,frameBorder:a.BaSearchFrameborder,width:f,height:g,marginWidth:"0",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.BaSearchIframeName=e; a.BaSearchFormName=e; a.BaSearchIframe=e; a.BasSearchQuery=e; a.BaSearchDomain=e; a.BaSearchCustom=e; a.BaSearchFrameborder=e; a.BaSearchWidth=e; a.BaSearchFrameHeight=e; a.BaSearchAds=e; a.BaSResults=e
}y()})(); 