/* ie.js 11/05 Lindsay McLennan
 * changes:
 */
function addLoadEvent(func){
var oldonload = window.onload;
if (typeof window.onload != 'function'){window.onload = func;}
else{window.onload = function(){oldonload();func();};}
}

function deframe(){if (top.location != location) top.location.href = document.location.href;}

function pop(url){
p = window.open(url,'popeye','height=500,width=650,top=40,left=40,resizable=yes,scrollbars=no');
if (window.focus){p.focus()}
}

addLoadEvent(deframe);

if (document.all && document.getElementById && document.createTextNode && window.attachEvent){
	addLoadEvent(function(){
		var nodes = document.getElementById("nav").getElementsByTagName("LI");
		for (var i=0; i<nodes.length; ++i){
			nodes[i].onmouseover = function(){
				this.className += " menu-over";
			}
			nodes[i].onmouseout = function(){
				this.className = this.className.replace(new RegExp(" menu-over\\b"), "");
			}
		}
	});
}
