// JavaScript Document
//-----------------------------------------------------------------------nottop
var newsDown=false;
var IntroDown=false;
var PointDown=false;
var ProductDown=false;
function ShowAction()
{
	var x=event.clientX+document.documentElement.scrollLeft;
	var y=event.clientY+document.documentElement.scrollTop;
	//alert("x:"+x+"y:"+y);
	var changeObj=$("#SummarizedNewsBG")[0];
	if(x>31 && x<245 && y>400 && y<650)
	{//newsdown
		if( !newsDown)
		{
		newsDown=true
			var OheigthChange=new heigthChange("77px","250px",changeObj,"url(images/SummarizedNewsBG2.jpg) no-repeat top left");
			OheigthChange.down();
				//改变字颜色s
	for(var i=0;i<$("#SummarizedNews span").size();i++)
	{
		$("#SummarizedNews span").eq(i).attr("style","color:#FFFFFF");
		$("#SummarizedNews a").eq(i).attr("style","color:#FFFFFF");
	}	
	//改一个按?
	$("#SummarizedNews .SummarizedNewsMore").find("a").html("<img src='images/SummarizedNewsMore2.jpg' alt='More...' border='0' />")
			}
	}
	else
	{
		//newsUP
		newsDown=false;
						//改变字颜?
	for(var i=0;i<$("#SummarizedNews span").size();i++)
	{
		$("#SummarizedNews span").eq(i).attr("style","color:#000000");
		$("#SummarizedNews a").eq(i).attr("style","color:#000000");
	}	
		//改一个按?
	$("#SummarizedNews .SummarizedNewsMore").find("a").html("<img src='images/SummarizedNewsMore1.jpg' alt='More...' border='0' />")
		hideAction();
	//判断是不是intro-------------------------------------------------------------------
		if(x>270 && x<485 && y>400 && y<650)
		{
			changeObj=$("#SummarizedIntroBG")[0];
				//Introdown
			if( !IntroDown)
			{
			IntroDown=true
				var OheigthChange=new heigthChange("77px","250px",changeObj,"url(images/SummarizedIntroBG2.jpg) no-repeat top left");
				OheigthChange.down();
				//改颜?
				$("#SummarizedIntroContent").attr("style","color:#ffffff");
				
					//改一个按?
	$("#SummarizedIntro .SummarizedNewsMore").find("a").html("<img src='images/SummarizedNewsMore2.jpg' alt='More...' border=0 />")
			}
		}
		else
		{
			//IntroUP
			IntroDown=false;
			//改一个按?
		$("#SummarizedIntro .SummarizedNewsMore").find("a").html("<img src='images/SummarizedNewsMore1.jpg' alt='More...' border=0 />")
						//改颜?
				$("#SummarizedIntroContent").attr("style","color:#000000");
			hideIntroAction();
		//判断是不是Point-------------------------------------------------------------------
			if(x>515 && x<730 && y>400 && y<650)
			{
				changeObj=$("#SummarizedPointBG")[0];
					//PointDown
				if( !PointDown)
				{
				PointDown=true
					var OheigthChange=new heigthChange("77px","250px",changeObj,"url(images/SummarizedPointBG2.jpg) no-repeat top left");
					OheigthChange.down();
					//改颜?
					$("#SummarizedPointContent").attr("style","color:#ffffff");
					
						//改一个按?
		$("#SummarizedPoint .SummarizedNewsMore").find("a").html("<img src='images/SummarizedNewsMore2.jpg' alt='More...'border=0 />")
				}
			}
			else
			{
				//IntroUP
				PointDown=false;
				//改一个按?
			$("#SummarizedPoint .SummarizedNewsMore").find("a").html("<img src='images/SummarizedNewsMore1.jpg' alt='More...' border=0/>")
							//改颜?
					$("#SummarizedPointContent").attr("style","color:#000000");
				hidePointAction();
			//判断是不是Product-------------------------------------------------------------------
					if(x>760 && x<975 && y>400 && y<650)
					{
						changeObj=$("#SummarizedProductBG")[0];
							//PointDown
						if( !ProductDown)
						{
						ProductDown=true
							var OheigthChange=new heigthChange("77px","250px",changeObj,"url(images/SummarizedProductBG2.jpg) no-repeat top left");
							OheigthChange.down();
							//改颜?
							$("#SummarizedProductContent").attr("style","color:#ffffff");
							
								//改一个按?
				$("#SummarizedProduct .SummarizedNewsMore").html("<img src='images/SummarizedNewsMore2.jpg' alt='More...' />")
						}
					}	
					else
					{
						//IntroUP
						ProductDown=false;
						//改一个按?
					$("#SummarizedProduct .SummarizedNewsMore").html("<img src='images/SummarizedNewsMore1.jpg' alt='More...' />")
									//改颜?
							$("#SummarizedProductContent").attr("style","color:#000000");
						hideProductAction();
					}
				}
		}
	}

}
function hideAction()
{
$("#SummarizedNewsBG").attr("style","background:url(images/SummarizedNewsBG1.jpg) no-repeat top left"); 
}
function hideIntroAction()
{
$("#SummarizedIntroBG").attr("style","background:url(images/SummarizedIntroBG1.jpg) no-repeat top left"); 
}
function hidePointAction()
{
$("#SummarizedPointBG").attr("style","background:url(images/SummarizedPointBG1.jpg) no-repeat top left"); 
}
function hideProductAction()
{
$("#SummarizedProductBG").attr("style","background:url(images/SummarizedProductBG1.jpg) no-repeat top left"); 
}
