function popup(image,w,h)
{
      openWin("", "<HEAD><TITLE>© 2008 martinslights.com</TITLE><META HTTP-EQUIV='imagetoolbar' CONTENT='NO'></HEAD><BODY BGCOLOR='#404040' topmargin='0' leftmargin='2'><CENTER><TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0' WIDTH='100%' HEIGHT='100%' align='top'><TR><TD WIDTH='100%' ALIGN='CENTER'><IMG SRC="+image+" ALIGN='CENTER' BORDER='0' HSPACE='0' VSPACE=0></TD></TR></TABLE></CENTER>","width="+w+",height="+h,w,h);
}

function openWin(url, str, features,w,h)  // open popup window
  {

Left=(screen.width)?(screen.width-w)/2:100;
Top=(screen.height)?(screen.height-h)/2:100;
  popupWin = window.open(url, "gdImageViewer", features+",width="+w+",height="+h+",top="+Top+",left="+Left);
  if (str != "")
    {
    popupWin.resizeTo(w,h);
//    popupWin.moveTo(Left,Top);    
    popupWin.document.write(str);
popupWin.focus();
popupWin.document.close();
    }
  firstWin = false;  
  }

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


function titleBarType(txt) 
	{window.status = txt;setTimeout("titleBarErase()",2000);}

function titleBarErase()
	{window.status="";}