	/* Copyright 2006-2007 javascript-array.com */
	/*          Script used with permission                */

/* Force External Links	- This is necessary for effective XHTL 1.1 Transitional compliance */
	function externalLinks() { 
		if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); 
			for (var i=0; i<anchors.length; i++) { var anchor = anchors[i]; 
			if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank"; } 
	} 
	window.onload = externalLinks;
	
	
	/* Menu Animation Script */
		var timeout	= 500;
		var closetimer	= 0;
		var ddmenuitem	= 0;

	// open hidden layer
		function mopen(id)
		{	
	// cancel close timer
			mcancelclosetime();
			// close old layer
			if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
			// get new layer and show it
			ddmenuitem = document.getElementById(id);
			ddmenuitem.style.visibility = 'visible';
		}
	// Close showed layer
		function mclose()
		{
			if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
		}
	// Close the Timer
		function mclosetime()
		{
			closetimer = window.setTimeout(mclose, timeout);
		}
	// Cancel close timer
		function mcancelclosetime()
		{
			if(closetimer)
			{
				window.clearTimeout(closetimer);
				closetimer = null;
			}
		}
		// close layer when click-out
		document.onclick = mclose; 
		

	/* Highlights a menu button onload */
		var HighlightButton	= 0;
		/* Get the Menu Button ID from the BODY tag OnLoad Function and change it's colour */		
		function HighLightMenu(id)
		{	
			HighlightButton = document.getElementById(id);
			HighlightButton.style.Color = '#ff0000';
			HighlightButton.style.backgroundColor = '#660000';		
		}
