var popupDiv = function(id, w, h, pos, zI, l, t, mL, mH, iHTML)	{
	this.div			= document.createElement("div");
	this.div.id 		= id;
	this.div.innerHTML	= iHTML;
	this.slider			= new slide(this.div);
	var self			= this;
	
	this.show = function()	{
		with(this.div.style)	{
			border		= "none";
			width		= w;
			height 		= h;
			position 	= pos;
			zIndex		= zI;
			left		= l;
			top			= t;
			marginLeft	= mL
			marginTop	= mH;
			overflow	= "hidden";
		}
		
		document.body.appendChild(this.div);
		this.slider.down(parseInt(h), 4000);
	}
	
	this.remove = function()	{
		this.slider.up(parseInt(h), 4000, function()	{
			self.div.parentNode.removeChild(self.div);
		});				
	}
	
	this.toggle = function()	{
		if(document.getElementById(this.div.id))
			this.remove();
		else
			this.show();
	}
}