function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function change1(picName,imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + ".src");
      document[picName].src= imgOn;
    }
 }
 
//preload image function
var myimages=new Array()
function preloadimages()
{
	for (i=0;i<preloadimages.arguments.length;i++)
	{
		myimages[i]=new Image()
		myimages[i].src=preloadimages.arguments[i]
	}
}
//Enter path of images to be preloaded inside parenthesis. Extend list as desired.
preloadimages("images/img_white.gif","images/bt_academics_hover.jpg","images/bt_contact_hover.jpg","images/bt_illustrations_hover.jpg","images/bt_portfolio_hover.jpg","images/bt_profile_hover.jpg","images/bt_home_hover.jpg");
 

function imglarg(url, w, h, scroll)
{
	window.open(url,'popupbigimg','width='+w+',height='+h+',toolbar=no,menubar=no,statusbar=no,scrollbars='+scroll+',top=100,left=200,resizable=no');
} 
 
 
function header()
{ 
	document.write(" 	<table cellpadding='0' cellspacing='0' width='100%' border='0'>");
	document.write(" 		<tr><td width='100%' height='24'></td></tr>");
	document.write(" 	</table>");
	document.write(" 	<table cellpadding='0' cellspacing='0' width='853' border='0'>");
	document.write(" 		<tr><td width='853'><img src='images/logo.gif' width='853' height='48' border='0'></td></tr>");
	document.write(" 		<tr><td><a href='index.htm'><img src='images/topimg.gif' width='853' height='92' border='0'></a></td></tr>");
	document.write(" 		<tr><td><img src='images/topimg1.gif' width='853' height='25' border='0'></td></tr>");
	document.write(" 	</table>");
}
 
function link()
{
	document.write("		<table cellpadding='0' cellspacing='0' width='100%' border='0'>");
	document.write("        	<tr><td width='100%' height='8'></td></tr>");
	document.write("			<tr><td><a href='index.htm' onMouseOut='MM_swapImgRestore()' onMouseOver=MM_swapImage('home','','images/bthomeh.jpg',1)><img name='home' id='home' src='images/bthome.jpg' width='109' height='20' border='0'></a></td></tr>");
	document.write("			<tr><td height='8'></td></tr>");
	document.write("			<tr><td><a href='aboutus.htm' onMouseOut='MM_swapImgRestore()' onMouseOver=MM_swapImage('aboutus','','images/btaboutush.jpg',1)><img name='aboutus' id='aboutus' src='images/btaboutus.jpg' width='109' height='20' border='0'></a></td></tr>");
	document.write("			<tr><td height='8'></td></tr>");
	document.write("			<tr><td><a href='tariff.htm' onMouseOut='MM_swapImgRestore()' onMouseOver=MM_swapImage('tariff','','images/bttariffh.jpg',1)><img name='tariff' id='tariff' src='images/bttariff.jpg' width='109' height='20' border='0'></a></td></tr>");
	document.write("			<tr><td height='8'></td></tr>");
	document.write("			<tr><td><a href='packages.htm' onMouseOut='MM_swapImgRestore()' onMouseOver=MM_swapImage('packages','','images/btpackagesh.jpg',1)><img name='packages' id='packages' src='images/btpackages.jpg' width='109' height='20' border='0'></a></td></tr>");
	document.write("			<tr><td height='8'></td></tr>");
	document.write("			<tr><td><a href='placestovisit.htm' onMouseOut='MM_swapImgRestore()' onMouseOver=MM_swapImage('placestovisit','','images/btplacestovisith.jpg',1)><img name='placestovisit' id='placestovisit' src='images/btplacestovisit.jpg' width='109' height='20' border='0'></a></td></tr>");
	document.write("			<tr><td height='8'></td></tr>");
	document.write("			<tr><td><a href='adventure.htm' onMouseOut='MM_swapImgRestore()' onMouseOver=MM_swapImage('adventure','','images/btadventureh.jpg',1)><img name='adventure' id='adventure' src='images/btadventure.jpg' width='109' height='20' border='0'></a></td></tr>");
	document.write("			<tr><td height='8'></td></tr>");
	document.write("			<tr><td><a href='yoga.htm' onMouseOut='MM_swapImgRestore()' onMouseOver=MM_swapImage('yoga','','images/btyogah.jpg',1)><img name='yoga' id='yoga' src='images/btyoga.jpg' width='109' height='20' border='0'></a></td></tr>");
//	document.write("			<tr><td height='8'></td></tr>");
//	document.write("			<tr><td><a href='reservation.htm' onMouseOut='MM_swapImgRestore()' onMouseOver=MM_swapImage('reservation','','images/btreservationh.jpg',1)><img name='reservation' id='reservation' src='images/btreservation.jpg' width='109' height='20' border='0'></a></td></tr>");
	document.write("			<tr><td height='8'></td></tr>");
	document.write("			<tr><td><a href='contact.htm' onMouseOut='MM_swapImgRestore()' onMouseOver=MM_swapImage('contact','','images/btcontacth.jpg',1)><img name='contact' id='contact' src='images/btcontact.jpg' width='109' height='20' border='0'></a></td></tr>");
//	document.write("			<tr><td height='8'></td></tr>");
	document.write("        </table>");
} 


function footer()
{
	document.write("	<table cellpadding='0' cellspacing='0' width='853' border='0'>");
	document.write("		<tr>");
	document.write("			<td width='13'><img src='images/blanker.gif' width='1' height='1' border='0'></td>");
	document.write("			<td width='360' valign='top'>");
	document.write("				<table cellpadding='0' cellspacing='0' width='360' border='0'>");
	document.write("	            	<tr>");
	document.write("						<td width='1' class='bggray'><img src='images/blanker.gif' width='1' height='1' border='0'></td>");
	document.write("						<td width='358' class='bgblue' height='10'></td>");
	document.write("						<td width='1' class='bggray'><img src='images/blanker.gif' width='1' height='1' border='0'></td>");
	document.write("	            	</tr>");
	document.write("					<tr><td colspan='3' class='bggray'></td></tr>");
	document.write("	            </table>");
	document.write("			</td>");
	document.write("			<td width='6' height='14'></td>");
	document.write("			<td width='476' class='textwhite'><span class='textred'>design:</span> <a href='http://www.allenshaw.com' target='_blank'>allenshaw communicaitions</a></td>");
	document.write("		</tr>");
	document.write("	</table>");
	document.write("	<table cellpadding='0' cellspacing='0' width='853' border='0'>");
	document.write("		<tr><td width='853' colspan='2' height='5'></td></tr>");
	document.write("		<tr><td width='13'></td><td width='840' background='images/bgfooter.gif' height='32'></td></tr>");
	document.write("	</table>");
	document.write("	<table cellpadding='0' cellspacing='0' width='100%' border='0'>");
	document.write("		<tr><td width='100%' height='24'></td></tr>");
	document.write("	</table>");
}