
function render() {

    var a = AC_GetArgs(arguments, "");
    if (a.embedAttrs.ipad && lib.ipad) return html5video(a.embedAttrs);
 //   if (!detectFlashVer(10, 0, 0) && a.embedAttrs.hint) 
//return isWin ? lib.IE ? document.write("\u4f60\u9700\u8981\u5347\u7ea7FLASH\u64ad\u653e\u5668\u7248\u672c\u81f310.0+,\u8bf7<a class='fWhite' href='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' target='_blank'>\u4e0b\u8f7d</a>") : document.write("\u4f60\u9700\u8981\u5347\u7ea7FLASH\u64ad\u653e\u5668\u7248\u672c\u81f310.0+,\u8bf7<a href='http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player.exe' class='fWhite' target='_blank'>\u4e0b\u8f7d</a>") : document.write("\u4f60\u9700\u8981\u5347\u7ea7FLASH\u64ad\u653e\u5668\u7248\u672c\u81f310.0+,\u8bf7<a href='http://get.adobe.com/flashplayer/otherversions/' class='fWhite' target='_blank'>\u4e0b\u8f7d</a>"),
//        !1;

    if (a.isPopup != "true") on("beforeunload",
        function() {
            var c = lib.$("#" + a.objAttrs.id);
            if (c && c[0].windowClose) try {
                c[0].windowClose()
            } catch(b) {}
        });
    return AC_Generateobj(a.objAttrs, a.params, a.embedAttrs, a.isStr, a.nocache)

}

function AC_GetArgs(a) {
    for (var c = {
        embedAttrs: {},
        params: {},
        objAttrs: {}
    },
    b = 0; b < a.length; b += 2) switch (a[b].toLowerCase()) {
        case "src":
            c.embedAttrs.src = a[b + 1];
            c.params.movie = a[b + 1];
            break;
        case "onafterupdate":
        case "onbeforeupdate":
        case "onblur":
        case "oncellchange":
        case "onclick":
        case "ondblclick":
        case "ondrag":
        case "ondragend":
        case "ondragenter":
        case "ondragleave":
        case "ondragover":
        case "ondrop":
        case "onfinish":
        case "onfocus":
        case "onhelp":
        case "onmousedown":
        case "onmouseup":
        case "onmouseover":
        case "onmousemove":
        case "onmouseout":
        case "onkeypress":
        case "onkeydown":
        case "onkeyup":
        case "onload":
        case "onlosecapture":
        case "onpropertychange":
        case "onreadystatechange":
        case "onrowsdelete":
        case "onrowenter":
        case "onrowexit":
        case "onrowsinserted":
        case "onstart":
        case "onscroll":
        case "onbeforeeditfocus":
        case "onactivate":
        case "onbeforedeactivate":
        case "ondeactivate":
        case "type":
        case "id":
            c.objAttrs[a[b]] = a[b + 1];
            c.embedAttrs[a[b]] = a[b + 1];
            break;
        case "width":
        case "height":
        case "align":
        case "vspace":
        case "hspace":
        case "class":
        case "title":
        case "accesskey":
        case "tabindex":
            c.embedAttrs[a[b]] = c.objAttrs[a[b]] = a[b + 1];
            break;
        case "isstr":
            c.isStr = a[b + 1];
            break;
        case "ispopup":
            c.isPopup = a[b + 1];
            break;
        case "nocache":
            c.nocache = a[b + 1];
            break;
        default:
            c.embedAttrs[a[b]] = c.params[a[b]] = a[b + 1]
    }
    return c
}


function getOs() { 
	
	if(navigator.userAgent.indexOf("MSIE")>0){ 
		return "MSIE"; 
	} 
	if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){ 
		return "Firefox"; 
	} 
	if(isSafari=navigator.userAgent.indexOf("Safari")>0){ 
		return "Safari"; 
	} 
	if(isCamino=navigator.userAgent.indexOf("Camino")>0){ 
		return "Camino"; 
	} 
	if(isMozilla=navigator.userAgent.indexOf("Gecko/")>0){ 
		return "Gecko"; 
	}
} 

//alert(getOs());

function AC_Generateobj (a, c, b, d, e) {
//alert('aaa');
    var f = [];
    if (getOs() == 'MSIE') {
        f.push('<Object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"');
        f.push('classid ="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
        for (var g in a) f.push(g + '="' + a[g] + '" ');
        f.push(">");
        f.push('<param name="quality" value="high" /> ');
        f.push('<param name="loop" value="true" /> ');
        f.push('<param name="play" value="true" /> ');
        f.push('<param name="DeviceFont" value="false" /> ');
        f.push('<param name="allowFullScreen" value="true" /> ');
        f.push('<param name="menu" value="true" /> ');
        for (g in c) {
            //if ((lib.TT || lib.$360 || lib.Maxthon) && g.match(/src|movie/)) c[g] += !e ? "?" + Math.random() : "";
            f.push('<param name="' + g + '" value="' + c[g] + '" /> ')
        }
        f.push('<param name="allowScriptAccess" value="always" /> ');
        f.push("</Object>")
    } else {

        f.push('<embed pluginspage="http://www.macromedia.com/go/getflashplayer" ');
        f.push('loop = "true"');
        f.push('play = "true"');
        f.push('quality = "hight"');
        f.push('scale = "showall"');
        f.push('DeviceFont= "false"');
        f.push('allowFullScreen="true"');
        f.push('menu="true"');
        f.push('type="application/x-shockwave-flash"');
       for (g in b) f.push(g + '="' + b[g] + '" ');
        f.push('allowScriptAccess="always"');
        f.push("> </embed>")
    }

    if (d) return f.join("");
    document.write(f.join(""))
}


function detectFlashVer(a, c, b) {
    var d = getSwfVer(),
    e,
    c = c || "0",
    b = b || "0";
    if (d == -1) return ! 1;
    else if (d != 0) {
        //        lib.IE && isWin && !lib.OPERA && (d = d.split(" "), d = d[1]);
        e = d.split(".");
        var d = parseFloat(e[0]),
        f = parseFloat(e[1]);
        e = e[2];
        if (d > parseFloat(a)) return ! 0;
        else if (d == parseFloat(a)) if (f > parseFloat(c)) return ! 0;
            else if (f == parseFloat(c) && e >= parseFloat(b)) return ! 0;
        return ! 1
    }
}

function getSwfVer() {
    var a = -1;
    if (navigator.plugins && navigator.plugins.length > 0) {
        if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
            var a = navigator.plugins["Shockwave Flash" + (navigator.plugins["Shockwave Flash 2.0"] ? " 2.0": "")].description.split(" "),
            c = a[2].split("."),
            b = c[0],
            c = c[1],
            d = a[3];
            d == "" && (d = a[4]);
            d[0] == "d" ? d = d.substring(1) : d[0] == "r" && (d = d.substring(1), d.indexOf("d") > 0 && (d = d.substring(0, d.indexOf("d"))));
            a = b + "." + c + "." + d
        }
    } else navigator.userAgent.match(/webtv\/2.6/i) ? a = 4: navigator.userAgent.match(/webtv\/2.5/i) ? a = 3: navigator.userAgent.match(/webtv/i) ? a = 2: ture;
    return a
}

function on (a, c, b) {
        if (!a || !c || !b) return this;
        a.addEventListener ? a.addEventListener(c, b, !1) : a.attachEvent ? a.attachEvent("on" + c, b) : lib.Event.manager.add(c, eventHandle);
        return this
    }


