
function onLoad() {
    window.onResize = onLoad;
    loadMenus();
}

function loadMenus() {

	//****** Home *****************
	window.homeMenuHTML = new Menu("Home");
    homeMenuHTML.addMenuItem("Home", "top.window.location='../../home.htm'");
    homeMenuHTML.addMenuItem("Contact Us", "top.window.location='../aboutus.htm'");
	homeMenuHTML.addMenuItem("Our Rates", "top.window.location='../rates.htm'");
	homeMenuHTML.addMenuItem("Policies and Procedures", "top.window.location='../policies.htm'");
    homeMenuHTML.addMenuItem("Web Site Packages", "top.window.location='../websitepackages.htm'");
    homeMenuHTML.addMenuItem("Tutorials", "top.window.location='../tutorials.htm'");
    homeMenuHTML.addMenuItem("Samples", "self.window.location='../samples.htm'");
	homeMenuHTML.addMenuItem("Member Sign In", "top.window.location='../../LogIn.aspx'");
	
	homeMenuHTML.menuItemBgColor = "#EEEE99";
    homeMenuHTML.fontColor = "#606000";
    homeMenuHTML.fontWeight = "Bold";


	//****** Tutorials *****************
	window.tutMenu = new Menu("Tutorials");
    tutMenu.addMenuItem("Tutorials Overview", "top.window.location='../tutorials.htm'");
    tutMenu.addMenuItem("All About the Internet", "top.window.location='../aboutweb.htm'");
    tutMenu.addMenuItem("All About Web Pages", "top.window.location='../aboutpages.htm'");
	tutMenu.addMenuItem("All About Programming", "top.window.location='../programming.htm'");
    tutMenu.addMenuItem("All About Images", "top.window.location='aaimagetut.htm'");
    tutMenu.addMenuItem("All About Templates", "top.window.location='tmplindx.htm'");
    
	tutMenu.addMenuItem("Tutorial Links", "top.window.location='../samples/samples.htm'"); //******** should be in frame

    tutMenu.menuItemBgColor = "#EEEE99";
    tutMenu.fontColor = "#606000";
    tutMenu.fontWeight = "Bold";





/*
What is an image   whatisanimage
Image Compression  filecompression
File Formats   fileformats
Animations   animations
Graphics   graphics
Photography photography
Scanners scanners
Macromedia Flash flash
Image Processing imageprocessing
*/
	
	


/*
	tutMenu.addMenuItem("Image Processing", "top.window.location='imageproc.htm'");
	tutMenu.addMenuItem("Graphics", "top.window.location='images.htm#graphics'");
	tutMenu.addMenuItem("Macromedia Flash", "top.window.location='flash.htm'");
	tutMenu.addMenuItem("Photography", "top.window.location='photography.htm'");
	tutMenu.addMenuItem("Programming", "top.window.location='programming.htm'");
*/





	//******************************************************************* 
	//****************  Just for frames *********************************
	//****** Samples *********
	window.samplesMenu = new Menu("Samples");
    samplesMenu.addMenuItem("Processed Images", "self.window.location='images.htm'");
	samplesMenu.addMenuItem("How to Get Images", "self.window.location='image-a.htm'");
	samplesMenu.addMenuItem("Test Images", "self.window.location='\know-ba.htm'");
	samplesMenu.addMenuItem("Animated Image Processing", "self.window.location='know-da.htm'");
	
	samplesMenu.menuItemBgColor = "#EEEE99";
    samplesMenu.fontColor = "#606000";
    samplesMenu.fontWeight = "Bold";



	//****** Numbers *********
	window.numbersMenu = new Menu("Numbers");
    numbersMenu.addMenuItem("Bytes Nibbles and Numbers", "self.window.location='know-a.htm'");
    numbersMenu.addMenuItem("Numbers have Bases", "self.window.location='know-a.htm#numbase'");
    numbersMenu.addMenuItem("Base 10 Decimal", "self.window.location='know-a.htm#decimal'");
    numbersMenu.addMenuItem("Base 2 Binary", "self.window.location='know-a.htm#binary'");
    numbersMenu.addMenuItem("Base 16 Hexadecimal", "self.window.location='know-a.htm#hexadecimal'");
    numbersMenu.addMenuItem("Base 8 Octal", "self.window.location='know-a.htm#octal'");
    numbersMenu.addMenuItem("A Byte is lovely number", "self.window.location='know-a.htm#byte'");
    numbersMenu.addMenuItem("Counting in Binary", "self.window.location='know-a.htm#counting'");
    numbersMenu.addMenuItem("Converting Bases", "self.window.location='know-a.htm#converting'");
	
	numbersMenu.menuItemBgColor = "#EEEE99";
    numbersMenu.fontColor = "#606000";
    numbersMenu.fontWeight = "Bold";

	//****** Digital Images *********
	window.digitalimagesMenu = new Menu(" Digital Images");
    digitalimagesMenu.addMenuItem("Digital Images", "self.window.location='know-b.htm'");
    digitalimagesMenu.addMenuItem("Overview", "self.window.location='know-b.htm#digitimgs'");
    digitalimagesMenu.addMenuItem("Small Test Pics", "self.window.location='know-b.htm#smalltest'");
    digitalimagesMenu.addMenuItem("Image Size", "self.window.location='know-b.htm#imagesize'");
    digitalimagesMenu.addMenuItem("Resolution", "self.window.location='know-b.htm#resolution'");
    digitalimagesMenu.addMenuItem("Depth", "self.window.location='know-b.htm#imgdepth'");
    digitalimagesMenu.addMenuItem("Color", "self.window.location='know-b.htm#color'");
    digitalimagesMenu.addMenuItem("Palettes", "self.window.location='know-b.htm#palette'");
    digitalimagesMenu.addMenuItem("Dithering", "self.window.location='know-b.htm#Dithering'");

	digitalimagesMenu.menuItemBgColor = "#EEEE99";
    digitalimagesMenu.fontColor = "#606000";
    digitalimagesMenu.fontWeight = "Bold";

	//****** Your Display  *******
	window.displayMenu = new Menu("Your Display");
    displayMenu.addMenuItem("Your Display", "self.window.location='know-c.htm'");
    displayMenu.addMenuItem("Overview", "self.window.location='know-c.htm#dispproblems'");
    displayMenu.addMenuItem("Display Dithering", "self.window.location='know-c.htm#displaydither'");
    displayMenu.addMenuItem("Setting Your Display", "self.window.location='know-c.htm#setres'");

	displayMenu.menuItemBgColor = "#EEEE99";
    displayMenu.fontColor = "#606000";
    displayMenu.fontWeight = "Bold";

	//****** WebTV and Images  *******
	window.webtvMenu = new Menu("WebTV and Images");
    webtvMenu.addMenuItem("WebTV and Images", "self.window.location='know-l.htm'");

    webtvMenu.addMenuItem("Resolution ", "self.window.location='know-l.htm#resolution'");
    webtvMenu.addMenuItem("Interlace", "self.window.location='know-l.htm#interlace'");
    webtvMenu.addMenuItem("What To Watchout For", "self.window.location='know-l.htm#watchout'");
    webtvMenu.addMenuItem("Should You Fix It", "self.window.location='know-l.htm#sfixit'");
    webtvMenu.addMenuItem("How To Fix It", "self.window.location='know-l.htm#hfixit'");

	webtvMenu.menuItemBgColor = "#EEEE99";
    webtvMenu.fontColor = "#606000";
    webtvMenu.fontWeight = "Bold";

	//****** Image File Formats  *******
	window.imagefileMenu = new Menu("Image File Formats");
    imagefileMenu.addMenuItem("Image File Formats", "self.window.location='know-d.htm'");
    imagefileMenu.addMenuItem("Overview", "self.window.location='know-d.htm#common'");
    imagefileMenu.addMenuItem("Compression Techniques", "self.window.location='know-d.htm#compression'");
    imagefileMenu.addMenuItem("GIF from CompuServe", "self.window.location='know-d.htm#gif'");
    imagefileMenu.addMenuItem("To Interlace or Not to Interlace", "self.window.location='know-d.htm#gifinterlace'");
    imagefileMenu.addMenuItem("Transparent", "self.window.location='know-d.htm#giftransparent'");
    imagefileMenu.addMenuItem("Animations", "self.window.location='know-d.htm#animations'");
    imagefileMenu.addMenuItem("JPG Format", "self.window.location='know-d.htm#jpg'");
    imagefileMenu.addMenuItem("Other Formats", "self.window.location='know'");

	imagefileMenu.menuItemBgColor = "#EEEE99";
    imagefileMenu.fontColor = "#606000";
    imagefileMenu.fontWeight = "Bold";

//********************************************************************************
	//****** Image Acquisition  *******
	window.acquisttionMenu = new Menu("Image Acquisition");
    acquisttionMenu.addMenuItem("Image Acquisition", "self.window.location='know-e.htm'");
    acquisttionMenu.addMenuItem("Charged Coupled Device", "self.window.location='know-e.htm#ccd'");
	acquisttionMenu.addMenuItem("How to Get Images", "self.window.location='image-a.htm'");

	acquisttionMenu.menuItemBgColor = "#EEEE99";
    acquisttionMenu.fontColor = "#606000";
    acquisttionMenu.fontWeight = "Bold";

	//****** Image Processing *******
	window.processingMenu = new Menu("Image Processing");
    processingMenu.addMenuItem("Image Processing", "self.window.location='know-f.htm'");
    processingMenu.addMenuItem("Brightness", "self.window.location='know-f.htm#brightness'");
    processingMenu.addMenuItem("Contast", "self.window.location='know-f.htm#contrast'");
    processingMenu.addMenuItem("Gamma", "self.window.location='know-f.htm#gamma'");
    processingMenu.addMenuItem("Color Chart", "self.window.location='know-f.htm#colorchart'");
    processingMenu.addMenuItem("Loosing Data", "self.window.location='know-f.htm#dataloss'");

	processingMenu.menuItemBgColor = "#EEEE99";
    processingMenu.fontColor = "#606000";
    processingMenu.fontWeight = "Bold";

	//****** Graphics *******
	window.graphicsMenu = new Menu("Graphics");
    graphicsMenu.addMenuItem("Graphics", "self.window.location='know-g.htm'");
    graphicsMenu.addMenuItem("Real Graphics", "self.window.location='know-g.htm#realgraphics'");
    graphicsMenu.addMenuItem("Graphics Categories", "self.window.location='know-g.htm#catagories'");

	graphicsMenu.menuItemBgColor = "#EEEE99";
    graphicsMenu.fontColor = "#606000";
    graphicsMenu.fontWeight = "Bold";

	//****** Backgrounds *******
	window.backgroundsMenu = new Menu("Backgrounds");
    backgroundsMenu.addMenuItem("Backgrounds", "self.window.location='know-i.htm'");
    backgroundsMenu.addMenuItem("Custom Made Backgrounds", "self.window.location='know-i.htm#custom'");
    backgroundsMenu.addMenuItem("Drawing Backgrounds", "self.window.location='know-i.htm#drawing'");
    backgroundsMenu.addMenuItem("Final Image Size", "self.window.location='know-i.htm#size'");
    backgroundsMenu.addMenuItem("GIF of JPG File Formats", "self.window.location='know-i.htm#format'");
    backgroundsMenu.addMenuItem("Shaded Backgrounds", "self.window.location='know-k.htm'");

	backgroundsMenu.menuItemBgColor = "#EEEE99";
    backgroundsMenu.fontColor = "#606000";
    backgroundsMenu.fontWeight = "Bold";



	//****** Links *********
	window.linksMenu = new Menu("Links");
    linksMenu.addMenuItem("Cascading Style Sheets", "self.window.location='samples_0.htm#CSS'");

	linksMenu.menuItemBgColor = "#EEEE99";
    linksMenu.fontColor = "#606000";
    linksMenu.fontWeight = "Bold";


    /*
	myMenu5.menuItemBgColor = "#8B0000";
    myMenu5.menuHiliteBgColor = "#000084";
    myMenu5.menuItemHeight = 25;
    myMenu5.fontSize = 18;
    myMenu5.fontWeight = "Bold";
    myMenu5.fontColor = "white";
    myMenu5.bgColor = "#CDB79E";
	*/
	

	tutMenu.writeMenus();
}
