
var popbackground="#129FC9" //specify backcolor or background image for pop window
var windowtitle="Mitglieder Guggemusig Hornfääger"  //pop window title

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

function jkpopimage(imgpath, popwidth, popheight, textdescription){

  popwidth+=20;
  popheight+=45;
  
  var winattributes='width='+popwidth+',height='+popheight+',resizable=yes'
  var bodyattribute=(popbackground.indexOf(".")!=-1)? 'background="'+popbackground+'"' : 'bgcolor="'+popbackground+'"'
  if (typeof jkpopwin=="undefined" || jkpopwin.closed)
    jkpopwin=window.open("","",winattributes)
  else
  {
    //getpos() //uncomment these 2 lines if you wish subsequent popups to be centered too
    //jkpopwin.moveTo(leftpos, toppos)
    jkpopwin.resizeTo(popwidth+30, popheight+30)
  }
  jkpopwin.document.open()
  jkpopwin.document.write('<html><head><title>'+windowtitle+'</title><link href="styles/hf.css" rel="stylesheet" type="text/css"></head><body '+bodyattribute+'><img src="'+imgpath+'"><br><div align="center">'+textdescription+'</div></body></html>')
  jkpopwin.document.close()
  jkpopwin.focus()
  
}