//
// copyright 1995-2010 MRB Computer Services
//

//////////////////////////////////////////////////////////////////////////////
// No Spam e-mail Address
var user ;
var domain ;
var suffix ;
function nospamemail(user, domain, suffix, subject, displaytext)
	{
	document.write("<p><a href=mailto:"+user+"@"+domain+"."+suffix+"?subject="+subject+">"+displaytext+"</a>") ;
	}


//////////////////////////////////////////////////////////////////////////////
// embedded phone number
var area ;
var exchange ;
var number ;
function embedphonenumber(area, exchange, number)
	{
	document.write("("+area+")-"+exchange+"-"+number) ;
	}


//////////////////////////////////////////////////////////////////////////////
// embedded No Spam e-mail Address (No New Paragraph Tag)
var user ;
var domain ;
var suffix ;
function embednospamemail(user, domain, suffix, subject, displaytext)
	{
	document.write("<a href=mailto:"+user+"@"+domain+"."+suffix+"?subject="+subject+">"+displaytext+"</a>") ;
	}


//////////////////////////////////////////////////////////////////////////////
// Banner
function DisplayBanner(page)
	{
	document.write("<table width=100% cellspacing=0 cellpadding=5><tr><td>") ;
   if (page == "")
		document.write("<p align=right><font class=logo>MichaelBrogna.com</font><br><font class=sublogo><br></font></p>") ;
	else
		document.write("<p align=right><font class=logo>MichaelBrogna.com</font><br><font class=sublogo>"+page+"</font></p>") ;
	document.writeln("</td></tr></table>") ;
	}


//////////////////////////////////////////////////////////////////////////////
// DisplayLegal
function DisplayLegal()
	{
   document.write("<table class=box><tr><td align=center valign=center>") ;
	document.write("<font class=xsmall>These web photos are low resolution and size for browsing speed and convenience.</font>") ;
	document.write("<font class=xsmall><br>Any prints ordered will be made from high resolution, high quality masters.</font>") ;
	document.write("<font class=xxsmall><br>Unauthorized reproduction or copying is prohibited by law.</font>") ;
   document.write("</td></tr></table>") ;
	}

//////////////////////////////////////////////////////////////////////////////
// Copyright
function DisplayCopyright()
	{
	document.write("<font class=xxsmall>Copyright &copy; 1995-2010 by Michael Brogna. &nbsp;All rights reserved.</font>") ;
	}

//////////////////////////////////////////////////////////////////////////////
// Navigation Menus
var Menu ;

function DisplayMenus(page)
   {
   if (page == "home")
      {
      DisplayMenuEmail("full", "info", "MichaelBrogna", "com", "", "Send an e-Mail") ;
      DisplayMenuHalf("Videography","videography.html") ;
      DisplayMenuHalf("Helpdesk","helpdesk/index.html") ;
      }
   else if (page == "videography")
      {
      DisplayMenuEmail("full", "info", "MichaelBrogna", "com", "Help", "Send an e-Mail") ;
      DisplayMenuHalf("Home","index.html") ;
      DisplayMenuHalf("Helpdesk","helpdesk/index.html") ;
      }
   else if (page == "helpdesk")
      {
      DisplayMenuEmail("full", "info", "MichaelBrogna", "com", "Help", "Send an e-Mail") ;
      DisplayMenuHalf("Videography","../videography.html") ;
      DisplayMenuHalf("Home","../index.html") ;
      }
   else
      {
      DisplayMenuEmail("half", "info", "MichaelBrogna", "com", "Help", "Send an e-Mail") ;
      DisplayMenuHalf("Home","http://www.MichaelBrogna.com") ;
      }
   }
   
function DisplayMenuFull(item, link)
	{
	Menu="<a href="+link+">"+item+"</a>" ;
	document.write("<div class=menufull>"+Menu+"</div>") ;
	}
function DisplayMenuHalf(item, link)
	{
	Menu="<a href="+link+">"+item+"</a>" ;
	document.write("<div class=menuhalf>"+Menu+"</div>") ;
	}
function DisplayMenuThird(item, link)
	{
	Menu="<a href="+link+">"+item+"</a>" ;
	document.write("<div class=menuthird>"+Menu+"</div>") ;
	}
function DisplayMenuEmail(type, user, domain, suffix, subject, displaytext)
   {
	if (type == "third")
	   document.write("<div class=menuthird>") ;
	else if (type == "half")
	   document.write("<div class=menuhalf>") ;
	else
	   document.write("<div class=menufull>") ;
	document.write("<a href=mailto:"+user+"@"+domain+"."+suffix+"?subject="+subject+">"+displaytext+"</a>") ;
	document.write("</div>") ;
	}
