/*
   initPage.js 
   Copyright (C) 2005 Deryck Hodge <hodgedg@auburn.edu>

   This handles the calling of multiple functions from a 
   single onload.  Funtions include: initializing the homepage's 
   rotating pic, set initial form values, redraw margins as screen
   resolution changes, etc.

   This script may be freely used, modified, or redistributed 
   as long as the above copyright and this statement are preserved.
*/

window.onload = function init() 
{

	if (document.forms['sitesearch']) {
		siteSearchForm = document.forms['sitesearch'];
		siteSearchForm.qt.onfocus = function clearForm() {
			if (siteSearchForm.qt.value == 'Site Search') {
				siteSearchForm.qt.value = '';
			}
		}
		siteSearchForm.qt.onblur = function resetForm() {
			if (siteSearchForm.qt.value == '') {
				siteSearchForm.qt.value = 'Site Search';
			}
		}
	}

	if (document.forms['querybox'] && document.location.href.indexOf('find') == -1) {
		document.forms['querybox'].Search_Arg.focus();
	}

	setSidebarBorder();
}

