// JavaScript Document

// Menus for all pages 

    if (parseInt(navigator.appVersion) > 3) br = "n3"; 
    else br = "n2";

	if (br== "n3") { 
	img1 = new Image();
    img1.src =  "images/home.gif";
    img2 = new Image();
    img2.src = "images/about_us.gif";
    img3 = new Image();
    img3.src = "images/technology.gif";
	img4 = new Image();
	img4.src = "images/services.gif";
	img5 = new Image();
	img5.src = "images/contact_us.gif";
	
    img1_r = new Image();
    img1_r.src = "images/home_r.gif";
    img2_r = new Image();
    img2_r.src = "images/about_us_r.gif";
    img3_r = new Image();
    img3_r.src = "images/technology_r.gif";
	img4_r = new Image();
	img4_r.src = "images/services_r.gif";
	img5_r = new Image();
	img5_r.src = "images/contact_us_r.gif";
	
	}

function imgAct(imgName) {
    if (br == "n3") {
    document[imgName].src = eval(imgName + "_r.src");
    }
}

function imgInact(imgName) {
    if (br == "n3") {
    document[imgName].src = eval(imgName + ".src");
    }
}
	
// Generate HTML for the menus
function generate_menus() {
	document.write("\
	<!-- Menu Table -->\
<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"003163\">\
	<tr>\
	<td height=\"24\" class=\"bgBarInside\" width=\"5%\"><img src=\"images/left_top_blue.gif\" height=\"24\" width=\"40\"></td>\
\
	<td width=\"74\" height=\"24\"><a href=\"index.html\" onmouseover=\"imgAct('img1');  imgInact('img2'); imgInact('img3'); imgInact('img4'); imgInact('img5');\" onmouseout=\"imgInact('img1');\">\
	<img src=\"images/home.gif\" width=74 height=24 alt=\"Home\" border=\"0\" name=\"img1\"></a></td>\
\
	<td width=\"92\" height=\"24\"><a href=\"about_us.html\" onmouseover=\"imgAct('img2');  imgInact('img1'); imgInact('img3'); imgInact('img4'); imgInact('img5');\" onmouseout=\"imgInact('img2');\">\
	<img src=\"images/about_us.gif\" width=92 height=24 alt=\"About Us\" border=\"0\" name=\"img2\"></a></td>\
\
	<td width=\"104\" height=\"24\"><a href=\"technology.html\" onmouseover=\"imgAct('img3');  imgInact('img1'); imgInact('img2'); imgInact('img4'); imgInact('img5');\" onmouseout=\"imgInact('img3');\">\
	<img src=\"images/technology.gif\" width=104 height=24 alt=\"Technology\" border=\"0\" name=\"img3\"></a></td>\
\
	<td width=\"87\" height=\"24\"><a href=\"services.html\" onmouseover=\"imgAct('img4');  imgInact('img1'); imgInact('img2'); imgInact('img3'); imgInact('img5');\" onmouseout=\"imgInact('img4');\">\
	<img src=\"images/services.gif\" width=\"87\" height=\"24\" alt=\"Services\" border=\"0\" name=\"img4\"></a></td>\
\
	<td width=\"101\" height=\"24\"><a href=\"contact_us.html\" onmouseover=\"imgAct('img5');  imgInact('img1'); imgInact('img2'); imgInact('img3'); imgInact('img4');\" onmouseout=\"imgInact('img5');\">\
	<img src=\"images/contact_us.gif\" width=\"101\" height=\"24\" alt=\"Contact us\" border=\"0\" name=\"img5\"></a></td>\
\
<td height=\"24\" class=\"bgBarInside\" width=\"35%\"><img src=\"images/left_top_blue.gif\" height=\"24\" width=\"40\"></td>\
\
</tr>\
</table>");
}

// Generate HTML for the footer
function generate_footer() {
	document.write("\
	<br><br>\
	<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\
	<tr>\
	<td height=\"2\" width=\"100%\"><img src=\"images/light_blue_pixel.gif\" height=\"2\" width=\"100%\"></td>\
	</tr>\
	<tr>\
	<td align=\"center\">\
	<br>\
	<a href=\"index.html\">Home</a> | <a href=\"about_us.html\">About Us</a> | <a href=\"technology.html\">Technology</a> | <a href=\"services.html\">Services</a> | <a href=\"contact_us.html\">Contact Us</a></td>\
	</tr>\
	<tr>\
	<td align=\"center\" class=\"footertext\">\
	<br>\
	Copyright © 2006 Hionix, Inc. All rights reserved.</td>\
	</tr>\
</table>");
}
