
//MENU BUTTONS 1.9

	var MaxFlash = 7;
	var sButton;
	var FlashCount = MaxFlash;
	var DestURL;
	var DestFrame;
	var ButtonType = 0;
	var iBtn = 0;
	
	function DoStuff() {
		show2();
		if((IE&&(BV>=6))||SM) {
			tds = document.getElementsByTagName("TD");
			for(var i=0; i<tds.length; i++)
				if(tds[i].className!="")
					tds[i].style.cursor = "pointer";
		}
	}

	function ChangeButtonState(NewClass, sB) {
		if(FlashCount<MaxFlash)
			return;
		sButton = sB;
		if((FlashCount==MaxFlash)&&(sButton.className!="BtnDis"))
			sButton.className = NewClass;
		if(NewClass=="BtnUp"&&!OP)
			status = sButton.innerHTML.split("  ").join("");
		else
			status = "";
	}
	
	function MenuRedir(NewURL, TargetFrame) {
		if(sButton.className!="BtnDis") {
			DestURL = NewURL;
			DestFrame = eval(TargetFrame);
			FlashSelection();
		}
	}

	function FlashSelection() {
		if(sButton.className=="BtnOff")
			sButton.className="BtnUp";

		if(sButton.className=="BtnDown") {
			//PlaySound();
			sButton.className="BtnUp";
		} else
			if(sButton.className=="BtnUp")
				sButton.className="BtnDown";
			else
				if(sButton.className=="ImgBtnDown")
					sButton.className="ImgBtnUp";
				else
					if(sButton.className=="ImgBtnUp")
						sButton.className="ImgBtnDown";

		if(FlashCount>0) {
			window.setTimeout("FlashSelection()", 75);
			FlashCount--;
		} else {
			FlashCount = MaxFlash;
			var curClass = sButton.className;
			if(curClass.substr(0,3)=="Img")
				sButton.className = "ImgBtnOff";
			else
				sButton.className = "BtnOff";
			DestFrame.location.href = DestURL;
		}
	}

	function CreateMenuItem(Name, URL, IsImg, IsSep, w, h, TargetFrame) {
		var sectionTitle = GetSection();


		if(typeof(TargetFrame)=="undefined") TargetFrame = "self";
		
		if(IsImg==1)
			if(NS)
				document.write("<a href=\"" + URL + "\" target=\"" + TargetFrame + "\"><img border=0 src=\"" + Name + "\" width=" + w + " height=" + h + "></a>");
			else {
				document.write("<img name=miImg" + iBtn + " class=ImgBtnOff onmouseover=\"window.status='Click to go to the product`s home page';ChangeButtonState('ImgBtnUp', this);\" onmouseout=\"window.status='';ChangeButtonState('ImgBtnOff', this);\" onmousedown=\"ChangeButtonState('ImgBtnDown', this);\" onmouseup=\"ChangeButtonState('ImgBtnUp', this);\" onclick=\"MenuRedir('" + URL + "','" + TargetFrame + "');\" border=0 src=\"" + Name + "\" width=" + w + " height=" + h + ">");
				if(!OP) document.images["miImg" + iBtn].style.height = h;
				iBtn++;
			}
		else
			if (NS)
				document.write("<td width=\"100%\"><a href=\"" + URL + "\">" + Name + "</a></td>");
			else {
				if(IsSep)
					document.write("<td width=100% class=BtnOffSep onmouseover=\"ChangeButtonState('BtnUp',this);\" onmouseout=\"window.status='';ChangeButtonState('BtnOffSep',this);\" onmouseup=\"ChangeButtonState('BtnUp',this);\" onmousedown=\"ChangeButtonState('BtnDown',this);\" onclick=\"MenuRedir('" + URL + "','" + TargetFrame + "');\">" + Name + "</td>");
				else
					if(sectionTitle==Name)
						document.write("<td width=100% class=BtnDis onmouseover=\"ChangeButtonState('BtnUp',this);\" onmouseout=\"window.status='';ChangeButtonState('BtnDis',this);\" onmouseup=\"ChangeButtonState('BtnUp',this);\" onmousedown=\"ChangeButtonState('BtnDown',this);\" onclick=\"MenuRedir('" + URL + "','" + TargetFrame + "');\">" + Name + "</td>");
					else
						document.write("<td width=100% class=BtnOff onmouseover=\"ChangeButtonState('BtnUp',this);\" onmouseout=\"window.status='';ChangeButtonState('BtnOff',this);\" onmouseup=\"ChangeButtonState('BtnUp',this);\" onmousedown=\"ChangeButtonState('BtnDown',this);\" onclick=\"MenuRedir('" + URL + "','" + TargetFrame + "');\">" + Name + "</td>");
			}
	}

	function GetSection() {
		var docTitle = document.title;
		var chunks = new Array;
		chunks = docTitle.split(":");
		var st = chunks[chunks.length-1];
		return(st.slice(1));
	}
	
//FOR WIN-IE5 ONLY

	function MakeSound() {
		if(IE) {
			var src = event.srcElement;
			if(src.tagName=="IMG")
				src = event.srcElement.parentElement;
			if(src.tagName == "A") {
				//PlaySound();
				window.setTimeout("FollowURL('" + src.href + "')", 1000);
				return false;
			}
		}
	}

	/* function PlaySound() {
		if(IE)
			document.embeds["ClickSound"].play();
		
	} */

	function FollowURL(url) {
		location.href = url;
	}

	//document.onclick = MakeSound;

	function popup(url, name, rs, w, h) {
	var resize = "";
	if (rs) {
		resize = "resizable,";
	}
	popupWin = window.open(url, name, 'scrollbars,menubar,' + resize + 'width=' + w + ',height=' + h);
}