


//customised addEvent function for having a proper onload function call.
function addEvent(obj, evType, fn){ 
 if (obj.addEventListener){ 
   obj.addEventListener(evType, fn, false); 
   return true; 
 } else if (obj.attachEvent){ 
   var r = obj.attachEvent("on"+evType, fn); 
   return r; 
 } else { 
   return false; 
 } 
}


function initPage()
{
	
	if(document.getElementById("flash_holder")) { 
		var so = new SWFObject("flash/home001.swf", "flash_area", "928", "300", "8", "#ffffff");
		so.addParam("wmode", "transparent");
		so.write("flash_holder");  
	}

	
}


function highlightCurrentLink() {
  
	var currentLocation = document.location.href;
	var targetNode;

	targetNode = document;
	
	// You can speed up this script, by preventing it searching through the entire document
	// Uncomment the line below, and it will only search through the tag with ID 'navigation'
	
	//targetNode = document.getElementById("navigation");
	
	links = targetNode.getElementsByTagName("a");

	// Search thorugh all links
	for (i=0; i<links.length; i++) {
		linkHref = links[i].href;
		
		if (linkHref==currentLocation) {
			// Set class for different browsers, if link is this link
			links[i].setAttribute("className", links[i].parentNode.getAttribute("id")+"_currentlink");
			links[i].setAttribute("class", links[i].parentNode.getAttribute("id")+"_currentlink");      
		}
	}
}


addEvent(window, 'load', initPage);
addEvent(window, 'load', highlightCurrentLink);



