/***********************************************************************
Author: Joshua Greenwald
Date:	10/12/04
File: DMScripts.js
Description:
	Loads header, footer, and title html code so all pages can be updated
	in one place - also allows for faster loading times on web pages.
************************************************************************/

/***********************************************************************
Function:	 DisplayHeader
Description: Loads Header information
************************************************************************/
function DisplayHeader()
	{
	html  =	'<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">'+
				'	<tr>'+
				'		<td rowspan="2"><img src="images/header1.jpg"/></td>'+
				'		<td><img src="images/header2.jpg"/></td>'+
				'		<td width="100%" background="images/header3.gif" align="right" style="padding-top: 23; padding-right: 15">'+
				'		<img src="images/ohmsmall.gif"/><a href="gleanings.html" target="_blank">Gleanings on the Web</a>'+
				'		</td>'+
				'		<td rowspan="2" bgcolor="#B0D6FB"><img src="images/spacer.gif" width="20" height="1"/>		'+
				'		</td>'+
				'	</tr>'+
				'	<tr>'+
				'		<td colspan="2" background="images/menubar.gif">'+
				'		<table cellpadding="0" cellspacing="0" border="0" width="100%" style="position:relative;top:-6">'+
				'		<tr>'+
				'			<td width="1%"><img src="images/spacer.gif" width="1" height="40"/></td>'+
				'			<td><a href="index.html" alt="Home" class="MenuLink">Home</a></td>'+
				'			<td><a href="biography.html" alt="Biography" class="MenuLink">Biography</a></td>'+
				'			<td><a href="meditation.html" alt="Primordial Sound Meditation" class="MenuLink">Meditation</a></td>'+
				'			<td><a href="yoga.html" alt="Seven Spiritual Laws of Yoga" class="MenuLink">Yoga</a></td>'+
				'			<td><a href="schedule.html" alt="Schedule of Classes" class="MenuLink">Schedule</a></td>'+
				'			<td><a href="tools.html" alt="Playmakers" class="MenuLink">Playmakers</a></td>'+
				'			<td><a href="books.html" alt="Books" class="MenuLink">Books</a></td>'+
				'			<td><a href="contact.html" alt="Contact Information" class="MenuLink">Contact</a></td>'+
				'		</tr>'+
				'		</table>'+
				'		</td>'+
				'	</tr>'+
				'</table>';
	document.write(html);
	}
	
/***********************************************************************
Function:	 DisplayFooter
Description: Loads Footer information
************************************************************************/
function DisplayFooter()
	{
	html  =	'<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>'+
				'	<td style="font-size:10;color:#225555;text-align:center">'+
				'	Donna Miesbach<img src="images/spacer.gif" width="10" hieght="1"/>|<img src="images/spacer.gif" width="10" hieght="1"/>'+
				'	[E] <a href="mailto:dmiesbach@tconl.com">dmiesbach@tconl.com</a>'+
				'	<img src="images/spacer.gif" width="10" hieght="1"/>|<img src="images/spacer.gif" width="10" hieght="1"/>'+
				'	[P] 402-330-2474</td>'+
				'</tr></table>';
	document.write(html);
	}
	
/***********************************************************************
Function:	 DisplayTitle
Description: Loads Title information - requires image name passed in.
************************************************************************/
function DisplayTitle(image)
	{
	html  =	'<table cellpadding="0" cellspacing="0" border="0" width="100%">'+
				'<tr>'+
				'	<td rowspan="4"><img src="images/ohmmedium.gif"/></td>'+
				'	<td><img src="images/spacer.gif" width="10" height="16"/><img src="images/title' + image + '.gif"/></td>'+
				'</tr>'+
				'<tr>'+
				'	<td width="100%"><img src="images/spacer.gif" width="1" height="2" border="0"/></td>'+
				'</tr>'+
				'<tr>'+
				'	<td width="100%" bgcolor="#B0D6FB" background="images/linex.gif"><img src="images/spacer.gif" width="1" height="1" border="0"/></td>'+
				'</tr>'+
				'<tr>'+
				'	<td width="100%"><img src="images/spacer.gif" width="1" height="6" border="0"/></td>'+
				'</tr>'+
				'</table>';
	document.write(html);
	}
	
function SetDisplay(id)
	{
	dom = document.getElementById(id);
	if (dom.style.display == "none")
		{dom.style.display = "inline";}
	else
		{dom.style.display = "none";}
	}
