/*Henter skærm størelsen og scroll max height */
	  		function getPageSize(){
	
				var xScroll, yScroll;
	
					if (window.innerHeight && window.scrollMaxY) {	
						xScroll = document.body.scrollWidth;
						yScroll = window.innerHeight + window.scrollMaxY;
					} else if (document.body.scrollHeight > document.body.offsetHeight){ // alle undtagen Explorer Mac
						xScroll = document.body.scrollWidth;
						yScroll = document.body.scrollHeight;
					} else { // Explorer Mac...virker også i Explorer 6, Mozilla og Safari
						xScroll = document.body.offsetWidth;
						yScroll = document.body.offsetHeight;
					}
	
				var windowWidth, windowHeight;
					if (self.innerHeight) {	// alle undtagen Explorer
						windowWidth = self.innerWidth;
						windowHeight = self.innerHeight;
					} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6
						windowWidth = document.documentElement.clientWidth;
						windowHeight = document.documentElement.clientHeight;
					} else if (document.body) { // Andre Explorers
						windowWidth = document.body.clientWidth;
						windowHeight = document.body.clientHeight;
			}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}


	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}

	  		
	  		function lightbox() {
	  			/*Henter width på bruger skærm - til at sætte lightbox center på skærm og ligge black_overlay oven på siden.*/
				var arrayPageSize = getPageSize(); 	
				
				if (self.innerWidth)  {  // alle undtagen Internet Explore
					document.getElementById('fade').style.height=arrayPageSize[1]+"px";
					
						
					} else if (document.documentElement && document.documentElement.clientWidth) { // Internet Explorer 6
								document.getElementById('fade').innerHeight=arrayPageSize[1];
								
								
							
							} else if (document.body) { // andre Internet Explorers
										document.getElementById('fade').style.height=arrayPageSize[1];
							}
							
					/*var objFrame=document.getElementById("lightbox_content");
					objFrame.src='vote.html';
					objFrame.style.height='437px';*/
					
					document.getElementById('light').style.display='block';
	  				document.getElementById('fade').style.display='block';


			}

