var msg;

function popup(ImgName, Target, W, H, Title)
{

	if (msg)
	{
		if (!msg.closed) msg.close();
	}

	var imgHref;

	if (typeof(ImgName) == 'string')
		imgHref = ImgName;
	else
		imgHref = ImgName.href;

	msg = window.open("",Target, "toolbar=no,directories=no,scrollbars=no,status=no,resizable=yes,menu=no,width=" + W + ",height=" + H);

	msg.document.writeln("<HTML>");
	msg.document.writeln("<HEAD>");
	msg.document.writeln("<TITLE>" + Title + "</TITLE>");
	msg.document.writeln("<LINK REL='STYLESHEET' TYPE='text/css' HREF='../picture.css' TITLE='Picture CSS'>");
	msg.document.writeln("</HEAD>");
	msg.document.writeln("<STYLE><!-- @import url(../picture.css); --></STYLE>");
	msg.document.writeln("<BODY>");
	msg.document.writeln("<P><IMG SRC='" + imgHref + "' WIDTH='" + W + "' HEIGHT='" + H  + "' + 'Border = 0'></P>");
	msg.document.writeln("</BODY></HTML>");
	msg.document.close();
	msg.moveTo(20, 20);

	return false;

}

function email()
{

	window.location.href = String.fromCharCode(109,97,105,108,116,111,58,116,46,118,97,103,111,64,119,111,114,108,100,110,101,116,46,97,116,116,46,110,101,116);

}

// Break out of any existing frames
if (top.location != location) top.location.href = document.location.href;

// Determine browser version
Browser = navigator.appName.substring(0,9);
Version = navigator.appVersion;
if((Browser == 'Microsoft') && (Version.indexOf('MSIExplorer') != -1))
	Version = Version.substring(Version.indexOf('MSIExplorer')+5);
Version = Version.substring(0,1);

