function i(j, k){
	if (k=="1")
	document.getElementById(j).style.backgroundColor = "#0000FF";
	else
		document.getElementById(j).style.backgroundColor = "#007FFF";
	}


	function Menu(currentPage){

		document.write('<table style="text-align:center; cursor:pointer; font-family:arial; font-size: 9pt; color: white" width="800" height="22" bgcolor=#007FFF cellspacing="0" cellpadding="0" border="0">');
		document.write('<td style="width:20px">&nbsp;</td>');

		switch(currentPage){
			case 1: document.write("<td style=\"width:60px; cursor:pointer\" id=\"c1\" onmouseover=\"i(\'c1\', \'1\')\" onmouseout=\"i(\'c1\', \'2\')\" onclick=\"document.location=\'./index.html\'\">HOME</td>");
			document.write("<td style=\"width:65px\" id=\"c2\" onmouseover=\"i(\'c2\', \'1\')\" onmouseout=\"i(\'c2\', \'2\')\" onclick=\"document.location=\'./about.html\'\">ABOUT</td>");
			document.write("<td style=\"width:70px\" id=\"c3\" onmouseover=\"i(\'c3\', \'1\')\" onmouseout=\"i(\'c3\', \'2\')\" onclick=\"document.location=\'./order.html\'\">ORDER</td>");
			document.write("<td style=\"width:105px\" id=\"c4\" onmouseover=\"i(\'c4\', \'1\')\" onmouseout=\"i(\'c4\', \'2\')\" onclick=\"document.location=\'./downloads.html\'\">DOWNLOADS</td>");
			document.write("<td style=\"width:90px\" id=\"c5\" onmouseover=\"i(\'c5\', \'1\')\" onmouseout=\"i(\'c5\', \'2\')\" onclick=\"document.location=\'./feedback.html\'\">FEEDBACK</td>");
			document.write("<td style=\"width:80px\" id=\"c6\" onmouseover=\"i(\'c6\', \'1\')\" onmouseout=\"i(\'c6\', \'2\')\" onclick=\"document.location=\'./contact.html\'\">CONTACT</td>");
			break;

			case 2: document.write("<td style=\"width:60px; cursor:pointer\" id=\"c1\" onmouseover=\"i(\'c1\', \'1\')\" onmouseout=\"i(\'c1\', \'2\')\" onclick=\"document.location=\'./index.html\'\">HOME</td>");
			document.write("<td style=\"width:65px; background-color:#0000FF\" id=\"c2\" onclick=\"document.location=\'./about.html\'\">ABOUT</td>");
			document.write("<td style=\"width:70px\" id=\"c3\" onmouseover=\"i(\'c3\', \'1\')\" onmouseout=\"i(\'c3\', \'2\')\" onclick=\"document.location=\'./order.html\'\">ORDER</td>");
			document.write("<td style=\"width:105px\" id=\"c4\" onmouseover=\"i(\'c4\', \'1\')\" onmouseout=\"i(\'c4\', \'2\')\" onclick=\"document.location=\'./downloads.html\'\">DOWNLOADS</td>");
			document.write("<td style=\"width:90px\" id=\"c5\" onmouseover=\"i(\'c5\', \'1\')\" onmouseout=\"i(\'c5\', \'2\')\" onclick=\"document.location=\'./feedback.html\'\">FEEDBACK</td>");
			document.write("<td style=\"width:80px\" id=\"c6\" onmouseover=\"i(\'c6\', \'1\')\" onmouseout=\"i(\'c6\', \'2\')\" onclick=\"document.location=\'./contact.html\'\">CONTACT</td>");
			break;

			case 3: document.write("<td style=\"width:60px; cursor:pointer\" id=\"c1\" onmouseover=\"i(\'c1\', \'1\')\" onmouseout=\"i(\'c1\', \'2\')\" onclick=\"document.location=\'./index.html\'\">HOME</td>");
			document.write("<td style=\"width:65px\" id=\"c2\" onmouseover=\"i(\'c2\', \'1\')\" onmouseout=\"i(\'c2\', \'2\')\" onclick=\"document.location=\'./about.html\'\">ABOUT</td>");
			document.write("<td style=\"width:70px; background-color:#0000FF\" id=\"c3\" onclick=\"document.location=\'./order.html\'\">ORDER</td>");
			document.write("<td style=\"width:105px\" id=\"c4\" onmouseover=\"i(\'c4\', \'1\')\" onmouseout=\"i(\'c4\', \'2\')\" onclick=\"document.location=\'./downloads.html\'\">DOWNLOADS</td>");
			document.write("<td style=\"width:90px\" id=\"c5\" onmouseover=\"i(\'c5\', \'1\')\" onmouseout=\"i(\'c5\', \'2\')\" onclick=\"document.location=\'./feedback.html\'\">FEEDBACK</td>");
			document.write("<td style=\"width:80px\" id=\"c6\" onmouseover=\"i(\'c6\', \'1\')\" onmouseout=\"i(\'c6\', \'2\')\" onclick=\"document.location=\'./contact.html\'\">CONTACT</td>");
			break;

			case 4: document.write("<td style=\"width:60px; cursor:pointer\" id=\"c1\" onmouseover=\"i(\'c1\', \'1\')\" onmouseout=\"i(\'c1\', \'2\')\" onclick=\"document.location=\'./index.html\'\">HOME</td>");
			document.write("<td style=\"width:65px\" id=\"c2\" onmouseover=\"i(\'c2\', \'1\')\" onmouseout=\"i(\'c2\', \'2\')\" onclick=\"document.location=\'./about.html\'\">ABOUT</td>");
			document.write("<td style=\"width:70px\" id=\"c3\" onmouseover=\"i(\'c3\', \'1\')\" onmouseout=\"i(\'c3\', \'2\')\" onclick=\"document.location=\'./order.html\'\">ORDER</td>");
			document.write("<td style=\"width:105px; background-color:#0000FF\" id=\"c4\" onclick=\"document.location=\'./downloads.html\'\">DOWNLOADS</td>");
			document.write("<td style=\"width:90px\" id=\"c5\" onmouseover=\"i(\'c5\', \'1\')\" onmouseout=\"i(\'c5\', \'2\')\" onclick=\"document.location=\'./feedback.html\'\">FEEDBACK</td>");
			document.write("<td style=\"width:80px\" id=\"c6\" onmouseover=\"i(\'c6\', \'1\')\" onmouseout=\"i(\'c6\', \'2\')\" onclick=\"document.location=\'./contact.html\'\">CONTACT</td>");
			break;

			case 5: document.write("<td style=\"width:60px; cursor:pointer\" id=\"c1\" onmouseover=\"i(\'c1\', \'1\')\" onmouseout=\"i(\'c1\', \'2\')\" onclick=\"document.location=\'./index.html\'\">HOME</td>");
			document.write("<td style=\"width:65px\" id=\"c2\" onmouseover=\"i(\'c2\', \'1\')\" onmouseout=\"i(\'c2\', \'2\')\" onclick=\"document.location=\'./about.html\'\">ABOUT</td>");
			document.write("<td style=\"width:70px\" id=\"c3\" onmouseover=\"i(\'c3\', \'1\')\" onmouseout=\"i(\'c3\', \'2\')\" onclick=\"document.location=\'./order.html\'\">ORDER</td>");
			document.write("<td style=\"width:105px\" id=\"c4\" onmouseover=\"i(\'c4\', \'1\')\" onmouseout=\"i(\'c4\', \'2\')\" onclick=\"document.location=\'./downloads.html\'\">DOWNLOADS</td>");
			document.write("<td style=\"width:90px\; background-color:#0000FF\" id=\"c5\" onclick=\"document.location=\'./feedback.html\'\">FEEDBACK</td>");
			document.write("<td style=\"width:80px\" id=\"c6\" onmouseover=\"i(\'c6\', \'1\')\" onmouseout=\"i(\'c6\', \'2\')\" onclick=\"document.location=\'./contact.html\'\">CONTACT</td>");
			break;

			case 6: document.write("<td style=\"width:60px; cursor:pointer\" id=\"c1\" onmouseover=\"i(\'c1\', \'1\')\" onmouseout=\"i(\'c1\', \'2\')\" onclick=\"document.location=\'./index.html\'\">HOME</td>");
			document.write("<td style=\"width:65px\" id=\"c2\" onmouseover=\"i(\'c2\', \'1\')\" onmouseout=\"i(\'c2\', \'2\')\" onclick=\"document.location=\'./about.html\'\">ABOUT</td>");
			document.write("<td style=\"width:70px\" id=\"c3\" onmouseover=\"i(\'c3\', \'1\')\" onmouseout=\"i(\'c3\', \'2\')\" onclick=\"document.location=\'./order.html\'\">ORDER</td>");
			document.write("<td style=\"width:105px\" id=\"c4\" onmouseover=\"i(\'c4\', \'1\')\" onmouseout=\"i(\'c4\', \'2\')\" onclick=\"document.location=\'./downloads.html\'\">DOWNLOADS</td>");
			document.write("<td style=\"width:90px\" id=\"c5\" onmouseover=\"i(\'c5\', \'1\')\" onmouseout=\"i(\'c5\', \'2\')\" onclick=\"document.location=\'./feedback.html\'\">FEEDBACK</td>");
			document.write("<td style=\"width:80px; background-color:#0000FF\" id=\"c6\" onclick=\"document.location=\'./contact.html\'\">CONTACT</td>");
			break;
		}

		document.write("<td>&nbsp;</td>");
		document.write("</table>");
	}

	function Updated(){
		document.write("Updated 110612");
	}
	
	function replace(string,text, by) {
		// Replaces text with by in string
		var i = string.indexOf(text), newstr = '';
		if ((!i) || (i == -1))
			return string;
		newstr += string.substring(0,i) + by;
		if (i+text.length < string.length)
			newstr += replace(string.substring(i+text.length,string.length),text,by);
		return newstr;
	}

	function getParm(string,parm) {
		// returns value of parm from string
		var startPos = string.indexOf(parm + "=");
		if (startPos > -1) {
			startPos = startPos + parm.length + 1;

			var endPos = string.indexOf("&",startPos);
			if (endPos == -1)
				endPos = string.length;
			return unescape(string.substring(startPos,endPos));
		}
		return '';
	}
