﻿//jQuery.tabs = function(tabs_title,tabs_container,selectedClass,type) {
//        tabs_container.hide(); 
//        var cookievalue= $.cookie('tabs_index_cookie');
//        if(cookievalue){
//            $(tabs_container.get(cookievalue)).show();
//            $(tabs_title.get(cookievalue)).addClass(selectedClass);
//        }else
//        {
//            $(tabs_container.get(0)).show();
//            $(tabs_title.get(0)).addClass(selectedClass);
//        }
//        tabs_title.bind(type,function(){
//           tabs_title.removeClass(selectedClass);
//            $(this).addClass(selectedClass);
//            tabs_container.hide();
//            $(tabs_container.get(tabs_title.index($(this)))).show();
//            $.cookie('tabs_index_cookie',tabs_title.index($(this)));
//        });
//};  
     
jQuery.tabs_3 = function(tabs_title,tabs_container,tabs_container_1,type) {
        tabs_container.hide(); 
        tabs_container_1.hide(); 
        var cookievalue= $.cookie('tabs_index_cookie_3');
//        if(cookievalue){
//            $(tabs_container.get(cookievalue)).show();
//            $(tabs_container_1.get(cookievalue)).show();
//        }else
//        {
            $(tabs_container.get(2)).show();
            $(tabs_container_1.get(2)).show();
//        }
//         alert($($(".hy-more").get(2)).html())
        tabs_title.bind(type,function(){
            tabs_container.hide();
            tabs_container_1.hide();
            $(tabs_container.get(tabs_title.index($(this)))).show();
            $(tabs_container_1.get(tabs_title.index($(this)))).show();
            $.cookie('tabs_index_cookie_3',tabs_title.index($(this)));
        });
};   
