
// WebTicker by Mioplanet
// www.mioplanet.com

function ticker_start() {
    TICKER_DIVIDER = '<img src="/img/spacer.gif" width="10" /><img src="/img/k_ticker_sep.gif" style="vertical-align:-15%;" ><img src="/img/spacer.gif" width="10" />';
    TICKER_CONTENT = TICKER_DIVIDER 
	    + 'Archie Comics\' Nancy Silberkleit teamed with MADD\'s Kimberly Earle and Dallas Cowboys\' Jason Witten on April 21st for POWERTALK21 to help give parents the tools they need to keep their kids alcohol free. Check out the pictures <a href="/feature/event_20110421_PT21.aspx" target="_self">HERE</a>.'
	    + TICKER_DIVIDER
	    + 'Tiger Beat Hits The New York Times! Check out the article on this ever-popular title <a href="http://www.nytimes.com/2011/04/17/weekinreview/17tigerbeat.html?_r=1&amp;scp=1&amp;sq=Tiger%20Beat&amp;st=cse" target="_blank">HERE</a>.'
	    + TICKER_DIVIDER
	    + '<i>Birder\'s World</i> (47962) magazine, North America\'s premier magazine about wild birds and birdwatching for 24 years, is now called BirdWatching! Check out the cover of the April issue <a href="/feature/Featured_Cover3.aspx" target="_self">HERE</a>.'
	    + TICKER_DIVIDER
	    + 'Quilter\'s World, a bi-monthly DRG publication, has named Carolyn Vagts as it\'s new editor.'
	    + TICKER_DIVIDER
//	    + 'Did you know Elizabeth Taylor was a biker babe? The actress appeared on the cover of a 1990 issue of Outlaw Biker magazine (46300). Check out the image <a href="/feature/Featured_Cover1.aspx" target="_self">HERE</a>.'
//	    + TICKER_DIVIDER
//	    + 'It\'s the invitation you\'ve been waiting for! Check out all the details on The Royal Wedding <a href="/press/Royal_Wedding_Guide.pdf" target="_blank">HERE</a>.'
//	    + TICKER_DIVIDER
//	    + 'How well do you know Kappa Puzzles? Beginning with this <a href="/press/Kappa3_14_11.pdf" target="_blank">two-page flyer</a>, we look forward to sharing an in-depth look at this popular publisher and each of it\'s valued puzzle categories. Every month keep an eye out for a new reason to play! Contact Account Executive Ed Sturges at <a href="mailto:Esturges@kable.com?subject=Kappa Puzzles">Esturges@kable.com</a> with any questions.'
//	    + TICKER_DIVIDER
//	    + 'Cowgirl Magazine (45599) is the ONLY western lifestyle magazine for women. Look for high-end western-inspired fashion, horses, travel, art, beauty and more on sale 3/8/11. Contact Bob Peterson at <a href="mailto:Bpeterson@kable.com?subject=Cowgirl Magazine">Bpeterson@kable.com</a>.'
//	    + TICKER_DIVIDER
//	    + 'Tattoos For Women (46309) celebrates its 100th issue with a VERY SPECIAL COLLECTOR\'S EDITION, on sale 3/8/11. Contact Bob Woltersdorf at <a href="mailto:Bwoltersdorf@kable.com?subject=Tattoos For Women">Bwoltersdorf@kable.com</a>.'
//	    + TICKER_DIVIDER
//	    + 'Melissa Mick named Magazine Buyer at AAFES in Dallas, TX.'
//	    + TICKER_DIVIDER
//	    + 'In Canada, U.S. based TARGET has purchased 220 Zellers stores and plans to convert between 100 to 150 to their banner by 2014.'
//	    + TICKER_DIVIDER
//	    + 'According to the Publishers Information Bureau, there has been a 21.9% increase in automotive advertising in 2010, mirroring the overall positive year for magazine sales. Read more <a href="http://www.magazine.org/advertising/revenue/by_ad_category/pib-4Q-2010.aspx" target="_blank">HERE</a>.'
//	    + TICKER_DIVIDER
//	    + 'Archie Comics introduces Sonic Universe #24, the wild conclusion to Sonic\'s craziest story to date! For more information on this title, on sale 1/12, please contact Lorraine Markey at <a href="mailto:Lmarkey@kable.com?subject=Sonic Universe #24">Lmarkey@kable.com</a>.'
//	    + TICKER_DIVIDER
///	    + 'Archie Co-CEO Jon Goldwater interviewed in The Huffington Post - check it out <a href="http://www.huffingtonpost.com/bryan-young/huffington-post-exclusive_b_797270.html" target="_blank">HERE</a>.'
///	    + TICKER_DIVIDER

    TICKER_RIGHTTOLEFT = false;
    TICKER_SPEED = 3;
    TICKER_STYLE = "font-family:Arial; font-size:19px; color:#444444";
    TICKER_PAUSED = false;
	var tickerSupported = false;
//	TICKER_WIDTH = document.getElementById("TICKER").style.width;
	TICKER_WIDTH = document.getElementById("TICKER").scrollWidth;
//	var img = '<img src="ticker_space.gif" width="' + TICKER_WIDTH + '" height="0">';
	var img = '<img src="/img/spacer.gif" width="' + TICKER_WIDTH + '" height="0">';
	// Firefox
	if (navigator.userAgent.indexOf("Firefox")!=-1 || navigator.userAgent.indexOf("Safari")!=-1) {
		document.getElementById("TICKER").innerHTML = "<TABLE  cellspacing='0' cellpadding='0' width='100%'><TR><TD nowrap='nowrap'>"+img+"<SPAN style='"+TICKER_STYLE+"' ID='TICKER_BODY' width='100%'>&nbsp;</SPAN>"+img+"</TD></TR></TABLE>";
		tickerSupported = true;
	}
	// IE
	if (navigator.userAgent.indexOf("MSIE")!=-1 && navigator.userAgent.indexOf("Opera")==-1) {
		document.getElementById("TICKER").innerHTML = "<DIV nowrap='nowrap' style='width:100%;'>"+img+"<SPAN style='"+TICKER_STYLE+ "' ID='TICKER_BODY' width='100%'></SPAN>"+img+"</DIV>";
		tickerSupported = true;
	}
	if(!tickerSupported) document.getElementById("TICKER").outerHTML = ""; 
	else {
		document.getElementById("TICKER").scrollLeft = TICKER_RIGHTTOLEFT ? document.getElementById("TICKER").scrollWidth - document.getElementById("TICKER").offsetWidth : 0;
		document.getElementById("TICKER_BODY").innerHTML = TICKER_CONTENT;
		document.getElementById("TICKER").style.display="block";
		TICKER_tick();
	}
}

function TICKER_tick() {
	if(!TICKER_PAUSED) document.getElementById("TICKER").scrollLeft += TICKER_SPEED * (TICKER_RIGHTTOLEFT ? -1 : 1);
	if(TICKER_RIGHTTOLEFT && document.getElementById("TICKER").scrollLeft <= 0) document.getElementById("TICKER").scrollLeft = document.getElementById("TICKER").scrollWidth - document.getElementById("TICKER").offsetWidth;
	if(!TICKER_RIGHTTOLEFT && document.getElementById("TICKER").scrollLeft >= document.getElementById("TICKER").scrollWidth - document.getElementById("TICKER").offsetWidth) document.getElementById("TICKER").scrollLeft = 0;
	window.setTimeout("TICKER_tick()", 20);
}

