﻿function GetPicInfos(spic, slinks, stexts, sfocus_width, sfocus_height, stext_height, _obj) {
    var shtml = "";
    var focus_width = sfocus_width;
    var focus_height = sfocus_height;
    var text_height = stext_height;
    var pics = spic;
    var links = slinks;
    var texts = stexts;
    var swf_height = parseInt(focus_height) + parseInt(text_height);
    shtml += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + focus_width + '" height="' + swf_height + '">';
    shtml += '<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/flash/picflash.swf"><param name="quality" value="high"><param name="bgcolor" value="#E2E2E2">';
    shtml += '<param name="menu" value="false"><param name=wmode value="opaque">';
    shtml += '<param name="FlashVars" value="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '">';
    shtml += '<embed src="/flash/picflash.swf" wmode="opaque" FlashVars="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '" menu="false" bgcolor="#EbEbEb" quality="high" width="' + focus_width + '" height="' + swf_height + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
    shtml += '</object>';
    $(_obj).html(shtml);
}






function showlm1() {
    document.getElementById("sp1").style.background = "url(images/index/bgbcjz2.gif) no-repeat";
    document.getElementById("sp1").style.fontWeight = "bold";
    document.getElementById("lm_gcjz").style.display = "block";
    document.getElementById("sp2").style.background = "none";
    document.getElementById("sp2").style.fontWeight = "normal";
    document.getElementById("lm_dtgh").style.display = "none";
    document.getElementById("lm_aqsc").style.display = "none";
    document.getElementById("sp3").style.background = "none";
    document.getElementById("sp3").style.fontWeight = "normal";
    document.getElementById("lm_dtgh").style.display = "none";
    document.getElementById("lm_dtgh").style.display = "none";
    document.getElementById("s1").style.display = "none";
    document.getElementById("s2").style.display = "block";
}

function showlm2() {
    document.getElementById("sp1").style.background = "none";
    document.getElementById("sp1").style.fontWeight="normal";
    document.getElementById("lm_gcjz").style.display = "none";
    document.getElementById("sp2").style.background = "url(images/index/bgbcjz2.gif) no-repeat";
    document.getElementById("sp2").style.fontWeight = "bold";
    document.getElementById("lm_aqsc").style.display = "block";
    document.getElementById("sp3").style.background = "none";
    document.getElementById("sp3").style.fontWeight = "normal";
    document.getElementById("lm_dtgh").style.display = "none";
    document.getElementById("s2").style.display = "none";
    document.getElementById("s2").style.display = "none";
}

function showlm3() {
    document.getElementById("sp1").style.background = "none";
    document.getElementById("sp1").style.fontWeight = "normal";
    document.getElementById("lm_gcjz").style.display = "none";
    document.getElementById("sp2").style.background = "none";
    document.getElementById("sp2").style.fontWeight = "normal";
    document.getElementById("lm_aqsc").style.display = "none";
    document.getElementById("sp3").style.background = "url(images/index/bgbcjz2.gif) no-repeat";
    document.getElementById("sp3").style.fontWeight = "bold";
    document.getElementById("lm_dtgh").style.display = "block";
    document.getElementById("s1").style.display = "block";
    document.getElementById("s2").style.display = "none";
}

function showlm_zbgg() {
    document.getElementById("sp4").style.background = "url(images/index/backgroundimage2.gif) no-repeat";
    document.getElementById("sp4").style.fontWeight = "bold";
    document.getElementById("lm_zbgg").style.display = "block";
    document.getElementById("sp5").style.background = "none";
    document.getElementById("sp5").style.fontWeight = "normal";
    document.getElementById("lm_zbxx").style.display = "none";
    document.getElementById("sp6").style.background = "none";
    document.getElementById("sp6").style.fontWeight = "normal";
    document.getElementById("lm_zlxz").style.display = "none";
    document.getElementById("s4").style.display = "none";
    document.getElementById("s4").style.display = "block";
}

function showlm_zbxx() {
    document.getElementById("sp4").style.background = "none";
    document.getElementById("sp4").style.fontWeight = "normal";
    document.getElementById("lm_zbgg").style.display = "none";
    document.getElementById("sp5").style.background = "url(images/index/backgroundimage2.gif) no-repeat";
    document.getElementById("sp5").style.fontWeight = "bold";
    document.getElementById("lm_zbxx").style.display = "block";
    document.getElementById("sp6").style.background = "none";
    document.getElementById("sp6").style.fontWeight = "normal";
    document.getElementById("lm_zlxz").style.display = "none";
    document.getElementById("s3").style.display = "none";
    document.getElementById("s4").style.display = "none";
}

function showlm_zlxz() {
    document.getElementById("s3").style.display = "block";
    document.getElementById("s4").style.display = "none";
    document.getElementById("sp4").style.background = "none";
    document.getElementById("sp4").style.fontWeight = "normal";
    document.getElementById("lm_zbgg").style.display = "none";
    document.getElementById("sp5").style.background = "none";
    document.getElementById("sp5").style.fontWeight = "normal";
    document.getElementById("lm_zbxx").style.display = "none";
    document.getElementById("sp6").style.background = "url(images/index/backgroundimage2.gif) no-repeat";
    document.getElementById("sp6").style.fontWeight = "bold";
    document.getElementById("lm_zlxz").style.display = "block";
}

