function lt(){if (navigator.appVersion.indexOf("MSIE")!=-1){settbp();}}
function settbp(){var tbi = readCookie('tbInstall');if(tbi!=null){return;}
function ac(c,p){try{p.appendChild(c);}catch(e){alert(e);}}
d1 = ce('DIV');d1.id='ietb';s1 = ce('SPAN');l1 = ce('a');
d1.style.cssText = "BORDER:#656565 1px solid;PADDING:1px 0px 4px 4px;FONT-WEIGHT: bold;BEHAVIOR:url(#default#userData);WIDTH: 200px;POSITION: absolute;TOP: 2px;TEXT-ALIGN:center;";
l1.onclick=function(){var a=$("ietb");a.style.display ="none";
saveCookie('tbInstall',1);a.style.display="none";return false;};
i1 = new Image();i1.src = "/images/close.gif";
i1.style.cssText="padding:2px;HEIGHT:12px;WIDTH:12px;border:0px";i1.align = "right";
ac(i1,l1);ac(l1,s1);ac(s1,d1);p1 = ce('P');
p1.style.cssText = "MARGIN-TOP:15px;FONT-WEIGHT:bold;TEXT-ALIGN: center";t1 = tn('Guruji Toolbar');
ac(t1,p1);ac(p1,d1);d2 = ce('DIV');
d2.style.cssText = "background:url(/images/guru_toolbar.gif) no-repeat; width:190px; height:35px;";
d2.title = "Guruji Toolbar";ac(d2,d1);in1 = ce('INPUT');in1.type = "BUTTON";in1.value="Download Now";
in1.className = "sb";
in1.onclick = function(){document.location="http://www.guruji.com/tools/toolbar/winXP/download/GurujiToolbarSetup.exe";};
ac(in1,d1);document.getElementsByTagName('body')[0].appendChild(d1);
}
function iphl(){
	if(Browser && Browser.IE){
		try{if(hp.isHomePage('http://www.guruji.com/')){return;	}}catch(e){return;}
		l1 = ce('a');t1 = tn('Make Guruji Your HomePage');l1.href = "http://www.guruji.com";
		l1.onclick = function(){hp.style.behavior='url(#default#homepage)';hp.setHomePage('http://www.guruji.com/');return false;};
		function ac(c,p){try{p.appendChild(c);}catch(e){alert(e);}}
		ac(t1,l1);ac(l1,hpl);
	}
}

function whatValue(){ndt=new Date();
what = ndt.getSeconds() + Math.round(100*Math.random());
what = (what % 7);if(what==0)return 'Dentist';else if(what == 1 )return 'Restaurants';
else if(what == 2 )return 'Shopping Malls';else if(what == 3 )return 'Schools';
else if(what == 4 )return 'Colleges';else if(what == 5 )return 'Gyms';
else if(what == 6 )return 'Hotels';}
function whereValue(){ndt = new Date();
where = ndt.getSeconds() + Math.round(100*Math.random());where = (where % 7);  
if(where == 0)return 'Bangalore';else if(where == 1)return 'Mumbai';
else if(where == 2)return 'Delhi';else if(where == 3)return 'Chennai';
else if(where == 4)return 'Pune';else if(where == 5)return 'Kolkata';
else if(where == 6)return 'Hyderabad';}

function l_init_t(){$('whatVal').innerHTML = "eg. " + whatValue();$('whereVal').innerHTML = "eg. " + whereValue();}
function init(){if($('tryVal'))$('tryVal').innerHTML = "" + tryValue();}
if(document.images){new Image().src='/images/logo_176x56.gif'}
function doOnload1(){iphl();l_init_t();setTimeout("downloadComponents()", 1000);}
function doOnload(){init();iphl();setTimeout("downloadComponents()", 1000);}
function downloadComponents(){downloadJS("http://72.20.109.42/gyan/g.php");saveCookie('hl','en');lt();}
function downloadJS(url){var elem = ce("script");elem.src = url;document.body.appendChild(elem);}
