function spriteyMainMenu(){
	if($('ul#spritey').length > 0) {
		$('ul#spritey li ul').css({ 'display' : 'none' }); // Opera Fix
		$("ul#spritey>li>a>span").css({ 'opacity': "0", 'display': "block" });
	
		$('ul#spritey>li').hover(function(){
			$(this).siblings().find('ul').stop(true,true).css({ 'display' : 'none' });
			$(this).find('ul:first:hidden').css({ 'visibility' : 'visible', 'display' : 'none' }).slideDown(200);
			$(this).children('a').children('span').fadeTo(50, 1.0);
		}, function(){
			$(this).find('ul:first').stop(true,true).css({ 'display' : 'none' });
			$(this).children('a').children('span').fadeTo(500, 0.0);
		});
		$('ul#spritey>li ul li').hover(function(){
			$(this).siblings().find('ul').stop(true,true).css({ 'display' : 'none' });
			$(this).find('ul:first:hidden').css({ 'visibility' : 'visible', 'display' : 'none' }).slideDown(200);
		}, function(){
			$(this).find('ul:first').stop(true,true).css({ 'display' : 'none' });
		});
	}
}

function replaceHeading(){
	replaceHeadingGuts("#copyCopy h1", "28", "-1", "-3");
	replaceHeadingGuts("#copyCopy h2:not(.inTheNews)", "22", "-1", "-3");
	replaceHeadingGuts("#copyCopy h3:not(.textHeadings)", "19", "-1", "-3");
}

$(document).ready(function(){
	// when all code loads
	spriteyMainMenu();
	
	if ($.browser.msie && $.browser.version<="9.0") {
		DD_roundies.addRule('#contentWrapper', '0 0 15px 150px');
		DD_roundies.addRule('#ccNewsCol', '0 0 15px 0');
	}
	if (!($.browser.msie && $.browser.version<="6.0")) {
		replaceHeading();
	}
});

$(window).load(function(){
	// when images all load
});


