﻿if (!WX || typeof WX == "undefined") var WX = new Object();
/*变换图片类*/
//new showFlash({ width: 560, height: 160, Img: "Img/1.jpg", swf: "focus.swf" }).Run();
function showFlash() {
    this.width = 0; this.height = 0; this.Img = ""; this.Links = ""; this.Text = ""; this.swfSrc = "";this.f = false;var arg = arguments, self = this;
    this.Run = function() {
        if (!this.f) { document.write("调用函数出错."); return; }
        var fHtml = '\
            <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="' + this.width + '" height="' + this.height + '">\
            <param name="allowScriptAccess" value="sameDomain">\
            <param name="movie" value="' + this.swfSrc + '">\
            <param name="quality" value="high">\
            <param name="bgcolor" value="#fffff">\
            <param name="menu" value="false">\
            <param name="wmode" value="transparent">\
            <param name="FlashVars" value="bigSrc=' + this.Img + '&href=' + this.Links + '&txt=' + this.Text + '&width=' + this.width + '&height=' + this.height + '&smallSrc=">\
            <embed src="' + this.swfSrc + '" wmode="opaque" FlashVars="txt=' + this.Text + '&bigSrc=' + this.Img + '&href=' + this.Links + '&width=' + this.width + '&height=' + this.height + '&smallSrc=" menu="false" bgcolor="#ffffff" quality="high" width="' + this.width + '" height="' + this.height + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\
            </object>\
        ';
        document.writeln(fHtml);
    }
    this.argument = (function() {
        if (arg.length > 1) {
            self.width = arg[0]; self.height = arg[1]; self.Img = arg[2]; self.Links = arg[3]; self.Text = arg[4]; self.swfSrc = arg[5]; self.f = true;
        } else {
            self.width = typeof arg[0].width == "undefined" ? 200 : arg[0].width; self.height = typeof arg[0].height == "undefined" ? 100 : arg[0].height;
            self.Img = typeof arg[0].Img == "undefined" ? "" : arg[0].Img;
            self.Links = typeof arg[0].Links == "undefined" ? "" : arg[0].Links; self.Text = typeof arg[0].Text == "undefined" ? "" : arg[0].Text;
            self.swfSrc = typeof arg[0].swf == "undefined" ? "/_Images/focus.swf" : arg[0].swf; self.f = true;
        }
    })();
}
function ShowFlash() {
    this.width = 0; this.height = 0; this.tHeight = 0; this.Img = ""; this.Links = ""; this.Text = ""; this.swfSrc = ""; this.f = false; var arg = arguments, self = this;
    this.Run = function() {
        if (!this.f) { document.write("调用函数出错."); return; };
        var fHtml = '\
	            <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="' + this.width + '" height="' + (this.height + this.tHeight) + '">\
	            <param name="allowScriptAccess" value="sameDomain">\
	            <param name="movie" value="' + this.swfSrc + '">\
	            <param name="quality" value="high">\
	            <param name="bgcolor" value="#FFFFFF">\
	            <param name="menu" value="false">\
	            <param name="wmode" value="transparent">\
	            <param name="FlashVars" value="pics=' + this.Img + '&links=' + this.Links + '&texts=' + this.Text + '&borderwidth=' + this.width + '&borderheight=' + this.height + '&textheight=' + this.tHeight + '">\
	            <embed src="' + this.swfSrc + '" wmode="opaque" FlashVars="texts=' + this.Text + '&pics=' + this.Img + '&links=' + this.Links + '&borderwidth=' + this.width + '&borderheight=' + this.height + '&textheight=' + this.tHeight + '" menu="false" bgcolor="#ffffff" quality="high" width="' + this.width + '" height="' + (this.height + this.tHeight) + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\
	            </object>\
	        ';
        document.writeln(fHtml);
    }
    this.argument = (function() {
        if (arg.length > 1) {
            self.width = arg[0]; self.height = arg[1]; self.tHeight = arg[2]; self.Img = arg[3]; self.Links = arg[4]; self.Text = arg[5]; self.swfSrc = arg[6]; self.f = true;
        } else {
            self.width = typeof arg[0].width == "undefined" ? 200 : arg[0].width; self.height = typeof arg[0].height == "undefined" ? 100 : arg[0].height;
            self.tHeight = typeof arg[0].tHeight == "undefined" ? 0 : arg[0].tHeight; self.Img = typeof arg[0].Img == "undefined" ? "" : arg[0].Img;
            self.Links = typeof arg[0].Links == "undefined" ? "" : arg[0].Links; self.Text = typeof arg[0].Text == "undefined" ? "" : arg[0].Text;
            self.swfSrc = typeof arg[0].swf == "undefined" ? "/_Images/focu.swf" : arg[0].swf; self.f = true;
        }
    })();
}
function writeFlash(f,w,h,t) {
	if(typeof(arguments[3]) == "undefined"||arguments[3] == ""||arguments[3] == 0)
		t = "transparent";	
	else
		t = "";	
    document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\""+ w +"\" height=\""+ h +"\">");
    document.write("<param name=\"movie\" value=\"" + f + "\">");
    document.write("<param name=\"quality\" value=\"high\">");
    document.write("<param name=\"wmode\" value=\""+ t +"\">");
    document.write("<param name=\"menu\" value=\"false\">"); 
    document.write("<embed src=\"" + f + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+ w +"\" height=\""+ h +"\"></embed>");
    document.write("</object>");
}
var winopen = function (u) { window.open(u, "_blank"); }
var fOpen = winopen;
var ImgError = function(a) { a.src = "/_Images/NoPic.jpg"; }
function DrawImage(ImgID, Img_Width, Img_Height, AltStr) {
    var flag = false;
    var image = new Image();
    var iwidth = Img_Width; //定义允许图片宽度，当宽度大于这个值时等比例缩小
    var iheight = Img_Height; //定义允许图片高度，当宽度大于这个值时等比例缩小
    image.src = ImgID.src;
    if (image.width > 0 && image.height > 0) {
        flag = true;
        if (image.width / image.height >= iwidth / iheight) {
            if (image.width > iwidth) {
                ImgID.width = iwidth;
                ImgID.height = (image.height * iwidth) / image.width;
            } else {
                ImgID.width = image.width;
                ImgID.height = image.height;
            }
        } else {
            if (image.height > iheight) {
                ImgID.height = iheight;
                ImgID.width = (image.width * iheight) / image.height;
            } else {
                ImgID.width = image.width;
                ImgID.height = image.height;
            }
        }
    }
    ImgID.alt = typeof (AltStr) == "undefined" ? "" : AltStr;
}
function setHome(obj,url) {
    try {
        obj.style.behavior = "url(#default#homepage)";
        obj.setHomePage(url);
    } catch (e) {
        if (window.netscape) {
            try {
                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
            } catch (e) {
                alert("抱歉，此操作被浏览器拒绝！\n\n请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为'true'");
            };
        } else {
            alert("抱歉，您所使用的浏览器无法完成此操作。\n\n您需要手动将'"+ url +"'设置为首页。");
        }
    }
}
function addfavorite(siteName,url) {
    if (document.all)
        window.external.addFavorite(url, siteName);
    else if (window.sidebar)
        window.sidebar.addPanel(siteName, url, "");
}
WX.Code = function(o, w, h, n) {
    if (!o) return;
    w = typeof w == "undefined" ? 70 : w;
    h = typeof h == "undefined" ? 30 : h;
    n = typeof n == "undefined" ? 4 : n;
    var d = null, img = null;
    if (XF.$("WX_XF_Code____Create")) {
        return;
    } else {
        d = XF.$C("div");
        d.id = "WX_XF_Code____Create";
        document.body.appendChild(d);
    }
    img = new Image();
    img.src = "/CheckCode/2.aspx?N=" + n + "&" + new Date().getTime();
    img.alt = "看不清?点击换一个.";
    d.appendChild(img);
    XF._$(img).bind("onclick", function(e) { e.src += "&"; o.focus(); });
    with (d.style) { position = "absolute"; width = w + "px"; height = h + "px"; left = XF.getDim(o).x + "px"; top = XF.getDim(o).y - img.offsetHeight + "px"; }
}
var getIndex = function(a, b) { for (var i = 0; i < a.length; i++) { if (a[i] === b) { return i; break; } } }
var fGoto = function() {
    switch (arguments.length) {
        case 0: return void (0); break;
        case 1: window.location.href = arguments[0]; break;
        case 2: window.open(arguments[0], arguments[1]); break;
    }
}
XF._$(window).bind("onload", function() {
    try {
        document.execCommand("BackgroundImageCache", false, true);
        if (document.charset == "gb2312") window.location.href = window.location.href;
    } catch (e) { }
});
var fDown = function(u, n) { window.open("/Down.aspx?u=" + encodeURI(u) + "&n=" + escape(n) + "", "_blank"); }
