var ip="";
ip=document.getElementById("ipLocation").innerHTML;
ip=ip.replace(/\r\n/g,"");
ip=ip.replace(/^\s*|\s*$/g, "");   //alert(ip);
function getAreaTagByIpLocation(location){
    var tag = 'allCity';
    if(location==null || location==''){
        tag='allCity';
    }
    return tag;
}

var tag = getAreaTagByIpLocation(ip);  //alert(tag);


function setCookie(name, value, expires, path, domain, secure) { 
var expires = new Date();
expires.setTime(expires.getTime() + 3*60*60*1000);
var domain=".pconline.com.cn"
document.cookie= name + "=" + escape(value) + 
((expires) ? "; expires=" + expires.toGMTString(): "") + 
((path) ? "; path=" + path : "") + 
((domain) ? "; domain=" + domain : "") +  
((secure) ? "; secure" : ""); 
} 

/** */ 
function getCookie(name) { 
var dc = document.cookie;  
var prefix = name + "="; 
var begin = dc.indexOf("; " + prefix); 
if (begin == -1) { 
begin = dc.indexOf(prefix); 
if (begin != 0) return null;  
} else { 
begin += 2; 
} 
var end = document.cookie.indexOf(";", begin); 
if (end == -1) { 
end = dc.length; 
} 
return unescape(dc.substring(begin + prefix.length, end)); 
} 


//关闭,最小化,最大化

function showDiv()
{
document.getElementById("PcPoPmarket").style.height = 311+'px';
document.getElementById("showvod").style.display = 'none';
document.getElementById("hidevod").style.display = 'block'
}

function hideDiv()
{
document.getElementById("PcPoPmarket").style.height = 25 + 'px';
document.getElementById("hidevod").style.display = 'none';
document.getElementById("showvod").style.display = 'block';
}

function closeDiv()
{
document.getElementById("PcPoPmarket").innerHTML = '';
}
if (tag.length > 0 && getCookie('PCpricrr')==null){
setTimeout('hideDiv();', 13000); 
	
//以下是为了兼容 xhtml1.0 和 html4两种情况 / ie6 ie7 ff 的兼容用hack 
if( typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat'){
document.writeln('<DIV  style="z-index:9;right:0;bottom:0; height:311px;width:360px;overflow:hidden;POSITION:fixed;_position:absolute; _margin-top:expression(document.documentElement.clientHeight-this.style.pixelHeight+document.documentElement.scrollTop);" id="PcPoPmarket" >');//定义框位置
}
else {
document.writeln('<DIV  style="z-index:9;right:0;bottom:0; height:311px;width:360px;overflow:hidden;POSITION:fixed;*position:absolute; *top:expression(eval(document.body.scrollTop)+eval(document.body.clientHeight)-this.style.pixelHeight);" id="PcPoPmarket" >');
}//定义框的弹出位置
document.writeln(' <div style="z-index:9; POSITION: absolute; left:-6px; width:360px; height:25px; overflow:hidden;"><span style="CURSOR: pointer;float:left;clear:none; width:123px; height:14px; overflow:hidden; margin:10px 5px;" onmouseover=showDiv()></span><span style="CURSOR: pointer;float:right;clear:none; width:15px; height:14px; margin:6px 5px;" onclick=closeDiv()></span><span style="background-image:url(http://www1.pcauto.com.cn/blog/popup/images/popup_blog_title_max.gif);CURSOR: pointer;float:right; width:11px; height:11px; overflow:hidden;clear:none;display:none; margin:9px 1px 0 0; " onclick=showDiv() id="showvod"></span><span style="background-image:url(http://www1.pcauto.com.cn/blog/popup/images/popup_blog_title_min.gif);CURSOR: pointer;float:right;overflow:hidden; width:11px; height:11px; clear:none; display:bolck; margin:9px 1px 0 0;" onclick=hideDiv() id="hidevod"></span></div> ');//缩小放大的按钮
document.write("<div style='z-index:9;width:380px;height:255px;padding:30px;padding:25px 5px 37px 5px;background:url(kuang.png) no-repeat'><OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'  WIDTH=345 HEIGHT=260><PARAM NAME=movie VALUE='wal.swf'><EMBED src='wal.swf' WIDTH=345 HEIGHT=260 TYPE='application/x-shockwave-flash' PLUGINSP'http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' wmode='opaque'></EMBED><param name='wmode' value='opaque'></OBJECT></div> ");//背景框架
document.writeln('</DIV>');
}
else {}
