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:"ul#menu li.normal",
				sFlashSrc:"/www/swf/Vintage.swf",
				sColor:"#E44E35",		
				sWmode:"transparent"
			})
		);	
		sIFR.replaceElement(
			named({
				sSelector:"ul#menu li.selected",
				sFlashSrc:"/www/swf/Vintage.swf",
				sColor:"#FFA6D2",
				sWmode:"transparent"
			})
		);		
		sIFR.replaceElement(
			named({
				sSelector:"h1",
				sFlashSrc:"/www/swf/King_Cool_KC.swf",
				sColor:"#E44E35",
				sWmode:"transparent",
				sCase: "upper"
			})
		);		
		sIFR.replaceElement(
				named({
					sSelector:"div#bottombar h2",
					sFlashSrc:"/www/swf/Vintage.swf",
					sColor:"#759BE3",
					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);
}



function showhide(id) {
	if (document.getElementById) {
		obj = document.getElementById(id);
		if (val == "Anders: ") {
			obj.style.display = "block";
		} else {
			obj.style.display = "none";
		}
	}
}


function getFail(sel,fld){
  if (sel.options[sel.options.selectedIndex].value == 'Anders: '){ 
     fld.style.display = "inline"; 
     fld.focus();
  }
  else { 
     fld.style.display = "none";
  }
}




