/* Copyright Worksdem www.worksdem.com */

function initPage()
{
	clearFormFields({
		clearInputs: true,
		clearTextareas: true,
		passwordFieldText: false,
		addClassFocus: "focus",
		filterClass: "default"
	});
}
function clearFormFields(o)
{
	if (o.clearInputs == null) o.clearInputs = true;
	if (o.clearTextareas == null) o.clearTextareas = true;
	if (o.passwordFieldText == null) o.passwordFieldText = false;
	if (o.addClassFocus == null) o.addClassFocus = false;
	if (!o.filterClass) o.filterClass = "default";
	if(o.clearInputs) {
		var inputs = document.getElementsByTagName("input");
		for (var i = 0; i < inputs.length; i++ ) {
			if((inputs[i].type == "text" || inputs[i].type == "password") && inputs[i].className.indexOf(o.filterClass) == -1) {
				inputs[i].valueHtml = inputs[i].value;
				inputs[i].onfocus = function ()	{
					if(this.valueHtml == this.value) this.value = "";
					if(this.fake) {
						inputsSwap(this, this.previousSibling);
						this.previousSibling.focus();
					}
					if(o.addClassFocus && !this.fake) {
						this.className += " " + o.addClassFocus;
						this.parentNode.className += " parent-" + o.addClassFocus;
					}
				}
				inputs[i].onblur = function () {
					if(this.value == "") {
						this.value = this.valueHtml;
						if(o.passwordFieldText && this.type == "password") inputsSwap(this, this.nextSibling);
					}
					if(o.addClassFocus) {
						this.className = this.className.replace(o.addClassFocus, "");
						this.parentNode.className = this.parentNode.className.replace("parent-"+o.addClassFocus, "");
					}
				}
				if(o.passwordFieldText && inputs[i].type == "password") {
					var fakeInput = document.createElement("input");
					fakeInput.type = "text";
					fakeInput.value = inputs[i].value;
					fakeInput.className = inputs[i].className;
					fakeInput.fake = true;
					inputs[i].parentNode.insertBefore(fakeInput, inputs[i].nextSibling);
					inputsSwap(inputs[i], null);
				}
			}
		}
	}
	if(o.clearTextareas) {
		var textareas = document.getElementsByTagName("textarea");
		for(var i=0; i<textareas.length; i++) {
			if(textareas[i].className.indexOf(o.filterClass) == -1) {
				textareas[i].valueHtml = textareas[i].value;
				textareas[i].onfocus = function() {
					if(this.value == this.valueHtml) this.value = "";
					if(o.addClassFocus) {
						this.className += " " + o.addClassFocus;
						this.parentNode.className += " parent-" + o.addClassFocus;
					}
				}
				textareas[i].onblur = function() {
					if(this.value == "") this.value = this.valueHtml;
					if(o.addClassFocus) {
						this.className = this.className.replace(o.addClassFocus, "");
						this.parentNode.className = this.parentNode.className.replace("parent-"+o.addClassFocus, "");
					}
				}
			}
		}
	}
	function inputsSwap(el, el2) {
		if(el) el.style.display = "none";
		if(el2) el2.style.display = "inline";
	}
}
if (window.addEventListener)
	window.addEventListener("load", initPage, false);
else if (window.attachEvent)
	window.attachEvent("onload", initPage);
	
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(1k).1l(6(){$("#i-u .U-i").m();$("#i-u .E 5:l").8("9").r();$("#i-u .E 5:l").n(\'a\').8("9");$("#i-u .U-i:l").r();$("#i-u .E 5").z(6(){$("#i-u .E 5").j("9");$("#i-u .E 5").n(\'a\').j("9");$(3).8("9");$(3).n(\'a\').8("9");$("#i-u .U-i").m();o a=$(3).1K("a").A("V");$(a).v();W K});$(".L").m();$(".M-i").m();$(".X-Y").z(6(){k($(3).Z(".g")){o a=$(3).n(\'a\').A(\'10\');a="#"+a;$(3).j("g");$(3).n(\'a\').j("9");$(a+".L").s(q);$(".M-i").11(N)}D{o a=$(3).n(\'a\').A(\'10\');a="#"+a;$(".L").s(q);$(".X-Y").j("g");$(".X-Y").n(\'a\').j("9");$(3).8("g");$(3).n(\'a\').8("9");$(".M-i").11(N,6(){$(".M-i").1L(N,6(){$(a+".L").v(N)})})}})});(6($){$.1M.1m=6(b){b=$.1N({12:K,13:1n,r:{1o:\'r\',1p:\'r\'},m:{1o:\'m\',1p:\'m\'},14:O,F:\'#P-G a\',15:\'9\',16:\'1O\'},b);W $(3).17(6(){$(3).B("G",6(e,a){k(b.14){$(b.F).j(b.15);$(b.F+\'[V=\'+a+\']\').8(b.15)}$(3).t("1q",[a.1P(1)])});$(3).B("1q",6(e,a){k(a==b.16){$(3).t("r")}D{$(3).t("r",[\'.\'+a]);$(3).t("m",[\':1Q(.\'+a+\')\'])}k(b.12){18.19=\'#\'+a}});$(3).B("r",6(e,a){$(3).n(a).1r(b.r,b.13)});$(3).B("m",6(e,a){$(3).n(a).1r(b.m,b.13)});k(b.12){k(18.19!=\'\')$(3).t("G",[18.19]);D $(3).t("G",[\'#\'+b.16])}k(b.14){$(b.F).z(6(){$(\'.P-1a-1b\').t("G",[$(3).A(\'V\')]);$(b.F).j(\'g\');$(3).8(\'g\')})}})}})(H);$(1k).1l(6(){$(\'.P-1a-1b\').1m();$(".P-1a-1b a[10^=\'1s\']").1s();$("1t.1R").A("1S","1T");$("#1U").s(\'1c\');$("#1V").s(\'1c\');$(".1W").1u(6(){$(3).n(\'7.1v\').r()},6(){$(3).n(\'7.1v\').m()});k(1w.1x){$(\'.1X\').17(6(){1x.1Y(3)})}$("7#h 5").m();$("7#h 5:l").8(\'g\');$("7.C 5:l").8(\'9\');$("7#h 5:l").v(q);o e=0;$(\'.1d-I\').B(\'z\',6(){$("7#h 5.g").s(q,6(){$("7#h 5").j(\'g\');k($(3).Z(":1Z-1y")){$("7#h 5:l").8(\'g\');$("7.C 5:l").8(\'9\');$("7#h 5:l").v(q)}D{$(3).I().8(\'g\');$(3).I().v(q)}e=$("7#h 5.g").1z();$(".C 5").j(\'9\');$("#1e"+e).8(\'9\')})});$(\'.1d-J\').B(\'z\',6(){$("7#h 5.g").s(q,6(){$("7#h 5").j(\'g\');k($(3).Z(":l-1y")){$("7#h 5:l").8(\'g\');$("7.C 5:l").8(\'9\');$("7#h 5:l").v(q)}D{$(3).J().8(\'g\');$(3).J().v(q)}e=$("7#h 5.g").1z();$(".C 5").j(\'9\');$("#1e"+e).8(\'9\')})});$(\'.C 5\').B(\'z\',6(){o a=$(3).A(\'20\').21("22");e=a[1];$("7#h 5").j(\'g\');$(".C 5").j(\'9\');$("7#h 5").1A(e).8(\'g\');$("7#h 5").s(q);$("7#h 5").1A(e).v(q);$("#1e"+e).8(\'9\')});o f=23;6 Q(){$(\'.1d-I\').t(\'z\');R=1f(Q,f)}R=1f(Q,f);$(".24").1u(6(){25(R)},6(){R=1f(Q,f)});$(\'#1B\').26({27:\'7\',28:\'y\',29:1n,2a:2b,2c:O});$(\'#1B\').t(\'I\');$(\'x#x\').1C(6(){$(\'x#x .2d\').2e();$(\'.2f\').1D(\'<1E 1g="1h"></1E>\');o c=K;$(\'.2g\').17(6(){k((H.S($(3).T())==\'\')||(H.S($(3).T())==\'2h\')||(H.S($(3).T())==\'2i\')){o a=$(3).J(\'1F\').1G();$(\'.1h\').1i(\'<5>2j 2k 1H 2l 2m \'+a+\'</5>\');$(3).8(\'1I\');c=O}D k($(3).2n(\'1j\')){o b=/^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/;k(!b.2o(H.S($(3).T()))){o a=$(3).J(\'1F\').1G();$(\'.1h\').1i(\'<5>2p 1H 2q 1j 2r 2s</5>\');$(3).8(\'1I\');c=O}}});k(!c){$(\'x#x 1t.1C\').s(\'2t\',6(){$(3).2u().1i(\'\')});o d=$(3).2v();$.2w($(3).A(\'2x\'),d,6(a){$(\'x#x\').11("1c",6(){$(\'.2y\').1D(\'<7 1g="2z"><1J 1g="2A">2B!</1J> <p>2C 2D 1j &2E; 2F 2G 2H 2I. 2J 2K 2L 2M&2N; 2O 2P.</p></7>\')})})}W K})});$(1w).2Q(6(){$("#2R").s(2S)});',62,179,'|||this||li|function|div|addClass|active|||||||current|galleryPholio|tab|removeClass|if|first|hide|children|var||200|show|fadeOut|trigger|services|fadeIn||form||click|attr|bind|switcher|else|tabset1|tagSelector|filter|jQuery|next|prev|false|desc|holder|400|true|portfolio|nextGallery|IntervalGallery|trim|val|sub|href|return|open|close|is|rel|slideUp|useHash|animationSpeed|useTags|selectedTagClass|allTag|each|location|hash|tiles|gallery|fast|link|gpos_|setTimeout|class|content_errors|append|email|document|ready|filterable|800|width|opacity|filterportfolio|animate|prettyPhoto|input|hover|decor|window|PIE|child|index|eq|reviews|submit|html|ul|label|text|inserito|inputError|strong|find|slideDown|fn|extend|all|substr|not|autocompleteOff|autocomplete|off|fascia_header|fascia_footer|lihover|rightCorner|attach|last|id|split|_|8000|carousel|clearInterval|serialScroll|items|axis|duration|interval|5000|cycle|error|remove|c_errors|requiredField|Nome|Email|Non|hai|il|campo|hasClass|test|Hai|un|non|valida|normal|parent|serialize|post|action|contatti|description|title|Grazie|La|tua|egrave|stata|inviata|con|successo|Ti|risponderemo|al|pi|ugrave|presto|possibile|load|loadpage|700'.split('|'),0,{}))
