
/*@ MySimpleDDMenu Class
*. ----------------------------------
*. Last Modified : 05 April 2007
*. ----------------------------------
*. MySimpleDDMenu
	- linkSub ()
	- hideSub ()
	- showSub ()
*. ----------------------------------
*. This is a very simple drop down menu
*. 
*. 
*/

MySimpleDDMenu = function () {
}
MySimpleDDMenu.prototype.linkSub = function () {
	var oTgt = document.getElementById(arguments[0]);
	var sTgt = document.getElementById(arguments[1]);
	
	//default
	this.hideSub(sTgt)
	
	oTgt.onmouseover = Delegate.create(this, this.showSub, sTgt);
	oTgt.onmouseout = Delegate.create(this, this.hideSub, sTgt);
}
MySimpleDDMenu.prototype.hideSub = function (o) {
	//trace(o.id+", "+'to be none');
	o.style.display = "none";
}
MySimpleDDMenu.prototype.showSub = function (o) {
	//trace(o.id+", "+'to be showed');
	o.style.display = "block";
}
