/* (c) Kristof Lipfert www.kristof-lipfert.de 2008 */
/* ver. 2.5 20080717                               */
/* Scrollersatz für Vorschau-Streifen / Film       */
/* wa für ie: Ersatz für content (css)             */
/* wa ie: livesearch bei button deaktivieren       */
/* feststellen der aktuellen Nummer, scrollersatz  */


window.onload=function(){

  document.getElementsByTagName('body')[0].innerHTML+='<div id="scrL"'+
  ' style="position:absolute;top:100%;margin-top:-4em;left:2em;color:white;cursor:crosshair;z-index:9999;width:1em;height:1em;">'+
  '<span style="font-size:.7em;border:1px solid gray;background-color:#666;zoom:1;filter: alpha( opacity=50 );-moz-opacity: 0.50;opacity: 0.50;">&nbsp;&lt;&nbsp;&nbsp;</span></div>'+
  '<div id="scrR"'+
  ' style="position:absolute;top:100%;margin-top:-4em;left:4em;color:white;cursor:crosshair;z-index:9999;width:1em;height:1em;">'+
  '<span style="font-size:.7em;border:1px solid gray;background-color:#666;zoom:1;filter:alpha(opacity=50);-moz-opacity: 0.50;opacity: 0.50;">&nbsp;&nbsp;&gt;&nbsp;</span></div>';
obj=document.getElementById('vs');
var z = window.document.getElementById("vs").childNodes.length;

var nr = window.document.getElementById("ct").firstChild.innerHTML;
nr=nr.substring(0,nr.indexOf('/'));
obj.style.left=(-nr+4)*59+"px";


document.getElementById('scrL').onmousedown=function(){obj.style.left=obj.offsetLeft+177+"px";
if(obj.offsetLeft>screen.availWidth)obj.style.left=(-1*(z*31))+"px";
}
document.getElementById('scrR').onmousedown=function(){obj.style.left=obj.offsetLeft-177+"px";
if(obj.offsetLeft<-obj.offsetWidth-16)obj.style.left=screen.availWidth-200+"px";}


if(document.defaultCharset){
document.getElementById('scrL').onselectstart=function(){return false;};
document.getElementById('scrR').onselectstart=function(){return false;};
var n = window.document.getElementById("topnav").childNodes.length;
for (i=0;i<n-1;i++){
  window.document.getElementById("topnav").childNodes[i].firstChild.style.borderWidth=0;
  window.document.getElementById("topnav").childNodes[i].innerHTML+='<span style="font-size:.6em;color:gray;line-height:.6em">&gt;</span>'; }
}
}