

			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 apri_popup(pagina, larg, alt, conferma) {							
				var popup;
				var left = parseInt((screen.availWidth/2) - (larg/2));
			    var top = parseInt((screen.availHeight/2) - (alt/2));
				var opzioni = 'toolbar=no,scrollbars=no,status=no,resizable=no,width=' + larg +',height=' + alt + ',left=' + left + ',top=' + top + ',screenX=' + left + ',screenY=' + top;
				if (conferma != null) {
					if (confirm(conferma)) {
						popup = window.open(pagina,'',opzioni);
						if (popup == null) {
							alert("Non è possibile completare l'operazione poiché è stato rilevato un software di blocco popup.\n\nSi prega di abilitare l'indirizzo wfp.idc-ti.biz all'apertura di finestre popup.");
						}
					}
				}
				else {
					popup = window.open(pagina,'',opzioni);
					if (popup == null) {
						alert("Non è possibile completare l'operazione poiché è stato rilevato un software di blocco popup.\n\nSi prega di abilitare l'indirizzo wfp.idc-ti.biz all'apertura di finestre popup.");
					}
				}
			}
			
			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;
				                                                                                                                                                                                                                                                                                                                                                                          
				var oggetto = '';
				oggetto = oggetto + '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:////download.macromedia.com//pub//shockwave//cabs//flash//swflash.cab#version=10,0,0,0" width="525" height="400" id="FlashGallery" align="middle">'; 
				oggetto = oggetto + '<param name="allowScriptAccess" value="sameDomain" //>'; 
				oggetto = oggetto + '<param name="allowFullScreen" value="true" //>'; 
				oggetto = oggetto + '<param name="quality" value="high" //>'; 
				oggetto = oggetto + '<param name="bgcolor" value="#ffffff" //>'; 
				oggetto = oggetto + '<param name="flashVars" value="XMLFile=..//gallery//' + valore + '" //>'; 
				oggetto = oggetto + '<param name="movie" value="..//gallery//ArtFlashGallery.swf" //>'; 
					
				oggetto = oggetto + '<embed src="..//gallery//ArtFlashGallery.swf" quality="high" bgcolor="#ffffff" width="525" height="400" flashVars="XMLFile=..//gallery//' + valore + '" name="FlashGallery" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application//x-shockwave-flash" pluginspage="http:////www.macromedia.com//go//getflashplayer" //>';
				
				oggetto = oggetto + '<//object>';	
				//alert(oggetto);
									
				div_aut.innerHTML = '<div align="left"><img src="..//images//x.gif" onclick="closepopup();" style="cursor: pointer;" //><div><div align="center">' + oggetto + '</div>';
				//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 apri_finestra(percorso){
				var y = screen.width;
				var x = screen.height - 30;
				window.open('' + percorso + '','mina_yamazaki','resizable=yes, scrollbars=yes, left=0, top=0, width=' + y + ',height=' + x );
				}
				
			function check_contact (){
				if (document.getElementById("nome").value == "" || document.getElementById("recapito").value == "" || document.getElementById("messaggio").value == "" || document.getElementById("verificationCode").value == "") {
					alert("Attenzione compilare i campi obbligatori contrassegnati con l'asterisco");
					return false;	
				}
				else {
					return true
				}
			}

