/**
 *
 * Son of Suckerfish Dropdowns
 * by Patrick Griffiths and Dan Webb
 *
 * http://www.htmldog.com/articles/suckerfish/dropdowns/
 *
 */
startList = function() {
		var slEls = document.getElementById("navUL").getElementsByTagName("LI");
		for (var i=0; i<slEls.length; i++) {
				slEls[i].onmouseover=function() {this.className+=" over";
				}
				slEls[i].onmouseout=function() {this.className=this.className.replace(new RegExp(" over\\b"), "");
				}
		}
}
if (window.attachEvent) window.attachEvent("onload", startList);


/**
 *
 * Pop-Up & Redirect
 *
 */
function PopUp(theURL,winName,features) {
	window.open(theURL,winName,features);
}


function popupRedir(theURL,winName,features,redirUrl) {
	PopUp(theURL,winName,features);
	document.location = redirUrl;
}

/**
 * Search Site Box Empty
 */
$(document).ready(
	function()
	{
		$('#searchsite').click(
			function()
			{
				var searchsite = document.getElementById('searchsite');
				if(searchsite.value == "search the site")
				{
					searchsite.value = "";
				}
			}
		);
		$('#searchsite').blur(
			function()
			{
				var searchsite = document.getElementById('searchsite');
				if(searchsite.value == '')
				{
					searchsite.value = "search the site";
				}
			}
		);
	}
);
