function getShwo(id)
{
	var _self = this;
	this.currId = document.getElementById(id);
	this.littHeight = 10;
	this.interTime = 5;
	this.currClick = null;
	
	this.getMaxHeight = function()	//获取最大高度;
	{
		var maxHeightGet = 0;
		if(this.currId.style.display="none")
		{
			this.currId.style.display="";
			maxHeightGet = parseInt(this.currId.offsetHeight) ;
			this.currId.style.display= "none";
		}
		else
		{
			maxHeightGet = parseInt(this.currId.offsetHeight) ;
		}
		this.currId.style.overflow = "hidden";
		return maxHeightGet;
	}
	
	this.maxHeight = this.getMaxHeight();
	
	
	this.currentAdd = function()
	{
		if((parseInt(this.currId.style.height)+this.littHeight) < this.maxHeight)
		{
			this.currId.style.height = (parseInt(this.currId.style.height)+this.littHeight)+"px";
		}
		else
		{
			this.currId.style.height = this.maxHeight + "px";
			this.clearInterShow();
		}
	}
	
	this.currentRed = function()
	{
		if((parseInt(this.currId.style.height)-this.littHeight)>0)
		{
			this.currId.style.height = parseInt(this.currId.style.height)-this.littHeight+"px";
		}
		else
		{
			this.currId.style.height = 0 + "px";
			this.clearInerHidd();
			this.currId.style.display = "none";
			//alert(this.currId.style.display);
		}
	}
	
	this.setInterShow = function()
	{
		this.setAdd = window.setInterval(function(){_self.currentAdd();},this.interTime);
	}
	
	this.clearInterShow = function()
	{
		window.clearInterval(this.setAdd);
		this.setAdd = null;
	}
	
	this.setInterHidd = function()
	{
		this.setRed = window.setInterval(function(){_self.currentRed();},this.interTime);
	}
	
	this.clearInerHidd = function()
	{
		window.clearInterval(this.setRed);
		this.setRed = null;
	}
	
	
	this.currentShowHidden = function()
	{
		if(this.currId.style.display == "none")
		{
			this.currId.style.display = "";
			this.currId.style.height = 0 + "px";
			this.setInterShow();
		}
		else
		{
			if(this.setRed == null && this.setAdd == null)
			{
				this.setInterHidd();
			}
			else if(this.setAdd != null)
			{
				this.clearInterShow();
				this.setInterHidd();
			}
			else if(this.setRed != null)
			{
				this.clearInerHidd();
				this.setInterShow();
			}
		}
	}
}

function wangmenglink(){
	var   left  = (screen.width  - 310)/2;   
	var   top   = (screen.height - 270)/2;  
  window.open("http://customer.voole.com/customer/webUnionAction.do?deputyID=0010000625&adID=010127&destURL=http%3A%2F%2Fcustomer.voole.com%2Fcustomer%2Fservice%2Fpurchaseproduce%2Fuserpurchase.jsp","","height=242,width=370,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no,top="+top+",left="+left);
}
