var UTIL = {

	GetElement : function(elem) {
		var elem_id = elem;
		var return_elem;
		if( document.getElementById ) {// this is the way the standards work
			return_elem = document.getElementById( elem_id );
		}else if( document.all ) {// this is the way old msie versions work
			return_elem = document.all[elem_id];
		}else if( document.layers ) {// this is the way nn4 works
			return_elem = document.layers[elem_id];
		}
		return return_elem;
	},
	
	Hide : function(elem) {
		var this_elem = elem;
		UTIL.GetElement(this_elem).style.display = 'none';
	},
	
	Show : function(elem) {
		var this_elem = elem;
		UTIL.GetElement(this_elem).style.display = 'block';
	},
	
	Go : function(loc) {
		document.location = loc;
	},
	
	GetWindowDims : function() {
		var dims = [];
		if (parseInt(navigator.appVersion)>3) {
			if (navigator.appName=="Netscape") {
				dims[0] = window.innerWidth;
				dims[1] = window.innerHeight;
			}
			if (navigator.appName.indexOf("Microsoft")!=-1) {
				dims[0] = document.body.offsetWidth;
				dims[1] = document.body.offsetHeight;
			}
		}
		return dims;
	},
	
	ChangeElementBG : function(elem_id,new_img) {
		UTIL.GetElement(elem_id).style.backgroundImage= "url(/images/"+new_img+")";
	}
	
}

1;