/* If IE, use a script to apply rounded corners (other browsers support CSS corner rounding */

if (jQuery.browser.msie) {
	addEvent(window, 'load', initCorners);
	function initCorners() {
		if(document.getElementById('latestnewshead') && document.getElementById('latestnewscontents')) {
			var cB1 = {tl: { radius: 5 },antiAlias: true};curvyCorners(cB1,"#latestnewshead");
			var cB2 = {bl: { radius: 5 },antiAlias: true};curvyCorners(cB2,"#latestnewscontents");
		}
	}
}

/* Make "Latest News" and "On Camera" boxes the same height */


function equalHeight(group) {
var tallest = 0;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) { tallest = thisHeight }
	});
	group.height(tallest);
}

$(document).ready(function(){
	equalHeight($(".latestnewsbox .contents"));
});


/* Apply Cufon fonts */

Cufon.replace('#globalnav a');
Cufon.replace('#head a');
