/* -----------------------------------------------
   Streaming banners, vertical - v.1.2
   (c) 2006 www.haan.net
   contact: info@haan.net
   You may use this script but please leave the credits on top intact.
   Please inform us of any improvements made.
   When usefull we will add your credits.
  ------------------------------------------------ */
<!--
// 1.2 added stop and start function for onmouseover and onmouseout
/* usage
<html>
<head>
<script type="text/javascript">
window.onload = function()
{
	startStreaming();
}
</script>
</head>
<body>
<div id="slideCont" style="position:relative;z-index:1;width:140px;left:0px;overflow:hidden;"> 
	<div id="slideA" style="position:absolute;z-index:1;top:0px;left:0px;width:140px;overflow:hidden;"> 
		your banners (images inside anchor tags)
		<div id="slideB" style="position:relative;z-index:1;top:0px;left:0px;width:140px;overflow:hidden;">  
			your banners (images inside anchor tags)
		</div>
	</div>
</div>
</body>
</html>

In order the have the script working in FireFox as well you need a proper "DTD" to prevent the browser's "quirksmode".

Please see http://www.quirksmode.nl/ for more details.

Or in case you experience problems, copy and paste next line on top of your webpage:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

*/

function startStreaming()
{
	// width of the banner container
	var contWidth = 140;
	// height of the banner container
	var contHeight = 415;
	var timeoutID = null;
	var id1 = document.getElementById('slideA');
	var id2 = document.getElementById('slideB');
	var height = id1.offsetHeight;
	
	id1.style.top = parseInt(id1.style.top)-1 + 'px';
	
	var cont = document.getElementById('slideCont');
	cont.style.height = contHeight + "px";
	cont.style.clip = 'rect(auto,'+ contWidth +'px,' + contHeight +'px,auto)';
	id2.style.display = '';
	if(parseFloat(id1.style.top) == -(height/2))
	{
		id1.style.top = '0px';
	}

	var cont = document.getElementById('slideCont');
	cont.onmouseover = function()
	{
		clearTimeout(timeoutID);
	}
	cont.onmouseout = function()
	{
		timeoutID = setTimeout(startStreaming,40);
	}
	timeoutID = setTimeout(startStreaming,40)
}
//-->

