/*  sshot.js  Screen Shots - Robert Smith  */


function OverIt(txt)
{
	if (txt=="") self.status=""; else
		self.status = "Click to enlarge: "+txt;
	return true;
}

function showpic(name,width,height,caption)
{
	self.status=caption;
	var w = window.open('','enlarge_window','width='+(width+20)+',height='+(height+44)+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,center=1');
	w.document.open;
	w.document.clear;
	w.document.write('<html><head><link rel="stylesheet" href="winoke.css"><title>Full-Size View: '+caption+'</title></head><body leftmargin=0 topmargin=0 bgcolor="#3E587E"><table border=0 cellpadding=0 cellspacing=0 width=100% height=100%>');
	w.document.write('<tr><td colspan=3></td></tr><tr><td></td>');
	w.document.write('<td width='+width+' height='+height+'><img src="sshots/'+name+'.gif" width='+width+' height='+height+' alt="'+caption+'"></td><td></td></tr>');
	w.document.write('<tr><td colspan=3 height=2><img src="spacer.gif" width=1 height=2></td></tr>');
	w.document.write('<tr><td colspan=3 class="content-text-strong-1" height=10><font color="white"><center>'+caption+'</center></font></td></tr>');
	w.document.write('<tr><td colspan=3></td></tr></table></body></html>');
	w.document.close;
}

function AddScreenShot(name,width,height,bigw,bigh,caption,align)
{
	var link = "<a href=\"Javascript:showpic('"+name+"',"+bigw+","+bigh+",'"+caption+"')\" OnMouseOver=\"return OverIt('"+caption+"');\" OnMouseOut=\"return OverIt('');\" class=\"content-text-link\">";
	document.write('<table border=0 cellpadding=0 cellspacing=4');
	if (align!="") document.write(' align='+align);
	document.write('><tr><td>'+link+'<img src="sshots/'+name+'_t.gif" width='+width+' height='+height+' alt="'+caption+' - Click to enlarge..." border=0></a>');
	document.write('</td></tr><tr><td class="content-text-weak-1"><center>'+link+caption+'</a></center></td></tr></table>');
}
