 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;	}
}

//IE6专用页面高度改变操作
function up_next()
{ 
  var d=document.documentElement;
  var btn1 = document.getElementById('ajax_up');
  var btn2 = document.getElementById('ajax_next');
  var btn3 = document.getElementById('show-back');
        
	if (d.scrollTop){btn1.className = btn1.className;btn2.className = btn2.className;btn3.className = btn3.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],
	"" ); 
}

function addBookmark()
{
	var tUrl = document.location;  
	var title = document.title; 	
	if (window.sidebar) { 
	window.sidebar.addPanel(title, tUrl,""); 
	} else if( document.all ) {
	window.external.AddFavorite( tUrl, title);
	} else if( window.opera && window.print ) {
	return true;
	}
}

function switchTag(divname,id,allsu){
  if (document.getElementById(divname+id+id).style.display==''){
    return false;
  }
  for(var i=1; i<=allsu; i++){
  	if (i==id){
	  document.getElementById(divname+i+i).style.display='';
	  document.getElementById(divname+i).className='a1';
	}else{
	  document.getElementById(divname+i+i).style.display='none';
	  document.getElementById(divname+i).className='a2';
	}
	
  }
}

//专家转换
var expert = 1;
function expert_list(e_list_su){
expert++;
if (expert>e_list_su){expert = 1;}
switchTag('expert_',expert,e_list_su);
}