/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var pausecontentClients=new Array()
pausecontentClients[0]='<i>"Tactician Media has optimized our sales process by allowing our sales associates to efficiently and effectively show customers our unique targeting capabilities."</i> <br> <div align="right">- St. Louis Post Dispatch</div><br>'
pausecontentClients[1]='<i>"Tactician Media and Insert Express have made us much more efficient in how we transact our preprint business, which translates to more dollars earned for a lot less time, effort and expense."</i><br><div align="right">- Atlanta Journal Constitution</div><br>'
/* pausecontentClients[2]='<i>"We continue to be impressed by the level of customer service that Tactician Media provides."</i> <br> <div align="right">- San Diego Union Tribune</div><br>' */
pausecontentClients[2]='<i>"Having the visual detailed information along with the map is a great selling tool."</i> <br><br> <div align="right">- Sacramento Bee</div><br>'

var pausecontentCompany=new Array()
/* pausecontentCompany[0]='<i>"Ongoing reliable, quality customer service proves that Tactician Media is committed to their customers."</i> <br> <div align="right">- San Diego Union Tribune</div><br>' */
pausecontentCompany[0]='<i>"We very much appreciate the products and services Tactician Media provides and appreciate the relationship that has been built over the past couple years!"</i> <div align="right">- Cleveland Plain Dealer</div><br>'
pausecontentCompany[1]='<i>"Customers like Ford Motor Company immediately saw the value in our superior distribution methodology with Tactician Media tools."</i> <br><br> <div align="right">- St. Louis Post Dispatch</div><br>'
pausecontentCompany[2]='<i>"Tactician Medias knowledge of our industry really sets them apart."</i> <br><br> <div align="right">- Columbus Dispatch</div><br>'

var pausecontentNewspapers=new Array()
pausecontentNewspapers[0]='<i>"The Insert Express implementation process is very smooth.  Tactician Media provides guided assistance every step of the way."</i> <br> <div align="right">- Columbus Dispatch</div><br>'
pausecontentNewspapers[1]='<i>"Having sales reps produce their own preprint buys has enabled them to be directly involved in developing actual proposals while reducing the time it takes to produce new and updated preprint orders for their accounts."</i><br><div align="right">- Atlanta Journal Constitution</div><br>'

var pausecontentCLogos=new Array()
pausecontentCLogos[0]='<a href="http://www.chicagotribune.com/" target="_blank"><img src="jref/ClientLogos/chic.gif" border="0"></a>'
pausecontentCLogos[1]='<a href="http://www.newsday.com/" target="_blank"><img src="jref/ClientLogos/newsday.gif" border="0"></a>'
pausecontentCLogos[2]='<a href="http://www.sfgate.com" target="_blank"><img src="jref/ClientLogos/sanfran.gif" border="0"></a>'
pausecontentCLogos[3]='<a href="http://news.cincinnati.com" target="_blank"><img src="jref/ClientLogos/cincy.gif" border="0"></a>'
pausecontentCLogos[4]='<a href="http://www.venturacountystar.com" target="_blank"><img src="jref/ClientLogos/ventura.gif" border="0"></a>'
pausecontentCLogos[5]='<a href="http://www.stltoday.com" target="_blank"><img src="jref/ClientLogos/stlouis.gif" border="0"></a>'
pausecontentCLogos[6]='<a href="http://www.ajc.com" target="_blank"><img src="jref/ClientLogos/atl.gif" border="0"></a>'
pausecontentCLogos[7]='<a href="http://www.washingtonpost.com" target="_blank"><img src="jref/ClientLogos/wash.gif" border="0"></a>'
pausecontentCLogos[8]='<a href="http://www.sylvania.com" target="_blank"><img src="jref/ClientLogos/osram.gif" border="0"></a>'
pausecontentCLogos[9]='<a href="http://www.plaindealer.com" target="_blank"><img src="jref/ClientLogos/clev.gif" border="0"></a>'
pausecontentCLogos[10]='<a href="http://www.mercurynews.com" target="_blank"><img src="jref/ClientLogos/sanjose.gif" border="0"></a>'
pausecontentCLogos[11]='<a href="http://www.dallasnews.com" target="_blank"><img src="jref/ClientLogos/dallas.gif" border="0"></a>'
pausecontentCLogos[12]='<a href="http://www.pittsburghlive.com" target="_blank"><img src="jref/ClientLogos/pitts.gif" border="0"></a>'
pausecontentCLogos[13]='<a href="http://www.signonsandiego.com" target="_blank"><img src="jref/ClientLogos/san.gif" border="0"></a>'
pausecontentCLogos[14]='<a href="http://www.thestate.com" target="_blank"><img src="jref/ClientLogos/col.gif" border="0"></a>'
pausecontentCLogos[15]='<a href="http://www.insidebayarea.com/trivalleyherald" target="_blank"><img src="jref/ClientLogos/triv.gif" border="0"></a>'
pausecontentCLogos[16]='<a href="http://www.sacbee.com" target="_blank"><img src="jref/ClientLogos/sac.gif" border="0"></a>'
pausecontentCLogos[17]='<a href="http://www.baltimoresun.com" target="_blank"><img src="jref/ClientLogos/balt.gif" border="0"></a>'
pausecontentCLogos[18]='<a href="http://www.scripps.com" target="_blank"><img src="jref/ClientLogos/scripps.gif" border="0"></a>'
pausecontentCLogos[19]='<a href="http://www.PE.com" target="_blank"><img src="jref/ClientLogos/pe.gif" border="0"></a>'
pausecontentCLogos[20]='<a href="http://www.kentucky.com" target="_blank"><img src="jref/ClientLogos/lexington.gif" border="0"></a>'
pausecontentCLogos[21]='<a href="http://www.cantonrep.com" target="_blank"><img src="jref/ClientLogos/cant.gif" border="0"></a>'
pausecontentCLogos[22]='<a href="http://www.courant.com" target="_blank"><img src="jref/ClientLogos/hartford.gif" border="0"></a>'
pausecontentCLogos[23]='<a href="http://www.dispatch.com" target="_blank"><img src="jref/ClientLogos/columbus.gif" border="0"></a>'
pausecontentCLogos[24]='<a href="http://www.tribunedirect.com" target="_blank"><img src="jref/ClientLogos/tribuned.gif" border="0"></a>'
pausecontentCLogos[25]='<a href="http://www.charlotte.com" target="_blank"><img src="jref/ClientLogos/char.gif" border="0"></a>'
pausecontentCLogos[26]='<a href="http://www.fresnobee.com" target="_blank"><img src="jref/ClientLogos/fresno.gif" border="0"></a>'
pausecontentCLogos[27]='<a href="http://www.panerabread.com" target="_blank"><img src="jref/ClientLogos/panera.gif" border="0"></a>'
pausecontentCLogos[28]='<a href="http://www.bhamnews.com" target="_blank"><img src="jref/ClientLogos/birm.gif" border="0"></a>'
pausecontentCLogos[29]='<a href="http://www.timesheraldonline.com" target="_blank"><img src="jref/ClientLogos/timesh.gif" border="0"></a>'
pausecontentCLogos[30]='<a href="http://www.latimes.com" target="_blank"><img src="jref/ClientLogos/losa.gif" border="0"></a>'
pausecontentCLogos[31]='<a href="http://www.commercialappeal.com" target="_blank"><img src="jref/ClientLogos/comm.gif" border="0"></a>'
pausecontentCLogos[32]='<a href="http://www.philly.com" target="_blank"><img src="jref/ClientLogos/philly.gif" border="0"></a>'
pausecontentCLogos[33]='<a href="http://www.insidebayarea.com/oaklandtribune" target="_blank"><img src="jref/ClientLogos/oakland.gif" border="0"></a>'
pausecontentCLogos[34]='<a href="http://www.indystar.com" target="_blank"><img src="jref/ClientLogos/indy.gif" border="0"></a>'
pausecontentCLogos[35]='<a href="http://www.modbee.com" target="_blank"><img src="jref/ClientLogos/modesto.gif" border="0"></a>'
pausecontentCLogos[36]='<a href="http://www.goerie.com" target="_blank"><img src="jref/ClientLogos/erie.gif" border="0"></a>'
pausecontentCLogos[37]='<a href="http://www.rrstar.com" target="_blank"><img src="jref/ClientLogos/rockford.gif" border="0"></a>'
pausecontentCLogos[38]='<a href="http://www.ohionews.org" target="_blank"><img src="jref/ClientLogos/ohio.gif" border="0"></a>'
pausecontentCLogos[39]='<a href="http://www.courierpress.com" target="_blank"><img src="jref/ClientLogos/evans.gif" border="0"></a>'
pausecontentCLogos[40]='<a href="http://www.insidebayarea.com/argus" target="_blank"><img src="jref/ClientLogos/argus.gif" border="0"></a>'
pausecontentCLogos[41]='<a href="http://www.pjstar.com" target="_blank"><img src="jref/ClientLogos/peoria.gif" border="0"></a>'
pausecontentCLogos[42]='<a href="http://www.insidebayarea.com/dailyreview" target="_blank"><img src="jref/ClientLogos/daily.gif" border="0"></a>'
pausecontentCLogos[43]='<a href="http://www.contracostatimes.com" target="_blank"><img src="jref/ClientLogos/contra.gif" border="0"></a>'
pausecontentCLogos[44]='<a href="http://www.mcclatchy.com" target="_blank"><img src="jref/ClientLogos/mcclatchy.gif" border="0"></a>'
pausecontentCLogos[45]='<a href="http://www.oaic.com" target="_blank"><img src="jref/ClientLogos/oldamer.gif" border="0"></a>'
pausecontentCLogos[46]='<a href="http://www.commercial-letter.com" target="_blank"><img src="jref/ClientLogos/commercial.gif" border="0"></a>'
pausecontentCLogos[47]='<a href="http://www.ohio.com" target="_blank"><img src="jref/ClientLogos/akr.gif" border="0"></a>'
pausecontentCLogos[48]='<a href="http://www.marinij.com/" target="_blank"><img src="jref/ClientLogos/marin.gif" border="0"></a>'
pausecontentCLogos[49]='<a href="http://www.insidebayarea.com/sanmateocountytimes" target="_blank"><img src="jref/ClientLogos/sanmat.gif" border="0"></a>'
pausecontentCLogos[50]='<a href="http://www.post-gazette.com" target="_blank"><img src="jref/ClientLogos/pittpg.gif" border="0"></a>'

function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}
