/**************************************
*  GUI functions tool kit (non obscruptive js)

*  required jQuery
*      
* author:  erational(http://www.erational.org)
* version: 0.1
* date:    2009.03.03 (tadao a une autite)
* licence: GPL 3.0    
***********************************/


$(document).ready(function(){
    
    // sommaire seulement (bourrin ms leger eviter jquery UI)
    
    // tabs perso 
    $(".info_region").hide();
    $(".trigger_info_region").click(function(){
        $(".short_news").hide();
        $(".info_region").show();
        $(this).addClass("on");
        $(".trigger_info_thema").removeClass("on");
    });    
    $(".trigger_info_thema").click(function(){
        $(".short_news").hide();
        $(".info_thema").show();
        $(this).addClass("on");
        $(".trigger_info_region").removeClass("on");
    });      
    // #tabs perso
    
    // big tabs
    
    // init state
    $(".home_big_tabs").hide(); 
    $(".home_big_tabs:first").show();
    //$(".home_big_tab:first img").hide();  
       
    $(".trigger_tab").click(function(){
        $(".home_big_tabs").hide();
        $(".home_big_tab img").show();
        target =  $(this).attr("href").substr(1);
        $(".tab"+target).show();
        //$(".trigger_tab"+target+" img").hide();
    }); 
    // big tabs
    

    
    
});

