
/*navigazione js (NO:0)*/

function NAV(){if(navigator.appVersion.indexOf("MSIE")==-1){return;}
var i,k,g,lg,r=/\s*iefix/,nn='',c,cs='iefix',bv='menu';for(i=0;i<10;i++){g=document.getElementById(bv+nn);if(g){lg=g.getElementsByTagName("LI");if(lg){for(k=0;k<lg.length;k++){lg[k].onmouseover=function(){c=this.className;cl=(c)?c+' '+cs:cs;this.className=cl;};lg[k].onmouseout=function(){c=this.className;this.className=(c)?c.replace(r,''):'';};}}}nn=i+1;}}
/*campi js (NO:2)*/

function checkForm(f){if(!f.nome.value){alert('Nome e\' un campo obbligatorio');return false;}
if(!f.cognome.value){alert('Cognome e\' un campo obbligatorio');return false;}
if(!f.telefono.value){alert('Telefono e\' un campo obbligatorio');return false;}
if(isNaN(f.telefono.value)){alert('Telefono e\' un campo numerico');return false;}
if(!f.email.value){alert('Email e\' un campo obbligatorio');return false;}
if((f.email.value.indexOf("@")==-1)||(f.email.value.indexOf(".")==-1)){alert('Email inserita non valida');return false;}
if(f.consenso_dato[1].checked==1){alert('Se non presti il consenso al trattamento dei dati personali non puoi inviare la richiesta');return false;}
return true;}
/*jquery.smooth-scroll js (NO:3)*/

(function($){var version='1.2';var locationPath=filterPath(location.pathname);$.fn.extend({scrollable:function(){var scrollable=[],scrolled=false;this.each(function(){if(this==document||this==window){return;}
var el=$(this);if(el.scrollTop()>0){scrollable=[this];return false;}
el.scrollTop(1);scrolled=el.scrollTop()>0;el.scrollTop(0);if(scrolled){scrollable=[this];return false;}});return this.pushStack(scrollable);},smoothScroll:function(options){var opts=$.extend({},$.fn.smoothScroll.defaults,options);this.die('click.smoothscroll').live('click.smoothscroll',function(event){var link=this,$link=$(this),hostMatch=((location.hostname===link.hostname)||!link.hostname),pathMatch=opts.scrollTarget||(filterPath(link.pathname)||locationPath)===locationPath,thisHash=link.hash&&'#'+link.hash.replace('#',''),include=true;if(!opts.scrollTarget&&(!hostMatch||!pathMatch||thisHash.length==1)){include=false;}else{var exclude=opts.exclude,elCounter=0,el=exclude.length;while(include&&elCounter<el){if($link.is(exclude[elCounter++])){include=false;}}
var excludeWithin=opts.excludeWithin,ewlCounter=0,ewl=excludeWithin.length;while(include&&ewlCounter<ewl){if($link.closest(excludeWithin[ewlCounter++]).length){include=false;}}}
if(include){opts.scrollTarget=opts.scrollTarget||thisHash;opts.link=link;event.preventDefault();$.smoothScroll(opts);}});return this;}});$.smoothScroll=function(options,px){var opts,scrollTargetOffset,offPos='offset';if(typeof options==='number'){opts=$.fn.smoothScroll.defaults;scrollTargetOffset=options;}else{opts=$.extend({},$.fn.smoothScroll.defaults,options||{});if(opts.scrollElement){offPos='position';if(opts.scrollElement.css('position')=='static'){opts.scrollElement.css('position','relative');}}
scrollTargetOffset=px||($(opts.scrollTarget)[offPos]()&&$(opts.scrollTarget)[offPos]()[opts.direction])||0;}
opts=$.extend({link:null},opts);var $scroller=opts.scrollElement||$('html, body').scrollable(),dirs={top:'Top','left':'Left'},aniprops={};aniprops['scroll'+dirs[opts.direction]]=scrollTargetOffset+opts.offset;$scroller.animate(aniprops,{duration:opts.speed,easing:opts.easing,complete:function(){if(opts.afterScroll&&$.isFunction(opts.afterScroll)){opts.afterScroll.call(opts.link,opts);}}});};$.smoothScroll.version=version;$.fn.smoothScroll.defaults={exclude:[],excludeWithin:[],offset:0,direction:'top',scrollElement:null,scrollTarget:null,afterScroll:null,easing:'swing',speed:2000};function filterPath(string){return string.replace(/^\//,'').replace(/(index|default).[a-zA-Z]{3,4}$/,'').replace(/\/$/,'');}})(jQuery);
/*contatore_wmi js (NO:4)*/

$(document).ready(function(){$("#contatore_visite").load("/contatore.php");var refreshId=setInterval(function(){$("#contatore_visite").load('/contatore.php?w_ris='+screen.width+'&h_ris='+screen.height+'&randval='+Math.random());},5000);});
/*regioni_province_comuni js (NO:5)*/

var req;function loadXMLDoc(key){var url="/province.php?id_prov="+key;getObject("com").innerHTML=' Attendere Prego...';try{req=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{req=new ActiveXObject("Microsoft.XMLHTTP");}
catch(oc){req=null;}}
if(!req&&typeof XMLHttpRequest!="undefined"){req=new
XMLHttpRequest();}
if(req!=null){req.onreadystatechange=processChange;req.open("GET",url,true);req.send(null);}}
function processChange(){if(req.readyState==4&&req.status==200){getObject("com").innerHTML=req.responseText;document.res_request.state.focus();}}
function getObject(name){var ns4=(document.layers)?true:false;var w3c=(document.getElementById)?true:false;var ie4=(document.all)?true:false;if(ns4)return eval('document.'+name);if(w3c)return document.getElementById(name);if(ie4)return eval('document.all.'+name);return false;}
