
		
			function Browser(){
		  this.uA = navigator.userAgent.toLowerCase();
		  this.aN = navigator.appName.toLowerCase();
		  this.iE = this.aN.indexOf('microsoft') != -1 ? 1 : 0;
		  this.mac =  this.uA.indexOf('mac') != -1 ? 1 : 0;
		  this.win = this.uA.indexOf('windows') != -1 ? 1 : 0;
		  this.safari =  this.uA.indexOf('webkit') != -1 ? 1 : 0;
		  this.opera =  this.uA.indexOf('opera') != -1 ? 1 : 0;    
		  this.mozilla = this.aN.indexOf('netscape') != -1 && !this.safari ? 1 : 0;
		  this.winMozilla = this.mozilla && this.win ? 1 : 0;
		  this.winIE = this.iE && this.win && !this.opera ? 1 : 0;
		  this.winIE6Down = this.winIE && parseInt(this.uA.split('msie ')[1].substring(0,1)) <= 6 ? 1: 0;
		  this.macIE = this.iE && this.mac ? 1 : 0;
		};

		var browser = new Browser();


		function startLightbox(boxwidth, boxheight, content){
			maxOff = window.pageYOffset;
			window.onscroll=function(){
				window.scroll(0, maxOff);
			}; 
			if(browser.winIE){
				document.getElementById('lightbox').style.left='0px' ;
				document.getElementById('lightbox').style.top=(document.documentElement.scrollTop)+'px';
				document.getElementById('lightbox').style.width=(document.body.clientWidth-24)+'px' ;
				document.getElementById('lightbox').style.height=(document.documentElement.clientHeight)+'px';
				document.getElementById('lightboxmessage').style.left=((document.body.clientWidth - boxwidth)/2)+'px' ;
				document.getElementById('lightboxmessage').style.top=((document.documentElement.clientHeight - boxheight)/2 + document.documentElement.scrollTop - 100)+'px';
			}else{
				document.getElementById('lightbox').style.left='0px' ;
				document.getElementById('lightbox').style.top=window.pageYOffset+'px';
				document.getElementById('lightbox').style.width=(window.innerWidth-24)+'px';
				document.getElementById('lightbox').style.height=window.innerHeight+'px';
				document.getElementById('lightboxmessage').style.left=((window.innerWidth - boxwidth)/2 + window.pageXOffset)+'px' ;
				document.getElementById('lightboxmessage').style.top=((window.innerHeight - boxheight)/2 + window.pageYOffset - 100 )+'px';
			}
			document.getElementById('lightboxmessage').innerHTML=content;
			document.getElementById('lightboxmessage').style.width=boxwidth+'px';
			document.getElementById('lightboxmessage').style.height=boxheight+'px';
			document.getElementById('lightbox').style.display="block";
			document.getElementById('lightboxmessage').style.display="block";
			document.getElementById('lightboxmessage').innerHTML = content;
		}
		
		function stopLightbox(){
			document.getElementById('lightbox').style.display='none';
			document.getElementById('lightboxmessage').style.display='none';
			window.onscroll=null;
		}
		