
var linktarget   = ''
var screenwidth  = 800		
var screenheight = 600	
var imagewidth  = 97
var imgheight = 97
var superhighway  = 50
var faderange    = 50
var initialpause = 1;	
var imgsrc       = '../images/rock.gif'

var isie, isnav, toppos, droptime, iephase
isnav = (navigator.appName.indexOf( "Netscape" ) >= 0)
isie5 = (navigator.userAgent.indexOf( "MSIE 5" ) >= 0)

	
if( !isnav || (navigator.userAgent.indexOf( "Mozilla/3" ) < 0) )
{
	if( isnav )
	{
		document.write( '<layer WIDTH="' + imagewidth + '" HEIGHT="' + imgheight +'" ID="super" VISIBILITY="hide" Z-INDEX="1">' )
// document.write( '<A HREF="' + linktarget + '" target="_top" onmouseover="window.status=\'\';return true;">' )
		document.write( '<dd><img SRC="' + imgsrc + '" WIDTH="' + imagewidth + '" HEIGHT="' + imgheight + '" BORDER="0" ALT></a></dd>' )
		document.write( '</layer>' )
	}
	else {
		screenwidth  = document.body.clientWidth - 20;
		screenheight = document.body.clientHeight - 20;

document.write( '<div ID="super" STYLE="position:absolute;left:0;top:0;width:' + imagewidth + ';height:' + imgheight )
document.write( ';visibility:hidden;overflow:ignore;clip:rect(0px '+screenwidth+'px '+screenheight+'px 0px);filter:alpha(opacity=100)"><a ' )
// document.write( 'HREF="' + linktarget + '" target="_top" onmouseover="window.status=\'\';return true;">' )
document.write( '<dd><img SRC="' + imgsrc + '" WIDTH="' + imagewidth + '" HEIGHT="' + imgheight + '" BORDER="0" ALT></a></dd>' )
document.write( '</div>' )
	}
	setTimeout( 'Dropdown()', initialpause );
}

function Dropdown()
{
	var styles

	styles = isnav ? document['super'] : document.all['super'].style

	styles.left = Math.random() * (screenwidth - imagewidth)
	styles.visibility = 'visible'
	droptime = new Date()
	iephase = 0;
	Seperhighways()
}
function Seperhighways()
{
	var styles, filters, toppos, currtime, cliprect

	styles = isnav ? document['super'] : document.all['super'].style
	filters = isie5 ? document.all['super'].filters : null
	currtime = new Date()
	toppos = -imgheight + (currtime - droptime) / superhighway

	styles.top = toppos

	if( toppos > (screenheight - imgheight) )
	{
		setTimeout( 'Dropdown()', Math.random() * 5000 )
		styles.visibility = 'hidden'
		return;
	}

	if( isie5 && (iephase == 0) )
	{
		if( (toppos + imgheight) < faderange )
			filters.alpha.opacity = (100 * (toppos + imgheight)) / faderange
		else {
			filters.alpha.opacity = 100;
			iephase = 1;
		}
	}
	else if( isie5 && (iephase == 1) && (toppos > (screenheight - imgheight - faderange)) )
		filters.alpha.opacity = (100 * (screenheight - imgheight - toppos)) / faderange;

	setTimeout( 'Seperhighways()', 70 );
}

