<!-- Begin POP-UP SIZES AND OPTIONS CODE

// ONLY USE lowercase FOR ALL OPTIONS
// CHANGE ANY OF THESE VARIABLES TO "no" OR "yes" TO TURN AN OPTION OFF OR ON

var window_title      = "Pop Up Example" // WINDOW TITLE
var image_caption     = ""               // EDITABLE CAPTION
var view_width_P      = 535              // GALLERY POPUP WIDTH
var view_height_P     = 700              // GALLERY POPUP HEIGHT
var view_width_L      = 710              // GALLERY POPUP WIDTH
var view_height_L     = 550              // GALLERY POPUP HEIGHT
var close_button      = "yes"            // GALLERY CLOSE BUTTON ON/OFF
var scrollbarS        = "0"              // TURN ON POPUP SCROLLBARS "1" FOR ON "0" FOR OFF
var background_colors = "990000"         // BACKROUND COLOR OF THE GALLERY POPUP
border_color          = "000000"         // PICTURE OUTLINE COLOR
right_click_on        = "yes"            // RIGHT CLICK PROTECTION ON

function popUp(URL,view_width,view_height,image_caption) {
view_width  = view_width + 15
view_height = view_height + 85
screen_width = screen.width
screen_height = screen.height
my_left = (screen_width - view_width) / 2
my_top = (screen_height - view_height) / 2
var look='toolbar=0,scrollbars='+scrollbarS+',location=0,statusbar=0,menubar=0,resizable=0,width='+view_width+',height='+view_height+',screenX='+my_left+',screenY='+my_top+',left='+my_left+',top='+my_top+''
popwin=window.open("","",look)
popwin.document.open()
popwin.document.write('<html><head><title>'+window_title+'</title>')
if (right_click_on == "yes")
{
popwin.document.write('<META HTTP-EQUIV="imagetoolbar" CONTENT="no">')
popwin.document.write('<script language="JavaScript">')
popwin.document.write('function noRightClick() {')
popwin.document.write('if (event.button==2) {')
popwin.document.write('alert(\'You may not right mouse click this page.\')')
popwin.document.write('}')
popwin.document.write('}')
popwin.document.write('document.onmousedown=noRightClick')
popwin.document.write('</script>')
}
popwin.document.write('</head>')
popwin.document.write('<body background="Images/stripedbkg.gif" bgcolor="#990000" leftmargin=0 rightmargin=0 topmargin=10 bottommargin=0 marginheight=10 marginwidth=0>')
popwin.document.write('<TABLE cellpadding=2 cellspacing=0 border=0 width="100%" height="100%" >')
popwin.document.write('<tr><td align="center" valign="top"><img src="'+URL+'"></td></tr>')
popwin.document.write('<tr><td align="center"><b>'+image_caption+'</b>')
if (close_button == "yes") {
popwin.document.write('</td></tr><tr><td valign="bottom" align="center">')
popwin.document.write('<br><form style="margin: 0px"><input type="button" value="Close" onClick=\'self.close()\' onmouseover="this.className=\'buttonon-popups\'" onmouseout="this.className=\'button-popups\'" class="button-popups"></form>')
}
popwin.document.write('<br></td></tr></table>')
popwin.document.write('</body>')
popwin.document.close()
}

// START SMALL MESSAGES
document.write('<div Class="divstyle" id="info" style=\'display:none;\'>')
document.write('<div id="imagetitle" class="pstyletitle" align="center"></div>')
document.write('</div>')
<!-- Begin SMALL MESSAGES
var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0
var tempY = 0
function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
obj_info = document.getElementById("info")
obj_info.style.top = tempY + 10;
obj_info.style.left = tempX + 10;
  return true
}
function alert_msg(titletext){
obj_info = document.getElementById("info")
obj_info.style.display = '';
obj_imagetitle = document.getElementById("imagetitle");
obj_imagetitle.innerHTML = titletext;
}
function away()
{
obj_info = document.getElementById("info")
obj_info.style.display = 'none';
}
function goToURL() { history.go(-1); }
//  End -->
