//Footer for pages

//Globals  /////////////////////////////////////////////////////////////
var clientname, clientemailpre, clientemailpost, contactid, address;
var copyright_date = new Date();                    //Make a Date object
var copyright_year = copyright_date.getFullYear();  //Create a year string from Date
var classtext, classanchors, classcurrpage, classtextcopyright;
//Bottom of page nav items here
var footernav_text = new Array('Home',
                               'About',
							   'Products',
							   'ISO 9001',
							   'Embroidery',
							   'Swatches',
							   'Repairs'							 
							   );

var footernav_URLs =  new Array('index.html',
						       'aboutus.html',
							   'products.html',
							   'iso9001.html',
							   'embroidery.html',
							   'swatches_prtnylon.html',
							   'repair_recovery.html'
							   );
//Define classes here
classtext     = "text_footer";
classanchors  = "text_footer";
classcurrpage = "text_footer";
classcopyrt   = "text_footer";
classcopyrightsym = "text_normal_blue";
var termsURL = "terms.html";
////////////////////////////////////////////////////////////////////////

// DEFINES /////////////////////////////////////////////////////////////

//Put footer text here

terms = "";

var footer = "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"3\"><tr><td width=\"30%\"><span class=\"text_footer\">Contact Us at (757)533-5434</span></td><td><a href=\"calendar.html\" class=\"text_main\"><img src=\"images/calendaricon.gif\" width=\"31\" height=\"22\" align=\"absmiddle\" border=\"0\"></a> <a href=\"calendar.html\" class=\"text_cal\">CALENDAR</a></td><td align=\"right\"><span class=\"text_footer2\">&nbsp;&nbsp;&copy;" + copyright_year  + ", Virginia Chamber Players &mdash; All Rights reserved.&nbsp;&nbsp;</span></td></tr></table>";


////////////////////////////////////////////////////////////////////////
/////////////////  FUNCTIONS ///////////////////////////////////////////
////////////////////////////////////////////////////////////////////////

function print_bottom_nav(){
  var navStr = '';
  document.write("<div align=\"center\" class=\"" + classtext + "\">");
  for (var i = 0; i < footernav_text.length; i++){

    //if(location.href.indexOf(footernav_URLs[i])== -1){
    navStr += "<a href=\"" + footernav_URLs[i] + "\" class=\"" + classanchors + "\">" + footernav_text[i] + "</a> | ";  
    //} else {
	 //This would be the current page
	 //navStr += "<span class=\"" + classcurrpage + "\">"+ footernav_text[i] + "</span> | ";  
	//}
  }
  
  navStr = navStr.slice(0,-2); //triMM off the last "|" char
   document.write(navStr + " </div>");
}



function print_footer(){
   //Just write the string created above
   
   //print_bottom_nav();//Ooops. No botton nav
   //document.write("<!--spacer for copyright into here.  pushes away from bottom links --><img src=\"images/spacer.gif\" width=\"400\" height=\"2\">");
   document.write(footer);
}



