$(function(){

    jQuery("ul.dropdown li").hover(function(){
    
        jQuery(this).addClass("hover");
        jQuery('ul:first',this).css('visibility', 'visible');
    
    }, function(){
    
        jQuery(this).removeClass("hover");
        jQuery('ul:first',this).css('visibility', 'hidden');
    
    });
    
    jQuery("ul.dropdown li ul li:has(ul)").find("a:first").append(" &raquo; ");
	jQuery('ul.dropdown li:last-child').addClass('lastmenutop');
	jQuery('ul.dropdown li:first-child').addClass('firstmenutop');
	
	jQuery(document).ready(function() {
		equalHeight(jQuery("#content_wrapper .csc-frame-37 .inner"));							
		equalHeight(jQuery("#content_wrapper .csc-frame-35 .inner, #content_wrapper .csc-frame-40 .inner"));	
		
		jQuery('.list_carousel #foo2').carouFredSel({
					width: 930,
					visible: 1,
					prev: '#prev2',
					next: '#next2',
					pagination: "#pager2",
					scroll: {
						pauseOnHover: true
					},
					auto: {
						pauseDuration: 7000
					}
		});
		
	});
	
});

function equalHeight(group) {
	tallest = 0;
	group.each(function() {
	thisHeight = jQuery(this).height();
	if(thisHeight > tallest) {
	 tallest = thisHeight + 15;
	}
});
//group.height(tallest);
group.css({'min-height': tallest});
} 


