/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

;
(function($){
    
    defaults = {
            panle:"",
            panleType:"",
            type:"get",
            dataType:"json",
            btnclick:function(a){
                alert(a.data.showpage);
            }
        
    };
   
   var synld =  $.extend($.fn,{
        
        synload:function(options){
            opts = $.extend(defaults,options);
            $(this).live("click",function(){
                _self = $(this);
                switch (opts.type) {
                    case "get":
                       synld.syget();
                        break;
                    default:
                        break;
                }


                return false;
            });
            
        },
        
        
        syget : function(){
            
              $.get(_self[0].href,opts.btnclick,opts.dataType);   
        }
        
        


    });
    
    
    

    
})(jQuery);

