/* ================================================================ 
Developed and customized by: RLM Graphic Arts
Copyright (c) 2012 by RLM Graphic Arts - All Rights Reserved.
136 Manassas Dr, Manassas Park VA 20111 - www.rlmga.com
Customized for the Virginia Police Canine Association,
Used with permission from RLM Graphic Arts. 
=================================================================== */

// ONLY USE lowercase FOR ALL OPTIONS

// CHANGE ANY OF THESE VARIABLES TO "no" OR "yes" TO TURN AN OPTION OFF OR ON


var view_width 		= 650		// GALLERY POPUP WIDTH
var view_height 	= 475		// GALLERY POPUP HEIGHT
var viewer	 	= "no"		// yes/FULL SCREEN OR no/POPUP MODE


var close_button 	= "yes"		// GALLERY CLOSE BUTTON ON/OFF
var print_button 	= "yes"		// PRINT BUTTON ON/OFF
var scrollbarS 		= "0"		// TURN ON POPUP SCROLLBARS "1" FOR ON "0" FOR OFF


var background_colors	= "2D2D4A"	// BACKROUND COLOR OF THE GALLERY POPUP
var border_color	= "000000"	// PICTURE OUTLINE COLOR
var borderwidth		= "1"		// IMAGE BORDER WIDTH


var right_click_on	= "yes"						// RIGHT CLICK PROTECTION ON
var right_click_text	= "You may not right mouse click this page"	// TEXT FOR THE RIGHT CLICK PROTECTION


// YOU DO NOT NEED TO EDIT BELOW THIS LINE

// START POPUP CODE


function popUp(URL) {
day = new Date();
id = day.getTime();
   if (viewer == "no") {
day = new Date();
id = day.getTime();
var look='toolbar=0,scrollbars='+scrollbarS+',location=0,statusbar=0,menubar=0,resizable=1,width='+view_width+',height='+view_height+','
popwin=window.open("","",look)
}
else 
if (viewer == "yes") {
popwin=window.open("","")
}
popwin.document.open()
popwin.document.write('<html><head><title>VPCA</title>')
popwin.document.write('<link rel="StyleSheet" href="rlmga-2.css" type="text/css">')
   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(\''+right_click_text+'\')')
popwin.document.write('}')
popwin.document.write('}')
popwin.document.write('document.onmousedown=noRightClick')
popwin.document.write('</script>')
}
popwin.document.write('</head>')
popwin.document.write('<body bgcolor="#'+background_colors+'" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0">')
popwin.document.write('<TABLE cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td align="center">')
popwin.document.write('<TABLE cellpadding="0" cellspacing="0" border="'+borderwidth+'" bordercolor="#' + border_color + '" style="border-collapse:collapse"><tr><td>')
popwin.document.write('<img src="'+URL+'">')
popwin.document.write('</td></tr></table><br>')
popwin.document.write('</td></tr><tr><td valign="bottom" align="center" height="23">')
popwin.document.write('<TABLE cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td align="center">')
   if (close_button == "yes") {
popwin.document.write('<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>')
   if (print_button == "yes") {
popwin.document.write('</td><td align="center">')
}
}
   if (print_button == "yes") {

popwin.document.write('<form style="margin: 0px"><input type="button" value="&nbsp;Print&nbsp;" onClick=\'window.print()\' class="button-popups" onmouseover="this.className=\'buttonon-popups\'" onmouseout="this.className=\'button-popups\'"></form>')
}
popwin.document.write('</td></tr></table>')
popwin.document.write('</td></tr></table>')
popwin.document.write('</body></html>')
popwin.document.close()
}


