function hide(){ document.getElementById('newsbrk').innerHTML = "" document.getElementById('newsbrk').style.visibility = "none"; } var is_chrome=/chrome/.test(navigator.userAgent.toLowerCase()); var _stpos = 0; var _imgwt = 0; var moving = false; var stop = false; function move(){ if(stop){ _stpos = 0; } document.getElementById('bnewstickerplaceholder').style.left=(_stpos - 2)+'px'; if(document.getElementById('bnewstickerplaceholder').style.left == (_imgwt*-1)+"px"){ _stpos = 348; } _stpos = _stpos - 1; if(!stop){ if(is_chrome) { setTimeout('move()',10); } else { setTimeout('move()',5); } } } function bnews(refreshtime){ try{ var breakhttp=false; breakhttp = window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"); if (breakhttp){ breakhttp.onreadystatechange=function(){ if (breakhttp.readyState==4){ if (breakhttp.status==200){ var bstr = breakhttp.responseText; if(bstr == ""){ if(document.getElementById("newsbrk").style.display == "inline"){ document.getElementById("newsbrk").style.display = "none"; } }else{ document.getElementById('bnewstickerplaceholder').innerHTML=bstr; document.getElementById("newsbrk").style.display="inline"; _imgwt = document.getElementById("bnewstickerplaceholder").offsetWidth; if(_imgwt >= 345 && moving == false){ moving = true; stop = false; move(); }else if(_imgwt < 345 && moving == true){ stop = true; moving = false; } } } } } breakhttp.open("GET",'/breakingnews/bnews.htm',true); breakhttp.send(null); } }catch (e){breakhttp = false;} setTimeout("bnews("+refreshtime+")",refreshtime); } var strvideo; var extn; var Colordivstatus='false'; function populatediv(urlval,divval){ populate(urlval,divval,''); } function wallpaperpop(path,width,height) { window.open(path,'Cricket','height='+height+',width='+width+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0'); } function populate(urlval,divval,loading){ try{ var xmlhttp=false; var status=0; if(loading != 'no'){ var str_temp = ''; str_temp = str_temp + '
Loading'; str_temp = str_temp + '
'; document.getElementById(divval).innerHTML = str_temp; } xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"); if (xmlhttp){ xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4){ if (xmlhttp.status==200){ document.getElementById(divval).innerHTML=xmlhttp.responseText; } else if (xmlhttp.status==404) status=0 else status=0 } } xmlhttp.open("GET",urlval,true); xmlhttp.send(null); } }catch (e){ xmlhttp = false; } } function showlayer(popup,sts){ if(sts == "close"){ document.getElementById('t').style.display="none"; document.getElementById('b').style.display="none"; } } function setHomepage(what, url){ if (navigator.appName == 'Microsoft Internet Explorer' && document.getElementById) setHomepageExplorer(what, url); else if (document.layers || document.getElementById) setHomepageNetscape(what, url); return false; } function setHomepageNetscape(what, url){ var warn = 'Due to Netscapes security handling, making Times of India ' + 'your homepage, will show you a dialog with a warning.' + 'If you do not wish to grant this site the access to ' + 'your browser settings, you can manually copy ' + 'http://timesofindia.indiatimes.com and paste it in the location field in ' + 'Edit|Preferences|Navigator.'; if (confirm(warn)){ netscape.security.PrivilegeManager.enablePrivilege("UniversalPreferencesWrite"); navigator.preference('browser.startup.homepage', url);netscape.security.PrivilegeManager.disablePrivilege("UniversalPreferencesWrite"); } } function setHomepageExplorer(what, url){ what.style.behavior = 'url(#default#homepage)'; what.setHomePage(url); } var cookiestring,sUser,sUserLength, mstatus1,addr,findpos,findposLength; function getCookievalue1(strcookie){ var ipos = cookiestring.indexOf(strcookie); var ipos2 = cookiestring.indexOf(';',ipos); if (ipos != -1) { if (ipos2 == -1) ipos2 = cookiestring.length; return unescape(cookiestring.substring((ipos+strcookie.length+1),ipos2)); } } addr = document.URL; addr1 = document.URL; try{ cookiestring= document.cookie; cookiestring = cookiestring.toLowerCase(); sUser = getCookievalue1('commlogu'); sUserLength = sUser.length; mstatus1 = getCookievalue1('cmssso'); numero= 999999.9999 inRandom = Math.round((Math.random() * numero+ 0.5)); }catch(er){ cookiestring=' '; sUserLength=0; } function tabshowhide(id){ if(id=='l1'){ document.getElementById('l1').className = 'current'; document.getElementById('l2').className = ''; document.getElementById('tabcontent1').style.display = 'block'; document.getElementById('tabcontent2').style.display = 'none'; }else if(id=='l2'){ document.getElementById('l2').className = 'current'; document.getElementById('l1').className = ''; document.getElementById('tabcontent2').style.display = 'block'; document.getElementById('tabcontent1').style.display = 'none'; }else if(id=='l3'){ document.getElementById('l3').className = 'current'; document.getElementById('l4').className = ''; document.getElementById('l5').className = ''; document.getElementById('tabcontent3').style.display = 'block'; document.getElementById('tabcontent4').style.display = 'none'; document.getElementById('tabcontent5').style.display = 'none'; }else if(id=='l4'){ document.getElementById('l4').className = 'current'; document.getElementById('l3').className = ''; document.getElementById('l5').className = ''; document.getElementById('tabcontent4').style.display = 'block'; document.getElementById('tabcontent3').style.display = 'none'; document.getElementById('tabcontent5').style.display = 'none'; }else if(id=='l5'){ document.getElementById('l5').className = 'current'; document.getElementById('l4').className = ''; document.getElementById('l3').className = ''; document.getElementById('tabcontent5').style.display = 'block'; document.getElementById('tabcontent4').style.display = 'none'; document.getElementById('tabcontent3').style.display = 'none'; } } function submitmyforma(f){ f.target = 'foo'; window.open('',f.target,'menubar=no,scrollbars=0, width=520,height=332'); f.submit(); return false; } function topnav(f){ window.open('',f.target,'menubar=no,scrollbars=0, width=521,height=325'); return false; } function implementsearch(){ var searchtext=document.frmsearch.query.value; var x=-1; try{ if(document.frmsearch.search.selectedIndex > -1){ x=document.frmsearch.search.selectedIndex; } }catch(err){} if (x < 0){ for(x=0;x < 3;x++){ if (document.frmsearch.search[x].checked==1){ break; } } } if (searchtext==''){ alert('Please insert text to search'); document.frmsearch.query.focus(); return false; } if(x==0){ var strsearch = "/search.cms"; document.frmsearch.action=strsearch; document.frmsearch.submit(); }else if(x==1){ var strsearch ="http://search.indiatimes.com/websearch.cms?type=1"; document.frmsearch.action=strsearch; document.frmsearch.submit(); }else if(x==2){ var strsearch = "http://search.indiatimes.com/websearch.cms?type=0"; document.frmsearch.action=strsearch; document.frmsearch.submit(); } return false; } function tabtop(obj,divid){ var iCtr=0; var divObj=document.getElementById(divid); if (window.ActiveXObject){ for(iCtr=0;iCtr 0) && (mstatus1 == 'true')) window.open('http://timesofindia.indiatimes.com/showclips.cms','Clippings','height=400,width=575,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=1'); else window.open('http://timesofindia.indiatimes.com/login.cms?TferURL=http://timesofindia.indiatimes.com/showclips.cms','',''); } function Quote_blank(){ document.marketform.ticker1.value =""; } function showdata(){ var selected_month = document.frmReview.ddmonth.value; populatediv('/moviearticlelistdatewise.cms?msid='+a+'&month='+ document.frmReview.ddmonth.value+'&year='+ document.frmReview.ddyear.value+'&type='+selected_month ,'datewise'); document.getElementById('article').style.display="none"; document.getElementById('article').style.visibility="hidden"; } function Shownext(varMsid,varCurpg){ populatediv('/moviearticlelistdatewise.cms?msid='+varMsid+'&curpg='+ varCurpg +'&month='+ document.frmReview.ddmonth.value+'&year='+ document.frmReview.ddyear.value ,'datewise'); document.getElementById('article').style.display="none"; document.getElementById('article').style.visibility="hidden"; } function showdivlayer(msid,divid,sts,status){ SetCookie_toi('tabs',divid); if(divid=='datewise'){ document.getElementById('alphabetical').style.visibility="visible"; document.getElementById('datewise').style.visibility="hidden"; document.getElementById('alphabetical').style.display="inline"; document.getElementById('datewise').style.display="none"; if(status == 'no'){ document.getElementById('article').style.visibility="visible"; document.getElementById('article').style.display="inline"; populatediv('/moviereviewarticle/'+a+'.cms','article') populatediv('/moviearticlelistalphabet/'+a+'.cms','alphabetical'); }else{ if(aa != 'null' && aa != ''){ populatediv('/moviearticlelistalphabet/'+a+'.cms?defalpha='+aa,'alphabetical'); document.getElementById('article').style.visibility="hidden"; document.getElementById('article').style.display="none"; }else{ populatediv('/moviearticlelistalphabet/'+a+'.cms','alphabetical'); document.getElementById('article').style.visibility="visible"; document.getElementById('article').style.display="inline"; populatediv('/moviereviewarticle/'+a+'.cms','article') } } }else{ document.getElementById('datewise').style.visibility="visible"; document.getElementById('alphabetical').style.visibility="hidden"; document.getElementById('datewise').style.display="inline"; document.getElementById('alphabetical').style.display="none"; document.getElementById('article').style.visibility="hidden"; populatediv('/moviearticlelistdatewise/'+a+'.cms','datewise'); document.getElementById('article').style.display="inline"; document.getElementById('article').style.visibility="visible"; populatediv('/moviereviewarticle/'+a+'.cms','article'); } } function SetCookie_toi(sName,sValue){ document.cookie = sName + "=" + escape(sValue); } var idy, idx, opened = false, move_left = true; function findPosY(obj){ var curtop = 0; if (obj.offsetParent){ while (obj.offsetParent){ curtop += obj.offsetTop obj = obj.offsetParent; } }else if (obj.y) curtop += obj.y; return curtop; } function findPosX(obj){ var curleft = 0; if (obj.offsetParent){ while (obj.offsetParent){ curleft += obj.offsetLeft obj = obj.offsetParent; } }else if (obj.x) curleft += obj.x; return curleft; } function moveleft(){ if(move_left){ var dd_obj = document.getElementById("dd"); var left_p = findPosX(dd_obj); var top_p = findPosY(dd_obj); dd_obj.style.left = left_p - 111; dd_obj.style.top = top_p + 24; dd_obj.style.width = "109"; var inText = '
'; inText = inText + ''; inText = inText + ''; inText = inText + ''; inText = inText + '
Jobs
Matrimonial
Real Estate
Tenders
Book Print Ads
'; dd_obj.innerHTML = inText; move_left = false; } } function spanDiv(){ if(opened == true){ srinkDiv(); return false; } var div_height = document.getElementById("dd").style.height; div_height = div_height.replace("px",""); var div_h = parseInt(div_height) + 16; document.getElementById("dd").style.height = div_h; idy = setTimeout("spanDiv()",10); if(div_h >= 114){ opened = true; clearTimeout(idy); } } function srinkDiv(){ var div_height = document.getElementById("dd").style.height; div_height = div_height.replace("px",""); var div_h = parseInt(div_height) - 16; if(div_h > 0){ document.getElementById("dd").style.height = div_h; } idx = setTimeout("srinkDiv()", 10); if(div_h <= 1){ opened = false; div_height = 1; clearTimeout(idx); return ; } } function evtCap(ee){ if (window.event && window.event.srcElement){ if(window.event.srcElement.id != "dd"){ srinkDiv(); } }else if (ee && ee.stopPropagation && !window.opera){ if(ee.target.id != "dd"){ srinkDiv(); } } } try{ document.onclick = evtCap document.addEventListener("click", evtCap, true) }catch(ee){} function tpbar(){ var username = getCookievalue1('commlogu'); if(username == "" || username == null){ document.getElementById("topbardiv").innerHTML = '

Hi Guest, Sign UplSign In  Saved Article(s)

'; }else{ populate('/topbar.cms','topbardiv','no'); } } function SetCookie_toi(sName,sValue){ document.cookie = sName + "=" + escape(sValue); } function GetCookie_toi(sName){ var aCookie = document.cookie.split("; "); for (var i=0; i < aCookie.length; i++){ var aCrumb = aCookie[i].split("="); if (sName == aCrumb[0]) return unescape(aCrumb[1]); } return null; } function callwriter(){setTimeout('delayfocus()', 1000)} function delayfocus(){ var ff = getIFrameDocument("mailroifrm"); ff.mailform.message.focus(); } function getIFrameDocument(aID){ var rv = null; if (document.getElementById(aID).contentDocument){ rv = document.getElementById(aID).contentDocument; } else { rv = document.frames[aID].document; } return rv; } function showdivlayer(msid,divid,sts){ SetCookie_toi('tabs',divid); if(divid=='t'){ if ((cookiestring.indexOf('commlogp') != -1) && (sUserLength > 0) && (mstatus1 == 'true')){ var popupurl1='http://timesofindia.indiatimes.com/insertclipping/msid-'+msid+',random-'+ inRandom +'.cms'; document.getElementById('t').style.display="inline"; document.getElementById('b').style.display="none"; populatediv(popupurl1,'t'); }else{ try{ findpos = getCookievalue1('arc'); findposLength = findpos.length; }catch(er){ findposLength =0; } if((findpos != '0') && (findposLength > 1)){ document.cookie = 'arc=0'; }else{ document.cookie = 'arc=' + escape(msid); } document.location.href = 'http://timesofindia.indiatimes.com/cms.dll/login?TferURL=' + addr1; } }else{ if ((cookiestring.indexOf('commlogp') != -1) && (sUserLength > 0) && (mstatus1 == 'true')){ var popupurl1='http://timesofindia.indiatimes.com/insertclipping/msid-'+msid+',random-'+ inRandom +'.cms'; document.getElementById('b').style.display="inline"; document.getElementById('t').style.display="none"; populatediv(popupurl1,'b'); }else{ try{ findpos = getCookievalue1('arc'); findposLength = findpos.length; }catch(er){ findposLength =0; } if((findpos != '0') && (findposLength > 1)){ document.cookie = 'arc=0'; }else{ document.cookie = 'arc=' + escape(msid); } document.location.href = 'http://timesofindia.indiatimes.com/cms.dll/login?TferURL=' + addr1; } } } function defload(){ if ((cookiestring.indexOf('commlogp') != -1) && (sUserLength > 0) && (mstatus1 == 'true')){ try{ findpos = getCookievalue1('arc'); findposLength = findpos.length; }catch(er){ findposLength =0; } if((findpos != '0') && (findposLength > 1)){ var popupurl2='http://timesofindia.indiatimes.com/insertclipping/msid-' + findpos+',random-'+ inRandom + '.cms'; var pos_xx = GetCookie_toi("tabs"); if(pos_xx == "t"){ document.getElementById('t').style.display="inline"; document.getElementById('b').style.display="none"; }else{ document.getElementById('b').style.display="inline"; document.getElementById('t').style.display="none"; } populatediv(popupurl2,pos_xx); } document.cookie = 'arc=0'; } } function openpop1(url,iheight,iwidth){ so = window.open(url,'Indiatimes','height='+iheight+',width='+iwidth+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,title=test,'); } function populate11(urlval,divval){ try{ var xmlhttp=false; var status=0; xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"); if (xmlhttp){ xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4){ if (xmlhttp.status==200){ document.getElementById(divval).innerHTML=xmlhttp.responseText; } else if (xmlhttp.status==404) status=0 else status=0 } } xmlhttp.open("GET",urlval,true); xmlhttp.send(null); } }catch (e){ xmlhttp = false; } } function make_blank1(){document.frmsearch.query.value ="";} function make_blank(){document.marketform.ticker1.value ="";} var tota; function submitpg(t) { var searchpgno = document.getElementById("paging").value; // if(t>10) // {t=10;} if(searchpgno > t) { alert("Number entered is more than total number of pages."); }else{ if(searchpgno==0){alert("Please enter valid page number.");} else{ link='/articlelist_v2/msid-'+ urlid +',curpg-'+ searchpgno +'.cms'; window.location.href=link;} } return true; } function printPagination(curpg,totalpg,msid){ var tmp=0; var stpoint = curpg; var pgno = 5; tota=totalpg; var noofpage = 4; var str= '' if(totalpg > 1){ str += '' } str += '
' str += ''; if(!stpoint <= 1){ if(totalpg > 1){ str += ''; } } for(i=stpoint; i <= stpoint + noofpage && i <= totalpg; i++){ if(i == curpg){ str += ''; } if(stpoint <=(totalpg - 5)){ str += '' str += '' } if(curpg >' } str += '' str += '
Pages:'; if(curpg > 1){ str += ' <'; } str += '' str += i ; }else{ str += '' str += '' + i + '' } if(i < stpoint + noofpage && i < totalpg){ str += ' | '; } str += '...'+ totalpg +'
' str += '' str += '' str += '' str += '' str += '
' str += '
' str += '
' document.getElementById("divpaging").innerHTML=str; return true; } function populate_wf(urlval,divval,loading,fncname){ try{ var xmlhttp=false; var status=0; if(loading != 'no'){ var str_temp = ''; str_temp = str_temp + '
Loading'; str_temp = str_temp + '
'; document.getElementById(divval).innerHTML = str_temp; } xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"); if (xmlhttp){ xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4){ if (xmlhttp.status==200){ document.getElementById(divval).innerHTML=xmlhttp.responseText; if(fncname != ''){eval(fncname);} } else if (xmlhttp.status==404) status=0 else status=0 } } xmlhttp.open("GET",urlval,true); xmlhttp.send(null); } }catch (e){ xmlhttp = false; } } function showCmtCount(){ document.getElementById("totalcomment").innerHTML = document.getElementById("cmtcnt").innerHTML; document.getElementById("cmtcnt").innerHTML = ""; }