
 var msgs = new Array(
     "Philips Selects XpanD Active 3D Technology As Key Component Of Its 3D Strategy",
"Darkworks Unveils TriOviz® for Videogames",
"Orad's PlayMaker sport replay server with up to 8 channel configurations and 3D stereoscopic support to be unveiled at NAB",
"MasterImage 3D Theatre System Tapped for Premiere of Disney-Pixar's New 3D Short at ShoWest 2010",
"Magnetic 3D Kicks off Glasses-Free 3D 'Suites of the Future' at Sun Life Stadium During Super Bowl",
"I.E. Effects Teams with Falcon's Treehouse on Next-Generation Immersive Entertainment",
"InteractElsevier Delivers 3D Interactive Anatomy Learning Tools",
"LuxuryTec and N4D Form Strategic Partnership to Bring 3D to Digital Signage"
 ); // No comma after last ticker msg

 var msg_url = new Array(
     "http://www.stereoscopy.com/news/index.html#newsitemEkylVFFkEFZaTeZekm ",
"http://www.stereoscopy.com/news/index.html#newsitemEkylVFklEyWhCqJRAc ",
"http://www.stereoscopy.com/news/index.html#newsitemEkylVFkyAFlnTzWmRN ",
"http://www.stereoscopy.com/news/index.html#newsitemEkylVFEZykAZKTPgCb ",
"http://www.stereoscopy.com/news/index.html#newsitemEkylVkllZFVutdHJDA ",
"http://www.stereoscopy.com/news/index.html#newsitemEkyZuuZAkylcXWbaSv ",
"http://www.stereoscopy.com/news/index.html#newsitemEkyyAulVFpRgxPQldA ",
"http://www.stereoscopy.com/news/index.html#newsitemEkyyAulFFlEmVezhSK "
 ); // No comma after last ticker url

var barwidth=728 //Enter main bar width in px or %
var barheigth=22 //Enter main bar heigth in px or %
var setdelay=3000 //Enter delay between msgs, in mili-seconds
var mouseover_color='#FCBBBB' //Specify highlight color
var mouseout_color='#FFFFFF' //Specify default color

var count=0;
var ns6=document.getElementById&&!document.all
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1

if (ie4||ns6){
document.write('<form name="news_bar"><input type="button" name="news_bar_but" onclick="goURL();" style="color:#000000;background:#FFFFFF; width:'+barwidth+'; height:'+barheigth+'; border-width:1; border-color:#000000; cursor:hand" onmouseover="this.style.background=mouseover_color" onmouseout="this.style.background=mouseout_color"></form>');
}
else{
document.write('<form name="news_bar"><input type="button" value="Previous" onclick="moveit(0)">')
if (navigator.userAgent.indexOf("Opera")!=-1)
document.write('<input type="button" name="news_bar_but" onclick="goURL();" style="width:'+barwidth+'" border="0">')
else
document.write('<input type="button" name="news_bar_but" onclick="goURL();" width="'+barwidth+'" border="0">')
document.write('<input type="button" value="Next" onclick="moveit(1)"></form>')
}

function init_news_bar(){
  document.news_bar.news_bar_but.value=msgs[count];
}
function moveit(how){
if (how==1){ //cycle foward
if (count<msgs.length-1)
count++
else
count=0
}
else{ //cycle backward
if (count==0)
count=msgs.length-1
else
count--
}
document.news_bar.news_bar_but.value=msgs[count];
}

setInterval("moveit(1)",setdelay)

function goURL(){
 window.open(msg_url[count]);
}

init_news_bar();
