// JavaScript Document

function openImg(imgURL, name, title, features, width, height)
{
	var openWin=window.open("", name, 'scrollbars=no,width='+width+',height='+height+','+features);
	openWin.document.open();
	openWin.document.write("<html>\n<head>\n<title>"+title+"</title>\n<style type=\"text/css\">\nbody {margin:0}\n</style>\n</head>\n<body>\n");
	switch (imgURL.substr(imgURL.lastIndexOf(".")+1).toLowerCase())
	{
		case "jpg":
		case "gif":
		case "png":
			openWin.document.write("<img src=\""+ imgURL +"\" width=\""+ width +"\" height=\""+ height +"\" alt=\"\" border=\"0\">");
			break;
		case "swf":
			openWin.document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"1\" height=\"1\" style=\"display: none;\"><param name=\"movie\" value=\"../include/d.swf\" /></object><object type=\"application/x-shockwave-flash\" width=\""+ width +"\" height=\""+ height +"\" data=\"../include/l.swf?m="+ imgURL +"\"><param name=\"movie\" value=\"../include/l.swf?m="+ imgURL +"\" /></object>");
			break;
	}
	openWin.document.write("</body></html>");
	openWin.document.write();
	openWin.document.close();
	openWin.focus();
}