ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;
ie5 = (navigator.appVersion.toLowerCase().indexOf("msie 5")>-1)?true:false;
ns6 = (navigator.appName=="Netscape" && navigator.appVersion.substring(0,1)=="5")?true:false;

mainCount=6;
onMenue=false;

////////////////////////////////////////////////////////////
// Layer anzeigen
//////////////////////////////////////////////////////////////

function showLayer(layerName,x){
if (layerName!=""&&onMenue==true)
{ var name=layerName+x;
			if (ns4) eval('document.'+Layer[x]+'.visibility="show"');
			if (ie4) eval('document.all.'+name+'.style.visibility="visible"');
			if (ns6) document.getElementById(name).style.visibility="visible";
}
}
  
/////////////////////////////////////////////////////////////
// Layer verbergen
////////////////////////////////////////////////////////////
      
function hideLayer(){

	for (var x=1;x<=mainCount;x++)
	{
	var name="Layer"+x;
	
			if (ns4) eval('document.'+Layer[x]+'.visibility="hide"');
			if (ie4) eval('document.all.'+name+'.style.visibility="hidden"');
			if (ns6) document.getElementById(name).style.visibility="hidden";

}
}

function offMain()
{
onMenue=false;
}

function onMain(id){
	onMenue=true;
	hideLayer();
	showLayer("Layer",id);
	}

function onLayer(elem,farbe){
elem.style.backgroundColor = farbe;
elem.style.cursor = 'hand';
onMenue=true;
}

function offLayer(elem,farbe){
elem.style.backgroundColor = farbe;
onMenue=false;
}

function clickLayer(sitename){
window.location.href = sitename;
}

function times(){

	if(onMenue==false)
	{
		MM_swapImgRestore();
		hideLayer();
	}	
	setTimeout('times()',1500);
}

function changePic(pic,pfad)
{
var picname="img"+pic;

	if (ns4) eval('document.'+picname+'.src=pfad');
	if (ie4) eval('document.all.'+picname+'.src = pfad');
	if (ns6) document.getElementById(picname).src=pfad;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImgRestoreBig() { //v3.0
  var i,x,a=document.MM_srBig; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
MM_swapImgRestore();
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImageBig() { //v3.0
MM_swapImgRestoreBig();
  var i,j=0,x,a=MM_swapImageBig.arguments; document.MM_srBig=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_srBig[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

var dorthin = null;
var w = 0;
var h = 0;

function OpenWin(datei,name,w,h) {
        if (window.screen) {
        var hori = screen.availWidth;
        var verti = screen.availHeight;
        dorthin = window.open(datei,name,'width='+ w  +',height='+ h +',left='+((hori - w- 10)* .5) +',top='+((verti - h- 30)* .5))
dorthin.focus()
}
}
function Over(elem, farbe)
{elem.style.backgroundColor = farbe;
}

function Out(elem, farbe)
{elem.style.backgroundColor = farbe;
}
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
win.focus();}
wmtt = null;
rfhd = null;
document.onmousemove = updateWMTT;
lp = -150;
if (navigator.appName == "Microsoft Internet Explorer")
{
	tp = 230;
}
else tp = -350;
rfmax = 16;
function an(lay)
{
if (navigator.appName == "Microsoft Internet Explorer")
{
     for (var i = 1; i <= rfmax; i++)
	 {
    }
}
   wmtt = document.getElementById(lay);
   wmtt.style.display = "block";
}


function updateWMTT(e) {
	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	if (wmtt != null) {
		var aw = document.body.clientWidth;
		if((x+230)>aw)
		{
			x = x-240;
			wmtt.style.left = (x + lp) + "px";
		}
		else
		{
			wmtt.style.left = (x + lp) + "px";
		}
		wmtt.style.top 	= (y + tp) + "px";
	}
}
function aus(lay)
{
  if (navigator.appName == "Microsoft Internet Explorer"){
      for (var i = 1; i <= rfmax; i++){
      }
   }
   wmtt = document.getElementById(lay);
   wmtt.style.display = "none";
}

////NO NEED TO EDIT BELOW THIS LINE////////////
var slidespeed=1
var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>')
var actualwidth=''
var cross_slide, ns_slide

function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+slideshowgap+"px"
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+slideshowgap
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",30)
}


function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"

if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"

}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+slideshowgap

if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+slideshowgap
}
}

