/*This file contains all the insertable code modules that mifht be common to more than one page. Having them all in this one file allows for site-wide changes to be made by changing only one file (this one).  Note, also, where apostrophe and single parentesis, which are a reserved character in JavaScript, are surrounded by back-slashes to force literal character write.*/

function MastHead() {
	var s = '';
	s+='<div >\n';
	s+='<table border=0 cellpadding=0 cellspacing=0 width=750>\n';
	s+='<tr valign=top>\n';
		s+='<td><img src="images/masthead.jpg" width=750 height=200 alt=""></td>\n';

	s+='</tr>\n';
	s+='</table>\n';
	s+='</div>\n';
	return s;
}



/*Navigation Buttons Module typically for narrow right-hand column */
function RHNavButtons() {
	var s = '';
			s+='<table width="100%" cellpadding="1" cellspacing="0" border="0" >\n';
			s+='<tr vAlign="top"><td >\n';

			s+='<table width="100%" cellpadding="1" cellspacing="0" border="0" background="images/purple10x10.jpg" >\n';
			s+='<tr vAlign="top"><td align="center">\n';
			s+='<table align="center" width="100%" cellpadding="0" cellspacing="0" border="0" background="images/white10x10.gif" onmouseover="background=\'\images/lblue10x10.gif\'\" onmouseout="background=\'\images/white10x10.gif\'\" >\n';
			s+='<tr vAlign="top">\n';
			s+='<td align="center" ><a href="map_home.html" target="Index" >Location Map</a>&nbsp\;\</td>\n';
			s+='</tr>\n';
			s+='</table>\n';
			s+='</td></tr>\n';
			s+='</table>\n';

	s+='</td></tr>\n';
	s+='<tr vAlign="top"><td align="center">\n';


			s+='<table width="100%" cellpadding="1" cellspacing="0" border="0" background="images/purple10x10.jpg" >\n';
			s+='<tr vAlign="top"><td align="center">\n';
			s+='<table align="center" width="100%" cellpadding="0" cellspacing="0" border="0" background="images/white10x10.gif" onmouseover="background=\'\images/lblue10x10.gif\'\" onmouseout="background=\'\images/white10x10.gif\'\" >\n';
			s+='<tr vAlign=top >\n';
			s+='<td align=center ><a href="jobs_home.html" target=Index >Job Vacancies</a>&nbsp\;\</td>\n';
			s+='</tr>\n';
			s+='</table>\n';
			s+='</td></tr>\n';
			s+='</table>\n';

	s+='</td></tr>\n';
	s+='<tr vAlign="top"><td align="center">\n';


			s+='<table width="100%" cellpadding="1" cellspacing="0" border="0" background="images/purple10x10.jpg" >\n';
			s+='<tr vAlign="top"><td align="center">\n';
			s+='<table align="center" width="100%" cellpadding="0" cellspacing="0" border="0" background="images/green_white_flash.gif" onmouseover="background=\'\images/lblue10x10.gif\'\" onmouseout="background=\'\images/green_white_flash.gif\'\" >\n';
			s+='<tr vAlign=top >\n';
			s+='<td align=center ><a href="room_hire.html" target=Index >Training Room Hire</a>&nbsp\;\</td>\n';
			s+='</tr>\n';
			s+='</table>\n';
			s+='</td></tr>\n';
			s+='</table>\n';


			s+='</td></tr></table>\n';
	return s;
}


/* CreditsRH is a Module for portrait credits typically for bottom narrow right-hand column */
function CreditsRH() {
	var s = '';
	s+='<table width="100%" cellpadding=5 cellspacing=0 border=0 >\n';
	s+='<tr vAlign="top"><td >\n';
	s+='<p><img src="images/old_ndp150x60.gif" width=150 height=60 border=0 alt="NDP Logo" >\n';
	s+='<font class=small>Baptec is funded by the Irish Government under the National Development Plan.</font></p>\n';
	s+='</td></tr>\n';
	s+='<tr vAlign="top"><td >&nbsp;</td></tr>\n';
	s+='<tr vAlign="top"><td >\n';
	s+='<img src="images/etp150x152.gif" width=150 height=152 border=0 alt="Excellence Through People" >\n';
	s+='</td></tr>\n';
	s+='<tr vAlign="top"><td >\n';
	s+='<font class=tiny >Baptec Limited<br>Unit C3<br>BASE Enterprise Centre<br>Ladyswell Road<br>Damastown<br>Dublin 15.<br>Directors: \n';
	s+='</td></tr>\n';
	s+='</table>\n';
	return s;
}


/* Google Search Panel */
function GoogleSearch() {
	var s = '';
	s+='<table border="0" cellpadding="5" cellspacing="0" width="750" >\n';
	s+='	<tr valign="top"><td >&nbsp;</td></tr>\n';
	s+='	<tr valign="top"><td ><font class=likelink>&nbsp;</font></td></tr>\n';
	s+='	<tr valign="top"><td >\n';
	s+='	<FORM method=GET action="http://www.google.com/search">\n';
	s+='	<TABLE bgcolor="#FFFFFF"><tr><td>\n';
	s+='	<A HREF="http://www.google.com/"><IMG SRC="http://www.google.com/logos/Logo_40wht.gif" border="0" ALT="Google"></A>\n';
	s+='	</td><td>\n';
	s+='	<INPUT TYPE=text name=q size=31 maxlength=255 value="">\n';
	s+='	<INPUT type=submit name=btnG VALUE="Google Search">\n';
	s+='	<font class=likelink >\n';
	s+='	<input type=hidden name=domains value="www.baptec.ie"><br><input type=radio name=sitesearch value="">The entire web <input type=radio name=sitesearch value="www.baptec.ie" checked>This site only<br>\n';
	s+='	</font>\n';
	s+='	</td></tr></TABLE>\n';
	s+='	</FORM>\n';
	s+='	</tr></td>\n';
	s+='</table>\n';
	return s;
}