
// Image swap
google.load("jquery", "1.3.2");
google.setOnLoadCallback(function() {
	$("ul.images li.1").show();
    $('a.imgSwap').click(function () {
        $('ul.images li').hide();
        var imgID = $(this).attr('id');
		//alert('imgID= ' + imgID);
        var imgSelector = "ul.images li." + imgID;
		//alert('imgSelector= ' + imgSelector);
        $(imgSelector).show();
        return false;
    });
    $('a.imgShowAll').click(function () {
        $('ul.images li').show();
        return false;
    });
});


// Where-am-I state for thumbs
function initNav(){
	var subnav = document.getElementById('pageNav');
	var subnavas = subnav.getElementsByTagName('a');

		for (var a=0; a<subnavas.length; a++){
			var currenthref=String(subnavas[a].href);
			var currentloc=String(document.location);
			//alert("currentloc is " + unescape(currentloc));
					
				if (unescape(currenthref)==unescape(currentloc)){
					subnavas[a].className="subnavon"
				}
		}
}
window.onload=initNav; 



