// JavaScript Document

/********************************************************
*  EXTERNAL LINK
********************************************************/
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";
 } 
}

/********************************************************
*  NAVHOVER
********************************************************/

navHover = function() {
	var lis = document.getElementById("navigation").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}

navHoverPrive = function() {
	var lis = document.getElementById("navigationPrive").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}



Event.observe(window, 'load', externalLinks, false);
if( navigator.userAgent.indexOf('MSIE') > 0 )Event.observe(window, 'load', navHover, false);
if( navigator.userAgent.indexOf('MSIE') > 0 )Event.observe(window, 'load', navHoverPrive, false);