function GPix(gallery,img_num,width,height) {

  var product= new Array()
  product["copper"] = 'Custom Copper Work'
  product["ClickLock"] = 'ClickLock Aluminum Standing Seam'
  product["Natural_Cedar_"] = '“Natural Cedar” Shingle'
  product["Oxford"] = 'Oxford “Slate”'
  product["Rustic"] = 'Rustic “Shake”'
  product["IB"] = 'IB Flat / Low Pitch Roof System'
	product["Oxford_SS"] = 'Combination: Oxford “Slate” + ClickLock Aluminum Standing Seam'

  var winname = gallery + img_num
  win_width = width + 40
  win_height = height + 58
  var specs = "width=" + win_width + ",height=" + win_height + ",status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,location=no,screenX=100,screenY=50,left=100,top=10"
  var GWindow = window.open("", winname, specs)

  var image_name = gallery + img_num
	if (gallery == "Oxford_SS") image_name = 'Oxford' + img_num

  var page = "<html><head><title>Classic Metal Roofs, LLC :: 866-660-6668 (toll free)</title><link rel='stylesheet' href='style.css' type='text/css' /></head><body bgcolor='#eeeeee' style='text-align: center; margin: 0 0 2px 0; padding: 0'><h3 class='galhead'>" + product[gallery] + "</h3><img src='gallery/" + image_name + ".jpg' style='border: 1px solid #666' /><div style='margin-top: 5px'><a href='' title=' Close Window ' onMouseOver='img1.src=\"images/close-window.gif\"' onMouseOut='img1.src=\"images/logo_tiny.gif\"'><img src='images/logo_tiny.gif' border='1' name='img1' onClick='window.close()' /></a></div></body></html>"
  GWindow.document.open()
  GWindow.document.write(page)
  GWindow.document.close()

}
