(function(){if(window.jQuery){var _1=window.jQuery;}var _2=window.jQuery=function(_3,_4){return new _2.prototype.init(_3,_4);};if(window.$){var _$=window.$;}window.$=_2;var _6=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;var _7=/^.[^:#\[\.]*$/;_2.fn=_2.prototype={init:function(_8,_9){_8=_8||document;if(_8.nodeType){this[0]=_8;this.length=1;return this;}else{if(typeof _8=="string"){var _a=_6.exec(_8);if(_a&&(_a[1]||!_9)){if(_a[1]){_8=_2.clean([_a[1]],_9);}else{var _b=document.getElementById(_a[3]);if(_b){if(_b.id!=_a[3]){return _2().find(_8);}else{this[0]=_b;this.length=1;return this;}}else{_8=[];}}}else{return new _2(_9).find(_8);}}else{if(_2.isFunction(_8)){return new _2(document)[_2.fn.ready?"ready":"load"](_8);}}}return this.setArray(_8.constructor==Array&&_8||(_8.jquery||_8.length&&_8!=window&&!_8.nodeType&&_8[0]!=undefined&&_8[0].nodeType)&&_2.makeArray(_8)||[_8]);},jquery:"1.2.3",size:function(){return this.length;},length:0,get:function(_c){return _c==undefined?_2.makeArray(this):this[_c];},pushStack:function(_d){var _e=_2(_d);_e.prevObject=this;return _e;},setArray:function(_f){this.length=0;Array.prototype.push.apply(this,_f);return this;},each:function(_10,_11){return _2.each(this,_10,_11);},index:function(_12){var ret=-1;this.each(function(i){if(this==_12){ret=i;}});return ret;},attr:function(_15,_16,_17){var _18=_15;if(_15.constructor==String){if(_16==undefined){return this.length&&_2[_17||"attr"](this[0],_15)||undefined;}else{_18={};_18[_15]=_16;}}return this.each(function(i){for(_15 in _18){_2.attr(_17?this.style:this,_15,_2.prop(this,_18[_15],_17,i,_15));}});},css:function(key,_1b){if((key=="width"||key=="height")&&parseFloat(_1b)<0){_1b=undefined;}return this.attr(key,_1b,"curCSS");},text:function(_1c){if(typeof _1c!="object"&&_1c!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(_1c));}var ret="";_2.each(_1c||this,function(){_2.each(this.childNodes,function(){if(this.nodeType!=8){ret+=this.nodeType!=1?this.nodeValue:_2.fn.text([this]);}});});return ret;},wrapAll:function(_1e){if(this[0]){_2(_1e,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var _1f=this;while(_1f.firstChild){_1f=_1f.firstChild;}return _1f;}).append(this);}return this;},wrapInner:function(_20){return this.each(function(){_2(this).contents().wrapAll(_20);});},wrap:function(_21){return this.each(function(){_2(this).wrapAll(_21);});},append:function(){return this.domManip(arguments,true,false,function(_22){if(this.nodeType==1){this.appendChild(_22);}});},prepend:function(){return this.domManip(arguments,true,true,function(_23){if(this.nodeType==1){this.insertBefore(_23,this.firstChild);}});},before:function(){return this.domManip(arguments,false,false,function(_24){this.parentNode.insertBefore(_24,this);});},after:function(){return this.domManip(arguments,false,true,function(_25){this.parentNode.insertBefore(_25,this.nextSibling);});},end:function(){return this.prevObject||_2([]);},find:function(_26){var _27=_2.map(this,function(_28){return _2.find(_26,_28);});return this.pushStack(/[^+>] [^+>]/.test(_26)||_26.indexOf("..")>-1?_2.unique(_27):_27);},clone:function(_29){var ret=this.map(function(){if(_2.browser.msie&&!_2.isXMLDoc(this)){var _2b=this.cloneNode(true),_2c=document.createElement("div");_2c.appendChild(_2b);return _2.clean([_2c.innerHTML])[0];}else{return this.cloneNode(true);}});var _2d=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined){this[expando]=null;}});if(_29===true){this.find("*").andSelf().each(function(i){if(this.nodeType==3){return;}var _2f=_2.data(this,"events");for(var _30 in _2f){for(var _31 in _2f[_30]){_2.event.add(_2d[i],_30,_2f[_30][_31],_2f[_30][_31].data);}}});}return ret;},filter:function(_32){return this.pushStack(_2.isFunction(_32)&&_2.grep(this,function(_33,i){return _32.call(_33,i);})||_2.multiFilter(_32,this));},not:function(_35){if(_35.constructor==String){if(_7.test(_35)){return this.pushStack(_2.multiFilter(_35,this,true));}else{_35=_2.multiFilter(_35,this);}}var _36=_35.length&&_35[_35.length-1]!==undefined&&!_35.nodeType;return this.filter(function(){return _36?_2.inArray(this,_35)<0:this!=_35;});},add:function(_37){return !_37?this:this.pushStack(_2.merge(this.get(),_37.constructor==String?_2(_37).get():_37.length!=undefined&&(!_37.nodeName||_2.nodeName(_37,"form"))?_37:[_37]));},is:function(_38){return _38?_2.multiFilter(_38,this).length>0:false;},hasClass:function(_39){return this.is("."+_39);},val:function(_3a){if(_3a==undefined){if(this.length){var _3b=this[0];if(_2.nodeName(_3b,"select")){var _3c=_3b.selectedIndex,_3d=[],_3e=_3b.options,one=_3b.type=="select-one";if(_3c<0){return null;}for(var i=one?_3c:0,max=one?_3c+1:_3e.length;i<max;i++){var _42=_3e[i];if(_42.selected){_3a=_2.browser.msie&&!_42.attributes.value.specified?_42.text:_42.value;if(one){return _3a;}_3d.push(_3a);}}return _3d;}else{return (this[0].value||"").replace(/\r/g,"");}}return undefined;}return this.each(function(){if(this.nodeType!=1){return;}if(_3a.constructor==Array&&/radio|checkbox/.test(this.type)){this.checked=(_2.inArray(this.value,_3a)>=0||_2.inArray(this.name,_3a)>=0);}else{if(_2.nodeName(this,"select")){var _43=_3a.constructor==Array?_3a:[_3a];_2("option",this).each(function(){this.selected=(_2.inArray(this.value,_43)>=0||_2.inArray(this.text,_43)>=0);});if(!_43.length){this.selectedIndex=-1;}}else{this.value=_3a;}}});},html:function(_44){return _44==undefined?(this.length?this[0].innerHTML:null):this.empty().append(_44);},replaceWith:function(_45){return this.after(_45).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments));},map:function(_47){return this.pushStack(_2.map(this,function(_48,i){return _47.call(_48,i,_48);}));},andSelf:function(){return this.add(this.prevObject);},data:function(key,_4b){var _4c=key.split(".");_4c[1]=_4c[1]?"."+_4c[1]:"";if(_4b==null){var _4d=this.triggerHandler("getData"+_4c[1]+"!",[_4c[0]]);if(_4d==undefined&&this.length){_4d=_2.data(this[0],key);}return _4d==null&&_4c[1]?this.data(_4c[0]):_4d;}else{return this.trigger("setData"+_4c[1]+"!",[_4c[0],_4b]).each(function(){_2.data(this,key,_4b);});}},removeData:function(key){return this.each(function(){_2.removeData(this,key);});},domManip:function(_4f,_50,_51,_52){var _53=this.length>1,_54;return this.each(function(){if(!_54){_54=_2.clean(_4f,this.ownerDocument);if(_51){_54.reverse();}}var obj=this;if(_50&&_2.nodeName(this,"table")&&_2.nodeName(_54[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));}var _56=_2([]);_2.each(_54,function(){var _57=_53?_2(this).clone(true)[0]:this;if(_2.nodeName(_57,"script")){_56=_56.add(_57);}else{if(_57.nodeType==1){_56=_56.add(_2("script",_57).remove());}_52.call(obj,_57);}});_56.each(evalScript);});}};_2.prototype.init.prototype=_2.prototype;function evalScript(i,_59){if(_59.src){_2.ajax({url:_59.src,async:false,dataType:"script"});}else{_2.globalEval(_59.text||_59.textContent||_59.innerHTML||"");}if(_59.parentNode){_59.parentNode.removeChild(_59);}}_2.extend=_2.fn.extend=function(){var _5a=arguments[0]||{},i=1,_5c=arguments.length,_5d=false,_5e;if(_5a.constructor==Boolean){_5d=_5a;_5a=arguments[1]||{};i=2;}if(typeof _5a!="object"&&typeof _5a!="function"){_5a={};}if(_5c==1){_5a=this;i=0;}for(;i<_5c;i++){if((_5e=arguments[i])!=null){for(var _5f in _5e){if(_5a===_5e[_5f]){continue;}if(_5d&&_5e[_5f]&&typeof _5e[_5f]=="object"&&_5a[_5f]&&!_5e[_5f].nodeType){_5a[_5f]=_2.extend(_5a[_5f],_5e[_5f]);}else{if(_5e[_5f]!=undefined){_5a[_5f]=_5e[_5f];}}}}}return _5a;};var _60="jQuery"+(new Date()).getTime(),_61=0,_62={};var _63=/z-?index|font-?weight|opacity|zoom|line-?height/i;_2.extend({noConflict:function(_64){window.$=_$;if(_64){window.jQuery=_1;}return _2;},isFunction:function(fn){return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/function/i.test(fn+"");},isXMLDoc:function(_66){return _66.documentElement&&!_66.body||_66.tagName&&_66.ownerDocument&&!_66.ownerDocument.body;},globalEval:function(_67){_67=_2.trim(_67);if(_67){var _68=document.getElementsByTagName("head")[0]||document.documentElement,_69=document.createElement("script");_69.type="text/javascript";if(_2.browser.msie){_69.text=_67;}else{_69.appendChild(document.createTextNode(_67));}_68.appendChild(_69);_68.removeChild(_69);}},nodeName:function(_6a,_6b){return _6a.nodeName&&_6a.nodeName.toUpperCase()==_6b.toUpperCase();},cache:{},data:function(_6c,_6d,_6e){_6c=_6c==window?_62:_6c;var id=_6c[_60];if(!id){id=_6c[_60]=++_61;}if(_6d&&!_2.cache[id]){_2.cache[id]={};}if(_6e!=undefined){_2.cache[id][_6d]=_6e;}return _6d?_2.cache[id][_6d]:id;},removeData:function(_70,_71){_70=_70==window?_62:_70;var id=_70[_60];if(_71){if(_2.cache[id]){delete _2.cache[id][_71];_71="";for(_71 in _2.cache[id]){break;}if(!_71){_2.removeData(_70);}}}else{try{delete _70[_60];}catch(e){if(_70.removeAttribute){_70.removeAttribute(_60);}}delete _2.cache[id];}},each:function(_73,_74,_75){if(_75){if(_73.length==undefined){for(var _76 in _73){if(_74.apply(_73[_76],_75)===false){break;}}}else{for(var i=0,_78=_73.length;i<_78;i++){if(_74.apply(_73[i],_75)===false){break;}}}}else{if(_73.length==undefined){for(var _76 in _73){if(_74.call(_73[_76],_76,_73[_76])===false){break;}}}else{for(var i=0,_78=_73.length,_79=_73[0];i<_78&&_74.call(_79,i,_79)!==false;_79=_73[++i]){}}}return _73;},prop:function(_7a,_7b,_7c,i,_7e){if(_2.isFunction(_7b)){_7b=_7b.call(_7a,i);}return _7b&&_7b.constructor==Number&&_7c=="curCSS"&&!_63.test(_7e)?_7b+"px":_7b;},className:{add:function(_7f,_80){_2.each((_80||"").split(/\s+/),function(i,_82){if(_7f.nodeType==1&&!_2.className.has(_7f.className,_82)){_7f.className+=(_7f.className?" ":"")+_82;}});},remove:function(_83,_84){if(_83.nodeType==1){_83.className=_84!=undefined?_2.grep(_83.className.split(/\s+/),function(_85){return !_2.className.has(_84,_85);}).join(" "):"";}},has:function(_86,_87){return _2.inArray(_87,(_86.className||_86).toString().split(/\s+/))>-1;}},swap:function(_88,_89,_8a){var old={};for(var _8c in _89){old[_8c]=_88.style[_8c];_88.style[_8c]=_89[_8c];}_8a.call(_88);for(var _8c in _89){_88.style[_8c]=old[_8c];}},css:function(_8d,_8e,_8f){if(_8e=="width"||_8e=="height"){var val,_91={position:"absolute",visibility:"hidden",display:"block"},_92=_8e=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=_8e=="width"?_8d.offsetWidth:_8d.offsetHeight;var _93=0,_94=0;_2.each(_92,function(){_93+=parseFloat(_2.curCSS(_8d,"padding"+this,true))||0;_94+=parseFloat(_2.curCSS(_8d,"border"+this+"Width",true))||0;});val-=Math.round(_93+_94);}if(_2(_8d).is(":visible")){getWH();}else{_2.swap(_8d,_91,getWH);}return Math.max(0,val);}return _2.curCSS(_8d,_8e,_8f);},curCSS:function(_95,_96,_97){var ret;function color(_99){if(!_2.browser.safari){return false;}var ret=document.defaultView.getComputedStyle(_99,null);return !ret||ret.getPropertyValue("color")=="";}if(_96=="opacity"&&_2.browser.msie){ret=_2.attr(_95.style,"opacity");return ret==""?"1":ret;}if(_2.browser.opera&&_96=="display"){var _9b=_95.style.outline;_95.style.outline="0 solid black";_95.style.outline=_9b;}if(_96.match(/float/i)){_96=styleFloat;}if(!_97&&_95.style&&_95.style[_96]){ret=_95.style[_96];}else{if(document.defaultView&&document.defaultView.getComputedStyle){if(_96.match(/float/i)){_96="float";}_96=_96.replace(/([A-Z])/g,"-$1").toLowerCase();var _9c=document.defaultView.getComputedStyle(_95,null);if(_9c&&!color(_95)){ret=_9c.getPropertyValue(_96);}else{var _9d=[],_9e=[];for(var a=_95;a&&color(a);a=a.parentNode){_9e.unshift(a);}for(var i=0;i<_9e.length;i++){if(color(_9e[i])){_9d[i]=_9e[i].style.display;_9e[i].style.display="block";}}ret=_96=="display"&&_9d[_9e.length-1]!=null?"none":(_9c&&_9c.getPropertyValue(_96))||"";for(var i=0;i<_9d.length;i++){if(_9d[i]!=null){_9e[i].style.display=_9d[i];}}}if(_96=="opacity"&&ret==""){ret="1";}}else{if(_95.currentStyle){var _a1=_96.replace(/\-(\w)/g,function(all,_a3){return _a3.toUpperCase();});ret=_95.currentStyle[_96]||_95.currentStyle[_a1];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var _a4=_95.style.left,_a5=_95.runtimeStyle.left;_95.runtimeStyle.left=_95.currentStyle.left;_95.style.left=ret||0;ret=_95.style.pixelLeft+"px";_95.style.left=_a4;_95.runtimeStyle.left=_a5;}}}}return ret;},clean:function(_a6,_a7){var ret=[];_a7=_a7||document;if(typeof _a7.createElement=="undefined"){_a7=_a7.ownerDocument||_a7[0]&&_a7[0].ownerDocument||document;}_2.each(_a6,function(i,_aa){if(!_aa){return;}if(_aa.constructor==Number){_aa=_aa.toString();}if(typeof _aa=="string"){_aa=_aa.replace(/(<(\w+)[^>]*?)\/>/g,function(all,_ac,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:_ac+"></"+tag+">";});var _ae=_2.trim(_aa).toLowerCase(),div=_a7.createElement("div");var _b0=!_ae.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!_ae.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||_ae.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!_ae.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!_ae.indexOf("<td")||!_ae.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!_ae.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||_2.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=_b0[1]+_aa+_b0[2];while(_b0[0]--){div=div.lastChild;}if(_2.browser.msie){var _b1=!_ae.indexOf("<table")&&_ae.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:_b0[1]=="<table>"&&_ae.indexOf("<tbody")<0?div.childNodes:[];for(var j=_b1.length-1;j>=0;--j){if(_2.nodeName(_b1[j],"tbody")&&!_b1[j].childNodes.length){_b1[j].parentNode.removeChild(_b1[j]);}}if(/^\s/.test(_aa)){div.insertBefore(_a7.createTextNode(_aa.match(/^\s*/)[0]),div.firstChild);}}_aa=_2.makeArray(div.childNodes);}if(_aa.length===0&&(!_2.nodeName(_aa,"form")&&!_2.nodeName(_aa,"select"))){return;}if(_aa[0]==undefined||_2.nodeName(_aa,"form")||_aa.options){ret.push(_aa);}else{ret=_2.merge(ret,_aa);}});return ret;},attr:function(_b3,_b4,_b5){if(!_b3||_b3.nodeType==3||_b3.nodeType==8){return undefined;}var fix=_2.isXMLDoc(_b3)?{}:_2.props;if(_b4=="selected"&&_2.browser.safari){_b3.parentNode.selectedIndex;}if(fix[_b4]){if(_b5!=undefined){_b3[fix[_b4]]=_b5;}return _b3[fix[_b4]];}else{if(_2.browser.msie&&_b4=="style"){return _2.attr(_b3.style,"cssText",_b5);}else{if(_b5==undefined&&_2.browser.msie&&_2.nodeName(_b3,"form")&&(_b4=="action"||_b4=="method")){return _b3.getAttributeNode(_b4).nodeValue;}else{if(_b3.tagName){if(_b5!=undefined){if(_b4=="type"&&_2.nodeName(_b3,"input")&&_b3.parentNode){throw "type property can't be changed";}_b3.setAttribute(_b4,""+_b5);}if(_2.browser.msie&&/href|src/.test(_b4)&&!_2.isXMLDoc(_b3)){return _b3.getAttribute(_b4,2);}return _b3.getAttribute(_b4);}else{if(_b4=="opacity"&&_2.browser.msie){if(_b5!=undefined){_b3.zoom=1;_b3.filter=(_b3.filter||"").replace(/alpha\([^)]*\)/,"")+(parseFloat(_b5).toString()=="NaN"?"":"alpha(opacity="+_b5*100+")");}return _b3.filter&&_b3.filter.indexOf("opacity=")>=0?(parseFloat(_b3.filter.match(/opacity=([^)]*)/)[1])/100).toString():"";}_b4=_b4.replace(/-([a-z])/ig,function(all,_b8){return _b8.toUpperCase();});if(_b5!=undefined){_b3[_b4]=_b5;}return _b3[_b4];}}}}},trim:function(_b9){return (_b9||"").replace(/^\s+|\s+$/g,"");},makeArray:function(_ba){var ret=[];if(typeof _ba!="array"){for(var i=0,_bd=_ba.length;i<_bd;i++){ret.push(_ba[i]);}}else{ret=_ba.slice(0);}return ret;},inArray:function(_be,_bf){for(var i=0,_c1=_bf.length;i<_c1;i++){if(_bf[i]==_be){return i;}}return -1;},merge:function(_c2,_c3){if(_2.browser.msie){for(var i=0;_c3[i];i++){if(_c3[i].nodeType!=8){_c2.push(_c3[i]);}}}else{for(var i=0;_c3[i];i++){_c2.push(_c3[i]);}}return _c2;},unique:function(_c5){var ret=[],_c7={};try{for(var i=0,_c9=_c5.length;i<_c9;i++){var id=_2.data(_c5[i]);if(!_c7[id]){_c7[id]=true;ret.push(_c5[i]);}}}catch(e){ret=_c5;}return ret;},grep:function(_cb,_cc,inv){var ret=[];for(var i=0,_d0=_cb.length;i<_d0;i++){if(!inv&&_cc(_cb[i],i)||inv&&!_cc(_cb[i],i)){ret.push(_cb[i]);}}return ret;},map:function(_d1,_d2){var ret=[];for(var i=0,_d5=_d1.length;i<_d5;i++){var _d6=_d2(_d1[i],i);if(_d6!==null&&_d6!=undefined){if(_d6.constructor!=Array){_d6=[_d6];}ret=ret.concat(_d6);}}return ret;}});var _d7=navigator.userAgent.toLowerCase();_2.browser={version:(_d7.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(_d7),opera:/opera/.test(_d7),msie:/msie/.test(_d7)&&!/opera/.test(_d7),mozilla:/mozilla/.test(_d7)&&!/(compatible|webkit)/.test(_d7)};var _d8=_2.browser.msie?"styleFloat":"cssFloat";_2.extend({boxModel:!_2.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":_d8,cssFloat:_d8,styleFloat:_d8,innerHTML:"innerHTML",className:"className",value:"value",disabled:"disabled",checked:"checked",readonly:"readOnly",selected:"selected",maxlength:"maxLength",selectedIndex:"selectedIndex",defaultValue:"defaultValue",tagName:"tagName",nodeName:"nodeName"}});_2.each({parent:function(_d9){return _d9.parentNode;},parents:function(_da){return _2.dir(_da,"parentNode");},next:function(_db){return _2.nth(_db,2,"nextSibling");},prev:function(_dc){return _2.nth(_dc,2,"previousSibling");},nextAll:function(_dd){return _2.dir(_dd,"nextSibling");},prevAll:function(_de){return _2.dir(_de,"previousSibling");},siblings:function(_df){return _2.sibling(_df.parentNode.firstChild,_df);},children:function(_e0){return _2.sibling(_e0.firstChild);},contents:function(_e1){return _2.nodeName(_e1,"iframe")?_e1.contentDocument||_e1.contentWindow.document:_2.makeArray(_e1.childNodes);}},function(_e2,fn){_2.fn[_e2]=function(_e4){var ret=_2.map(this,fn);if(_e4&&typeof _e4=="string"){ret=_2.multiFilter(_e4,ret);}return this.pushStack(_2.unique(ret));};});_2.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(_e6,_e7){_2.fn[_e6]=function(){var _e8=arguments;return this.each(function(){for(var i=0,_ea=_e8.length;i<_ea;i++){_2(_e8[i])[_e7](this);}});};});_2.each({removeAttr:function(_eb){_2.attr(this,_eb,"");if(this.nodeType==1){this.removeAttribute(_eb);}},addClass:function(_ec){_2.className.add(this,_ec);},removeClass:function(_ed){_2.className.remove(this,_ed);},toggleClass:function(_ee){_2.className[_2.className.has(this,_ee)?"remove":"add"](this,_ee);},remove:function(_ef){if(!_ef||_2.filter(_ef,[this]).r.length){_2("*",this).add(this).each(function(){_2.event.remove(this);_2.removeData(this);});if(this.parentNode){this.parentNode.removeChild(this);}}},empty:function(){_2(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild);}}},function(_f0,fn){_2.fn[_f0]=function(){return this.each(fn,arguments);};});_2.each(["Height","Width"],function(i,_f3){var _f4=_f3.toLowerCase();_2.fn[_f4]=function(_f5){return this[0]==window?_2.browser.opera&&document.body["client"+_f3]||_2.browser.safari&&window["inner"+_f3]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+_f3]||document.body["client"+_f3]:this[0]==document?Math.max(Math.max(document.body["scroll"+_f3],document.documentElement["scroll"+_f3]),Math.max(document.body["offset"+_f3],document.documentElement["offset"+_f3])):_f5==undefined?(this.length?_2.css(this[0],_f4):null):this.css(_f4,_f5.constructor==String?_f5:_f5+"px");};});var _f6=_2.browser.safari&&parseInt(_2.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uffff*_-]|\\\\.)",_f7=new RegExp("^>\\s*("+_f6+"+)"),_f8=new RegExp("^("+_f6+"+)(#)("+_f6+"+)"),_f9=new RegExp("^([#.]?)("+_f6+"*)");_2.extend({expr:{"":function(a,i,m){return m[2]=="*"||_2.nodeName(a,m[2]);},"#":function(a,i,m){return a.getAttribute("id")==m[2];},":":{lt:function(a,i,m){return i<m[3]-0;},gt:function(a,i,m){return i>m[3]-0;},nth:function(a,i,m){return m[3]-0==i;},eq:function(a,i,m){return m[3]-0==i;},first:function(a,i){return i==0;},last:function(a,i,m,r){return i==r.length-1;},even:function(a,i){return i%2==0;},odd:function(a,i){return i%2;},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},"last-child":function(a){return _2.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-child":function(a){return !_2.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){return a.firstChild;},empty:function(a){return !a.firstChild;},contains:function(a,i,m){return (a.textContent||a.innerText||_2(a).text()||"").indexOf(m[3])>=0;},visible:function(a){return "hidden"!=a.type&&_2.css(a,"display")!="none"&&_2.css(a,"visibility")!="hidden";},hidden:function(a){return "hidden"==a.type||_2.css(a,"display")=="none"||_2.css(a,"visibility")=="hidden";},enabled:function(a){return !a.disabled;},disabled:function(a){return a.disabled;},checked:function(a){return a.checked;},selected:function(a){return a.selected||_2.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||_2.nodeName(a,"button");},input:function(a){return /input|select|textarea|button/i.test(a.nodeName);},has:function(a,i,m){return _2.find(m[3],a).length;},header:function(a){return /h\d/i.test(a.nodeName);},animated:function(a){return _2.grep(_2.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+_f6+"+)")],multiFilter:function(expr,_135,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=_2.filter(expr,_135,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?_135=f.r:_2.merge(cur,f.r);}return cur;},find:function(t,_13b){if(typeof t!="string"){return [t];}if(_13b&&_13b.nodeType!=1&&_13b.nodeType!=9){return [];}_13b=_13b||document;var ret=[_13b],done=[],last,_13f;while(t&&last!=t){var r=[];last=t;t=_2.trim(t);var _141=false;var re=_f7;var m=re.exec(t);if(m){_13f=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&&(_13f=="*"||c.nodeName.toUpperCase()==_13f)){r.push(c);}}}ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0){continue;}_141=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var _146={};_13f=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){var id=_2.data(n);if(m=="~"&&_146[id]){break;}if(!_13f||n.nodeName.toUpperCase()==_13f){if(m=="~"){_146[id]=true;}r.push(n);}if(m=="+"){break;}}}}ret=r;t=_2.trim(t.replace(re,""));_141=true;}}if(t&&!_141){if(!t.indexOf(",")){if(_13b==ret[0]){ret.shift();}done=_2.merge(done,ret);r=ret=[_13b];t=" "+t.substr(1,t.length);}else{var re2=_f8;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]];}else{re2=_f9;m=re2.exec(t);}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!_2.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((_2.browser.msie||_2.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){oid=_2("[@id=\""+m[2]+"\"]",elem)[0];}ret=r=oid&&(!m[3]||_2.nodeName(oid,m[3]))?[oid]:[];}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){tag="param";}r=_2.merge(r,ret[i].getElementsByTagName(tag));}if(m[1]=="."){r=_2.classFilter(r,m[2]);}if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++){if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break;}}r=tmp;}ret=r;}t=t.replace(re2,"");}}if(t){var val=_2.filter(t,r);ret=r=val.r;t=_2.trim(val.t);}}if(t){ret=[];}if(ret&&_13b==ret[0]){ret.shift();}done=_2.merge(done,ret);return done;},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass){tmp.push(r[i]);}}return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=_2.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}if(!m){break;}if(m[1]==":"&&m[2]=="not"){r=_7.test(m[3])?_2.filter(m[3],r,true).r:_2(r).not(m[3]);}else{if(m[1]=="."){r=_2.classFilter(r,m[2],not);}else{if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[_2.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2])){z=_2.attr(a,m[2])||"";}if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){tmp.push(a);}}r=tmp;}else{if(m[1]==":"&&m[2]=="nth-child"){var _163={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),_165=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],_167=node.parentNode,id=_2.data(_167);if(!_163[id]){var c=1;for(var n=_167.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++;}}_163[id]=true;}var add=false;if(_165==0){if(node.nodeIndex==last){add=true;}}else{if((node.nodeIndex-last)%_165==0&&(node.nodeIndex-last)/_165>=0){add=true;}}if(add^not){tmp.push(node);}}r=tmp;}else{var fn=_2.expr[m[1]];if(typeof fn=="object"){fn=fn[m[2]];}if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+";}");}r=_2.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}}}}return {r:r,t:t};},dir:function(elem,dir){var _171=[];var cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1){_171.push(cur);}cur=cur[dir];}return _171;},nth:function(cur,_174,dir,elem){_174=_174||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType==1&&++num==_174){break;}}return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&(!elem||n!=elem)){r.push(n);}}return r;}});_2.event={add:function(elem,_17c,_17d,data){if(elem.nodeType==3||elem.nodeType==8){return;}if(_2.browser.msie&&elem.setInterval!=undefined){elem=window;}if(!_17d.guid){_17d.guid=this.guid++;}if(data!=undefined){var fn=_17d;_17d=function(){return fn.apply(this,arguments);};_17d.data=data;_17d.guid=fn.guid;}var _180=_2.data(elem,"events")||_2.data(elem,"events",{}),_181=_2.data(elem,"handle")||_2.data(elem,"handle",function(){var val;if(typeof _2=="undefined"||_2.event.triggered){return val;}val=_2.event.handle.apply(arguments.callee.elem,arguments);return val;});_181.elem=elem;_2.each(_17c.split(/\s+/),function(_183,type){var _185=type.split(".");type=_185[0];_17d.type=_185[1];var _186=_180[type];if(!_186){_186=_180[type]={};if(!_2.event.special[type]||_2.event.special[type].setup.call(elem)===false){if(elem.addEventListener){elem.addEventListener(type,_181,false);}else{if(elem.attachEvent){elem.attachEvent("on"+type,_181);}}}}_186[_17d.guid]=_17d;_2.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,_188,_189){if(elem.nodeType==3||elem.nodeType==8){return;}var _18a=_2.data(elem,"events"),ret,_18c;if(_18a){if(_188==undefined||(typeof _188=="string"&&_188.charAt(0)==".")){for(var type in _18a){this.remove(elem,type+(_188||""));}}else{if(_188.type){_189=_188.handler;_188=_188.type;}_2.each(_188.split(/\s+/),function(_18e,type){var _190=type.split(".");type=_190[0];if(_18a[type]){if(_189){delete _18a[type][_189.guid];}else{for(_189 in _18a[type]){if(!_190[1]||_18a[type][_189].type==_190[1]){delete _18a[type][_189];}}}for(ret in _18a[type]){break;}if(!ret){if(!_2.event.special[type]||_2.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener){elem.removeEventListener(type,_2.data(elem,"handle"),false);}else{if(elem.detachEvent){elem.detachEvent("on"+type,_2.data(elem,"handle"));}}}ret=null;delete _18a[type];}}});}for(ret in _18a){break;}if(!ret){var _191=_2.data(elem,"handle");if(_191){_191.elem=null;}_2.removeData(elem,"events");_2.removeData(elem,"handle");}}},trigger:function(type,data,elem,_195,_196){data=_2.makeArray(data||[]);if(type.indexOf("!")>=0){type=type.slice(0,-1);var _197=true;}if(!elem){if(this.global[type]){_2("*").add([window,document]).trigger(type,data);}}else{if(elem.nodeType==3||elem.nodeType==8){return undefined;}var val,ret,fn=_2.isFunction(elem[type]||null),_19b=!data[0]||!data[0].preventDefault;if(_19b){data.unshift(this.fix({type:type,target:elem}));}data[0].type=type;if(_197){data[0].exclusive=true;}if(_2.isFunction(_2.data(elem,"handle"))){val=_2.data(elem,"handle").apply(elem,data);}if(!fn&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false){val=false;}if(_19b){data.shift();}if(_196&&_2.isFunction(_196)){ret=_196.apply(elem,val==null?data:data.concat(val));if(ret!==undefined){val=ret;}}if(fn&&_195!==false&&val!==false&&!(_2.nodeName(elem,"a")&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return val;},handle:function(_19c){var val;_19c=_2.event.fix(_19c||window.event||{});var _19e=_19c.type.split(".");_19c.type=_19e[0];var _19f=_2.data(this,"events")&&_2.data(this,"events")[_19c.type],args=Array.prototype.slice.call(arguments,1);args.unshift(_19c);for(var j in _19f){var _1a2=_19f[j];args[0].handler=_1a2;args[0].data=_1a2.data;if(!_19e[1]&&!_19c.exclusive||_1a2.type==_19e[1]){var ret=_1a2.apply(this,args);if(val!==false){val=ret;}if(ret===false){_19c.preventDefault();_19c.stopPropagation();}}}if(_2.browser.msie){_19c.target=_19c.preventDefault=_19c.stopPropagation=_19c.handler=_19c.data=null;}return val;},fix:function(_1a4){var _1a5=_1a4;_1a4=_2.extend({},_1a5);_1a4.preventDefault=function(){if(_1a5.preventDefault){_1a5.preventDefault();}_1a5.returnValue=false;};_1a4.stopPropagation=function(){if(_1a5.stopPropagation){_1a5.stopPropagation();}_1a5.cancelBubble=true;};if(!_1a4.target){_1a4.target=_1a4.srcElement||document;}if(_1a4.target.nodeType==3){_1a4.target=_1a5.target.parentNode;}if(!_1a4.relatedTarget&&_1a4.fromElement){_1a4.relatedTarget=_1a4.fromElement==_1a4.target?_1a4.toElement:_1a4.fromElement;}if(_1a4.pageX==null&&_1a4.clientX!=null){var doc=document.documentElement,body=document.body;_1a4.pageX=_1a4.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);_1a4.pageY=_1a4.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}if(!_1a4.which&&((_1a4.charCode||_1a4.charCode===0)?_1a4.charCode:_1a4.keyCode)){_1a4.which=_1a4.charCode||_1a4.keyCode;}if(!_1a4.metaKey&&_1a4.ctrlKey){_1a4.metaKey=_1a4.ctrlKey;}if(!_1a4.which&&_1a4.button){_1a4.which=(_1a4.button&1?1:(_1a4.button&2?3:(_1a4.button&4?2:0)));}return _1a4;},special:{ready:{setup:function(){bindReady();return;},teardown:function(){return;}},mouseenter:{setup:function(){if(_2.browser.msie){return false;}_2(this).bind("mouseover",_2.event.special.mouseenter.handler);return true;},teardown:function(){if(_2.browser.msie){return false;}_2(this).unbind("mouseover",_2.event.special.mouseenter.handler);return true;},handler:function(_1a8){if(_1a9(_1a8,this)){return true;}arguments[0].type="mouseenter";return _2.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(_2.browser.msie){return false;}_2(this).bind("mouseout",_2.event.special.mouseleave.handler);return true;},teardown:function(){if(_2.browser.msie){return false;}_2(this).unbind("mouseout",_2.event.special.mouseleave.handler);return true;},handler:function(_1aa){if(_1a9(_1aa,this)){return true;}arguments[0].type="mouseleave";return _2.event.handle.apply(this,arguments);}}}};_2.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){_2.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){return this.each(function(){_2.event.add(this,type,function(_1b1){_2(this).unbind(_1b1);return (fn||data).apply(this,arguments);},fn&&data);});},unbind:function(type,fn){return this.each(function(){_2.event.remove(this,type,fn);});},trigger:function(type,data,fn){return this.each(function(){_2.event.trigger(type,data,this,true,fn);});},triggerHandler:function(type,data,fn){if(this[0]){return _2.event.trigger(type,data,this[0],false,fn);}return undefined;},toggle:function(){var args=arguments;return this.click(function(_1bb){this.lastToggle=0==this.lastToggle?1:0;_1bb.preventDefault();return args[this.lastToggle].apply(this,arguments)||false;});},hover:function(_1bc,_1bd){return this.bind("mouseenter",_1bc).bind("mouseleave",_1bd);},ready:function(fn){bindReady();if(_2.isReady){fn.call(document,_2);}else{_2.readyList.push(function(){return fn.call(this,_2);});}return this;}});_2.extend({isReady:false,readyList:[],ready:function(){if(!_2.isReady){_2.isReady=true;if(_2.readyList){_2.each(_2.readyList,function(){this.apply(document);});_2.readyList=null;}_2(document).triggerHandler("ready");}}});var _1bf=false;function bindReady(){if(_1bf){return;}_1bf=true;if(document.addEventListener&&!_2.browser.opera){document.addEventListener("DOMContentLoaded",_2.ready,false);}if(_2.browser.msie&&window==top){(function(){if(_2.isReady){return;}try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}_2.ready();})();}if(_2.browser.opera){document.addEventListener("DOMContentLoaded",function(){if(_2.isReady){return;}for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}}_2.ready();},false);}if(_2.browser.safari){var _1c1;(function(){if(_2.isReady){return;}if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return;}if(_1c1===undefined){_1c1=_2("style, link[rel=stylesheet]").length;}if(document.styleSheets.length!=_1c1){setTimeout(arguments.callee,0);return;}_2.ready();})();}_2.event.add(window,"load",_2.ready);}_2.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,name){_2.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};});var _1a9=function(_1c5,elem){var _1c7=_1c5.relatedTarget;while(_1c7&&_1c7!=elem){try{_1c7=_1c7.parentNode;}catch(error){_1c7=elem;}}return _1c7==elem;};_2(window).bind("unload",function(){_2("*").add(document).unbind();});_2.fn.extend({load:function(url,_1c9,_1ca){if(_2.isFunction(url)){return this.bind("load",url);}var off=url.indexOf(" ");if(off>=0){var _1cc=url.slice(off,url.length);url=url.slice(0,off);}_1ca=_1ca||function(){};var type="GET";if(_1c9){if(_2.isFunction(_1c9)){_1ca=_1c9;_1c9=null;}else{_1c9=_2.param(_1c9);type="POST";}}var self=this;_2.ajax({url:url,type:type,dataType:"html",data:_1c9,complete:function(res,_1d0){if(_1d0=="success"||_1d0=="notmodified"){self.html(_1cc?_2("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(_1cc):res.responseText);}self.each(_1ca,[res.responseText,_1d0,res]);}});return this;},serialize:function(){return _2.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return _2.nodeName(this,"form")?_2.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(i,elem){var val=_2(this).val();return val==null?null:val.constructor==Array?_2.map(val,function(val,i){return {name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});_2.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){_2.fn[o]=function(f){return this.bind(o,f);};});var jsc=(new Date).getTime();_2.extend({get:function(url,data,_1dc,type){if(_2.isFunction(data)){_1dc=data;data=null;}return _2.ajax({type:"GET",url:url,data:data,success:_1dc,dataType:type});},getScript:function(url,_1df){return _2.get(url,null,_1df,"script");},getJSON:function(url,data,_1e2){return _2.get(url,data,_1e2,"json");},post:function(url,data,_1e5,type){if(_2.isFunction(data)){_1e5=data;data={};}return _2.ajax({type:"POST",url:url,data:data,success:_1e5,dataType:type});},ajaxSetup:function(_1e7){_2.extend(_2.ajaxSettings,_1e7);},ajaxSettings:{global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,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(s){var _1e9,jsre=/=\?(&|$)/g,_1eb,data;s=_2.extend(true,s,_2.extend(true,{},_2.ajaxSettings,s));if(s.data&&s.processData&&typeof s.data!="string"){s.data=_2.param(s.data);}if(s.dataType=="jsonp"){if(s.type.toLowerCase()=="get"){if(!s.url.match(jsre)){s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}}else{if(!s.data||!s.data.match(jsre)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";}}s.dataType="json";}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){_1e9="jsonp"+jsc++;if(s.data){s.data=(s.data+"").replace(jsre,"="+_1e9+"$1");}s.url=s.url.replace(jsre,"="+_1e9+"$1");s.dataType="script";window[_1e9]=function(tmp){data=tmp;success();complete();window[_1e9]=undefined;try{delete window[_1e9];}catch(e){}if(head){head.removeChild(_1ef);}};}if(s.dataType=="script"&&s.cache==null){s.cache=false;}if(s.cache===false&&s.type.toLowerCase()=="get"){var ts=(new Date()).getTime();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}if(s.data&&s.type.toLowerCase()=="get"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}if(s.global&&!_2.active++){_2.event.trigger("ajaxStart");}if((!s.url.indexOf("http")||!s.url.indexOf("//"))&&s.dataType=="script"&&s.type.toLowerCase()=="get"){var head=document.getElementsByTagName("head")[0];var _1ef=document.createElement("script");_1ef.src=s.url;if(s.scriptCharset){_1ef.charset=s.scriptCharset;}if(!_1e9){var done=false;_1ef.onload=_1ef.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(_1ef);}};}head.appendChild(_1ef);return undefined;}var _1f3=false;var xml=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();xml.open(s.type,s.url,s.async,s.username,s.password);try{if(s.data){xml.setRequestHeader("Content-Type",s.contentType);}if(s.ifModified){xml.setRequestHeader("If-Modified-Since",_2.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");}xml.setRequestHeader("X-Requested-With","XMLHttpRequest");xml.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}if(s.beforeSend){s.beforeSend(xml);}if(s.global){_2.event.trigger("ajaxSend",[xml,s]);}var _1f5=function(_1f6){if(!_1f3&&xml&&(xml.readyState==4||_1f6=="timeout")){_1f3=true;if(ival){clearInterval(ival);ival=null;}_1eb=_1f6=="timeout"&&"timeout"||!_2.httpSuccess(xml)&&"error"||s.ifModified&&_2.httpNotModified(xml,s.url)&&"notmodified"||"success";if(_1eb=="success"){try{data=_2.httpData(xml,s.dataType);}catch(e){_1eb="parsererror";}}if(_1eb=="success"){var _1f8;try{_1f8=xml.getResponseHeader("Last-Modified");}catch(e){}if(s.ifModified&&_1f8){_2.lastModified[s.url]=_1f8;}if(!_1e9){success();}}else{_2.handleError(s,xml,_1eb);}complete();if(s.async){xml=null;}}};if(s.async){var ival=setInterval(_1f5,13);if(s.timeout>0){setTimeout(function(){if(xml){xml.abort();if(!_1f3){_1f5("timeout");}}},s.timeout);}}try{xml.send(s.data);}catch(e){_2.handleError(s,xml,null,e);}if(!s.async){_1f5();}function success(){if(s.success){s.success(data,_1eb);}if(s.global){_2.event.trigger("ajaxSuccess",[xml,s]);}}function complete(){if(s.complete){s.complete(xml,_1eb);}if(s.global){_2.event.trigger("ajaxComplete",[xml,s]);}if(s.global&&!--_2.active){_2.event.trigger("ajaxStop");}}return xml;},handleError:function(s,xml,_1fb,e){if(s.error){s.error(xml,_1fb,e);}if(s.global){_2.event.trigger("ajaxError",[xml,s,e]);}},active:0,httpSuccess:function(r){try{return !r.status&&location.protocol=="file:"||(r.status>=200&&r.status<300)||r.status==304||r.status==1223||_2.browser.safari&&r.status==undefined;}catch(e){}return false;},httpNotModified:function(xml,url){try{var _200=xml.getResponseHeader("Last-Modified");return xml.status==304||_200==_2.lastModified[url]||_2.browser.safari&&xml.status==undefined;}catch(e){}return false;},httpData:function(r,type){var ct=r.getResponseHeader("content-type");var xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0;var data=xml?r.responseXML:r.responseText;if(xml&&data.documentElement.tagName=="parsererror"){throw "parsererror";}if(type=="script"){_2.globalEval(data);}if(type=="json"){data=eval("("+data+")");}return data;},param:function(a){var s=[];if(a.constructor==Array||a.jquery){_2.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));});}else{for(var j in a){if(a[j]&&a[j].constructor==Array){_2.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));});}else{s.push(encodeURIComponent(j)+"="+encodeURIComponent(a[j]));}}}return s.join("&").replace(/%20/g,"+");}});_2.fn.extend({show:function(_209,_20a){return _209?this.animate({height:"show",width:"show",opacity:"show"},_209,_20a):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(_2.css(this,"display")=="none"){var elem=_2("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none"){this.style.display="block";}elem.remove();}}).end();},hide:function(_20c,_20d){return _20c?this.animate({height:"hide",width:"hide",opacity:"hide"},_20c,_20d):this.filter(":visible").each(function(){this.oldblock=this.oldblock||_2.css(this,"display");this.style.display="none";}).end();},_toggle:_2.fn.toggle,toggle:function(fn,fn2){return _2.isFunction(fn)&&_2.isFunction(fn2)?this._toggle(fn,fn2):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){_2(this)[_2(this).is(":hidden")?"show":"hide"]();});},slideDown:function(_210,_211){return this.animate({height:"show"},_210,_211);},slideUp:function(_212,_213){return this.animate({height:"hide"},_212,_213);},slideToggle:function(_214,_215){return this.animate({height:"toggle"},_214,_215);},fadeIn:function(_216,_217){return this.animate({opacity:"show"},_216,_217);},fadeOut:function(_218,_219){return this.animate({opacity:"hide"},_218,_219);},fadeTo:function(_21a,to,_21c){return this.animate({opacity:to},_21a,_21c);},animate:function(prop,_21e,_21f,_220){var _221=_2.speed(_21e,_21f,_220);return this[_221.queue===false?"each":"queue"](function(){if(this.nodeType!=1){return false;}var opt=_2.extend({},_221);var _223=_2(this).is(":hidden"),self=this;for(var p in prop){if(prop[p]=="hide"&&_223||prop[p]=="show"&&!_223){return _2.isFunction(opt.complete)&&opt.complete.apply(this);}if(p=="height"||p=="width"){opt.display=_2.css(this,"display");opt.overflow=this.style.overflow;}}if(opt.overflow!=null){this.style.overflow="hidden";}opt.curAnim=_2.extend({},prop);_2.each(prop,function(name,val){var e=new _2.fx(self,opt,name);if(/toggle|show|hide/.test(val)){e[val=="toggle"?_223?"show":"hide":val](prop);}else{var _229=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),_22a=e.cur(true)||0;if(_229){var end=parseFloat(_229[2]),unit=_229[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;_22a=((end||1)/e.cur(true))*_22a;self.style[name]=_22a+unit;}if(_229[1]){end=((_229[1]=="-="?-1:1)*end)+_22a;}e.custom(_22a,end,unit);}else{e.custom(_22a,val,"");}}});return true;});},queue:function(type,fn){if(_2.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx";}if(!type||(typeof type=="string"&&!fn)){return queue(this[0],type);}return this.each(function(){if(fn.constructor==Array){_22f(this,type,fn);}else{_22f(this,type).push(fn);if(_22f(this,type).length==1){fn.apply(this);}}});},stop:function(_230,_231){var _232=_2.timers;if(_230){this.queue([]);}this.each(function(){for(var i=_232.length-1;i>=0;i--){if(_232[i].elem==this){if(_231){_232[i](true);}_232.splice(i,1);}}});if(!_231){this.dequeue();}return this;}});var _22f=function(elem,type,_236){if(!elem){return undefined;}type=type||"fx";var q=_2.data(elem,type+"queue");if(!q||_236){q=_2.data(elem,type+"queue",_236?_2.makeArray(_236):[]);}return q;};_2.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=_22f(this,type);q.shift();if(q.length){q[0].apply(this);}});};_2.extend({speed:function(_23a,_23b,fn){var opt=_23a&&_23a.constructor==Object?_23a:{complete:fn||!fn&&_23b||_2.isFunction(_23a)&&_23a,duration:_23a,easing:fn&&_23b||_23b&&_23b.constructor!=Function&&_23b};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:{slow:600,fast:200}[opt.duration])||400;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){_2(this).dequeue();}if(_2.isFunction(opt.old)){opt.old.apply(this);}};return opt;},easing:{linear:function(p,n,_240,diff){return _240+diff*p;},swing:function(p,n,_244,diff){return ((-Math.cos(p*Math.PI)/2)+0.5)*diff+_244;}},timers:[],timerId:null,fx:function(elem,_247,prop){this.options=_247;this.elem=elem;this.prop=prop;if(!_247.orig){_247.orig={};}}});_2.fx.prototype={update:function(){if(this.options.step){this.options.step.apply(this.elem,[this.now,this]);}(_2.fx.step[this.prop]||_2.fx.step._default)(this);if(this.prop=="height"||this.prop=="width"){this.elem.style.display="block";}},cur:function(_249){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){return this.elem[this.prop];}var r=parseFloat(_2.css(this.elem,this.prop,_249));return r&&r>-10000?r:parseFloat(_2.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=(new Date()).getTime();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(_24f){return self.step(_24f);}t.elem=this.elem;_2.timers.push(t);if(_2.timerId==null){_2.timerId=setInterval(function(){var _250=_2.timers;for(var i=0;i<_250.length;i++){if(!_250[i]()){_250.splice(i--,1);}}if(!_250.length){clearInterval(_2.timerId);_2.timerId=null;}},13);}},show:function(){this.options.orig[this.prop]=_2.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height"){this.elem.style[this.prop]="1px";}_2(this.elem).show();},hide:function(){this.options.orig[this.prop]=_2.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(_252){var t=(new Date()).getTime();if(_252||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false;}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(_2.css(this.elem,"display")=="none"){this.elem.style.display="block";}}if(this.options.hide){this.elem.style.display="none";}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){_2.attr(this.elem.style,p,this.options.orig[p]);}}}if(done&&_2.isFunction(this.options.complete)){this.options.complete.apply(this.elem);}return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=_2.easing[this.options.easing||(_2.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};_2.fx.step={scrollLeft:function(fx){fx.elem.scrollLeft=fx.now;},scrollTop:function(fx){fx.elem.scrollTop=fx.now;},opacity:function(fx){_2.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit;}};_2.fn.offset=function(){var left=0,top=0,elem=this[0],_25f;if(elem){with(_2.browser){var _260=elem.parentNode,_261=elem,_262=elem.offsetParent,doc=elem.ownerDocument,_264=safari&&parseInt(version)<522&&!/adobeair/i.test(_d7),_265=_2.css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop);}else{add(elem.offsetLeft,elem.offsetTop);while(_262){add(_262.offsetLeft,_262.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(_262.tagName)||safari&&!_264){border(_262);}if(!_265&&_2.css(_262,"position")=="fixed"){_265=true;}_261=/^body$/i.test(_262.tagName)?_261:_262;_262=_262.offsetParent;}while(_260&&_260.tagName&&!/^body|html$/i.test(_260.tagName)){if(!/^inline|table.*$/i.test(_2.css(_260,"display"))){add(-_260.scrollLeft,-_260.scrollTop);}if(mozilla&&_2.css(_260,"overflow")!="visible"){border(_260);}_260=_260.parentNode;}if((_264&&(_265||_2.css(_261,"position")=="absolute"))||(mozilla&&_2.css(_261,"position")!="absolute")){add(-doc.body.offsetLeft,-doc.body.offsetTop);}if(_265){add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));}}_25f={top:top,left:left};}}function border(elem){add(_2.curCSS(elem,"borderLeftWidth",true),_2.curCSS(elem,"borderTopWidth",true));}function add(l,t){left+=parseInt(l)||0;top+=parseInt(t)||0;}return _25f;};})();jQuery.noConflict();if(!Search||Search==undefined||typeof (Search)!="object"){var Search={};}String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};if(!Array.prototype.indexOf){Array.prototype.indexOf=function(elem,_26b){if(!_26b){_26b=function(a,b){return a==b;};}for(var i=0;i<this.length;i++){if(_26b(this[i],elem)){return i;}}return -1;};}if(!Array.prototype.map){Array.prototype.map=function(fx){for(var i=0;i<this.length;i++){this[i]=fx(this[i]);}};}if(!Array.prototype.reduce){Array.prototype.reduce=function(fun){var len=this.length;if(typeof fun!="function"){throw new TypeError();}if(len==0&&arguments.length==1){throw new TypeError();}var i=0;if(arguments.length>=2){var rv=arguments[1];}else{do{if(i in this){rv=this[i++];break;}if(++i>=len){throw new TypeError();}}while(true);}for(;i<len;i++){if(i in this){rv=fun.call(null,rv,this[i],i,this);}}return rv;};}if(!Array.prototype.filter){Array.prototype.filter=function(fun){var len=this.length;if(typeof fun!="function"){throw new TypeError();}var res=new Array();var _278=arguments[1];for(var i=0;i<len;i++){if(i in this){var val=this[i];if(fun.call(_278,val,i,this)){res.push(val);}}}return res;};}var sd=document.domain.split(".");sd.shift();Search.host=sd.join(".");var sd=document.domain.split(".");sd.shift();Search.domain=sd.join(".");Search.host=document.domain;Search.from_mapping={"ricerca":"h_web","ricercaimmagini":"h_imm","ricercanews":"h_new","ricercavideo":"h_vid","ricercagruppi":"h_gru"};var port_parts=document.location.href.split(":");try{Search.port=port_parts[2].split("/")[0];}catch(e){Search.port=80;}Search.debug_enabled=true;var $=function(id){return document.getElementById(id);};Search.getParam=function(p,_27d){var regS="[\\?&]"+p+"=([^&#]*)";var reg=new RegExp(regS);var url=window.location.href;var res=reg.exec(url);if(res==null||res==""){return _27d||"";}else{return res[1];}};Search.isArray=function(obj){if(!obj){return false;}return obj.constructor==Array;};Search.debug=function(msg){if(Search.debug_enabled&&$("debug")){$("debug").innerHTML=$("debug").innerHTML+"<br>"+msg;}};Search.Events={addEvent:function(elm,_285,fn,_287){if(!elm){return;}if(elm.addEventListener){elm.addEventListener(_285,fn,_287);return true;}else{if(elm.attachEvent){var r=elm.attachEvent("on"+_285,fn);return r;}else{elm["on"+_285]=fn;}}},stopEvent:function(evt){var e=evt||window.event;if(!e){return;}if(e.preventDefault){e.preventDefault();e.stopPropagation();}else{e.returnValue=false;e.cancelBubble=true;}},removeEvent:function(elm,_28c,fn,_28e){if(elm.removeEventListener){elm.removeEventListener(_28c,fn,_28e);return true;}else{if(elm.removeEvent){var r=elm.removeEvent("on"+_28c,fn);return r;}else{elm["on"+_28c]=function(){};}}},target:function(evt){return window.event?window.event.srcElement:evt.target;},toElement:function(evt){var evt=window.event||evt;return (evt.relatedTarget)?evt.relatedTarget:evt.toElement;}};Search.Cookie={get:function(name){var _293=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" "){c=c.substring(1,c.length);}if(c.indexOf(_293)==0){return c.substring(_293.length,c.length);}}return null;},set:function(_297,name,_299,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*8640000));var _29c="; expires="+date.toGMTString();}else{var _29c="";}document.cookie=name+"="+_299+_29c+"; path=/; domain="+_297;},erase:function(_29d,name){this.set(_29d,name,"",-1);},enabled:function(){Search.Cookie.set(Search.host,"probe","ok",1);var _29f=Search.Cookie.get("probe")=="ok";Search.Cookie.set(Search.host,"probe","",-1);return _29f;}};Search.UI={toggle:function(elem){if(!elem||!$(elem)){return;}var st=$(elem).style;st.display=st.display!="block"?"block":"none";},hide:function(_2a2){if(!_2a2||!$(_2a2)){return;}var st=$(_2a2).style;if(st.display!="none"){st.display="none";}},hideAll:function(_2a4){_2a4.map(Search.UI.hide);},show:function(elem){if(!elem||!$(elem)){return;}var st=$(elem).style;st.display="block";}};Search.make_handler=function(_2a7,arg){return function(evt){_2a7(arg);};};getNodeAttribute=function(el,_2ab){return el.attname||el.getAttributeNode(_2ab)&&el.getAttributeNode(_2ab).value;};function getTextValues(form){var vals=[];var els=form.getElementsByTagName("input");for(var i=0;i<els.length;i++){if(els[i].type=="text"){vals.push(els[i].value);}}return vals.join(" ");}Search.ri=function(i){var MW=78,MH=86;i.width=MW;return;};Search.go=function(_2b3,_2b4){qs=$("trova").qs.value;dv=$("trova").dv?$("trova").dv.value:"";var a=encodeURIComponent||escape;if(_2b3){page=_2b3.split("/");page=page.pop();if(page!="aziende"&&page!="persone"&&page!="annunci"&&page!="results.php"){qs=getTextValues($("trova"));dv="";}}qs=_2b4?a(qs):escape(qs);dv=_2b4?a(dv):escape(dv);_2b3=_2b3||"http://ricerca.alice.it/ricerca";if(_2b3.indexOf("/local.alice.it")!=-1){uri="?cosa="+qs.replace("&","%26");}else{uri="?qs="+qs.replace("&","%26");}if(dv){uri+="&dv="+dv.replace("&","%26");}var sdom=Search.from_mapping[Search.host.split(".")[0]]||"";if(sdom){uri+="&f="+sdom;}document.location.href=_2b3+uri;};Search.go_utf8=function(_2b7){Search.go(_2b7,true);};Search.track=function(_2b8){var url="http://images.alice.it/kpi.gif?chnl=src";for(k in _2b8){url+="&"+k+"="+_2b8[k];}url+="&ci="+Math.floor(1000000*Math.random());var img=new Image();img.onerror=null;img.onload=null;img.src=url;};Search.Altro={btn:"s_altro",menu:"tab-altro-cont-header",item_prefix:"s_",selected_class:"this-tab",srv:"altro",init:false,main:function(){if(Search.Altro.init){return;}var btn=$(Search.Altro.btn);if(!btn){Search.debug("ooops.. button (id:"+Search.Altro.btn+") not found");return;}btn.onclick=function(){Search.Altro.toggle();};Search.Events.addEvent(document,"click",Search.Altro.hide,true);Search.Altro.init=true;},focus:function(){var _2bc=$("trova");if(Search.isArray(_2bc)&&_2bc.length>1){_2bc=_2bc[0];}if(!_2bc){return;}var qs=_2bc.qs;if(qs){if(qs.type!="hidden"){qs.focus();}}},toggle:function(){Search.UI.toggle(Search.Altro.menu);Search.Events.stopEvent();},hide:function(){Search.UI.hide(Search.Altro.menu);},highlight:function(){var _2be=Search.Altro.item_prefix+document.domain.split(".")[0];if($(_2be)){hl=getNodeAttribute($(_2be),"hl");if(hl){$(hl).className+="  "+Search.Altro.selected_class;}$(_2be).className+="  "+Search.Altro.selected_class;}Search.Altro.main();Search.Altro.focus();},track:function(evt){Search.track({"srv":Search.Altro.srv});}};Search.invia=function(u,w,h,_2c3){var w=w||320;var h=h||400;var _2c3=_2c3||"no";window.open(u,"","toolbar=no,status=no,scrollbars="+_2c3+",location=no,menubar=no,directories=no,width="+w+",height="+h);};Search.redir=function(){if(Search.onw==""){document.location.href=Search.dest;}if(Search.onw=="WTA"){window.open("http://rover.ebay.com/rover/1/724-10296-4030-255/4?mpre="+escape(Search.dest),"");}if(Search.onw=="WRA"){features="scrollbars=no,resizable=no,status=yes";if(screen.width==800&&screen.height==600){features="scrollbars=yes,resizable=no,status=yes";}window.open(Search.dest,"",features);}};Search.clck=function(u,k,o){if(k==""){return true;}Search.dest=u;Search.onw=o;var src="http://go.virgilio.it/kpi.gif?k="+escape(k)+"&rand="+Math.floor(1000000*Math.random());var img=new Image();img.onerror=Search.redir;img.onload=Search.redir;img.src=src;return true;};Search.track_hp=function(){Search.track({"srv":"wc","type":"c","id":"hps"});};var jQuery=jQuery||"";if(jQuery==""){Search.Events.addEvent(window,"load",Search.Altro.highlight,false);}else{jQuery(document).ready(function(){Search.Altro.highlight();});}Search.dest="";Search.onw="";Search.ss=function(url){window.status=url;return true;};Search.cs=function(){window.status="";return true;};Search.wra=function(u){features="scrollbars=no,resizable=no,status=yes";if(screen.width==800&&screen.height==600){features="scrollbars=yes,resizable=no,status=yes";}window.open(u,"",features);};Search.apri=function(u){window.open(u,"","toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,width=400,height=540");};if(!Video||Video==undefined||typeof (Video)!="object"){var Video={};}Video={toggleCat:function(evt){Search.UI.toggle("piu-cat");},onLoad:function(evt){Video.Playlist.onLoad();Search.Events.addEvent($("cat_apri"),"click",Video.toggleCat,false);Search.Events.addEvent($("cat_chiudi"),"click",Video.toggleCat,false);},changeSorting:function(_2ce){document.trova.sortby.value=_2ce;document.trova.submit();}};Video.TagClouds={shuffle:function(o){for(var j,x,i=o.length;i;j=parseInt(Math.random()*i),x=o[--i],o[i]=o[j],o[j]=x){}return o;},HtmlTagCloudsHp:function(e,u){jQuery.ajax({type:"GET",url:u,dataType:"text",timeout:1000,success:function(data){Video.TagClouds.drawTagCloudsHp(e,data);}});},drawTagCloudsHp:function(e,s){var i;var h="";var idx=Array();var size=Array();var _2dc=s.split(",");var _2dd=Array("bold","normal","normal","normal");var enc=encodeURIComponent||escape;var _2df=Array("#0000cc");for(i=0;i<_2dc.length;i++){idx[i]=i;size[i]=25-((Math.floor(idx[i]*0.8)));}idx=Video.TagClouds.shuffle(idx);size=Video.TagClouds.shuffle(size);for(i=0;i<_2dc.length;i++){var _2e0=new String(_2dc[idx[i]]);if(_2dc[idx[i]].match(/&([^#])/)){_2e0=_2e0.replace(/&[^#]/,"%26"+RegExp.$1);}h+="&#160;<a href=\"video?qs="+_2e0+"&amp;f=hpvideo&amp;clck=auto\" style='font-size: "+size[i]+"px; font-weight:"+_2dd[idx[i]%_2dd.length]+"; font-family: arial; color:"+_2df[idx[i]%_2df.length]+"'>"+_2dc[idx[i]]+"</a>&#160;\n";}document.getElementById(e).innerHTML=h;},drawTagCloudsListing:function(e,s){var i;var h="";var idx=Array();var size=Array();var _2e7=s.split(",");var _2e8=Array(700,400,200,130);var _2e9=Array("#0000cc");var _2ea=[];for(i=0;i<3;i++){_2ea[i]=21-i*4;}var _2eb=_2ea.slice(0);for(i=0;i<_2e7.length/3+1;i++){_2eb=Video.TagClouds.shuffle(_2eb);if(_2eb[0]==size[size.length-1]){var tmp=_2eb[0];_2eb[0]=_2eb[_2eb.length-1];_2eb[_2eb.length-1]=tmp;}for(var j=0;j<_2eb.length;j++){size.push(_2eb[j]);}}for(i=0;i<_2e7.length;i++){_2e7[i]=_2e7[i].replace("'","'");idx[i]=i;}idx=Video.TagClouds.shuffle(idx);for(i=0;i<20;i++){var _2ee=new String(_2e7[idx[i]]);if(_2e7[idx[i]].match(/&([^#])/)){_2ee=_2ee.replace(/&[^#]/,"%26"+RegExp.$1);}h+="<a href=\"/video?qs="+_2ee+"&amp;f=tag&amp;clck=auto\" style='font-size: "+size[i]+"px; font-weight:"+_2e8[idx[i]%_2e8.length]+"; font-family: verdana; color:"+_2e9[idx[i]%_2e9.length]+"'>"+_2e7[idx[i]]+"</a>&#160;&#160;&#160;\n";}document.getElementById(e).innerHTML=h;},HtmlTagCloudsListing:function(e,u){jQuery.ajax({type:"GET",url:u,dataType:"text",success:function(data){Video.TagClouds.drawTagCloudsListing(e,data);}});}};Video.Playlist={prefixMovie:"movie",length:10,idParent:"playlist-content",lengthTitle:45,onLoad:function(){var adds=document.body.innerHTML.match(/add[0-9]+/g);if(adds){for(var i=0;i<adds.length;i++){var _2f4=function(evt){Video.Playlist.clickOnMovie(Search.Events.target(evt).id);};Search.Events.addEvent($(adds[i]),"click",_2f4,false);}Video.Playlist.reload();}},reload:function(){var _2f6=document.getElementById(Video.Playlist.idParent);var h4=document.createElement("h4");var div=document.createElement("div");var span=document.createElement("span");var href=document.createElement("a");_2f6.innerHTML="";var href=document.getElementById("trash");href.style.cursor="pointer";Search.Events.addEvent($("trash"),"click",Video.Playlist.remove,false);var _2fb=0;for(var i=1;i<=Video.Playlist.length;i++){var img=document.createElement("img");var _2fe=Video.Playlist.getMovie(i);href=document.createElement("a");div=document.createElement("div");if(_2fe!=null){_2fb++;title=_2fe[0];url=_2fe[1];thumbnail=_2fe[2];img.src=thumbnail;img.title="preview";var _2ff=document.createElement("a");_2ff.appendChild(img);_2ff.href=url;div.appendChild(_2ff);href.href=url;href.className="record-playlist-text";if(title.length>Video.Playlist.lengthTitle){href.innerHTML=" "+title.substring(0,Video.Playlist.lengthTitle)+"</b>...";}else{href.innerHTML=" "+title;}div.appendChild(href);span=document.createElement("span");span.id="delete"+i;span.className="rimuovidaplay";span.style.cursor="pointer;";span.innerHTML="[X]";div.appendChild(span);if(_2fb%2==1){div.className="record-playlist f3f4f4";}else{div.className="record-playlist fff";}_2f6.appendChild(div);var _300=function(evt){Video.Playlist.removeMovie(Search.Events.target(evt).id);};Search.Events.addEvent($("delete"+i),"click",_300,false);}}if(_2fb==0){div.className="record-playlist fff";div.innerHTML="Clicca su <span style=\"color:#ff6600; font-size:14px\"> [+] </span> nei risultati e aggiungi un video.";_2f6.appendChild(div);}if(_2fb>0){document.getElementById("hrefList").href="javascript:Search.invia('/video_send?home=yes&from=src', 450, 500, 'yes')";}else{document.getElementById("hrefList").href="javascript:alert('Non ci sono video da inviare nella playlist')";}document.getElementById("box-pl").style.visibility="visible";},viewListToSend:function(){var _302="";for(var i=1;i<=Video.Playlist.length;i++){var _304=Video.Playlist.getMovie(i);if(_304!=null){title=_304[0];url=_304[1];thumbnail=_304[2];_302+=title.replace(/<[^>]*>/g,"")+" : "+url+"@@";}}document.getElementById("linkdainviare").value=_302;},firstFreePositionMovie:function(){for(var i=1;i<=Video.Playlist.length;i++){if(Search.Cookie.get(Video.Playlist.prefixMovie+i)==null){return i;}}return -1;},isPresentMovie:function(url){for(var i=1;i<=Video.Playlist.length;i++){var _308=Video.Playlist.getMovie(i);if((_308!=null)&&(unescape(_308[1])==unescape(url))){return true;}}return false;},clickOnMovie:function(id){var _30a=id.replace("add","");var link="";var _30c=0;var _30d=0;var url=document.getElementById("record"+_30a).href;if(_30a>3){link=document.getElementById("record"+_30a).href;_30c=link.indexOf("&url=")+5;_30d=link.indexOf("&",_30c);url=link.substring(_30c,_30d);url=unescape(url);url=url.replace("$","&");}Video.Playlist.addMovie(escape(document.getElementById("record"+_30a).innerHTML.replace(/[\n\r]+/g,"")),escape(url),escape(document.getElementById("record"+_30a).previousSibling.lastChild.src));},addMovie:function(_30f,url,_311){var _312=Video.Playlist.firstFreePositionMovie();if(_312==-1){alert("La tua playlist \xe8 piena, cancella un video per aggiungerne di nuovi");}else{if(Video.Playlist.isPresentMovie(url)){alert("La tua playlist contiene gi\xe0 questo video");}else{_30f=_30f.replace(/( |%20)+/g," ");Search.Cookie.set(Search.host,Video.Playlist.prefixMovie+_312,_30f+"__XX__"+url+"__XX__"+_311,30);Video.Playlist.reload();}}},removeMovie:function(id){var _314=id.replace("delete","");if(Search.Cookie.get(Video.Playlist.prefixMovie+_314)!=null){Search.Cookie.erase(Search.host,Video.Playlist.prefixMovie+_314);}Video.Playlist.reload();},remove:function(){for(var i=1;i<=Video.Playlist.length;i++){Search.Cookie.erase(Search.host,Video.Playlist.prefixMovie+i);}Video.Playlist.reload();},getMovie:function(_316){if(Search.Cookie.get(Video.Playlist.prefixMovie+_316)!=null){var _317=Search.Cookie.get(Video.Playlist.prefixMovie+_316);_317=_317.trim();var _318=_317.split("__XX__");_318[0]=unescape(_318[0]);_318[1]=unescape(_318[1]);_318[2]=unescape(_318[2]);return _318;}return null;},isEmpty:function(){for(var i=1;i<=Video.Playlist.length;i++){if(Video.Playlist.getMovie(i)!=null){return false;}}return true;},sendForm:function(evt){if(document.all){var evt=window.event.keyCode;}else{evt=evt.which;}if(evt=="13"){document.getElementById("sortby").value="";document.getElementById("site").value="";document.getElementById("pmk").value="sel";document.getElementById("l").value="";}},checkMail:function(_31b,_31c,_31d,_31e,_31f,_320){var _321=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;if(_31d==""){alert("Nome MITTENTE mancante!");return false;}else{if(_31b==""){alert("Mail MITTENTE mancante!");return false;}else{if(!_321.test(_31b)){alert("Indirizzo mail MITTENTE non valido!");return false;}else{if(_31e==""){alert("Nome DESTINATARIO mancante!");return false;}else{if(_31c==""){alert("Indirizzo mail DESTINATARIO mancante!");return false;}else{if(!_321.test(_31c)){alert("Indirizzo mail DESTINATARIO non valido!");return false;}else{if(Video.Playlist.isEmpty()){alert("La playlist che vuoi inviare \xe8 stata vuota!");return false;}}}}}}}document.formInvio.action="video_sendandconfirm";document.formInvio.submit();}};jQuery(document).ready(function(){if(!document.getElementById("check-send-playlist")){Video.onLoad();}else{Video.Playlist.viewListToSend();}});
