var $j = jQuery.noConflict();
$j(document).ready(function(){
		
			if ($j("#s4").length) {
	$j.fn.cycle.defaults.timeout = 6000;
			$j(function() {
			// run the code in the markup!
			$j('#s4').after('<div id="navRight"><div id="nav" class="nav"><span id="prevCase" style="margin-right: 5px;">&nbsp;</span><span id="nextCase" style="float:right; cursor: pointer;line-height: 5px; font-size: 14px;">&nbsp;</span></div>').cycle({
				fx:     'fade',
				speed:  'slow',
				timeout: 8500,
				pager:  '#nav',
				height:	'312px',
				next: '#nextCase',
				prev: '#prevCase'
			});
			});
		};
			//$j('#nav').prepend('<span id="prevCase" style="margin:0px 5px 0px 0px;">&laquo;</span>');
			//$j('#nav').append('<span id="nextCase" style="float:right; cursor: pointer;line-height: 5px; font-size: 14px;">&raquo;</span>');
		    if ($j("#featureCarousel").length) {
			$j(document).ready(function() {
								$j("#featureCarousel").featureCarousel({
								});
			});
			};
			$j.fn.equalHeight = function() {
				var group = this;
				$j(window).bind('resize', function(){
				var tallest = 0;
				$j(group).height('auto').each(function() {
				tallest = Math.max(tallest, $j(this).height());
				}).height(tallest);
				}).trigger('resize');
			}
			$j('#prevCase, #nextCase').mouseover(function(){
				$j(this).css('text-decoration','underline');
			}).mouseout(function(){
				$j(this).css('text-decoration','none');
			});
	});
