/* This file contains the code for the Cake & Icing Centre web site functions. 
   All code created and published by Virtuoso IT. Copyright 2009 Virtuoso IT.
*/

var moptions = new Array ("*",
1,0,"HOME",		"../shared/HOME.html",
2,0,"WEDDINGS",		"../shared/WEDDINGS.html",
3,0,"SPECIAL",		"../shared/SPECIAL.html",
4,0,"NOVELTY",		"../shared/NOVELTY.html",
5,0,"CORPORATE",	"../shared/CORPORATE.html",
6,0,"SUPPLIES",		"../shared/SUPPLIES.html",
7,0,"ABOUT US",		"../shared/US.html",
8,0,"Picture Gallery",	"../gallery/Gallery.htm",
9,0,"LINKS",		"../shared/LINKS.html"
);


//  Generate the Main Menu (horizontal)  -- modified for FRAME usage
function makeMenu (mopt, smopt) {

   var xSize = 4; 			// number of fields per menu record
   var ySize = moptions.length;		// number of menu records to process

// print main top menu
   document.writeln('<TABLE ALIGN="RIGHT" CELLSPACING="1" BORDER="0">');
   for (var i=1; i < ySize; i+=xSize)
   {
   document.writeln('<TR><TD WIDTH="115" HEIGHT="20" class="lmenuoff" onmouseover="this.className=\'lmenuon\'" '+
		'onmouseout="this.className=\'lmenuoff\'" onClick="parent.frmMain.location.href=\''+
		moptions[i+3]+'\'">&nbsp;'+moptions[i+2]+'</TD></TR>');
   document.writeln('<TR><TD HEIGHT="9"><IMG SRC="../images/blank.gif" WIDTH="1" HEIGHT="1" BORDER="0" ALT=""></TD></TR>');
   }
   document.writeln('</TABLE>');
}

