//Contents of this file are Copyright,loss.de - Webdesign und Programmierung / 17-02-2003
//
// Diese Software ist urheberrechtlich geschützt. 
// Es ist verboten, den Source Code zu veränden,
// sowie die Software mehr als lizensiert zu nutzen. 
// Zuwiderhandlungen werden strafrechtlich verfolgt.

function verifyCompatibleBrowser(){ 
    this.ver=navigator.appVersion 
    this.dom=document.getElementById?1:0 
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
    this.ie4=(document.all && !this.dom)?1:0; 
    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
 
    this.ns4=(document.layers && !this.dom)?1:0; 
    this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) 
    return this 
} 
bw=new verifyCompatibleBrowser() 
 
 
function makeObj(obj,nest)
{ 
    nest=(!nest) ? '':'document.'+nest+'.'; 
    this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0; 
    this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0; 
	//this.scrollWidth=bw.ns4?this.css.document.width:this.el.offsetWidth 
    this.scrollWidth=bw.ns4?this.css.document.width:bw.ie4?this.el.offsetWidth:bw.dom?this.el.offsetWidth:0;
	this.x=this.css.left;
    this.y=this.css.top;							
    this.hideIt=b_hideIt;
    this.showIt=b_showIt;
    this.moveIt=b_moveIt;
    return this 
} 


function b_showIt()
{
this.css.visibility="visible"
}


function b_hideIt()
{
this.css.visibility="hidden"
}


function b_moveIt(x,y)
{
this.x=x; 
this.y=y;
this.css.left=this.x;
this.css.top=this.y;
}
//Cross-browser objects end

var tim;
var width=647
var scrollstep = 5
var timeout = 20 

function init(n){
	oArrowRight=new makeObj('divArrowRight','divCont')
	oArrowLeft=new makeObj('divArrowLeft','divCont')
	oMenu=new makeObj('divMenu'+n,'divCont')
	oMenu.moveIt(0,7)
	oMenu.showIt()
	oCont=new makeObj('divCont')
	oCont.showIt()
    isinit=true
}


function mLeft(){
    if (!isinit) return;
	if(!noScroll && oMenu.x<scrollstep-10){
		oMenu.moveIt(oMenu.x+scrollstep,oMenu.y)
		tim=setTimeout("mLeft()",timeout)
	} 
  }
function mRight(){
	if (!isinit) return;
	if(!noScroll && oMenu.x>-(oMenu.scrollWidth-(width))){
		oMenu.moveIt(oMenu.x-scrollstep,oMenu.y)
		tim=setTimeout("mRight()",timeout)
	} 
}
function noMove(){
	if (!isinit) return;
	clearTimeout(tim)
	noScroll=true
}


