<!--

  var mainDiv;
  var flashDiv;
  var textDiv;
  var banner;
  var mult = 7;
  var txtHeight = 28;
  var timeOpen = 5000;
  var finalTop = 225;
  var iTimer;

	function load(){

		mainDiv = document.getElementById('ad');
		flashDiv = document.getElementById('adFlash');
		textDiv = document.getElementById('adText');
		banner = document.getElementById('banner');

		//move the div to the location desired
		mainDiv.style.top = '0px';

		mainDiv.style.display = 'inline';
		flashDiv.style.display = 'inline';

		//scroll the div down
		moveDown(0);

		//set the div to move back up
		iTimer = window.setTimeout("moveUp(-1);",timeOpen);

	}

	function openIt(iSize,iTop){

		flashDiv.style.height = iSize + 'px';

		iSize = mult + iSize;

		if(iSize<=parseInt(banner.height)){
			window.setTimeout('openIt(' + iSize + ')',1);
		} else {
			mainDiv.style.height = parseInt(banner.height) + "px";
		}

	}

	function close(iSize){

		if(parseInt(iSize)==-1){
			iSize = 94;
		}

		iSize = iSize - mult;

		mainDiv.style.height = iSize + 'px';
		flashDiv.style.height = iSize + 'px';

		if(iSize>txtHeight){
			window.setTimeout('close(' + iSize + ')',1);
		} else {

			mainDiv.style.height = txtHeight + "px";
			flashDiv.style.display = 'none';
			flashDiv.style.visibility = 'hidden';
			flashDiv.style.height = '20px';
			textDiv.style.display = 'inline';

		}

	}


	function moveDown(iSize){

		iSize = mult + iSize;

		mainDiv.style.top = iSize + 'px';

		if(iSize<=finalTop){
			window.setTimeout('moveDown(' + iSize + ')',1);
		} else {
			mainDiv.style.top = finalTop + "px";
			//scroll open the div
			//openIt(0);
		}

	}

	function moveUp(iSize){

		if(parseInt(iSize)==-1){
			iSize = finalTop;
		}

		mainDiv.style.top = iSize + 'px';

		iSize = iSize - mult;

		if(iSize>0){
			window.setTimeout('moveUp(' + iSize + ')',1);
		} else {
			mainDiv.style.top = "0px";
			//set the div to scroll close
			close(-1);
		}
	}

	function closeIt(){
		try{
			mainDiv.style.height = txtHeight + "px";
			mainDiv.style.top = "0px";
			flashDiv.style.display = 'none';
			textDiv.style.display = 'inline';
			window.clearTimeout(iTimer);
		} catch(ex){
			//do nothing
		}
	}

//-->