<!--

// COMPONENT: WINDOW STATE
// Allows for the creation of a pop-up window which can be positioned
// upon the screen by X and Y coordinates, sized by height and width,
// and be forced to moved to the top of all open windows when it is 
// updated (so as to ensure that it isn't hidden by another window).
//
// filename - name of HTML file to be opened in window
// name - name of window
// scroll - allow for scrolling (i.e. yes, no, auto)
// height & width - size of window
// left & top - location from top left corner of the screen
//
// Other Components Required: None.

// *** Component Start *** //

function windowstate(filename, name, scroll, width, height, left, top)
{
	windowops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + scroll + ",resizable=no,copyhistory=yes,alwaysRaised=yes,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + "'");

	newWindow = window.open(filename, name, windowops);
	newWindow.focus();
	return;
}                

// *** Component End *** //


// COMPONENT: menu roll over

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		menu_active = newImage("img/menu_active.gif");
		menu_over = newImage("img/menu_over.gif");
		preloadFlag = true;
	}
}
// *** Component End *** //
// -->
