if( typeof XSEEDING == "undefined" ) {
	XSEEDING = {};
};

if( typeof XSEEDING.widget == "undefined" ) {
	XSEEDING.widget = {};
};

XSEEDING.widget.ImagePopup = function() {
	this.multiplier = 	( navigator.appName != "Netscape" ) ? 1.3 : 1.2;
	this.html		= 	"<html>" + 
						"<head>" +
						"	<title>Enlarged Image</title>" + 
						"	<style>" + 
						"		html, body { " +
						"			background:		#000000; " +
						"			height:			100%; " +
						"			margin:			0px; " + 
						"			text-align:		center; " + 
						"			width:			100%; " +
						"		} " +
						"		table { " +
						"			height:			100%; " +
						"			width:			100%; " +
						"		} " +
						"	</style>" +
						"</head>" +
						"<body>" + 
						"	<table>" +
						"		<tr>" +
						"			<td valig=\"center\" align=\"center\">" +
						"				<img src=\"[IMAGE]\" border=\"0\" name=\"image\" onload=\"window.resizeTo(document.image.width*1.15,(document.image.height*"+ this.multiplier + "))\" />" + 
						"			</td>" +
						"		</tr>" +
						"	</table>" +
						"</body> " + 
						"</html>";
};

XSEEDING.widget.ImagePopup.prototype.open = function( img ) {
	var html = this.html.replace("[IMAGE]", img );
	this.popup = window.open ('','image','width=580, height=580, toolbar=0,location=0, directories=0,menuBar=0, scrollbars=0,resizable=1'); 
	this.popup.document.open(); 
	this.popup.document.write(html); 
	this.popup.document.close() 
};