//=========================================================================
//Custom Function to create the footer on every page.
//Used: http://www.dynamicdrive.com/emailriddler/
//=========================================================================
function MailMain() {

    //var emailriddlerarray = [98, 97, 114, 114, 105, 113, 117, 101, 64, 118, 111, 100, 97, 109, 97, 105, 108, 46, 99, 111, 46, 122, 97]
    //var encryptedemail_id12 = '' //variable to contain encrypted email 
    //for (var i = 0; i < emailriddlerarray.length; i++)
    //    encryptedemail_id12 += String.fromCharCode(emailriddlerarray[i])'
    //document.write('<a href="mailto:' + encryptedemail_id12 + '">' + encryptedemail_id12 + '</a>')
    //for now current email
    document.write('<a href="mailto:edenheim@isat.co.za">edenheim@isat.co.za</a>')
}

// place the footer
function placeFooter()
{
	newstring  = '';
	newstring += '<center>';
//	newstring += '<div class="divFooterLeft"> All images and content &copy; <a title="Videography" href="http://www.bnproductions.co.za"> Beautiful Noise Productions</a></div>';
//	newstring += '<div class="divFooterRight">Designed and hand coded by <a href="http://www.funkypixel.co.za">Funky Pixel</a></div>';
	newstring += '<div class="divFooterLeft"> All images and content &copy;  <a title="Videography" href="http:\/\/www.bnproductions.co.za">Beautiful Noise Productions<\/a><\/div>';
	newstring += '<div class="divFooterRight">Designed and hand coded by <a href="http:\/\/www.funkypixel.co.za">Funky Pixel<\/a><\/div>';
	newstring += '</center>';
	document.write(newstring);
}
/* (text, filename, width) */
Menu00 = new Array("HOME",         "index.htm", "80px");
Menu01 = new Array("VIDEOGRAPHY",  "videography.htm", "110px");
Menu02 = new Array("PHOTOGRAPHY",  "photography.htm", "100px");
Menu03 = new Array("PACKAGES",     "packages.htm", "100px");
Menu04 = new Array("BLOG",         "http://bnproductions.wordpress.com/", "80px");
Menu05 = new Array("CONTACT US",   "contactus.htm", "100px");

var NoOfFirstLineMenus = 6;

/* This function is called to create the MainMenu.
   Selected     = Find page name in first column of Menu array */ 
function MenuMain(selected) {
  var newstring = '';
  var arrayname = '';

  newstring = '<ul id="divMenuTopUL">\n';
  for(i=0; i<NoOfFirstLineMenus; i++)
  {
    arrayname = eval("Menu0"+i);  
		if (arrayname[0] == "BLOG")
		{var strTarget="_blank"}
		else
		{var strTarget="_top"}
    if (selected == arrayname[0]) 
      {newstring += '<li class="menuCurrent" style="width:' + arrayname[2] + '">' + arrayname[0] + '<\/li>\n';}
    else
      {newstring += '<li><a href="' + arrayname[1] + '" title ="' + arrayname[0] + '" style="width:' + arrayname[2] + '" target="' + strTarget + '">' + arrayname[0] + '<\/a><\/li>\n';}

  } 
  newstring += '<\/ul>\n';
  document.write(newstring);
}

