window.onload = function () {
	if( arguments.callee.actions){
		for(var ii=0;ii < arguments.callee.actions.length;ii++){
			if(typeof arguments.callee.actions[ii] === "function"){
				arguments.callee.actions[ii]();
			}		
		}
	}
};

function addLoadEvent(func){
	if(window.onload.actions === undefined)window.onload.actions = Array();
	window.onload.actions.push(func);
}

function initsIFR(){
	if(typeof sIFR == "function"){	
		sIFR.replaceElement(
			named({
				sSelector:"h1",
				sFlashSrc:"www/swf/LucidaSans.swf",
				sColor:"#34B4E4",		
				sWmode:"transparent"
			})
		);
		sIFR.replaceElement(
			named({
				sSelector:"h2",
				sFlashSrc:"www/swf/LucidaSans.swf",
				sColor:"#F68933",		
				sWmode:"transparent"
			})
		);
		sIFR.replaceElement(
			named({
				sSelector:"div#header blockquote",
				sFlashSrc:"www/swf/Frutiger.swf",
				sColor:"#34B4E4",
				sWmode:"transparent"
			})
		);				
		sIFR.replaceElement(
				named({
					sSelector:"div#header em",
					sFlashSrc:"www/swf/Frutiger.swf",
					sColor:"#F68933",
					sWmode:"transparent"
				})
		);			
		sIFR.replaceElement(
			named({
				sSelector:"div#bottombar h3",
				sFlashSrc:"www/swf/Vintage.swf",
				sColor:"#E44E35",
				sWmode:"transparent"
			})
		);	
	}
}	

if (typeof addLoadEvent == 'function'){
	addLoadEvent(function(){
		initsIFR();
	});
}

function openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

/* SUBMENU */
/*
var Hover = Class.create();
Object.extend(Hover.prototype,{
	initialize: function(target) {
		var li = $(document.body).select(target);
		
		this.events = {
				_hover_over: this.__hover_over.bind(this),
				_hover_out: this.__hover_out.bind(this)
		}
		
		li.invoke('observe', "mouseover", this.events._hover_over);
		li.invoke('observe', "mouseout", this.events._hover_out);
	},
	__hover_over: function(e){
		e.element().up().addClassName("hover");
	},
	__hover_out: function(e){
		e.element().up().removeClassName("hover");
	}
});
addLoadEvent(function(){
		new Hover('#menu li a');
});
*/
sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className += " hover";
		}
		sfEls[i].onmouseout=function() {
			this.className = this.className.replace(new RegExp(" hover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
