// JavaScript Document
var categoryMenu = new FSMenu("categoryMenu", false, "visibility", "visible", "hidden");
categoryMenu.showDelay = 300;
categoryMenu.switchDelay = 0;
categoryMenu.hideDelay = 350;
categoryMenu.cssLitClass = "menuButtonSelected";
categoryMenu.showOnClick = 1;
categoryMenu.animInSpeed = 1;
categoryMenu.animOutSpeed = 1;

if(navigator.appVersion.indexOf("MSIE 6") != -1 || navigator.platform.indexOf("Linux") != -1)  {
	FSMenu.prototype.onshow = function (mN) {
		with (this) {
			if(window.location.protocol.indexOf('https:') == -1) {
				var m = menus[mN];
		 		// Create a new transparent IFRAME if needed, and insert under the menu.
				if (!m.ifr) {
					m.ifr = document.createElement("iframe");
					m.ifr.src = "about:blank";
					with (m.ifr.style) {
						position = "absolute";
						border = "none";
						filter = "progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";
					}
					m.lyr.ref.parentNode.insertBefore(m.ifr, m.lyr.ref);
				}
		 		// Position and show it on each call.
				with (m.ifr.style) {
					left = m.lyr.ref.offsetLeft + "px";
					top = m.lyr.ref.offsetTop + "px";
					width = m.lyr.ref.offsetWidth + "px";
					height = (m.lyr.ref.offsetHeight + 10) + "px";
					visibility = "visible";
				}
			}
		}
	};
	
	FSMenu.prototype.onhide = function (mN) {
		with (this) {
			var m = menus[mN];
			if (m.ifr) {
				m.ifr.style.visibility = "hidden";
			}
		}
	};
}
