

<!-- 离开收藏

function chouchang()
{
window.external.addFavorite('http://www.mingqiye.com/','铭企网-免费发布信息 企业产品展示.');

}
// --> 
<!-- 隐藏网页错误
function killErrors() { 
return true; 
} 
window.onerror = killErrors; 
// --> 

/**************************************************/
/*                Html在线编辑器                    */
/**************************************************/
//得到Html编辑器的值
function GetContent()
{
	frmEditer = window.frames("editer").frames("Composition")
	content = document.all("content")
	if ( frmEditer !=null && content !=null )
	{
		content.value=frmEditer.document.body.innerHTML;
	}	
	//wt = setTimeout("GetContent()",1000)
}
//赋值给Html编辑器的值
function WriteContent()
{
	frmEditer = window.frames("editer").frames("Composition")
	content = document.all("content")
	if ( frmEditer !=null && content !=null )
	{
		frmEditer.document.body.innerHTML = content.value;
	}
}


function Check()
{
	chkAll = document.all("chkAll").checked
	var coll = document.all("checkbox");
	
	if (coll != null)
	{
		for(j=0; j < coll.length; j++)
		{
			coll[j].checked = 	chkAll		
		}
	}

	//alert(document.all("chkAll").checked)
}

function Add(theform)
{
	
	theform.operate.value="Add"
	theform.submit();
}

function SubmitAction(theform,action)
{
	//alert (theform.action)
	
	theform.method = "POST"
	theform.action="?action=" + action
}

function Delete()
{
	if(confirm("你确定要删除吗？"))
	{
		return true;
	}	
	else
	{
		return false;
	}
}


var ie = document.all?1:0 
function CA(frm){
var trk=0;
isOnload = 0;

for (var i=0;i<frm.elements.length;i++)
{
var e = frm.elements[i];
if ((e.name != 'allbox') && (e.type=='checkbox'))
{

if (isOnload != 1)
{
trk++;
e.checked = frm.allbox.checked;
if (frm.allbox.checked)
{
	if (e.checked)
	{
		hL(e);
	}
	else
	{
		dL(e);
	}
}
else
{
	if (e.checked)
	{
		hL(e);
	}
	else
	{
		dL(e);
	}
}
}
}
}
}


function CCA(CB){
var frm = CB.form
if (CB.checked)
hL(CB);
else
dL(CB);
var TB=TO=0;
for (var i=0;i<frm.elements.length;i++)
{
var e = frm.elements[i];
if ((e.name != 'allbox') && (e.type=='checkbox'))
{
TB++;
if (e.checked)
TO++;
}
}

if (TO==TB)
frm.allbox.checked=true;
else
frm.allbox.checked=false;
}
function hL(E){
if (ie)
{
while (E.tagName!="TR")
{E=E.parentElement;}
}
else
{
while (E.tagName!="TR")
{E=E.parentNode;}
}
E.className = "H";
}
function dL(E){
if (ie)
{
while (E.tagName!="TR")
{E=E.parentElement;}
}
else
{
while (E.tagName!="TR")
{E=E.parentNode;}
}
E.className = "";
}

//选择图片
function SelectedImg1(ImgPath,thisImg)
{
	//ImgPath = "../image/Club/Product/"
	ImgName =opener.document.all("ImgName");
	txtImgName = opener.document.all("txtImgName");
	if (ImgName != null)
	{
		ImgName.src = ImgPath + thisImg;
	}

	if (txtImgName != null)
	{
		txtImgName.value = thisImg
	}
	opener.document.anchors["ProductPhoto"];
	window.close();
}

function openWindow(theURL,winName,features) { //v2.0
  	window.open(theURL,winName,features);
}

function Jump(value)
{
	location.href=value
}

//选中列表项
function SelectedItem(listName, value)
{
	objList = document.all(listName)
	if (objList != null)
	{
		len = objList.length;
		if (len != 0 )
		{
		for(i=0;i<len;i++)
		{
			if (objList.options[i].value ==value)
			objList.options[i].selected = true;

		}
	}
	}
}

function GetProvince(value)
{
	province = document.all("Province")
	if (province != null)
	{
		len = province.length;
		if (len != 0 )
		{
		for(i=0;i<len;i++)
		{
			if (province.options[i].value ==value)
			province.options[i].selected = true;

		}
	}
	}
}

function SelectChecked(chkChecked, lstCause){
	lstCause = document.all(lstCause);
	if( chkChecked.value == -1 ){		
		lstCause.disabled = false;		
	}
	else if( chkChecked.value == 1){
		lstCause.disabled = true;
	}
	//alert(txtCause.value)
	
}

function ChangeCause(the, causeName, otherValue)
//--------------------------------------------------------------------------------
//  Author 		:       SAM
//  Version     Date			Description
//  1.0         05/15/2004  	change Cause
//  Parameters		:
//	the					Input		the list cause
//	causeName			Input		the cause name
//	otherValue			Input		其它选项的值
//
//  Return Value        :   None
//	Return Type         :   None
//	Functions Called    :	setTextFocus
//
//--------------------------------------------------------------------------------
{
	if(the.options[the.selectedIndex].value==otherValue){ 
		document.all(causeName).style.display='block'}
	else{
		document.all(causeName).style.display='none'
	}
}

function SelectedCause(lstCause, txtCause, selectedValue)
//--------------------------------------------------------------------------------
//  Author 		:       SAM
//  Version     Date			Description
//  1.0         07/18/2003   	Selected list Cause
//  Parameters		:
//	lstCause			Input		the list Cause
//	txtCause			Input		textbox cause
//	selectedValue		Input		selectedValue
//
//  Return Value        :   None
//	Return Type         :   None
//	Functions Called    :	setTextFocus
//
//--------------------------------------------------------------------------------
{
	var existing=false
	cause = document.all(lstCause);
	
	if (cause != null)
	{
		len = cause.length;
		if (len != 0 )
		{
		for(i=0;i<len;i++)
		{
			if (cause.options[i].value ==selectedValue)
			{			
				cause.options[i].selected = true;
				existing = true
			}

		}
		
		if (!existing)
		{
			txtCause = document.all(txtCause)
			if (txtCause != null)
			{
				txtCause.value = selectedValue;
				txtCause.style.display = "block";
				cause.options[len-1].selected = true;
			}

		}
	}
	}
}

function Search()
{
	searchType = document.all("lstSearchType");	
	objKeywords= document.all("txtKeywords");
	var keywords = ""

	if (searchType != null)
	{
		search = searchType.options[searchType.selectedIndex].value;
		if (search == "no")
		{
			alert("请选择搜索类型！");
			searchType.focus();
		}
		else
		{
			if (objKeywords !=null)
			{
				keywords = objKeywords.value
			}
			window.open(search + keywords);
		}
		
	}
}


function Searchs()
{
	searchType = document.all("SearchType");	
	objKeywords= document.all("txtKeyword");
	var keywords = ""

	if (searchType != null)
	{
		search = searchType.options[searchType.selectedIndex].value;
		if (search == "no")
		{
			alert("请选择搜索类型！");
			searchType.focus();
		}
		else
		{
			if (objKeywords !=null)
			{
				keywords = objKeywords.value
			}
			window.open(search + keywords);
		}
		
	}
}


function SearchClub(id)
{
	searchType = document.all("lstSearchType");	
	objKeywords= document.all("txtKeywords");
	var keywords = ""

	if (searchType != null)
	{
		search = searchType.options[searchType.selectedIndex].value;
		if (search == "no")
		{
			alert("请选择搜索类型！")
		}
		else
		{
			if (objKeywords !=null)
			{
				keywords = objKeywords.value
			}
			window.open(search +"?id=" + id + "&keywords=" + keywords);
		}
		
	}
}

//得到焦点时置空

function SetEmptyValue( the, initValue)
{
	if(the.value==initValue)
	{
	  the.value="";
	}	
}
//得到原来方字提示
function GetOriTip( the, oriTip)
{
//	if(the.value=="")
	if(StringIsNull(the.value)==true)
	{
	  the.value=oriTip;
	}	
}

function checkImg(theImgSrc, limitWidth, limitHeight, theUrl, sTitle , sTip){
	var imgObj;
	var imgWidth;
	var imgHeight;
 
  	// 创建图像对象
    imgObj = new Image();
    // 设置图像源
    imgObj.src = theImgSrc;
	imgWidth = imgObj.width;
	imgHeight = imgObj.height;
	if ( sTip !="" && sTip!= null ){
		sTip="<br>" + sTip;
	}
	else
	{
		sTip="";		
	}

    // 是否已取得了图像的高度和宽度
    if (( imgWidth != 0) && ( imgHeight != 0)){
		//根据图片宽度、高度，限制的宽度、高度得到最终的宽度、高度
		if( imgWidth > imgHeight ){//判断图片宽度是否大于图像高度
			if (imgWidth > limitWidth){					
					imgWidth = limitWidth;	
			}
			sImg = "<img src='" + theImgSrc + "' width=" + imgWidth + " onmousewheel='return bbimg(this)' border=0>";
			if ( theUrl !="" && theUrl!= null ){
				sImg = "<a href='" + theUrl + "' target='_blank' title='" + sTitle + "'> " + sImg + sTip +  "</a>";
			}
			document.writeln(sImg)
		}
		else{
			if (imgHeight > limitHeight){					
					imgHeight = limitHeight;	
			}
			sImg =" <img src='" + theImgSrc + "' height=" + imgHeight + " onmousewheel='return bbimg(this)' border=0>";			
			if ( theUrl !="" && theUrl!= null ){
				sImg = "<a href='" + theUrl + "' target='_blank' title='" + sTitle + "'>" + sImg +  sTip +"</a>";
			}
			document.writeln( sImg )
		}		
	}
	else{
		document.writeln("暂无图片")
	}
      
    
}

function bbimg(o){
	var zoom=parseInt(o.style.zoom, 10)||100;
	zoom+=event.wheelDelta/12;
	if (zoom>0) o.style.zoom=zoom+'%';
	return false;
}

//HTML过滤函数
function HTMLEncode(text)
{
	text = text.replace(/&/g, "&amp;") ;
	text = text.replace(/"/g, "&quot;") ;
	text = text.replace(/</g, "&lt;") ;
	text = text.replace(/>/g, "&gt;") ;
	text = text.replace(/'/g, "&#146;") ;

	return text ;
}

//设置语言操作	
function setOptElement(theElement, sValue, sClassName, bDisabled){
	//theElement.value = sValue;
	theElement.className = sClassName;
	theElement.disabled = bDisabled;
}

//验证关键词
function CheckKeywords(theElement,tip)
{
	var result = true;
	var keywordsColl = document.all(theElement);
	var strKeywords="";
	if(keywordsColl != null)
	{
		for(var i=0; i < keywordsColl.length; i++ )
		{
			strKeywords += keywordsColl[i].value.trim();
			/*
			if(keywordsColl[i].value.indexOf(",") > 0)
			{
				alert("请在商机的关键词不要包含,");
				keywordsColl[i].focus();
				return false;
			}
			*/			
		}
		
		if(strKeywords =="")
		{
			alert("请输入" + tip +"！");
			keywordsColl[0].focus();
			result = false;
		}
	}
	return result;
}

//验证描述
function CheckDetail(theEditor,tip)
{
	var result = true;
	if( theEditor.getHTML()=="" )
	{
		alert("请输入"+ tip +"！");
		theEditor.VerifyFocus();
		result = false;
			
	}
	return result;
}

//增加字符串 Trim 属性
String.prototype.trim = function()
{
   return this.replace(/(^\s+)|\s+$/g,"");
 }
 
 
 //首页企业排行耪JS鼠标滑过显示
		<!--//
		function qhshow(t){
		var p=t.parentNode;
		var b='';
			for (var i=0; i<p.childNodes.length; i++){
				if (p.childNodes[i].id != '' && p.childNodes[i].id != t.id && p.childNodes[i].background != t.background && b==''){
					b = p.childNodes[i].background;
					p.childNodes[i].background = t.background;
					t.background = b;
				}
				if(p.childNodes[i].id != '' )document.getElementById('s_' + p.childNodes[i].id).style.display='none';
			}
			document.getElementById('s_' + t.id).style.display='';
		}
		//-->
 
 //首页JS鼠标滑过显示

				
				var btnImgArr = new Array(6);
				
				btnImgArr[0] = '_ctl3_Ucproductrotater_rev1_0';
				
				btnImgArr[1] = '_ctl3_Ucproductrotater_rev1_1';
				
				btnImgArr[2] = '_ctl3_Ucproductrotater_rev1_2';
				
				btnImgArr[3] = '_ctl3_Ucproductrotater_rev1_3';
				
				btnImgArr[4] = '_ctl3_Ucproductrotater_rev1_4';
				
				btnImgArr[5] = '_ctl3_Ucproductrotater_rev1_5';
				
				

				
				var pause = true;
				var initialcnt = 0;
				var initialurl='';
				var urlArray = new Array(7);
				var imgArray = new Array(7);
				var textArray = new Array(7);
				var salePriceArray = new Array(7);
				var strikePriceArray = new Array(7);
				var maxCounter = 8;
				var previousBtnImg;
				var counter = 0;
				var timer =3000; 
				var timer1 ;
				
				imgArray[0] ='';
				textArray[0] ='创业新闻';
				strikePriceArray[0] ='';
				salePriceArray[0] ='<IFRAME src="/INC/Html/MP_chuangye.html" frameBorder=0 width="100%" height="180" scrolling=no  >  </IFRAME>';
				urlArray[0] = '';
				
				imgArray[1] ='';
				textArray[1] ='理财新闻';
				strikePriceArray[1] ='';
				salePriceArray[1] ='<IFRAME src="/INC/Html/MP_shangdao.html" frameBorder=0 width="100%" height="180" scrolling=no  >  </IFRAME>';
				urlArray[1] = '';
				
				imgArray[2] ='';
				textArray[2] = '贸易新闻';
				strikePriceArray[2] ='';
				salePriceArray[2] ='<IFRAME src="/INC/Html/MP_maoyi.html" frameBorder=0 width="100%" height="180" scrolling=no  >  </IFRAME>';
				urlArray[2] = '';
				
				imgArray[3] ='';
				textArray[3] ='经营新闻';
				strikePriceArray[3] ='';
				salePriceArray[3] ='<IFRAME src="/INC/Html/MP_jingying.html" frameBorder=0 width="100%" height="180" scrolling=no  >  </IFRAME>';
				urlArray[3] = '';
				
				imgArray[4] ='';
				textArray[4] ='营销新闻';
				strikePriceArray[4] ='';
				salePriceArray[4] ='<IFRAME src="/INC/Html/MP_yingxiao.html" frameBorder=0 width="100%" height="180" scrolling=no  >  </IFRAME>';
				urlArray[4] = '';
				
				imgArray[5] ='';
				textArray[5] ='投资新闻 ';
				strikePriceArray[5] ='';
				salePriceArray[5] ='<IFRAME src="/INC/Html/MP_touzi.html" frameBorder=0 width="100%" height="180" scrolling=no  >  </IFRAME>';
				urlArray[5] = '';
				

				

				var t;
				var j = 0 	;
				var p = 6;	
				var preLoad = new Array();
				 
				for (i = 0; i < p; i++)	
				{
					preLoad[i] = new Image();
					preLoad[i].src = imgArray[i];
				}
				 //function runSlideShow()
				 //{
				 //  if (pause){return;}
				  //   if (document.getElementById)
					 //{
						 //滚动
					  //if(counter > maxCounter)counter = 0; 
						 //if(typeof(ChangeColor) == 'function')
						 //{
						 //ChangeColor(counter);
						 //}
				 //if (document.getElementById('_ctl3_Ucproductrotater_rev1__productimage')!=null)if (document.getElementById('_ctl3_Ucproductrotater_rev1__productname')!=null){if (initialcnt==0){   initialurl =document.getElementById('_ctl3_Ucproductrotater_rev1__productdetails').href;var firstpos=initialurl.lastIndexOf('?');initialurl=initialurl.substring(firstpos,initialurl.length);} initialcnt = 1 ;}{ document.getElementById('_ctl3_Ucproductrotater_rev1__productname').href  = urlArray[counter];
				 // }document.getElementById('_ctl3_Ucproductrotater_rev1__productimage').style.filter='blendTrans(duration=4)';if (document.getElementById('_ctl3_Ucproductrotater_rev1__productname')!=null){ document.getElementById('_ctl3_Ucproductrotater_rev1__productimage').style.filter='blendTrans(duration=crossFadeDuration)'; }if (document.getElementById('_ctl3_Ucproductrotater_rev1__productname')!=null){ if(document.all)document.getElementById('_ctl3_Ucproductrotater_rev1__productimage').filters.blendTrans.Apply() ;}}if (document.getElementById('_ctl3_Ucproductrotater_rev1__productimage')!=null) {document.getElementById('_ctl3_Ucproductrotater_rev1__productimage').src = preLoad[counter].src;}if (document.getElementById('_ctl3_Ucproductrotater_rev1__productname')!=null){ document.getElementById('_ctl3_Ucproductrotater_rev1__productname').innerHTML  = textArray[counter];
				 //}if (document.getElementById('_ctl3_Ucproductrotater_rev1__productsaleprice')!=null){ document.getElementById('_ctl3_Ucproductrotater_rev1__productsaleprice').innerHTML  = salePriceArray[counter];
				 // }if (document.getElementById('_ctl3_Ucproductrotater_rev1__productstrikeprice')!=null){ document.getElementById('_ctl3_Ucproductrotater_rev1__productstrikeprice').innerHTML  = strikePriceArray[counter];
 //			document.getElementById('_ctl3_Ucproductrotater_rev1__productstrikeprice').href  = urlArray[counter];
				 // }if (document.getElementById('_ctl3_Ucproductrotater_rev1__productsaleprice')!=null){ document.getElementById('_ctl3_Ucproductrotater_rev1__productsaleprice').href  = urlArray[counter];
				 // }if (document.getElementById('_ctl3_Ucproductrotater_rev1__productname')!=null)if (document.getElementById('_ctl3_Ucproductrotater_rev1__productdetails')!=null){ document.getElementById('_ctl3_Ucproductrotater_rev1__productdetails').href  = urlArray[counter];
				 // }if (document.getElementById('_ctl3_Ucproductrotater_rev1__productbuybutton')!=null){ document.getElementById('_ctl3_Ucproductrotater_rev1__productbuybutton').href  = urlArray[counter];
				  //}if (document.all){if (document.getElementById('_ctl3_Ucproductrotater_rev1__productimage')!=null){document.getElementById('_ctl3_Ucproductrotater_rev1__productimage').filters.blendTrans.Play();}} t = setTimeout('runSlideShow()',timer);
				 //if (pause==false)counter++;
				 //} t = setTimeout('runSlideShow()', timer);
				function changeImage(){if(counter > maxCounter)counter = 0;
				if(typeof(ChangeColor) == 'function'){ChangeColor(counter)};if (document.getElementById('_ctl3_Ucproductrotater_rev1__productimage')!=null)if (document.getElementById('_ctl3_Ucproductrotater_rev1__productname')!=null){if (initialcnt==0){   initialurl =document.getElementById('_ctl3_Ucproductrotater_rev1__productdetails').href;var firstpos=initialurl.lastIndexOf('?');initialurl=initialurl.substring(firstpos,initialurl.length);} initialcnt = 1 ;}{document.getElementById('_ctl3_Ucproductrotater_rev1__productimage').src  = imgArray[counter] ;
				}if (document.getElementById('_ctl3_Ucproductrotater_rev1__productname')!=null){ document.getElementById('_ctl3_Ucproductrotater_rev1__productname').innerHTML  = textArray[counter];
				}if (document.getElementById('_ctl3_Ucproductrotater_rev1__productsaleprice')!=null){ document.getElementById('_ctl3_Ucproductrotater_rev1__productsaleprice').innerHTML  = salePriceArray[counter];
				 }if (document.getElementById('_ctl3_Ucproductrotater_rev1__productstrikeprice')!=null){ document.getElementById('_ctl3_Ucproductrotater_rev1__productstrikeprice').innerHTML  = strikePriceArray[counter];
				document.getElementById('_ctl3_Ucproductrotater_rev1__productstrikeprice').href  = urlArray[counter];
				 }if (document.getElementById('_ctl3_Ucproductrotater_rev1__productsaleprice')!=null){ document.getElementById('_ctl3_Ucproductrotater_rev1__productsaleprice').href  = urlArray[counter];
				 }if (document.getElementById('_ctl3_Ucproductrotater_rev1__productname')!=null){ document.getElementById('_ctl3_Ucproductrotater_rev1__productname').href  = urlArray[counter];
				 }if (document.getElementById('_ctl3_Ucproductrotater_rev1__productdetails')!=null){ document.getElementById('_ctl3_Ucproductrotater_rev1__productdetails').href  = urlArray[counter];
				 }if (document.getElementById('_ctl3_Ucproductrotater_rev1__productbuybutton')!=null){ document.getElementById('_ctl3_Ucproductrotater_rev1__productbuybutton').href  = urlArray[counter];
				 } if (pause==false) timer1 = window.setTimeout('changeImage()', timer);
				if (pause==false)counter++;
				}
//新闻页面字体大小调整JS
function T(n){
     document.getElementById("ArticleCnt").style.fontSize=n+"px";
	 }
	 
	 
	 
//首页展会分类JS 
var overTimer=null;
var overTimev=200; //变换速度
function moveOutHref(ev) {
    if((overTimer!=null))
       window.clearTimeout(overTimer);	
}


                 	
function moveOverHref1(tabNumber) { 		 
	  if((overTimer!=null))
       window.clearTimeout(overTimer);
       overTimer=window.setTimeout(function(){menu_change1(tabNumber)},overTimev);
}
                 	
function menu_change1(tabNumber){
for (i = 1; i <= 2; i++) {
        document.getElementById('tddsub_' + i).style.display = 'none';
}
      document.getElementById('tddsub_' + tabNumber).style.display = '';

for (j=1;j<=4;j++) {
    if ( tabNumber==j ) {
        if ( j==1 ) { document.getElementById("tdd1").className="msover"; }
        if ( j==2 ) { document.getElementById("tdd2").className="msover"; }

    } else {
        if ( j==1 ) { document.getElementById("tdd1").className="msout"; }
        if ( j==2 ) { document.getElementById("tdd2").className="msout"; }

    }
}
}


function menu_change2(tabNumber){
for (i = 1; i <= 3; i++) {
        document.getElementById('tdddsub_' + i).style.display = 'none';
}
      document.getElementById('tdddsub_' + tabNumber).style.display = '';

for (j=1;j<=3;j++) {
	if ( tabNumber==j ) {
        if ( j==1 ) { document.getElementById("tddd1").className="msover"; }
        if ( j==2 ) { document.getElementById("tddd2").className="msover"; }
        if ( j==3 ) { document.getElementById("tddd3").className="msover"; }
    } else {
        if ( j==1 ) { document.getElementById("tddd1").className="msout"; }
        if ( j==2 ) { document.getElementById("tddd2").className="msout"; }
        if ( j==3 ) { document.getElementById("tddd3").className="msout"; }
    }
}
}

function moveOverHref3(tabNumber) { 		 
	  if((overTimer!=null))
       window.clearTimeout(overTimer);
       overTimer=window.setTimeout(function(){menu_change3(tabNumber)},overTimev);
}
                 	
function menu_change3(tabNumber){
for (i = 1; i <= 2; i++) {
        document.getElementById('tddddsub_' + i).style.display = 'none';
}
      document.getElementById('tddddsub_' + tabNumber).style.display = '';

for (j=1;j<=2;j++) {
	if ( tabNumber==j ) {
        if ( j==1 ) { document.getElementById("tdddd1").className="msover"; }
        if ( j==2 ) { document.getElementById("tdddd2").className="msover"; }
    } else {
        if ( j==1 ) { document.getElementById("tdddd1").className="msout"; }
        if ( j==2 ) { document.getElementById("tdddd2").className="msout"; }
    }
}
}

//首页留言JS
function Juge(myforms)
{
			if (myforms.txtArea.value == "")
	{
		alert("内容不能为空！");
		myforms.txtArea.focus();
		return (false);
		
	}

	if (myforms.txtEmail.value == "")
	{
		alert("Email不能为空！");
		myforms.txtEmail.focus();
		return (false);
	}
	}

//首页企业排行榜
function nTabs(thisObj,Num){
if(thisObj.className == "showimg1")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("div");
for(i=0; i <tabList.length; i++)
{
  if (i == Num)
  {
   thisObj.className = "showimg1"; 
      document.getElementById(tabObj+"_con"+i).style.display = "block";
  }else{
   tabList[i].className = "showimg2"; 
   document.getElementById(tabObj+"_con"+i).style.display = "none";
  }
} 
}

var vvvsb= new Array();
for(i=0;i<10;i++){vvvsb[i]=0;}
function vvvshow(id,bh)
{
	if(vvvsb[bh]==0){document.getElementById(id).style.display="";vvvsb[bh]=1;}
	else{document.getElementById(id).style.display="none";vvvsb[bh]=0;}
}


//首页产品图片滚动列表 
//图片滚动列表 
var Speed = 6; //速度(毫秒)
var Space = 8; //每次移动(px)
var PageWidth = 100; //翻页宽度
var fill = 0; //整体移位
var MoveLock = false;
var MoveWay = "right";
var MoveTimeObj;

var Comp = 0;
var AutoPlayObj=null;
var ISL_Pages = Math.floor(GetObj("list_pr1").scrollWidth / PageWidth);
var ISL_Page = 1;
var GotoLock = false;

GetObj("list_pr1").innerHTML=GetObj("list_pr1").innerHTML;GetObj('ISL_Cont').scrollLeft=fill>=0?fill:GetObj('list_pr1').scrollWidth-Math.abs(fill);GetObj("ISL_Cont").onmouseover=function(){clearInterval(AutoPlayObj)}
GetObj("ISL_Cont").onmouseout=function(){AutoPlay()}
AutoPlay();ISL_PageList();function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}};function AutoPlay(){clearInterval(AutoPlayObj);AutoPlayObj=setInterval('ISL_GoDown();ISL_StopDown();',1800)};function ISL_PageList(){var I,i="";for(I=1;I<=ISL_Pages;I++){i+="<img src='http://image.yesky.com/TLimages/itbnet/article/image/ycspot.gif' class='"+(ISL_Page==I?"dotItemOn":"dotItem")+"' onclick='ISL_GotoPage("+I+")' alt='"+I+"页' />"};GetObj('dotList').innerHTML=i};function ISL_GotoPage(i){if(MoveLock)return;MoveLock=true;GotoLock=true;Comp=(i-1)*PageWidth-GetObj('ISL_Cont').scrollLeft;ISL_Page=i;ISL_PageList();clearInterval(AutoPlayObj);CompScr();AutoPlay()};function ISL_GoUp(){if(MoveLock)return;clearInterval(AutoPlayObj);MoveLock=true;MoveWay="left";MoveTimeObj=setInterval('ISL_ScrUp();',Speed)};function ISL_StopUp(){if(GotoLock){return};if(MoveWay=="right"){return};clearInterval(MoveTimeObj);if((GetObj('ISL_Cont').scrollLeft-fill)%PageWidth!=0){Comp=fill-(GetObj('ISL_Cont').scrollLeft%PageWidth);CompScr()}else{MoveLock=false};AutoPlay()};function ISL_ScrUp(){if(GetObj('ISL_Cont').scrollLeft<=0){GetObj('ISL_Cont').scrollLeft=GetObj('ISL_Cont').scrollLeft+GetObj('list_pr1').offsetWidth};GetObj('ISL_Cont').scrollLeft-=Space};function ISL_GoDown(){clearInterval(MoveTimeObj);if(MoveLock)return;clearInterval(AutoPlayObj);MoveLock=true;MoveWay="right";ISL_ScrDown();MoveTimeObj=setInterval('ISL_ScrDown()',Speed)};function ISL_StopDown(){if(GotoLock){return};if(MoveWay=="left"){return};clearInterval(MoveTimeObj);if(GetObj('ISL_Cont').scrollLeft%PageWidth-(fill>=0?fill:fill+1)!=0){Comp=PageWidth-GetObj('ISL_Cont').scrollLeft%PageWidth+fill;CompScr()}else{MoveLock=false};AutoPlay()};function ISL_ScrDown(){if(GetObj('ISL_Cont').scrollLeft>=GetObj('list_pr1').scrollWidth){GetObj('ISL_Cont').scrollLeft=GetObj('ISL_Cont').scrollLeft-GetObj('list_pr1').scrollWidth};GetObj('ISL_Cont').scrollLeft+=Space};function CompScr(){if(Comp==0){ISL_Page=Math.round((GetObj('ISL_Cont').scrollLeft-fill)/PageWidth)+1;if(ISL_Page>ISL_Pages){ISL_Page=1};ISL_PageList();MoveLock=false;GotoLock=false;return};var num,TempSpeed=Speed,TempSpace=Space;if(Math.abs(Comp)<PageWidth/5){TempSpace=Math.round(Math.abs(Comp/5));if(TempSpace<1){TempSpace=1}};if(Comp<0){if(Comp<-TempSpace){Comp+=TempSpace;num=TempSpace}else{num=-Comp;Comp=0};GetObj('ISL_Cont').scrollLeft-=num;setTimeout('CompScr()',TempSpeed)}else{if(Comp>TempSpace){Comp-=TempSpace;num=TempSpace}else{num=Comp;Comp=0};GetObj('ISL_Cont').scrollLeft+=num;setTimeout('CompScr()',TempSpeed)}}


//----设置Cookie------

function setCookie(name,value,domain)

{

var value = escape(value);

var nameString = "Drag_"+name + "=" + value; //给cookie变量增加前缀

var extime = new Date(); 

extime.setTime (extime.getTime () + 315360000);

var expiryString = ";expires=" + extime.toGMTString();

var domainString = "";

var pathString = ";path=/"; 

var setvalue = nameString + expiryString;

document.cookie = setvalue;
}

//----设置Cookie 结束------

//---读取Cookie-------

function getcookie (name) 
{
var CookieFound = false;
var start = 0;
var end = 0;
var CookieString = document.cookie;

var i = 0;
name="Drag_"+name; //增加前缀
while (i <= CookieString.length) 
{
start = i ;
end = start + name.length;
if (CookieString.substring(start, end) == name)
{
CookieFound = true;
break; 
}
i++;
}

if (CookieFound)
{
start = end + 1;
end = CookieString.indexOf(";",start);
if (end < start)
end = CookieString.length;
var getvalue = CookieString.substring(start, end);
return unescape(getvalue);
}
return "";
}

//---读取Cookie 结束-------

//检测是否禁用了cookie
function isEnableCookie() { 
try {
var cookie_helper = new CookieHelper("");
var test_cookie_name = "test_cookie_name";
var test_cookie_value = "test_cookie_value";
var test_cookie_value_ret = "";

cookie_helper.writeCookie(test_cookie_name,test_cookie_value);
test_cookie_value_ret = cookie_helper.getCookieValue(test_cookie_name); 

if ( test_cookie_value_ret != null ) {
cookie_helper.removeCookie(test_cookie_name);
return true;
} else { 
return false;
} 
} catch (error) { 
return false;
}
} 
