<!--

function getPageScroll(){

	var yScroll;

	if (self.pageYOffset) {
		yScroll = self.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop){	 // Explorer 6 Strict
		yScroll = document.documentElement.scrollTop;
	} else if (document.body) {// all other Explorers
		yScroll = document.body.scrollTop;
	}

	arrayPageScroll = new Array('',yScroll) 
	return arrayPageScroll;
}

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){ // 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
		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;
	}	
	
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}


	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}

function zeigeoverlay() 
{
	var objBody = document.getElementsByTagName("body").item(0);
	
	var arrayPageSize = getPageSize();
	var arrayPageScroll = getPageScroll();
	
	hohe = arrayPageSize[1] - -30;
	
	var objIframe = document.createElement("iframe");
	objIframe.setAttribute("framespacing","0");
	objIframe.setAttribute("frameborder","0");
	objIframe.setAttribute("scrolling","no");
	objIframe.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';
	objIframe.style.display = 'block';
	objIframe.style.position = 'absolute';
	objIframe.style.top = '0';
	objIframe.style.left = '0';
	objIframe.style.zIndex = '89';
 	objIframe.style.width = '100%';
	objIframe.style.height = (hohe + 'px');
	objBody.appendChild(objIframe);
	
	var objOverlay = document.createElement("div");
	objOverlay.setAttribute('id','overlay');
	objOverlay.style.display = 'block';
	objOverlay.style.position = 'absolute';
	objOverlay.style.top = '0';
	objOverlay.style.left = '0';
	objOverlay.style.zIndex = '90';
 	objOverlay.style.width = '100%';
	objOverlay.style.height = (hohe + 'px');
	objBody.appendChild(objOverlay);
	
}

function load_ma(sMa,sArt) {

var ajxFile = "templates/ajax_abfragen.php";

$.ajax( { 
	   type: "GET", 
	   url: ajxFile, 
	   data: "ma="+sMa+"&art="+sArt, 
	   success: function(phpData) { 
	   document.getElementById('mashow').innerHTML = phpData;
	   document.getElementById('mashow').style.display = "block";
	   document.getElementById('mashow').style.zIndex = '91';
	   }
	   }
	   );   

}

function load_pro(sPro) {

var ajxFile = "templates/ajax_abfragen.php";

$.ajax( { 
	   type: "GET", 
	   url: ajxFile, 
	   data: "projekt=" + sPro, 
	   success: function(phpData) { 
	   document.getElementById('proshow').innerHTML = phpData;
	   document.getElementById('proshow').style.display = "block";
	   document.getElementById('proshow').style.zIndex = '91';
	   }
	   }
	   );   

}


function load_lb(sImage, sTxt) {

zeigeoverlay();

document.getElementById('libo').innerHTML += "<img src=\""+sImage+"\"><div class=\"half\"></div>"+sTxt;
document.getElementById('libo').style.display = "block";
document.getElementById('libo').style.zIndex = '91';

}


//-->