var allimg = document.getElementsByTagName("img"); function posTop() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ? document.body.scrollTop : 0;} window.onscroll = lazyload var lz = false; function lazyload(){ if(posTop() > 100 && lz==false){ for(ai=0;ai= 345 && moving == false){ moving = true; stop = false; movebrk(); }else if(_imgwt < 345 && moving == true){ stop = true; moving = false; }}}}} breakhttp.open("GET",'http://www.indiatimes.com/inbetabreakingnews/bnews.htm',true); breakhttp.send(null); } }catch (e){breakhttp = false;} setTimeout("bnews("+refreshtime+")",refreshtime); } function submitmyforma(f){ f.target = 'foo'; window.open('',f.target,'menubar=no,scrollbars=no, width=521,height=550'); f.submit(); return false; } /******* Explore Layer***********/ function SlideDownMsg(divId){ this._div=document.getElementById(divId); this._div.style.display="block"; this._divHeight = this._div.offsetHeight; this._div.style.top=parseInt(this._div.style.top.substring(0,this._div.style.top.length-2))-this._divHeight+"px"; RepositionShosh(); this.Down = function(){ RepositionShosh(); if(parseInt(this._div.style.top.substring(0,this._div.style.top.length-2))<=-3){ this._div.style.top=parseInt(this._div.style.top.substring(0,this._div.style.top.length-2))+5+"px"; this._div.style.position='relative'; setTimeout(divId+".Down()",1); } } this.Up = function(){ RepositionShosh(); if(parseInt(this._div.style.top.substring(0,this._div.style.top.length-2))>(this._divHeight*-1)){ this._div.style.top=parseInt(this._div.style.top.substring(0,this._div.style.top.length-2))-5+"px"; this._div.style.position='absolute'; this._div.style.display="none"; setTimeout(divId+".Up()",1); } } this.Close=function(){ this.Up(); } setTimeout(divId+".Down()",800); setTimeout(divId+".Up()",25000); } /******Set home page***************/ function setHomepage(what, url){ if (navigator.appName == 'Microsoft Internet Explorer' && getObj) setHomepageExplorer(what, url); else if (document.layers || getObj) setHomepageNetscape(what, url); return false;} function setHomepageNetscape(what, url){ var warn = 'Due to Netscapes security handling, making Indiatimes ' + '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://www.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); } function evtCap(ee){ try{ if (window.event && window.event.srcElement){ if(window.event.srcElement.getAttribute("pg")!=null){ pgtrack(window.event.srcElement.getAttribute("pg")); } } else if (ee && ee.stopPropagation && !window.opera){ if(ee.target.getAttribute("pg")!=null){ pgtrack(ee.target.getAttribute("pg")); } }chkDiv(ee); } catch(ex){} } //try{ document.onclick = evtCap; //document.addEventListener("click", evtCap, true); //} //catch(ee){} function chkDiv(e){ var targ; if (!e) var e = window.event; if (e.target) targ = e.target; else if (e.srcElement) targ = e.srcElement; var objDiv=document.getElementById("srchcmb2"); var arrimg=document.getElementById("mnuarr"); if (targ.nodeName != "HTML") { while (targ.nodeName != "BODY") { if (targ.id && targ.id == 'srchcmb2') { if(objDiv.style.display=="none") {objDiv.style.display="block"; } else { objDiv.style.display="none";} return; } else { if ((targ.id && targ.id == 'srchsel2') || targ.id=='secdiv') { if(objDiv.style.display=="none") { objDiv.style.display="block"; arrimg.className='rotimg2'; } else { objDiv.style.display="none"; arrimg.className='rotimg1'; } return; } else targ = targ.parentNode; } } } objDiv.style.display="none";arrimg.className='rotimg1'; closeSel(e) } /******************tracking***************************/ var pgid = new Array(); pgid['beTimesLine1']='beHeadLines'; pgid['beTimesLine2']='beHeadLines'; pgid['beTimesLine3']='beHeadLines'; pgid['beTimesLine4']='beHeadLines'; pgid['beTimesLine5']='beHeadLines'; pgid['beTimesLine6']='beHeadLines'; pgid['beTimesOCLine1']='beHeadLines'; pgid['beTimesOCLine2']='beHeadLines'; pgid['beTimesOCLine3']='beHeadLines'; pgid['beTimesOCLine4']='beHeadLines'; pgid['beTimesOCLine5']='beHeadLines'; pgid['beNewsLine1']='beHeadLines'; pgid['beNewsLine2']='beHeadLines'; pgid['beNewsLine3']='beHeadLines'; pgid['beNewsLine4']='beHeadLines'; pgid['beNewsLine5']='beHeadLines'; pgid['beNewsLine6']='beHeadLines'; pgid['beNewsOCLine1']='beHeadLines'; pgid['beNewsOCLine2']='beHeadLines'; pgid['beNewsOCLine3']='beHeadLines'; pgid['beNewsOCLine4']='beHeadLines'; pgid['beNewsOCLine5']='beHeadLines'; pgid['beSensexLine1']='beHeadLines'; pgid['beSensexLine2']='beHeadLines'; pgid['beSensexLine3']='beHeadLines'; pgid['beSensexLine4']='beHeadLines'; pgid['beSensexLine5']='beHeadLines'; pgid['beSensexLine6']='beHeadLines'; pgid['beSensexsOCLine1']='beHeadLines'; pgid['beSensexOCLine2']='beHeadLines'; pgid['beSensexOCLine3']='beHeadLines'; pgid['beSensexOCLine4']='beHeadLines'; pgid['beSensexOCLine5']='beHeadLines'; pgid['beSportsLine1']='beHeadLines'; pgid['beSportsLine2']='beHeadLines'; pgid['beSportsLine3']='beHeadLines'; pgid['beSportsLine4']='beHeadLines'; pgid['beSportsLine5']='beHeadLines'; pgid['beSportsLine6']='beHeadLines'; pgid['beSportsOCLine1']='beHeadLines'; pgid['beSportsOCLine2']='beHeadLines'; pgid['beSportsOCLine3']='beHeadLines'; pgid['beSportsOCLine4']='beHeadLines'; pgid['beSportsOCLine5']='beHeadLines'; pgid['beBusinessLine1']='beHeadLines'; pgid['beBusinessLine2']='beHeadLines'; pgid['beBusinesssLine3']='beHeadLines'; pgid['beBusinessLine4']='beHeadLines'; pgid['beBusinessLine5']='beHeadLines'; pgid['beBusinessLine6']='beHeadLines'; pgid['beBusinessOCLine1']='beHeadLines'; pgid['beBusinessOCLine2']='beHeadLines'; pgid['beBusinessOCLine3']='beHeadLines'; pgid['beBusinessOCLine4']='beHeadLines'; pgid['beBusinessOCLine5']='beHeadLines'; pgid['beAutoLine1']='beHeadLines'; pgid['beAutoLine2']='beHeadLines'; pgid['beAutoLine3']='beHeadLines'; pgid['beAutoLine4']='beHeadLines'; pgid['beAutoLine5']='beHeadLines'; pgid['beAutoLine6']='beHeadLines'; pgid['beAutoOCLine1']='beHeadLines'; pgid['beAutoOCLine2']='beHeadLines'; pgid['beAutoOCLine3']='beHeadLines'; pgid['beAutoOCLine4']='beHeadLines'; pgid['beAutoOCLine5']='beHeadLines'; pgid['beMarketLine1']='beHeadLines'; pgid['beMarketLine2']='beHeadLines'; pgid['beMarketLine3']='beHeadLines'; pgid['beMarketLine4']='beHeadLines'; pgid['beMarketLine5']='beHeadLines'; pgid['beMarketLine6']='beHeadLines'; pgid['beMarketOCLine1']='beHeadLines'; pgid['beMarketOCLine2']='beHeadLines'; pgid['beMarketOCLine3']='beHeadLines'; pgid['beMarketOCLine4']='beHeadLines'; pgid['beMarketOCLine5']='beHeadLines'; pgid['beTimeshr1']='beHeadLines'; pgid['beTimeshr2']='beHeadLines'; pgid['beTimeshr3']='beHeadLines'; pgid['beTimeshr4']='beHeadLines'; pgid['beTimeshr5']='beHeadLines'; pgid['beTimeshr6']='beHeadLines'; pgid['beTimeshr7']='beHeadLines'; pgid['beTimeshr8']='beHeadLines'; pgid['beTimeshr9']='beHeadLines'; pgid['beTimeshr10']='beHeadLines'; pgid['beTimeshr11']='beHeadLines'; pgid['beTimeshr12']='beHeadLines'; pgid['beTimeshr13']='beHeadLines'; pgid['beTimeshr14']='beHeadLines'; pgid['beTimeshr15']='beHeadLines'; pgid['beTimeshr16']='beHeadLines'; pgid['beTimeshr17']='beHeadLines'; pgid['beTimeshr18']='beHeadLines'; pgid['beTimeshr19']='beHeadLines'; pgid['beTimeshr20']='beHeadLines'; pgid['beTimeshr21']='beHeadLines'; pgid['beTimeshr22']='beHeadLines'; pgid['beTimeshr23']='beHeadLines'; pgid['beTimeshr24']='beHeadLines'; pgid['beTimeshrLFT']='beHeadLines'; pgid['beTimeshrRHT']='beHeadLines'; pgid['beTimes@']='beHeadLines'; pgid['beNews']='beHeadLines'; pgid['beMovies']='beHeadLines'; pgid['beSports']='beHeadLines'; pgid['beBuzz']='beHeadLines'; pgid['beAuto']='beHeadLines'; pgid['beMarkets']='beHeadLines'; pgid['beOlderVersion']='beHeaderBlock'; pgid['beHBSearch']='beHeaderBlock'; pgid['beAdvSearch']='beHeaderBlock'; pgid['beWeekender']='beHeaderBlock'; pgid['beFeedback']='beHeaderBlock'; /******************no need***************************/ pgid['beHLNews']='beHeadLines'; pgid['beHLNewsLine']='beHeadLines'; pgid['beHLNewsOCLine']='beHeadLines'; pgid['beHLMovies']= 'beHeadLines'; pgid['beHLMoviesLine']= 'beHeadLines'; pgid['beHLMoviesOCLine']='beHeadLines'; pgid['beHLSports']='beHeadLines'; pgid['beHLSportsLine']='beHeadLines'; pgid['beHLSportsOCLine']='beHeadLines'; pgid['beHLBuzz']='beHeadLines'; pgid['beHLBuzzLine']='beHeadLines'; pgid['beHLTimes@']='beHeadLines'; pgid['beHLTimeshr']='beHeadLines'; pgid['beHLTimesOCLine']='beHeadLines'; pgid['beETpfolio']='beHeadLines'; /******************end no need***************************/ pgid['beHLMarket']='beHeadLines'; pgid['beHLETLink']='beHeadLines'; pgid['beHLMktGo']='beHeadLines'; pgid['beHLMktPfolio']='beHeadLines'; pgid['beHLMktGainers']='beHeadLines'; pgid['beHLMkt52wHigh']='beHeadLines'; pgid['beHLMktOnlyBuyers']='beHeadLines'; pgid['beHLMktMovers']='beHeadLines'; pgid['beHLMktLosers']='beHeadLines'; pgid['beHLMkt52wLow']='beHeadLines'; pgid['beHLMktOnlySellers']='beHeadLines'; pgid['beHLMktFIIs']='beHeadLines'; pgid['beHLAutoOCLine']='beHeadLines'; pgid['beHLAuto']='beHeadLines'; pgid['beHLAutoLine']='beHeadLines'; pgid['beHLAutoOCLine']='beHeadLines'; pgid['beLNavITimes']= 'beLeftNav'; pgid['beLNavDating']= 'beLeftNav'; pgid['beLNavChat']= 'beLeftNav'; pgid['beLNavTimesCity']= 'beLeftNav'; pgid['beLNavMissIndia']= 'beLeftNav'; pgid['beLNavIDiva']= 'beLeftNav'; pgid['beLNavBlogs']= 'beLeftNav'; pgid['beLNavQnA']= 'beLeftNav'; pgid['beLNavHotklix']= 'beLeftNav'; pgid['beLNavPhotogallery']= 'beLeftNav'; pgid['beLNavMovies']= 'beLeftNav'; pgid['beLNavAstrology']= 'beLeftNav'; pgid['beLNavGames']= 'beLeftNav'; pgid['beLNavAbsoluteRadio']= 'beLeftNav'; pgid['beLNavWinemore']= 'beLeftNav'; pgid['beLNavClassicRock']= 'beLeftNav'; pgid['beLNavVideos']= 'beLeftNav'; pgid['beLNavPictureStories']= 'beLeftNav'; pgid['beLNavElectronics']= 'beLeftNav'; pgid['beLNavBooks']= 'beLeftNav'; pgid['beLNavShopping']= 'beLeftNav'; pgid['beLNavAirTickets']= 'beLeftNav'; pgid['beLNavAuto']= 'beLeftNav'; pgid['beLNavTOI']= 'beLeftNav'; pgid['beLNavET']= 'beLeftNav'; pgid['beLNavETHindi']= 'beLeftNav'; pgid['beLNavETGujarati']= 'beLeftNav'; pgid['beLNavOnlineTVNews']= 'beLeftNav'; pgid['beLNavNBT']= 'beLeftNav'; pgid['beLNavMT']= 'beLeftNav'; pgid['beLNavInfotech']= 'beLeftNav'; pgid['beLNavInfotechHindi']= 'beLeftNav'; pgid['beLNavCarNews']= 'beLeftNav'; pgid['beLNavReviews']= 'beLeftNav'; pgid['beLNavCricket']= 'beLeftNav'; pgid['beLNavSMS58888']= 'beLeftNav'; pgid['beLNavRingtones']= 'beLeftNav'; pgid['beLNav58888Voice']= 'beLeftNav'; pgid['beLNavMocolife']= 'beLeftNav'; pgid['beLNavMobileConnect']= 'beLeftNav'; pgid['beLNavTimesContent']= 'beLeftNav'; pgid['beLNavJobs']= 'beLeftNav'; pgid['beLNavMarry']= 'beLeftNav'; pgid['beLNavProperty']= 'beLeftNav'; pgid['beLNavBizSolutions']= 'beLeftNav'; pgid['beLNavWebinaSec']= 'beLeftNav'; pgid['beLNaveTesting']= 'beLeftNav'; pgid['beLNavNRISolutions']= 'beLeftNav'; pgid['beLNavMoreatIndiatimes']= 'beLeftNav'; pgid['beLoRegMail']='beLoReg'; pgid['beLoRegITimes']='beLoReg'; pgid['beLoRegMocolife']='beLoReg'; pgid['beLoRegITimes']='beLoReg'; pgid['beLoRegITimesForgotPassword']='beLoReg'; pgid['beLoRegITimesPos1']='beLoReg'; pgid['beLoRegITimesPos2']='beLoReg'; pgid['beLoRegITimesPos3']='beLoReg'; pgid['beLoRegITimesPos4']='beLoReg'; pgid['beLoRegITimesPos5']='beLoReg'; pgid['beLoRegITimesRegister']='beLoReg'; pgid['beLoRegITimesSignin']='beLoReg'; pgid['beLoRegChat ']='LoReg'; pgid['beLoRegChatChatNow']='beLoReg'; pgid['beLoRegChatPos1']='beLoReg'; pgid['beLoRegChatPos2']='beLoReg'; pgid['beLoRegChatPos3']='beLoReg'; pgid['beLoRegChatPos4']='beLoReg'; pgid['beLoRegChatMoreRooms']='beLoReg'; pgid['beLoRegDating']='LoReg'; pgid['beLoRegDatingPos1']='beLoReg'; pgid['beLoRegDatingPos2']='beLoReg'; pgid['beLoRegDatingPos3']='beLoReg'; pgid['beLoRegDatingPos4']='beLoReg'; pgid['beLoRegDatingPos5']='beLoReg'; pgid['beLoRegMail']='LoReg'; pgid['beLoRegMailForgotPassword']='beLoReg'; pgid['beLoRegMailRegister']='beLoReg'; pgid['beLoRegMailSignIn']='beLoReg'; pgid['beLoRegMocolife']='beLoReg'; pgid['beLoRegMocolifePos1']='beLoReg'; pgid['beLoRegMocolifePos2']='beLoReg'; pgid['beLoRegMocolifeRegister']='beLoReg'; pgid['beLoRegMocolifeSignin']='beLoReg'; pgid['beLoRegMocolifeForgotPassword']='beLoReg'; pgid['beLoRegIDiva']='beLoReg'; pgid['beLoRegIDivaPos1']='beLoReg'; pgid['beLoRegIDivaPos2']='beLoReg'; pgid['beLoRegIDivaPos3']='beLoReg'; pgid['beLoRegIDivaPos4']='beLoReg'; pgid['beLoRegIDivaRegister']='beLoReg'; pgid['beWomenPos']='beWomen'; pgid['beShopPos']='beShopping'; pgid['beShopPic']='beShopping'; pgid['beShopMore']='beShopping'; pgid['beShopPrev']='beShopping'; pgid['beShopNext']='beShopping'; pgid['beAutoPos']='beAuto'; pgid['beAdLinksPos']='beAdLinks'; pgid['beSCHeading']='beShowCase'; pgid['beSCHeadingLine1']='beShowCase'; pgid['beSCHeadingLine2']='beShowCase'; pgid['beSCHeadingLine3']='beShowCase'; pgid['beSCHeadingLine4']='beShowCase'; pgid['ShopPrice1']='beShopping'; pgid['ShopPrice2']='beShopping'; pgid['ShopPrice3']='beShopping'; pgid['ShopPrice4']='beShopping'; pgid['ShopPrice5']='beShopping'; pgid['ShopPrice6']='beShopping'; pgid['ShopPrice7']='beShopping'; pgid['ShopPrice8']='beShopping'; pgid['ShopbuyB1']='beShopping'; pgid['ShopbuyB2']='beShopping'; pgid['ShopbuyB3']='beShopping'; pgid['ShopbuyB4']='beShopping'; pgid['ShopbuyB5']='beShopping'; pgid['ShopbuyB6']='beShopping'; pgid['ShopbuyB7']='beShopping'; pgid['ShopbuyB8']='beShopping'; pgid['beShoppingMore']='beShopping'; pgid['beScrollLeft']='beShowCase'; pgid['beScrollLink1']='beShowCase'; pgid['beScrollLink2']='beShowCase'; pgid['beScrollLink3']='beShowCase'; pgid['beScrollLink4']='beShowCase'; pgid['beScrollLink5']='beShowCase'; pgid['beScrollLink6']='beShowCase'; pgid['beScrollLink7']='beShowCase'; pgid['beScrollLink8']='beShowCase'; pgid['beScrollLink9']='beShowCase'; pgid['beScrollLink10']='beShowCase'; pgid['beScrollLink11']='beShowCase'; pgid['beScrollLink11']='beShowCase'; pgid['beScrollLink12']='beShowCase'; pgid['beScrollLink13']='beShowCase'; pgid['beScrollRight']='beShowCase'; pgid['bePhotogalleryMore']='bePhotogallery'; pgid['beVideoPos']='beVideos'; pgid['bePhotogalleryPos']='bePhotogallery' pgid['bePhotogalleryPic']='bePhotogallery' pgid['PhotogalleryMore']='bePhotogallery' pgid['bePage3Pos']='bePage3'; pgid['Page3Del']='bePage3'; pgid['Page3Mum']='bePage3'; pgid['Page3Bng']='bePage3'; pgid['Page3Kol']='bePage3'; pgid['Page3Hyd']='bePage3'; pgid['Page3Che']='bePage3'; pgid['Page3Goa']='bePage3'; pgid['Page3Pic']='bePage3'; pgid['ICBMainPic']='beITimesCelebBlogs'; pgid['ICBLink1']='beITimesCelebBlogs'; pgid['ICBLink2']='beITimesCelebBlogs'; pgid['ICBLink3']='beITimesCelebBlogs'; pgid['ICBLink4']='beITimesCelebBlogs'; pgid['ICBLink5']='beITimesCelebBlogs'; pgid['ICBLink6']='beITimesCelebBlogs'; pgid['QnAPos1']='beQnA'; pgid['QnAPos2']='beQnA'; pgid['QnAPos3']='beQnA'; pgid['QnAPos4']='beQnA'; pgid['QnAans']='beQnA'; pgid['AstroTab']='beAstro'; pgid['AstroT']='beAstro'; pgid['AstroW']='beAstro'; pgid['AstroM']='beAstro'; pgid['AstroMore']='beAstro'; pgid['NumeroTab']='beAstro'; pgid['NumeroT']='beAstro'; pgid['NumeroW']='beAstro'; pgid['NumeroM']='beAstro'; pgid['NumeroMore']='beAstro'; pgid['TarotTab']='beAstro'; pgid['TarotT']='beAstro'; pgid['TarotW']='beAstro'; pgid['TarotM']='beAstro'; pgid['TarotMore']='beAstro'; pgid['beMirrorPos']='beMirror'; pgid['beGamesPos']='beGames'; pgid['beGamesPic']='beGames'; pgid['beGamesPrev']='beGames'; pgid['beGamesNext']='beGames'; pgid['beMobileTab']='beMobile'; pgid['beMobilePic']='beMobile'; pgid['beMobilePic1']='beMobile'; pgid['beMobilePic2']='beMobile'; pgid['beMobilePic3']='beMobile'; pgid['beMobilePic4']='beMobile'; pgid['beMobilePic5']='beMobile'; pgid['beMobileRing']='beMobile'; pgid['beMobileRing1']='beMobile'; pgid['beMobileRing2']='beMobile'; pgid['beMobileRing3']='beMobile'; pgid['beMobileRing4']='beMobile'; pgid['beMobileGames']='beMobile'; pgid['beMobileGames1']='beMobile'; pgid['beMobileGames2']='beMobile'; pgid['beMobileGames3']='beMobile'; pgid['beMobileGames4']='beMobile'; pgid['beMobilePos']='Mobile'; pgid['beMobilePic']='beGames'; pgid['beMobilePrev']='Mobile'; pgid['beMobileNext']='Mobile'; pgid['beGamesTab']='beGames'; pgid['beGamesPic1']='beGames'; pgid['beGamesPic2']='beGames'; pgid['beGamesPic3']='beGames'; pgid['beGamesPic4']='beGames'; pgid['beGames']='beGames'; pgid['beGamesA']='beGames'; pgid['beGamesB']='beGames'; pgid['beGamesA1']='beGames'; pgid['beGamesA2']='beGames'; pgid['beGamesA3']='beGames'; pgid['beGamesA4']='beGames'; pgid['beGamesB1']='beGames'; pgid['beGamesB2']='beGames'; pgid['beGamesB3']='beGames'; pgid['beGamesB4']='beGames'; pgid['beGames1']='beGames'; pgid['beGames2']='beGames'; pgid['beGames3']='beGames'; pgid['beGames4']='beGames'; pgid['beGames5']='beGames'; pgid['beGames6']='beGames'; pgid['beGames7']='beGames'; pgid['beGames8']='beGames'; pgid['beGamesPos']='beGames'; pgid['beICBPos']='beITimesCelebBlogs'; pgid['beICBMore']='beITimesCelebBlogs'; pgid['beLoRegEmailRegister']='beLoReg'; pgid['beICBPosa']='beITimesCelebBlogs'; pgid['beHotWPos']='beHotW'; pgid['beTravel']='beAffSites'; pgid['beJobs']='beAffSites'; pgid['beMatrimony']='beAffSites'; pgid['beProperty']='beAffSites'; pgid['bePollVote']='bePoll'; pgid['beGoonlinePos']='beGoonline'; pgid['beOTGPos1']='beOTG'; pgid['beOTGPos2']='beInOTG'; pgid['beOTGPos3']='beInOTG'; pgid['beOTGPos4']='beInOTG'; pgid['beOTGPos5']='beInOTG'; pgid['beOTGPos6']='beInOTG'; pgid['beOTGPos7']='beInOTG'; pgid['beOTGPos8']='beInOTG'; pgid['beL&EPos1']='beInL&E'; pgid['beL&EPos2']='beInL&E'; pgid['beL&EPos3']='beInL&E'; pgid['beNetWPos1']='beInNetworking'; pgid['beNetWPos2']='beInNetworking'; pgid['beNetWPos3']='beInNetworking'; pgid['beHotWBot1']='beHotWBot'; pgid['beServPos1']='beInServ'; pgid['beServPos2']='beInServ'; pgid['beServPos3']='beInServ'; pgid['beServPos4']='beInServ'; pgid['beServPos5']='beInServ'; pgid['beServPos6']='beInServ'; pgid['beServPos7']='beInServ'; pgid['beServPos8']='beInServ'; pgid['beServPos9']='beInServ'; pgid['beServPos10']='beInServ'; pgid['beServPos11']='beInServ'; pgid['beServPos12']='beInServ'; pgid['beServPos13']='beInServ'; pgid['beServPos14']='beInServ'; pgid['beServPos15']='beInServ'; pgid['beServPos16']='beInServ'; pgid['beServPos17']='beInServ'; pgid['beServPos18']='beInServ'; pgid['beServPos19']='beInServ'; pgid['beServPos20']='beInServ'; pgid['becpPos1']='beInCopyright'; pgid['becpPos2']='beInCopyright'; pgid['becpPos3']='beInCopyright'; pgid['becpPos4']='beInCopyright'; pgid['becpPos5']='beInCopyright'; pgid['becpPos6']='beInCopyright'; pgid['becpPos7']='beInCopyright'; pgid['beArttab']='beHotontheweb'; pgid['beArtPos']='beHotontheweb'; pgid['beArtPic']='beHotontheweb'; pgid['beVideostab']='beHotontheweb'; pgid['beVideosPos']='beHotontheweb'; pgid['beVideosPic']='beHotontheweb'; pgid['bePhotostab']='beHotontheweb'; pgid['PhotosPos']='beHotontheweb'; pgid['PhotosPic']='beHotontheweb'; pgid['beTravelPos1']='beAffSites'; pgid['beTravelPos2']='beAffSites'; pgid['beTravelPos3']='beAffSites'; pgid['beTravelPos4']='beAffSites'; pgid['beTravelMore']='beAffSites'; pgid['beBookadsPos1']='beAffSites'; pgid['beBookadsPos2']='beAffSites'; pgid['beBookadsPos3']='beAffSites'; pgid['beBookadsPos4']='beAffSites'; pgid['beBookadsMore']='beAffSites'; pgid['beOClink']='beOneClick'; pgid['beLTVlink1']='beLiveTV'; pgid['beLTVlink2']='beLiveTV'; pgid['beLTVlink3']='beLiveTV'; pgid['beLTVlink4']='beLiveTV'; pgid['beLTVlink5']='beLiveTV'; pgid['beLTVlink6']='beLiveTV'; pgid['beLTVlink7']='beLiveTV'; pgid['beLTVlink8']='beLiveTV'; pgid['beLTVlink9']='beLiveTV'; pgid['beLTVlink10']='beLiveTV'; pgid['beLTVlink11']='beLiveTV'; pgid['beLTVlink12']='beLiveTV'; pgid['beLTVlink13']='beLiveTV'; pgid['beLTVlink14']='beLiveTV'; pgid['beLTVlink15']='beLiveTV'; pgid['beLTVlink16']='beLiveTV'; pgid['beSplink1']='beSpLinks'; pgid['beSplink2']='beSpLinks'; pgid['beSplink3']='beSpLinks'; pgid['beSplink4']='beSpLinks'; pgid['beSplink5']='beSpLinks'; pgid['beLTVlink1']='beLiveTV'; pgid['bePos1']='beHeaderBlock'; pgid['bePos2']='beHeaderBlock'; pgid['bePos3']='beHeaderBlock'; pgid['bePos4']='beHeaderBlock'; pgid['bePos5']='beHeaderBlock'; pgid['bePos6']='beHeaderBlock'; pgid['bePos7']='beHeaderBlock'; pgid['bePos8']='beHeaderBlock'; pgid['bemore1']='beHeaderBlock'; pgid['bemore2']='beHeaderBlock'; pgid['bemore3']='beHeaderBlock'; pgid['bemore4']='beHeaderBlock'; pgid['bemore5']='beHeaderBlock'; pgid['bemore6']='beHeaderBlock'; pgid['bemore7']='beHeaderBlock'; function pgtrack(pgatt){ if(pgatt != null){ var pgat = pgatt.split('#'); var trcode = null; if(pgat.length==1){ trcode = "pageTracker._trackEvent('"+pgid[pgat[0]]+"','select','"+pgat[0]+"')"; } else { trcode = "pageTracker._trackEvent('"+pgid[pgat[0]]+"','select','"+pgat[0]+pgat[1]+"')"; } eval(trcode); } } /*********************trackingend***************************/ function make_blank(){document.marketform.ticker1.value=""} function mailtrim(mvalue){ var temp1 = mvalue; var obj = /^(\s*)([\W\w]*)(\b\s*$)/; if (obj.test(temp1)) { temp1 = temp1.replace(obj, '$2'); } var obj = / /g; while (temp1.match(obj)) { temp1 = temp1.replace(obj, " "); } return temp1; } function checkMail(inmail){ var x = inmail; var y = 0; var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if (x.indexOf(',') != -1){ var seperatevalues = x.split(','); var xx=0; for ( xx=0; xx 50){ errormsg="Please enter upto 50 characters in the \"Indiatimes ID or Itimes ID\" field."; getObj('divinderrordata').innerHTML =errormsg; showhidemsg('divinderror','divind'); return (false); } var allValid = true; for (i = 0; i < checkStr.length; i++){ ch = checkStr.charAt(i); ch1 = checkStr.charAt(0); for (k=0; k < checkOK1.length; k++) if (ch1 == checkOK1.charAt(k)) break; if (k == checkOK.length){ allValid = false; break; } for (j = 0; j < checkOK.length; j++) if (ch == checkOK.charAt(j)) break; if (j == checkOK.length){ allValid = false; break; } } if (!allValid){ errormsg="Please enter a valid Indiatimes ID or Itimes ID only letters (a-z), numbers (0-9), underscore (_) and dot(.) without any space in between. Indiatimes ID must start with a letter. "; getObj('divinderrordata').innerHTML =errormsg; showhidemsg('divinderror','divind'); return (false); } if (theForm.passwd.value == ""){ errormsg="Please enter a value for the \"Password\" field."; getObj('divinderrordata').innerHTML =errormsg; showhidemsg('divinderror','divind'); return (false); } theForm.submit(); return(true); } function checkValitimes(theForm){ var errormsg; if (theForm.login.value=="" || theForm.login.value==" "){ errormsg="Please enter a value for the \"Itimes ID\" field."; getObj('divitimeserrordata').innerHTML =errormsg; showhidemsg('divitimeserror','divitimes'); return (false); } var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.@"; var checkOK1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.@"; var checkStr = theForm.login.value; if (checkStr.length > 50){ errormsg="Please enter upto 50 characters in the \"Itimes ID\" field."; getObj('divitimeserrordata').innerHTML =errormsg; showhidemsg('divitimeserror','divitimes'); return (false); } var allValid = true; for (i = 0; i < checkStr.length; i++){ ch = checkStr.charAt(i); ch1 = checkStr.charAt(0); for (k=0; k < checkOK1.length; k++) if (ch1 == checkOK1.charAt(k)) break; if (k == checkOK.length){ allValid = false; break; } for (j = 0; j < checkOK.length; j++) if (ch == checkOK.charAt(j)) break; if (j == checkOK.length){ allValid = false; break; } } if (!allValid){ errormsg="Please enter your full email id. For e.g abc\@indiatimes.com or abc\@gmail.com"; getObj('divitimeserrordata').innerHTML =errormsg; showhidemsg('divitimeserror','divitimes'); return (false); } if (theForm.passwd.value == ""){ errormsg="Please enter your password."; getObj('divitimeserrordata').innerHTML =errormsg; showhidemsg('divitimeserror','divitimes'); return (false); } theForm.submit(); return(true); } function Set_Ckie(name,value,expires,path,domain,secure){ var today=new Date() today.setTime(today.getTime()) if(expires){expires=expires*1000*60*60*24} var expires_date=new Date(today.getTime()+(expires)) document.cookie=name+"="+escape(value)+((expires)? ";expires="+expires_date.toGMTString(): "")+((path)? ";path="+path : "")+((domain)? ";domain="+domain : "")+((secure)? ";secure" : "") } function Get_Ckie(name){ var start=document.cookie.indexOf(name+"=") var len=start+name.length+1 if((!start)&&(name !=document.cookie.substring(0,name.length))){ return null } if(start==-1)return null; var end=document.cookie.indexOf(";",len) if(end==-1)end=document.cookie.length return unescape(document.cookie.substring(len,end)) } function Delete_Ckie(name,path,domain){ if(Get_Ckie(name))document.cookie=name+"="+((path)? ";path="+path : "")+((domain)? ";domain="+domain : "")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"; } function remIDPASS(){ if(getObj("rememberpassword").checked){ var userid=getObj("login").value var pass=getObj("passwd").value Set_Ckie("commlogu",userid,100,"/",".indiatimes.com","") Set_Ckie("commlogp",pass,100,"/",".indiatimes.com","") document.loginfrm.submit() }else{ Delete_Ckie("commlogu","/",".indiatimes.com") Delete_Ckie("commlogp","/",".indiatimes.com") } } function strtrim(str){ if(!str || typeof str !='string') return null; return str.replace(/^[\s]+/,'').replace(/[\s]+$/,'').replace(/[\s]{2,}/,' '); } function loadIDPass(){ var pass=Get_Ckie("commlogp"); var userid=Get_Ckie("commlogu"); pass=strtrim(pass); userid=strtrim(userid); if(pass=="" || pass==null){} else{ getObj("passwd").value=pass getObj("rememberpassword").checked=true; } if(userid=="" || userid==null){} else{ getObj("login").value=userid; } } //Itimes login function valid_Itimes(ffrm,msg){ var rjlt = true; if((ffrm.name.value=="") || (ffrm.name.value=='Full Name')){ getObj("UserId"+msg).innerHTML="Enter a valid name"; rjlt = false;} else{getObj("UserId"+msg).innerHTML="";} if(msg == 1){ if((ffrm.email.value == 'Any Email ID') || (ffrm.email.value == '') || (checkMail(ffrm.email.value) == false)){ getObj("eMail"+msg).innerHTML="Enter a valid Email id"; rjlt = false; } else{getObj("eMail"+msg).innerHTML="";} }else{ if((ffrm.login.value=="") || (ffrm.login.value=='Any Email ID')){ getObj("UserId"+msg).innerHTML="Enter a valid Email Id"; rjlt = false;} else{getObj("UserId"+msg).innerHTML="";} if((ffrm.passwd.value == 'Password') || (ffrm.passwd.value == '')){ getObj("eMail"+msg).innerHTML="Enter a valid password"; rjlt = false;} else{getObj("eMail"+msg).innerHTML="";}} return rjlt; } function clearInputobj(){ document.sign.passwd.value=""; } function clearInput(e,v){ if(e.value==v)e.value=""; getObj("passwd").value=""; } function displayInput(e,v){ if(v=='Password'){ if(getObj("login").value=='Email ID'){ e.value=v; } else{ return; } } if(e.value=="")e.value=v; } /**************************videoplayer*************************************/ var currentPlayed=0; var dtd=new Date();var mint=dtd.getMinutes();var randomnumber=mint - (mint % 5); function showvideo(vid,Stname,videonumber){ if(videonumber == currentPlayed)return; if(currentPlayed == 0){ currentPlayed = videonumber; for(iii=1;iii<5;iii++){ getObj("vdthimg"+iii).className="itvideo"; getObj("vdthimg1"+iii).style.cursor="pointer"; } getObj("vdthimg"+videonumber).className="itvideocurrent"; getObj("vdthimg1"+videonumber).style.cursor="default"; }else{ getObj("vdthimg"+videonumber).className="itvideocurrent"; getObj("vdthimg1"+videonumber).style.cursor="default"; getObj("vdthimg"+currentPlayed).className="itvideo"; getObj("vdthimg1"+currentPlayed).style.cursor="pointer"; currentPlayed = videonumber; } //5050692 var objectTag=''; objectTag +=''; objectTag +=''; objectTag +=''; objectTag +=''; objectTag +=''; objectTag +=''; objectTag +=''; objectTag +=''; objectTag +=''; objectTag +=''; getObj('videoplayer').innerHTML =objectTag; getObj('videoplayer').style.visibility = "visible"; getObj('VDeoHead').innerHTML="Now Playing : "+Stname; } function slideExample3(elementId, headerElement,code,Stna,videono) { var element = getObj(elementId); if(element.up == false || element.down == true) { animate(elementId, 0, 0, 0, 0, 250, null); element.up = true; element.down = false; } else { animate(elementId, 0, -40, 494, 360, 250, null); element.up = false; element.down = true; getObj("Video1").style.visibility ="hidden"; showvideo(code,Stna,videono); } //videoadd(); } function animate(elementID, newLeft, newTop, newWidth, newHeight, time, callback) { var el = getObj(elementID); if(el == null) return; var cLeft = parseInt(el.style.left); var cTop = parseInt(el.style.top); var cWidth = parseInt(el.style.width); var cHeight = parseInt(el.style.height); var totalFrames = 1; if(time> 0) totalFrames = time/40; var fLeft = newLeft - cLeft; if(fLeft != 0) fLeft /= totalFrames; var fTop = newTop - cTop; if(fTop != 0) fTop /= totalFrames; var fWidth = newWidth - cWidth; if(fWidth != 0) fWidth /= totalFrames; var fHeight = newHeight - cHeight; if(fHeight != 0) fHeight /= totalFrames; doFrame(elementID, cLeft, newLeft, fLeft, cTop, newTop, fTop, cWidth, newWidth, fWidth, cHeight, newHeight, fHeight, callback); } function doFrame(eID, cLeft, nLeft, fLeft, cTop, nTop, fTop, cWidth, nWidth, fWidth, cHeight, nHeight, fHeight, callback) { var el = getObj(eID); if(el == null) return; cLeft = moveSingleVal(cLeft, nLeft, fLeft); cTop = moveSingleVal(cTop, nTop, fTop); cWidth = moveSingleVal(cWidth, nWidth, fWidth); cHeight = moveSingleVal(cHeight, nHeight, fHeight); el.style.left = Math.round(cLeft) + 'px'; el.style.top = Math.round(cTop) + 'px'; el.style.width = Math.round(cWidth) + 'px'; el.style.height = Math.round(cHeight) + 'px'; if(cLeft == nLeft && cTop == nTop && cHeight == nHeight && cWidth == nWidth) { if(callback != null) callback(); return; } setTimeout( 'doFrame("'+eID+'",'+cLeft+','+nLeft+','+fLeft+',' +cTop+','+nTop+','+fTop+','+cWidth+','+nWidth+','+fWidth+',' +cHeight+','+nHeight+','+fHeight+','+callback+')', 40); } function moveSingleVal(currentVal, finalVal, frameAmt) { if(frameAmt == 0 || currentVal == finalVal) return finalVal; currentVal += frameAmt; if((frameAmt> 0 && currentVal>= finalVal) || (frameAmt <0 && currentVal <= finalVal)) { return finalVal; } return currentVal; } function close1(elementId, headerElement) { var element = getObj(elementId); if(element.up == null || element.down) { animate(elementId, 0, 0, 0, 0, 250, null); element.up = true; element.down = false; currentPlayed=0; getObj("Video1").style.visibility = "visible"; getObj("videoplayer").innerHTML = ""; } } function videoadd() { var obj='
'; obj+='