//use like trace: debug("contents: " + variable);		
function trace(aMsg) {
	setTimeout(function() { throw new Error("[debug] " + aMsg); }, 0);
}



function changeBgImg(impetus, changeling, newbgimg, oldbgimg) {
	//trace("changeBgImg:");
	
	
	
	//ALTER CSS BACKGROUND IMAGE
	//document.getElementById(changeling).style.backgroundImage="url('images/template/main_menu/p_and_a_about_rollover.gif')";
	document.getElementById(changeling).style.backgroundImage="url("+newbgimg+")";
	
	
	//CHANGE BACKGROUND IMAGE OF TARGET ON MOUSEOUT
	impetus.onmouseout = function() {
	
		document.getElementById(changeling).style.backgroundImage="url("+oldbgimg+")";
		//trace("changeback");
		
	
	}
	
}
