
// 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 
	    + 'New Kable technology revealed.  Click <a href="/press/Wheresmymagazine.com_rollout.pdf" target="_blank">HERE</a> for more information.'
	    + TICKER_DIVIDER
//	    + 'Look for two new collector\'s editions from FX Marketing Group, Inc. on newsstands soon.  The Official NASCAR Hall Of Fame (Bipad 25599), on sale 1/31/12 and The Official Grammy Awards Souvenir Book (Bipad 26158), on sale 2/7/12.  For more information, please contact Cally Zavolas at <a href="mailto:czavolas@kable.com?subject=FX Marketing Groups Collector Editions">czavolas@kable.com</a>.'
//	    + TICKER_DIVIDER
//	    + 'Let\'s welcome Yates (Bipad 13904) to the Kable family!  Check it out <a href="/feature/Featured_Cover4.aspx" target="_self">HERE</a>.  Yates magazine is on sale 1/31/12 and priced at $6.99.  For more information, please contact Kristin Webb at <a href="mailto:kwebb@kable.com?subject=Yates">kwebb@kable.com</a>.'
//	    + TICKER_DIVIDER
//	    + 'KDS welcomes new client Dauphin Media Group and NFL Magazine (BIPAD 44165).  Cover priced at $4.99, the premiere issue is on sale December 13, 2011.  For more information, please contact Account Executive Andy Lieb at <a href="mailto:alieb@kable.com?subject=NFL Magazine">alieb@kable.com</a>.'
//	    + TICKER_DIVIDER
//	    + 'From All American Crafts, Bead Unique (46844) is now Bead Design Studio.  Check it out <a href="/feature/Featured_Cover4.aspx" target="_self">HERE</a>.  The Dec. issue is on sale 11/15/11.  For more information, please contact Stephanie Ivolella at <a href="mailto:sivolella@kable.com?subject=Bead Design Studio">sivolella@kable.com</a>.'
//	    + TICKER_DIVIDER
//	    + 'Take a <a href="/feature/Featured_Cover2.aspx" target="_self">SNEAK PEAK</a> at the premiere issue of AEON Mens Magazine (41550), on sale 11/22/11.  For more information, please contact Cally Zavolas at <a href="mailto:czavolas@kable.com?subject=AEON Mens Magazine">czavolas@kable.com</a>'
//	    + TICKER_DIVIDER
//	    + 'Dan Latzke has been named the new Category Manager for Tobacco and Printed Material at WALGREENS.'
//	    + TICKER_DIVIDER
//	    + 'Let\'s welcome Women of Wealth magazine (43565) to the Kable family!  Check it out <a href="/feature/Featured_Cover2.aspx" target="_self">HERE</a>. Women of Wealth is on-sale Nov. 8th and priced at $4.99.  For more information, please contact Lourdes Tavares at <a href="mailto:ltavares@kable.com?subject=Archie">ltavares@kable.com</a>.'
//	    + TICKER_DIVIDER
//	    + 'Check out the fall issue of Kable Connections <a href="/newsltr/pdfs/Connections_20110929.pdf" target="_blank">HERE</a>!'
//	    + TICKER_DIVIDER
//	    + 'Have you seen CNN\'s spotlight on Archie Comics? Click <a href="http://geekout.blogs.cnn.com/2011/09/30/archie/" target="_blank">HERE</a> to learn why \"They\'re as much a part of Americana as Spider-Man.\"'
//	    + TICKER_DIVIDER
//	    + '<a href="/feature/Featured_Cover2.aspx" target="_self">CHECK OUT</a> the November cover of Robb Report (48175) on sale 10-25-11 for a look inside the Maserati 2012 Tourismo MC!'
//	    + TICKER_DIVIDER
//	    + 'Take a <a href="/feature/Featured_Cover2.aspx" target="_self">sneak peak</a> at JUGHEAD DOUBLE DIGEST #173, \"BFFs...NOT!\" and \"Food for Thought\".  For more information on this upcoming Archie Comics release, please contact Kable Account Executive Lorraine Markey at <a href="mailto:Lmarkey@kable.com?subject=Jughead DD">Lmarkey@kable.com</a>.'
//	    + TICKER_DIVIDER
//	    + 'For it\'s 2012 edition (issue #23), on sale 9/6/2011, J. Gruber\'s Garden and Farm Almanac (65782) has expanded the national circulation of its regional versions. Contact Account Executive Lorraine Markey at <a href="mailto:Lmarkey@kable.com?subject=Gruber\'s Garden and Farm Almanac">Lmarkey@kable.com</a> for more information.'
//	    + TICKER_DIVIDER
//	    + 'Kable Distribution Services, Inc. has announced the promotion of Jim Tourtillott (JT) to Vice President, Information Technology. Read the press release <a href="/press/KDS_PRESS_RELEASE_52511.pdf" target="_blank">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
///	    + '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
//	    + 'Rat Rod Magazine (46680), dedicated to the creative side of hot rods and the passion that fuels their builders, is a bi-monthly title on sale 3/22/11.'
//	    + TICKER_DIVIDER
//	    + 'Wishing everyone a happy and healthy Holiday Season!'
//	    + 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);
}

