	 var actCol = "";
	
function main(dir) {
		showLogo();
window.open("Spindeloeldeutsch.pdf", "Aktionsfenster", "width=300,height=200,scrollbars=no");
	 } 
	 
function openLinkInDiv(link, div) {
		var req = null;
		try {
			req = new XMLHttpRequest();
		} catch (ms) {
			try {
				req = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (nonms) {
				try {
					req = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (failed) {
					req = null;
				}
			}
		}
		
		if (req == null) alert("Error creating request object!");
		req.open("GET", link, true);

		req.onreadystatechange = function() {            
		switch(req.readyState) {
			case 4:
				if (req.status==200) {
					document.getElementById( div ).innerHTML = req.responseText;
				} else {
					alert("Fehler:"+req.status); 
				}
				break;
			default:
				return false;
				break;
			}
		};
	  
		req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req.send(null);
	}
	
	 function showLogo() {
		document.getElementById('logo').style.visibility = 'visible';
		document.getElementById('logo_text').style.visibility = 'visible';
		document.getElementById('zertifikatlogo').style.visibility = 'visible';
	 }
	 
	 function hideLogo() {
		document.getElementById('logo').style.visibility = 'hidden';
		document.getElementById('logo_text').style.visibility = 'hidden';
		document.getElementById('zertifikatlogo').style.visibility = 'hidden';
	 }
	
	function init(dir) {
		placeContainer();
		main(dir);
	}
	
	 
	 
	 function product_menu() {
		document.getElementById('menu_products').style.display		= 'inline';
		document.getElementById('menu_products').style.visibility	= 'visible';
	 }
	 
	 function openLink(link, div) {
		 hideLogo();
		 openLinkInDiv(link, div);
	 }
	 
	 function globalWidth() {
	  if (window.innerWidth) {
		return window.innerWidth;
	  } else if (document.body && document.body.offsetWidth) {
		return document.body.offsetWidth;
	  } else {
		return 0;
	  }
	}

	function globalHeight() {
	  if (window.innerHeight) {
		return window.innerHeight;
	  } else if (document.body && document.body.offsetHeight) {
		return document.body.offsetHeight;
	  } else {
		return 0;
	  }
	}
	 
	function placeContainer() {
			var temp = 0;
		if ((globalWidth()-1000)>0) {
			document.getElementById('container').style.left = (globalWidth()-1000)/2;
		} else {
			document.getElementById('container').style.left = 0;
		}
		if ((globalHeight()-620)>0) {
			document.getElementById('container').style.top  = (globalHeight()-620)/2;
		} else {
			document.getElementById('container').style.top = 0;
		}
	}
	
	function firstHover() {
		// Alle Icons Dark		
		document.getElementById('red').className='red';
		document.getElementById('green').className='green';
		document.getElementById('blue').className='blue';
		document.getElementById('orange').className='orange';
		document.getElementById('yellow').className='yellow';
		
		if (actCol!="") {
			document.getElementById(actCol).className=actCol+'Fix';
		}
	}