var imageURL = 'images/';
var siteURL ="./";

// CSS Browser Selector   v0.2.5
// Documentation:         http://rafael.adm.br/css_browser_selector
// License:               http://creativecommons.org/licenses/by/2.5/
// Author:                Rafael Lima (http://rafael.adm.br)
// Contributors:          http://rafael.adm.br/css_browser_selector#contributors
//  
// Set CSS attributes with the code of each browser/os you want to hack
//   Examples:   
//      html.gecko div#header { margin: 1em; } 
//      .opera #header { margin: 1.2em; } 
//      .ie .mylink { font-weight: bold; } 
//      .mac.ie .mylink { font-weight: bold; } 
//      .[os].[browser] .mylink { font-weight: bold; } -> without space between .[os] and .[browser] 
///
//   Available OS Codes [os]:
//      win - Microsoft Windows 
//      linux - Linux (x11 and linux) 
//      mac - Mac OS 
//      
// Available browser codes:
//   ie - Internet Explorer (All versions) 
//   ie6 - Internet Explorer 6.x 
//   ie5 - Internet Explorer 5.x 
//   gecko - Mozilla, Firefox, Camino 
//   opera - Opera (All versions) 
//   opera8 - Opera 8.x 
//   opera9 - Opera 9.x 
//   konqueror - Konqueror 
//   webkit or safari - Safari, NetNewsWire, OmniWeb, Shiira 
//
var css_browser_selector = function() {
	var 
		ua=navigator.userAgent.toLowerCase(),
		is=function(t){ return ua.indexOf(t) != -1; },
		h=document.getElementsByTagName('html')[0],
		b=(!(/opera|webtv/i.test(ua))&&/msie (\d)/.test(ua))?('ie ie'+RegExp.$1):is('gecko/')? 'gecko':is('opera/9')?'opera opera9':/opera (\d)/.test(ua)?'opera opera'+RegExp.$1:is('konqueror')?'konqueror':is('applewebkit/')?'webkit safari':is('mozilla/')?'gecko':'',
		os=(is('x11')||is('linux'))?' linux':is('mac')?' mac':is('win')?' win':'';
	var c=b+os+' js';
	h.className += h.className?' '+c:c;
}();


function jumpto(x){
if (x != "null") {
	window.location = x;
	}
}

function write_homeTopBanner() {
document.writeln('<div id="topBanner">');
document.writeln('   <img src="'+imageURL+'bannerWithPics.jpg" alt="Main Library Banner" height="155">');
document.writeln('</div>');
document.writeln('<div class="homelinkimg">');
document.writeln('   <a href="'+siteURL+'"><img src="'+imageURL+'transHomeLink.gif" alt="Link to home"width="139" height="155"></a>');
document.writeln('</div>');
}

function write_mainTopBanner(home) { 
var numArgs = write_mainTopBanner.arguments.length;

document.writeln('<div id="topBanner">');
if (numArgs > 0 || home)
	document.writeln('   <img src="'+imageURL+'homeBannerWithPics.jpg" alt="Main Library Banner" border="0" height="155">');
else
	document.writeln('   <img src="'+imageURL+'bannerWithPics825.jpg" alt="Main Library Banner" border="0" height="155">');	
	
document.writeln('</div>');
document.writeln('<div class="homelinkimg">');
document.writeln('   <a href="'+siteURL+'index.htm"><img src="'+imageURL+'transHomeLink.gif" alt="Link to home" border="0" width="139" height="155"></a>');
document.writeln('</div>');
}

function write_eventsTopBanner() { 
document.writeln('<div id="topBanner">');
document.writeln('<div id="eventsTopImg">');
document.writeln('   <img src="'+imageURL+'eventsBannerWithPics.jpg" alt="Main Library Banner" border="0" height="155">');	
document.writeln('</div>');
document.writeln('<div id="eventsLinks">');
document.writeln('<IMG height=15 src="'+imageURL+'arrw_btn_right_cal.gif" width=16>');
document.writeln('<A href="'+siteURL+'programs/webevent.pl?cmd=opencal&amp;cal=cal2&amp;" target="main">View&nbsp;All&nbsp;Programs</A>');
document.writeln('<BR><IMG height=15 src="'+imageURL+'arrw_btn_right_cal.gif" width=16>');
document.writeln('<A href="http://www.howelllibrary.org/programs/webevent.pl?cmd=opencal&amp;cal=cal5&amp;" target="main">View&nbsp;Adult&nbsp;Programs</A>');
document.writeln('<BR><IMG height=15 src="'+imageURL+'arrw_btn_right_cal.gif" width=16>');
document.writeln('<A href="http://www.howelllibrary.org/programs/webevent.pl?cmd=opencal&amp;cal=cal4&amp;" target="main">View&nbsp;Tween&nbsp;and&nbsp;Teen&nbsp;Programs</A>');
document.writeln('<BR><IMG height=15 src="'+imageURL+'arrw_btn_right_cal.gif" width=16>');
document.writeln('<A href="http://www.howelllibrary.org/programs/webevent.pl?cmd=opencal&amp;cal=cal3&amp;" target="main">View&nbsp;Kids&nbsp;Programs</A>');
document.writeln('<BR><IMG height=16 src="'+imageURL+'arrw_btn_up_cal.gif" width=15>');
document.writeln('<A href="index.htm" target=_top>Go&nbsp;Back</A></FONT></P></TD>');
document.writeln('</div>');
document.writeln('</div>');
document.writeln('<div class="homelinkimg">');
document.writeln('   <a href="'+siteURL+'index.htm" target="_top"><img src="'+imageURL+'transHomeLink.gif" alt="Link to home" border="0" width="139" height="155" ></a>');
document.writeln('</div>');
}
function write_kidTopBanner() {
document.writeln('<div id="kidTopBanner">');
document.writeln('    <img src="'+imageURL+'kidBannerWithPics825.jpg" alt="Kids Library Banner" border="0" height="155">');
document.writeln('</div>');
document.writeln('<div class="homelinkimg">');
document.writeln('   <a href="'+siteURL+'index.htm"><img src="'+imageURL+'transHomeLink.gif" alt="Link to home" border="0" width="139" height="155"></a>');
document.writeln('</div>');
}

function write_tweenTopBanner() {
document.writeln('<div id="tweenTopBanner">');
document.writeln('      <img src="'+imageURL+'tweenBannerWithPics825.jpg" alt="Tween Library Banner" border="0" height="155">');
document.writeln('</div>');
document.writeln('<div class="homelinkimg">');
document.writeln('   <a href="'+siteURL+'index.htm"><img src="'+imageURL+'transHomeLink.gif" alt="Link to home" border="0" width="139" height="155"></a>');
document.writeln('</div>');
}

function write_teenTopBanner() {
document.writeln('<div id="teenTopBanner">');
document.writeln('      <img src="'+imageURL+'teenBannerWithPics825.jpg" alt="Teen Library Banner" border="0" height="155">');
document.writeln('</div>');
document.writeln('<div class="homelinkimg">');
document.writeln('   <a href="'+siteURL+'index.htm"><img src="'+imageURL+'transHomeLink.gif" alt="Link to home" border="0" width="139" height="155"></a>');
document.writeln('</div>');
}

function write_dropdownMenus(barColor){
if (write_dropdownMenus.arguments.length>0) { 
	document.writeln('<div id="dropdownMenus" style="background-color:'+barColor+'"><a href="'+siteURL+'asklib.htm"><b>Ask Us</b></a>   |   <a href="http://0-lhh.tutor.com.hcdlils.howelllibrary.org/ngen/apps/socweb/main.aspx?ID=9b933c36-8f67-40b7-91e2-f72839ed2ca9">Live Homework Help Online</a><img src="images/registered.gif" width="10" height="10">   |   <a href="http://www.booksite.com/texis/scripts/bookletter/addnluser.html?sid=7094"><b>Sign up for E-Newsletters</b></a>  |   <a href="vtour_1.htm"><b>Tour the Library</b></a></div>');
    }
else {
	document.writeln('<div id="dropdownMenus" style="background-color:#444444"><a href="'+siteURL+'asklib.htm"><b>Ask Us</a>   |   <a href="http://0-lhh.tutor.com.hcdlils.howelllibrary.org/ngen/apps/socweb/main.aspx?ID=9b933c36-8f67-40b7-91e2-f72839ed2ca9">Live Homework Help Online</a>   |   <a href="vtour_1.htm">Tour the Library</a></b></div>');
	}
}

function write_Leftside(pagetype){
if (pagetype=="main") {
   document.writeln('<div id="left"><div class="column-in">');
   document.writeln('<p id="menuHolder"></p>');
   document.writeln('<p id="menuHolder2"></p>');
   document.writeln('<div id="lhh"><hr width=100% color="#550097" /><a href="http://0-lhh.tutor.com.hcdlils.howelllibrary.org/ngen/apps/socweb/main.aspx?ID=9b933c36-8f67-40b7-91e2-f72839ed2ca9"><img src="kids/tutor_logo_sm.png" alt="Live Homework Help"align="center"><a href="http://0-lhh.tutor.com.hcdlils.howelllibrary.org/ngen/apps/socweb/main.aspx?ID=9b933c36-8f67-40b7-91e2-f72839ed2ca9"><font color="#550097"><br>Live Homework Help</font></a><img src="images/registered.gif" width="10" height="10">');
   document.writeln('<div id="form"><hr width=100% color="#550097" /><a href="http://www.howelllibrary.org/formlocker.html"><font color="#550097">Howell High School-Parker Campus<br>24-Hour Locker Pick-up Form</font></a>');
   document.writeln('<div id="suggest"><hr width=100% color="#550097" /><a href="http://www.howelllibrary.org/form_suggest_form.htm"><font color="#550097">Suggestions<br>to Purchase</font></a>');
   document.writeln('<div id="news"><hr width=100% color="#550097" /><a href="http://www.howelllibrary.org/newsletter/BF_spring_summer2010.pdf"><font color="#550097">Read Our<br>Newsletter</font></a>');
   document.writeln('<div id="google"><hr width=100% color="#550097" /><a href="http://maps.google.com/maps?q=314+W+Grand+River+Ave,+Howell,+Livingston,+Michigan+48843,+United+States&hl=en__&ie=UTF8&cd=1&sll=37.0625,-95.677068&sspn=60.376022,113.730469&mpnum=0&ll=42.608853,-83.931921&spn=0.006965,0.013883&z=16&iwloc=addr&om=1"><font color="#550097">Get Directions<br></font></a> <hr width=100% color="#550097" />');
   document.writeln('</div></div>');
   document.writeln('</div></div></div></div></div>');
   }
else if (pagetype=="kid" || pagetype=="tween" || pagetype=="teen") {
	var kidMenuItems = new Array("Kids! Home", "Events", "Catalog", "Story Times", "Book Lists", "Homework Help", "Cool Sites");
	var kidMenuLinks = new Array(siteURL+"kids.htm", siteURL+"kids_events.htm", "http://hcdlils.howelllibrary.org", 
	siteURL+"kids_storytimes.htm",  siteURL+"kids_bklists.htm", siteURL+"kids_hh.htm", siteURL+"kidResources.htm");
	var tweenMenuItems = new Array("'Tween Home", "Events", "Catalog", "Book Lists", "Homework Help", "Cool Sites");
	var tweenMenuLinks = new Array(siteURL+"tweens.htm", siteURL+"tweens_events.htm","http://hcdlils.howelllibrary.org", 
	siteURL+"tweens_bklists.htm", siteURL+"tweens_hh.htm", siteURL+"tweenResources.htm");
	var teenMenuItems = new Array("Teens Home", "Events", "New Books", "Book Lists", "Homework Help", "On the Web");
	var teenMenuLinks = new Array(siteURL+"teens.htm", siteURL+"teens_events.htm", siteURL+"teens_newbk.htm", 
	siteURL+"teens_bklists.htm", siteURL+"teens_hh.htm", siteURL+"teenResources.htm");

	 document.writeln('<div id="left"><div class="column-in">');
	 document.writeln('	 <div id="altMenu">');

	 var menuItems, menuLinks;
	 
	 if (pagetype == "kid") { menuItems = kidMenuItems; menuLinks = kidMenuLinks; }
	 else if (pagetype == "tween") { menuItems = tweenMenuItems; menuLinks = tweenMenuLinks; } 
	 else { menuItems = teenMenuItems; menuLinks = teenMenuLinks; } 
	 
	 for (i=0; i<menuItems.length; i++) {
	 	 document.writeln('	 <a href="'+menuLinks[i]+'">'+menuItems[i]+'</a>');
		 }
		 
	 document.writeln('	       </div>');
	 document.writeln('	 </div></div>');
	 }
}

function write_HowDoI() {
document.writeln('	<div id="HowDoI">');
document.writeln('			  <form name="form1">');
document.writeln('			  <span class="boldLabel">How Do I </span>');
document.writeln('  		  <select name="jumpmenu" onChange="jumpto(document.form1.jumpmenu.options[selectedIndex].value);">');
document.writeln('			  <option value=""> ...</option>');
document.writeln('			  <option value=hours.htm>when the library is open?</option>');
document.writeln('			  <option value="'+siteURL+'services.htm#getLibraryCard">get a library card?</option>');
document.writeln('			  <option value="'+siteURL+'services.htm#CheckoutMaterials">checkout materials?</option>');
document.writeln('			  <option value="'+siteURL+'services.htm#borrowPeriod">when are materials due?</option>');
document.writeln('			  <option value="'+siteURL+'services.htm#renew">renew my books?</option>');
document.writeln('			  <option value="'+siteURL+'services.htm#reserves">reserve materials?</option>');
document.writeln('			  <option value="'+siteURL+'kids_storytimes.htm">find kids\' storytimes?</option>');
document.writeln('			  <option value="'+siteURL+'Library%20Fees.doc">find out about fines?</option>');
document.writeln('			  <option value="'+siteURL+'tours.htm">book a tour?</option>');
document.writeln('			  <option value="'+siteURL+'friends.htm">join Friends of the Library?</option>');
document.writeln('			  </select>');
document.writeln('			  </form>');
document.writeln('	</div>');

}

function write_searchSite() {
document.writeln('<!-- Site Search -->');
document.writeln('	 <div id="siteSearch">');
document.writeln('	 <span class="boldLabel">Search Our Site</span>');
document.writeln('	 <FORM ACTION="http://search.freefind.com/find.html" METHOD="GET" accept-charset="utf-8" target="_self">');
document.writeln('	 <FONT size=1 face="arial,helvetica" >');
document.writeln('	 <INPUT TYPE="HIDDEN" NAME="id" VALUE="78397537">');
document.writeln('	 <INPUT TYPE="HIDDEN" NAME="pageid" VALUE="r">');
document.writeln('	 <INPUT TYPE="HIDDEN" NAME="mode" VALUE="ALL">');
document.writeln('	 <INPUT type="HIDDEN" name="n" value="0">');
document.writeln('	 <INPUT TYPE="HIDDEN" NAME="_charset_" VALUE="">');
document.writeln('	 <INPUT TYPE="HIDDEN" NAME="bcd" VALUE="%">');
document.writeln('	 <INPUT TYPE="TEXT" NAME="query" SIZE="15"><small> ');
document.writeln('	 <INPUT TYPE="SUBMIT" VALUE=" Find "><br>');
document.writeln('	 </small>powered by <A HREF="http://www.freefind.com">');
document.writeln('FreeFind</A></font></FORM>');
document.writeln('	</div>');
document.writeln('<!-- Site Search -->	  ');
}

function write_contactInfo(){
document.writeln('		<p class="contactus">Howell Carnegie District Library<br>');
document.writeln('			   	314 W. Grand River<br>');
document.writeln('				Howell, MI 48843<br>');
document.writeln('				Phone: (517)546-0720<br>');
document.writeln('				Fax: (517) 546-1494');
document.writeln('		</p>');
document.writeln('	    <p class="contactus"><span class=fT><a href="mailto:administrator@howelllibrary.org">Comments / Suggestions</a></span></p>');
}

function write_secondaryRightside(showStoryTime) {
document.writeln('<div id="right"><div class="column-in">');
write_HowDoI();
write_searchSite();
if (showStoryTime) {
   document.writeln('<p class="centered"><a href="'+siteURL+'kids_storytimes.htm"><img class="noborder" alt="Join us for storytime" src="'+imageURL+'storytimePic.jpg"></p>');
   document.writeln('<p class="centered"><span class="LargeTxt">Join us for Storytime.</a></span></p>');
   }
document.writeln('</div></div>');
}

function write_todaysHours(){
var mydate=new Date();
var year=mydate.getYear();
var day=mydate.getDay();
var month=mydate.getMonth();
var daym=mydate.getDate();
var hoursinfo;


var dayarray=new Array("Sunday", "Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var hourarray=new Array(
		  	   "Open today 12 pm&nbsp;-&nbsp;4 pm</span>",
		  	   "Open today 10 am&nbsp;-&nbsp;8 pm</span>",
		  	   "Open today 10 am&nbsp;-&nbsp;8 pm</span>",
		  	   "Open today 10 am&nbsp;-&nbsp;8 pm</span>",
			   "Open today 10 am&nbsp;-&nbsp;8 pm</span>",
			   "Open today 10 am&nbsp;-&nbsp;5 pm</span>",
			   "Open today 10 am&nbsp;-&nbsp;5 pm</span>");	
			   

if (day==0 && (month > 4 && month < 8) ) 
   		  hoursinfo="Closed today";
else
	hoursinfo = hourarray[day];
			   
document.writeln('<p id="todaysHours">');
document.write("<font size=-1>" +hoursinfo+"<br/><span class='hT'>"+dayarray[day]+", "+montharray[month]+" "+daym+"</span>");
document.writeln('		       <a href="http://www.howelllibrary.org/html/hcym.htm"></a>');
document.writeln('	         </p>');
		 
return;
}
 
/* Let's not redo all the html files with body tags with onload=getHeight(). */
  function getHeight(numCols, firstcol, secondcol, thirdcol){
	  setTall();
	  return;
  }

function write_AboutUsLinks(){
document.writeln('<div class="topPageLinks">');
document.write('<img src="'+imageURL+'top_div_left.jpg" alt="" width="41" height="18"> <a href="about.htm">About</a>');
document.write('<img src="'+imageURL+'top_div_dot.jpg" alt="" width="15" height="18"> <a href="hours.htm">Hours</a>');
document.writeln('<img src="'+imageURL+'top_div_dot.jpg" alt="" width="15" height="18"> <a href="services.htm">Services</a>');
document.write('<img src="'+imageURL+'top_div_dot.jpg" alt="" width="15" height="18"> <a href="history_p1.htm">History</a>');
document.write('<img src="'+imageURL+'top_div_dot.jpg" alt="" width="15" height="18"> <a href="board.htm">Board</a>');
document.write('<img src="'+imageURL+'top_div_dot.jpg" alt="" width="15" height="18"> <a href="donations.htm">Donations</a>');
document.writeln('<img src="'+imageURL+'top_div_dot.jpg" alt="" width="15" height="18"> <a href="policies.htm">Policies</a>');
document.writeln('<img src="'+imageURL+'top_div_right.jpg" width="41" height="18">');
document.writeln('</div>');
}


function write_HistoryPageLinks(){
document.writeln('<div style="text-align: center;">');
document.write('<img src="'+imageURL+'top_div_left.jpg" alt="" width="41" height="18"> <a href="history_p1.htm">Page 1</a>');
document.write('<img src="'+imageURL+'top_div_dot.jpg" alt="" width="15" height="18"> <a href="history_p2.htm">Page 2</a>');
document.write('<img src="'+imageURL+'top_div_dot.jpg" alt="" width="15" height="18"> <a href="history_p3.htm">Page 3</a>');
document.writeln('<img src="'+imageURL+'top_div_dot.jpg" alt="" width="15" height="18"> <a href="history_p4.htm">Page 4</a>');
document.writeln('<br>');
document.writeln('<img src="'+imageURL+'top_div_dot.jpg" alt="" width="15" height="18"> <a href="history_p5.htm">Page 5</a>');
document.writeln('<img src="'+imageURL+'top_div_right.jpg" width="41" height="18">');
document.writeln('</div>');
}

function write_prevNextLinks(prevLink, nextLink){
document.writeln('<div class="prevNextLinks">');

if (prevLink != null) {
   document.write('<div style="float:left;text-align:left;"><a href="'+siteURL);
   document.write(prevLink);
   document.write('"><img src="'+imageURL+'arrw_btn_left.jpg" alt="Go to Previous Page" border="0"> Previous Page</a></div>');
   }
else {
	 document.writeln('<div style="float:left;"> </div>');
	 }
if (nextLink != null) {
   document.write('<div style="float:right;text-align:right;"><a href="'+siteURL);
   document.write(nextLink);
   document.writeln('">Next Page <img src="'+imageURL+'arrw_btn_right.jpg" alt="Go to Next Page" border="0"></a></div>');
   }
else {
   document.writeln('<div style="float:right;"> </div>');
	 }
document.writeln('<div style="float:clear;"><p> </p></div>');
}

function write_backToPolicies(){
   document.writeln('<div class="prevNextLinks">');
   document.write('<div style="float:right;text-align:right;"><a href="'+siteURL+'policies.htm">');
   document.write('Back to Policies</a></div>');
   document.writeln('<div style="float:clear;"><p> </p></div>');
}

function write_backToArchives() {
document.write('<div class="backToArchives"><img src="'+imageURL+'top_div_left.jpg" alt="" alt="" width="41" height="18"> <a href="'+siteURL+'archives.htm">Back ');
document.writeln('to Archives</a> <img src="'+imageURL+'top_div_right.jpg" alt="" width="41" height="18"></div>');
}				  


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_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_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 popitup(url) {
	newwindow=window.open(url,'name','height=450,width=500');
	if (window.focus) {newwindow.focus();}
	return false;
}

/* 
	by Paul@YellowPencil.com and Scott@YellowPencil.com
	feel free to delete all comments except for the above credit
*/

// Initialize Scripts - is this a browser that understands DOM?

function scriptInit() {
if (!document.getElementById) {
	return;
	}
}

// Set up Event Listener - the script that allows us to use the addEvent call below

function addEvent(elm, evType, fn, useCapture) {
	if (elm.addEventListener) {
	elm.addEventListener(evType, fn, useCapture);
	return true;
	} else if (elm.attachEvent) {
	var r = elm.attachEvent('on' + evType, fn);
	return r;
	} else {
	elm['on' + evType] = fn;
	}
}

// Start Column Script

function setTall() {
		if (document.getElementById) {
		// the divs array contains references to each column's div element.  
		// Replace 'center' 'right' and 'left' with your own.  
		// Or remove the last one entirely if you've got 2 columns.  Or add another if you've got 4!
		var divIds = new Array("left","middleTxt","Right2Col", "right");	   
		var divs = new Array();
		numDivs = 0;
		
		for (i=0; i<divIds.length; i++)
			{
			var tmp;
			tmp = document.getElementById(divIds[i]);
			if (tmp != null)
			   {
			   divs[numDivs]=tmp;
			   numDivs++;
			   }
			}	
		// Let's determine the maximum height out of all columns specified
		var maxHeight = 0;
		for (var i = 0; i < divs.length; i++) {
			if (divs[i].offsetHeight > maxHeight) maxHeight = divs[i].offsetHeight;
	} 
		// Let's set all columns to that maximum height 
		for (var i = 0; i < divs.length; i++) {
			divs[i].style.height = maxHeight + 'px';
			// Now, if the browser's in standards-compliant mode, the height property
			// sets the height excluding padding, so we figure the padding out by subtracting the
			// old maxHeight from the new offsetHeight, and compensate!  So it works in Safari AND in IE 5.x
		    if (divs[i].offsetHeight > maxHeight) {
				divs[i].style.height = (maxHeight - (divs[i].offsetHeight - maxHeight)) + 'px';
			} 
	
		}
	}
}


/*
function getHeight(numCols, firstcol, secondcol, thirdcol){
	  var d = document;
	  var box;
	  
	  if (numCols <2 || numCols > 3) { return; }
	  
	  if (numCols == 3) { 
	  	 box= new Array(firstcol, secondcol, thirdcol); //list of DIV ids
	  }
	  else {
	  	   box= new Array(firstcol, secondcol); //list of DIV ids
		   }
    for(x=0;x<numCols;x++){ //determine the tallest div
      h = d.getElementById(box[x]).offsetHeight;
      for(y=0;y<numCols;y++){
        test_h = d.getElementById(box[y]).offsetHeight;
        if(h<test_h) h = test_h;
      }  
    }
    for(x=0;x<numCols;x++) d.getElementById(box[x]).style.height = h+100 +"px"; //set the height of all divs to the tallest
  }

/*
	Fire Events - you can add other scripts here and call them using the following method.  
	This one balances the columns when the page loads, and again when the window is resized
	Some have asked about users changing text size, because this script won't fire and your 
	page can look weird.  If you were resizing text via a script, we could run this script 
	when the user calls that script.  However, if you're relying on browser methods for 
	text resizing, I'm not aware of a method to watch for that kind of an event.  If someone 
	smarter than me knows of one, please let me know!  If you don't understand what I mean, 
	then pretend I didn't say anything...
*/


