/* jQuery Carousel */
/* NOTE 2008.04.18 : Haven't had it functioning without auto : true as yet */
if ($.browser.safari == false) {
	$(window).load(function () {
	    $(".carousel").jMyCarousel({
	        visible: '100%',
	        eltByElt: false,
	        auto : true,
	        speed : 1500
	    });
	});

	// hide boxes with no content - user populated
	clearEmpty();
}

function openUrl(url)
{
	window.open(url, '_self');
}

function openUrlFromSelect(select)
{
	var url = select.options[select.options.selectedIndex].value;
	openUrl(url);
}

function clearEmpty() {
	$('.hide_empty').each(function(i){
		if (isEmpty($(this).html())){
			$(this).hide();
		}
	});
}