//插入Flash
function loadflash(fileName, width, height) {
    document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"");
    document.write("codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" ");
    document.write("width=\"", width, "\" height=\"", height, "\">");
    document.write("<param name=\"movie\" value=\"", fileName, "\">");
    document.write("<param name=\"quality\" value=\"high\">");
    document.write("<param name=\"wmode\" value=\"transparent\">");
    document.write("<param name=\"wmode\" value=\"opaque\">");
    document.write("<embed src=\"", fileName, "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" ");
    document.write("type=\"application/x-shockwave-flash\" width=\"", width, "\" height=\"", height, "\" wmode=\"opaque\"></embed></object>");
}

//ie6透明背景
function correctPNG()
{
    var arVersion = navigator.appVersion.split("MSIE")
    var version = parseFloat(arVersion[1])
    if ((version == 6.0) && (document.body.filters))//此处为兼容IE6、8，于是等于6.0，若>=6.0则IE8不能实现
    {
        for(var i=0; i<document.images.length; i++)
        {
            var img = document.images[i]
            var imgName = img.src.toUpperCase()
            if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
            {
                var imgID = (img.id) ? "id='" + img.id + "' " : ""
                var imgClass = (img.className) ? "class='" + img.className + "' " : ""
                var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
                var imgStyle = "display:inline-block;" + img.style.cssText
                if (img.align == "left") imgStyle = "float:left;" + imgStyle
                if (img.align == "right") imgStyle = "float:right;" + imgStyle
                if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
                var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
                img.outerHTML = strNewHTML
                i = i-1
            }
        }
    }
}

//整车选购页面js添加div样式
function DivJsOver(strId)
{
    document.getElementById(""+strId+"").className='ProduitsBorder';
}
function DivJsOut(strId)
{
    document.getElementById(""+strId+"").className='ProduitsShowDiv mr10';
}

//提示用户登录
function Gon()
{
    var divHeight=document.getElementById("Touming");
    divHeight.style.height=document.body.clientHeight+'px';
    document.getElementById("GG").style.display = "block";
    document.getElementById("Touming").style.display = "block"; 
}
function Hid()
{
    document.getElementById("GG").style.display = "none";
    document.getElementById("Touming").style.display = "none"; 
}
