
function swap( name, img ) {
	if ( document.images )
		document.images[ name ].src = img.src;
}

var timer;

function fadeOut( obj ) {
	if ( document.all ) {
		clearInterval( timer );
		obj.filters.alpha.opacity=70;
	}
}

function fadeIn( obj ) {
	if ( document.all ) {
		theObj = obj;
		timer = setInterval("fade(theObj)",50)
	}
}

function fade( obj ) {
	if ( obj.filters.alpha.opacity < 100 )
		obj.filters.alpha.opacity += 5;
	else if ( window.timer )
		clearInterval( timer );
}

function openWindow( name, url, width, height, scroll ) {
	scroll = scroll ? "yes" : "no";
	var menuargs = "width=400,"
    + "height=455,"
	+ "scrollbars="+scroll+","
    + "location=no,"
    + "menubar=no,"
    + "resizable=no,"
    + "status=no,"
    + "titlebar=yes,"
    + "toolbar=no,"
    + "hotkeys=no,"
    + "screenx=20,"
    + "screeny=20,"
    + "left=20,"
    + "top=20";
	var winName = name;
	winName = window.open( url, winName, menuargs );
}