/*Iniciação - Script*/
var GB_DONE = false;
function GB_show(caption, url, height, width) {
GB_HEIGHT = height;
GB_WIDTH = width;
if(!GB_DONE) {
jQuery(document.body)
.append("
"
+ "

");
jQuery("#GB_window img").click(GB_hide);
jQuery("#GB_overlay").click(GB_hide);
jQuery(window).resize(GB_position);
GB_DONE = true;
}
jQuery("#GB_frame").remove();
jQuery("#GB_window").append("");
jQuery("#GB_caption").html(caption);
jQuery("#GB_overlay").show();
//var Height = screen.height - 25;
//jQuery("#GB_overlay").css("height",Height+"px");
GB_position();
if(GB_ANIMATION)
jQuery("#GB_window").slideDown("slow");
else
jQuery("#GB_window").show();
}
function GB_hide() {
jQuery("#GB_window,#GB_overlay").hide();
}
function GB_position() {
var de = document.documentElement;
var w = self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
jQuery("#GB_window").css({width:GB_WIDTH+"px",height:GB_HEIGHT+"px",
left: ((w - GB_WIDTH)/2)+"px" });
jQuery("#GB_frame").css("height",GB_HEIGHT - 32 +"px");
}