
	// Use jQuery to highlight current page in left nav
	$(function() {
	var path = location.pathname;
	$('#nav a[href="' + path + '"]').addClass('active');
	$('#nav a[href="' + path + 'index.shtml"]').addClass('active');
	});
 

	$(function() {
	var $loc = window.location.toString().split("/")
	$loc = $loc[3];
	$('#nav ul li a[href="/' + $loc + '/"]').addClass('active-parent');
	});



// clear form fields on focus and reset when not focused
var swap_text_boxes=[];function init_swap_text_boxes(){$('input[type=text][value].searchtext').each(function(){swap_text_boxes[$(this).attr('id')]=$(this).attr('value');});$('input[type=text][value].searchtext').bind('focus',function(){if($(this).val()==swap_text_boxes[$(this).attr('id')]){$(this).val('');}});$('input[type=text][value].searchtext').bind('blur',function(){if($(this).val()==''){$(this).val(swap_text_boxes[$(this).attr('id')]);}});}init_swap_text_boxes();

	


//function below calls the "hook" for webexpress when the copyright symbol in the footer is clicked

function switchhook() {

    var thelink = document.getElementById("ouhook").href;

    var lnks = document.links;
    for (var i=0;i<lnks.length;i++) {
        if (lnks[i].id == "copylink") {
            lnks[i].href = thelink;
            break;
        }
    }
}

window.onload = switchhook;








