	function menuover(menustr)
	{
		clearmenu();
		eval(getIdElement('m2'+menustr)).display="block";
		return;
	}
		
	function clearmenu()
	{
		eval(getIdElement('m2firma')).display="none";
		eval(getIdElement('m2dienst')).display="none";
		eval(getIdElement('m2support')).display="none";
		eval(getIdElement('m2kontakt')).display="none";
		return;
	}
	
	function getIdElement(elementname)
	{
		if (document.ids)
		{
			//Netscape 4.x
			return ('document.' + elementname);
		}
		else if (document.all)
		{
			// IE
			return (elementname+'.style');
		}
		else if (document.getElementById)
		{
			// Netscape 6.x
			return ('document.getElementById("'+elementname+'").style');
		}
	}

	function replaceimg(to, from, d)
	{
		var pfrom = findpimg(from);
		if (pfrom==null) pfrom = from;
		d.images[to].src = pfrom;
	}
	
	function preloadimg()
	{
		if(document.images)
		{ 
			if(!document.pimg) document.pimg=new Array();
   			var i,j=document.pimg.length,a=preloadimg.arguments; 
			for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0)
			{ 
				document.pimg[j]=new Image; 
				document.pimg[j++].src=a[i];
			}
		}
	}			
	
	function findpimg(img)
	{
		if (!document.pimg) return (null);
		var i;
		for(i=0; i<document.pimg.length; i++) if (document.pimg[i].src.indexOf(img)>0) return (document.pimg[i].src);
		return (null);
	}				
