function getFlash(url,width,height)
{
	document.writeln ('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" WIDTH='+width+' HEIGHT='+height+'>'); 
	document.writeln ('<PARAM NAME=movie VALUE="'+url+'">'); 
	document.writeln ('<PARAM NAME=wmode VALUE=transparent>'); 
	document.writeln ('<PARAM NAME=loop VALUE=true>'); 
	document.writeln ('<PARAM NAME=quality VALUE=high>'); 
	document.writeln ('<EMBED src="'+url+'" loop=true wmode=opaque quality=high swLiveConnect=FALSE WIDTH='+width+' HEIGHT='+height+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>'); 
	document.writeln ('</OBJECT>');
}

//index鏈接時改變圖片
function linkChangeImg(point,num){
	var name="arr_"+num;
	if(point=="over")
	  document.getElementById(name).src="images/products_arrow_orange.jpg";
    else
	  document.getElementById(name).src="images/products_arrow.jpg";
}
//index改變圖片的邊框
function imgBorder(point,id){
	var tagId="img_"+id;
	if(point=="over")
	  {
		  document.getElementById(tagId).style.padding="0px";
		  document.getElementById(tagId).style.border="1px solid #FF7F01";
	  }
	else
	  {
		  document.getElementById(tagId).style.padding="1px";
		  document.getElementById(tagId).style.border="0px";
	  }
}

//left_list显示和隐藏div
function showHiddenDiv(id){
	 if(document.getElementById(id).style.display=="block"){
	   document.getElementById(id).style.display="none";
	 }else{
	   document.getElementById(id).style.display="block";
	 }
}

//support 问题和下载的DIV显示与隐藏
//if num为要显示隐藏的TAG的数目,DIV为Element的ID前缀
function supportDiv(id,num,div){
		var lastDiv=div+num;
		for(i=1;i<=num;i++)
		{
			divId=div+i;
			if(divId!=id)
			{
				document.getElementById(divId).style.display="none";
			}
			else
			{
				if(document.getElementById(id).style.display=="block")
	   				document.getElementById(id).style.display="none";
	 			else
	   				document.getElementById(id).style.display="block";
			}
		}
}
//改变背景图片
/*function changeImg(id,point){
    var tagName="file/products_"+id+".gif";
	var imgSrc="file/products_"+id+"_orange.gif";
	if(point=="over")
	  document.getElementById(id).src=imgSrc;
	else
	  document.getElementById(id).src=tagName;
}*/

//showproducts显示和隐藏层
function itemChangeBg(showNum,hiddenNum){
		var id="item_"+showNum;
		var hiddenId="item_"+hiddenNum;
		var showDiv="show_"+showNum;
		var hiddenDiv="show_"+hiddenNum;
		if(showNum==1)
			{
			 document.getElementById(id).className=null;
			 document.getElementById(showDiv).style.display="block"
			 document.getElementById(hiddenId).className="no_active";
			 document.getElementById(hiddenDiv).style.display="none";
			}
		else
			{
			 document.getElementById(id).className=null;
			 document.getElementById(showDiv).style.display="block"
			 document.getElementById(hiddenId).className="no_active";
			 document.getElementById(hiddenDiv).style.display="none";
			}
			 
}

//showproducts 图片移动
function imgMove(id,point){
	var imgId="info_list_"+id;
	if(point=="over"){
      document.getElementById(imgId).style.marginLeft="2px";
	  document.getElementById(imgId).style.marginRight="13px"; 
	}
	else{
	  document.getElementById(imgId).style.marginLeft="0px";
	  document.getElementById(imgId).style.marginRight="15px";  
	}
	
}

//圆角边框变色
function roundBorder(div,point){
if(point=="over"){
   for(i=1;i<8;i++)
      {id=div+"_"+i;
	   if(i==1||i==7)
         {document.getElementById(id).style.borderColor="#FF7F01";
          document.getElementById(id).style.backgroundColor="#FF7F01";}
	   else
	     document.getElementById(id).style.borderColor="#FF7F01";
	  }
	  }
else{
     for(i=1;i<8;i++)
        {id=div+"_"+i;
	     if(i==1||i==7)
           {document.getElementById(id).style.borderColor="#2CA1C3";
            document.getElementById(id).style.backgroundColor="#2CA1C3";}
	     else
	        document.getElementById(id).style.borderColor="#2CA1C3";
	    }
		}
}

//改变边框和透明度

function changAlpha(id,point){
  if(point=="over")
  {
	  document.getElementById(id).style.backgroundColor="#C1C1C1";
      document.getElementById(id).filters.Alpha.Opacity=100;
	  document.getElementById(id).style.borderColor="#818181";
  }
  else
  {
	  document.getElementById(id).style.backgroundColor="#E1E1E1";
      document.getElementById(id).filters.Alpha.Opacity=70;
	  document.getElementById(id).style.borderColor="#D1D1D1";
  }
}

//support 选项卡mouse事件
function changeBar(id,id_1,point){
	if(point=="over")
	{
		document.getElementById(id).style.color="#FFFFFF";
		document.getElementById(id).style.backgroundColor="#2296B5";
		document.getElementById(id).style.borderColor="#FF7F01";
	}
	else if(point=="out")
	{
		document.getElementById(id).style.color="#515151";
		document.getElementById(id).style.backgroundColor="#FEFEFE";
		document.getElementById(id).style.borderColor="#2296B5";
	}
	else
	{
		if(id_1=="support")
		{
		   document.getElementById(id_1).style.display="block";
		   document.getElementById("cata_down").style.display="none";
		}
		else
		{
		   document.getElementById(id_1).style.display="block";
		   document.getElementById("support").style.display="none";
		}
	}
}

