function externalLinks(){
	for (var i=0; (a=document.getElementsByTagName('a')[i]);i++) {
          if (a.getAttribute("rel") == "external")
               a.target = "_blank";
	}
}

function navHover(){
	for (var i=0; li=document.getElementById('nav').getElementsByTagName('LI')[i];i++) {
		li.onmouseover = function(){
			this.className+= ' over';
		}
		li.onmouseout = function(){
			this.className = this.className.replace(' over','');
		}
	}
}

function toggleDisplay(elem, displayVal) {
	elem.style.display = displayVal;
}

function openWindow(width,height,url,name) {
    x = (640 - width)/2, y = (480 - height)/2;

	if (screen) {
	    y = (screen.availHeight - height)/2;
		x = (screen.availWidth - width)/2;
	}

	name = window.open(url,name,'width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
	name.focus();
				
}

function init(){
	if(arguments.callee.done)return;
	arguments.callee.done=true;
	externalLinks();
	/*@cc_on @*/
	/*@if (@_win32)
		navHover();
	/*@end @*/
};


if(document.addEventListener){document.addEventListener("DOMContentLoaded", init, null);}
/*@cc_on @*/
/*@if (@_win32)
  document.write('<script defer="defer" src="/js/javascript_ieo.js"><'+'/script>');
/*@end @*/
window.onload=init;