// JavaScript Document

// VorLaden wenn der Browser Arrays kennt
function BrowserTest ( ) {
if ((parseInt( rel ) >= 3.0 && xBrowserName=="Netscape") || (parseInt( rel ) >= 4.0 && xBrowserName=="Microsoft Internet Explorer"))
load ();
}
BrowserTest();
function ani() {
        xCounter=xCounter+1;
        if (xCounter==0) setTimeout ("ani()",xZeit);
        else if (xCounter >0 && xCounter <= xDurchlauf) {
                document.images['img01'].src=aImage[xCounter].src;
                setTimeout ("ani()",xZeit);
                }
        else if (xCounter > xDurchlauf) {
                document.images['img01'].src=aImage[0].src;
                xCounter=-1;
                ani();
                }
       }


window.onload=function()
{	
	if(document.all) addOverState("mainMenu")
	if(document.all) addOverState("subMenu")		
}


/* function add class over on li element when mouse goes over it - necessary for IE 6 */
function addOverState(id) {
	if ( !document.getElementById(id) ) return false;

	var arrLi = document.getElementById(id).getElementsByTagName("LI");
	for (var i=0; i<arrLi.length; i++) {
		arrLi[i].onmouseover=function() {
			if( this.className != 'selected')
			{
				if( this.className != 'exli')
					this.className +="over";			
			}
			
		}
		arrLi[i].onmouseout=function() {
			if( this.className != 'selected')			
			{
				if( this.className != 'exli')
					this.className="";
			}
		}
	}
}
