
varLeft = 0;
varTop = 0;



function showImageBig(imageObject,img) {
	//getPosition(imageObject) ;
	var imageMouseoverObject = document.getElementById('imageMouseover');
	imageMouseoverObject.onload = function() { 	
		var imageMouseoverObject = document.getElementById('imageMouseover');
		//höhe zentrieren
		imageMouseoverObject.style.top = (( getBodyHeight() - imageMouseoverObject.height) / 2 ) + 'px' ;
	};
	imageMouseoverObject.src = img ;
	imageMouseoverObject.style.display = 'block' ;
	imageMouseoverObject.style.left = varLeft - 150 + 'px' ;
}

function hideImageBig(path) {
	var imageMouseoverObject = document.getElementById('imageMouseover');
	imageMouseoverObject.src = path+'spacer.gif' ;
	imageMouseoverObject.style.display = 'none' ;
}

function getPosition(e) {   
	varTop = 0 ;
	varLeft = 0 ;
	
	if (!e) { e = window.event; }   
	
	var myTarget = e.currentTarget;   
	
	if (!myTarget) {    myTarget = e.srcElement;   }   
	else if (myTarget == "undefined") {    myTarget = e.srcElement;   } 
	
	while(myTarget!= document.body) {      
		//varTop += myTarget.offsetTop;      
		varLeft += myTarget.offsetLeft;      
		myTarget = myTarget.offsetParent;   
	}
} 

function getInnerSize() {
	var winW = 630, winH = 460;
	
	if (parseInt(navigator.appVersion)>3) {
	 if (navigator.appName=="Netscape") {
	  winW = window.innerWidth;
	  winH = window.innerHeight;
	 }
	 if (navigator.appName.indexOf("Microsoft")!=-1) {
	  winW = document.documentElement.clientWidth;
	  winH = document.documentElement.clientHeight;
	 }
	}
	return [winW, winH] ;
}

function getBodyHeight() {
  if( window.innerHeight && window.scrollMaxY ) {// Firefox  
		pageHeight = window.innerHeight + window.scrollMaxY;
	} else if( document.body.scrollHeight > document.body.offsetHeight ) { // all but Explorer Mac
		pageHeight = document.body.scrollHeight;
	}	else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		pageHeight = document.body.offsetHeight + document.body.offsetTop; 
	}
	return pageHeight ;
}

function getBodyWidth() {
  if( window.innerWidth && window.scrollMaxX ) {// Firefox  
		pageWidth = window.innerWidth + window.scrollMaxX;
	} else if( document.body.scrollWidth > document.body.offsetWidth ) { // all but Explorer Mac
		pageWidth = document.body.scrollWidth;
	}	else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		pageWidth = document.body.offsetWidth + document.body.offsetLeft; 
	}
	return pageWidth ;
}

function getScrollHeight() {
  var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
  return scrOfY ; //[ scrOfX, scrOfY ];
}

function getScrollWidth() {
	 var scrOfX = 0, scrOfY = 0;
	  if( typeof( window.pageYOffset ) == 'number' ) {
	    //Netscape compliant
	    scrOfY = window.pageYOffset;
	    scrOfX = window.pageXOffset;
	  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
	    //DOM compliant
	    scrOfY = document.body.scrollTop;
	    scrOfX = document.body.scrollLeft;
	  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
	    //IE6 standards compliant mode
	    scrOfY = document.documentElement.scrollTop;
	    scrOfX = document.documentElement.scrollLeft;
	  }
	  return scrOfX ; //[ scrOfX, scrOfY ];
}


function searchFocus( objField ) {
	//alert( objField.value );
	if( objField.value == 'Suche' ) {
		objField.value 			= '' ;
		objField.style.color 	= '#9a9a9a' ;
	} else {
		objField.style.color 	= '#000000' ;
	}
		
}
function searchBlur( objField ) {
	//alert( objField.value );
	if( objField.value == '' ) {
		objField.value 			= 'Suche' ;
		objField.style.color 	= '#9a9a9a' ;
	} else {
		objField.style.color 	= '#000000' ;
	}
}


function jobPlakate() {
	var xinfo = "";
	xinfo = window.open ( 'job_plakate.htm','job','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=980,height=645,top=0,left=0' );
}

function openPrintWindow() {
	var printWindow = "";
	var link = document.location.href ;
	link += (link.indexOf('?')>-1)  ? '&' : '?' ;
	link += 'print=true'
	//alert(link);
	printWindow = window.open ( link, 'print','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=900,height=600,top=50,left=50' );
}

function printWindow() {
	document.getElementById('a_print').style.display='none'; 
	window.print();
	return false;
}