<!--
//globals
function fnHover(vLink,vState)
{
	var vLinkObj = document.getElementById(vLink)
	vLinkObj.className = "arrow" + vState
}



function openLink(formNo,vType)
{
	var newIndex = document.forms[ formNo ].drop.selectedIndex;

	if ( newIndex == 0 )
	{

		alert( "Please select an option" );
	}
	else
	{
		var cururl = document.forms[ formNo ].drop.options[ newIndex ].value

		switch(vType)
		{
			case "int":
				window.location = cururl;
			break

			case "ext":
				fnAirlock(cururl)
			break

			case "popup":
				openWin(cururl,780,570)
			break

			default:
				window.location = cururl
			break
		}
	}
}


function trackLink(formNo,vType, title)
{
	var newIndex = document.forms[ formNo ].drop.selectedIndex;

	if ( newIndex == 0 )
	{

		// alert( "Please select an option" );
	}
	else
	{
		var cururl = document.forms[ formNo ].drop.options[ newIndex ].value

		switch(vType)
		{
			case "int":
				dcsMultiTrack('DCS.dcsuri',cururl, 'WT.ti', title);
				break;

			case "ext":
				dcsMultiTrack('DCS.dcsuri',cururl, 'WT.ti', title);
				break;

			case "popup":
				dcsMultiTrack('DCS.dcsuri',cururl, 'WT.ti', title);
				break;

			default:
				break;
		}
	}
}



function popUp(filePath)
{
var iHeight = "768"
var iWidth = "1024"
var vAttributes = "scrollbars=yes,resizable=yes"
var sScreenX = screen.width
var sScreenY = screen.height
var x = sScreenX - iWidth
var y = sScreenY - iHeight
var winLeft = x/2
var winTop =  y/2
window.open(filePath,"legals","width=" + iWidth + ",height=" + iHeight + "," + vAttributes + ",left=" + winLeft + ",top=" + winTop)
}

function fnPopUp(filePath)
{
var iHeight = "605"
var iWidth = "820"
var vAttributes = "scrollbars=yes,resizable=yes"
var sScreenX = screen.width
var sScreenY = screen.height
var x = sScreenX - iWidth
var y = sScreenY - iHeight
var winLeft = x/2
var winTop =  y/2
window.open(filePath,"legals","width=" + iWidth + ",height=" + iHeight + "," + vAttributes + ",left=" + winLeft + ",top=" + winTop)
}

function cnPopUp(filePath)
{
var iHeight = "340"
var iWidth = "470"
var vAttributes = "scrollbars=no,resizable=yes"
var sScreenX = screen.width
var sScreenY = screen.height
var x = sScreenX - iWidth
var y = sScreenY - iHeight
var winLeft = x/2
var winTop =  y/2
window.open(filePath,"legals","width=" + iWidth + ",height=" + iHeight + "," + vAttributes + ",left=" + winLeft + ",top=" + winTop)
}

function fnAirlock(vLoc)
{
var iHeight = "340"
var iWidth = "470"
var vAttributes = "scrollbars=yes,resizable=yes"
var sScreenX = screen.width
var sScreenY = screen.height
var x = sScreenX - iWidth
var y = sScreenY - iHeight
var winLeft = x/2
var winTop =  y/2
var filePath = "airlock.htm?url=" + vLoc

window.open(filePath,"airlock","width=" + iWidth + ",height=" + iHeight + "," + vAttributes + ",left=" + winLeft + ",top=" + winTop)
}


function fnShopAirlock(vLoc)
{
var iHeight = "340"
var iWidth = "470"
var vAttributes = "scrollbars=yes,resizable=yes"
var sScreenX = screen.width
var sScreenY = screen.height
var x = sScreenX - iWidth
var y = sScreenY - iHeight
var winLeft = x/2
var winTop =  y/2
var filePath = "shop_airlock.htm?url=" + vLoc

window.open(filePath,"airlock","width=" + iWidth + ",height=" + iHeight + "," + vAttributes + ",left=" + winLeft + ",top=" + winTop)
}


function openAirlock()
{

	fullUrl = location.search.substr(1)
	iStartPoint = fullUrl.indexOf("=") + 1
	useUrl = fullUrl.substring(iStartPoint,fullUrl.length)

	//if (window.opener && !window.opener.closed)
	//{
	//	window.opener.location.href = useUrl;
	//}

	var iHeight = "560"
	var iWidth = "780"
	var sScreenX = screen.width
	var sScreenY = screen.height
	var x = sScreenX - iWidth
	var y = sScreenY - iHeight
	var winLeft = x/2
	var winTop =  y/2

	window.open(useUrl,"external","width=" + iWidth + ",height=" + iHeight + ",toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes,left=" + winLeft + ",top=" + winTop)

	window.close();
}

function openLargeAirlock()
{

	fullUrl = location.search.substr(1)
	iStartPoint = fullUrl.indexOf("=") + 1
	useUrl = fullUrl.substring(iStartPoint,fullUrl.length)

	//if (window.opener && !window.opener.closed)
	//{
	//	window.opener.location.href = useUrl;
	//}

	var iHeight = "760"
	var iWidth = "1010"
	var sScreenX = screen.width
	var sScreenY = screen.height
	var x = sScreenX - iWidth
	var y = sScreenY - iHeight
	var winLeft = x/2
	var winTop =  y/2

	window.open(useUrl,"external","width=" + iWidth + ",height=" + iHeight + ",toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes,left=" + winLeft + ",top=" + winTop)

	window.close();
}

function openWin(vLocation,iWidth,iHeight,noScroll,noResize)
{
	var vAttributes = ""
	if(noScroll != true) vAttributes += "scrollbars=yes"
	else vAttributes += "scrollbars=no"

	if(noResize != true) vAttributes += ",resizable=yes"
	vAttributes += ",resizable=no"

	var sScreenX = screen.width
	var sScreenY = screen.height
	var x = sScreenX - iWidth
	var y = sScreenY - iHeight
	var winLeft = x/2
	var winTop =  y/2

	window.open(vLocation,"popup","width=" + iWidth + ",height=" + iHeight + "," + vAttributes + ",left=" + winLeft + ",top=" + winTop)
}

//-->
