﻿// JScript File
function mouseover(id)
{
    element = document.getElementById(id);
    element.className = "highlight";
}
function mouseout(id)
{
    element = document.getElementById(id);
    element.className = "";
}
function click(url)
{
    location.href = url;
}

$(document).ready(function(){
/*
*/
    $(".g_title").click(function(){
        $(this).next(".g_text").slideToggle(500);
        $(".g_title_pointer", $(this)).toggleClass("g_active");
        return false;
    });
    
    $(".g_header_show_all").click(function(){
        $(".g_text").hide();
        $(".g_title_pointer").addClass("g_active");
        $(".g_text").slideToggle(500);
        $(".g_title_pointer").toggleClass("g_active");
        $(this).css("display", "none");
        $(".g_header_hide_all").css("display", "block");
    });

    $(".g_header_hide_all").click(function(){
        $(".g_text").show();
        $(".g_title_pointer").removeClass("g_active");
        $(".g_text").slideToggle(500);
        $(".g_title_pointer").toggleClass("g_active");
        $(this).css("display", "none");
        $(".g_header_show_all").css("display", "block");
    });
    
    $(".g_header_show_all").hover(
        function()
        {
            $(this).css("background-color", "#ccccdd");
        },
        function()
        {
            $(this).css("background-color", "inherit");
        }
     );
    
    $(".g_header_hide_all").hover(
        function()
        {
            $(this).css("background-color", "#ccccdd");
        },
        function()
        {
            $(this).css("background-color", "inherit");
        }
     );

    $(".left_menu_item").hover(
        function()
        {
            $(this).css("background-position", "0px -20px");
            $(this).css("text-decoration", "underline");
        },
        function()
        {
            $(this).css("background-position", "0px 0px");
            $(this).css("text-decoration", "none");
        }
     );

    $(".model_navigator").hover(
        function()
        {
            $(this).css("background-position", "0px -20px");
        },
        function()
        {
            $(this).css("background-position", "0px 0px");
        }
     );

    $(".g_tab").hover(
        function()
        {
            $(this).css("font-size", "14px");
        },
        function()
        {
            $(this).css("font-size", "12px");
        }
     );
     
    $(".g_tab").click(function()
    {
        $(".g_tab_element").hide();
        $(".g_tab").removeClass("g_tab_current");
        $(this).addClass("g_tab_current");
        var index = parseInt(parseInt($(this).attr("id")));
        $("#tab_element_" + index).slideToggle(200);
    });
});
/*
*/