		document.getElementById("creditsLink").onclick = function () {
			showCredits();
		}
		function showCredits()
		{
			var ni = document.getElementsByTagName("body").item(0);	
			var newdiv = document.createElement('div');
			var divIdName = 'oscuratore';
			newdiv.setAttribute('id',divIdName);
			newdiv.setAttribute('class',"levelCredits opaco linky");
			newdiv.innerHTML = '';
			ni.appendChild(newdiv);
			openLogo();	
			oscura();	
			document.getElementById("oscuratore").onclick = function () {
				document.getElementById("oscuratore").innerHTML='';
				document.getElementById("oscuratore").style.width='0px';
				document.getElementById("oscuratore").style.height='0px';			
				document.getElementById('logoInt').innerHTML = '';
				document.getElementById('logo').innerHTML = '';
				element = document.getElementsByTagName('body').item(0).removeChild(document.getElementById('logo'));				
				element = document.getElementsByTagName('body').item(0).removeChild(document.getElementById('oscuratore'));				
			}				
		}
		function oscura()
		{

			altezzaMax = eval(document.body.clientHeight)
			larghezzaMax = eval(document.body.clientWidth);
			document.getElementById("oscuratore").style.width = larghezzaMax+'px';
			document.getElementById("oscuratore").style.height = getH()+'px';
			document.getElementById("oscuratore").className='levelCredits opaco linky';
		}
		function getH(){
			var h;
			if(document.innerHeight){ h=document.innerHeight;
				} else if(document.documentElement.clientHeight){ h=document.documentElement.clientHeight;
				} else if(document.body){ h=document.body.clientHeight; }
			return h;
		}	
		function openLogo()
		{
			var ni = document.getElementsByTagName("body").item(0);	
			var newdiv = document.createElement('div');
			var divIdName = 'logo';
			newdiv.setAttribute('id',divIdName);
			newdiv.setAttribute('class',"linky");
			newdiv.innerHTML = '<div id="logoInt"><a href="http://www.iaiastyle.it/" title="IaIa Style - Web&More" target="_blank"><img src="img/iaia-depa.jpg"></a></div>';
			ni.appendChild(newdiv);		
			posizionaLogo();
		}
		function posizionaLogo()
		{
			m = eval(document.body.clientWidth)/2-255;
			document.getElementById("logoInt").style.marginLeft = m + 'px';
			document.getElementById("logoInt").style.marginTop = '150px';	
			window.location.hash='#';
		}
