$(document).ready(function(){
						         bgImageTotal=3;
      randomNumber = Math.round(Math.random()*(bgImageTotal-1))+1;
      imgPath=('/images/subpage-banner'+randomNumber+'.jpg');
      $('#header h1 a').css('background-image', ('url("'+imgPath+'")'));
						   var h = window.location.host.toLowerCase();
	$("a[href^='http']:not([href*='" + h + "']), a[href$='.pdf']").attr("target", "_blank");
	$('a[href^="http://"]').addClass('externalLink');
	$('a[href^="mailto:"]').addClass('emailLink');
    $('a[href*=.pdf]').attr({"target":"_blank"});
	$('a[href*=.pdf]').addClass('pdfLink');
    $("li:last-child").addClass('last');
    $("li:first-child").addClass('first');
	$('input.clearme').focus(function() {
    	$(this).val("");
  	});
    $('.home .slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});

});


