//-------------------------------------
// show a new window with an image
//-------------------------------------
function showImageWindow(width, height, filename) {
	var imageCount = 1;

	if (showImageWindow.arguments.length > 3) {
		height+=40;
	}
	imgWindow = window.open('','','toolbar=no, directories=no, location=no, status=no, menubar=no, resizable=no, scrollbars=no, width='+width+', height='+height);

	imgWindow.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
	imgWindow.document.write('<html><head>');
	imgWindow.document.write('<style type="text/css">.nav{position:absolute; bottom:10px;left:20px;font-family: Arial;font-size: 13px;color:#999999;}a{font-family: Arial;font-size: 13px;color:#999999;margin:10px;font-weight:bold;text-decoration: none;}a:hover{text-decoration: underline;}</style>');
	imgWindow.document.write('</head><body><center>');
	imgWindow.document.write('<img id="imgContent" src="'+filename+'">');

	if (showImageWindow.arguments.length > 3) {
		imgWindow.document.write('<div class="nav">View images: <a style="left:20px;" href="" onClick="imgContent.src=\''+filename+'\';return false;">'+imageCount+'</a>');
		imageCount++;

		for (i=3; i<showImageWindow.arguments.length; i++) {
			left = (i-1)*20;
			imgWindow.document.write('<a  style="left:'+left+'px;" href="" onClick="imgContent.src=\''+showImageWindow.arguments[i]+'\';return false;">'+imageCount+'</a>');
			imageCount++;
		}
		imgWindow.document.write('</div>');
	}
	imgWindow.document.write('</center></body></html>');
}


//-------------------------------------
function genericWindow(name){
    var FileName
    FileName = 'ultimate_' + name + '.html';
    movieWindow = window.open(FileName, 'movieWin',"width=450,height=450,resizable=no,screenX=20,left=20,screenY=20,top=20,scrollbars=no,menubar=no");
}