﻿function chgH3_Style(id)
{
    try
    { 
    //document.getElementById( id ).style.color='GREEN';
    //document.getElementById( id ).style.fontWeight="bold";
    //document.getElementById( id ).style.borderTop = "1px solid #FFF";
    //document.getElementById( id ).style.backgroundColor='#004C1F';
    document.getElementById( id ).className="current_h3";
    }catch(e){}
}

function chgH4_Style(id)
{
    try
    { 
    //document.getElementById( id ).style.color='GREEN';
    //document.getElementById( id ).style.fontWeight="bold";
    //document.getElementById( id ).style.borderTop = "1px solid #FFF";
    //document.getElementById( id ).style.backgroundColor='#004C1F';
    document.getElementById( id ).className="current_h4";
    }catch(e){}
}

function showContent(obj,a_id)
{
    var ps = "p_Description,p_Specification,p_Picture,p_Case";
    for(var i=0;i<ps.split(",").length;i++)
    {
        try
        {
            document.getElementById(ps.split(",")[i]).style.display = "none";
        }
        catch(e){}
    }
    obj.style.display = "";
    
    //
    var as="a_show_Description,a_show_Specification,a_show_Picture,a_show_Case,";//background:#EBF1F8; color:#2E3192;
    for(var i=0;i<as.split(",").length;i++)
    {
        try
        {
            document.getElementById(as.split(",")[i]).style.background = "#7298CB";
            document.getElementById(as.split(",")[i]).style.color = "#FFFFFF";
        }
        catch(e){}
    }
    document.getElementById(a_id).style.backgroundColor = "#EBF1F8";
    document.getElementById(a_id).style.color = "#2E3192";
    try{
    window.event.returnValue =false;
    }catch(e){}
    return false;
}