﻿jQuery.noConflict();
jQuery(document).ready(function($){
    var Shoptab = Class.create();
    Shoptab.prototype = {
        initialize: function()
        {
            this.tabSwitcher = $('#shop_detail ul');
        
            this.shopTab = $('#shop_detail li.shopdb a');
            this.shopTab.click(function(){
                this.shopPanel.show();
                this.mapcouponPanel.hide();
                this.tabSwitcher.addClass('info').removeClass('map');
            }.bindAsEventListener(this));
            this.shopPanel = $('#shop_detail_info');
            
            this.mapcouponTab = $('#shop_detail li.map_coupon a');
            this.mapcouponTab.click(function(){
                this.shopPanel.hide();
                this.mapcouponPanel.show();
                this.tabSwitcher.removeClass('info').addClass('map');
            }.bindAsEventListener(this));
            this.mapcouponPanel = $('#shop_detail_map');
            
            this.mapcouponPanel.hide();
        }
    };
    
    var shoptab = new Shoptab();
});

