function XBrowserAddEvent(target,eventName,handlerName){if ( target.addEventListener ) { target.addEventListener(eventName, handlerName, false); } else if ( target.attachEvent ) { target.attachEvent("on" + eventName, handlerName);
} else {
var originalHandler = target["on" + eventName];
if ( originalHandler ) { target["on" + eventName] = function(e){originalHandler(e);};
} else { target["on" + eventName] = handlerName; }
} }

function MenuTypeWindow(o)
{
	var self=this;this.o=o;
	this.controls=[];
	this.Ini=function()
	{
		self.o=document.getElementById(o);
		//-- on mouse up and down
		var img =self.o.getElementsByTagName("img");
		for(i=0;i<img.length;i++)
		{
			img[i].onmousemove=function(){this.src="/images/tab/"+this.getAttribute("swapin")}
			img[i].onmouseout=function(){this.src="/images/tab/"+this.getAttribute("swapout")}
		}
	}
	this.onclick=function(){}
	this.onMouseOver=function(){}
}
function ItemMenu(o)
{


}
//var menuTypeWindow=new MenuTypeWindow("menu");
//XBrowserAddEvent(window, "load", menuTypeWindow.Ini);
//XBrowserAddEvent(window, "unload", s.Detructer);
