document.write("<style type='text/css'>");
document.write("body {");
document.write("padding:0;");
document.write("margin:0;");
document.write("background-color: #FFFFFF;");
document.write("}");
document.write("img { border:0; float:left}");
document.write("a:link,a:visited { color:#333; text-decoration:none; }");
document.write("a:hover,a:active{ color:#c71444; text-decoration:none; }");

document.write("#refer { width:79px; float:right; margin-top:105px; z-index:1; position:absolute; top:0; right:0}");
document.write(".close { width:13px; float:left; height:170px; margin:0 5px 0 11px; padding-top:85px}");
document.write("#news{");
document.write("width:206px; ");
document.write("height:194px; ");
document.write("background:url(http://eca.dongfeng-nissan.com.cn/eca/images/bg_news.gif) no-repeat right top;"); 
document.write("overflow:hidden; ");
document.write("float:right; padding-top:10px; /*filter:alpha(opacity=50);*/  z-index:0 }"); 
document.write(".newsMain { width:206px; height:204px; float:left; background:url(http://eca.dongfeng-nissan.com.cn/eca/images/bg_news1.gif) no-repeat right top;}");
document.write(".newsMain table { margin:0 5px}");
document.write(".newsMain table th { font-family:'黑体'; font-size:12px; text-align:left; line-height:21px; height:21px; border-bottom:1px dotted #333; }");
document.write(".newsMain table td { font-family:'宋体'; font-size:12px; line-height:20px; height:20px; padding-left:5px;}");
document.write(".newsList { font-family:'宋体'; list-style:none; margin:0; padding:0; font-weight:lighter; font-size:12px; line-height:20px; padding-left:5px;}");

document.write("#ecadiv {display:block; top:100px; right:0px;  position:fixed;} "); /* IE并不认识fixed，而FF认识 */
document.write("* html #ecadiv {position:absolute;} "); /* 这个只有IE认识 */
document.write("</style> ");



  

function closediv(){
    document.getElementById('refer').style.display='none';
	document.getElementById('news').style.display='none';
}
function open_kf_window()
{
var kf_openurl="http://eca.dongfeng-nissan.com.cn/client.jsp?flag=1&companyId=13&style=320";
var kf_win = window.open(kf_openurl,"chat_self","height="+473+",width="+703+",top=200,left=200,status=yes,toolbar=no,menubar=no,resizable=no,scrollbars=no,location=no,titlebar=no");
}
document.write("<div id='ecadiv'>");
document.write("<div id='refer' >");
document.write("<a href='#' onclick=show('news');return false;><img src='http://eca.dongfeng-nissan.com.cn/eca/images/service.png' /></a> <a href='#' onclick=show('news');return false;>");
document.write("<img src='http://eca.dongfeng-nissan.com.cn/eca/images/button_red.png' /></a>");
document.write("<a onclick='closediv();' style='float:right; font-size:9px; font-family:Arial, Helvetica, sans-serif; cursor:pointer'>CLOSE</a></div>");     
document.write("<div id='news' style='display:none;filter:alpha(opacity=100);opacity:1;'>"); 
document.write("<div class='newsMain'>");
document.write("<table width='188' border='0' cellspacing='0' cellpadding='0'>");
document.write("<tr>");
document.write("<th width='25' rowspan='7' style='padding-left:3px; border-bottom:none'><a style='cursor:pointer' onclick = closeed('news');return false;><img src='http://eca.dongfeng-nissan.com.cn/eca/images/close1.gif'/></a></th>");
document.write("<th width='20' valign='top' style='padding-top:4px'><img src='http://eca.dongfeng-nissan.com.cn/eca/images/icon_1.gif' width='12' height='12' /></th>");
document.write("<th width='134' ><a href=''>最新资讯</a>");
document.write("<ul class='newsList'>");
document.write("<li><a href='http://teana.dongfeng-nissan.com.cn/event/v6/' target='_blank'>天籁巅峰盛惠 全国启动</a></li>");
document.write("<li><a href='http://teana.dongfeng-nissan.com.cn/event/mobile/' target='_blank'>天籁<手机>问答送好礼</a></li>");
document.write("<li><a href='http://www.dongfeng-nissan.com.cn/nissanday' target='_blank'>创新之旅 科技探秘营</a></li>");
document.write("</ul>");
document.write("</th>");
document.write("</tr>");
document.write("<tr>");
document.write("<th><img src='http://eca.dongfeng-nissan.com.cn/eca/images/icon_2.gif'  width='12' height='10' /></th>");
document.write("<th><a href='' onclick='open_win_chat_for_win()'>车型在线咨询</a></th>");
document.write("</tr>");
document.write("<tr>");
document.write("<th><img src='http://eca.dongfeng-nissan.com.cn/eca/images/icon_3.gif' width='12' height='10'/></th>");
document.write("<th><a href='http://www.e-nissan.com.cn/'>购车助手</a></th>");
document.write("</tr>");
document.write("<tr>");
document.write("<th><img src='http://eca.dongfeng-nissan.com.cn/eca/images/icon_4.gif' width='12' height='11' /></th>");
document.write("<th><a href='http://www.dongfeng-nissan.com.cn/guidance/dealersearch.php'>专营店查询</a></th>");
document.write("</tr>");
document.write("<tr>");
document.write("<th><img src='http://eca.dongfeng-nissan.com.cn/eca/images/icon_5.gif' width='12' height='10' /></th>");
document.write("<th><a href=''onclick='open_kf_window()'>租车服务</a></th>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");  
document.write("</div>");
document.write("</div>");

 var ele = document.getElementById("ecadiv");
  function move()
  {
    var clientW = document.documentElement.clientWidth;
	
    var clientH = navigator.appName != "Opera" ? document.documentElement.clientHeight : document.body.clientHeight;
	
    var scrollTop = window.screen.availHeight;
    //var scrollLeft = Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);

    ele.style.top = (scrollTop/4) + "px";
	//alert( ele.style.top);
    ele.style.left = (250) + "px";
  }
//setInterval("move()",500);
function correctPNG()  
{ 
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 
  } 
} 
} 
//window.attachEvent("onload", correctPNG); 

            if (window.attachEvent) { 
                window.attachEvent("onload", correctPNG); 
            } else if (window.addEventListener) { 
                window.addEventListener("onload", correctPNG, false);   
            }              
    var prox; 
    var proy; 
    var proxc; 
    var proyc; 
    function show(id){/*--打开--*/ 
        clearInterval(prox); 
        clearInterval(proy); 
        clearInterval(proxc); 
        clearInterval(proyc); 
        var o = document.getElementById(id); 
        o.style.display = "block"; 
        o.style.width = "1px"; 
        o.style.height = "204px";  
        prox = setInterval(function(){openx(o,206)},20); 
    }     
    function openx(o,x){/*--打开x--*/ 
        var cx = parseInt(o.style.width); 
        if(cx < x) 
        { 
            o.style.width = (cx + Math.ceil((x-cx)/5)) +"px"; 
        } 
        else 
        { 
            clearInterval(prox); 
            proy = setInterval(function(){openy(o,200)},10); 
        } 
    }     
    function openy(o,y){/*--打开y--*/     
        var cy = parseInt(o.style.height); 
        if(cy < y) 
        { 
            o.style.height = (cy + Math.ceil((y-cy)/5)) +"px"; 
        } 
        else 
        { 
            clearInterval(proy);             
        } 
    }     
    function closeed(id){/*--关闭--*/ 
        clearInterval(prox); 
        clearInterval(proy); 
        clearInterval(proxc); 
        clearInterval(proyc);         
        var o = document.getElementById(id); 
        if(o.style.display == "block") 
        { 
            proyc = setInterval(function(){closex(o)},20);             
        }         
    }     
    function closey(o){/*--打开y--*/     
        var cy = parseInt(o.style.height); 
        if(cy > 0) 
        { 
            o.style.height = (cy - Math.ceil(cy/5)) +"px"; 
        } 
        else 
        { 
            clearInterval(proyc);                 
            proxc = setInterval(function(){closex(o)},10); 
        } 
    }     
    function closex(o){/*--打开x--*/ 
        var cx = parseInt(o.style.width); 
        if(cx > 0) 
        { 
            o.style.width = (cx - Math.ceil(cx/5)) +"px"; 
        } 
        else 
        { 
            clearInterval(proxc); 
            o.style.display = "none"; 
        } 
    }     
	function initiate(loginID, pageID ,top ,left)
	{
	}

