// JavaScript Document
function hidden(div)
{
    var id = div.id;
    var other_div1, other_div2;
    var openCaption, coloseCaption1, coloseCaption2;
    var defTD_bg_l = document.getElementById("defTD_bg");
    //alert(defTD_bg_l.setAttribute("backgroundImage");
    switch (id) {
        case "caption0":
            other_div1 = document.getElementById("caption1");
            other_div2 = document.getElementById("caption2");
            openCaption = document.getElementById("caption01");
            coloseCaption1 = document.getElementById("caption11");
            coloseCaption2 = document.getElementById("caption21");
            defTD_bg_l.style.backgroundImage = "url(Images/Def_Img/News_top.gif)";
            break;
        case "caption1":
            other_div1 = document.getElementById("caption0");
            other_div2 = document.getElementById("caption2");
            openCaption = document.getElementById("caption11");
            coloseCaption1 = document.getElementById("caption01");
            coloseCaption2 = document.getElementById("caption21");
            defTD_bg_l.style.backgroundImage = "url(Images/Def_Img/News_top2.gif)";
            break;
        case "caption2":
            other_div1 = document.getElementById("caption1");
            other_div2 = document.getElementById("caption0");
            openCaption = document.getElementById("caption21");
            coloseCaption1 = document.getElementById("caption01");
            coloseCaption2 = document.getElementById("caption11");
            defTD_bg_l.style.backgroundImage = "url(Images/Def_Img/News_top3.gif)";
            break;
    }
	
	div.className="mouseover";
	other_div1.className = "mouseout";
	other_div2.className = "mouseout";

	coloseCaption1.style.display = "none";
	coloseCaption2.style.display = "none";
	openCaption.style.display = "block";
	coloseCaption1.style.height = "0px";
	coloseCaption2.style.height = "0px";
	openCaption.style.height = "180px";
}

function onclick_link(num) {
    switch (num) {
        case 1:
            window.open("News.aspx","_blank");
            break;
        case 2:
            window.open("News.aspx?id=2", "_blank");
            break;
        case 3:
            window.open("AgentsNotice.aspx", "_blank");
            break;
        default:
            window.open("News.aspx", "_blank");
            break;
    }
}

// JavaScript Document Products
function hidden_Product(div) {
    var id = div.id;
    //alert(Math.abs(id.substring(id.length-1)-1));
    var other_div = document.getElementById("PrCaption" + Math.abs(id.substring(id.length - 1) - 1));

    div.className = "mouseover_pro";
    other_div.className = "mouseout_pro";
    document.getElementById("PrCaption" + Math.abs(id.substring(id.length - 1) - 1) + "1").style.display = "none";
    document.getElementById("PrCaption" + id.substring(id.length - 1) + "1").style.display = "block";
}

//backGroup Change
function roolover(buttonId, class_name) {
    buttonId.className = class_name;
}

function clear_input(inputName) {
    inputName.value = "";
}


var baseText = null;
function div_fh() {
    try {
        var popUp = document.getElementById("divPhoneNumber");
        popUp.style.top = "100px"; popUp.style.left = "200px";
    }
    catch (e) {

    }
}

function showPopup_div(oDbj) {
    document.getElementById(oDbj).style.display = "block";
    }
function hiddenPopup_div(oDbj) {
    document.getElementById(oDbj).style.display = "none";
    }    

function showPopup() {
    try {
        var popUp = document.getElementById("divPhoneNumber");
        div_fh();
        
        var sbar = document.getElementById("statusbar");
        sbar.style.marginTop = (parseInt(h) - 40) + "px";
        popUp.style.display = "block";
    }
    catch (e) {

    }
}

function hidePopup() {
    var popUp = document.getElementById("divPhoneNumber");
    popUp.style.display = "none";
}


///////////buttom Style
function button_mouseout(imgBut,ButtonName)
{
    var IBPath="Images/word/"+ButtonName.toString();
    imgBut.src=IBPath.toString();
}

function button_mouseover(imgBut,ButtonName)
{
    var IBPath="Images/word/"+ButtonName.toString();
    imgBut.src=IBPath.toString();
}

// 修复 IE 下 PNG 图片不能透明显示的问题

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////div拖动
