SOWIN=(navigator.userAgent.toLowerCase().indexOf("win")>-1)?1:0;SOMAC=(navigator.userAgent.toLowerCase().indexOf("mac")>-1)?1:0;SOLIN=(navigator.userAgent.toLowerCase().indexOf("linux")>-1)?1:0;SOALT=(!SOWIN&&!SOMAC&&!SOLIN)?1:0;OP=((ind1=navigator.userAgent.indexOf("Opera"))>-1)?1:0;punto=(OP)?navigator.userAgent.indexOf(".",ind1):0;OP5=(OP&&parseInt(navigator.userAgent.substr(punto-1))==5)?1:0;OP6=(OP&&parseInt(navigator.userAgent.substr(punto-1))==6)?1:0;IE=((ind2=navigator.appVersion.indexOf("MSIE"))>-1&&!OP)?1:0;IE4=(IE&&parseInt(navigator.appVersion.substr(ind2+5))==4)?1:0;IE5=(IE&&parseInt(navigator.appVersion.substr(ind2+5))==5)?1:0;IE6=(IE&&parseInt(navigator.appVersion.substr(ind2+5))==6)?1:0;NN=(navigator.appName.indexOf("Netscape")>-1)?1:0;NN4=(NN&&parseInt(navigator.appVersion)==4)?1:0;NN6=(NN&&parseInt(navigator.appVersion)>4)?1:0;GE=(navigator.userAgent.toLowerCase().indexOf("gecko")>-1)?1:0;var lingua="ita";String.prototype.equalsIgnoreCase=matchIgnoreCase;function matchIgnoreCase(c){var b=this.toLowerCase();c=c.toLowerCase();if(b==c){return true}else{return false}}String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function MM_findObj(g,f){var e,c,b;if(!f){f=document}if((e=g.indexOf("?"))>0&&parent.frames.length){f=parent.frames[g.substring(e+1)].document;g=g.substring(0,e)}if(!(b=f[g])&&f.all){b=f.all[g]}for(c=0;!b&&c<f.forms.length;c++){b=f.forms[c][g]}for(c=0;!b&&f.layers&&c<f.layers.length;c++){b=MM_findObj(g,f.layers[c].document)}if(!b&&f.getElementById){b=f.getElementById(g)}return b}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}function JWM_swapImage(){a=JWM_swapImage.arguments;document.JWM_tmp=new Array;j=0;for(i=0;i<(a.length-1);i+=2){x=document.getElementById(a[i]);document.JWM_tmp[j++]=x;if(!x.oSrc){x.oSrc=x.src}x.src=a[i+1]}}function JWM_swapImgRestore(){a=document.JWM_tmp;for(i=0;a&&i<a.length&&a[i].oSrc;i++){a[i].src=a[i].oSrc}}function addParameter(c,k){for(var g=0;g<document.links.length;g++){var h=document.links[g].href.indexOf("http://");var d=document.links[g].href.indexOf("#");var e=document.links[g].href.indexOf("javascript:");var f=document.links[g].href.indexOf("http://");var b=(document.links[g].href.indexOf(".jsp")!=-1)?true:false;var m=(document.links[g].href.indexOf("?")!=-1)?"&":"?";if(d==-1&&e==-1&&f!=-1&&b){document.links[g].href+=m+c+"="+k}}}function getParameter(b){var c=window.location.href;var f=c.indexOf("?");if(f!=-1){var e=c.substr(f+1);var d=e.indexOf(b);if(d!=-1){paramToEnd=e.substr(d+b.length+1);var g=paramToEnd.indexOf("&");if(g==-1){return paramToEnd}else{return paramToEnd.substr(0,g)}}}}function getParameters(){var h=new Array();var d=window.location.href;var g=d.indexOf("?");var c=true;if(g!=-1){var f=d.substr(g+1);var h=f.split("&");for(var e=0;e<h.length;e++){var b=h[e].split("=");if(b.length==2){h[b[0]]=b[1]}}return h}}function getAttributo(el,attr,isselect){retval=document.getElementById(el);if(retval){if(isselect){return eval("retval.options[retval.selectedIndex]."+attr)}else{return eval("retval."+attr)}}}function vai(b,c){if(b&&b!=""){if(c){document.location.replace(b)}else{document.location=b}}}function cerca(c,d,b){if(trimString(document.getElementById(d).value)==""){alert(b)}else{document.forms[c].submit()}}function trimString(b){b=b.replace(/^\s+/g,"");return b.replace(/\s+$/g,"")}function printUltimaModifica(e){var h=new Date(document.lastModified);var f=h.getDate();var d=new String(f);d=d.length==1?"0"+f:f;var c=h.getMonth();var k=new String(c);k=k.length==1?"0"+(c+1):(c+1);var b=h.getFullYear();if(e=="eng"){document.write(k+"/"+d+"/"+b)}else{document.write(d+"/"+k+"/"+b)}}function hideLayers(){var b=hideLayers.arguments;for(var c=0;c<b.length;c++){if(document.getElementById(b[c])){document.getElementById(b[c]).style.display="none"}}}function showLayers(){var b=showLayers.arguments;for(var c=0;c<b.length;c++){if(document.getElementById(b[c])){document.getElementById(b[c]).style.display="block"}}}function showHideLayers(){var b=showHideLayers.arguments;for(var c=0;c<b.length;c++){if(document.getElementById(b[c])){if(document.getElementById(b[c]).style.display&&document.getElementById(b[c]).style.display=="block"){document.getElementById(b[c]).style.display="none"}else{document.getElementById(b[c]).style.display="block"}}}}function nobox(b){document.getElementById(b).style.display="none"}function box(b){document.getElementById(b).style.display="block"}function cercaEv(e){var b=document.getElementById("ev_tema");document.getElementById("n_tema").value=b.options[b.selectedIndex].text;var c=document.getElementById("ev_dest");document.getElementById("n_dest").value=c.options[c.selectedIndex].text;var d=document.getElementById("ev_mese");document.getElementById("n_mese").value=d.options[d.selectedIndex].text;document.forms[e].submit()}function isdefined(b){return(typeof(window[b])=="undefined")?false:true}function validateForm(_form){var reqfields=document.getElementById("requiredfields");var reqfieldsmsg=document.getElementById("requiredfieldsmsg");try{if(reqfields&&reqfields.value.trim().length>0){var rf=reqfields.value;var re=new RegExp(",","gi");rf=rf.replace(re,"&&");re=new RegExp("s","gi");var rf2=rf.split(/[\s&&\(\)||]/gi);for(var i=0;i<rf2.length;i++){var token=rf2[i].trim();if(token.length>0){var valcampo=false;if(isFilled(_form,token)){valcampo=true}rf=rf.replace(token,valcampo)}}re=null;rf2=null;var err=false;eval("if(!("+rf+")) err=true");if(err){alert(reqfieldsmsg&&reqfieldsmsg.value!=""?reqfieldsmsg.value:"Per proseguire è necessario compilare tutti i campi obbligatori");return false}else{return true}}return true}catch(e){alert(e.message);return false}}function isFilled(e,g){var f=false;for(var d=0;e.elements[d];d++){var c=e.elements[d];if(c&&c.name==g){switch(c.type){case"select-one":if(c.selectedIndex!=-1&&c.options[c.selectedIndex].value!=""){f=true}break;case"select-multiple":for(var b=0;b<c.length;b++){if(c[b].selected==true){f=true;break}}break;case"radio":if(c.checked){return true}break;case"checkbox":if(c.checked){return true}break;default:if(c.value.trim()!=""){f=true}break}}}return f}function checkRicerca(b,c){if(trimString(document.getElementById(b).value)==""){alert(c);return false}else{return true}}function createCookie(d,e,f){if(f){var c=new Date();c.setTime(c.getTime()+(f*24*60*60*1000));var b="; expires="+c.toGMTString()}else{b=""}document.cookie=d+"="+e+b+"; path=/"}function readCookie(d){var b=d+"=";var c=document.cookie.split(";");for(var f=0;f<c.length;f++){var e=c[f];while(e.charAt(0)==" "){e=e.substring(1,e.length)}if(e.indexOf(b)==0){return e.substring(b.length,e.length)}}}function deleteCookie(c){var d=new Date();expYear=d.getYear();d.setYear(expYear);var b="; expires="+d.toGMTString();document.cookie=c+"=deleted"+b+"; path=/"}function voteForPoll(f,e,c,b){if(e){return true}var d=readCookie("POLL_"+f);if(!d||d!="1"){if(c){createCookie("POLL_"+f,"1",7)}return true}else{alert(b);return false}}function checkEmail(e,c){var b=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;var d=e.value;if(d==""){return true}var f=d.search(b);if(f==-1){alert("Email non valida");if(c){e.value=""}return false}else{return true}}function checkNumber(f,h,e,l,k,d){var c=true;if(document.getElementById(f)){c=false;var g=document.getElementById(f);var b=g.value;if(b==""){return true}if(l){if(!d){d="."}if(!k){k=""}b=b.replace(k,"");b=b.replace(d,".")}if(isNaN(b)){alert("Il campo accetta solo valori numerici");g.value=""}else{if(!l&&b.search(/^[0-9]+$/)!=0){alert("Il campo accetta solo valori interi");g.value=""}else{if((h&&!isNaN(parseInt(h))&&parseInt(b)<parseInt(h))||(e&&!isNaN(parseInt(e))&&parseInt(b)>parseInt(e))){alert("Valore non ammesso");g.value=""}c=true}}}return c}function checkPWD(f,e,c){var b=document.getElementById(f);var d=document.getElementById(e);if(b&&d&&b.value.length>0&d.value.length>0){if(b.value!=d.value){alert("Le password immesse non sono uguali");b.value="";d.value="";return false}else{if(c){if(b.value.length<c){alert("La password deve essere lunga almeno "+c+" caratteri");b.value="";d.value="";return false}}}}return true}function coreCheckCF(b){if(b){b=b.toUpperCase();var c=/^[A-Z]{6}[\d]{2}[A-Z][\d]{2}[A-Z][\d]{3}[A-Z]$/i;if(!c.test(b)){return false}set1="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";set2="ABCDEFGHIJABCDEFGHIJKLMNOPQRSTUVWXYZ";setpari="ABCDEFGHIJKLMNOPQRSTUVWXYZ";setdisp="BAKPLCQDREVOSFTGUHMINJWZYX";s=0;for(i=1;i<=13;i+=2){s+=setpari.indexOf(set2.charAt(set1.indexOf(b.charAt(i))))}for(i=0;i<=14;i+=2){s+=setdisp.indexOf(set2.charAt(set1.indexOf(b.charAt(i))))}if(s%26!=b.charCodeAt(15)-"A".charCodeAt(0)){return false}return true}}function coreCheckPI(e){var f=false;if(e){var d=/^[\d]{11}$/;f=d.test(e);if(f){var b=0;for(i=0;i<=9;i+=2){b+=e.charCodeAt(i)-"0".charCodeAt(0)}for(i=1;i<=9;i+=2){var g=2*(e.charCodeAt(i)-"0".charCodeAt(0));if(g>9){g=g-9}b+=g}if((10-b%10)%10!=e.charCodeAt(10)-"0".charCodeAt(0)){f=false}}return f}}function checkCF(c,b,d){var e;if(document.getElementById(c)){e=document.getElementById(c).value.trim();if(e!=""){if(!coreCheckCF(e)){if(b){alert("Il codice fiscale inserito non e' valido.")}if(d){document.getElementById(c).value=""}return false}}}return true}function checkPI(c,b,d){var e;if(document.getElementById(c)){e=document.getElementById(c).value.trim();if(e!=""){if(!coreCheckPI(e)){if(b){alert("La partita IVA inserita non e' valida.")}if(d){document.getElementById(c).value=""}return false}}}return true}function checkCF_PI(c,b,d){var e;if(document.getElementById(c)){e=document.getElementById(c).value.trim();if(e!=""){if(!coreCheckPI(e)&&!coreCheckCF(e)){if(b){alert("Il codice fiscale inserito non e' valido.")}if(d){document.getElementById(c).value=""}return false}}}return true}function checkDate(b){var e;if(lingua=="ita"){e=/^((3[01])|([12][0-9])|(0[1-9]))[\/]((1[0-2])|(0[1-9]))[\/]((19|20)\d{2})$/}else{if(lingua=="eng"){e=/^((1[0-2])|(0[1-9]))[\/]((3[01])|([12][0-9])|(0[1-9]))[\/]((19|20)\d{2})$/}else{e=/^((1[0-2])|(0[1-9]))[\/]((3[01])|([12][0-9])|(0[1-9]))[\/]((19|20)\d{2})$/}}var f=0;if(b.value!=""){var d;var c;if(lingua=="ita"){d=b.value.substr(0,2);c=b.value.substr(3,2)-1}else{if(lingua=="eng"){c=b.value.substr(0,2)-1;d=b.value.substr(3,2)}else{d=b.value.substr(0,2);c=b.value.substr(3,2)-1}}var h=b.value.substr(6,4);var g=b.value.search(e);if(g==-1){f=1}else{var k=c.toString();if(k.substr(0,1)==0){k=k.substr(1,1)}gm=new Array(31,28,31,30,31,30,31,31,30,31,30,31);if(((h%4==0)&&(h%100!=0))||(h%400==0)){gm[1]=29}if(d>gm[k]){f=1}}}if(f==1){if(lingua=="ita"){alert("Formato data non valido (gg/mm/aaaa)")}else{if(lingua=="eng"){alert("Non-valid date format (mm/dd/yyyy)")}else{alert("Formato data non valido (gg/mm/aaaa)")}}b.value=""}}function resetForm(b){var c=document.forms[0];if(b!=undefined){c=document.forms[b]}c.reset()}function checkForm(g){var f=/^(required)[0-9]*$/gi;var d=0;var k=document.forms[0];if(g!=undefined){k=document.forms[g]}var e=k.elements;var h=k.length;var b="\n";for(i=0;i<h;i++){campo=e[i];idcampo=campo.id;tipocampo=campo.type;if(campo){if((tipocampo!="hidden")&&(idcampo.search(f)!=-1)){switch(tipocampo){case"checkbox":if(k.elements[campo.name].length){var c=false;for(j=0;j<k.elements[campo.name].length;j++){if(k.elements[campo.name][j].checked){c=true}}if(!c){d=1;b+=(campo.name+"\n")}}else{if(!k.elements[campo.name].checked){d=1;b+=(campo.name+"\n")}}break;case"select-one":if((campo.selectedIndex==-1)||(campo.options[campo.selectedIndex].value=="")){d=1;b+=(campo.name+"\n")}break;case"select-multiple":if((campo.selectedIndex==-1)||(campo.options[campo.selectedIndex].value=="")){d=1;b+=(campo.name+"\n")}break;case"file":if(campo.value==""){d=1;b+=(campo.name+"\n")}break;case"text":if(campo.value==""){d=1;b+=(campo.name+"\n")}break;case"textarea":if(campo.value==""){d=1;b+=(campo.name+"\n")}break;case"radio":var c=false;for(j=0;j<k.elements[campo.name].length;j++){if(k.elements[campo.name][j].checked){c=true}}if(!c){d=1;b+=(campo.name+"\n")}break;default:}}}}if(d==1){if(lingua=="ita"){alert("ATTENZIONE: Per procedere e' necessario compilare tutti i campi obbligatori")}else{alert("ATTENTION: Fill all required fields")}}else{k.submit()}}function isNumber(b){if(isNaN(b.value)&&b.value!=""){if(lingua=="ita"){alert("valore numerico !!")}else{if(lingua=="eng"){alert("numeric value !!")}else{alert("valore numerico !!")}}b.value=""}}function AJAXPageCall(d){var b=AJAXPageCall.arguments;var f=b.length;var c=1;if(f>=c){if((f-c)%2==0){var e=new Object();for(i=c;i<f;i++){if(i%2==(c%2)){e[b[i]]=b[i+1]}}AjaxRequest.get({url:d,parameters:e,onSuccess:function(g){},onError:function(g){}})}}}function AjaxRequest(){var b=new Object();b.timeout=null;b.generateUniqueUrl=true;b.url=window.location.href;b.method="GET";b.async=true;b.username=null;b.password=null;b.parameters=new Object();b.requestIndex=AjaxRequest.numAjaxRequests++;b.responseReceived=false;b.groupName=null;b.queryString="";b.responseText=null;b.responseXML=null;b.status=null;b.statusText=null;b.aborted=false;b.xmlHttpRequest=null;b.onTimeout=null;b.onLoading=null;b.onLoaded=null;b.onInteractive=null;b.onComplete=null;b.onSuccess=null;b.onError=null;b.onGroupBegin=null;b.onGroupEnd=null;b.xmlHttpRequest=AjaxRequest.getXmlHttpRequest();if(b.xmlHttpRequest==null){return null}b.xmlHttpRequest.onreadystatechange=function(){if(b==null||b.xmlHttpRequest==null){return}if(b.xmlHttpRequest.readyState==1){b.onLoadingInternal(b)}if(b.xmlHttpRequest.readyState==2){b.onLoadedInternal(b)}if(b.xmlHttpRequest.readyState==3){b.onInteractiveInternal(b)}if(b.xmlHttpRequest.readyState==4){b.onCompleteInternal(b)}};b.onLoadingInternalHandled=false;b.onLoadedInternalHandled=false;b.onInteractiveInternalHandled=false;b.onCompleteInternalHandled=false;b.onLoadingInternal=function(){if(b.onLoadingInternalHandled){return}AjaxRequest.numActiveAjaxRequests++;if(AjaxRequest.numActiveAjaxRequests==1&&typeof(window.AjaxRequestBegin)=="function"){AjaxRequestBegin()}if(b.groupName!=null){if(typeof(AjaxRequest.numActiveAjaxGroupRequests[b.groupName])=="undefined"){AjaxRequest.numActiveAjaxGroupRequests[b.groupName]=0}AjaxRequest.numActiveAjaxGroupRequests[b.groupName]++;if(AjaxRequest.numActiveAjaxGroupRequests[b.groupName]==1&&typeof(b.onGroupBegin)=="function"){b.onGroupBegin(b.groupName)}}if(typeof(b.onLoading)=="function"){b.onLoading(b)}b.onLoadingInternalHandled=true};b.onLoadedInternal=function(){if(b.onLoadedInternalHandled){return}if(typeof(b.onLoaded)=="function"){b.onLoaded(b)}b.onLoadedInternalHandled=true};b.onInteractiveInternal=function(){if(b.onInteractiveInternalHandled){return}if(typeof(b.onInteractive)=="function"){b.onInteractive(b)}b.onInteractiveInternalHandled=true};b.onCompleteInternal=function(){if(b.onCompleteInternalHandled||b.aborted){return}b.onCompleteInternalHandled=true;AjaxRequest.numActiveAjaxRequests--;if(AjaxRequest.numActiveAjaxRequests==0&&typeof(window.AjaxRequestEnd)=="function"){AjaxRequestEnd(b.groupName)}if(b.groupName!=null){AjaxRequest.numActiveAjaxGroupRequests[b.groupName]--;if(AjaxRequest.numActiveAjaxGroupRequests[b.groupName]==0&&typeof(b.onGroupEnd)=="function"){b.onGroupEnd(b.groupName)}}b.responseReceived=true;b.status=b.xmlHttpRequest.status;b.statusText=b.xmlHttpRequest.statusText;b.responseText=b.xmlHttpRequest.responseText;b.responseXML=b.xmlHttpRequest.responseXML;if(typeof(b.onComplete)=="function"){b.onComplete(b)}if(b.xmlHttpRequest.status==200&&typeof(b.onSuccess)=="function"){b.onSuccess(b)}else{if(typeof(b.onError)=="function"){b.onError(b)}}delete b.xmlHttpRequest.onreadystatechange;b.xmlHttpRequest=null};b.onTimeoutInternal=function(){if(b!=null&&b.xmlHttpRequest!=null&&!b.onCompleteInternalHandled){b.aborted=true;b.xmlHttpRequest.abort();AjaxRequest.numActiveAjaxRequests--;if(AjaxRequest.numActiveAjaxRequests==0&&typeof(window.AjaxRequestEnd)=="function"){AjaxRequestEnd(b.groupName)}if(b.groupName!=null){AjaxRequest.numActiveAjaxGroupRequests[b.groupName]--;if(AjaxRequest.numActiveAjaxGroupRequests[b.groupName]==0&&typeof(b.onGroupEnd)=="function"){b.onGroupEnd(b.groupName)}}if(typeof(b.onTimeout)=="function"){b.onTimeout(b)}delete b.xmlHttpRequest.onreadystatechange;b.xmlHttpRequest=null}};b.process=function(){if(b.xmlHttpRequest!=null){if(b.generateUniqueUrl&&b.method=="GET"){b.parameters.AjaxRequestUniqueId=new Date().getTime()+""+b.requestIndex}var d=null;for(var c in b.parameters){if(b.queryString.length>0){b.queryString+="&"}b.queryString+=encodeURIComponent(c)+"="+encodeURIComponent(b.parameters[c])}if(b.method=="GET"){if(b.queryString.length>0){b.url+=((b.url.indexOf("?")>-1)?"&":"?")+b.queryString}}b.xmlHttpRequest.open(b.method,b.url,b.async,b.username,b.password);if(b.method=="POST"){if(typeof(b.xmlHttpRequest.setRequestHeader)!="undefined"){b.xmlHttpRequest.setRequestHeader("Content-type","application/x-www-form-urlencoded")}d=b.queryString}if(b.timeout>0){setTimeout(b.onTimeoutInternal,b.timeout)}b.xmlHttpRequest.send(d)}};b.handleArguments=function(c){for(var d in c){if(typeof(b[d])=="undefined"){b.parameters[d]=c[d]}else{b[d]=c[d]}}};b.getAllResponseHeaders=function(){if(b.xmlHttpRequest!=null){if(b.responseReceived){return b.xmlHttpRequest.getAllResponseHeaders()}alert("Cannot getAllResponseHeaders because a response has not yet been received")}};b.getResponseHeader=function(c){if(b.xmlHttpRequest!=null){if(b.responseReceived){return b.xmlHttpRequest.getResponseHeader(c)}alert("Cannot getResponseHeader because a response has not yet been received")}};return b}AjaxRequest.getXmlHttpRequest=function(){if(window.XMLHttpRequest){return new XMLHttpRequest()}else{if(window.ActiveXObject){
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
		try {
			return new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				return new ActiveXObject("Microsoft.XMLHTTP");
			} catch (E) {
				return null;
			}
		}
		@end @*/
}else{return null}}};AjaxRequest.isActive=function(){return(AjaxRequest.numActiveAjaxRequests>0)};AjaxRequest.get=function(b){AjaxRequest.doRequest("GET",b)};AjaxRequest.post=function(b){AjaxRequest.doRequest("POST",b)};AjaxRequest.doRequest=function(d,b){if(typeof(b)!="undefined"&&b!=null){var c=new AjaxRequest();c.method=d;c.handleArguments(b);c.process()}};AjaxRequest.submit=function(b,c){var e=new AjaxRequest();if(e==null){return false}var d=AjaxRequest.serializeForm(b);e.method=b.method.toUpperCase();e.url=b.action;e.handleArguments(c);e.queryString=d;e.process();return true};AjaxRequest.serializeForm=function(c){var f=c.elements;var b=f.length;var h="";this.addField=function(k,l){if(h.length>0){h+="&"}h+=encodeURIComponent(k)+"="+encodeURIComponent(l)};for(var e=0;e<b;e++){var g=f[e];if(!g.disabled){switch(g.type){case"text":case"password":case"hidden":case"textarea":this.addField(g.name,g.value);break;case"select-one":if(g.selectedIndex>=0){this.addField(g.name,g.options[g.selectedIndex].value)}break;case"select-multiple":for(var d=0;d<g.options.length;d++){if(g.options[d].selected){this.addField(g.name,g.options[d].value)}}break;case"checkbox":case"radio":if(g.checked){this.addField(g.name,g.value)}break}}}return h};AjaxRequest.numActiveAjaxRequests=0;AjaxRequest.numActiveAjaxGroupRequests=new Object();AjaxRequest.numAjaxRequests=0;if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(p,d,r,f,m,n,k,g,e,o){if(!document.getElementById){return}this.DETECT_KEY=o?o:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(p){this.setAttribute("swf",p)}if(d){this.setAttribute("id",d)}if(r){this.setAttribute("width",r)}if(f){this.setAttribute("height",f)}if(m){this.setAttribute("version",new deconcept.PlayerVersion(m.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(n){this.addParam("bgcolor",n)}var b=k?k:"high";this.addParam("quality",b);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var l=(g)?g:window.location;this.setAttribute("xiRedirectUrl",l);this.setAttribute("redirectUrl","");if(e){this.setAttribute("redirectUrl",e)}};deconcept.SWFObject.prototype={useExpressInstall:function(b){this.xiSWFPath=!b?"expressinstall.swf":b;this.setAttribute("useExpressInstall",true)},setAttribute:function(b,c){this.attributes[b]=c},getAttribute:function(b){return this.attributes[b]},addParam:function(c,b){this.params[c]=b},getParams:function(){return this.params},addVariable:function(c,b){this.variables[c]=b},getVariable:function(b){return this.variables[b]},getVariables:function(){return this.variables},getVariablePairs:function(){var d=new Array();var c;var b=this.getVariables();for(c in b){d[d.length]=c+"="+b[c]}return d},getSWFHTML:function(){var c="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}c='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';c+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var g=this.getParams();for(var f in g){c+=[f]+'="'+g[f]+'" '}var e=this.getVariablePairs().join("&");if(e.length>0){c+='flashvars="'+e+'"'}c+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}c='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';c+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var d=this.getParams();for(var f in d){c+='<param name="'+f+'" value="'+d[f]+'" />'}var b=this.getVariablePairs().join("&");if(b.length>0){c+='<param name="flashvars" value="'+b+'" />'}c+="</object>"}return c},write:function(c){if(this.getAttribute("useExpressInstall")){var b=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var d=(typeof c=="string")?document.getElementById(c):c;d.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var g=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var b=navigator.plugins["Shockwave Flash"];if(b&&b.description){g=new deconcept.PlayerVersion(b.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var c=1;var d=3;while(c){try{d++;c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+d);g=new deconcept.PlayerVersion([d,0,0])}catch(f){c=null}}}else{try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(f){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");g=new deconcept.PlayerVersion([6,0,21]);c.AllowScriptAccess="always"}catch(f){if(g.major==6){return g}}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(f){}}if(c!=null){g=new deconcept.PlayerVersion(c.GetVariable("$version").split(" ")[1].split(","))}}}return g};deconcept.PlayerVersion=function(b){this.major=b[0]!=null?parseInt(b[0]):0;this.minor=b[1]!=null?parseInt(b[1]):0;this.rev=b[2]!=null?parseInt(b[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(b){if(this.major<b.major){return false}if(this.major>b.major){return true}if(this.minor<b.minor){return false}if(this.minor>b.minor){return true}if(this.rev<b.rev){return false}return true};deconcept.util={getRequestParameter:function(d){var e=document.location.search||document.location.hash;if(d==null){return e}if(e){var c=e.substring(1).split("&");for(var b=0;b<c.length;b++){if(c[b].substring(0,c[b].indexOf("="))==d){return c[b].substring((c[b].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var c=document.getElementsByTagName("OBJECT");for(var d=c.length-1;d>=0;d--){c[d].style.display="none";for(var b in c[d]){if(typeof c[d][b]=="function"){c[d][b]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(b){return document.all[b]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;