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"));} }} catch(ex){}} try{ document.onclick = evtCap document.addEventListener("click", evtCap, true) }catch(ee){} /******************tracking***************************/ var pgid = new Array(); 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['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['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['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['beVideoPos']='beVideos'; pgid['bePhotogalleryPos']='bePhotogallery' pgid['bePhotogalleryPic']='bePhotogallery' pgid['PhotogalleryMore']='bePhotogallery' pgid['bePage3Pos']='bePage3'; pgid['beMirrorPos']='beMirror'; pgid['beGamesPos']='beGames'; pgid['beGamesPic']='beGames'; pgid['beGamesPrev']='beGames'; pgid['beGamesNext']='beGames'; pgid['beMobilePos']='Mobile'; pgid['beMobilePic']='beGames'; pgid['beMobilePrev']='Mobile'; pgid['beMobileNext']='Mobile'; pgid['beGamesPos']='beGames'; pgid['beICBPos']='beITimesCelebBlogs'; pgid['beICBMore']='beITimesCelebBlogs'; 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'; 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'; 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+='