(function(){function getR(){  nR = window.gurujiNumSearchResults;  if(nR)    {nR=Math.min(nR,10)}  else    {nR=10}  var ht={};ht[1] = (300+20*nR)+150;  var wid={};  wid[1]=500;     var srcUrl=createUrl();  if(!window.gurujiSearchFrameborder)     {window.gurujiSearchFrameborder="0"}     
var fName=document.getElementById(window.gurujiSearchIframeName);
if(fName&&wid[p]){var wd=max(window.gurujiSearchFrameWidth,wid[p]), hgt=max(window.gurujiSearchFrameHeight,ht[p]),e=document.createElement("iframe"),attrib={id:"gurujiSearchFrame",name:"gurujiSearchFrame",src:srcUrl,frameBorder:window.gurujiSearchFrameborder,width:wd,height:hgt,marginWidth:"0",marginHeight:"0",hspace:"0",vspace:"0",allowTransparency:"true",scrolling:"no"};for(var l in attrib ){e.setAttribute(l,attrib[l])}fName.appendChild(e);if(e.attachEvent)   {e.attachEvent("onload",function(m){window.scrollTo(0,0)})}else   {e.addEventListener("load",function(){window.scrollTo(0,0)},false)}}window.gurujiSearchIframeName=vnull;window.gurujiSearchFormName=vnull;window.gurujiSearchQueryString=vnull;window.gurujiSearchDomain=vnull;window.gurujiSearchPath=vnull;window.gurujiSearchFrameborder=vnull;window.gurujiSearchFrameWidth=vnull;window.gurujiSearchFrameHeight=vnull;window.gurujiSearchNumAds=vnull;window.gurujiNumSearchResults=vnull;window.gurujiAdtest=vnull}   function parse(str,delim,tok,k){var d={},g=str.split(tok);for(var e=0;e<g.length;e++){var h=g[e],l=h.indexOf(delim);if(l>0){var m=h.substring(0,l);if(k){m=m.toUpperCase()}else{m=m.toLowerCase()}var v=h.substring(l+1,h.length);d[m]=v}}return d}function processParams(){  var loc=document.location.search;  if(loc.length<1)    {return""}  loc=loc.substring(1,loc.length);  var c=parse(loc,"=","&",false);  if(window.gurujiSearchQueryString!="q"&&c[window.gurujiSearchQueryString])    {c["q"]=c[window.gurujiSearchQueryString];delete c[window.gurujiSearchQueryString]}    if(c.cfeed)  {           p=1;  }    var e="";for(var h in c){e+="&"+h+"="+c[h]}return e.substring(1,e.length)}function encodeUri(str1,str2){if(str2){return"&"+str1+"="+encodeURIComponent(str2)}else{return""}}var vnull=null,i="site",p,n,j;getR();function max(num1,num2){if(num1){return Math.max(num1,num2)}else{return num2}}function createUrl(){	var temp="http://";	if(window.gurujiSearchDomain)	  {temp+=window.gurujiSearchDomain}	else	  {temp+="guruji.com"}	if(window.gurujiSearchPath)	  {temp+=window.gurujiSearchPath}	else	  {temp+="/search"}temp+="?";    if(window.gurujiSearchQueryString)	  {window.gurujiSearchQueryString=window.gurujiSearchQueryString.toLowerCase()}	temp+=processParams();	return temp}})();
window.resizeFrame=function(w,h){x=document.getElementById('gurujiSearchFrame');if(x){ x.style.height=h+"px";x.style.width=w+"px";}}
