//MENU BUTTONS 1.9

	var MaxFlash = 7;
	var sbtn;
	var FlashCount = MaxFlash;
	var DestURL;
	var DestFrame;
	var ButtonType = 0;
	var iBtn = 0;
	
	function DoStuff() {
		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 cBtnS(nc, sB) {
		if(FlashCount<MaxFlash) return;
		sbtn = sB;
		if((FlashCount==MaxFlash) && (sbtn.className!="BtnDis")) sbtn.className = nc;
	}
	
	function mr(NewURL, TargetFrame) {
		if(sbtn.className!="BtnDis") {
			DestURL = NewURL;
			DestFrame = eval(TargetFrame);
			fSel();
		}
	}

	function fSel() {
		if(sbtn.className=="BtnOff")
			sbtn.className="BtnUp";

		if(sbtn.className=="BtnDown")
			sbtn.className="BtnUp";
		else
			if(sbtn.className=="BtnUp")
				sbtn.className="BtnDown";
			else
				if(sbtn.className=="ImgBtnDown")
					sbtn.className="ImgBtnUp";
				else
					if(sbtn.className=="ImgBtnUp")
						sbtn.className="ImgBtnDown";

		if(FlashCount>0) {
			window.setTimeout("fSel()", 75);
			FlashCount--;
		} else {
			FlashCount = MaxFlash;
			var curClass = sbtn.className;
			if(curClass.substr(0,3)=="Img")
				sbtn.className = "ImgBtnOff";
			else
				sbtn.className = "BtnOff";
			DestFrame.location.href = DestURL;
		}
	}

	function CreateMenuItem(Name, URL, IsImg, IsSep, w, h, TargetFrame) {
		var sectionTitle = GetSection();
		var d = document;
		if(sectionTitle=="Software Division")
			sectionTitle = "Home";
		else
			if(sectionTitle=="Product Description")
				sectionTitle = "Description";

		if(typeof(TargetFrame)=="undefined") TargetFrame = "self";
		
		if(IsImg==1)
			if(NS)
				d.write("<a href=\"" + URL + "\" target=\"" + TargetFrame + "\"><img border=0 src=\"" + Name + "\" width=" + w + " height=" + h + "></a>");
			else {
				d.write("<img name=miImg" + iBtn + " class=ImgBtnOff onmouseover=\"cBtnS('ImgBtnUp', this);\" onmouseout=\"cBtnS('ImgBtnOff', this);\" onmousedown=\"cBtnS('ImgBtnDown', this);\" onmouseup=\"cBtnS('ImgBtnUp', this);\" onclick=\"mr('" + URL + "','" + TargetFrame + "');\" border=0 src=\"" + Name + "\" width=" + w + " height=" + h + ">");
				if(!oOP) d.images["miImg" + iBtn].style.height = h;
				iBtn++;
			}
		else
			if (NS)
				d.write("<td width=\"100%\"><a href=\"" + URL + "\">" + Name + "</a></td>");
			else {
				if(IsSep)
					d.write("<td width=100% class=BtnOffSep onmouseover=\"cBtnS('BtnUp',this);\" onmouseout=\"cBtnS('BtnOffSep',this);\" onmouseup=\"cBtnS('BtnUp',this);\" onmousedown=\"cBtnS('BtnDown',this);\" onclick=\"mr('" + URL + "','" + TargetFrame + "');\">" + Name + "</td>");
				else
					if(sectionTitle==Name)
						d.write("<td width=100% class=BtnDis onmouseover=\"cBtnS('BtnUp',this);\" onmouseout=\"cBtnS('BtnDis',this);\" onmouseup=\"cBtnS('BtnUp',this);\" onmousedown=\"cBtnS('BtnDown',this);\" onclick=\"mr('" + URL + "','" + TargetFrame + "');\">" + Name + "</td>");
					else
						d.write("<td width=100% class=BtnOff onmouseover=\"cBtnS('BtnUp',this);\" onmouseout=\"cBtnS('BtnOff',this);\" onmouseup=\"cBtnS('BtnUp',this);\" onmousedown=\"cBtnS('BtnDown',this);\" onclick=\"mr('" + URL + "','" + TargetFrame + "');\">" + Name + "</td>");
			}
	}

	function GetSection() {
		var c = document.title.split(":");
		return c[c.length-1].slice(1);
	}
