/* JQuery */

/* navigation map tabs */
$(function () { 
    var tabContainers = $('div#worldmap div'); 
    tabContainers.hide().filter(':first').show(); 
    $("img.maptab1").attr('src',$("img.maptab1").attr('src').replace("_n","_a"));
    $('div#worldmap ul#area a').mouseover(function () { 
        tabContainers.hide(); 
        tabContainers.filter(this.hash).show(); 
        $("img.maptab1").attr('src',$("img.maptab1").attr('src').replace("_a","_n"));
        $("img.maptab2").attr('src',$("img.maptab2").attr('src').replace("_a","_n"));
        $("img.maptab3").attr('src',$("img.maptab3").attr('src').replace("_a","_n"));
        $("img.maptab4").attr('src',$("img.maptab4").attr('src').replace("_a","_n"));
        $("img.maptab5").attr('src',$("img.maptab5").attr('src').replace("_a","_n"));
        $("img",this).attr('src',$("img",this).attr('src').replace("_n","_a"));
    }).click(function () {
        return false;
    }); 
});

/* faq toggle */
$(function () { 
    $("dl#faq dt").toggle(function(){
        $(this).next().css("display","block");
        $("img",this).attr('src',$("img#faq_arrow").attr('src').replace("arrow_right","arrow_bottom"));
    },
    function(){
        $(this).next().css("display","none");
        $("img",this).attr('src',$("img#faq_arrow").attr('src').replace("arrow_bottom","arrow_right"));
    })
});



/* contact table */

jQuery(function(){
    jQuery("table.contact td.country a").live("click", cshow);
});

function cshow(){
    jQuery("table.contact td.country a").css("background-color","#fff");
    jQuery(this).css("background-color","#e4e1d9");
    //jQuery("table.contact td.address").css("background-color","#e4e1d9");
}

/* glossary table */

jQuery(function(){
    jQuery("table.glossary th.glword").mouseover(function(){
        jQuery(this).css("cursor","hand");
        jQuery("table.glossary th.glword").css("background-color","#ffffff");
        jQuery("table.glossary th.glword").css("background-image","none"); 
        jQuery(this).css("background-color","#e4e1d9");
        jQuery(this).css("background-image","url('images/arrow_right.gif')");
        jQuery(this).css("background-repeat","no-repeat");
        jQuery(this).css("background-position","right");
        jQuery("table.glossary td.gltext").css("background-color","#e4e1d9");
    }
    
    );
});
