Cufon.replace('h1');
Cufon.replace('h2');
jQuery(document).ready(function($) { 
	// fade out any flash messages we may have after 5 seconds
	setTimeout('$("div.message[id$=Message]").fadeOut();', 5000);
	// remove unwanted divider on tab nav before selected LI
	$('#wrapper .mainPic .tabs ul li.selected').prev().css('border-right', 'none');
	// remove main menu sub nav divider
	$('#wrapper .menu ul li ul li:last-child').css('border-bottom', 'none');
	// add another menu item after the last one in order to repeat the menu div
	$('#wrapper .menu ul li a.contact-us-link').parent().after('<li></li>').next().css('width', '2px').css('height', '37px');
	// Hover fix for IE
	$('#wrapper .menu ul li').hover(
		function() {
			$(this).children('ul').css('display', 'block');
		},
		function() {
			$(this).children('ul').css('display', 'none');			
		}
	);
	$("#wrapper .masthead .latestNews .newsWrapper").vTicker({
		speed: 500,
		pause: 2500,
		showItems: 1,
		animation: 'fade',
		mousePause: true,
		height: 0,
		direction: 'up'
	});
	// replace the scrollbars
/*	$('#wrapper .mainPic .content .text').jScrollPane({
		scrollbarMargin:20,
		scrollbarWidth:10
	});*/
}); 