/******************************************************************

	DarkShell JavaScript File
	
	File: darkshell.js
	
	Description: utilities & stuff
	
	Created: Sh 'Riff, December 06, 2002
	Copyright 1999-2003 Blessed Darkness, Inc.
	
******************************************************************/
<!--
/********************************
*	Popup window		*
********************************/

function openWindow(url, type, set_id, item_id) {
	if (type == "comlink") {
		var settings = "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=400, height=240";
		var newWindow = window.open(url, "comlink", settings);
	}
	if (type == "honour") {
		var settings = "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=400, height=280";
		var newWindow = window.open(url, "honour_" + set_id + "_" + item_id, settings);
		var stuff = "<HTML><HEAD><TITLE>" + honoursSet[set_id][item_id][0] + "</TITLE>";
		stuff += "<LINK href='" + css_url + "' rel='STYLESHEET' type='text/css'></HEAD>";
		stuff += "<BODY leftMargin=0 topMargin=0 bgcolor=#000000 text=#FFFFFF>";
		stuff += "<TABLE border=0 cellPadding=5 cellSpacing=0 width=100% height=100%><TR><TD>";
		stuff += "<TABLE border=0 cellPadding=5 cellSpacing=0 width=100% height=100%><TR>";
		stuff += "<TD rowSpan=2 width=50% align=center class=thinborder>";
		stuff += "<IMG src='" + honoursSet[set_id][item_id][2] + "' width=" + honoursSet[set_id][item_id][3] + " height=" + honoursSet[set_id][item_id][4] + " alt='[ " + honoursSet[set_id][item_id][0] + " ]'></TD>";
		stuff += "<TD rowSpan=2 width=5></TD>";
		stuff += "<TD width=50% height=100% vAlign=top class=holoprojector><P align=justify>&nbsp; " + honoursSet[set_id][item_id][1] + "</P></TD>";
		stuff += "</TR><TR><TD align=right vAlign=bottom id=noflash><A href='javascript:self.close()'>&#149;&nbsp;&nbsp;Close window</A></TD>";
		stuff += "</TR></TABLE></TD></TR></TABLE></BODY></HTML>";
		newWindow.document.write(stuff);
	}
}

//-->