//---------------------------------------------------------------------------
// putWindow: put up a nice window with no menubar 
//---------------------------------------------------------------------------
function putWindow(file) 
{
	window.open(
		file,
		'',
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=700,left=20,top=20");
}

function showExample(dir, file) 
{
	window.open(
		"example." + dir + "/" + file + ".htm",
		'',
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=900,height=700,left=20,top=20");
}

//---------------------------------------------------------------------------
//  image rollovers 
//---------------------------------------------------------------------------
function pageLink(id, linkImage, linkPage)
{
	var elem = document.getElementById(id);
	elem.linkImage = linkImage;
	elem.linkPage = linkPage;
	elem.mainImage = elem.src;
	elem.style.cursor = 'pointer';
	
	elem.onmouseover = function () { this.src = this.linkImage; }
	elem.onmouseout  = function () { this.src = this.mainImage; }
	elem.onclick = function () { window.open(this.linkPage, '_self'); }
}
