document.writeln("");
document.writeln("Varthe.com: Loading News flash... ");
// Ticker startup
function startTicker()
{
// Define run time values
theCurrentStory = -1;
theCurrentLength = 0;
// Locate base objects
if (document.getElementById)
{
theAnchorObject = document.getElementById("tickerAnchor");
runTheTicker();
}
else
{
document.write("");
return true;
}
}
// Ticker main run loop
function runTheTicker()
{
var myTimeout;
// Go for the next story data block
if(theCurrentLength == 0)
{
theCurrentStory++;
theCurrentStory = theCurrentStory % theItemCount;
theStorySummary = theSummaries[theCurrentStory].replace(/"/g,'"');
theTargetLink = theSiteLinks[theCurrentStory];
theAnchorObject.href = theTargetLink;
//thePrefix = ""; //" + theLeadString + "
}
// Stuff the current ticker text into the anchor
theAnchorObject.innerHTML = theStorySummary.substring(0,theCurrentLength) + whatWidget();
// Modify the length for the substring and define the timer
if(theCurrentLength != theStorySummary.length)
{
theCurrentLength++;
myTimeout = theCharacterTimeout;
}
else
{
theCurrentLength = 0;
myTimeout = theStoryTimeout;
}
// Call up the next cycle of the ticker
setTimeout("runTheTicker()", myTimeout);
}
// Widget generator
function whatWidget()
{
if(theCurrentLength == theStorySummary.length)
{
return theWidgetNone;
}
if((theCurrentLength % 2) == 1)
{
return theWidgetOne;
}
else
{
return theWidgetTwo;
}
}
// Main starts here.
var theCharacterTimeout = 50;
var theStoryTimeout = 2000;
var theWidgetOne = '';
var theWidgetTwo = '-';
var theWidgetNone = '';
var theLeadString = 'Newsbar: ';
var theSummaries = new Array();
var theSiteLinks = new Array();
var theItemCount = 25;
theSiteLinks[0]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://hosted.ap.org/dynamic/stories/U/US_GULF_RIG_EXPLOSION?SITE=SCCOL|SECTION=HOME|TEMPLATE=DEFAULT|CTIME=2010-09-02-11-53-45");';
theSummaries[0]=' Gulf oil rig explodes off La. coast - AP';
theSiteLinks[1]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://hosted.ap.org/dynamic/stories/E/EARL?SITE=SCCOL|SECTION=HOME|TEMPLATE=DEFAULT|CTIME=2010-09-02-14-12-24");';
theSummaries[1]=' Earl threatens East Coast with weekend pounding - AP';
theSiteLinks[2]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://hosted.ap.org/dynamic/stories/U/US_ECONOMY?SITE=SCCOL|SECTION=HOME|TEMPLATE=DEFAULT|CTIME=2010-09-02-11-53-30");';
theSummaries[2]=' Data shows jobless claims drop, retail sales rise - AP';
theSiteLinks[3]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://hosted.ap.org/dynamic/stories/U/US_ARIZONA_SHERIFF_LAWSUIT?SITE=SCCOL|SECTION=HOME|TEMPLATE=DEFAULT|CTIME=2010-09-02-13-08-27");';
theSummaries[3]=' Feds sue Arizona sheriff in civil rights probe - AP';
theSiteLinks[4]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://hosted.ap.org/dynamic/stories/U/US_US_MIDEAST_TALKS?SITE=SCCOL|SECTION=HOME|TEMPLATE=DEFAULT|CTIME=2010-09-02-11-13-09");';
theSummaries[4]=' Clinton opens new round of Mideast peace talks - AP';
theSiteLinks[5]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://hosted.ap.org/dynamic/stories/A/AS_GATES_AFGHANISTAN?SITE=SCCOL|SECTION=HOME|TEMPLATE=DEFAULT|CTIME=2010-09-02-09-40-17");';
theSummaries[5]=' Gen. Petraeus calls relationship with Karzai sound - AP';
theSiteLinks[6]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.ddinews.gov.in/National/National - Headlines/Mamata announces month-long anti terror movement.htm");';
theSummaries[6]=' Mamata announces month-long 'anti-terror' movement - Doordarshan News';
theSiteLinks[7]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://sify.com/news/sc-rap-govt-to-allot-2-5-mt-foodgrains-for-bpl-families-news-economy-kjcukhbgiab.html");';
theSummaries[7]=' SC rap: Govt to release 2.5 million tonne foodgrains - Sify News';
theSiteLinks[8]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://sify.com/news/khushwant-singh-the-dirty-old-man-gets-candid-again-news-books-kjcnc1ehigf.html");';
theSummaries[8]=' Khushwant Singh: 'The dirty old man' gets candid - Sify News';
theSiteLinks[9]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.telegraphindia.com/1100902/jsp/frontpage/story_128866290.jsp");';
theSummaries[9]=' Tainted trio could be back for ODIs: Pak Sports Min - The Telegraph';
theSiteLinks[10]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.ddinews.gov.in/National/National - Headlines/Pawar apprises PM of sugar decontrol plan.htm");';
theSummaries[10]=' Pawar apprises PM of sugar decontrol plan - Doordarshan News';
theSiteLinks[11]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.asianage.com/india/100-indian-fishermen-released-pak-jail-008");';
theSummaries[11]=' 100 Indian fishermen released from Pak jail - Asian Age';
theSiteLinks[12]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://sify.com/news/major-train-mishap-averted-by-driver-s-alertness-news-national-kjcnOiaaadg.html");';
theSummaries[12]=' Major train mishap averted in Ghaziabad | - Sify News';
theSiteLinks[13]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://sify.com/news/bosses-who-sack-the-most-make-maximum-money-news-international-kjcm4dcdjbc.html");';
theSummaries[13]=' Bosses who sack the most make maximum money - Sify News';
theSiteLinks[14]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://sify.com/finance/samsung-to-challenge-ipad-with-own-tablet-news-news-kjcppSbbbbi.html");';
theSummaries[14]=' Samsung to challenge iPad with own tablet | - Sify News';
theSiteLinks[15]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.asianage.com/india/communal-clash-during-janmashtami-function-8-injured-004");';
theSummaries[15]=' Communal clash during Janmashtami function, 8 injured - Asian Age';
theSiteLinks[16]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.asianage.com/india/major-train-mishap-averted-drivers-alertness-998");';
theSummaries[16]=' Major train mishap averted by driver's alertness - Asian Age';
theSiteLinks[17]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.asianage.com/india/priest-quits-church-post-acting-film-994");';
theSummaries[17]=' Priest quits church post for acting in film - Asian Age';
theSiteLinks[18]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.ddinews.gov.in/National/National - Headlines/Mumbai Janamashtmi.htm");';
theSummaries[18]=' Mumbai celebrates 'dahi handi' with great fervour - Doordarshan News';
theSiteLinks[19]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://sify.com/news/tremor-of-4-4-on-richter-scale-hits-patan-in-gujarat-news-national-kjcmakafhbg.html");';
theSummaries[19]=' Earthquake in Gujarat - Sify News';
theSiteLinks[20]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.asianage.com/india/govindas-all-way-mumbai-celebrates-dahi-handi-951");';
theSummaries[20]=' 'Govindas' all the way as Mumbai celebrates 'dahi handi' - Asian Age';
theSiteLinks[21]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.asianage.com/india/mild-earthquake-hits-north-gujarat-district-970");';
theSummaries[21]=' Mild earthquake hits north Gujarat district - Asian Age';
theSiteLinks[22]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.deepikaglobal.com/ENG3_sub.asp?ccode=ENG3|newscode=46518");';
theSummaries[22]=' 9 labourers killed in road accident on Mumbai-Agra NH - Deepika';
theSiteLinks[23]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://search.japantimes.co.jp/cgi-bin/nn20100902a5.html");';
theSummaries[23]=' Summer officially hottest on record - The Japan Times';
theSiteLinks[24]='Javascript:NewsPopup("http://www.Varthe.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.telegraphindia.com/1100902/jsp/frontpage/story_12886693.jsp");';
theSummaries[24]=' Same old cover-up feeling - The Telegraph';
startTicker();