var GB_DONE=false;var GB_HEIGHT=400;var GB_WIDTH=400;function GB_show(b,c,a,d){GB_HEIGHT=a||400;GB_WIDTH=d||400;if(!GB_DONE){$(document.body).append("<div id='GB_overlay'></div><div id='GB_window'><div id='GB_caption'></div><img src='close.gif' alt='Close window'/></div>");$("#GB_window img").click(GB_hide);$("#GB_overlay").click(GB_hide);$(window).resize(GB_position);$(window).scroll(GB_position);GB_DONE=true}$("#GB_frame").remove();$("#GB_window").append("<iframe id='GB_frame' src='"+c+"'></iframe>");$("#GB_caption").html(b);$("#GB_overlay").show();GB_position();if(GB_ANIMATION){$("#GB_window").slideDown("slow")}else{$("#GB_window").show()}}function GB_hide(){$("#GB_window,#GB_overlay").hide()}function GB_position(){var i=document.documentElement;var d=self.innerHeight||(i&&i.clientHeight)||document.body.clientHeight;var c=self.innerWidth||(i&&i.clientWidth)||document.body.clientWidth;var g=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;var b=document.all?g.scrollLeft:pageXOffset;var e=document.all?g.scrollTop:pageYOffset;var a=d<GB_HEIGHT?d-32:GB_HEIGHT;var f=(d-a)/2+e;$("#GB_window").css({width:GB_WIDTH+"px",height:a+"px",left:((c-GB_WIDTH)/2)+"px",top:f+"px"});$("#GB_frame").css("height",a-32+"px");$("#GB_overlay").css({height:d,top:e+"px",width:c})};