

function Link(url,image){
	this.url=url;
	this.image=image;
}

//
// does the header all the way up to where the toolbar starts
//
function StartPage()
{
	// set up the table that encompasses the whole web page
	document.write('<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">');
	document.write('<tr><td><img src="images/logo.bmp"></td></tr>');
	document.write('<tr><td><img src="images/maintop.bmp"></td></tr>');
	document.write('<tr><td background="images/mainbg.bmp">');
	// create the table that will hold the menu area and the main area
	document.write('<table width="95%" align="center">');
	document.write('<tr><td width="25%" valign="top">&nbsp<p>');
}

//
// writes individual menu selections
//
function DoMenuItem(want,me,hrefname,itemname)
{
	document.write('<a class=');
	if(want==me){
		document.write('"menume"');
	} else {
		document.write('"menu"');
	}
	document.write(' href="');
	document.write(hrefname);
	if(want==me){
		document.write('"> &nbsp ');
	} else {
		document.write('"> &#8226; ');
	}
	//document.write('"> &#8226; ');
	document.write(itemname);
	document.write('<br>');
}

//
// does the toolbar, displayed appropriately per value of 'which'
//
function DoToolbar(which)
{
	// company menu
	document.write('<table width="175" cellspacing="0" cellpadding="0"><tr><td><img src="images/mhcompany.png"></td></tr>');
	document.write('<tr><td background="images/menubg.png" style="padding-left:10">');
	DoMenuItem(which,1,"index.html","Home");
	DoMenuItem(which,2,"about.html","About Us");
	DoMenuItem(which,3,"contact.html","Contact Us");
	DoMenuItem(which,4,"contract.html","Contract/Consulting");
	DoMenuItem(which,5,"generalfaq.html","General FAQ");
	document.write('</td></tr>');
	document.write('<tr><td><img src="images/menubottom.png"></td></tr></table>');

	// software menu
	document.write('<table width="175" cellspacing="0" cellpadding="0"><tr><td><img src="images/mhsoftware.png"></td></tr>');
	document.write('<tr><td background="images/menubg.png" style="padding-left:10">');
	DoMenuItem(which,-1,"telstar.html","TelStar");
	DoMenuItem(which,-1,"sauverper.html","Sauver");
	document.write('</td></tr>');
	document.write('<tr><td><img src="images/menubottom.png"></td></tr></table>');

	// TelStar menu
	if(which >= 6 && which <= 10){
		document.write('<table width="175" cellspacing="0" cellpadding="0"><tr><td><img src="images/mhtelstar.png"></td></tr>');
		document.write('<tr><td background="images/menubg.png" style="padding-left:10">');
		DoMenuItem(which,6,"telstar.html","Description");
		DoMenuItem(which,7,"telstar_ordering.html","Ordering");
		DoMenuItem(which,8,"telstar_upgrades.html","Upgrades");
		DoMenuItem(which,9,"telstar_revisions.html","Revision History");
		DoMenuItem(which,10,"telstar.zip","Download ZIP file");
		document.write('</td></tr>');
		document.write('<tr><td><img src="images/menubottom.png"></td></tr></table>');
	}

	// Sauver menu
	if(which >= 11 && which <= 15){
		document.write('<table width="175" cellspacing="0" cellpadding="0"><tr><td><img src="images/mhsauver.png"></td></tr>');
		document.write('<tr><td background="images/menubg.png" style="padding-left:10">');
		DoMenuItem(which,11,"sauverper.html","Description");
		DoMenuItem(which,12,"sauverper_ordering.html","Ordering");
		DoMenuItem(which,13,"sauverper_upgrades.html","Upgrades");
		DoMenuItem(which,14,"sauverper_revisions.html","Revision History");
		DoMenuItem(which,15,"sauverper.zip","Download ZIP file");
		document.write('</td></tr>');
		document.write('<tr><td><img src="images/menubottom.png"></td></tr></table>');
	}

	// shareware menu
	document.write('<table width="175" cellspacing="0" cellpadding="0"><tr><td><img src="images/mhshareware.png"></td></tr>');
	document.write('<tr><td background="images/menubg.png" style="padding-left:10">');
	DoMenuItem(which,16,"aboutshareware.html","About Shareware");
	DoMenuItem(which,18,"sharewareawards.html","Awards");
	document.write('</td></tr>');
	document.write('<tr><td><img src="images/menubottom.png"></td></tr></table>');

	// waiting explanation
	if(which==1 || which >= 6 && which <= 15){
		document.write('<p><img src="images/bottle.bmp" align="center"><p>');
		document.write('Waiting for your license order? ');
		document.write('<a href="waiting.html">Click Here for info</a><p>');
	}
	
}

//
// does stuff after the toolbar, before the main display area
//
function AfterToolbar()
{
	document.write('</td><td width="4%">&nbsp</td><td valign="top">');
}

//
// does stuff after the main, up to the footer
//
function AfterMain()
{
	// this ends the td that contains the background 'mainbg'
	document.write('</td></tr></table>');
	document.write('<tr><td><img src="images/mainbottom.bmp"></td></tr>');
}

//
// footer. Handled separately so that it can be easily found and modifed
// every year.
//
function DoFooter()
{
	// footer
	document.write('<tr><td><img src="images/footer.bmp"></td></tr>');

	// and close off the page
	document.write('</table>');
}

function DoContact(){
	document.write('<table align="center" style="font-size:12pt"><tr><td colspan="2">');
	document.write('Our address is:<p>');
	document.write('</td></tr>');
	document.write('<tr>');
	document.write('<td width="50"></td>');
	document.write('<td>');
	DoAddress();
	document.write('</td></tr>');
	document.write('<tr><td colspan="2"><p>&nbsp;<p>');
	document.write('Our email address is:<p>');
	document.write('</td></tr><tr><td width="50">&nbsp</td><td>');
	document.write('<a href="mail');
	document.write('to:innersyssw');
	document.write('@');
	document.write('innersystem.com">innersyssw');
	document.write('@');
	document.write('innersystem.com</a>');
	document.write('</td></tr></table>');
}

function DoAddress(){
	document.write('InnerSystem Software Ltd<BR>');
	document.write('552A Clark Road, Ste 162<BR>');
	document.write('Coquitlam, B.C.  V3J 0A3<BR>');
	document.write('Canada<BR>');
}


