// Make entire block element clickable
$(document).ready(function(){
	$('.click').click(function(){
	  window.location=$(this).find("a").attr("href"); return false;
	});

});

// Get year
$(document).ready(function(){
	$("#year").text( (new Date).getFullYear() );
});

// Clear search box
$(document).ready(function(){
	$("#searchbox input").focus(function() {
				 if ( $(this).val() == "search SVCMC")
					$(this).val('');
				}); 
});

// Breadcrumb class for subnav
$(document).ready(function(){
	$("#secnav a").each(function() {
	if(this.href == window.location || this.href == document.location.protocol + "//" + window.location.hostname + window.location.pathname.substring(1))
	
		 $(this).addClass("location");
	});
	
});

// Fade out links
$(document).ready(function() {
	if(jQuery.support.opacity) { 
	$('#nav ul li a, #footer ul li a')
			.mouseover(function(){
				$(this).parent().siblings().stop().fadeTo(600,.35);
			})
			.mouseout(function() {
				$(this).parent().siblings().stop().fadeTo(600,1);
			})
	}

});
