jQuery(function($) {
				
	var default_idx = 0;
	
	$('img.nav1').hover(function() {
		
		var img_src = $(this).attr("src");
		
		if (img_src.indexOf('_hvr') <= 0) {
			$(this).attr("src", $(this).attr("src").replace(/.jpg/, "_hvr.jpg").replace(/.png/, "_hvr.png"));			
			var img_idx = $('img.nav1').index($(this));			
			$("span.bottom").eq(img_idx).show();
		}
		
	}, function() {
		
		var img_src = $(this).attr("src");
		
		$(this).attr("src", $(this).attr("src").replace(/_hvr.jpg/, ".jpg").replace(/_hvr.png/, ".png"));			
		var img_idx = $('img.nav1').index($(this));			
		$("span.bottom").eq(img_idx).hide();
		
	});	
	
	
	/*$('img.nav1').click(function() {
		
		var img_src = $(this).attr("src");
		
		$(this).attr("src", $(this).attr("src").replace(/.jpg/, "_hvr.jpg"));			
		var img_idx = $('img.nav1').index($(this));			
		$("span.bottom").eq(img_idx).show();	
		
	});*/
	
	$("span.bottom").hide();
	
	$('img.nav1').eq(default_idx).trigger('click');

});
jQuery(function($) {
	
	$('.dropdown').each(function () {
		$(this).parent().eq(0).hoverIntent({
			timeout: 100,
			over: function () {
				var current = $('.dropdown:eq(0)', this);
				current.slideDown(100);
			},
			out: function () {
				var current = $('.dropdown:eq(0)', this);
				current.fadeOut(200);
			}
		});
	});
	
	$('.dropdown a').hover(function () {
		$(this).stop(true).animate({paddingLeft: '35px'}, {speed: 100, easing: 'easeOutBack'});
	}, function () {
		$(this).stop(true).animate({paddingLeft: '0'}, {speed: 100, easing: 'easeOutBounce'});
	});
	
	pic1 = new Image(310, 672);
	pic1.src = "images/dropdown.png"; 
	
	pic2 = new Image(4, 40);
	pic2.src = "images/dropselectionleft.png"; 
	
	pic3 = new Image(394, 40);
	pic3.src = "images/dropselectionright.png";
});

