/*QQ_Full_Begin_Tag*/
function tmh__make_ad_fodder(src, width, height)
{
        src = src.replace(" ", "");
        var TEMP_IMAGE = '<img src="$src$" height="500" width:"910" border="0" />';
        var TEMP_FLASH = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
                + ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" '
                + ' height="500" width="910"> '
                + '<param name="movie" value="$src$" /> '
                + '<param name="quality" value="high" /> '
                + '<param name="wmode" value="opaque" /> '
                + '<EMBED src="$src$" quality="high" WIDTH="910" HEIGHT="500" '
                + ' wmode="opaque" TYPE="application/x-shockwave-flash" '
                + ' PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> '
                + '</object>';
        return (/\.swf$/gi.test(src) == true ? TEMP_FLASH : TEMP_IMAGE)
                .replace(/\$src\$/gi, src)
                .replace(/\$width\$/gi, width)
                .replace(/\$height\$/gi, height)
                ;
}

function tmh__make_ad_content(strImageUrl, strImageName, iWidth, iHeight, strClickUrl, blClickCover)
{
        var TEMP_LINK = '<a href="$click_url$" target="_blank">$ad_fodder$</a>';
        var TEMP_COVER = '<div onClick="javascript:window.open(\'$click_url$\');" style="width:910px; height:500px; '
                + ' position:absolute; cursor:pointer; background-color:#000000; z-index:9999; '
                + ' filter:Alpha(Opacity=0); opacity:0.0; MozOpacity:0.0; KhtmlOpacity:0.0; "></div>'
                + '$ad_fodder$';

        var src = strImageName || strImageUrl;
        var width = parseInt(iWidth);
        var height = parseInt(iHeight);
        var click_url = strClickUrl || "http://www.cqhsh.cn/";

        var ad_fodder = tmh__make_ad_fodder(src, width, height);

        if (/\.swf$/gi.test(src) == false) {
                return TEMP_LINK
                        .replace(/\$ad_fodder\$/gi, ad_fodder)
                        .replace(/\$click_url\$/gi, click_url)
                        ;
        }

        // flash
        if (blClickCover == false) {
                return ad_fodder;
        }

        return TEMP_COVER
                .replace(/\$width\$/gi, width)
                .replace(/\$height\$/gi, height)
                .replace(/\$click_url\$/gi, click_url)
                .replace(/\$ad_fodder\$/gi, ad_fodder)
                ;
}

function tmh__show_ad_content(strImageUrl, strImageName, iWidth, iHeight, strClickUrl, blClickCover)
{
        document.write(tmh__make_ad_content(strImageUrl, strImageName, iWidth, iHeight, strClickUrl, blClickCover));
}
if (typeof g_mutex_lock == "undefined") {g_mutex_lock = new Array(); }
function mutex_check_init() {
if(!g_mutex_lock) return -1;
if(!g_mutex_lock.constructor) return -1;;
if(g_mutex_lock.constructor.toString().toLowerCase().indexOf("array") == -1) return -1;;}
function mutex_lock() {
var name = "CQHSH_LOCK_56318658";
if (mutex_check_init() < 0) return -1;
if (!g_mutex_lock[name]) g_mutex_lock[name] = 0;
g_mutex_lock[name]++;
if (g_mutex_lock[name] > 1) {
        g_mutex_lock[name]--; return -1;
}
return 0;}
function mutex_unlock()        {
var name = "CQHSH_LOCK_56318658";
if (mutex_check_init() < 0) return -1;
if (g_mutex_lock[name] <= 0) return -1;
g_mutex_lock[name]--;
return 0; }
Full_strImageUrl  = "" ;
Full_strImageName = "images/idao.jpg";
Full_strClickUrl  = "mainpages.php?field_name=华商会抗震救灾专题&text=华商会抗震救灾专题" ;
Full_sIsCover          = "Y";
Full_bIsCover = true;
if(Full_sIsCover.toUpperCase() == "N") Full_bIsCover = false;
document.ns = navigator.appName == "Netscape";
if(document.ns)        {document.ns = navigator.userAgent.toLowerCase().indexOf("firefox") < 0;}
Full_iImageWidth  = parseInt("910");
if (isNaN(Full_iImageWidth)) Full_iImageWidth = 760;
Full_iImageHeight = parseInt("500");
if (isNaN(Full_iImageHeight)) Full_iImageHeight = 500;
function Full_PlayNoneAdFull() {document.getElementById("full_div").style.display="none";
        fullad_try_stop();}
function Full_PlayAdFull() {var el = document.getElementById("full_div");
        el.style.display="block";setTimeout("Full_PlayNoneAdFull()", 30000 );}
function fullad_try_stop() {if (typeof mutex_unlock == "undefined") return -1;        return mutex_unlock();}
function fullad_try_run() {if (typeof mutex_lock == "undefined") return Full_PlayAdFull();
        if (mutex_lock() == 0) return Full_PlayAdFull(); setTimeout("fullad_try_run();", 500);}
function Full_writeAdFull() {
        if(document.ns) {
                document.write("<layer  id=full_div style=\' display:block; margin:0 auto; height:" + Full_iImageHeight + "px; width:" + Full_iImageWidth + "px;\' >");
                document.write("<table><tr><td valign=top>");
                tmh__show_ad_content(Full_strImageUrl, Full_strImageName, Full_iImageWidth, Full_iImageHeight, Full_strClickUrl, Full_bIsCover);
                document.write("</td></tr></table></layer>");
        }
        else {
                document.write("<DIV  id=full_div style=\' display:block; margin:0 auto; height:" + Full_iImageHeight + "px; width:" + Full_iImageWidth + "px;\' >");
                document.write("<table><tr><td valign=top>");
                tmh__show_ad_content(Full_strImageUrl, Full_strImageName, Full_iImageWidth, Full_iImageHeight, Full_strClickUrl, Full_bIsCover);
                document.write("</td></tr></table></DIV>");
        }
}
//Full_writeAdFull();
//document.getElementById("full_div").style.display="none";
//setTimeout("fullad_try_run()",1);

//document.write("<img width='0px' height='0px' style='width:0px; height:0px;visibility:hidden; display:none; '  src='images/idao.jpg'>");
/*QQ_Full_End_Tag*/