//**************************************************************** 
// scripts needed by roehm 
// author: dr.ronald hinz, icon wendlingen
// date: 10/02/2000
//  
//**************************************************************** 

/* Browserabfrage: Layer-Object bekannt? */

<!--  auskommentieren
      if (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion.substring(0,1)) >=3))
      || ((navigator.appName == "Microsoft Internet  Explorer")&&(parseInt(navigator.appVersion.substring(0,1)) >=4)))
      {var version=true}

if (document.layers)
      {ns = 1; ie = 0;}
else  {ns = 0; ie = 1;}

ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

var delay=20;

function moveit(was, startx, starty, endx, endy, steps, wait)
{
        if(wait && wait>0)
                setTimeout('moveit('+was+','+startx+','+starty+','+endx+','+endy+','+steps+','+(wait-1)+')', delay);
        else
        {
                if(document.layers)
                {
                       
               
                                document.layers["f"+was].left=startx;
                                document.layers["f"+was].top=starty;
                
                }
                else
                {
                       
                
                                document.all["f"+was].style.left=startx;
                                document.all["f"+was].style.top=starty;
                
                }

                startx+=(endx-startx)/steps;
                starty+=(endy-starty)/steps;

                if(steps>0)
                        setTimeout('moveit('+was+','+startx+','+starty+','+endx+','+endy+','+(steps-1)+',0)', delay);
        }
}


function initmove()
{
        if(navigator.appName=="Netscape")
        {
                var w=innerWidth;
                var h=innerHeight;
        } else
        {
                var w=document.body.offsetWidth;
                var h=document.body.offsetHeight;
                
        }

        var mw=w/2;
        var mh=h/2;
        
// woher x, woher y, wohin x, wohin y, acc 
   		

		
		moveit(3,  200,  200, 20, 200, 20);
        moveit(4,  250,  250, 32, 250, 20);
		moveit(5,  300,  300, 40, 300, 20);
}

// Netscape Resize Fix

        widthCheck = window.innerWidth
        heightCheck = window.innerHeight
        window.onResize = resizeFix

function resizeFix()
{
        if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
        document.location.href = document.location.href
}

function resizeIE()
{
	if (ie4)
	{
        document.location.href = document.location.href;
	}
	if (ns4)
	{
		resizeFix()
	}
}

/* CrossBrowser */
function init() {if (ns) ebene=document.Ebene;
                 if (ie) ebene=Ebene.style;}
                                 
/* Funktion Schicht anzeigen */
function show(name) {if (ns)
                    {document.layers['' + name].visibility = "show";}
                                        else
                                        {document.all['' + name].style.visibility = "visible";}
                    }
                                        
/* Funktion Schicht verbergen */
function hide(name) {if (ns)
                    {document.layers['' + name].visibility = "hide";}
                                        else
                                        {document.all['' + name].style.visibility = "hidden";}
                                        }

/* Funktion Bilder vorladen */
function MM_preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  } }
}
										
// end scripting 
// **************** 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  