function layer_ausblenden_werbung() {
	document.getElementById('frontwerbung').style.visibility = 'hidden';
	document.getElementById('rahmen').className = 'rahmen';
	document.getElementById('rahmen2').className = 'rahmen';
}



function countDown_werbung() {

if (Time > 0) {
	Time--;

	if (Time == 6) {
		document.getElementById('rahmen').className = 'rahmen_blass';
		document.getElementById('rahmen2').className = 'rahmen_blass';
		document.getElementById('frontwerbung').style.visibility = 'visible';
	}

	document.getElementById("Ausgabewerbung").innerHTML = "noch: "+Time+" Sekunden";
	setTimeout("countDown_werbung()", 1000);
} else {
	setTimeout('layer_ausblenden_werbung()',0);
}
				
}

function layer_ausblenden() {
	document.getElementById('front').style.visibility = 'hidden';
	document.getElementById('rahmen').className = 'rahmen';
	document.getElementById('rahmen2').className = 'rahmen';
}



function countDown() {

if (Time > 0) {
	Time--;

	if (Time == 10) {
		document.getElementById('rahmen').className = 'rahmen_blass';
		document.getElementById('rahmen2').className = 'rahmen_blass';
		document.getElementById('front').style.visibility = 'visible';
	}

	document.getElementById("Ausgabe").innerHTML = "noch: "+Time+" Sekunden";
	setTimeout("countDown()", 1000);
} else {
	setTimeout('layer_ausblenden()',0);
}
				
}

function changeClass(ID,bChange) {

if (bChange == 1) {
	document.getElementById(ID).className = 'mouseon';
}
else {
	document.getElementById(ID).className = "mouseoff";
}

}

function changeClass2(ID,bChange) {
if (bChange == 1) {
	document.getElementById(ID).className = 'tbl_mitstreiter_highlight';
}
else {
	document.getElementById(ID).className = "tbl_mitstreiter";
}

}

function VArgumente() {
   var erg = new Array();
   var arg = new Array();
  
   var location = window.location.search;
  
   if (location.length > 0) {
      location = location.substr(1, location.length - 1);
      
      erg = location.split("&");
  
      for (i=0; i< erg.length; i++) {
         var x = new Array();
   
         x = erg[i].split("=");
   
         arg[x[0]] = x[1];
      }
   } else {
      arg[0] = false;
   }
  
   return arg;
}

			
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 
} 

function ConstructObject(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.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight 
    this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight 
    this.up=MoveAreaUp;this.down=MoveAreaDown; 
    this.MoveArea=MoveArea; this.x; this.y; 
    this.obj = obj + "Object" 
    eval(this.obj + "=this") 
    return this 
} 
function MoveArea(x,y){ 
    this.x=x;this.y=y 
    this.css.left=this.x 
    this.css.top=this.y 
} 
 
function MoveAreaDown(move){ 
	if(this.y>-this.scrollHeight+objContainer.clipHeight){ 
    this.MoveArea(0,this.y-move) 
    if(loop) setTimeout(this.obj+".down("+move+")",speed) 
	} 
} 
function MoveAreaUp(move){ 
	if(this.y<0){ 
    this.MoveArea(0,this.y-move) 
    if(loop) setTimeout(this.obj+".up("+move+")",speed) 
	} 
} 
 
function PerformScroll(speed){ 
	if(initialised){ 
		loop=true; 
		if(speed>0) objScroller.down(speed) 
		else objScroller.up(speed) 
	} 
}
 
function CeaseScroll(){ 
    loop=false 
    if(timer) clearTimeout(timer) 
} 

function InitialiseScrollableArea(){ 
    objContainer=new ConstructObject('divContainer') 
    objScroller=new ConstructObject('divContent','divContainer') 
    objScroller.MoveArea(0,0) 
    objContainer.css.visibility='visible' 
    initialised=true; 
} 

function InitialiseScrollableArea1(){ 

    objContainer=new ConstructObject('divContainer1') 
    objScroller=new ConstructObject('divContent1','divContainer1') 
    objScroller.MoveArea(0,0) 
    objContainer.css.visibility='visible' 
    initialised=true; 
} 

function InitialiseScrollableArea2(){ 
    objContainer=new ConstructObject('divContainer2') 
    objScroller=new ConstructObject('divContent2','divContainer2') 
    objScroller.MoveArea(0,0) 
    objContainer.css.visibility='visible' 
    initialised=true; 
} 

function InitialiseScrollableArea3(){ 
    objContainer=new ConstructObject('divContainer3') 
    objScroller=new ConstructObject('divContent3','divContainer3') 
    objScroller.MoveArea(0,0) 
    objContainer.css.visibility='visible' 
    initialised=true; 
} 

function InitialiseScrollableArea4(){ 

    objContainer=new ConstructObject('divContainer4') 
    objScroller=new ConstructObject('divContent4','divContainer4') 
    objScroller.MoveArea(0,0) 
    objContainer.css.visibility='visible' 
    initialised=true; 
} 


function hiLite(imgID,imgObjName) {
	document.images[imgID].src = eval(imgObjName + ".src")
}

function doTooltip(e, msg) {
  if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
  Tooltip.show(e, msg);
}

function hideTip() {
  if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
  Tooltip.hide();
}


