var Event = {};

Event.RegisterEventHandler = function(obj, Name, EventCode, Bubling){
	if(typeof(Bubling) == "undefined"){
		Bubling = false;
	}
	if(document.all){
		obj.attachEvent(Name, EventCode);//element.detachEvent('onclick',spyOnUser)
	}else{
		Name = Name.substr(2, (Name.length - 2));
		obj.addEventListener(Name, EventCode, Bubling);
	}
}

Event.RemoveEventHandler = function(obj, Name, EventCode, Bubling){
	if(typeof(Bubling) == "undefined"){
		Bubling = false;
	}
	if(document.all){
		obj.detachEvent(Name, EventCode);
	}else{
		Name = Name.substr(2, (Name.length - 2));
		obj.removeEventListener(Name, EventCode, Bubling);
	}
}

function setFlashHeight(divid, newH, timeout){
	o = document.getElementById(divid);
	
	if (!timeout) timeout = 0;
	
	if(o) {
		setTimeout('resizeFlash(o,'+newH+')',timeout);
	}
}

function resizeFlash(div, newH)
{
	div.style.height = newH+"px";
}