/*=========================================================================================*/
//This is the navigation options for the Photo Gallery section.           
// It is used as an external script and will be called by each page created for the Photos.                       
// When linking this script externally, you must also link the master stylesheet.          
// The master stylesheet is located in the directory /css/master.css.                                                                                          
/*=========================================================================================*/
/*=====================================================*/
// Call the main function to display the Navigation Menu.
/*=====================================================*/
displayPhotoNAV ()

/*=====================================================*/
// Object - NAVmenu 
// This object is constructed to hold the values      
// of the navigation menu ie. descriptions & urls
/*=====================================================*/
function NAVmenu (nav_descr,nav_url ) {
this.nav_descr = nav_descr
this.nav_url = nav_url
}

/*=====================================================*/
// Main Function - displayPhotoNAV
// This function is used to contruct the template 
// for the Photo Navigation Menu                                  
/*=====================================================*/
function displayPhotoNAV () {

/*Declare variables*/
var isMSIE = (navigator.appName=="Microsoft Internet Explorer");
var isDHTML = (parseInt(navigator.appVersion) > 3);
var isNS = (navigator.appName=="Netscape");
var pgCurrent = window.location.pathname
var myNAV = " "

/* Declare array - menu */
menu = new Array (20)
menu[0] = new NAVmenu ("Easter Dance April 2007", "photos.htm") /*edance04082007*/
menu[1] = new NAVmenu ("Bash At The Beach Sept. 2006", "photos_beachbash09152006.htm") /*beachbash09152006*/
menu[2] = new NAVmenu ("Croatia August 2006", "photos_croatia08312006.htm") /*croatia08312006*/
menu[3] = new NAVmenu ("Festival Banquet 2006", "photos_festsat05202006.htm") /*festsat05202006*/
menu[4] = new NAVmenu ("Festival Dance May 2006", "photos_festdance05192006.htm") /*festdance05192006*/
menu[5] = new NAVmenu ("Dom Dance March 2006", "photos_domdance03242006.htm") /*domdamce03242006*/
menu[6] = new NAVmenu ("Christmas Holiday 2005", "photos_xmas12252005.htm") /*xmas12252005*/
menu[7] = new NAVmenu ("Thanksgiving Day Dance 2005", "photos_tgiving10222005.htm") /*  */
menu[8] = new NAVmenu ("March Madness 2005", "photos_marchmadness03182005.htm") /* marchmadness03182005 */
menu[9] = new NAVmenu ("Dom Dance February 2005", "photos_domdance02252005.htm") /* domdance02252005 */
menu[10] = new NAVmenu ("Dom Dance October 2004", "photos_domdance10152004.htm") /* domdance10152004 */
menu[11] = new NAVmenu ("Magazin Concert May 2004", "photos_magazin05012004.htm") /* magazin05012004 */
menu[12] = new NAVmenu ("Easter Dance April 2004", "photos_edance04112004.htm")
menu[13] = new NAVmenu ("Jole Concert 2003", "photos_joleconcert09112003.htm") 
menu[14] = new NAVmenu ("Bash At The Beach July 2003", "photos_beachbash07122003.htm") 
menu[15] = new NAVmenu ("Nobody Here!!", "photos_croclub06152003.htm") 
menu[16] = new NAVmenu ("CD Release Party 2003", "photos_cdparty02222003.htm")
menu[17] = new NAVmenu ("Valentines Dance 2003", "photos_vdance02142003.htm")
menu[18] = new NAVmenu ("Petar Graso Concert 2003", "photos_pgraso02082003.htm")
menu[19] = new NAVmenu ("Where did these come from?", "photos_misc.htm")


/* Draw the table for the header according to the type of browser to the variable myHeader. */
myNAV +="<table border='0' width='100%' height='0' cellspacing='0' cellpadding='0' summary=''>"
myNAV +="<tr>"
myNAV +="<td align='left' valign='top'>"
myNAV +="<img src='images/photos_hdr_archives.gif' width='220' height='25'  alt='Archives' />"
myNAV +="<p class='textsmallwhite'>"
myNAV +="This is it. What you came for. Photographs of Druga Noc. Choose an image archive from the list and click. Then select and click on the photo you want.  Enjoy!!"
myNAV +="</p>"

/* Draw the Navigation menu reffering to the object-NAVMenu and array-menu*/

myNAV +="<table border='0' width='100%' height='0' cellspacing='0' cellpadding='0' summary=''>"
myNAV +="<tr>"
myNAV +="<td colspan='2'><img src='images/img_linebreak.gif' width='220' height='7' alt='' /></td>"
myNAV +="</tr>"	

for ( var i=0; i <= menu.length - 1; i++) 
		{
		myNAV +="<tr>"
		myNAV +="<td align='right'>"
		  	if (pgCurrent == "\/" + menu[i].nav_url){myNAV +="<img src='images/img_pointer.gif' width='20' height='10'  alt='' />";}		
		myNAV +="</td>"
		myNAV +="<td>"
					myNAV +="<a href='" + menu[i].nav_url + "' title='" + menu[i].nav_descr + "'>" + menu[i].nav_descr + "</a></dd>" 
		myNAV +="</td>"
		myNAV +="</tr>"
		myNAV +="<tr>"
		myNAV +="<td colspan='2'><img src='images/img_linebreak.gif' width='220' height='7' alt='' /></td>"
        myNAV +="</tr>"	
		}

myNAV +="</table>"
		
myNAV +="</td>"
myNAV +="</tr>"
myNAV +="</table>"

/* Write the contents of myNAV to the screen */
document.write(myNAV)

}
 
