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').cycle({
						fx:     'fade',
						speed:  'slow',
						timeout: 10000,
						height:	'232px'
					});
					});
				};
			//$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');
			});
	});
