
function helpwin(thepage)
{
	window.open(thepage,"HELP","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width=550,height=480");
}

helpmode = 0;			// mode 1 = regular page, else = popup window
helppage = "help.html";
if (helpmode == 1)
{
	ehelpstr = helppage;
	fhelpstr = helppage + "?f";
}
else
{
	ehelpstr = "javascript:helpwin(\"" + helppage + "\")";
	fhelpstr = "javascript:helpwin(\"" + helppage + "?f\")";
}



//------------------------



function GMenuStruct()
{
	this.etitle = "";
	this.ftitle = "";
	this.elink = "";
	this.flink = "";
	this.targetwin = "";
}

// --------------- indicate how many menu items --------------
var Gmenu_max = 13;
Gmenu = new Array(Gmenu_max+1);
for (var i=1; i<=Gmenu_max+1; i++)
	Gmenu[i] = new GMenuStruct();





Gmenu[1].etitle = "FRANCAIS";
Gmenu[1].ftitle = "ENGLISH";
Gmenu[1].elink = "javascript:lang_change()";
Gmenu[1].flink = "javascript:lang_change()";
Gmenu[1].targetwin = "_self";

Gmenu[2].etitle = "Home";
Gmenu[2].ftitle = "Accueil";
Gmenu[2].elink = "index2.html";
Gmenu[2].flink = "index2.html?f";
Gmenu[2].targetwin = "_self";

Gmenu[3].etitle = "Newsletter";
Gmenu[3].ftitle = "E-Annonce";
Gmenu[3].elink = "newsletter.html";
Gmenu[3].flink = "newsletter.html?f";
Gmenu[3].targetwin = "_self";

Gmenu[4].etitle = "About Us";
Gmenu[4].ftitle = "Profil";
Gmenu[4].elink = "b-about.html";
Gmenu[4].flink = "b-about.html?f";
Gmenu[4].targetwin = "_self";

Gmenu[5].etitle = "Help";
Gmenu[5].ftitle = "Aide";
Gmenu[5].elink = ehelpstr;
Gmenu[5].flink = fhelpstr;
Gmenu[5].targetwin = "_self";

Gmenu[6].etitle = "Links";
Gmenu[6].ftitle = "Liens";
Gmenu[6].elink = "links.html";
Gmenu[6].flink = "links.html?f";
Gmenu[6].targetwin = "_self";

Gmenu[7].etitle = "Crating and Shipping";
Gmenu[7].ftitle = "Emballage et Expédition";
Gmenu[7].elink = "crating.html";
Gmenu[7].flink = "crating.html?f";
Gmenu[7].targetwin = "_self";

Gmenu[8].etitle = "History and Perspective";
Gmenu[8].ftitle = "Historique et Perspective";
Gmenu[8].elink = "history_perspective.html";
Gmenu[8].flink = "history_perspective.html?f";
Gmenu[8].targetwin = "_self";

Gmenu[9].etitle = "Disclaimer";
Gmenu[9].ftitle = "Déni";
Gmenu[9].elink = "disclaimer.html";
Gmenu[9].flink = "disclaimer.html?f";
Gmenu[9].targetwin = "_self";

Gmenu[10].etitle = "Contact Us";
Gmenu[10].ftitle = "Contactez";
Gmenu[10].elink = "mailto:lonnietech@gmail.com";
Gmenu[10].flink = "mailto:lonnietech@gmail.com";
Gmenu[10].targetwin = "_self";

Gmenu[11].etitle = "Equipment Cleaning";
Gmenu[11].ftitle = "Nettoyage Equipement";
Gmenu[11].elink = "servicesl-tech/index.htm";
Gmenu[11].flink = "servicesl-tech/index.htm?f";
Gmenu[11].targetwin = "_self";

Gmenu[12].etitle = "Rebuilding Services";
Gmenu[12].ftitle = "Service de Réparation";
Gmenu[12].elink = "b-repair.html";
Gmenu[12].flink = "b-repair.html?f";
Gmenu[12].targetwin = "_self";

Gmenu[13].etitle = "Bookmark";
Gmenu[13].ftitle = "Bookmark";
Gmenu[13].elink = "javascript:bookmark()";
Gmenu[13].flink = "javascript:bookmark()";
Gmenu[13].targetwin = "_self";




//---- this function is used for static regular page without menu layer ---------
function Generate_GMenu_S(lang)
{
	// force the language toggle function to be lang() for static page 
	Gmenu[1].elink = "javascript:lang()";
	Gmenu[1].flink = "javascript:lang()";


	if (bUser=="NN4")
		
		if (lang == "e")
		{
			document.english.document.write("<table color='#CCB9BF' background='images/light-blue.gif' border=0 cellpadding=0 width=140 cellspacing=0>");
		
			for (var i=1; i<=Gmenu_max; i++)
			{
			    document.english.document.write("<tr>");
			    document.english.document.write("  <td width=18  height=17 class='text' valign='top'><img border=0 src='images/arrow.gif' width=18 height=17></td>");
			    document.english.document.write("  <td width=122 class='text'><a href='" + eval("Gmenu[i]."+ lang +"link") + "'>" + eval("Gmenu[i]."+ lang +"title") + "</a></td>");
			    document.english.document.write("</tr>");
			    document.english.document.write("<tr>"); 
			    document.english.document.write("  <td height='3px' width=16 class='text'><img border=0 src='images/light-blue.gif' width=3 height=3></td>");
			    document.english.document.write("  <td height='3px' width=122 class='spacer-text'><img border=0 src='images/light-blue.gif' width=3 height=3> ");
			    document.english.document.write("  </td>");
			    document.english.document.write("</tr>");
			}

		    	document.english.document.write("<tr>");
    			document.english.document.write("  <td colspan=2 height=17 class=\"text\"><span class=\"grey_text_bold_16\"><img src=\"images/filler.gif\" width=140 height=40 align=\"absmiddle\"></span></td>");
	   		document.english.document.write("</tr>");
	 		document.english.document.write("</table>");
		}
		else // lang="f"
		{
			document.french.document.write("<table color='#CCB9BF' background='images/light-blue.gif' border=0 cellpadding=0 width=140 cellspacing=0>");
		
			for (var i=1; i<=Gmenu_max; i++)
			{
			    document.french.document.write("<tr>");
			    document.french.document.write("  <td width=18  height=17 class='text' valign='top'><img border=0 src='images/arrow.gif' width=18 height=17></td>");
			    document.french.document.write("  <td width=122 class='text'><a href='" + eval("Gmenu[i]."+ lang +"link") + "'>" + eval("Gmenu[i]."+ lang +"title") + "</a></td>");
			    document.french.document.write("</tr>");
			    document.french.document.write("<tr>"); 
			    document.french.document.write("  <td height='3px' width=16 class='text'><img border=0 src='images/light-blue.gif' width=3 height=3></td>");
			    document.french.document.write("  <td height='3px' width=122 class='spacer-text'><img border=0 src='images/light-blue.gif' width=3 height=3> ");
			    document.french.document.write("  </td>");
			    document.french.document.write("</tr>");
			}

		    	document.french.document.write("<tr>");
    			document.french.document.write("  <td colspan=2 height=17 class=\"text\"><span class=\"grey_text_bold_16\"><img src=\"images/filler.gif\" width=140 height=40 align=\"absmiddle\"></span></td>");
	   		document.french.document.write("</tr>");
	 		document.french.document.write("</table>");
		}
	else
	{
		document.write("<table color='#CCB9BF' background='images/light-blue.gif' border=0 cellpadding=0 width=140 cellspacing=0>");
	
		for (var i=1; i<=Gmenu_max; i++)
		{
		    document.write("<tr>");
		    document.write("  <td width=18  height=17 class='text' valign='top'><img border=0 src='images/arrow.gif' width=18 height=17></td>");
		    document.write("  <td width=122 class='text'><a href='" + eval("Gmenu[i]."+ lang +"link") + "'>" + eval("Gmenu[i]."+ lang +"title") + "</a></td>");
		    document.write("</tr>");
		    document.write("<tr>"); 
		    document.write("  <td height='3px' width=16 class='text'><img border=0 src='images/light-blue.gif' width=3 height=3></td>");
		    document.write("  <td height='3px' width=122 class='spacer-text'><img border=0 src='images/light-blue.gif' width=3 height=3> ");
		    document.write("  </td>");
		    document.write("</tr>");
		}

	    	document.write("<tr>");
		document.write("  <td colspan=2 height=17 class=\"text\"><span class=\"grey_text_bold_16\"><img src=\"images/filler.gif\" width=140 height=40 align=\"absmiddle\"></span></td>");
   		document.write("</tr>");
 		document.write("</table>");
	}	
}











//---- this function is used for product page with menu layer ---------
function Generate_GMenu(lang)
{
	// force the language toggle function to be lang_change() for static page 
	Gmenu[1].elink = "javascript:lang_change()";
	Gmenu[1].flink = "javascript:lang_change()";



	if (bUser=="NN4")
		
		if (lang == "e")
		{
			document.menue.document.write("<table color='#CCB9BF' background='images/light-blue.gif' border=0 cellpadding=0 width=140 cellspacing=0>");
		
			for (var i=1; i<=Gmenu_max; i++)
			{
			    document.menue.document.write("<tr>");
			    document.menue.document.write("  <td width=18  height=17 class='text' valign='top'><img border=0 src='images/arrow.gif' width=18 height=17></td>");
			    document.menue.document.write("  <td width=122 class='text'><a href='" + eval("Gmenu[i]."+ lang +"link") + "'>" + eval("Gmenu[i]."+ lang +"title") + "</a></td>");
			    document.menue.document.write("</tr>");
			    document.menue.document.write("<tr>"); 
			    document.menue.document.write("  <td height='3px' width=16 class='text'><img border=0 src='images/light-blue.gif' width=3 height=3></td>");
			    document.menue.document.write("  <td height='3px' width=122 class='spacer-text'><img border=0 src='images/light-blue.gif' width=3 height=3> ");
			    document.menue.document.write("  </td>");
			    document.menue.document.write("</tr>");
			}

		    	document.menue.document.write("<tr>");
    			document.menue.document.write("  <td colspan=2 height=17 class=\"text\"><span class=\"grey_text_bold_16\"><img src=\"images/filler.gif\" width=140 height=40 align=\"absmiddle\"></span></td>");
	   		document.menue.document.write("</tr>");
	 		document.menue.document.write("</table>");
		}
		else // lang="f"
		{
			document.menuf.document.write("<table color='#CCB9BF' background='images/light-blue.gif' border=0 cellpadding=0 width=140 cellspacing=0>");
		
			for (var i=1; i<=Gmenu_max; i++)
			{
			    document.menuf.document.write("<tr>");
			    document.menuf.document.write("  <td width=18  height=17 class='text' valign='top'><img border=0 src='images/arrow.gif' width=18 height=17></td>");
			    document.menuf.document.write("  <td width=122 class='text'><a href='" + eval("Gmenu[i]."+ lang +"link") + "'>" + eval("Gmenu[i]."+ lang +"title") + "</a></td>");
			    document.menuf.document.write("</tr>");
			    document.menuf.document.write("<tr>"); 
			    document.menuf.document.write("  <td height='3px' width=16 class='text'><img border=0 src='images/light-blue.gif' width=3 height=3></td>");
			    document.menuf.document.write("  <td height='3px' width=122 class='spacer-text'><img border=0 src='images/light-blue.gif' width=3 height=3> ");
			    document.menuf.document.write("  </td>");
			    document.menuf.document.write("</tr>");
			}

		    	document.menuf.document.write("<tr>");
    			document.menuf.document.write("  <td colspan=2 height=17 class=\"text\"><span class=\"grey_text_bold_16\"><img src=\"images/filler.gif\" width=140 height=40 align=\"absmiddle\"></span></td>");
	   		document.menuf.document.write("</tr>");
	 		document.menuf.document.write("</table>");
		}
	else
	{
		document.write("<table color='#CCB9BF' background='images/light-blue.gif' border=0 cellpadding=0 width=140 cellspacing=0>");
	
		for (var i=1; i<=Gmenu_max; i++)
		{
		    document.write("<tr>");
		    document.write("  <td width=18  height=17 class='text' valign='top'><img border=0 src='images/arrow.gif' width=18 height=17></td>");
		    document.write("  <td width=122 class='text'><a href='" + eval("Gmenu[i]."+ lang +"link") + "'>" + eval("Gmenu[i]."+ lang +"title") + "</a></td>");
		    document.write("</tr>");
		    document.write("<tr>"); 
		    document.write("  <td height='3px' width=16 class='text'><img border=0 src='images/light-blue.gif' width=3 height=3></td>");
		    document.write("  <td height='3px' width=122 class='spacer-text'><img border=0 src='images/light-blue.gif' width=3 height=3> ");
		    document.write("  </td>");
		    document.write("</tr>");
		}

	    	document.write("<tr>");
		document.write("  <td colspan=2 height=17 class=\"text\"><span class=\"grey_text_bold_16\"><img src=\"images/filler.gif\" width=140 height=40 align=\"absmiddle\"></span></td>");
   		document.write("</tr>");
 		document.write("</table>");
	}	

}

