
$(document).ready(function () {
			
	// jQuery Image Alpha
	var sel = 0;
	$('a img').mouseover(function() {
		if ( sel == 0 ){ $(this).fadeTo(100, 0.5); sel = 1; } 
		else { $(this).fadeTo(100, 1); sel = 0; }
	});
	$('a img').mouseout(function() {
		if ( sel == 0 ){ $(this).fadeTo(100, 0.5); sel = 1; } 
		else { $(this).fadeTo(100, 1); sel = 0; }
	});

	// Simple Tab by jQuery
	$('#shopinfo div.tabs').hide();
	$('#shopinfo div.tabs:first').show();
	// jQuery Slider
	$('#floating-link').css({bottom:0}).animate({ bottom: '30' }, 'slow');
	$('#floating-link a.shop-open').click( function(){ 
		$("#floating-link").css({bottom: 30}).animate({ bottom: '500' }, 'slow'); 
		var currentTab = $(this).attr('href');
		$('#shopinfo div.tabs').hide();
		$(currentTab).show();
		$("#shopinfo").css({height: 30}).animate({ height: '500' }, 'slow'); 
		$("a.shop-close").css("display","block");
		return false;
	});
	$('#floating-link a.shop-close').click( function(){ 
		$("#floating-link").css({bottom: 480}).animate({ bottom: '30' }, 'slow'); 
		$("#shopinfo").css({height: 480}).animate({ height: '30' }, 'slow'); 
		$("a.shop-close").css("display","none");
	});

});


