function addOnload(func){
	if(!window.onloadMethodList)window.onloadMethodList = new Array();
	window.onloadMethodList.push(func);
}



 window.onload = function(){
 	if(!window.onloadMethodList)window.onloadMethodList = new Array();
 	for(var i = 0 ; i < window.onloadMethodList.length; i++){
 	 window.onloadMethodList[i].call();
 	}
 }
 
 function addOnresize(func){
	if(!window.onresizeMethodList)window.onresizeMethodList = new Array();
	window.onresizeMethodList.push(func);
}

 window.onresize = function(){
 	if(!window.onresizeMethodList)window.onresizeMethodList = new Array();
 	for(var i = 0 ; i < window.onresizeMethodList.length; i++){
 	 window.onresizeMethodList[i].call();
 	}
 }
 
	function swapImage(url){
		document.getElementById("mainImage").src=url;
	}
	
	function swapWall(url,guest){
		document.getElementById("mainImage").src=url;
		document.getElementById("footerWorkinfo").innerHTML="<div id=\"footerWorkinfo\">"+guest+"</div>";
	}
 
function trace(value){
	try{
		document.getElementById("debugger").appendChild(document.createElement("br"));
		document.getElementById("debugger").appendChild(document.createTextNode(value));
	}catch(ex){alert(ex);}
}
