/*Example message arrays for the two demo scrollers*/

var pausecontent=new Array()

pausecontent[0]='<p class="date">20 October 2010</p><p class="newsTitle">UK’s TalkTalk to build new network specifically designed to deliver high quality digital on-demand TV</p><p><img src="assets/img/customers/talktalk.gif" width="200" alt="TalkTalk"></p><p>Leverages Alcatel-Lucent Velocix solution for new Content Delivery Network...</p><p class="moreButt"><a href="pr_10_Oct_tt.php">More</a></p>'
pausecontent[1]='<p class="date">13 October 2010</p><p class="newsTitle">Alcatel-Lucent unveils strategic alliance program for Velocix Digital Media Delivery Platform to accelerate time to market for consumer multi-screen entertainment</p><p><img src="assets/img/velocix_alu_logo.gif" width="200" alt="Velocix Strategic Alliance Program"></p><p>Velocix chosen by Orcon, to improve the delivery and experience of Internet-based video to its customers...</p><p class="moreButt"><a href="pr_10_Oct_Orcon.php">More</a></p>'
pausecontent[2]='<p class="date">28 september 2010</p><p class="newsTitle">New Zealand’s Orcon selects Alcatel-Lucent’s Velocix platform to deliver high-quality online video</p><p><img src="assets/img/customers/orcon.gif" width="240" height="84" alt="Orcon Success"></p><p>Velocix chosen by Orcon, to improve the delivery and experience of Internet-based video to its customers...</p><p class="moreButt"><a href="pr_10_Oct_Orcon.php">More</a></p>'
pausecontent[3]='<p class="date">25 Sept 2010</p><p class="newsTitle">Alcatel-Lucent and Blue Coat Form Global Reseller Agreement and collaborate to help service providers deliver better video experience for customers</p><p><img src="assets/img/press/BC.gif" width="240" height="84" alt="Velocix BlueCoat Launch"></p><p>Companies will leverage Velocix delivery platform with Blue Coat CacheFlow appliances to manage high-bandwidth video and Web 2.0 content...</p><p class="moreButt"><a href="pr_sept_bc.php">More</a></p>'
pausecontent[4]='<p class="date">23 March 2010</p><p class="newsTitle">Alcatel-Lucent unveils Velocix Digital Media Delivery Platform</p><p><img src="assets/img/press/alu.gif" width="240" height="84" alt="Velocix DMDP Launch"></p><p>High performance network appliances are a key element of Alcatel-Lucent Multimedia Solutions...</p><p class="moreButt"><a href="pr280709.php">More</a></p>'
pausecontent[5]='<p class="date">28 July 2009</p><p class="newsTitle">Alcatel-Lucent acquires leading Content Delivery Network provider Velocix</p><p><img src="assets/img/press/alu.gif" width="240" height="84" alt="Velocix Metro Launch"></p><p>The acquisition of Velocix brings Alcatel-Lucent an enabling CDN infrastructure solution for Internet Service Providers...</p><p class="moreButt"><a href="pr280709.php">More</a></p>'


var pausecontent4=new Array()
pausecontent4[0]='<p align="center"><font size="1"><strong>BBC iPlayer and Velocix</strong><br/><img src="assets/img/media/BBC.gif" width="159" height="89" alt="BBC"><br/><i>"The BBC has worked with British company Velocix to test a system which puts servers in ISPs that store, or cache, the most popular iPlayer programmes."</i><strong><a href="http://news.bbc.co.uk/1/hi/technology/7787335.stm" target="_blank">More</a></strong></font></p>'
pausecontent4[1]='<p align="center"><font size="1"><strong>Velocix Metro</strong><br/><img src="assets/img/media/Gartner.gif" width="159" height="89" alt="Gartner"><br/><i>"Velocix Metro is essentially a turnkey managed CDN service, deployed at locations of an Internet service providers choice."</i><strong><a href="http://blogs.gartner.com/lydia_leong/2008/12/11/velocix-metro/" target="_blank">More</a></strong></font></p>'
pausecontent4[2]='<p align="center"><font size="1"><strong>The Content Delivery Love Triangle</strong><br/><img src="assets/img/media/YankeeGroup.gif" width="159" height="89" alt="Yankee Group"><br/><i>"Increasingly, operators are looking at the CDN market and asking why they cant do this themselves."</i><strong><a href="http://blogs.yankeegroup.com/2008/12/10/the-content-delivery-love-triangle/" target="_blank">More</a></strong></font></p>'
pausecontent4[3]='<p align="center"><font size="1"><strong>Velocix Gear Helps ISPs Launch Their Own CDN Services</strong><br/><img src="assets/img/media/Contentinople.gif" width="159" height="89" alt="Contentinople"><br/><i>"Velocix has announced the general availability of its new Velocix Metro product, which the company says can help ISPs to improve the speed and quality of video delivery."</i><strong><a href="http://www.contentinople.com/author.asp?section_id=450&doc_id=169119" target="_blank">More</a></strong></font></p>'
pausecontent4[4]='<p align="center"><font size="1"><strong>Velocix Launches New CDN Offering For ISPs With Support From Adobe, Microsoft and Sun</strong><br/><img src="assets/img/media/StreamingMedia.gif" width="159" height="89" alt="Streaming Media"><br/><i>"Velocix has launched a new product named Velocix Metro that enables ISPs to deploy servers within their access network."</i><strong><a href="http://blog.streamingmedia.com/the_business_of_online_vi/2008/12/velocix-launches-new-cdn-offering-for-isps-with-support-from-adobe-and-microsoft.html" target="_blank">More</a></strong></font></p>'
pausecontent4[5]='<p align="center"><font size="1"><strong>Verizon, Velocix Team on CDN Express Lane</strong><br/><img src="assets/img/media/Contentinople.gif" width="159" height="89" alt="Contentinople"><br/><i>"Using caching equipment from Velocix, Verizon hopes to offer content owners performance advantages as well as better economics than they might find on traditional CDNs"</i>.<strong><a href="http://www.contentinople.com/author.asp?section_id=450&doc_id=168086" target="_blank">More</a></strong></font></p>'
pausecontent4[6]='<p align="center"><font size="1"><strong>BBC canvasses ways to tackle congestion</strong></br/><img src="assets/img/media/Informa.gif" width="159" height="89" alt="Informa"><br/><i>"The BBC has started a trial with three major UK internet service providers to help deliver its increasingly popular iPlayer"</i>.<strong><a href="http://www.velocix.com/NewMediaMarkets.pdf" target="_blank">More</a></strong></font></p>'
pausecontent4[7]='<p align="center"><font size="1"><strong>Verizon partners Velocix to launch content delivery services</strong></br/><img src="assets/img/media/ScreenDigest.gif" width="159" height="89" alt="Screen Digest"><br/><i>"Verizon has partnered UK-based Content Delivery Network (CDN) operator Velocix to launch video distribution services under its own brand."</i><strong><a href="http://www.screendigest.com/online_services/intelligence/broadband/updates/bi-211108-jg1/view.html" target="_blank">More</a></strong></font></p>'
pausecontent4[8]='<p align="center"><font size="1"><strong>Verizon takes up the CDN gauntlet</strong><br/><img src="assets/img/media/TelecommunicationsOnline.gif" width="159" height="89" alt="Telecommunications Online"><br/><i>"The Tier 1 carrier has partnered with UK-based Velocix CDN provider for equipment and services to turbo-charge Web content delivery."</i><strong><a href="http://www.telecommagazine.com/newsglobe/article.asp?HH_ID=AR_4610" target="_blank">More</a></strong></font></p>'
pausecontent4[9]='<p align="center"><font size="1"><strong>Verizon CDN push takes different path</strong><br/><img src="assets/img/media/FierceTelecom.gif" width="159" height="89" alt="Fierce Telecom"><br/><i>"Verizon will use Velocix equipment to support a CDN service for media companies looking for faster service delivery."</i><strong><a href="http://www.fiercetelecom.com/story/verizons-cdn-push-takes-different-path/2008-11-20" target="_blank">More</a></strong></font></p>'
pausecontent4[10]='<p align="center"><font size="1"><strong>Verizon Joins CDN Movement</strong><br/><img src="assets/img/media/Telecompetitor.gif" width="159" height="89" alt="telecompetitor"><br/><i>"Verizon launching their own CDN to distribute content that they contract for directly with content owners like movie studios, TV networks, video rental sites and entertainment services."</i><strong><a href="http://telecompetitor.com/node/938" target="_blank">More</a></strong></font></p>'
pausecontent4[11]='<p align="center"><font size="1"><strong>Verizon Makes Its CDN Move</strong><br/><img src="assets/img/media/TelecomRamblings.gif" width="159" height="89" alt="Telecom Ramblings"><br/><i>"Verizon to efficiently distribute content both internally and externally by putting Velocix caching solutions deep within its existing network."</i><strong><a href="http://www.telecomramblings.com/2008/11/verizon-makes-its-cdn-move/" target="_blank">More</a></strong></font></p>'
pausecontent4[12]='<p align="center"><font size="1"><strong>Verizon Injects CDN Smarts Into Backbone Network</strong><br/><img src="assets/img/media/Xchange.gif" width="159" height="89" alt="xchange"><br/><i>"Verizon announces strategic alliance with upstart UK CDN Velocix that includes the creation of a new network to speed delivery of its TV and Internet-driven video offerings."</i><strong><a href="http://www.xchangemag.com/hotnews/verizon-injects-cdn-smarts-backbone-network.html" target="_blank">More</a></strong></font></p>'
pausecontent4[13]='<p align="center"><font size="1"><strong>Velocix Ready to Cache In With ISP Deals</strong><br/><img src="assets/img/media/Contentinople.gif" width="159" height="89" alt="Contentinople"><br/><i>"By installing caching devices in ISP networks, Velocix could accelerate the delivery of video content, while reducing network congestion and allowing ISPs to cash in."</i><strong><a href="http://www.contentinople.com/author.asp?section_id=450&doc_id=165317" target="_blank">More</a></strong></font></p>'


/***********************************************
* 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.
***********************************************/

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
}
