<!--
var popbackground="white" 
var windowtitle="Jones Brothers Image Viewer" 

function detectexist(obj){
return (typeof obj !="undefined")
}

function jbmpopimage(imgpath, popwidth, popheight){

function getpos(){
leftpos=(detectexist(window.screenLeft))? screenLeft+document.body.clientWidth/2-popwidth/2 : detectexist(window.screenX)? screenX+innerWidth/2-popwidth/2 : 0
toppos=(detectexist(window.screenTop))? screenTop+document.body.clientHeight/2-popheight/2 : detectexist(window.screenY)? screenY+innerHeight/2-popheight/2 : 0
if (window.opera){ leftpos-=screenLeft 
                   toppos-=screenTop 
                 }
}

getpos()
var winattributes='width='+popwidth+',height='+popheight+',resizable=yes,left='+leftpos+',top='+toppos
var bodyattribute=(popbackground.indexOf(".")!=-1)? 'background="'+popbackground+'"' : 'bgcolor="'+popbackground+'"'
if (typeof jbmpopwin=="undefined" || jbmpopwin.closed) jbmpopwin=window.open("","",winattributes)
else {jbmpopwin.resizeTo(popwidth, popheight+100)}

jbmpopwin.document.open()
jbmpopwin.document.write('<html><title>'+windowtitle+'</title><body '+bodyattribute+'><a href="javascript:window.close();"><img src="assets/btn_close.gif" width="95" vspace="5" alt="Close window" hspace="0" height="20" border="0" /></a><p><img src="'+imgpath+'" style="margin-bottom: 0.5em"><p></body></html>')
jbmpopwin.document.close()
jbmpopwin.focus()
}

//-->