




/* Version: 1318003614 */


View.Lightbox=Class.create(View,{main:function()
{this.Object=$(document.createElement('div'));this.Object.addClassName('dialog');this.Object.addClassName('hide');this.Object.identify();this.Object.ButtonClose=$(document.createElement('div'));this.Object.ButtonClose.addClassName('dialogClose');this.Object.appendChild(this.Object.ButtonClose);this.Object.Head=$(document.createElement('div'));this.Object.Head.addClassName('head');this.Object.appendChild(this.Object.Head);this.Object.Body=$(document.createElement('div'));this.Object.Body.addClassName('body');this.Object.appendChild(this.Object.Body);this.Object.Foot=$(document.createElement('div'));this.Object.Foot.addClassName('foot');this.Object.appendChild(this.Object.Foot);Main.Body.appendChild(this.Object);}});var Lightbox=Class.create(Widget,{View:'View.Lightbox',strInhalt:null,strType:null,strTitle:null,main:function($super,strInhalt,strType,strTitle)
{$super();this.strInhalt=strInhalt;this.strType=strType;this.strTitle=strTitle;},setListeners:function()
{this.cancelEventFunc=this.cancelEvent.bind(this);document.observe('myEvent:hideOverlay',this.cancelEventFunc);this.View.ButtonClose.observe('click',this.cancelEventFunc);},removeListeners:function()
{this.View.Close.stopObserving('click',this.cancelEventFunc);this.View.ButtonClose.stopObserving('click',this.cancelEventFunc);document.stopObserving('myEvent:hideOverlay',this.cancelEventFunc);},cancelEvent:function()
{this.hide();},display:function($super)
{document.fire('myEvent:showOverlay');this.View.Body.update(this.getContent());this.View.Head.update('<h2>'+this.strTitle+'</h2>');$super(true);},hide:function($super)
{if(this.View)
{this.View.remove();document.fire('myEvent:hideOverlay');}},getContent:function()
{switch(this.strType)
{case'Image':return'<img src="'+this.strInhalt+'" />';break;default:return'<p>'+this.strInhalt+'</p>';break;}}});





