Lightbox = function(){
    return {
        initialize:function()
        {                    
        },    
        show: function(lightboxId)
        {        
            this.getScroll();
            this.prepare('100%', 'hidden');
            this.setScroll(0,0);
            Element.show('overlay');
            Element.show(lightboxId);
            var hatha = this;
            Event.observe(document.body, 'keypress', function(e){
                if(e.keyCode==Event.KEY_ESC)
                    hatha.hide(lightboxId);
            });
        },
        hide:function(lightboxId)
        {
            Element.hide('overlay');
            Element.hide(lightboxId);        
            this.prepare("auto", "auto");
            this.setScroll(0,this.yPos);
        },    
	    getScroll: function(){
		    if (self.pageYOffset) {
			    this.yPos = self.pageYOffset;
		    } else if (document.documentElement && document.documentElement.scrollTop){
			    this.yPos = document.documentElement.scrollTop; 
		    } else if (document.body) {
			    this.yPos = document.body.scrollTop;
		    }
	    },	
	    setScroll: function(x, y){
		    window.scrollTo(x, y); 
	    },
	    // Ie requires height to 100% and overflow hidden or else you can scroll down past the lightbox
	    prepare: function(height, overflow){
		    bod = document.getElementsByTagName('body')[0];
		    bod.style.height = height;
		    //This was causing double vertical scroll-bars
		    //bod.style.overflow = overflow;
      
		    htm = document.getElementsByTagName('html')[0];
		    htm.style.height = height;
		    htm.style.overflow = overflow; 
	    }
	}
}();