

			function inner_text(valore, id){
				if (valore == 0){
					document.getElementById("in_inner").innerHTML = '';
					document.getElementById(id).style.border  = '1px solid white';
				}
				if (valore == 1){
					document.getElementById("in_inner").innerHTML = 'Creazioni';
					document.getElementById(id).style.border = '1px solid #f9c65b';
				}
				if (valore == 2){
					document.getElementById("in_inner").innerHTML = 'Liste di nozze';
					document.getElementById(id).style.border = '1px solid #f9c65b';
				}
				if (valore == 3){
					document.getElementById("in_inner").innerHTML = 'Riparazioni';
					document.getElementById(id).style.border = '1px solid #f9c65b';
				}
				if (valore == 4){
					document.getElementById("in_inner").innerHTML = 'Regali aziendali';
					document.getElementById(id).style.border = '1px solid #f9c65b';
				}
			}

			function popup(elementid, valore, e) {
				var div_aut = document.getElementById("aut");
				if (!div_aut) {
					alert("Attendere il caricamento della pagina!");
					return false;
				}
				//alert(valore)
				
				var wdiv = div_aut.style.width
				var hdiv = div_aut.style.height
				
				div_aut.innerHTML = '<img src="images//x.gif" onclick="closepopup();" style="cursor: pointer;" //>' + '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:////download.macromedia.com//pub//shockwave//cabs//flash//swflash.cab#version=7,0,19,0" width="' + wdiv + '" height="' + hdiv + '"><param name="movie" value="animations//' + valore + '.swf"><param name="quality" value="high"><embed src="animations//' + valore + '.swf" quality="high" pluginspage="http:////www.macromedia.com//go//getflashplayer" type="application//x-shockwave-flash" width="' + wdiv + '" height="' + hdiv + '"><//embed><//object>';
				//div_aut.innerHTML = 'pippo'
				//alert(document.body.offsetHeight);
	
				var dwidth = document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
				var dheight = document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
				
				//var pleft = parseInt((screen.availWidth/2) - (parseInt(div_aut.style.width)/2));
				//var pbottom = parseInt((screen.availHeight/2) - (parseInt(div_aut.style.height)/2));	
	
				var pleft = parseInt((dwidth/2) - (parseInt(wdiv)/2));
				var pbottom = parseInt((dheight/2) - (parseInt(hdiv)/2));					
	
				//alert(parseInt((screen.availWidth)));
				//alert(parseInt((screen.availHeight)));
				
				pleft = pleft + 'px';
				pbottom = pbottom + 'px';
			
				div_aut.style.left = pleft;
				div_aut.style.bottom = pbottom;
	
				//alert(div_aut.style.left)			
				//alert(div_aut.style.bottom)		
						
				div_aut.style.display='block';
	
			}
			
			function closepopup(){
				document.getElementById("aut").style.display = "none";
			}
			
			function EvalSound(soundobj) {
			  var thissound= document.getElementById(soundobj);
			  thissound.Play();
			}
