if(screen.availWidth && screen.availWidth > 1010)
{				   
	a = document.getElementsByTagName("link")[0];
	a.disabled = true;
	a = document.getElementsByTagName("link")[1];
	//weird disable IE bug
	a.disabled = true;
   	a.disabled = false;
}

loadswap = function() 
{	
	//check of browser getElementById ondersteunt.
	if(document.getElementById)
	{
		navRoot = document.getElementById("menu");		
		for (i=0; i<navRoot.childNodes.length; i++) 
		{
			node = navRoot.childNodes[i];
			if(node.nodeName=="LI") 
			{				
				node.onmouseover=function() 
				{					
					this.oldclassName = this.className;
					this.className = "over";	
					
					var img = this.getElementsByTagName("IMG")[0]
										
					if(img.src.substr(img.src.length - 1) != 'h')
						img.src += "h";
					else
						img.skip = 1;													
				}
				
				node.onmouseout=function() 
				{					
					this.className = this.oldclassName;		
					
					var img = this.getElementsByTagName("IMG")[0]
					
					if(!img.skip)
						img.src = img.src.substr(0, img.src.length - 1);
				}
			}
		}
	}
	//check of browser document.images ondersteunt
	if(document.images)
	{
		for(i=0; i<document.images.length; i++) 
		{
			if(document.images[i].alt.search("submenu: ") != -1)
			{				
				document.images[i].onmouseover = function()
				{
					if(this.src.substr(this.src.length - 1) != 'h')
						this.src += "h";
					else
						this.skip = 1
				}
				
				img = new Image;
				img.src = document.images[i].src;
				
				img = new Image;
				img.src = document.images[i].src + "h";
				
				document.images[i].onmouseout = function()
				{
					if(!this.skip)
						this.src = this.src.substr(0, this.src.length - 1);
				}
			}
			else
			{
				if(document.images[i].alt.search("menu: ") != -1)
				{									
					img = new Image;
					img.src = document.images[i].src + "h";												
				}
				
			}
			
		}
	}
}

window.onload=loadswap;
