var	_cwddLastID = 1024;
var	_cwddNotifTime = 25;
var _cwddMaxValue = 20;

function CWDropDownWindow()
{
	window.console.log( "CWDropDownWindow" );
	_cwddLastID++;
	
	this.winID = "CWDropDownWindow"+lastID;
	this.win = document.createElement("div");
	this.win.setAttribute( "class", "CWDropDownWindowFill" );
	this.win.setAttribute( "id", this.winID );
	this.win.style.opacity = 0.95;
	this.win.style.Bottom = "100%"
	this.win._obj = this;
	this.show = _CWDropDownWindowShow;
	
	document.body.appendChild( this.win );

}

function __CWDropDownWindowAnimateTo(aID,value)
{
	//window.console.log( aID + " " + value );
	var	obj = document.getElementById(aID);
	
	var	newVal = 100- ( (value/_cwddMaxValue)*80.0 );
	
	obj.style.bottom = newVal + "%";
}

function _CWDropDownWindowShow()
{
	for (var i=0;i<=_cwddMaxValue;i++)
	{
		//setTimeout('_CWSetObjectOpacity(\"'+this.winID+'\",'+i+')',_cwddNotifTime*i);
		setTimeout('__CWDropDownWindowAnimateTo(\"'+this.winID+'\",'+i+')', notifTime*i );
	}
}


