// <!--

var newWin = null;

var siteWin = null;

function launchSiteWin(URL, windowName, windowWidth, windowHeight, scrollbars, xOffset, yOffset)
{
	var xPosition = 600; 
	var yPosition = 300;
	
    if ((parseInt(navigator.appVersion) >= 4 )) {
        xPosition = (screen.width - windowWidth) - 32;
        yPosition = ((screen.height / 2) - windowHeight) + 46;
    }
	
	if (!scrollbars) var scrollbars = 0;
	
    var args = "width=" + windowWidth + ","
	    	+ "height=" + windowHeight + ","
	    	+ "location=0,"
		    + "menubar=0,"
		    + "scrollbars=" + scrollbars + ","
		    + "status=0,"
		    + "titlebar=0,"
		    + "hotkeys=0,"
		    + "screenx=" + xPosition + ","  // NN Only
		    + "screeny=" + yPosition + ","  // NN Only
		    + "left=" + xPosition + ","     // IE Only
		    + "top=" + yPosition;           // IE Only
		
	if (siteWin != null && !siteWin.closed) {
		siteWin.close();
	}
	siteWin = window.open(URL, windowName, args);
	
	siteWin.focus();
}

function noReload()
{
	
}


function swapImg(imgName, imgPath, msg) // rollover script
{
	if (document.images) {
		if ((document.layers) && (!validateArg(document.images[imgName]))) {
			var obj = parseLayers(document, imgName, 'images');
			obj.src = imgPath;
		}
		else {
			if (document.images[imgName]) {
				document.images[imgName].src = imgPath;
			}
		}
		window.status = msg;
	}
}

// functions for collapsible sections
function expandArea(obj)
{
var el = document.getElementById(obj);

if (el)
{
el.style.overflow = 'visible';
el.style.height = '100%';
}
}

function collapseArea(obj)
{
var el = document.getElementById(obj);

if (el)
{
el.style.overflow = 'hidden';
el.style.height = '0px';
}
}

function switchMenu(obj)
{
var el = document.getElementById(obj);

if (el)
{
if (el.style.visibility != "hidden")
{
el.style.visibility = 'hidden';
el.style.height = '0px';
}
else {
el.style.visibility = 'visible';
el.style.height = '50px';
}
}
}

function expandLocationArea(obj)
{
var el = document.getElementById(obj);

if (el)
{
el.style.visibility = 'visible';
el.style.height = '100%';
}
}

function toggle(id)
{
	var e = document.getElementById(id);
	if (e) e.style.display = (e.style.display == "block") ? 'none' : 'block';
}

 // -->