/*=========================================================================================*/
/*This is the footer to the Druga Noc website.  It is used as an external script and will be called by each page */
/* that requires the main footer.  When linking this script externally, you must also link the master stylesheet.*/
/* The master stylesheet is located in the directory css.  The filename is dn_master.css.  */                                                                    
/*=========================================================================================*/

/*=========================================================================================*/
// Call the main function to display the footer.
/*=========================================================================================*/
displayFooter ()

/*=====================================================*/
// Object - Main Menu 
// This object is constructed to hold the values      
// of the main menu ie. descriptions & urls
/*=====================================================*/
function MainMenu (mm_descr,mm_url ) {
this.mm_descr = mm_descr
this.mm_url = mm_url
}

/*=========================================================================================*/
// Main Function - displayFooter
// This function is used to contruct the template for the main footer.  
/*=========================================================================================*/
function displayFooter () {

/*Declare variables*/
var isMSIE = (navigator.appName=="Microsoft Internet Explorer");
var isDHTML = (parseInt(navigator.appVersion) > 3);
var isNS = (navigator.appName=="Netscape");
var myFooter = " "

/* Declare array - menu */
menu = new Array (5)
menu[0] = new MainMenu ("Home", "index.htm")
//menu[1] = new MainMenu ("Bio", "bio.htm")
menu[1] = new MainMenu ("Albums", "albums.htm")
menu[2] = new MainMenu ("Events", "events.htm")
//menu[3] = new MainMenu ("Photos", "photos.htm")
//menu[x] = new MainMenu ("Guestbook", "guestbook.htm")
menu[3] = new MainMenu ("Other Sites", "othersites.htm")
menu[4] = new MainMenu ("Contact", "contact.htm")


/* Draw the table for the footer according to the type of browser to the variable myFooter. */
myFooter +="<table width='772' border='0' bgcolor='#ffffff' cellspacing='0' cellpadding='0' summary='This table is used as a template for the Footer that will appear on each page in Druga Noc OnLine'>"
myFooter +="<tr>"
myFooter +="<td colspan='3'><img src='images/inside_spacer.gif' width='1' height='3' alt='' /></td>"
myFooter +="</tr>"
myFooter +="<tr>"
myFooter +="<td width='3'><img src='images/inside_spacer.gif' width='3' height='1' alt='' /></td>"
myFooter +="<td bgcolor='#000000'><span class='footerMenu'>"

/* Draw the main menu options refering to the object-Main Menu and array-menu*/
for ( var i=0; i <= menu.length - 1; i++) 
		{
		myFooter +="<a href='" + menu[i].mm_url + "' class='footMenu' title='" + menu[i].mm_descr + "'>" + menu[i].mm_descr + "&nbsp;|&nbsp;</a>" 
		}

myFooter +="</span></td>"
myFooter +="<td width='3'><img src='images/inside_spacer.gif' width='3' height='1' alt='' /></td>"
myFooter +="</tr>"
myFooter +="<tr>"
myFooter +="<td colspan='3'><img src='images/inside_spacer.gif' width='1' height='1' alt='' /></td>"
myFooter +="</tr>"
myFooter +="<tr>"
myFooter +="<td width='3'><img src='images/inside_spacer.gif' width='3' height='1' alt='' /></td>"
myFooter +="<td bgcolor='#000000'>"
myFooter +="<p class='textfooter'>"
myFooter +="Inquiries about this website please contact our <a href='mailto:webmaster@druganoc.com?subject=Druga Noc OnLine' class='foot' title='Email Webmaster'>webmaster.</a><br />"
myFooter +="Copyright 2004.  Druga Noc - All Rights Reserved."
myFooter +="</p>"
myFooter +="</td>"
myFooter +="<td width='3'><img src='images/inside_spacer.gif' width='3' height='1' alt='' /></td>"
myFooter +="</tr>"
myFooter +="<tr>"
myFooter +="<td colspan='3'><img src='images/inside_spacer.gif' width='1' height='3' alt='' /></td>"
myFooter +="</tr>"
myFooter +="</table>"
/* Write the contents of myFooter to the screen */

document.write(myFooter)

}

