

	//JavaScript Script for Vermillion Community Music Assoc Web Site

	//	Function: Display Anchor Contents of the Navigation Pane
	//		second version based on tables
	//	Last Modified: 01-25-12, by RKF


	// define some variables

	var colorWhite = "white";
	var colorLightBlue = "lightblue";
	var colorDefault = "white";

	var vcamDomain;
//	var vcmaDomain_abs = "http://chipmunk/new_vcma/";
	var vcmaDomain_abs = "http://www.vcma.net/"; 

	var vcmaDomain_rel = ""; 
//	var vcmaDomain_rel = "http://";

	var urlAbsolute = 0;
	var windowContent;
//	var tableRows = 19;
	var tableRows = 18;
	var navURL = new Array(20);
	var navText = new Array(20);
	var navTextTitle = new Array(20);

	navURL[1] = "index.php";
//	navURL[1] = "index.html";
//	navURL[2] = "news.html";
	navURL[2] = "join_us.html";
	navURL[3] = "vermilion_musical_roots.html";
	navURL[4] = "history_of_VCMA.html";
	navURL[5] = "past_band_performances.html";
	navURL[6] = "concert_band.html";
	navURL[7] = "windjammer_big_band.html";
	navURL[8] = "mixed_chorus.html";
	navURL[9] = "performance_schedule.html";
	navURL[10] = "board_of_directors.html";
	navURL[11] = "conductors.html";
	navURL[12] = "photo_gallery.html";
	navURL[13] = "video_gallery.html";
	navURL[14] = "bookings.html";
	navURL[15] = "order_recordings.html";
//	navURL[17] = "find_us_online.html";
	navURL[16] = "links.html";
	navURL[17] = "contact_us.html";
	navURL[18] = "member/member.html";
//	navURL[19] = "work_in_progress.html";

	navText[1] = "Home";
//	navText[2] = "News";
	navText[2] = "Join Us";
	navText[3] = "Vermilion's Musical Roots";
	navText[4] = "History of VCMA";
	navText[5] = "Past Band Performances";
	navText[6] = "Concert Band";
	navText[7] = "WindJammer Big Band";
	navText[8] = "Mixed Chorus";
	navText[9] = "Performance Schedule";
	navText[10] = "Board of Directors";
	navText[11] = "Conductors";
	navText[12] = "Photo Gallery";
	navText[13] = "Video Gallery";
	navText[14] = "Bookings";
	navText[15] = "Order Recordings";
//	navText[17] = "Find Us Online";
	navText[16] = "Links";
	navText[17] = "Contact Us";
	navText[18] = "Member's Page";
	navText[19] = "Work In Progress";

	navTextTitle[1] = "Home";
//	navTextTitle[2] = "News";
	navTextTitle[2] = "Join Us";
	navTextTitle[3] = "Vermilion's Musical Roots";
	navTextTitle[4] = "History of VCMA";
	navTextTitle[5] = "Past Band Performances";
	navTextTitle[6] = "Concert Band";
	navTextTitle[7] = "WindJammer Big Band";
	navTextTitle[8] = "Mixed Chorus";
	navTextTitle[9] = "Performance Schedule";
	navTextTitle[10] = "Board of Directors";
	navTextTitle[11] = "Conductors";
	navTextTitle[12] = "Photo Gallery";
	navTextTitle[13] = "Video Gallery";
	navTextTitle[14] = "Bookings";
	navTextTitle[15] = "Order Recordings";
//	navTextTitle[17] = "Find Us Online";
	navTextTitle[16] = "Links";
	navTextTitle[17] = "Contact Us";
	navTextTitle[18] = "Member's Page";
	navTextTitle[19] = "Work In Progress";


		// load browser with anchor list contents for Nav Pane

	function paintNavAnchors( URLFlag ) {

		var navIndex = 1;


		vcmaDomain = vcmaDomain_rel; 
		if ( URLFlag != 0 )
		{
			vcmaDomain = vcmaDomain_abs; 
			urlAbsolute = 1;
		}
		
			//load navigation anchor list
		
//		windowContent = "<ul class=\"navlist\">";
		windowContent = "<table id=\"navigation\">";
		document.write( windowContent );
		

			// iterate through list of links

		for ( var iI = 1; iI <= tableRows; iI++ ) {

			windowContent = "<tr><td>";
			windowContent += "<a href=\"";
			if ( urlAbsolute ) windowContent += vcmaDomain;
			windowContent += navURL[iI];
			windowContent += "\" title=\"";
			windowContent += navTextTitle[iI];
			windowContent += "\">";
			windowContent += navText[iI];
			windowContent += "<\/a>";
			windowContent += "<\/td><\/tr>";
			document.write( windowContent );

		}
		
			windowContent = "<tr><td>";
			windowContent += "&nbsp; &nbsp;";
			windowContent += "<\/td><\/tr>";
	
			windowContent += "<tr><td style=\"color: #000000; font-size: x-small;\">";
			windowContent += "Copyright VCMA 2001-2012";
			windowContent += "<\/td><\/tr>";
			
//			windowContent += "<tr><td style=\"background-color: #769FE4\">";
//			windowContent += "<a href=\"index.php\">RGB(118,159,228)</a>";
//			windowContent += "<\/td><\/tr>";
		
//			windowContent += "<tr><td style=\"background-color: #A4CFCA\">";
//			windowContent += "<a href=\"index.php\">RGB(164,207,202)</a>";
//			windowContent += "<\/td><\/tr>";
		
//			windowContent += "<tr><td style=\"background-color: #FFBED9\">";
//			windowContent += "<a href=\"index.php\">RGB(255,190,217)</a>";
//			windowContent += "<\/td><\/tr>";
		
			document.write( windowContent );


			// finish of table
		
		//	windowContent = "<\/ul>";
		windowContent = "<\/table>";
		document.write( windowContent );
	}
	
	
		// paint header (logo and banner) and nav sidebar

	function paintHeaderAndSidebar( URLFlag ) {

		var navIndex = 1;

		windowContent = "<div style=\"width: 100%;\">"; 
        windowContent += "<img src=\"images/banner5.jpg\" alt=\"Banner\">";
		windowContent += "<\/div>";        
		document.write( windowContent );


		windowContent = "<div id=\"sidebar\">";
		windowContent += "<div> &nbsp;&nbsp;<\/div>";
		document.write( windowContent );
    	
        paintNavAnchors( URLFlag );
		
		windowContent = "<\/div>";
		document.write( windowContent );
	}
              

	
		// paint header (logo and banner) and nav sidebar

	function paintHeaderAndSidebarTest( URLFlag ) {

		var navIndex = 1;

		windowContent = "<div>";
        windowContent += "<img src=\"photo_temp/banner5.jpg\" alt=\"Banner\">";
		windowContent += "<\/div>";        
		document.write( windowContent );


		windowContent = "<div id=\"sidebar\">";
		windowContent += "<div> &nbsp;&nbsp;<\/div>";
		document.write( windowContent );
    	
        paintNavAnchors( URLFlag );
		
		windowContent = "<\/div>";
		document.write( windowContent );
	}
              


	// end of script


