/*clear search field on activation*/
function clearInput (inputObject, inputValue, eventType) {
	if(eventType=="focus") {
		if(inputObject.value == inputValue) {
			inputObject.value = "";
		}
	}
	if(eventType=="blur") {
		if(inputObject.value == '') {
			inputObject.value = inputValue;
		}
	}
}

/*Theme nav*/
$(document).ready(function() {
	$('#themeNav ul').hide();
	
	$('#themeNav h4').toggle(function() {
		$('#themeNav ul').slideDown('normal');
		$('#themeNav').addClass('active');
	}, function () {
		$('#themeNav ul').slideUp('normal')
		$('#themeNav').removeClass('active');	
	});
	
	$('#themeNav h4').mouseover(function(){
		$(this).addClass('hover');
	});
		
	$('#themeNav h4').mouseout(function(){
		$(this).removeClass('hover');
	});

});

/*open pdf links in external window*/
$(document).ready(function() {
   $('a[href*=.pdf ]').each(function() { 
      $(this).attr({"target":"_blank"});
   })
});
