/* 
 *  This file is part of the LikePHP package.
 *  Abendas <abendas@163.com; rushairer@163.com>
 * 
 *  For the full copyright and license information, please view the LICENSE
 *  file that was distributed with this source code.
 */
var LikePHPCMS = new Object();
LikePHPCMS.init = function(){
    LikePHPCMS.useLocationHash();
    LikePHPCMS.tabLink();
}
LikePHPCMS.useLocationHash = function(){
    var cmd = document.location.hash.split('#')[1];
    if(cmd != undefined){
        eval(cmd);
    }
}
LikePHPCMS.selectTab = function(name,current,count){
    for(var i = 1 ; i<count+1;i++){
        $('#'+name+'_'+i).hide();
        $('#'+name+'_button_'+i).removeClass('currentTab');
    }
    $('#'+name+'_'+current).show();
    $('#'+name+'_button_'+current).addClass('currentTab');
}
LikePHPCMS.tabLink = function(){
    $('.contentTab ul li').mouseover(function(evt){
        
        $(this).addClass('over');
    });
    $('.contentTab ul li').mouseout(function(evt){

        $(this).removeClass('over');
    });
}


