function JSGUI(c){this.contentFrame=c;this.modalFrame="#_modal_window";var d=new CenterElement(this.contentFrame,"window"),a=this;this.init=function(){a.makeModal();a.applyIE7Patch()};this.showFrame=function(b){b&&a.showModal();d.init();$(a.contentFrame).fadeIn("fast").css("z-index","60")};this.hideFrame=function(){a.hideModal();$(a.contentFrame).fadeOut("fast")};this.toggleFrame=function(b){a.frameVisible()?a.hideFrame():a.showFrame(b)};this.frameVisible=function(){return $(a.contentFrame).is(":visible")};
this.makeModal=function(){var a=document.createElement("div");height=$(document).height();width=$(document).width();a.setAttribute("style","height:"+height+"px; width:"+width+"px;");a.setAttribute("id","_modal_window");$("body").prepend(a)};this.applyIE7Patch=function(){height=$(document).height();width=$(document).width();$("#_modal_window").css({height:height+"px",width:width+"px"}).addClass("_gui_modal_window")};this.showModal=function(){$(a.modalFrame).fadeIn("fast")};this.hideModal=function(){$(a.modalFrame).fadeOut("fast")}}
;
