var selects,inputs,radios=[],checkboxes=[],hovers=[],buttons=[],selectText="Selezionare un'opzione";function initniceforms(){-999==findPosX(document.getElementById("stylesheetTest"))&&(replaceSelects(),replaceRadios());hoverEffects();buttonHovers()}
function replaceRadios(){for(var b=document.getElementsByTagName("input"),d=0,e=0;e<b.length;e++)"radio"==b[e].type&&(radios[d]=b[e],++d);for(e=0;e<radios.length;e++){radios[e].className="transparent";var b=findPosX(radios[e]),d=findPosY(radios[e]),c=document.createElement("div");if(radios[e].checked)radios[e].nextSibling.className="chosen",c.className="radioAreaChecked";else if(!radios[e].checked)c.className="radioAreaUnchecked";c.style.left=b+"px";c.style.top=d+"px";c.id="myRadio"+e;radios[e].onclick=
new Function("checkRadio("+e+")");document.getElementsByTagName("body")[0].appendChild(c)}}
function replaceCheckboxes(){for(var b=document.getElementsByTagName("input"),d=0,e=0;e<b.length;e++)"checkbox"==b[e].type&&(checkboxes[d]=b[e],++d);for(e=0;e<checkboxes.length;e++){checkboxes[e].className="transparent";var b=findPosX(checkboxes[e]),d=findPosY(checkboxes[e]),c=document.createElement("div");if(checkboxes[e].checked)checkboxes[e].nextSibling.className="chosen",c.className="checkboxAreaChecked";else if(!checkboxes[e].checked)c.className="checkboxAreaUnchecked";c.style.left=b+"px";c.style.top=
d+"px";c.id="myCheck"+e;document.getElementsByTagName("body")[0].appendChild(c);checkboxes[e].onclick=new Function("checkCheck("+e+")")}}
function replaceSelects(){selects=document.getElementsByTagName("select");for(var b=0;b<selects.length;b++){var d=selects[b],e=document.createElement("div"),c=document.createElement("div"),k=document.createElement("div"),g=document.createElement("div"),f=document.createElement("a"),d=document.createTextNode(d.options[d.selectedIndex].text);g.id="mySelectText"+b;f.href="javascript:showOptions("+b+")";e.className="selectArea";c.className="left";k.className="right";g.className="center";k.appendChild(f);
g.appendChild(d);e.appendChild(c);e.appendChild(k);e.appendChild(g);selects[b].style.display="none";selects[b].parentNode.insertBefore(e,selects[b]);c=document.createElement("div");c.className="optionsDivInvisible";c.id="optionsDiv"+b;c.style.left=findPosX(e)+8+"px";c.style.top=findPosY(e)+4+"px";for(e=0;e<selects[b].options.length;e++)k=document.createElement("p"),g=document.createElement("a"),f=document.createTextNode(selects[b].options[e].text),g.href="javascript:showOptions("+b+"); selectMe('"+
selects[b].id+"',"+e+","+b+");",g.appendChild(f),k.appendChild(g),c.appendChild(k);document.getElementsByTagName("body")[0].appendChild(c)}}function showOptions(b){elem=document.getElementById("optionsDiv"+b);if("optionsDivInvisible"==elem.className)elem.className="optionsDivVisible";else if("optionsDivVisible"==elem.className)elem.className="optionsDivInvisible"}
function selectMe(b,d,e){selectField=document.getElementById(b);for(b=0;b<selectField.options.length;b++)selectField.options[b].selected=b==d?"selected":"";textVar=document.getElementById("mySelectText"+e);d=document.createTextNode(selectField.options[d].text);textVar.replaceChild(d,textVar.childNodes[0])}function findPosY(b){for(var d=0;b.offsetParent;)d+=b.offsetTop,b=b.offsetParent;return d}function findPosX(b){var d=0;if(b)for(;b.offsetParent;)d+=b.offsetLeft,b=b.offsetParent;return d}
function checkRadio(b){if(radios[b].checked)for(var d=0;d<radios.length;d++)if(d!=b)document.getElementById("myRadio"+d).className="radioAreaUnchecked",radios[d].nextSibling.className="";else{if(d==b)document.getElementById("myRadio"+d).className="radioAreaChecked",radios[b].nextSibling.className="chosen"}else if(!radios[b].checked)document.getElementById("myRadio"+b).className="radioAreaUnchecked",radios[b].nextSibling.className=""}
function checkCheck(b){if(checkboxes[b].checked)for(var d=0;d<checkboxes.length;d++){if(d==b)document.getElementById("myCheck"+d).className="checkboxAreaChecked",checkboxes[b].nextSibling.className="chosen"}else if(!checkboxes[b].checked)document.getElementById("myCheck"+b).className="checkboxAreaUnchecked",checkboxes[b].nextSibling.className=""}
function hoverEffects(){for(var b=document.getElementsByTagName("input"),d=0,e=0;e<b.length;e++)if("text"==b[e].type||"password"==b[e].type)hovers[d]=b[e],++d;b=document.getElementsByTagName("textarea");for(e=0;e<b.length;e++)hovers[d]=b[e],++d;for(e=0;e<hovers.length;e++)hovers[e].onfocus=function(){this.className+="Hovered";if(!this.getAttribute("readonly")&&(this.getAttribute("type")&&"text"==this.getAttribute("type").toLowerCase()||"textarea"==this.tagName.toLowerCase()))if(-1!=this.className.indexOf("textinput")||
-1!=this.className.indexOf("textarea"))this.value=""},hovers[e].onblur=function(){this.className=this.className.replace(/Hovered/g,"")}}function buttonHovers(){for(var b=document.getElementsByTagName("input"),d=0,e=0;e<b.length;e++)"submit"==b[e].type&&(buttons[d]=b[e],++d);for(e=0;e<buttons.length;e++)buttons[e].onmouseover=function(){this.className+="Hovered"},buttons[e].onmouseout=function(){this.className=this.className.replace(/Hovered/g,"")}};if("undefined"==typeof deconcept)var deconcept={};if("undefined"==typeof deconcept.util)deconcept.util={};if("undefined"==typeof deconcept.SWFObjectUtil)deconcept.SWFObjectUtil={};
deconcept.SWFObject=function(b,d,e,c,k,g,f,l,j,t,r){if(document.createElement&&document.getElementById)this.DETECT_KEY=r?r:"detectflash",this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY),this.params={},this.variables={},this.attributes=[],b&&this.setAttribute("swf",b),d&&this.setAttribute("id",d),e&&this.setAttribute("width",e),c&&this.setAttribute("height",c),k&&this.setAttribute("version",new deconcept.PlayerVersion(k.toString().split("."))),this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),
f),g&&this.addParam("bgcolor",g),this.addParam("quality",l?l:"high"),this.setAttribute("useExpressInstall",f),this.setAttribute("doExpressInstall",!1),this.setAttribute("xiRedirectUrl",j?j:window.location),this.setAttribute("redirectUrl",""),t&&this.setAttribute("redirectUrl",t)};
deconcept.SWFObject.prototype={setAttribute:function(b,d){this.attributes[b]=d},getAttribute:function(b){return this.attributes[b]},addParam:function(b,d){this.params[b]=d},getParams:function(){return this.params},addVariable:function(b,d){this.variables[b]=d},getVariable:function(b){return this.variables[b]},getVariables:function(){return this.variables},getVariablePairs:function(){var b=[],d,e=this.getVariables();for(d in e)b.push(d+"="+e[d]);return b},getSWFHTML:function(){var b="";if(navigator.plugins&&
navigator.mimeTypes&&navigator.mimeTypes.length){this.getAttribute("doExpressInstall")&&this.addVariable("MMplayerType","PlugIn");var b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"',b=b+(' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" '),d=this.getParams(),e;for(e in d)b+=[e]+'="'+d[e]+'" ';e=this.getVariablePairs().join("&");0<e.length&&(b+='flashvars="'+e+'"');
b+="/>"}else{this.getAttribute("doExpressInstall")&&this.addVariable("MMplayerType","ActiveX");b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';d=this.getParams();for(e in d)b+='<param name="'+e+'" value="'+d[e]+'" />';e=this.getVariablePairs().join("&");0<e.length&&(b+='<param name="flashvars" value="'+e+
'" />');b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")&&this.installedVer.versionIsValid(new deconcept.PlayerVersion([6,0,65]))&&!this.installedVer.versionIsValid(this.getAttribute("version")))this.setAttribute("doExpressInstall",!0),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")))return("string"==typeof b?document.getElementById(b):b).innerHTML=this.getSWFHTML(),!0;""!=this.getAttribute("redirectUrl")&&document.location.replace(this.getAttribute("redirectUrl"));return!1}};
deconcept.SWFObjectUtil.getPlayerVersion=function(b,d){var e=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var c=navigator.plugins["Shockwave Flash"];c&&c.description&&(e=new deconcept.PlayerVersion(c.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".")))}else{try{for(var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),k=3;null!=c;k++)c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+k),e=new deconcept.PlayerVersion([k,
0,0])}catch(g){}if(b&&e.major>b.major)return e;if(!b||(0!=b.minor||0!=b.rev)&&e.major==b.major||6!=e.major||d)try{e=new deconcept.PlayerVersion(c.GetVariable("$version").split(" ")[1].split(","))}catch(f){}}return e};deconcept.PlayerVersion=function(b){this.major=null!=parseInt(b[0])?parseInt(b[0]):0;this.minor=parseInt(b[1])||0;this.rev=parseInt(b[2])||0};
deconcept.PlayerVersion.prototype.versionIsValid=function(b){return this.major<b.major?!1:this.major>b.major?!0:this.minor<b.minor?!1:this.minor>b.minor?!0:this.rev<b.rev?!1:!0};deconcept.util={getRequestParameter:function(b){var d=document.location.search||document.location.hash;if(d){var b=d.indexOf(b+"="),e=-1<d.indexOf("&",b)?d.indexOf("&",b):d.length;if(1<d.length&&-1<b)return d.substring(d.indexOf("=",b)+1,e)}return""}};
if(null==Array.prototype.push)Array.prototype.push=function(b){this[this.length]=b;return this.length};var getQueryParamValue=deconcept.util.getRequestParameter,FlashObject=deconcept.SWFObject,SWFObject=deconcept.SWFObject;(function(){function b(a,i){i.src?c.ajax({url:i.src,async:!1,dataType:"script"}):c.globalEval(i.text||i.textContent||i.innerHTML||"");i.parentNode&&i.parentNode.removeChild(i)}function d(){if(!y){y=!0;document.addEventListener&&!c.browser.opera&&document.addEventListener("DOMContentLoaded",c.ready,!1);c.browser.msie&&window==top&&function(){if(!c.isReady){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}c.ready()}}();c.browser.opera&&document.addEventListener("DOMContentLoaded",
function(){if(!c.isReady){for(var a=0;a<document.styleSheets.length;a++)if(document.styleSheets[a].disabled){setTimeout(arguments.callee,0);return}c.ready()}},!1);if(c.browser.safari){var a;(function(){if(!c.isReady)if("loaded"!=document.readyState&&"complete"!=document.readyState)setTimeout(arguments.callee,0);else{if(void 0===a)a=c("style, link[rel=stylesheet]").length;document.styleSheets.length!=a?setTimeout(arguments.callee,0):c.ready()}})()}c.event.add(window,"load",c.ready)}}if(window.jQuery)var e=
window.jQuery;var c=window.jQuery=function(a,i){return new c.prototype.init(a,i)};if(window.$)var k=window.$;window.$=c;var g=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,f=/^.[^:#\[\.]*$/;c.fn=c.prototype={init:function(a,i){a=a||document;if(a.nodeType)return this[0]=a,this.length=1,this;if("string"==typeof a){var b=g.exec(a);if(b&&(b[1]||!i))if(b[1])a=c.clean([b[1]],i);else{var d=document.getElementById(b[3]);if(d){if(d.id!=b[3])return c().find(a);this[0]=d;this.length=1;return this}a=[]}else return(new c(i)).find(a)}else if(c.isFunction(a))return(new c(document))[c.fn.ready?
"ready":"load"](a);return this.setArray(a.constructor==Array&&a||(a.jquery||a.length&&a!=window&&!a.nodeType&&void 0!=a[0]&&a[0].nodeType)&&c.makeArray(a)||[a])},jquery:"1.2.3",size:function(){return this.length},length:0,get:function(a){return void 0==a?c.makeArray(this):this[a]},pushStack:function(a){a=c(a);a.prevObject=this;return a},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,i){return c.each(this,a,i)},index:function(a){var c=-1;this.each(function(b){this==
a&&(c=b)});return c},attr:function(a,i,b){var d=a;if(a.constructor==String){if(void 0==i)return this.length&&c[b||"attr"](this[0],a)||void 0;d={};d[a]=i}return this.each(function(i){for(a in d)c.attr(b?this.style:this,a,c.prop(this,d[a],b,i,a))})},css:function(a,c){if(("width"==a||"height"==a)&&0>parseFloat(c))c=void 0;return this.attr(a,c,"curCSS")},text:function(a){if("object"!=typeof a&&null!=a)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(a));var i="";c.each(a||
this,function(){c.each(this.childNodes,function(){8!=this.nodeType&&(i+=1!=this.nodeType?this.nodeValue:c.fn.text([this]))})});return i},wrapAll:function(a){this[0]&&c(a,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){for(var a=this;a.firstChild;)a=a.firstChild;return a}).append(this);return this},wrapInner:function(a){return this.each(function(){c(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},append:function(){return this.domManip(arguments,
!0,!1,function(a){1==this.nodeType&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,!0,function(a){1==this.nodeType&&this.insertBefore(a,this.firstChild)})},before:function(){return this.domManip(arguments,!1,!1,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,!1,!0,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||c([])},find:function(a){var i=c.map(this,function(i){return c.find(a,
i)});return this.pushStack(/[^+>] [^+>]/.test(a)||-1<a.indexOf("..")?c.unique(i):i)},clone:function(a){var i=this.map(function(){if(c.browser.msie&&!c.isXMLDoc(this)){var a=this.cloneNode(!0),i=document.createElement("div");i.appendChild(a);return c.clean([i.innerHTML])[0]}return this.cloneNode(!0)}),b=i.find("*").andSelf().each(function(){void 0!=this[l]&&(this[l]=null)});!0===a&&this.find("*").andSelf().each(function(a){if(3!=this.nodeType){var i=c.data(this,"events"),d;for(d in i)for(var e in i[d])c.event.add(b[a],
d,i[d][e],i[d][e].data)}});return i},filter:function(a){return this.pushStack(c.isFunction(a)&&c.grep(this,function(c,b){return a.call(c,b)})||c.multiFilter(a,this))},not:function(a){if(a.constructor==String){if(f.test(a))return this.pushStack(c.multiFilter(a,this,!0));a=c.multiFilter(a,this)}var i=a.length&&void 0!==a[a.length-1]&&!a.nodeType;return this.filter(function(){return i?0>c.inArray(this,a):this!=a})},add:function(a){return!a?this:this.pushStack(c.merge(this.get(),a.constructor==String?
c(a).get():void 0!=a.length&&(!a.nodeName||c.nodeName(a,"form"))?a:[a]))},is:function(a){return a?0<c.multiFilter(a,this).length:!1},hasClass:function(a){return this.is("."+a)},val:function(a){if(void 0==a){if(this.length){var i=this[0];if(c.nodeName(i,"select")){var b=i.selectedIndex,d=[],e=i.options,i="select-one"==i.type;if(0>b)return null;for(var h=i?b:0,b=i?b+1:e.length;h<b;h++){var g=e[h];if(g.selected){a=c.browser.msie&&!g.attributes.value.specified?g.text:g.value;if(i)return a;d.push(a)}}return d}return(this[0].value||
"").replace(/\r/g,"")}}else return this.each(function(){if(1==this.nodeType)if(a.constructor==Array&&/radio|checkbox/.test(this.type))this.checked=0<=c.inArray(this.value,a)||0<=c.inArray(this.name,a);else if(c.nodeName(this,"select")){var i=a.constructor==Array?a:[a];c("option",this).each(function(){this.selected=0<=c.inArray(this.value,i)||0<=c.inArray(this.text,i)});if(!i.length)this.selectedIndex=-1}else this.value=a})},html:function(a){return void 0==a?this.length?this[0].innerHTML:null:this.empty().append(a)},
replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,a+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(a){return this.pushStack(c.map(this,function(c,b){return a.call(c,b,c)}))},andSelf:function(){return this.add(this.prevObject)},data:function(a,i){var b=a.split(".");b[1]=b[1]?"."+b[1]:"";if(null==i){var d=this.triggerHandler("getData"+b[1]+"!",[b[0]]);void 0==d&&this.length&&(d=c.data(this[0],a));return null==
d&&b[1]?this.data(b[0]):d}return this.trigger("setData"+b[1]+"!",[b[0],i]).each(function(){c.data(this,a,i)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})},domManip:function(a,i,B,d){var e=1<this.length,h;return this.each(function(){h||(h=c.clean(a,this.ownerDocument),B&&h.reverse());var g=this;i&&c.nodeName(this,"table")&&c.nodeName(h[0],"tr")&&(g=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody")));var f=c([]);c.each(h,
function(){var a=e?c(this).clone(!0)[0]:this;c.nodeName(a,"script")?f=f.add(a):(1==a.nodeType&&(f=f.add(c("script",a).remove())),d.call(g,a))});f.each(b)})}};c.prototype.init.prototype=c.prototype;c.extend=c.fn.extend=function(){var a=arguments[0]||{},i=1,b=arguments.length,d=!1,e;a.constructor==Boolean&&(d=a,a=arguments[1]||{},i=2);"object"!=typeof a&&"function"!=typeof a&&(a={});1==b&&(a=this,i=0);for(;i<b;i++)if(null!=(e=arguments[i]))for(var h in e)a!==e[h]&&(d&&e[h]&&"object"==typeof e[h]&&a[h]&&
!e[h].nodeType?a[h]=c.extend(a[h],e[h]):void 0!=e[h]&&(a[h]=e[h]));return a};var l="jQuery"+(new Date).getTime(),j=0,t={},r=/z-?index|font-?weight|opacity|zoom|line-?height/i;c.extend({noConflict:function(a){window.$=k;if(a)window.jQuery=e;return c},isFunction:function(a){return!!a&&"string"!=typeof a&&!a.nodeName&&a.constructor!=Array&&/function/i.test(a+"")},isXMLDoc:function(a){return a.documentElement&&!a.body||a.tagName&&a.ownerDocument&&!a.ownerDocument.body},globalEval:function(a){if(a=c.trim(a)){var i=
document.getElementsByTagName("head")[0]||document.documentElement,b=document.createElement("script");b.type="text/javascript";c.browser.msie?b.text=a:b.appendChild(document.createTextNode(a));i.appendChild(b);i.removeChild(b)}},nodeName:function(a,c){return a.nodeName&&a.nodeName.toUpperCase()==c.toUpperCase()},cache:{},data:function(a,i,b){var a=a==window?t:a,d=a[l];d||(d=a[l]=++j);i&&!c.cache[d]&&(c.cache[d]={});void 0!=b&&(c.cache[d][i]=b);return i?c.cache[d][i]:d},removeData:function(a,i){var a=
a==window?t:a,b=a[l];if(i){if(c.cache[b]){delete c.cache[b][i];i="";for(i in c.cache[b])break;i||c.removeData(a)}}else{try{delete a[l]}catch(d){a.removeAttribute&&a.removeAttribute(l)}delete c.cache[b]}},each:function(a,c,b){if(b)if(void 0==a.length)for(var d in a){if(!1===c.apply(a[d],b))break}else{d=0;for(var e=a.length;d<e&&!(!1===c.apply(a[d],b));d++);}else if(void 0==a.length)for(d in a){if(!1===c.call(a[d],d,a[d]))break}else{d=0;e=a.length;for(b=a[0];d<e&&!1!==c.call(b,d,b);b=a[++d]);}return a},
prop:function(a,i,b,d,e){c.isFunction(i)&&(i=i.call(a,d));return i&&i.constructor==Number&&"curCSS"==b&&!r.test(e)?i+"px":i},className:{add:function(a,i){c.each((i||"").split(/\s+/),function(i,b){1==a.nodeType&&!c.className.has(a.className,b)&&(a.className+=(a.className?" ":"")+b)})},remove:function(a,i){if(1==a.nodeType)a.className=void 0!=i?c.grep(a.className.split(/\s+/),function(a){return!c.className.has(i,a)}).join(" "):""},has:function(a,i){return-1<c.inArray(i,(a.className||a).toString().split(/\s+/))}},
swap:function(a,c,b){var d={},e;for(e in c)d[e]=a.style[e],a.style[e]=c[e];b.call(a);for(e in c)a.style[e]=d[e]},css:function(a,i,b){if("width"==i||"height"==i){var d,b={position:"absolute",visibility:"hidden",display:"block"},e="width"==i?["Left","Right"]:["Top","Bottom"],h=function(){d="width"==i?a.offsetWidth:a.offsetHeight;var b=0,B=0;c.each(e,function(){b+=parseFloat(c.curCSS(a,"padding"+this,!0))||0;B+=parseFloat(c.curCSS(a,"border"+this+"Width",!0))||0});d-=Math.round(b+B)};c(a).is(":visible")?
h():c.swap(a,b,h);return Math.max(0,d)}return c.curCSS(a,i,b)},curCSS:function(a,i,b){function d(a){if(!c.browser.safari)return!1;a=document.defaultView.getComputedStyle(a,null);return!a||""==a.getPropertyValue("color")}var e;if("opacity"==i&&c.browser.msie)return e=c.attr(a.style,"opacity"),""==e?"1":e;if(c.browser.opera&&"display"==i){var h=a.style.outline;a.style.outline="0 solid black";a.style.outline=h}i.match(/float/i)&&(i=o);if(!b&&a.style&&a.style[i])e=a.style[i];else if(document.defaultView&&
document.defaultView.getComputedStyle){i.match(/float/i)&&(i="float");i=i.replace(/([A-Z])/g,"-$1").toLowerCase();if((e=document.defaultView.getComputedStyle(a,null))&&!d(a))e=e.getPropertyValue(i);else{b=[];for(h=[];a&&d(a);a=a.parentNode)h.unshift(a);for(a=0;a<h.length;a++)if(d(h[a]))b[a]=h[a].style.display,h[a].style.display="block";e="display"==i&&null!=b[h.length-1]?"none":e&&e.getPropertyValue(i)||"";for(a=0;a<b.length;a++)if(null!=b[a])h[a].style.display=b[a]}"opacity"==i&&""==e&&(e="1")}else if(a.currentStyle&&
(e=i.replace(/\-(\w)/g,function(a,c){return c.toUpperCase()}),e=a.currentStyle[i]||a.currentStyle[e],!/^\d+(px)?$/i.test(e)&&/^\d/.test(e)))i=a.style.left,b=a.runtimeStyle.left,a.runtimeStyle.left=a.currentStyle.left,a.style.left=e||0,e=a.style.pixelLeft+"px",a.style.left=i,a.runtimeStyle.left=b;return e},clean:function(a,b){var d=[],b=b||document;"undefined"==typeof b.createElement&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||document);c.each(a,function(a,e){if(e){e.constructor==Number&&(e=e.toString());
if("string"==typeof e){var e=e.replace(/(<(\w+)[^>]*?)\/>/g,function(a,c,b){return b.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?a:c+"></"+b+">"}),h=c.trim(e).toLowerCase(),g=b.createElement("div"),f=!h.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!h.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||h.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!h.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!h.indexOf("<td")||!h.indexOf("<th"))&&
[3,"<table><tbody><tr>","</tr></tbody></table>"]||!h.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||c.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];for(g.innerHTML=f[1]+e+f[2];f[0]--;)g=g.lastChild;if(c.browser.msie){h=!h.indexOf("<table")&&0>h.indexOf("<tbody")?g.firstChild&&g.firstChild.childNodes:"<table>"==f[1]&&0>h.indexOf("<tbody")?g.childNodes:[];for(f=h.length-1;0<=f;--f)c.nodeName(h[f],"tbody")&&!h[f].childNodes.length&&h[f].parentNode.removeChild(h[f]);
/^\s/.test(e)&&g.insertBefore(b.createTextNode(e.match(/^\s*/)[0]),g.firstChild)}e=c.makeArray(g.childNodes)}0===e.length&&!c.nodeName(e,"form")&&!c.nodeName(e,"select")||(void 0==e[0]||c.nodeName(e,"form")||e.options?d.push(e):d=c.merge(d,e))}});return d},attr:function(a,b,d){if(a&&!(3==a.nodeType||8==a.nodeType)){var e=c.isXMLDoc(a)?{}:c.props;if(e[b])return void 0!=d&&(a[e[b]]=d),a[e[b]];if(c.browser.msie&&"style"==b)return c.attr(a.style,"cssText",d);if(void 0==d&&c.browser.msie&&c.nodeName(a,
"form")&&("action"==b||"method"==b))return a.getAttributeNode(b).nodeValue;if(a.tagName){if(void 0!=d){if("type"==b&&c.nodeName(a,"input")&&a.parentNode)throw"type property can't be changed";a.setAttribute(b,""+d)}return c.browser.msie&&/href|src/.test(b)&&!c.isXMLDoc(a)?a.getAttribute(b,2):a.getAttribute(b)}if("opacity"==b&&c.browser.msie){if(void 0!=d)a.zoom=1,a.filter=(a.filter||"").replace(/alpha\([^)]*\)/,"")+("NaN"==parseFloat(d).toString()?"":"alpha(opacity="+100*d+")");return a.filter&&0<=
a.filter.indexOf("opacity=")?(parseFloat(a.filter.match(/opacity=([^)]*)/)[1])/100).toString():""}b=b.replace(/-([a-z])/ig,function(a,c){return c.toUpperCase()});void 0!=d&&(a[b]=d);return a[b]}},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var c=[];if("array"!=typeof a)for(var b=0,d=a.length;b<d;b++)c.push(a[b]);else c=a.slice(0);return c},inArray:function(a,c){for(var b=0,d=c.length;b<d;b++)if(c[b]==a)return b;return-1},merge:function(a,b){if(c.browser.msie)for(var d=
0;b[d];d++)8!=b[d].nodeType&&a.push(b[d]);else for(d=0;b[d];d++)a.push(b[d]);return a},unique:function(a){var b=[],d={};try{for(var e=0,g=a.length;e<g;e++){var h=c.data(a[e]);d[h]||(d[h]=!0,b.push(a[e]))}}catch(f){b=a}return b},grep:function(a,c,b){for(var d=[],e=0,h=a.length;e<h;e++)(!b&&c(a[e],e)||b&&!c(a[e],e))&&d.push(a[e]);return d},map:function(a,c){for(var b=[],d=0,e=a.length;d<e;d++){var h=c(a[d],d);null!==h&&void 0!=h&&(h.constructor!=Array&&(h=[h]),b=b.concat(h))}return b}});var n=navigator.userAgent.toLowerCase();
c.browser={version:(n.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(n),opera:/opera/.test(n),msie:/msie/.test(n)&&!/opera/.test(n),mozilla:/mozilla/.test(n)&&!/(compatible|webkit)/.test(n)};var o=c.browser.msie?"styleFloat":"cssFloat";c.extend({boxModel:!c.browser.msie||"CSS1Compat"==document.compatMode,props:{"for":"htmlFor","class":"className","float":o,cssFloat:o,styleFloat:o,innerHTML:"innerHTML",className:"className",value:"value",disabled:"disabled",checked:"checked",
readonly:"readOnly",selected:"selected",maxlength:"maxLength",selectedIndex:"selectedIndex",defaultValue:"defaultValue",tagName:"tagName",nodeName:"nodeName"}});c.each({parent:function(a){return a.parentNode},parents:function(a){return c.dir(a,"parentNode")},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},siblings:function(a){return c.sibling(a.parentNode.firstChild,
a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(a){var d=c.map(this,b);a&&"string"==typeof a&&(d=c.multiFilter(a,d));return this.pushStack(c.unique(d))}});c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(){var a=arguments;return this.each(function(){for(var d=
0,e=a.length;d<e;d++)c(a[d])[b](this)})}});c.each({removeAttr:function(a){c.attr(this,a,"");1==this.nodeType&&this.removeAttribute(a)},addClass:function(a){c.className.add(this,a)},removeClass:function(a){c.className.remove(this,a)},toggleClass:function(a){c.className[c.className.has(this,a)?"remove":"add"](this,a)},remove:function(a){if(!a||c.filter(a,[this]).r.length)c("*",this).add(this).each(function(){c.event.remove(this);c.removeData(this)}),this.parentNode&&this.parentNode.removeChild(this)},
empty:function(){for(c(">*",this).remove();this.firstChild;)this.removeChild(this.firstChild)}},function(a,b){c.fn[a]=function(){return this.each(b,arguments)}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn[d]=function(a){return this[0]==window?c.browser.opera&&document.body["client"+b]||c.browser.safari&&window["inner"+b]||"CSS1Compat"==document.compatMode&&document.documentElement["client"+b]||document.body["client"+b]:this[0]==document?Math.max(Math.max(document.body["scroll"+
b],document.documentElement["scroll"+b]),Math.max(document.body["offset"+b],document.documentElement["offset"+b])):void 0==a?this.length?c.css(this[0],d):null:this.css(d,a.constructor==String?a:a+"px")}});var u=c.browser.safari&&417>parseInt(c.browser.version)?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uffff*_-]|\\\\.)",A=RegExp("^>\\s*("+u+"+)"),s=RegExp("^("+u+"+)(#)("+u+"+)"),w=RegExp("^([#.]?)("+u+"*)");c.extend({expr:{"":function(a,b,d){return"*"==d[2]||c.nodeName(a,d[2])},"#":function(a,c,b){return a.getAttribute("id")==
b[2]},":":{lt:function(a,c,b){return c<b[3]-0},gt:function(a,c,b){return c>b[3]-0},nth:function(a,c,b){return b[3]-0==c},eq:function(a,c,b){return b[3]-0==c},first:function(a,c){return 0==c},last:function(a,c,b,d){return c==d.length-1},even:function(a,c){return 0==c%2},odd:function(a,c){return c%2},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a},"last-child":function(a){return c.nth(a.parentNode.lastChild,1,"previousSibling")==a},"only-child":function(a){return!c.nth(a.parentNode.lastChild,
2,"previousSibling")},parent:function(a){return a.firstChild},empty:function(a){return!a.firstChild},contains:function(a,b,d){return 0<=(a.textContent||a.innerText||c(a).text()||"").indexOf(d[3])},visible:function(a){return"hidden"!=a.type&&"none"!=c.css(a,"display")&&"hidden"!=c.css(a,"visibility")},hidden:function(a){return"hidden"==a.type||"none"==c.css(a,"display")||"hidden"==c.css(a,"visibility")},enabled:function(a){return!a.disabled},disabled:function(a){return a.disabled},checked:function(a){return a.checked},
selected:function(a){return a.selected||c.attr(a,"selected")},text:function(a){return"text"==a.type},radio:function(a){return"radio"==a.type},checkbox:function(a){return"checkbox"==a.type},file:function(a){return"file"==a.type},password:function(a){return"password"==a.type},submit:function(a){return"submit"==a.type},image:function(a){return"image"==a.type},reset:function(a){return"reset"==a.type},button:function(a){return"button"==a.type||c.nodeName(a,"button")},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},
has:function(a,b,d){return c.find(d[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},animated:function(a){return c.grep(c.timers,function(c){return a==c.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,RegExp("^([:.#]*)("+u+"+)")],multiFilter:function(a,b,d){for(var e,g=[];a&&a!=e;){e=a;var h=c.filter(a,b,d),a=h.t.replace(/^\s*,\s*/,""),g=d?b=h.r:c.merge(g,h.r)}return g},find:function(a,b){if("string"!=typeof a)return[a];
if(b&&1!=b.nodeType&&9!=b.nodeType)return[];for(var b=b||document,d=[b],e=[],g,h;a&&g!=a;){var f=[];g=a;a=c.trim(a);h=!1;var j=A,m=j.exec(a);if(m){h=m[1].toUpperCase();for(var q=0;d[q];q++)for(m=d[q].firstChild;m;m=m.nextSibling)1==m.nodeType&&("*"==h||m.nodeName.toUpperCase()==h)&&f.push(m);d=f;a=a.replace(j,"");if(0==a.indexOf(" "))continue;h=!0}else if(j=/^([>+~])\s*(\w*)/i,null!=(m=j.exec(a))){f=[];q={};h=m[2].toUpperCase();for(var m=m[1],v=0,k=d.length;v<k;v++)for(var p="~"==m||"+"==m?d[v].nextSibling:
d[v].firstChild;p;p=p.nextSibling)if(1==p.nodeType){var l=c.data(p);if("~"==m&&q[l])break;if(!h||p.nodeName.toUpperCase()==h)"~"==m&&(q[l]=!0),f.push(p);if("+"==m)break}d=f;a=c.trim(a.replace(j,""));h=!0}if(a&&!h)if(a.indexOf(",")){j=s;(m=j.exec(a))?m=[0,m[2],m[3],m[1]]:(j=w,m=j.exec(a));m[2]=m[2].replace(/\\/g,"");h=d[d.length-1];if("#"==m[1]&&h&&h.getElementById&&!c.isXMLDoc(h)){d=h.getElementById(m[2]);if((c.browser.msie||c.browser.opera)&&d&&"string"==typeof d.id&&d.id!=m[2])d=c('[@id="'+m[2]+
'"]',h)[0];d=f=d&&(!m[3]||c.nodeName(d,m[3]))?[d]:[]}else{for(q=0;d[q];q++)h="#"==m[1]&&m[3]?m[3]:""!=m[1]||""==m[0]?"*":m[2],"*"==h&&"object"==d[q].nodeName.toLowerCase()&&(h="param"),f=c.merge(f,d[q].getElementsByTagName(h));"."==m[1]&&(f=c.classFilter(f,m[2]));if("#"==m[1]){d=[];for(q=0;f[q];q++)if(f[q].getAttribute("id")==m[2]){d=[f[q]];break}f=d}d=f}a=a.replace(j,"")}else b==d[0]&&d.shift(),e=c.merge(e,d),f=d=[b],a=" "+a.substr(1,a.length);if(a)f=c.filter(a,f),d=f.r,a=c.trim(f.t)}a&&(d=[]);d&&
b==d[0]&&d.shift();return e=c.merge(e,d)},classFilter:function(a,c,b){for(var c=" "+c+" ",d=[],e=0;a[e];e++){var h=0<=(" "+a[e].className+" ").indexOf(c);(!b&&h||b&&!h)&&d.push(a[e])}return d},filter:function(a,b,d){for(var e;a&&a!=e;){e=a;for(var g=c.parse,h,j=0;g[j];j++)if(h=g[j].exec(a)){a=a.substring(h[0].length);h[2]=h[2].replace(/\\/g,"");break}if(!h)break;if(":"==h[1]&&"not"==h[2])b=f.test(h[3])?c.filter(h[3],b,!0).r:c(b).not(h[3]);else if("."==h[1])b=c.classFilter(b,h[2],d);else if("["==h[1]){for(var g=
[],k=h[3],j=0,m=b.length;j<m;j++){var q=b[j],v=q[c.props[h[2]]||h[2]];if(null==v||/href|src|selected/.test(h[2]))v=c.attr(q,h[2])||"";(""==k&&!!v||"="==k&&v==h[5]||"!="==k&&v!=h[5]||"^="==k&&v&&!v.indexOf(h[5])||"$="==k&&v.substr(v.length-h[5].length)==h[5]||("*="==k||"~="==k)&&0<=v.indexOf(h[5]))^d&&g.push(q)}b=g}else if(":"==h[1]&&"nth-child"==h[2]){k={};g=[];e=/(-?)(\d*)n((?:\+|-)?\d*)/.exec("even"==h[3]&&"2n"||"odd"==h[3]&&"2n+1"||!/\D/.test(h[3])&&"0n+"+h[3]||h[3]);q=e[1]+(e[2]||1)-0;e=e[3]-
0;j=0;for(m=b.length;j<m;j++){var v=b[j],l=v.parentNode,p=c.data(l);if(!k[p]){for(var n=1,l=l.firstChild;l;l=l.nextSibling)if(1==l.nodeType)l.nodeIndex=n++;k[p]=!0}p=!1;0==q?v.nodeIndex==e&&(p=!0):0==(v.nodeIndex-e)%q&&0<=(v.nodeIndex-e)/q&&(p=!0);p^d&&g.push(v)}b=g}else{var o=c.expr[h[1]];"object"==typeof o&&(o=o[h[2]]);"string"==typeof o&&(o=eval("false||function(a,i){return "+o+";}"));b=c.grep(b,function(a,c){return o(a,c,h,b)},d)}}return{r:b,t:a}},dir:function(a,c){for(var b=[],d=a[c];d&&d!=document;)1==
d.nodeType&&b.push(d),d=d[c];return b},nth:function(a,c,b){for(var c=c||1,d=0;a&&!(1==a.nodeType&&++d==c);a=a[b]);return a},sibling:function(a,c){for(var b=[];a;a=a.nextSibling)1==a.nodeType&&(!c||a!=c)&&b.push(a);return b}});c.event={add:function(a,b,d,e){if(!(3==a.nodeType||8==a.nodeType)){c.browser.msie&&void 0!=a.setInterval&&(a=window);if(!d.guid)d.guid=this.guid++;if(void 0!=e){var g=d,d=function(){return g.apply(this,arguments)};d.data=e;d.guid=g.guid}var h=c.data(a,"events")||c.data(a,"events",
{}),f=c.data(a,"handle")||c.data(a,"handle",function(){var a;return"undefined"==typeof c||c.event.triggered?a:a=c.event.handle.apply(arguments.callee.elem,arguments)});f.elem=a;c.each(b.split(/\s+/),function(b,i){var e=i.split("."),i=e[0];d.type=e[1];e=h[i];if(!e&&(e=h[i]={},!c.event.special[i]||!1===c.event.special[i].setup.call(a)))a.addEventListener?a.addEventListener(i,f,!1):a.attachEvent&&a.attachEvent("on"+i,f);e[d.guid]=d;c.event.global[i]=!0});a=null}},guid:1,global:{},remove:function(a,b,
d){if(!(3==a.nodeType||8==a.nodeType)){var e=c.data(a,"events"),g;if(e){if(void 0==b||"string"==typeof b&&"."==b.charAt(0))for(var h in e)this.remove(a,h+(b||""));else{if(b.type)d=b.handler,b=b.type;c.each(b.split(/\s+/),function(b,i){var h=i.split("."),i=h[0];if(e[i]){if(d)delete e[i][d.guid];else for(d in e[i])(!h[1]||e[i][d].type==h[1])&&delete e[i][d];for(g in e[i])break;if(!g){if(!c.event.special[i]||!1===c.event.special[i].teardown.call(a))a.removeEventListener?a.removeEventListener(i,c.data(a,
"handle"),!1):a.detachEvent&&a.detachEvent("on"+i,c.data(a,"handle"));g=null;delete e[i]}}})}for(g in e)break;if(!g){if(b=c.data(a,"handle"))b.elem=null;c.removeData(a,"events");c.removeData(a,"handle")}}}},trigger:function(a,b,d,e,g){b=c.makeArray(b||[]);if(0<=a.indexOf("!"))var a=a.slice(0,-1),h=!0;if(d){if(3==d.nodeType||8==d.nodeType)return;var f,j=c.isFunction(d[a]||null),m=!b[0]||!b[0].preventDefault;m&&b.unshift(this.fix({type:a,target:d}));b[0].type=a;if(h)b[0].exclusive=!0;c.isFunction(c.data(d,
"handle"))&&(f=c.data(d,"handle").apply(d,b));!j&&d["on"+a]&&!1===d["on"+a].apply(d,b)&&(f=!1);m&&b.shift();g&&c.isFunction(g)&&(b=g.apply(d,null==f?b:b.concat(f)),void 0!==b&&(f=b));if(j&&!1!==e&&!1!==f&&!(c.nodeName(d,"a")&&"click"==a)){this.triggered=!0;try{d[a]()}catch(q){}}this.triggered=!1}else this.global[a]&&c("*").add([window,document]).trigger(a,b);return f},handle:function(a){var b,a=c.event.fix(a||window.event||{}),d=a.type.split(".");a.type=d[0];var e=c.data(this,"events")&&c.data(this,
"events")[a.type],g=Array.prototype.slice.call(arguments,1);g.unshift(a);for(var h in e){var f=e[h];g[0].handler=f;g[0].data=f.data;if(!d[1]&&!a.exclusive||f.type==d[1])f=f.apply(this,g),!1!==b&&(b=f),!1===f&&(a.preventDefault(),a.stopPropagation())}if(c.browser.msie)a.target=a.preventDefault=a.stopPropagation=a.handler=a.data=null;return b},fix:function(a){var b=a,a=c.extend({},b);a.preventDefault=function(){b.preventDefault&&b.preventDefault();b.returnValue=!1};a.stopPropagation=function(){b.stopPropagation&&
b.stopPropagation();b.cancelBubble=!0};if(!a.target)a.target=a.srcElement||document;if(3==a.target.nodeType)a.target=b.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement==a.target?a.toElement:a.fromElement;if(null==a.pageX&&null!=a.clientX){var d=document.documentElement,e=document.body;a.pageX=a.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d.clientLeft||0);a.pageY=a.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d.clientTop||0)}if(!a.which&&(a.charCode||0===a.charCode?
a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},special:{ready:{setup:function(){d()},teardown:function(){}},mouseenter:{setup:function(){if(c.browser.msie)return!1;c(this).bind("mouseover",c.event.special.mouseenter.handler);return!0},teardown:function(){if(c.browser.msie)return!1;c(this).unbind("mouseover",c.event.special.mouseenter.handler);return!0},handler:function(a){if(z(a,
this))return!0;arguments[0].type="mouseenter";return c.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(c.browser.msie)return!1;c(this).bind("mouseout",c.event.special.mouseleave.handler);return!0},teardown:function(){if(c.browser.msie)return!1;c(this).unbind("mouseout",c.event.special.mouseleave.handler);return!0},handler:function(a){if(z(a,this))return!0;arguments[0].type="mouseleave";return c.event.handle.apply(this,arguments)}}}};c.fn.extend({bind:function(a,b,d){return"unload"==
a?this.one(a,b,d):this.each(function(){c.event.add(this,a,d||b,d&&b)})},one:function(a,b,d){return this.each(function(){c.event.add(this,a,function(a){c(this).unbind(a);return(d||b).apply(this,arguments)},d&&b)})},unbind:function(a,b){return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a,b,d){return this.each(function(){c.event.trigger(a,b,this,!0,d)})},triggerHandler:function(a,b,d){if(this[0])return c.event.trigger(a,b,this[0],!1,d)},toggle:function(){var a=arguments;return this.click(function(c){this.lastToggle=
0==this.lastToggle?1:0;c.preventDefault();return a[this.lastToggle].apply(this,arguments)||!1})},hover:function(a,c){return this.bind("mouseenter",a).bind("mouseleave",c)},ready:function(a){d();c.isReady?a.call(document,c):c.readyList.push(function(){return a.call(this,c)});return this}});c.extend({isReady:!1,readyList:[],ready:function(){if(!c.isReady){c.isReady=!0;if(c.readyList)c.each(c.readyList,function(){this.apply(document)}),c.readyList=null;c(document).triggerHandler("ready")}}});var y=!1;
c.each("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error".split(","),function(a,b){c.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)}});var z=function(a,c){for(var b=a.relatedTarget;b&&b!=c;)try{b=b.parentNode}catch(d){b=c}return b==c};c(window).bind("unload",function(){c("*").add(document).unbind()});c.fn.extend({load:function(a,b,d){if(c.isFunction(a))return this.bind("load",a);var e=a.indexOf(" ");
if(0<=e)var g=a.slice(e,a.length),a=a.slice(0,e);d=d||function(){};e="GET";b&&(c.isFunction(b)?(d=b,b=null):(b=c.param(b),e="POST"));var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(a,b){if("success"==b||"notmodified"==b)h.html(g?c("<div/>").append(a.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(g):a.responseText);h.each(d,[a.responseText,b,a])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return c.nodeName(this,
"form")?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(a,b){var d=c(this).val();return null==d?null:d.constructor==Array?c.map(d,function(a){return{name:b.name,value:a}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(a,b){c.fn[b]=function(a){return this.bind(b,a)}});var C=
(new Date).getTime();c.extend({get:function(a,b,d,e){c.isFunction(b)&&(d=b,b=null);return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){c.isFunction(b)&&(d=b,b={});return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{global:!0,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",
processData:!0,async:!0,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(a){function b(){a.success&&a.success(f,h);a.global&&c.event.trigger("ajaxSuccess",[p,a])}function d(){a.complete&&a.complete(p,h);a.global&&c.event.trigger("ajaxComplete",[p,a]);a.global&&!--c.active&&c.event.trigger("ajaxStop")}
var e,g=/=\?(&|$)/g,h,f,a=c.extend(!0,a,c.extend(!0,{},c.ajaxSettings,a));if(a.data&&a.processData&&"string"!=typeof a.data)a.data=c.param(a.data);if("jsonp"==a.dataType){if("get"==a.type.toLowerCase())a.url.match(g)||(a.url+=(a.url.match(/\?/)?"&":"?")+(a.jsonp||"callback")+"=?");else if(!a.data||!a.data.match(g))a.data=(a.data?a.data+"&":"")+(a.jsonp||"callback")+"=?";a.dataType="json"}if("json"==a.dataType&&(a.data&&a.data.match(g)||a.url.match(g))){e="jsonp"+C++;if(a.data)a.data=(a.data+"").replace(g,
"="+e+"$1");a.url=a.url.replace(g,"="+e+"$1");a.dataType="script";window[e]=function(a){f=a;b();d();window[e]=void 0;try{delete window[e]}catch(c){}m&&m.removeChild(q)}}if("script"==a.dataType&&null==a.cache)a.cache=!1;if(!1===a.cache&&"get"==a.type.toLowerCase()){var g=(new Date).getTime(),j=a.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+g+"$2");a.url=j+(j==a.url?(a.url.match(/\?/)?"&":"?")+"_="+g:"")}if(a.data&&"get"==a.type.toLowerCase())a.url+=(a.url.match(/\?/)?"&":"?")+a.data,a.data=null;a.global&&
!c.active++&&c.event.trigger("ajaxStart");if((!a.url.indexOf("http")||!a.url.indexOf("//"))&&"script"==a.dataType&&"get"==a.type.toLowerCase()){var m=document.getElementsByTagName("head")[0],q=document.createElement("script");q.src=a.url;if(a.scriptCharset)q.charset=a.scriptCharset;if(!e){var k=!1;q.onload=q.onreadystatechange=function(){if(!k&&(!this.readyState||"loaded"==this.readyState||"complete"==this.readyState))k=!0,b(),d(),m.removeChild(q)}}m.appendChild(q)}else{var l=!1,p=window.ActiveXObject?
new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;p.open(a.type,a.url,a.async,a.username,a.password);try{a.data&&p.setRequestHeader("Content-Type",a.contentType),a.ifModified&&p.setRequestHeader("If-Modified-Since",c.lastModified[a.url]||"Thu, 01 Jan 1970 00:00:00 GMT"),p.setRequestHeader("X-Requested-With","XMLHttpRequest"),p.setRequestHeader("Accept",a.dataType&&a.accepts[a.dataType]?a.accepts[a.dataType]+", */*":a.accepts._default)}catch(n){}a.beforeSend&&a.beforeSend(p);a.global&&c.event.trigger("ajaxSend",
[p,a]);var o=function(g){if(!l&&p&&(4==p.readyState||"timeout"==g)){l=!0;w&&(clearInterval(w),w=null);h="timeout"==g&&"timeout"||!c.httpSuccess(p)&&"error"||a.ifModified&&c.httpNotModified(p,a.url)&&"notmodified"||"success";if("success"==h)try{f=c.httpData(p,a.dataType)}catch(m){h="parsererror"}if("success"==h){var j;try{j=p.getResponseHeader("Last-Modified")}catch(q){}a.ifModified&&j&&(c.lastModified[a.url]=j);e||b()}else c.handleError(a,p,h);d();a.async&&(p=null)}};if(a.async){var w=setInterval(o,
13);0<a.timeout&&setTimeout(function(){p&&(p.abort(),l||o("timeout"))},a.timeout)}try{p.send(a.data)}catch(r){c.handleError(a,p,null,r)}a.async||o();return p}},handleError:function(a,b,d,e){a.error&&a.error(b,d,e);a.global&&c.event.trigger("ajaxError",[b,a,e])},active:0,httpSuccess:function(a){try{return!a.status&&"file:"==location.protocol||200<=a.status&&300>a.status||304==a.status||1223==a.status||c.browser.safari&&void 0==a.status}catch(b){}return!1},httpNotModified:function(a,b){try{var d=a.getResponseHeader("Last-Modified");
return 304==a.status||d==c.lastModified[b]||c.browser.safari&&void 0==a.status}catch(e){}return!1},httpData:function(a,b){var d=a.getResponseHeader("content-type"),e=(d="xml"==b||!b&&d&&0<=d.indexOf("xml"))?a.responseXML:a.responseText;if(d&&"parsererror"==e.documentElement.tagName)throw"parsererror";"script"==b&&c.globalEval(e);"json"==b&&(e=eval("("+e+")"));return e},param:function(a){var b=[];if(a.constructor==Array||a.jquery)c.each(a,function(){b.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value))});
else for(var d in a)a[d]&&a[d].constructor==Array?c.each(a[d],function(){b.push(encodeURIComponent(d)+"="+encodeURIComponent(this))}):b.push(encodeURIComponent(d)+"="+encodeURIComponent(a[d]));return b.join("&").replace(/%20/g,"+")}});c.fn.extend({show:function(a,b){return a?this.animate({height:"show",width:"show",opacity:"show"},a,b):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if("none"==c.css(this,"display")){var a=c("<"+this.tagName+" />").appendTo("body");this.style.display=
a.css("display");if("none"==this.style.display)this.style.display="block";a.remove()}}).end()},hide:function(a,b){return a?this.animate({height:"hide",width:"hide",opacity:"hide"},a,b):this.filter(":visible").each(function(){this.oldblock=this.oldblock||c.css(this,"display");this.style.display="none"}).end()},_toggle:c.fn.toggle,toggle:function(a,b){return c.isFunction(a)&&c.isFunction(b)?this._toggle(a,b):a?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},a,b):this.each(function(){c(this)[c(this).is(":hidden")?
"show":"hide"]()})},slideDown:function(a,b){return this.animate({height:"show"},a,b)},slideUp:function(a,b){return this.animate({height:"hide"},a,b)},slideToggle:function(a,b){return this.animate({height:"toggle"},a,b)},fadeIn:function(a,b){return this.animate({opacity:"show"},a,b)},fadeOut:function(a,b){return this.animate({opacity:"hide"},a,b)},fadeTo:function(a,b,c){return this.animate({opacity:b},a,c)},animate:function(a,b,d,e){var g=c.speed(b,d,e);return this[!1===g.queue?"each":"queue"](function(){if(1!=
this.nodeType)return!1;var b=c.extend({},g),d=c(this).is(":hidden"),e=this,i;for(i in a){if("hide"==a[i]&&d||"show"==a[i]&&!d)return c.isFunction(b.complete)&&b.complete.apply(this);if("height"==i||"width"==i)b.display=c.css(this,"display"),b.overflow=this.style.overflow}if(null!=b.overflow)this.style.overflow="hidden";b.curAnim=c.extend({},a);c.each(a,function(i,g){var f=new c.fx(e,b,i);if(/toggle|show|hide/.test(g))f["toggle"==g?d?"show":"hide":g](a);else{var m=g.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),
j=f.cur(!0)||0;if(m){var k=parseFloat(m[2]),l=m[3]||"px";"px"!=l&&(e.style[i]=(k||1)+l,j*=(k||1)/f.cur(!0),e.style[i]=j+l);m[1]&&(k=("-="==m[1]?-1:1)*k+j);f.custom(j,k,l)}else f.custom(j,g,"")}});return!0})},queue:function(a,b){if(c.isFunction(a)||a&&a.constructor==Array)b=a,a="fx";return!a||"string"==typeof a&&!b?x(this[0],a):this.each(function(){b.constructor==Array?x(this,a,b):(x(this,a).push(b),1==x(this,a).length&&b.apply(this))})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var a=
d.length-1;0<=a;a--)if(d[a].elem==this){if(b)d[a](!0);d.splice(a,1)}});b||this.dequeue();return this}});var x=function(a,b,d){if(a){var b=b||"fx",e=c.data(a,b+"queue");if(!e||d)e=c.data(a,b+"queue",d?c.makeArray(d):[]);return e}};c.fn.dequeue=function(a){a=a||"fx";return this.each(function(){var b=x(this,a);b.shift();b.length&&b[0].apply(this)})};c.extend({speed:function(a,b,d){var e=a&&a.constructor==Object?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&b.constructor!=Function&&
b};e.duration=(e.duration&&e.duration.constructor==Number?e.duration:{slow:600,fast:200}[e.duration])||400;e.old=e.complete;e.complete=function(){!1!==e.queue&&c(this).dequeue();c.isFunction(e.old)&&e.old.apply(this)};return e},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+0.5)*d+c}},timers:[],timerId:null,fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.apply(this.elem,
[this.now,this]);(c.fx.step[this.prop]||c.fx.step._default)(this);if("height"==this.prop||"width"==this.prop)this.elem.style.display="block"},cur:function(a){return null!=this.elem[this.prop]&&null==this.elem.style[this.prop]?this.elem[this.prop]:(a=parseFloat(c.css(this.elem,this.prop,a)))&&-1E4<a?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function e(a){return g.step(a)}this.startTime=(new Date).getTime();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;
this.pos=this.state=0;this.update();var g=this;e.elem=this.elem;c.timers.push(e);if(null==c.timerId)c.timerId=setInterval(function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);if(!a.length)clearInterval(c.timerId),c.timerId=null},13)},show:function(){this.options.orig[this.prop]=c.attr(this.elem.style,this.prop);this.options.show=!0;this.custom(0,this.cur());if("width"==this.prop||"height"==this.prop)this.elem.style[this.prop]="1px";c(this.elem).show()},hide:function(){this.options.orig[this.prop]=
c.attr(this.elem.style,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var b=(new Date).getTime();if(a||b>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();var a=this.options.curAnim[this.prop]=!0,d;for(d in this.options.curAnim)!0!==this.options.curAnim[d]&&(a=!1);if(a){if(null!=this.options.display&&(this.elem.style.overflow=this.options.overflow,this.elem.style.display=this.options.display,"none"==c.css(this.elem,"display")))this.elem.style.display=
"block";if(this.options.hide)this.elem.style.display="none";if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.attr(this.elem.style,e,this.options.orig[e])}a&&c.isFunction(this.options.complete)&&this.options.complete.apply(this.elem);return!1}d=b-this.startTime;this.state=d/this.options.duration;this.pos=c.easing[this.options.easing||(c.easing.swing?"swing":"linear")](this.state,d,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update();
return!0}};c.fx.step={scrollLeft:function(a){a.elem.scrollLeft=a.now},scrollTop:function(a){a.elem.scrollTop=a.now},opacity:function(a){c.attr(a.elem.style,"opacity",a.now)},_default:function(a){a.elem.style[a.prop]=a.now+a.unit}};c.fn.offset=function(){function a(a){b(c.curCSS(a,"borderLeftWidth",!0),c.curCSS(a,"borderTopWidth",!0))}function b(a,c){d+=parseInt(a)||0;e+=parseInt(c)||0}var d=0,e=0,g=this[0],f;if(g)with(c.browser){var j=g.parentNode,k=g,m=g.offsetParent;f=g.ownerDocument;var q=safari&&
522>parseInt(version)&&!/adobeair/i.test(n),l="fixed"==c.css(g,"position");if(g.getBoundingClientRect)g=g.getBoundingClientRect(),b(g.left+Math.max(f.documentElement.scrollLeft,f.body.scrollLeft),g.top+Math.max(f.documentElement.scrollTop,f.body.scrollTop)),b(-f.documentElement.clientLeft,-f.documentElement.clientTop);else{for(b(g.offsetLeft,g.offsetTop);m;)b(m.offsetLeft,m.offsetTop),(mozilla&&!/^t(able|d|h)$/i.test(m.tagName)||safari&&!q)&&a(m),!l&&"fixed"==c.css(m,"position")&&(l=!0),k=/^body$/i.test(m.tagName)?
k:m,m=m.offsetParent;for(;j&&j.tagName&&!/^body|html$/i.test(j.tagName);)/^inline|table.*$/i.test(c.css(j,"display"))||b(-j.scrollLeft,-j.scrollTop),mozilla&&"visible"!=c.css(j,"overflow")&&a(j),j=j.parentNode;(q&&(l||"absolute"==c.css(k,"position"))||mozilla&&"absolute"!=c.css(k,"position"))&&b(-f.body.offsetLeft,-f.body.offsetTop);l&&b(Math.max(f.documentElement.scrollLeft,f.body.scrollLeft),Math.max(f.documentElement.scrollTop,f.body.scrollTop))}f={top:e,left:d}}return f}})();jQuery.autocomplete=function(b,d){function e(){a={data:{},length:0}}function c(a){var b=$("li",w);b&&(x+=a,0>x?x=0:x>=b.size()&&(x=b.size()-1),b.removeClass("ac_over"),$(b[x]).addClass("ac_over"))}function k(){var a=$("li.ac_over",w)[0];if(!a){var b=$("li",w);d.selectOnly?1==b.length&&(a=b[0]):d.selectFirst&&(a=b[0])}return a?(g(a),!0):!1}function g(a){if(!a)a=document.createElement("li"),a.extra=[],a.selectValue="";var c=$.trim(a.selectValue?a.selectValue:a.innerHTML);C=b.lastSelected=c;y.html("");
s.val(c);f();d.onItemSelect&&setTimeout(function(){d.onItemSelect(a)},1)}function f(){z&&clearTimeout(z);s.removeClass(d.loadingClass);y.is(":visible")&&y.hide();d.mustMatch&&s.val()!=b.lastSelected&&g(null)}function l(a,c){var e,g;if(c){s.removeClass(d.loadingClass);w.innerHTML="";if(!i||0==c.length)return f();$.browser.msie&&y.append(document.createElement("iframe"));w.appendChild(t(c));if(d.autoFill&&s.val().toLowerCase()==a.toLowerCase()&&(g=c[0][0],8!=B)){s.val(s.val()+g.substring(C.length));
e=C.length;g=g.length;var h=s.get(0);if(h.createTextRange){var j=h.createTextRange();j.collapse(!0);j.moveStart("character",e);j.moveEnd("character",g);j.select()}else if(h.setSelectionRange)h.setSelectionRange(e,g);else if(h.selectionStart)h.selectionStart=e,h.selectionEnd=g;h.focus()}e=b;h=e.offsetLeft||0;for(g=e.offsetTop||0;e=e.offsetParent;)h+=e.offsetLeft,g+=e.offsetTop;e=h;h=0<d.width?d.width:s.width();y.css({width:parseInt(h)+"px",top:g+b.offsetHeight+"px",left:e+"px"}).show()}else f()}function j(a){if(!a)return null;
for(var b=[],a=a.split(d.lineSeparator),c=0;c<a.length;c++){var e=$.trim(a[c]);e&&(b[b.length]=e.split(d.cellSeparator))}return b}function t(a){var b=document.createElement("ul"),c=a.length;if(0<d.maxItemsToShow&&d.maxItemsToShow<c)c=d.maxItemsToShow;for(var e=0;e<c;e++){var f=a[e];if(f){var h=document.createElement("li");h.innerHTML=d.formatItem?d.formatItem(f,e,c):f[0];h.selectValue=f[0];var i=null;if(1<f.length)for(var i=[],j=1;j<f.length;j++)i[i.length]=f[j];h.extra=i;b.appendChild(h);$(h).hover(function(){$("li",
b).removeClass("ac_over");$(this).addClass("ac_over");x=$("li",b).indexOf($(this).get(0))},function(){$(this).removeClass("ac_over")}).click(function(a){a.preventDefault();a.stopPropagation();g(this)})}}return b}function r(a){d.matchCase||(a=a.toLowerCase());var b=d.cacheLength?o(a):null;b?l(a,b):"string"==typeof d.url&&0<d.url.length?$.get(n(a),function(b){b=j(b);A(a,b);l(a,b)}):s.removeClass(d.loadingClass)}function n(a){var a=d.url+"?q="+encodeURI(a),b;for(b in d.extraParams)a+="&"+b+"="+encodeURI(d.extraParams[b]);
return a}function o(b){if(!b)return null;if(a.data[b])return a.data[b];if(d.matchSubset)for(var c=b.length-1;c>=d.minChars;c--){var e=b.substr(0,c);if(e=a.data[e]){for(var c=[],g=0;g<e.length;g++){var f=e[g],h=f[0],i=b;d.matchCase||(h=h.toLowerCase());h=h.indexOf(i);(-1==h?0:0==h||d.matchContains)&&(c[c.length]=f)}return c}}return null}function u(a,b){b&&s.removeClass(d.loadingClass);for(var c=b?b.length:0,e=null,g=0;g<c;g++){var f=b[g];if(f[0].toLowerCase()==a.toLowerCase()){e=document.createElement("li");
e.innerHTML=d.formatItem?d.formatItem(f,g,c):f[0];e.selectValue=f[0];var h=null;if(1<f.length)for(var h=[],i=1;i<f.length;i++)h[h.length]=f[i];e.extra=h}}d.onFindValue&&setTimeout(function(){d.onFindValue(e)},1)}function A(b,c){c&&b&&d.cacheLength&&(!a.length||a.length>d.cacheLength?(e(),a.length++):a[b]||a.length++,a.data[b]=c)}var s=$(b).attr("autocomplete","off");d.inputClass&&s.addClass(d.inputClass);var w=document.createElement("div"),y=$(w);y.hide().addClass(d.resultsClass).css("position","absolute");
0<d.width&&y.css("width",d.width);$("body").append(w);b.autocompleter=this;var z=null,C="",x=-1,a={},i=!1,B=null;e();if(null!=d.data){var F="",D={},h=[];if("string"!=typeof d.url)d.cacheLength=1;for(var E=0;E<d.data.length;E++)h="string"==typeof d.data[E]?[d.data[E]]:d.data[E],0<h[0].length&&(F=h[0].substring(0,1).toLowerCase(),D[F]||(D[F]=[]),D[F].push(h));for(var G in D)d.cacheLength++,A(G,D[G])}s.keydown(function(a){B=a.keyCode;switch(a.keyCode){case 38:a.preventDefault();c(-1);break;case 40:a.preventDefault();
c(1);break;case 9:case 13:k()&&(s.get(0).blur(),a.preventDefault());break;default:x=-1,z&&clearTimeout(z),z=setTimeout(function(){if(46==B||8<B&&32>B)y.hide();else{var a=s.val();a!=C&&(C=a,a.length>=d.minChars?(s.addClass(d.loadingClass),r(a)):(s.removeClass(d.loadingClass),y.hide()))}},d.delay)}}).focus(function(){i=!0}).blur(function(){i=!1;z&&clearTimeout(z);z=setTimeout(f,200)});f();this.flushCache=function(){e()};this.setExtraParams=function(a){d.extraParams=a};this.findValue=function(){var a=
s.val();d.matchCase||(a=a.toLowerCase());var b=d.cacheLength?o(a):null;b?u(a,b):"string"==typeof d.url&&0<d.url.length?$.get(n(a),function(b){b=j(b);A(a,b);u(a,b)}):u(a,null)}};
jQuery.fn.autocomplete=function(b,d,e){d=d||{};d.url=b;d.data="object"==typeof e&&e.constructor==Array?e:null;d.inputClass=d.inputClass||"ac_input";d.resultsClass=d.resultsClass||"ac_results";d.lineSeparator=d.lineSeparator||"\n";d.cellSeparator=d.cellSeparator||"|";d.minChars=d.minChars||1;d.delay=d.delay||400;d.matchCase=d.matchCase||0;d.matchSubset=d.matchSubset||1;d.matchContains=d.matchContains||0;d.cacheLength=d.cacheLength||1;d.mustMatch=d.mustMatch||0;d.extraParams=d.extraParams||{};d.loadingClass=
d.loadingClass||"ac_loading";d.selectFirst=d.selectFirst||!1;d.selectOnly=d.selectOnly||!1;d.maxItemsToShow=d.maxItemsToShow||-1;d.autoFill=d.autoFill||!1;d.width=parseInt(d.width,10)||0;this.each(function(){new jQuery.autocomplete(this,d)});return this};jQuery.fn.autocompleteArray=function(b,d){return this.autocomplete(null,d,b)};jQuery.fn.indexOf=function(b){for(var d=0;d<this.length;d++)if(this[d]==b)return d;return-1};(function(b){b.fn.bgIframe=b.fn.bgiframe=function(d){if(b.browser.msie&&6>=parseInt(b.browser.version)){var d=b.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:!0,src:"javascript:false;"},d||{}),e=function(b){return b&&b.constructor==Number?b+"px":b},c='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+d.src+'"style="display:block;position:absolute;z-index:-1;'+(!1!==d.opacity?"filter:Alpha(Opacity='0');":"")+"top:"+("auto"==d.top?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":
e(d.top))+";left:"+("auto"==d.left?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":e(d.left))+";width:"+("auto"==d.width?"expression(this.parentNode.offsetWidth+'px')":e(d.width))+";height:"+("auto"==d.height?"expression(this.parentNode.offsetHeight+'px')":e(d.height))+';"/>';return this.each(function(){0==b("> iframe.bgiframe",this).length&&this.insertBefore(document.createElement(c),this.firstChild)})}return this};if(!b.browser.version)b.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1]})(jQuery);(function(b){var d=b.fn.height,e=b.fn.width;b.fn.extend({height:function(){return this[0]==window?self.innerHeight||b.boxModel&&document.documentElement.clientHeight||document.body.clientHeight:this[0]==document?Math.max(document.body.scrollHeight,document.body.offsetHeight):d.apply(this,arguments)},width:function(){return this[0]==window?self.innerWidth||b.boxModel&&document.documentElement.clientWidth||document.body.clientWidth:this[0]==document?Math.max(document.body.scrollWidth,document.body.offsetWidth):
e.apply(this,arguments)},innerHeight:function(){return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight-c(this,"borderTopWidth")-c(this,"borderBottomWidth"):this.height()+c(this,"paddingTop")+c(this,"paddingBottom")},innerWidth:function(){return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth-c(this,"borderLeftWidth")-c(this,"borderRightWidth"):this.width()+c(this,"paddingLeft")+c(this,"paddingRight")},outerHeight:function(){return this[0]==
window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight:this.height()+c(this,"borderTopWidth")+c(this,"borderBottomWidth")+c(this,"paddingTop")+c(this,"paddingBottom")},outerWidth:function(){return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth:this.width()+c(this,"borderLeftWidth")+c(this,"borderRightWidth")+c(this,"paddingLeft")+c(this,"paddingRight")},scrollLeft:function(c){return void 0!=c?this.each(function(){this==window||this==
document?window.scrollTo(c,b(window).scrollTop()):this.scrollLeft=c}):this[0]==window||this[0]==document?self.pageXOffset||b.boxModel&&document.documentElement.scrollLeft||document.body.scrollLeft:this[0].scrollLeft},scrollTop:function(c){return void 0!=c?this.each(function(){this==window||this==document?window.scrollTo(b(window).scrollLeft(),c):this.scrollTop=c}):this[0]==window||this[0]==document?self.pageYOffset||b.boxModel&&document.documentElement.scrollTop||document.body.scrollTop:this[0].scrollTop},
position:function(d,e){var l=this[0],j=l.parentNode,t=l.offsetParent,d=b.extend({margin:!1,border:!1,padding:!1,scroll:!1},d||{}),r=l.offsetLeft,n=l.offsetTop,o=l.scrollLeft,u=l.scrollTop;if(b.browser.mozilla||b.browser.msie)r+=c(l,"borderLeftWidth"),n+=c(l,"borderTopWidth");if(b.browser.mozilla){do if(b.browser.mozilla&&j!=l&&"visible"!=b.css(j,"overflow")&&(r+=c(j,"borderLeftWidth"),n+=c(j,"borderTopWidth")),j==t)break;while((j=j.parentNode)&&("body"!=j.tagName.toLowerCase()||"html"!=j.tagName.toLowerCase()))
}l=k(l,d,r,n,o,u);return e?(b.extend(e,l),this):l},offset:function(d,e){var l=0,j=0,t=0,r=0,n=this[0],o=this[0],u,A=b.css(n,"position"),s=b.browser.mozilla,w=b.browser.msie,y=b.browser.safari;u=b.browser.opera;var z=!1,C=!1,d=b.extend({margin:!0,border:!1,padding:!1,scroll:!0,lite:!1},d||{});if(d.lite)return this.offsetLite(d,e);if("body"==n.tagName.toLowerCase())l=n.offsetLeft,j=n.offsetTop,s?(l+=c(n,"marginLeft")+2*c(n,"borderLeftWidth"),j+=c(n,"marginTop")+2*c(n,"borderTopWidth")):u?(l+=c(n,"marginLeft"),
j+=c(n,"marginTop")):w&&jQuery.boxModel&&(l+=c(n,"borderLeftWidth"),j+=c(n,"borderTopWidth"));else{do{u=b.css(o,"position");l+=o.offsetLeft;j+=o.offsetTop;if(s||w)l+=c(o,"borderLeftWidth"),j+=c(o,"borderTopWidth"),s&&"absolute"==u&&(z=!0),w&&"relative"==u&&(C=!0);u=o.offsetParent;if(d.scroll||s){do d.scroll&&(t+=o.scrollLeft,r+=o.scrollTop),s&&o!=n&&"visible"!=b.css(o,"overflow")&&(l+=c(o,"borderLeftWidth"),j+=c(o,"borderTopWidth")),o=o.parentNode;while(o!=u)}o=u;if("body"==o.tagName.toLowerCase()||
"html"==o.tagName.toLowerCase()){if((y||w&&b.boxModel)&&"absolute"!=A&&"fixed"!=A)l+=c(o,"marginLeft"),j+=c(o,"marginTop");if(s&&!z&&"fixed"!=A||w&&"static"==A&&!C)l+=c(o,"borderLeftWidth"),j+=c(o,"borderTopWidth");break}}while(o)}l=k(n,d,l,j,t,r);return e?(b.extend(e,l),this):l},offsetLite:function(c,d){var e=0,j=0,t=0,r=0,n=this[0],o,c=b.extend({margin:!0,border:!1,padding:!1,scroll:!0},c||{});do{e+=n.offsetLeft;j+=n.offsetTop;o=n.offsetParent;if(c.scroll){do t+=n.scrollLeft,r+=n.scrollTop,n=n.parentNode;
while(n!=o)}n=o}while(n&&"body"!=n.tagName.toLowerCase()&&"html"!=n.tagName.toLowerCase());e=k(this[0],c,e,j,t,r);return d?(b.extend(d,e),this):e}});var c=function(c,d){return parseInt(b.css(c.jquery?c[0]:c,d))||0},k=function(d,e,k,j,t,r){e.margin||(k-=c(d,"marginLeft"),j-=c(d,"marginTop"));e.border&&(b.browser.safari||b.browser.opera)?(k+=c(d,"borderLeftWidth"),j+=c(d,"borderTopWidth")):!e.border&&!b.browser.safari&&!b.browser.opera&&(k-=c(d,"borderLeftWidth"),j-=c(d,"borderTopWidth"));e.padding&&
(k+=c(d,"paddingLeft"),j+=c(d,"paddingTop"));e.scroll&&(t-=d.scrollLeft,r-=d.scrollTop);return e.scroll?{top:j-r,left:k-t,scrollTop:r,scrollLeft:t}:{top:j,left:k}}})(jQuery);(function(b){var d,e,c,k;function g(c){return b.data(c,"tooltip-settings")}function f(c){g(this).delay?u=setTimeout(j,g(this).delay):j();s=!!g(this).track;b(document.body).bind("mousemove",t);t(c)}function l(){if(!b.tooltip.blocked&&!(this==n||!this.tooltipText&&!g(this).bodyHandler)){n=this;o=this.tooltipText;if(g(this).bodyHandler){e.hide();var j=g(this).bodyHandler.call(this);j.nodeType||j.jquery?c.empty().append(j):c.html(j);c.show()}else if(g(this).showBody){j=o.split(g(this).showBody);e.html(j.shift()).show();
c.empty();for(var l=0,r;r=j[l];l++)0<l&&c.append("<br/>"),c.append(r);c.hideWhenEmpty()}else e.html(o).show(),c.hide();g(this).showURL&&b(this).url()?k.html(b(this).url().replace("http://","")).show():k.hide();d.addClass(g(this).extraClass);g(this).fixPNG&&d.fixPNG();f.apply(this,arguments)}}function j(){u=null;d.show();t()}function t(c){if(!b.tooltip.blocked)if(!s&&d.is(":visible")&&b(document.body).unbind("mousemove",t),null==n)b(document.body).unbind("mousemove",t);else{d.removeClass("viewport-right").removeClass("viewport-bottom");
var e=d[0].offsetLeft,f=d[0].offsetTop;c&&(e=c.pageX+g(n).left,f=c.pageY+g(n).top,d.css({left:e+"px",top:f+"px"}));var c=b(window).scrollLeft(),j=b(window).scrollTop(),k=b(window).width(),a=b(window).height(),i=d[0];c+k<i.offsetLeft+i.offsetWidth&&(e-=i.offsetWidth+20+g(n).left,d.css({left:e+"px"}).addClass("viewport-right"));j+a<i.offsetTop+i.offsetHeight&&(f-=i.offsetHeight+20+g(n).top,d.css({top:f+"px"}).addClass("viewport-bottom"))}}function r(){b.tooltip.blocked||(u&&clearTimeout(u),n=null,d.hide().removeClass(g(this).extraClass),
g(this).fixPNG&&d.unfixPNG())}d=void 0;e=void 0;c=void 0;k=void 0;var n,o,u,A=b.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),s=!1;b.tooltip={blocked:!1,defaults:{delay:200,showURL:!0,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){b.tooltip.blocked=!b.tooltip.blocked}};b.fn.extend({tooltip:function(f){f=b.extend({},b.tooltip.defaults,f);d||(d=b('<div id="'+f.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide(),b.fn.bgiframe&&
d.bgiframe(),e=b("h3",d),c=b("div.body",d),k=b("div.url",d));return this.each(function(){b.data(this,"tooltip-settings",f);this.tooltipText=this.title;b(this).removeAttr("title");this.alt=""}).hover(l,r).click(r)},fixPNG:A?function(){return this.each(function(){var c=b(this).css("backgroundImage");if(c.match(/^url\(["']?(.*\.png)["']?\)$/i))c=RegExp.$1,b(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+c+"')"}).each(function(){var c=
b(this).css("position");"absolute"!=c&&"relative"!=c&&b(this).css("position","relative")})})}:function(){return this},unfixPNG:A?function(){return this.each(function(){b(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){b(this)[b(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});b.fn.Tooltip=b.fn.tooltip})(jQuery);function detailSeeker(){$("a.dettaglioopener").click(function(){var b=this.parentNode.getElementsByTagName("div")[0];$(b).is(":hidden")?$(b).slideDown("normal"):$(b).slideUp("normal");return!1});$("a.openvideogallery").click(function(){var b=$("div.videogallery");b.is(":hidden")?b.slideDown("normal"):b.slideUp("normal");return!1})}function prevNext(b,d){document.forms[b].param_page.value=d;document.forms[b].submit();return!1}
function hideTarga(){document.getElementById("autocompletetarga").value="";$(".dangerradio").val([$(".dangerradio").get(0).value]);document.getElementById("search_targa").style.display="none"}function showTarga(){document.getElementById("autocompletetarga").value="";document.getElementById("search_targa").style.display=""}
function getFieldsData(){var b={};b.proprietario=$(".aziendaradio:checked").val();b.targa="";if("31"!=b.proprietario)b.targa=document.getElementById("autocompletetarga").value;b.cer=document.getElementById("autocompletecer").value;b.danger=$(".dangerradio:checked").val();return b}function openArea(){$("div#reserved-top").is(":hidden")?$("div#reserved-top").slideDown("slow"):$("div#reserved-top").slideUp("slow");return!1}
function init(){$("#open-area a").click(openArea);if(document.getElementById("autocompletetarga")||document.getElementById("autocompletecer")){var b=$(".aziendaradio");"31"==$(".aziendaradio:checked").val()&&hideTarga();b.click(function(){getFieldsData();"31"==$(this).val()?hideTarga():showTarga()});$("#autocompletetarga").focus(function(){var b=$(this)[0].autocompleter;b.setExtraParams(getFieldsData());b.flushCache()});$("#autocompletetarga").autocomplete("autocompletetarga.view",{delay:10,minChars:2,
matchSubset:1,matchContains:1,cacheLength:10,autoFill:!0,extraParams:getFieldsData()});$("#autocompletecer").focus(function(){var b=$(this)[0].autocompleter;b.setExtraParams(getFieldsData());b.flushCache()});$("#autocompletecer").autocomplete("autocompletecer.view",{delay:10,minChars:2,matchSubset:1,matchContains:1,cacheLength:10,autoFill:!0,extraParams:getFieldsData()})}}function wopen(b,d,e){d||(d="w"+(new Date).getTime());window.open(b,d,e)}$(document).ready(function(){init();detailSeeker();initniceforms()});
function createCookie(b,d,e){if(e){var c=new Date;c.setTime(c.getTime()+864E5*e);e="; expires="+c.toGMTString()}else e="";document.cookie=b+"="+d+e+"; path=/"}function readCookie(b){for(var b=b+"=",d=document.cookie.split(";"),e=0;e<d.length;e++){for(var c=d[e];" "==c.charAt(0);)c=c.substring(1,c.length);if(0==c.indexOf(b))return c.substring(b.length,c.length)}return null}function eraseCookie(b){createCookie(b,"",-1)};function trim(b){if(!b)return"";for(;" "==b.substring(0,1);)b=b.substring(1,b.length);for(;" "==b.substring(b.length-1,b.length);)b=b.substring(0,b.length-1);return b}function isNullOrEmpty(b){b=trim(b);return""==b.replace(/\s+/gi,"")||b.lastIndexOf("*")==b.length-1?!0:!1}
function isDate(b,d,e){var c=b[d[0]].value,k=b[d[1]].value,b=b[d[2]].value;if((new Date(b,1*k-1,c)).getDate()!=c||isNullOrEmpty(c)||isNullOrEmpty(k)||isNullOrEmpty(b)||0==1*c||0==1*k||0==1*b||12<1*k)return e.value="",!1;e.value=b+"-"+(10>k?"0"+k:k)+"-"+(10>c?"0"+c:c);return!0}function isAcceptedFile(b,d){if(-1==d.value.indexOf("."))return!0;for(var e=d.value.substring(d.value.lastIndexOf(".")+1),c=!1,k=0;k<b.length;k++)if(trim(e)==trim(b[k])){c=!0;break}return!c?!1:!0}
function isEmail(b){b=b.replace(/^\s*(\S*)\s*$/,"$1");return b==b.match(/^[A-Za-z0-9_.-]+@[A-Za-z0-9_.-]+\.[A-Za-z]{2,}$/)}function isSelected(b,d){return""==d&&"select"==b.tagName&&!0==b.options[0].selected?!0:""!=d&&b.value==d?!0:!1}function isChecked(b){return!0==b.checked?!0:!1}function isPasswordRange(b,d){var e=d.split("-");return""==d||!parseInt(e[0])?!0:b.value.length<e[0]?!1:parseInt(e[1])&&b.value.length>e[1]?!1:!0}function isExactLength(b,d){return 1*b.value.length!=1*d?!1:!0}
function isGeminiOf(b,d){return b.value!=d.value?!1:!0}function copyFrom(b,d){if(d)b.value=d.value}function litLabelForElement(b,d){for(var e=b.getElementsByTagName("label"),c=0;c<e.length;c++){if(-1!=e[c].className.indexOf("wrong"))e[c].className=e[c].className.replace("wrong","");for(var k=0;k<d.length;k++)e[c].htmlFor==d[k].name&&(e[c].className+=" wrong")}}
function getLabelForElement(b,d){for(var e=b.getElementsByTagName("label"),c=0;c<e.length;c++)if(e[c].htmlFor==d.name)return null==e[c].innerText||""==e[c].innerText?e[c].textContent:e[c].innerText;return d.name}
function check(b){b=document.forms[b];if(!b.validate||""==b.validate.value)b.submit();else{for(var d=b.getElementsByTagName("div"),e=0;e<d.length&&!(-1!=d[e].className.indexOf("alert"));e++);for(var d=b.validate.value.split(","),c="",k=[],e=0;e<d.length;e++){var g=b[d[e]],f=null;try{f=g.getAttribute("tnes:check")?g.getAttribute("tnes:check"):null}catch(l){f=g[0].getAttribute("tnes:check")?g[0].getAttribute("tnes:check"):null}if(null==f&&isNullOrEmpty(g.value))c+="- Non hai compilato il campo '"+getLabelForElement(b,
g)+"'\n",k.push(g);else if(f&&"email"==f)isNullOrEmpty(g.value)?(c+="- Non hai compilato il campo '"+getLabelForElement(b,g)+"'\n",k.push(g)):!isNullOrEmpty(g.value)&&!isEmail(g.value)&&(c+="- L'indirizzo e-mail inserito non e' corretto\n",k.push(g));else if(f&&0==f.indexOf("date")&&!isDate(b,f.substring(4).split(","),g))c+="- Il campo '"+getLabelForElement(b,g)+"' non e' compilato o la data inserita non e' valida\n",k.push(g);else if(f&&0==f.indexOf("file")&&(!isAcceptedFile(f.substring(4).split(","),
g)||isNullOrEmpty(g.value)))c+="- Campo '"+getLabelForElement(b,g)+"': vengono accettati solo i file di tipo "+f.substring(4)+"\n",k.push(g);else if(f&&0==f.indexOf("select")&&isSelected(g,f.split("select")[1]))c+=("select"==g.tagName.toLowerCase()?"- E' necessario selezionare una voce del campo '":"- Non hai compilato il campo '")+getLabelForElement(b,g)+"'\n",k.push(g);else if(f&&"privacy"==f&&!isChecked(g))c+="- E' necessario dare il proprio consenso al trattamento dei dati\n",k.push(g);else if(f&&
"checked"==f&&!isChecked(g))c+="- Manca il segno di spunta nel campo "+getLabelForElement(b,g)+"\n",k.push(g);else if(f&&0==f.indexOf("password")&&isNullOrEmpty(g.value))c+="- Non hai compilato il campo '"+getLabelForElement(b,g)+"'\n",k.push(g);else if(f&&0==f.indexOf("password")&&!isPasswordRange(g,f.split("password")[1])){var f=f.split("password")[1].split("-"),j="";if(f[0]&&""!=f[0]&&f[1]&&""!=f[1])j="(da "+f[0]+" a "+f[1]+")";else if(f[0]&&""!=f[0]&&(""==f[1]||null==f[1]))j="(minimo "+f[0]+")";
c+="- La password non ha il numero corretto di caratteri "+j+"\n";k.push(g)}else if(f&&0==f.indexOf("exactlength")&&!isExactLength(g,f.split("exactlength")[1]))c+="- Il campo '"+getLabelForElement(b,g)+"' non ha il numero corretto di caratteri ("+f.split("exactlength")[1]+")\n",k.push(g);else if(f&&0==f.indexOf("geminiof")&&isNullOrEmpty(g.value))c+="- Non hai compilato il campo '"+getLabelForElement(b,g)+"'\n",k.push(g);else if(f&&0==f.indexOf("geminiof")&&!isGeminiOf(g,b[f.split("geminiof")[1]]))c+=
"- La voce inserita nel campo '"+getLabelForElement(b,g)+"' non corrisponde alla password scelta\n",k.push(g);else if(f&&0==f.indexOf("ignorepasswd")&&!isNullOrEmpty(g.value)&&!isPasswordRange(g,f.split("ignorepasswd")[1])){f=f.split("ignorepasswd")[1].split("-");j="";if(f[0]&&""!=f[0]&&f[1]&&""!=f[1])j="(da "+f[0]+" a "+f[1]+")";else if(f[0]&&""!=f[0]&&(""==f[1]||null==f[1]))j="(minimo "+f[0]+")";c+="- La password non ha il numero corretto di caratteri "+j+"\n";k.push(g)}else f&&0==f.indexOf("ignoregemof")&&
!isGeminiOf(g,b[f.split("ignoregemof")[1]])?(c+="- La voce inserita nel campo '"+getLabelForElement(b,g)+"' non corrisponde alla password scelta\n",k.push(g)):f&&0==f.indexOf("copyfrom")&&""!=f.split("copyfrom")[1]&&copyFrom(g,b[f.split("copyfrom")[1]])}""!=c?(alert("CAMPI NON COMPILATI O DA CORREGGERE:\n"+c),litLabelForElement(b,k)):""==c&&b.submit()}};var tb_pathToImage="../images/loading.gif";$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image;imgLoader.src=tb_pathToImage});function tb_init(b){$(b).click(function(){tb_show(this.title||this.name||null,this.href||this.alt,this.rel||!1);this.blur();return!1})}
function tb_show(b,d,e){try{"undefined"===typeof document.body.style.maxHeight?($("body","html").css({height:"100%",width:"100%"}),$("html").css("overflow","hidden"),null===document.getElementById("TB_HideSelect")&&($("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>"),$("#TB_overlay").click(tb_remove))):null===document.getElementById("TB_overlay")&&($("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>"),$("#TB_overlay").click(tb_remove));
tb_detectMacXFF()?$("#TB_overlay").addClass("TB_overlayMacFFBGHack"):$("#TB_overlay").addClass("TB_overlayBG");null===b&&(b="");$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$("#TB_load").show();var c=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/,k=(-1!==d.indexOf("?")?d.substr(0,d.indexOf("?")):d).toLowerCase().match(c);if(".jpg"==k||".jpeg"==k||".png"==k||".gif"==k||".bmp"==k){TB_imageCount=TB_NextHTML=TB_NextURL=TB_NextCaption=TB_PrevHTML=TB_PrevURL=TB_PrevCaption="";TB_FoundURL=
!1;if(e){TB_TempArray=$("a[@rel="+e+"]").get();for(TB_Counter=0;TB_Counter<TB_TempArray.length&&""===TB_NextHTML;TB_Counter++)TB_TempArray[TB_Counter].href.toLowerCase().match(c),TB_TempArray[TB_Counter].href!=d?TB_FoundURL?(TB_NextCaption=TB_TempArray[TB_Counter].title,TB_NextURL=TB_TempArray[TB_Counter].href,TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Successiva &gt;</a></span>"):(TB_PrevCaption=TB_TempArray[TB_Counter].title,TB_PrevURL=TB_TempArray[TB_Counter].href,TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Precedente</a></span>"):
(TB_FoundURL=!0,TB_imageCount="Immagine "+(TB_Counter+1)+" di "+TB_TempArray.length)}imgPreloader=new Image;imgPreloader.onload=function(){imgPreloader.onload=null;var c=tb_getPageSize(),f=c[0]-150,c=c[1]-150,g=imgPreloader.width,k=imgPreloader.height;g>f?(k*=f/g,g=f,k>c&&(g*=c/k,k=c)):k>c&&(g*=c/k,k=c,g>f&&(k*=f/g,g=f));TB_WIDTH=g+30;TB_HEIGHT=k+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Chiudi'><img id='TB_Image' src='"+d+"' width='"+g+"' height='"+k+"' alt='"+b+"'/></a><div id='TB_caption'>"+
b+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>Chiudi</a> o premi Esc</div>");$("#TB_closeWindowButton").click(tb_remove);if(""!==TB_PrevHTML){var l=function(){$(document).unbind("click",l)&&$(document).unbind("click",l);$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,e);return!1};$("#TB_prev").click(l)}if(""!==TB_NextHTML){var u=function(){$("#TB_window").remove();
$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,e);return!1};$("#TB_next").click(u)}document.onkeydown=function(b){keycode=null==b?event.keyCode:b.which;if(27==keycode)tb_remove();else if(190==keycode){if(""!=TB_NextHTML)document.onkeydown="",u()}else if(188==keycode&&""!=TB_PrevHTML)document.onkeydown="",l()};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=d}else{var g=d.replace(/^[^\?]+\??/,
""),f=tb_parseQuery(g);TB_WIDTH=1*f.width+30||630;TB_HEIGHT=1*f.height+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;-1!=d.indexOf("TB_iframe")?(urlNoQuery=d.split("TB_"),$("#TB_iframeContent").remove(),"true"!=f.modal?$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+b+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+
Math.round(1E3*Math.random())+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>"):($("#TB_overlay").unbind(),$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(1E3*Math.random())+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>"))):"block"!=$("#TB_window").css("display")?"true"!=f.modal?$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+
b+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>"):($("#TB_overlay").unbind(),$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")):($("#TB_ajaxContent")[0].style.width=ajaxContentW+"px",$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px",$("#TB_ajaxContent")[0].scrollTop=
0,$("#TB_ajaxWindowTitle").html(b));$("#TB_closeWindowButton").click(tb_remove);-1!=d.indexOf("TB_inline")?($("#TB_ajaxContent").append($("#"+f.inlineId).children()),$("#TB_window").unload(function(){$("#"+f.inlineId).append($("#TB_ajaxContent").children())}),tb_position(),$("#TB_load").remove(),$("#TB_window").css({display:"block"})):-1!=d.indexOf("TB_iframe")?(tb_position(),$.browser.safari&&($("#TB_load").remove(),$("#TB_window").css({display:"block"}))):$("#TB_ajaxContent").load(d+="&random="+
(new Date).getTime(),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}if(!f.modal)document.onkeyup=function(b){keycode=null==b?event.keyCode:b.which;27==keycode&&tb_remove()}}catch(l){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}
function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();"undefined"==typeof document.body.style.maxHeight&&($("body","html").css({height:"auto",width:"auto"}),$("html").css("overflow",""));document.onkeydown="";document.onkeyup="";return!1}
function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt(TB_WIDTH/2,10)+"px",width:TB_WIDTH+"px"});jQuery.browser.msie&&7>jQuery.browser.version||$("#TB_window").css({marginTop:"-"+parseInt(TB_HEIGHT/2,10)+"px"})}function tb_parseQuery(b){var d={};if(!b)return d;for(var b=b.split(/[;&]/),e=0;e<b.length;e++){var c=b[e].split("=");if(c&&2==c.length){var k=unescape(c[0]),c=unescape(c[1]),c=c.replace(/\+/g," ");d[k]=c}}return d}
function tb_getPageSize(){var b=document.documentElement;return arrayPageSize=[window.innerWidth||self.innerWidth||b&&b.clientWidth||document.body.clientWidth,window.innerHeight||self.innerHeight||b&&b.clientHeight||document.body.clientHeight]}function tb_detectMacXFF(){var b=navigator.userAgent.toLowerCase();if(-1!=b.indexOf("mac")&&-1!=b.indexOf("firefox"))return!0};
