 var ie6 = !window.XMLHttpRequest;
function ClosedivLeft()
{
document.getElementById("LeftAd").style.display="none";
}

//回顶部
function backTop()
{  

  var d=document.documentElement;
  var btn = document.getElementById('gotopbtn');
	 window.onscroll=function ()
	 {	
	  btn.style.display=d.scrollTop?'block':"none";	  
	 }
	
}
//IE6专用页面高度改变操作回顶部
function backTopz()
{ 
  var d=document.documentElement;
  var btn = document.getElementById('gotopbtn');
	if (d.scrollTop){btn.className = btn.className;	}
}




function flashurl(flashurl,WH,HT){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+WH+'" height="'+HT+'">');
document.write('<param name="movie" value="'+flashurl+'" />');
document.write('<param name=wmode value=transparent>');
document.write(' <param name="quality" value="high" />');
document.write(' <param name="menu" value="false">');
document.write('<PARAM NAME=allowScriptAccess VALUE=sameDomain>');
document.write('<embed wmode="transparent"  src="'+flashurl+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+WH+'" height="'+HT+'"></embed>');
document.write('</object>');
}


function show_pimgs(imgurl){
document.getElementById("p_imgs").innerHTML='<img src="up_file/product_file/img/'+imgurl+'" />';
}   


/*div左右对应拉伸*/
window.onload=function(){
var MR=document.getElementById("divRight");
var ML=document.getElementById("divLeft");
	if(MR && ML)
	{

		if (MR.offsetHeight>ML.offsetHeight)
		{
			document.getElementById("divLeft").style.height=document.getElementById("divRight").offsetHeight+"px";
		}
		else
		{
			document.getElementById("divRight").style.height=document.getElementById("divLeft").offsetHeight+"px";
		}
	}
}


function GetDateNow() {
	today=new Date();
	function initArray(){
	this.length=initArray.arguments.length
	for(var i=0;i<this.length;i++)
	this[i+1]=initArray.arguments[i]  }
	var d=new initArray(
	"星期日",
	"星期一",
	"星期二",
	"星期三",
	"星期四",
	"星期五",
	"星期六");
	document.write(
	today.getFullYear(),"年",
	today.getMonth()+1,"月",
	today.getDate(),"日",
	"&nbsp;&nbsp;",
	d[today.getDay()+1],
	"" ); 
}