// JavaScript Document
function mo_show( idNum ){
	document.getElementById(idNum).style.visibility = "visible";
	//document.getElementById(idNum).style.color = "#c60";
}
/*
function mo_out( idNum ){
	document.getElementById(idNum).style.color = "#c60";
}
*/

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function newWindow(docURL, width, height){
	if(! height )
		popupWindow = window.open (docURL,'myPopup','width=500,height=500,scrollbars=yes,menubar=no')
	else
		popupWindow = window.open (docURL, 'myPopup','width='+width+',height='+height+',scrollbars=yes,menubar=no')
	popupWindow.focus()
}

function newImgCredits(contents,width,height)
{
var header = '\
<head><title>Image Credits</title>\
<link rel="stylesheet" href="../CSS/popup.css">\
</head>\
<body marginwidth=0 marginheight=0>\
<table cellpadding=0 cellspacing=0 border=0 width='+width+' height='+height+'>\
 <tr>\
  <td height='+(height-16)+' width="100%" valign=middle>\
';
var footer = '\
  </td>\
 </tr>\
 <tr>\
  <td align=center valign=bottom height=16>\
   <b><a href="javascript:close();">[close]</a></b>\
  </td>\
 </tr>\
</table>\
</body>\
';
var windowOptions = 'left=200,top=200,';
if( width!='100%' )	 windowOptions+='width='+width+',';
if( height!='100%' ) windowOptions+='height='+(height+16)+',';

obj=window.open("","",windowOptions)
obj.document.open()
obj.document.write(header+contents+footer)
obj.document.close()
}

function newWindowSized(title,contents,width,height)
{
var header = '\
<head><title>'+title+'</title>\
<link rel="stylesheet" href="../CSS/popup.css">\
</head>\
<body marginwidth=0 marginheight=0>\
<table cellpadding=0 cellspacing=0 border=0 width='+width+' height='+height+'>\
 <tr>\
  <td height='+(height-16)+' width="100%" valign=middle>\
';
var footer = '\
  </td>\
 </tr>\
 <tr>\
  <td align=center valign=bottom height=16>\
   <b><a href="javascript:close();">[close]</a></b>\
  </td>\
 </tr>\
</table>\
</body>\
';
var windowOptions = 'left=20,top=20,';
if( width!='100%' )	 windowOptions+='width='+width+',';
if( height!='100%' ) windowOptions+='height='+(height+16)+',';

obj=window.open("","",windowOptions)
obj.document.open()
obj.document.write(header+contents+footer)
obj.document.close()
}