function OpenPic(url,wide,high)
		{
		var winwide = wide + 10;
		var winhigh = high + 40;
		var win = window.open("", "win", 'width=' + winwide + ',height=' + winhigh); // a window object
		with (win.document) {
  			open("text/html", "replace");
			writeln("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"");
 			writeln("\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">");
  			writeln("<html>");
			writeln("<head>");
			writeln("<title>Pic Viewer</title>");
			writeln("<style type=\"text/css\">");
			writeln("<!--");
			writeln("body {color: #fff; background: #369; text-align: right; margin: 0; padding: .3em;} h1.top {text-align: right; font: 8pt Arial, Helvetica, sans-serif; margin: 0; padding: 0 .2em 0 0; display: inline; border-top: 1px solid #fff; border-right: 1px solid #fff;}");
			writeln("-->");
			writeln("</style>");
			writeln("</head>");
			writeln("<body>");
			writeln("<h1 class=\"top\">r-dub.us Pic Viewer :: Click the picture to close this window</h1>");
			writeln("<a href=\"javascript:self.close()\" title=\"\">");
			writeln("<img src=\"" + url + "\" border=\"0\" width=\"" + wide + "\" height=\"" + high + "\" title=\"Click me to close this window\" alt=\"\"/></a>");
			writeln("</body>");
			writeln("</html>");
  			close();
		}
		}
		
function toggle_display(object)
{
  if (document.all) {
     if (document.all[object].style.display == "none") {
        document.all[object].style.display = "block" ;
     } else {
        document.all[object].style.display = "none" ;
     }
  } else
  if (document.getElementById) {
     if (document.getElementById(object).style.display == "none") {
        document.getElementById(object).style.display = "block" ;
     } else {
        document.getElementById(object).style.display = "none" ;
     }
  }

} 
function spin( obj )
{
  var spinner = document.getElementById( obj );
  var spinner_content = document.getElementById( obj+"_body" );
  if ( spinner_content.style.visibility == 'visible' )
  {
    spinner.innerHTML = 'open';
    spinner_content.style.visibility = 'hidden';
    spinner_content.style.height = '0px';
    spinner_content.style.margin = '0px';
		spinner_content.style.display = 'none';
  }
  else
  {
    spinner.innerHTML = 'close';
    spinner_content.style.visibility = 'visible';
    spinner_content.style.height = 'auto';
    spinner_content.style.margin = '.3em 1em';
		spinner_content.style.display = 'block';
  }
}