// JavaScript Document
/*
	function browserweiche()
	{
		ie = ((document.all) && (window.offscreenBuffering)) ? true : false;
        nn = ((document.captureEvents) && (!document.getElementById)) ? true : false;
        mz = ((document.getElementById) && (!document.all) && (document.documentElement)) ? true : false; 
        op = ((document.getElementById) && (navigator.userAgent.indexOf('Opera') != -1)) ? true : false;
		
		if (ie) { return browser="ie"); }
		else if (nn) { return browser="nn"); }
		else if (mz) { return browser="mz"); }
		else if (op) { return browser="op"); }
	}
	*/

    <!-- changes images
    function submenu_over(bild,imgObj)
    {
      if (imgObj)
      {
        self.document.images[imgObj].src = "fileadmin/tmpl/main/img/"+bild;
      }	
    }

    function submenu_out(bild,imgObj)
    {
      if (imgObj)
      {
        self.document.images[imgObj].src = "fileadmin/tmpl/main/img/"+bild; 
      } 
    }
	
    /* Mouseover für Menü 1 */
    function bg_pic(bild,mObj,linkObj)
    {
		
      if (bild && mObj)
      {
	  
	  	if (((document.all) && (window.offscreenBuffering)) ? true : false)
		{
		
	  	document.getElementById(mObj).style.background = "url(fileadmin/tmpl/main/img/"+bild+")";
		}
		else
		{
		document.getElementById(mObj).style.backgroundColor = "#CCCCCC";
		}
		
		document.getElementById(mObj).style.padding = "0px 11px 0px 11px";
		document.getElementById(mObj).style.border ="1px solid #999999";
		document.getElementById(linkObj).style.color ="#000000";
		
		
      } else if (!bild && mObj)
      {
	  	document.getElementById(mObj).style.background = "url(fileadmin/tmpl/main/img/spacer.gif)";
		document.getElementById(mObj).style.border ="";
		document.getElementById(linkObj).style.color ="#FFFFFF";
		
		/* Die Rahmenbreite wird je nach Browser unterschiedlich gesetzt */
		
		if (((document.all) && (window.offscreenBuffering)) ? true : false)
		{
			/* wenn ie... */
			document.getElementById(mObj).style.padding = "0px 12px 0px 12px";
		}
		else
		{
			/* wenn nicht... */
			document.getElementById(mObj).style.padding = "0px 11px 0px 11px";
		}
      }
    }



	/* Menü-Over für Netscape etc. */
	function ns_over (mObj,linkObj)
	{
		mObj.style.backgroundColor = "#CCCCCC";
		mObj.style.border ="1px solid #999999";
		mObj.style.padding = "0px 11px 0px 11px";
		document.getElementById(linkObj).style.color ="#000000";
	}
	
	function ns_out (mObj,linkObj)
	{
		mObj.style.backgroundColor = "";
		mObj.style.border ="0px";
		mObj.style.padding = "0px 12px 0px 12px";
		document.getElementById(linkObj).style.color ="#FFFFFF";
	}



    /* Mouseover für Toplink */

    function toplink_over(bild,mObj,linkObj)
    {

  	document.getElementById(mObj).style.background = "url(fileadmin/tmpl/main/img/"+bild+")";
	document.getElementById(mObj).style.padding = "0px 12px 0px 0px";
	document.getElementById(mObj).style.bordertop ="1px solid #999999";
	document.getElementById(mObj).style.borderright ="1px solid #999999";
	document.getElementById(linkObj).style.color ="#000000";

    }

   function toplink_out(bild,mObj,linkObj)
    {

  	document.getElementById(mObj).style.background = "url(fileadmin/tmpl/main/img/"+bild+")";
	document.getElementById(mObj).style.padding = "0px 12px 0px 0px";
	document.getElementById(mObj).style.border ="";
	document.getElementById(linkObj).style.color ="#FFFFFF";

    }
	
    //-->
	
/*	<!-- changes bg color
    function menu_over(mObj,col)
    {
      if (mObj)
      {
        self.document.id[mObj].style.backgroundColor = col;
      }	
    }

    function menu_out(mObj,col)
    {
      if (mObj)
      {
        self.document.id[mObj].style.backgroundColor = '';
      }	
    }
	
	
	    function menu_bg(mObj,bg,txt)
    {
      if (mObj)
      {
        mObj.style.backgroundColor = bg;
		document.[mObj.A].style.color = txt;
      }	
    }
    //-->*/
	
		<!-- changes bg color
    function menu_bg(mObj,bg)
    {
      if (mObj)
      {
        /*document.getElementById(mObj).style.backgroundColor = bg;*/
		mObj.style.backgroundColor = bg;
	  }
	}
	  
	  
    function menu_act(mObj,Link,bg,txt)
    {
      if (mObj)
      {
        /*document.getElementById(mObj).style.backgroundColor = bg;*/
		mObj.style.backgroundColor = bg;
	  }
	  
	  if (Link)
	  {
		document.getElementById(Link).style.color = txt;
		/*document.[mObj.A].style.color = txt;*/
      }	
    }
	//-->
	
	/* Link */
	function f_l(id)
	{
		window.location.href = "index.php?id="+id;
	}
	

	/* Bilder vorausladen */
	function MM_preloadImages() 
	{
		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];}
		}
	}