$(document).ready(function(){
	$('.menu-item').mouseover(function(){
		if(!$(this).hasClass('current') && !$(this).find('a').hasClass('current')) {
			$(this).children().css('border-color','white');
			$(this).prev().children().css('border-color','#2ab4d2');
		} else {
			$(this).children().css('border-color','#dfdfdf');
		}
	});
	$('.menu-item').mouseout(function(){
		if(!$(this).hasClass('current') && !$(this).find('a').hasClass('current')) {
			$(this).children().css('border-color','#dfdfdf');
			
			$(this).prev().children().css('border-color','#dfdfdf');
		} else {
			$(this).children().css('border-color','#dfdfdf');
			$(this).prev().children().css('border-color','#dfdfdf');
		}
	});
	$('#slider').codaSlider({
		dynamicArrows: false,
		dynamicTabs: false, 
		slideEaseDuration: 300,
		autoHeightEaseDuration: 300,
	});
	$('.more-link').click(function(){
		$(this).hide();
		$('.invisible').show('slow');
		$('#slider').css('height','2050px');
	});
});


