// Close-up with dynamic width/height of image
var viewer = "yes";
var popup_window = "";
var scrollbars = "0";
var right_click_on = "yes";
var right_click_text = "As funções do botão direito estão desactivadas nesta página!   ";
var print_button = "no";
var close_button = "yes";
var background_color = "fff";
var border_color = "999";

function openCloseUp(theURL, winName, features) {
if (viewer == "no") {
window.open(theURL, winName, features);
} else if (viewer == "yes") {
popup_window = window.open('', 'CloseUp', 'fullscreen=0,alwaysraised=0,menubar=0,toolbar=0,location=0,directories=0,scrollbars=" + scrollbars + ",status=0,resizable=0,width=700,height=500,top=50,left=20');
popup_window.document.open();
popup_window.document.write('<!DOCTYPE HTML PUBLIC "-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN" "http:\/\/www.w3.org\/TR\/html4\/loose.dtd">\n');
popup_window.document.write('<html lang="pt" dir="ltr">\n');
popup_window.document.write('<head>\n\n');
popup_window.document.write('\t<title>Equin&oacute;cio - Wind &middot; Surf &middot; Mountainbike<\/title>\n');
popup_window.document.write('\t<meta http-equiv="expires" content="0">\n');
popup_window.document.write('\t<link rel="stylesheet" href="public\/css\/Base.css" type="text\/css" media="screen">\n');
popup_window.document.write('\t<meta http-equiv="imagetoolbar" content="no">\n\n');
if (right_click_on == "yes") {
popup_window.document.write('<script type="text\/javascript">\n\n');
popup_window.document.write('function noRightClick() {\n');
popup_window.document.write('if (event.button == 2) {\n');
popup_window.document.write('alert(\'' + right_click_text + '\')\n');
popup_window.document.write('}\n');
popup_window.document.write('}\n');
popup_window.document.write('document.onmousedown = noRightClick;\n\n');
popup_window.document.write('<\/script>\n\n');
}
popup_window.document.write('<\/head>\n');
popup_window.document.write('<body style="background-color: #' + background_color + '; margin: 0; padding: 0; color: inherit; text-align: center;">\n');
popup_window.document.write('<div style="margin: 0 auto; text-align: center;">\n');
popup_window.document.write('\t<img src="' + theURL + '" alt="" style="margin: 15px; border: 1px solid #' + border_color + ';" \/><br \/>\n\n');
popup_window.document.write('\t<form action="" style="margin: 0">\n');
popup_window.document.write('\t\t&nbsp;\n');
if (print_button == "yes") {
popup_window.document.write('\t\t<input type="button" value="Imprimir" class="Button" onclick=\'self.print()\' \/>\n');
}
if (close_button == "yes") {
popup_window.document.write('\t\t<input type="button" value="Fechar" class="Button" onclick=\'self.close()\' \/>\n');
}
popup_window.document.write('\t\t&nbsp;\n');
popup_window.document.write('\t<\/form>\n');
popup_window.document.write('<\/div>\n');
popup_window.document.write('<\/body>\n');
popup_window.document.write('<\/html>');
popup_window.document.close();
}
}
