jQuery(document).ready(function($) { 
	// fade out any flash messages we may have after 5 seconds
	setTimeout('$("div.message[id$=Message]").fadeOut();', 5000);
	$('#wrapper .footer .subMenu ul li:last-child').css('border-right', 'none');
	$('#wrapper .menu ul li:last-child').css('background-image', 'none');
	// colorbox init
	$('a[rel="lightbox"]').colorbox({maxWidth:'100%', maxHeight:'100%'});
	$('a[rel="colorbox"]').colorbox({maxWidth:'100%', maxHeight:'100%'});
	// Hover fix for IE
	$('#wrapper .menu ul li').hover(
		function() {
			$(this).children('ul').css('display', 'block');
		},
		function() {
			$(this).children('ul').css('display', 'none');
		}
	);
	if($('span.blink').length > 0) {
		setInterval(function() {
			var targets = $('span.blink');
			$(targets).each(function() {
				if($(this).css('opacity') > 0) {
					$(this).animate({opacity:0}, 1000);
				} else {
					$(this).animate({opacity:1});
				}
			});
		},
		1200);
	}
});
// font replacement using Cufon - we don't want to wait for the page to load with jQuery
Cufon.replace('#wrapper .content h1', {fontFamily:'Perpetua'});
Cufon.replace('#wrapper .content h2', {fontFamily:'DiavloBold'});
