﻿var ad_float_left_src = "http://www.drcnet.com.cn/temp/20100613/fu_d.jpg";
//var ad_float_left_src = "/flash/ind_qysj.swf";
var ad_float_left_url = "http://www.drcnet.com.cn/temp/20100613/Edu_ind_qy.htm";
//var ad_float_left_type = "swf";
var ad_float_left_type = "";
var imgheight_close
document.ns = navigator.appName == "Microsoft Internet Explorer"
var bdy = (document.documentElement && document.documentElement.clientWidth) ? document.documentElement : document.body;

window.screen.width > 800 ? imgheight_close = 120 : imgheight_close = 120
function myload2() {
    //myleft.style.top=bdy.scrollTop+bdy.offsetHeight-imgheight_close;
    myleft.style.left = bdy.offsetWidth - 120;
    mymove2();
}
function mymove2() {


    myleft.style.top = bdy.scrollTop + bdy.offsetHeight / 2 - imgheight_close;

    first = false;
    myleft.style.left = 0;
    setTimeout("mymove2();", 50)
}

function MM_reloadPage2(init) {  //reloads the window if Nav4 resized
    if (init == true) with (navigator) {
        if ((appName == "Netscape") && (parseInt(appVersion) == 4)) {
            document.MM_pgW = innerWidth; document.MM_pgH = innerHeight; onresize = MM_reloadPage2;
        }
    }
    else if (innerWidth != document.MM_pgW || innerHeight != document.MM_pgH) location.reload();
}
MM_reloadPage2(true)

function close_float_left() {
    myleft.style.visibility = 'hidden';
}

if (document.ns) {
    document.write("<div id=myleft style='position: absolute;width:80;top:0;left:0;visibility: visible;z-index: 1'>\
<style>\
A.closefloat:link,A.refloat:visited {text-decoration:none;color:#000000;font-size:12px}\
A.closefloat:active,A.refloat:hover {text-decoration:underline;color:#0000FF;font-size:12px}\
</style>\
<table border=0 cellpadding=0 cellspacing=0><tr><td>");

    if (ad_float_left_type != "swf")
        document.write("<a href='" + ad_float_left_url + "' target = '_blank'><img src='" + ad_float_left_src + "' WIDTH=100 HEIGHT=120  border = 0></a>");
    else {
        document.write("<div id='ad_float_right_div'></div>");
        /*var objFlash = new sinaFlash(ad_float_left_src, "ad_float_right", "80", "80", "7", "#ffffff");
        objFlash.addParam("quality", "high");
        objFlash.addParam("wmode", "opaque");
        objFlash.write("ad_float_right_div");*/
        document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='100' height='120'>")
        document.write("<param name='movie' value='" + ad_float_left_src + "'>")
        document.write("<param name='quality' value='high'>")
        document.write("<embed src='" + ad_float_left_src + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='100' height='120'></embed>")
        document.write("</object>")
    }

    document.write("</td></tr><tr><td width=80 height=20 align=right><a href='javascript:close_float_left();void(0);'><b><font color=#4A75FC>关闭</font></b></a></td></tr>\
</table>\
</div>");

    myload2()
}
