function high(imgobj)
{
    if (window.lowing) clearInterval(lowing);
	theobject=imgobj;
	highing=setInterval("highit(theobject)",250);
}
function low(imgobj)
{
	if (window.highing) clearInterval(highing);
	theobject=imgobj;
	lowing=setInterval("lowit(theobject)",40);
} 

function highit(pic)
{
	if (pic.filters.alpha.opacity<100) 
	pic.filters.alpha.opacity+=5;
	else if (window.highing)
		clearInterval(highing);
} 

function lowit(pic)
{
	if (pic.filters.alpha.opacity>40)
		pic.filters.alpha.opacity-=5;
	else if (window.lowing)
		clearInterval(lowing);
}

function play(num)
{
	var imgobj = 'divhl0img'+num;
	imgobj = typeof('divhl0img'+num)=="string"?document.getElementById('divhl0img'+num):'divhl0img'+num;

	//imgobj.style.visibility = "hidden"
	//imgobj.style.filter  = "revealTrans();alpha(opacity=40)"

	//imgobj.filters.item(0).apply()
	//imgobj.filters.item(0).transition = 7
	imgobj.style.visibility = ""
	//imgobj.filters(0).play(1.0)

	imgobj.style.filter  = "alpha(opacity=40)"
	imgobj.filters.alpha.opacity = 40;
		high(imgobj)
}


						var timeout2=5000;  //切换时间
						var timeout3=10000; //mouse over 后切换时间
						var now_content=2;
						var total_content=3;
						var way=1;
						var start_content=Math.round(Math.random()*(total_content-1))+1; //除广告为第一显示外
						function content_mouse(num){
							if(document.getElementById('divhl0'+num).style.display=='block')
							{
								return;
							}

						  now_content=num;
						  window.clearInterval(theTimer2);   
						  for (var i=1;i<=total_content;i++){
						  document.getElementById('divhl0'+i).style.display='none';
						  }
						  document.getElementById('divhl0'+num).style.display='block';
							
							//high(obj);
							play(num);
						  //alert(document.getElementById('divhl0'+num).offsetWidth);
						  //Scroll('divhl0'+num,324,1.1);
						  theTimer2=setTimeout('change_content()', timeout3);
						}
						
						function change_content(){
							
						  for (var i=1;i<=total_content;i++){
						  document.getElementById('divhl0'+i).style.display='none';
						  }
						  document.getElementById('divhl0'+now_content).style.display='block';
							play(now_content);
						  
						  if (way) now_content++;
						  else now_content--;
						  if(now_content>total_content) {now_content=total_content-1;way=0;}
						  else if(now_content==0) {now_content=1;way=1;}
						  theTimer2=setTimeout('change_content()', timeout2);
						}
						theTimer2=setTimeout(function(){now_content=2;change_content();}, timeout2);


