var tickercontents=new Array()
tickercontents[0]='Top 3 Stats &nbsp;<img src="http://gbcclan.de/inc/images/gameicons/callofduty/callofduty2.gif"><img src="http://gbcclan.de/inc/images/gameicons/callofduty/callofduty4.gif"><img src="http://gbcclan.de/inc/images/gameicons/callofduty/callofduty_worldatwar.gif">'
// tickercontents[1]='<img src="http://gbcclan.de/inc/images/gameicons/callofduty/callofduty2.gif">CoD2 Weekly Top 3'
// var script = document.createElement('script');
// script.setAttribute('src', 'http://stats.gbcclan.de/weekly/weekly_v2.js'); //URL zuweisen
// script.setAttribute('type','text/javascript');
// script.setAttribute('language','javascript');
// document.getElementsByTagName('head')[0].appendChild(script);
//tickercontents[3]='Und hier die TOP 3 der Alltime Statistik'
var script = document.createElement('script');
script.setAttribute('src', 'http://stats.gbcclan.de/alltime/alltime_v2.js'); //URL zuweisen
script.setAttribute('type','text/javascript');
script.setAttribute('language','javascript');
document.getElementsByTagName('head')[0].appendChild(script);
// tickercontents[9]='Aktuelle Platzierungen auf unseren COD4 Servern'
// tickercontents[10]='COD4 TOP 3 der Wochenstatistik'
// var script = document.createElement('script');
// script.setAttribute('src', 'http://stats.gbcclan.de/cod4weekly/cod4weekly_v2.js'); //URL zuweisen
// script.setAttribute('type','text/javascript');
// script.setAttribute('language','javascript');
// document.getElementsByTagName('head')[0].appendChild(script);
// tickercontents[14]='COD4 TOP 3 der Alltime Statistik'
var script = document.createElement('script');
script.setAttribute('src', 'http://stats.gbcclan.de/cod4all/cod4alltime_v2.js'); //URL zuweisen
script.setAttribute('type','text/javascript');
script.setAttribute('language','javascript');
document.getElementsByTagName('head')[0].appendChild(script);
var script = document.createElement('script');
script.setAttribute('src', 'http://stats.gbcclan.de/codwaw/codwawalltime_v2.js'); //URL zuweisen
script.setAttribute('type','text/javascript');
script.setAttribute('language','javascript');
document.getElementsByTagName('head')[0].appendChild(script)
var script = document.createElement('script');
script.setAttribute('src', 'http://www.gbcclan.de/streaming/pbstream.js'); //URL zuweisen
script.setAttribute('type','text/javascript');
script.setAttribute('language','javascript');
document.getElementsByTagName('head')[0].appendChild(script);
var tickerwidth="250px"
var tickerheight="70px"
var fontcss="font: bold 10px Verdana; color:white"
var tickdelay=3000 //delay btw messages
var highlightspeed=2 //2 pixels at a time.
var highlightcolor="black"
var backdroptextcolor="#000000"
document.write('<style>#highlighterbg a{color:'+backdroptextcolor+'}</style>')
document.write('<div style="position:relative;left:10px;top:0px; width:'+tickerwidth+'; height:'+tickerheight+';'+fontcss+'">')
document.write('<span id="highlighterbg" style="position:absolute;left:0;top:0;color:'+backdroptextcolor+'; width:'+tickerwidth+'; height:'+tickerheight+';padding: 4px"></span><span id="highlighter" style="position:absolute;left:0;top:0;clip:rect(auto auto auto 0px); background-color:'+highlightcolor+'; width:'+tickerwidth+';height:'+tickerheight+';padding: 4px"></span>')
document.write('</div>')
var currentmessage=0
var clipbottom=1
function changetickercontent(){
msgheight=clipbottom=crosstick.offsetHeight
crosstick.style.clip="rect("+msgheight+"px auto auto 0px)"
crosstickbg.innerHTML=tickercontents[currentmessage]
crosstick.innerHTML=tickercontents[currentmessage]
highlightmsg()
}
function highlightmsg(){
//var msgheight=crosstick.offsetHeight
if (clipbottom>0){
clipbottom-=highlightspeed
crosstick.style.clip="rect("+clipbottom+"px auto auto 0px)"
beginclip=setTimeout("highlightmsg()",20)
}
else{
clipbottom=msgheight
clearTimeout(beginclip)
if (currentmessage==tickercontents.length-1) currentmessage=0
else currentmessage++
setTimeout("changetickercontent()",tickdelay)
}
}
function start_ticking(){
crosstickbg=document.getElementById? document.getElementById("highlighterbg") : document.all.highlighterbg
crosstick=document.getElementById? document.getElementById("highlighter") : document.all.highlighter
crosstickParent=crosstick.parentNode? crosstick.parentNode : crosstick.parentElement
if (parseInt(crosstick.offsetHeight)>0)
crosstickParent.style.height=crosstick.offsetHeight+'px'
else
setTimeout("crosstickParent.style.height=crosstick.offsetHeight+'px'",100) //delay for Mozilla's sake
changetickercontent()
}
if (document.all || document.getElementById)
window.onload=start_ticking

