(function(){ var _1=window.jQuery,_$=window.$; var _3=window.jQuery=window.$=function(_4,_5){ return new _3.fn.init(_4,_5); }; var _6=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,_7=/^.[^:#\[\.]*$/,_8; _3.fn=_3.prototype={init:function(_9,_a){ _9=_9||document; if(_9.nodeType){ this[0]=_9; this.length=1; return this; } if(typeof _9=="string"){ var _b=_6.exec(_9); if(_b&&(_b[1]||!_a)){ if(_b[1]){ _9=_3.clean([_b[1]],_a); }else{ var _c=document.getElementById(_b[3]); if(_c){ if(_c.id!=_b[3]){ return _3().find(_9); } return _3(_c); } _9=[]; } }else{ return _3(_a).find(_9); } }else{ if(_3.isFunction(_9)){ return _3(document)[_3.fn.ready?"ready":"load"](_9); } } return this.setArray(_3.makeArray(_9)); },jquery:"1.2.6",size:function(){ return this.length; },length:0,get:function(_d){ return _d==_8?_3.makeArray(this):this[_d]; },pushStack:function(_e){ var _f=_3(_e); _f.prevObject=this; return _f; },setArray:function(_10){ this.length=0; Array.prototype.push.apply(this,_10); return this; },each:function(_11,_12){ return _3.each(this,_11,_12); },index:function(_13){ var ret=-1; return _3.inArray(_13&&_13.jquery?_13[0]:_13,this); },attr:function(_15,_16,_17){ var _18=_15; if(_15.constructor==String){ if(_16===_8){ return this[0]&&_3[_17||"attr"](this[0],_15); }else{ _18={}; _18[_15]=_16; } } return this.each(function(i){ for(_15 in _18){ _3.attr(_17?this.style:this,_15,_3.prop(this,_18[_15],_17,i,_15)); } }); },css:function(key,_1b){ if((key=="width"||key=="height")&&parseFloat(_1b)<0){ _1b=_8; } 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=""; _3.each(_1c||this,function(){ _3.each(this.childNodes,function(){ if(this.nodeType!=8){ ret+=this.nodeType!=1?this.nodeValue:_3.fn.text([this]); } }); }); return ret; },wrapAll:function(_1e){ if(this[0]){ _3(_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(){ _3(this).contents().wrapAll(_20); }); },wrap:function(_21){ return this.each(function(){ _3(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||_3([]); },find:function(_26){ var _27=_3.map(this,function(_28){ return _3.find(_26,_28); }); return this.pushStack(/[^+>] [^+>]/.test(_26)||_26.indexOf("..")>-1?_3.unique(_27):_27); },clone:function(_29){ var ret=this.map(function(){ if(_3.browser.msie&&!_3.isXMLDoc(this)){ var _2b=this.cloneNode(true),_2c=document.createElement("div"); _2c.appendChild(_2b); return _3.clean([_2c.innerHTML])[0]; }else{ return this.cloneNode(true); } }); var _2d=ret.find("*").andSelf().each(function(){ if(this[expando]!=_8){ this[expando]=null; } }); if(_29===true){ this.find("*").andSelf().each(function(i){ if(this.nodeType==3){ return; } var _2f=_3.data(this,"events"); for(var _30 in _2f){ for(var _31 in _2f[_30]){ _3.event.add(_2d[i],_30,_2f[_30][_31],_2f[_30][_31].data); } } }); } return ret; },filter:function(_32){ return this.pushStack(_3.isFunction(_32)&&_3.grep(this,function(_33,i){ return _32.call(_33,i); })||_3.multiFilter(_32,this)); },not:function(_35){ if(_35.constructor==String){ if(_7.test(_35)){ return this.pushStack(_3.multiFilter(_35,this,true)); }else{ _35=_3.multiFilter(_35,this); } } var _36=_35.length&&_35[_35.length-1]!==_8&&!_35.nodeType; return this.filter(function(){ return _36?_3.inArray(this,_35)<0:this!=_35; }); },add:function(_37){ return this.pushStack(_3.unique(_3.merge(this.get(),typeof _37=="string"?_3(_37):_3.makeArray(_37)))); },is:function(_38){ return !!_38&&_3.multiFilter(_38,this).length>0; },hasClass:function(_39){ return this.is("."+_39); },val:function(_3a){ if(_3a==_8){ if(this.length){ var _3b=this[0]; if(_3.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=0||_3.inArray(this.name,_3a)>=0); }else{ if(_3.nodeName(this,"select")){ var _43=_3.makeArray(_3a); _3("option",this).each(function(){ this.selected=(_3.inArray(this.value,_43)>=0||_3.inArray(this.text,_43)>=0); }); if(!_43.length){ this.selectedIndex=-1; } }else{ this.value=_3a; } } }); },html:function(_44){ return _44==_8?(this[0]?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(_3.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===_8){ var _4d=this.triggerHandler("getData"+_4c[1]+"!",[_4c[0]]); if(_4d===_8&&this.length){ _4d=_3.data(this[0],key); } return _4d===_8&&_4c[1]?this.data(_4c[0]):_4d; }else{ return this.trigger("setData"+_4c[1]+"!",[_4c[0],_4b]).each(function(){ _3.data(this,key,_4b); }); } },removeData:function(key){ return this.each(function(){ _3.removeData(this,key); }); },domManip:function(_4f,_50,_51,_52){ var _53=this.length>1,_54; return this.each(function(){ if(!_54){ _54=_3.clean(_4f,this.ownerDocument); if(_51){ _54.reverse(); } } var obj=this; if(_50&&_3.nodeName(this,"table")&&_3.nodeName(_54[0],"tr")){ obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody")); } var _56=_3([]); _3.each(_54,function(){ var _57=_53?_3(this).clone(true)[0]:this; if(_3.nodeName(_57,"script")){ _56=_56.add(_57); }else{ if(_57.nodeType==1){ _56=_56.add(_3("script",_57).remove()); } _52.call(obj,_57); } }); _56.each(evalScript); }); }}; _3.fn.init.prototype=_3.fn; function evalScript(i,_59){ if(_59.src){ _3.ajax({url:_59.src,async:false,dataType:"script"}); }else{ _3.globalEval(_59.text||_59.textContent||_59.innerHTML||""); } if(_59.parentNode){ _59.parentNode.removeChild(_59); } } function now(){ return +new Date; } _3.extend=_3.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==i){ _5a=this; --i; } for(;i<_5c;i++){ if((_5e=arguments[i])!=null){ for(var _5f in _5e){ var src=_5a[_5f],_61=_5e[_5f]; if(_5a===_61){ continue; } if(_5d&&_61&&typeof _61=="object"&&!_61.nodeType){ _5a[_5f]=_3.extend(_5d,src||(_61.length!=null?[]:{}),_61); }else{ if(_61!==_8){ _5a[_5f]=_61; } } } } } return _5a; }; var _62="jQuery"+now(),_63=0,_64={},_65=/z-?index|font-?weight|opacity|zoom|line-?height/i,_66=document.defaultView||{}; _3.extend({noConflict:function(_67){ window.$=_$; if(_67){ window.jQuery=_1; } return _3; },isFunction:function(fn){ return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+""); },isXMLDoc:function(_69){ return _69.documentElement&&!_69.body||_69.tagName&&_69.ownerDocument&&!_69.ownerDocument.body; },globalEval:function(_6a){ _6a=_3.trim(_6a); if(_6a){ var _6b=document.getElementsByTagName("head")[0]||document.documentElement,_6c=document.createElement("script"); _6c.type="text/javascript"; if(_3.browser.msie){ _6c.text=_6a; }else{ _6c.appendChild(document.createTextNode(_6a)); } _6b.insertBefore(_6c,_6b.firstChild); _6b.removeChild(_6c); } },nodeName:function(_6d,_6e){ return _6d.nodeName&&_6d.nodeName.toUpperCase()==_6e.toUpperCase(); },cache:{},data:function(_6f,_70,_71){ _6f=_6f==window?_64:_6f; var id=_6f[_62]; if(!id){ id=_6f[_62]=++_63; } if(_70&&!_3.cache[id]){ _3.cache[id]={}; } if(_71!==_8){ _3.cache[id][_70]=_71; } return _70?_3.cache[id][_70]:id; },removeData:function(_73,_74){ _73=_73==window?_64:_73; var id=_73[_62]; if(_74){ if(_3.cache[id]){ delete _3.cache[id][_74]; _74=""; for(_74 in _3.cache[id]){ break; } if(!_74){ _3.removeData(_73); } } }else{ try{ delete _73[_62]; } catch(e){ if(_73.removeAttribute){ _73.removeAttribute(_62); } } delete _3.cache[id]; } },each:function(_76,_77,_78){ var _79,i=0,_7b=_76.length; if(_78){ if(_7b==_8){ for(_79 in _76){ if(_77.apply(_76[_79],_78)===false){ break; } } }else{ for(;i<_7b;){ if(_77.apply(_76[i++],_78)===false){ break; } } } }else{ if(_7b==_8){ for(_79 in _76){ if(_77.call(_76[_79],_79,_76[_79])===false){ break; } } }else{ for(var _7c=_76[0];i<_7b&&_77.call(_7c,i,_7c)!==false;_7c=_76[++i]){ } } } return _76; },prop:function(_7d,_7e,_7f,i,_81){ if(_3.isFunction(_7e)){ _7e=_7e.call(_7d,i); } return _7e&&_7e.constructor==Number&&_7f=="curCSS"&&!_65.test(_81)?_7e+"px":_7e; },className:{add:function(_82,_83){ _3.each((_83||"").split(/\s+/),function(i,_85){ if(_82.nodeType==1&&!_3.className.has(_82.className,_85)){ _82.className+=(_82.className?" ":"")+_85; } }); },remove:function(_86,_87){ if(_86.nodeType==1){ _86.className=_87!=_8?_3.grep(_86.className.split(/\s+/),function(_88){ return !_3.className.has(_87,_88); }).join(" "):""; } },has:function(_89,_8a){ return _3.inArray(_8a,(_89.className||_89).toString().split(/\s+/))>-1; }},swap:function(_8b,_8c,_8d){ var old={}; for(var _8f in _8c){ old[_8f]=_8b.style[_8f]; _8b.style[_8f]=_8c[_8f]; } _8d.call(_8b); for(var _8f in _8c){ _8b.style[_8f]=old[_8f]; } },css:function(_90,_91,_92){ if(_91=="width"||_91=="height"){ var val,_94={position:"absolute",visibility:"hidden",display:"block"},_95=_91=="width"?["Left","Right"]:["Top","Bottom"]; function getWH(){ val=_91=="width"?_90.offsetWidth:_90.offsetHeight; var _96=0,_97=0; _3.each(_95,function(){ _96+=parseFloat(_3.curCSS(_90,"padding"+this,true))||0; _97+=parseFloat(_3.curCSS(_90,"border"+this+"Width",true))||0; }); val-=Math.round(_96+_97); } if(_3(_90).is(":visible")){ getWH(); }else{ _3.swap(_90,_94,getWH); } return Math.max(0,val); } return _3.curCSS(_90,_91,_92); },curCSS:function(_98,_99,_9a){ var ret,_9c=_98.style; function color(_9d){ if(!_3.browser.safari){ return false; } var ret=_66.getComputedStyle(_9d,null); return !ret||ret.getPropertyValue("color")==""; } if(_99=="opacity"&&_3.browser.msie){ ret=_3.attr(_9c,"opacity"); return ret==""?"1":ret; } if(_3.browser.opera&&_99=="display"){ var _9f=_9c.outline; _9c.outline="0 solid black"; _9c.outline=_9f; } if(_99.match(/float/i)){ _99=styleFloat; } if(!_9a&&_9c&&_9c[_99]){ ret=_9c[_99]; }else{ if(_66.getComputedStyle){ if(_99.match(/float/i)){ _99="float"; } _99=_99.replace(/([A-Z])/g,"-$1").toLowerCase(); var _a0=_66.getComputedStyle(_98,null); if(_a0&&!color(_98)){ ret=_a0.getPropertyValue(_99); }else{ var _a1=[],_a2=[],a=_98,i=0; for(;a&&color(a);a=a.parentNode){ _a2.unshift(a); } for(;i<_a2.length;i++){ if(color(_a2[i])){ _a1[i]=_a2[i].style.display; _a2[i].style.display="block"; } } ret=_99=="display"&&_a1[_a2.length-1]!=null?"none":(_a0&&_a0.getPropertyValue(_99))||""; for(i=0;i<_a1.length;i++){ if(_a1[i]!=null){ _a2[i].style.display=_a1[i]; } } } if(_99=="opacity"&&ret==""){ ret="1"; } }else{ if(_98.currentStyle){ var _a5=_99.replace(/\-(\w)/g,function(all,_a7){ return _a7.toUpperCase(); }); ret=_98.currentStyle[_99]||_98.currentStyle[_a5]; if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){ var _a8=_9c.left,_a9=_98.runtimeStyle.left; _98.runtimeStyle.left=_98.currentStyle.left; _9c.left=ret||0; ret=_9c.pixelLeft+"px"; _9c.left=_a8; _98.runtimeStyle.left=_a9; } } } } return ret; },clean:function(_aa,_ab){ var ret=[]; _ab=_ab||document; if(typeof _ab.createElement=="undefined"){ _ab=_ab.ownerDocument||_ab[0]&&_ab[0].ownerDocument||document; } _3.each(_aa,function(i,_ae){ if(!_ae){ return; } if(_ae.constructor==Number){ _ae+=""; } if(typeof _ae=="string"){ _ae=_ae.replace(/(<(\w+)[^>]*?)\/>/g,function(all,_b0,tag){ return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:_b0+">"; }); var _b2=_3.trim(_ae).toLowerCase(),div=_ab.createElement("div"); var _b4=!_b2.indexOf("",""]||!_b2.indexOf("",""]||_b2.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
"]||!_b2.indexOf("",""]||(!_b2.indexOf("",""]||!_b2.indexOf("",""]||_3.browser.msie&&[1,"div
","
"]||[0,"",""]; div.innerHTML=_b4[1]+_ae+_b4[2]; while(_b4[0]--){ div=div.lastChild; } if(_3.browser.msie){ var _b5=!_b2.indexOf(""&&_b2.indexOf("=0;--j){ if(_3.nodeName(_b5[j],"tbody")&&!_b5[j].childNodes.length){ _b5[j].parentNode.removeChild(_b5[j]); } } if(/^\s/.test(_ae)){ div.insertBefore(_ab.createTextNode(_ae.match(/^\s*/)[0]),div.firstChild); } } _ae=_3.makeArray(div.childNodes); } if(_ae.length===0&&(!_3.nodeName(_ae,"form")&&!_3.nodeName(_ae,"select"))){ return; } if(_ae[0]==_8||_3.nodeName(_ae,"form")||_ae.options){ ret.push(_ae); }else{ ret=_3.merge(ret,_ae); } }); return ret; },attr:function(_b7,_b8,_b9){ if(!_b7||_b7.nodeType==3||_b7.nodeType==8){ return _8; } var _ba=!_3.isXMLDoc(_b7),set=_b9!==_8,_bc=_3.browser.msie; _b8=_ba&&_3.props[_b8]||_b8; if(_b7.tagName){ var _bd=/href|src|style/.test(_b8); if(_b8=="selected"&&_3.browser.safari){ _b7.parentNode.selectedIndex; } if(_b8 in _b7&&_ba&&!_bd){ if(set){ if(_b8=="type"&&_3.nodeName(_b7,"input")&&_b7.parentNode){ throw "type property can't be changed"; } _b7[_b8]=_b9; } if(_3.nodeName(_b7,"form")&&_b7.getAttributeNode(_b8)){ return _b7.getAttributeNode(_b8).nodeValue; } return _b7[_b8]; } if(_bc&&_ba&&_b8=="style"){ return _3.attr(_b7.style,"cssText",_b9); } if(set){ _b7.setAttribute(_b8,""+_b9); } var _be=_bc&&_ba&&_bd?_b7.getAttribute(_b8,2):_b7.getAttribute(_b8); return _be===null?_8:_be; } if(_bc&&_b8=="opacity"){ if(set){ _b7.zoom=1; _b7.filter=(_b7.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(_b9)+""=="NaN"?"":"alpha(opacity="+_b9*100+")"); } return _b7.filter&&_b7.filter.indexOf("opacity=")>=0?(parseFloat(_b7.filter.match(/opacity=([^)]*)/)[1])/100)+"":""; } _b8=_b8.replace(/-([a-z])/ig,function(all,_c0){ return _c0.toUpperCase(); }); if(set){ _b7[_b8]=_b9; } return _b7[_b8]; },trim:function(_c1){ return (_c1||"").replace(/^\s+|\s+$/g,""); },makeArray:function(_c2){ var ret=[]; if(_c2!=null){ var i=_c2.length; if(i==null||_c2.split||_c2.setInterval||_c2.call){ ret[0]=_c2; }else{ while(i){ ret[--i]=_c2[i]; } } } return ret; },inArray:function(_c5,_c6){ for(var i=0,_c8=_c6.length;i<_c8;i++){ if(_c6[i]===_c5){ return i; } } return -1; },merge:function(_c9,_ca){ var i=0,_cc,pos=_c9.length; if(_3.browser.msie){ while(_cc=_ca[i++]){ if(_cc.nodeType!=8){ _c9[pos++]=_cc; } } }else{ while(_cc=_ca[i++]){ _c9[pos++]=_cc; } } return _c9; },unique:function(_ce){ var ret=[],_d0={}; try{ for(var i=0,_d2=_ce.length;i<_d2;i++){ var id=_3.data(_ce[i]); if(!_d0[id]){ _d0[id]=true; ret.push(_ce[i]); } } } catch(e){ ret=_ce; } return ret; },grep:function(_d4,_d5,inv){ var ret=[]; for(var i=0,_d9=_d4.length;i<_d9;i++){ if(!inv!=!_d5(_d4[i],i)){ ret.push(_d4[i]); } } return ret; },map:function(_da,_db){ var ret=[]; for(var i=0,_de=_da.length;i<_de;i++){ var _df=_db(_da[i],i); if(_df!=null){ ret[ret.length]=_df; } } return ret.concat.apply([],ret); }}); var _e0=navigator.userAgent.toLowerCase(); _3.browser={version:(_e0.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(_e0),opera:/opera/.test(_e0),msie:/msie/.test(_e0)&&!/opera/.test(_e0),mozilla:/mozilla/.test(_e0)&&!/(compatible|webkit)/.test(_e0)}; var _e1=_3.browser.msie?"styleFloat":"cssFloat"; _3.extend({boxModel:!_3.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":_e1,cssFloat:_e1,styleFloat:_e1,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}}); _3.each({parent:function(_e2){ return _e2.parentNode; },parents:function(_e3){ return _3.dir(_e3,"parentNode"); },next:function(_e4){ return _3.nth(_e4,2,"nextSibling"); },prev:function(_e5){ return _3.nth(_e5,2,"previousSibling"); },nextAll:function(_e6){ return _3.dir(_e6,"nextSibling"); },prevAll:function(_e7){ return _3.dir(_e7,"previousSibling"); },siblings:function(_e8){ return _3.sibling(_e8.parentNode.firstChild,_e8); },children:function(_e9){ return _3.sibling(_e9.firstChild); },contents:function(_ea){ return _3.nodeName(_ea,"iframe")?_ea.contentDocument||_ea.contentWindow.document:_3.makeArray(_ea.childNodes); }},function(_eb,fn){ _3.fn[_eb]=function(_ed){ var ret=_3.map(this,fn); if(_ed&&typeof _ed=="string"){ ret=_3.multiFilter(_ed,ret); } return this.pushStack(_3.unique(ret)); }; }); _3.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(_ef,_f0){ _3.fn[_ef]=function(){ var _f1=arguments; return this.each(function(){ for(var i=0,_f3=_f1.length;i<_f3;i++){ _3(_f1[i])[_f0](this); } }); }; }); _3.each({removeAttr:function(_f4){ _3.attr(this,_f4,""); if(this.nodeType==1){ this.removeAttribute(_f4); } },addClass:function(_f5){ _3.className.add(this,_f5); },removeClass:function(_f6){ _3.className.remove(this,_f6); },toggleClass:function(_f7){ _3.className[_3.className.has(this,_f7)?"remove":"add"](this,_f7); },remove:function(_f8){ if(!_f8||_3.filter(_f8,[this]).r.length){ _3("*",this).add(this).each(function(){ _3.event.remove(this); _3.removeData(this); }); if(this.parentNode){ this.parentNode.removeChild(this); } } },empty:function(){ _3(">*",this).remove(); while(this.firstChild){ this.removeChild(this.firstChild); } }},function(_f9,fn){ _3.fn[_f9]=function(){ return this.each(fn,arguments); }; }); _3.each(["Height","Width"],function(i,_fc){ var _fd=_fc.toLowerCase(); _3.fn[_fd]=function(_fe){ return this[0]==window?_3.browser.opera&&document.body["client"+_fc]||_3.browser.safari&&window["inner"+_fc]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+_fc]||document.body["client"+_fc]:this[0]==document?Math.max(Math.max(document.body["scroll"+_fc],document.documentElement["scroll"+_fc]),Math.max(document.body["offset"+_fc],document.documentElement["offset"+_fc])):_fe==_8?(this.length?_3.css(this[0],_fd):null):this.css(_fd,_fe.constructor==String?_fe:_fe+"px"); }; }); function num(_ff,prop){ return _ff[0]&&parseInt(_3.curCSS(_ff[0],prop,true),10)||0; } var _101=_3.browser.safari&&parseInt(_3.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uffff*_-]|\\\\.)",_102=new RegExp("^>\\s*("+_101+"+)"),_103=new RegExp("^("+_101+"+)(#)("+_101+"+)"),_104=new RegExp("^([#.]?)("+_101+"*)"); _3.extend({expr:{"":function(a,i,m){ return m[2]=="*"||_3.nodeName(a,m[2]); },"#":function(a,i,m){ return a.getAttribute("id")==m[2]; },":":{lt:function(a,i,m){ return im[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 _3.nth(a.parentNode.lastChild,1,"previousSibling")==a; },"only-child":function(a){ return !_3.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||_3(a).text()||"").indexOf(m[3])>=0; },visible:function(a){ return "hidden"!=a.type&&_3.css(a,"display")!="none"&&_3.css(a,"visibility")!="hidden"; },hidden:function(a){ return "hidden"==a.type||_3.css(a,"display")=="none"||_3.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||_3.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||_3.nodeName(a,"button"); },input:function(a){ return /input|select|textarea|button/i.test(a.nodeName); },has:function(a,i,m){ return _3.find(m[3],a).length; },header:function(a){ return /h\d/i.test(a.nodeName); },animated:function(a){ return _3.grep(_3.timers,function(fn){ return a==fn.elem; }).length; }}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+_101+"+)")],multiFilter:function(expr,_140,not){ var old,cur=[]; while(expr&&expr!=old){ old=expr; var f=_3.filter(expr,_140,not); expr=f.t.replace(/^\s*,\s*/,""); cur=not?_140=f.r:_3.merge(cur,f.r); } return cur; },find:function(t,_146){ if(typeof t!="string"){ return [t]; } if(_146&&_146.nodeType!=1&&_146.nodeType!=9){ return []; } _146=_146||document; var ret=[_146],done=[],last,_14a; while(t&&last!=t){ var r=[]; last=t; t=_3.trim(t); var _14c=false,re=_102,m=re.exec(t); if(m){ _14a=m[1].toUpperCase(); for(var i=0;ret[i];i++){ for(var c=ret[i].firstChild;c;c=c.nextSibling){ if(c.nodeType==1&&(_14a=="*"||c.nodeName.toUpperCase()==_14a)){ r.push(c); } } } ret=r; t=t.replace(re,""); if(t.indexOf(" ")==0){ continue; } _14c=true; }else{ re=/^([>+~])\s*(\w*)/i; if((m=re.exec(t))!=null){ r=[]; var _151={}; _14a=m[2].toUpperCase(); m=m[1]; for(var j=0,rl=ret.length;j=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=_3.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])?_3.filter(m[3],r,true).r:_3(r).not(m[3]); }else{ if(m[1]=="."){ r=_3.classFilter(r,m[2],not); }else{ if(m[1]=="["){ var tmp=[],type=m[3]; for(var i=0,rl=r.length;i=0)^not){ tmp.push(a); } } r=tmp; }else{ if(m[1]==":"&&m[2]=="nth-child"){ var _16e={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),_170=(test[1]+(test[2]||1))-0,last=test[3]-0; for(var i=0,rl=r.length;i=0){ add=true; } } if(add^not){ tmp.push(node); } } r=tmp; }else{ var fn=_3.expr[m[1]]; if(typeof fn=="object"){ fn=fn[m[2]]; } if(typeof fn=="string"){ fn=eval("false||function(a,i){return "+fn+";}"); } r=_3.grep(r,function(elem,i){ return fn(elem,i,m,r); },not); } } } } } return {r:r,t:t}; },dir:function(elem,dir){ var _17c=[],cur=elem[dir]; while(cur&&cur!=document){ if(cur.nodeType==1){ _17c.push(cur); } cur=cur[dir]; } return _17c; },nth:function(cur,_17f,dir,elem){ _17f=_17f||1; var num=0; for(;cur;cur=cur[dir]){ if(cur.nodeType==1&&++num==_17f){ break; } } return cur; },sibling:function(n,elem){ var r=[]; for(;n;n=n.nextSibling){ if(n.nodeType==1&&n!=elem){ r.push(n); } } return r; }}); _3.event={add:function(elem,_187,_188,data){ if(elem.nodeType==3||elem.nodeType==8){ return; } if(_3.browser.msie&&elem.setInterval){ elem=window; } if(!_188.guid){ _188.guid=this.guid++; } if(data!=_8){ var fn=_188; _188=this.proxy(fn,function(){ return fn.apply(this,arguments); }); _188.data=data; } var _18b=_3.data(elem,"events")||_3.data(elem,"events",{}),_18c=_3.data(elem,"handle")||_3.data(elem,"handle",function(){ if(typeof _3!="undefined"&&!_3.event.triggered){ return _3.event.handle.apply(arguments.callee.elem,arguments); } }); _18c.elem=elem; _3.each(_187.split(/\s+/),function(_18d,type){ var _18f=type.split("."); type=_18f[0]; _188.type=_18f[1]; var _190=_18b[type]; if(!_190){ _190=_18b[type]={}; if(!_3.event.special[type]||_3.event.special[type].setup.call(elem)===false){ if(elem.addEventListener){ elem.addEventListener(type,_18c,false); }else{ if(elem.attachEvent){ elem.attachEvent("on"+type,_18c); } } } } _190[_188.guid]=_188; _3.event.global[type]=true; }); elem=null; },guid:1,global:{},remove:function(elem,_192,_193){ if(elem.nodeType==3||elem.nodeType==8){ return; } var _194=_3.data(elem,"events"),ret,_196; if(_194){ if(_192==_8||(typeof _192=="string"&&_192.charAt(0)==".")){ for(var type in _194){ this.remove(elem,type+(_192||"")); } }else{ if(_192.type){ _193=_192.handler; _192=_192.type; } _3.each(_192.split(/\s+/),function(_198,type){ var _19a=type.split("."); type=_19a[0]; if(_194[type]){ if(_193){ delete _194[type][_193.guid]; }else{ for(_193 in _194[type]){ if(!_19a[1]||_194[type][_193].type==_19a[1]){ delete _194[type][_193]; } } } for(ret in _194[type]){ break; } if(!ret){ if(!_3.event.special[type]||_3.event.special[type].teardown.call(elem)===false){ if(elem.removeEventListener){ elem.removeEventListener(type,_3.data(elem,"handle"),false); }else{ if(elem.detachEvent){ elem.detachEvent("on"+type,_3.data(elem,"handle")); } } } ret=null; delete _194[type]; } } }); } for(ret in _194){ break; } if(!ret){ var _19b=_3.data(elem,"handle"); if(_19b){ _19b.elem=null; } _3.removeData(elem,"events"); _3.removeData(elem,"handle"); } } },trigger:function(type,data,elem,_19f,_1a0){ data=_3.makeArray(data); if(type.indexOf("!")>=0){ type=type.slice(0,-1); var _1a1=true; } if(!elem){ if(this.global[type]){ _3("*").add([window,document]).trigger(type,data); } }else{ if(elem.nodeType==3||elem.nodeType==8){ return _8; } var val,ret,fn=_3.isFunction(elem[type]||null),_1a5=!data[0]||!data[0].preventDefault; if(_1a5){ data.unshift({type:type,target:elem,preventDefault:function(){ },stopPropagation:function(){ },timeStamp:now()}); data[0][_62]=true; } data[0].type=type; if(_1a1){ data[0].exclusive=true; } var _1a6=_3.data(elem,"handle"); if(_1a6){ val=_1a6.apply(elem,data); } if((!fn||(_3.nodeName(elem,"a")&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false){ val=false; } if(_1a5){ data.shift(); } if(_1a0&&_3.isFunction(_1a0)){ ret=_1a0.apply(elem,val==null?data:data.concat(val)); if(ret!==_8){ val=ret; } } if(fn&&_19f!==false&&val!==false&&!(_3.nodeName(elem,"a")&&type=="click")){ this.triggered=true; try{ elem[type](); } catch(e){ } } this.triggered=false; } return val; },handle:function(_1a7){ var val,ret,_1aa,all,_1ac; _1a7=arguments[0]=_3.event.fix(_1a7||window.event); _1aa=_1a7.type.split("."); _1a7.type=_1aa[0]; _1aa=_1aa[1]; all=!_1aa&&!_1a7.exclusive; _1ac=(_3.data(this,"events")||{})[_1a7.type]; for(var j in _1ac){ var _1ae=_1ac[j]; if(all||_1ae.type==_1aa){ _1a7.handler=_1ae; _1a7.data=_1ae.data; ret=_1ae.apply(this,arguments); if(val!==false){ val=ret; } if(ret===false){ _1a7.preventDefault(); _1a7.stopPropagation(); } } } return val; },fix:function(_1af){ if(_1af[_62]==true){ return _1af; } var _1b0=_1af; _1af={originalEvent:_1b0}; var _1b1="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" "); for(var i=_1b1.length;i;i--){ _1af[_1b1[i]]=_1b0[_1b1[i]]; } _1af[_62]=true; _1af.preventDefault=function(){ if(_1b0.preventDefault){ _1b0.preventDefault(); } _1b0.returnValue=false; }; _1af.stopPropagation=function(){ if(_1b0.stopPropagation){ _1b0.stopPropagation(); } _1b0.cancelBubble=true; }; _1af.timeStamp=_1af.timeStamp||now(); if(!_1af.target){ _1af.target=_1af.srcElement||document; } if(_1af.target.nodeType==3){ _1af.target=_1af.target.parentNode; } if(!_1af.relatedTarget&&_1af.fromElement){ _1af.relatedTarget=_1af.fromElement==_1af.target?_1af.toElement:_1af.fromElement; } if(_1af.pageX==null&&_1af.clientX!=null){ var doc=document.documentElement,body=document.body; _1af.pageX=_1af.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0); _1af.pageY=_1af.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0); } if(!_1af.which&&((_1af.charCode||_1af.charCode===0)?_1af.charCode:_1af.keyCode)){ _1af.which=_1af.charCode||_1af.keyCode; } if(!_1af.metaKey&&_1af.ctrlKey){ _1af.metaKey=_1af.ctrlKey; } if(!_1af.which&&_1af.button){ _1af.which=(_1af.button&1?1:(_1af.button&2?3:(_1af.button&4?2:0))); } return _1af; },proxy:function(fn,_1b6){ _1b6.guid=fn.guid=fn.guid||_1b6.guid||this.guid++; return _1b6; },special:{ready:{setup:function(){ bindReady(); return; },teardown:function(){ return; }},mouseenter:{setup:function(){ if(_3.browser.msie){ return false; } _3(this).bind("mouseover",_3.event.special.mouseenter.handler); return true; },teardown:function(){ if(_3.browser.msie){ return false; } _3(this).unbind("mouseover",_3.event.special.mouseenter.handler); return true; },handler:function(_1b7){ if(_1b8(_1b7,this)){ return true; } _1b7.type="mouseenter"; return _3.event.handle.apply(this,arguments); }},mouseleave:{setup:function(){ if(_3.browser.msie){ return false; } _3(this).bind("mouseout",_3.event.special.mouseleave.handler); return true; },teardown:function(){ if(_3.browser.msie){ return false; } _3(this).unbind("mouseout",_3.event.special.mouseleave.handler); return true; },handler:function(_1b9){ if(_1b8(_1b9,this)){ return true; } _1b9.type="mouseleave"; return _3.event.handle.apply(this,arguments); }}}}; _3.fn.extend({bind:function(type,data,fn){ return type=="unload"?this.one(type,data,fn):this.each(function(){ _3.event.add(this,type,fn||data,fn&&data); }); },one:function(type,data,fn){ var one=_3.event.proxy(fn||data,function(_1c1){ _3(this).unbind(_1c1,one); return (fn||data).apply(this,arguments); }); return this.each(function(){ _3.event.add(this,type,one,fn&&data); }); },unbind:function(type,fn){ return this.each(function(){ _3.event.remove(this,type,fn); }); },trigger:function(type,data,fn){ return this.each(function(){ _3.event.trigger(type,data,this,true,fn); }); },triggerHandler:function(type,data,fn){ return this[0]&&_3.event.trigger(type,data,this[0],false,fn); },toggle:function(fn){ var args=arguments,i=1; while(i=0){ var _1de=url.slice(off,url.length); url=url.slice(0,off); } _1dc=_1dc||function(){ }; var type="GET"; if(_1db){ if(_3.isFunction(_1db)){ _1dc=_1db; _1db=null; }else{ _1db=_3.param(_1db); type="POST"; } } var self=this; _3.ajax({url:url,type:type,dataType:"html",data:_1db,complete:function(res,_1e2){ if(_1e2=="success"||_1e2=="notmodified"){ self.html(_1de?_3("
").append(res.responseText.replace(//g,"")).find(_1de):res.responseText); } self.each(_1dc,[res.responseText,_1e2,res]); }}); return this; },serialize:function(){ return _3.param(this.serializeArray()); },serializeArray:function(){ return this.map(function(){ return _3.nodeName(this,"form")?_3.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=_3(this).val(); return val==null?null:val.constructor==Array?_3.map(val,function(val,i){ return {name:elem.name,value:val}; }):{name:elem.name,value:val}; }).get(); }}); _3.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){ _3.fn[o]=function(f){ return this.bind(o,f); }; }); var jsc=now(); _3.extend({get:function(url,data,_1ee,type){ if(_3.isFunction(data)){ _1ee=data; data=null; } return _3.ajax({type:"GET",url:url,data:data,success:_1ee,dataType:type}); },getScript:function(url,_1f1){ return _3.get(url,null,_1f1,"script"); },getJSON:function(url,data,_1f4){ return _3.get(url,data,_1f4,"json"); },post:function(url,data,_1f7,type){ if(_3.isFunction(data)){ _1f7=data; data={}; } return _3.ajax({type:"POST",url:url,data:data,success:_1f7,dataType:type}); },ajaxSetup:function(_1f9){ _3.extend(_3.ajaxSettings,_1f9); },ajaxSettings:{url:location.href,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){ s=_3.extend(true,s,_3.extend(true,{},_3.ajaxSettings,s)); var _1fb,jsre=/=\?(&|$)/g,_1fd,data,type=s.type.toUpperCase(); if(s.data&&s.processData&&typeof s.data!="string"){ s.data=_3.param(s.data); } if(s.dataType=="jsonp"){ if(type=="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))){ _1fb="jsonp"+jsc++; if(s.data){ s.data=(s.data+"").replace(jsre,"="+_1fb+"$1"); } s.url=s.url.replace(jsre,"="+_1fb+"$1"); s.dataType="script"; window[_1fb]=function(tmp){ data=tmp; success(); complete(); window[_1fb]=_8; try{ delete window[_1fb]; } catch(e){ } if(head){ head.removeChild(_202); } }; } if(s.dataType=="script"&&s.cache==null){ s.cache=false; } if(s.cache===false&&type=="GET"){ var ts=now(); var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2"); s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:""); } if(s.data&&type=="GET"){ s.url+=(s.url.match(/\?/)?"&":"?")+s.data; s.data=null; } if(s.global&&!_3.active++){ _3.event.trigger("ajaxStart"); } var _205=/^(?:\w+:)?\/\/([^\/?#]+)/; if(s.dataType=="script"&&type=="GET"&&_205.test(s.url)&&_205.exec(s.url)[1]!=location.host){ var head=document.getElementsByTagName("head")[0]; var _202=document.createElement("script"); _202.src=s.url; if(s.scriptCharset){ _202.charset=s.scriptCharset; } if(!_1fb){ var done=false; _202.onload=_202.onreadystatechange=function(){ if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){ done=true; success(); complete(); head.removeChild(_202); } }; } head.appendChild(_202); return _8; } var _207=false; var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest(); if(s.username){ xhr.open(type,s.url,s.async,s.username,s.password); }else{ xhr.open(type,s.url,s.async); } try{ if(s.data){ xhr.setRequestHeader("Content-Type",s.contentType); } if(s.ifModified){ xhr.setRequestHeader("If-Modified-Since",_3.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT"); } xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"); xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default); } catch(e){ } if(s.beforeSend&&s.beforeSend(xhr,s)===false){ s.global&&_3.active--; xhr.abort(); return false; } if(s.global){ _3.event.trigger("ajaxSend",[xhr,s]); } var _209=function(_20a){ if(!_207&&xhr&&(xhr.readyState==4||_20a=="timeout")){ _207=true; if(ival){ clearInterval(ival); ival=null; } _1fd=_20a=="timeout"&&"timeout"||!_3.httpSuccess(xhr)&&"error"||s.ifModified&&_3.httpNotModified(xhr,s.url)&&"notmodified"||"success"; if(_1fd=="success"){ try{ data=_3.httpData(xhr,s.dataType,s.dataFilter); } catch(e){ _1fd="parsererror"; } } if(_1fd=="success"){ var _20c; try{ _20c=xhr.getResponseHeader("Last-Modified"); } catch(e){ } if(s.ifModified&&_20c){ _3.lastModified[s.url]=_20c; } if(!_1fb){ success(); } }else{ _3.handleError(s,xhr,_1fd); } complete(); if(s.async){ xhr=null; } } }; if(s.async){ var ival=setInterval(_209,13); if(s.timeout>0){ setTimeout(function(){ if(xhr){ xhr.abort(); if(!_207){ _209("timeout"); } } },s.timeout); } } try{ xhr.send(s.data); } catch(e){ _3.handleError(s,xhr,null,e); } if(!s.async){ _209(); } function success(){ if(s.success){ s.success(data,_1fd); } if(s.global){ _3.event.trigger("ajaxSuccess",[xhr,s]); } } function complete(){ if(s.complete){ s.complete(xhr,_1fd); } if(s.global){ _3.event.trigger("ajaxComplete",[xhr,s]); } if(s.global&&!--_3.active){ _3.event.trigger("ajaxStop"); } } return xhr; },handleError:function(s,xhr,_20f,e){ if(s.error){ s.error(xhr,_20f,e); } if(s.global){ _3.event.trigger("ajaxError",[xhr,s,e]); } },active:0,httpSuccess:function(xhr){ try{ return !xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||_3.browser.safari&&xhr.status==_8; } catch(e){ } return false; },httpNotModified:function(xhr,url){ try{ var _214=xhr.getResponseHeader("Last-Modified"); return xhr.status==304||_214==_3.lastModified[url]||_3.browser.safari&&xhr.status==_8; } catch(e){ } return false; },httpData:function(xhr,type,_217){ var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText; if(xml&&data.documentElement.tagName=="parsererror"){ throw "parsererror"; } if(_217){ data=_217(data,type); } if(type=="script"){ _3.globalEval(data); } if(type=="json"){ data=eval("("+data+")"); } return data; },param:function(a){ var s=[]; if(a.constructor==Array||a.jquery){ _3.each(a,function(){ s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value)); }); }else{ for(var j in a){ if(a[j]&&a[j].constructor==Array){ _3.each(a[j],function(){ s.push(encodeURIComponent(j)+"="+encodeURIComponent(this)); }); }else{ s.push(encodeURIComponent(j)+"="+encodeURIComponent(_3.isFunction(a[j])?a[j]():a[j])); } } } return s.join("&").replace(/%20/g,"+"); }}); _3.fn.extend({show:function(_21e,_21f){ return _21e?this.animate({height:"show",width:"show",opacity:"show"},_21e,_21f):this.filter(":hidden").each(function(){ this.style.display=this.oldblock||""; if(_3.css(this,"display")=="none"){ var elem=_3("<"+this.tagName+" />").appendTo("body"); this.style.display=elem.css("display"); if(this.style.display=="none"){ this.style.display="block"; } elem.remove(); } }).end(); },hide:function(_221,_222){ return _221?this.animate({height:"hide",width:"hide",opacity:"hide"},_221,_222):this.filter(":visible").each(function(){ this.oldblock=this.oldblock||_3.css(this,"display"); this.style.display="none"; }).end(); },_toggle:_3.fn.toggle,toggle:function(fn,fn2){ return _3.isFunction(fn)&&_3.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){ _3(this)[_3(this).is(":hidden")?"show":"hide"](); }); },slideDown:function(_225,_226){ return this.animate({height:"show"},_225,_226); },slideUp:function(_227,_228){ return this.animate({height:"hide"},_227,_228); },slideToggle:function(_229,_22a){ return this.animate({height:"toggle"},_229,_22a); },fadeIn:function(_22b,_22c){ return this.animate({opacity:"show"},_22b,_22c); },fadeOut:function(_22d,_22e){ return this.animate({opacity:"hide"},_22d,_22e); },fadeTo:function(_22f,to,_231){ return this.animate({opacity:to},_22f,_231); },animate:function(prop,_233,_234,_235){ var _236=_3.speed(_233,_234,_235); return this[_236.queue===false?"each":"queue"](function(){ if(this.nodeType!=1){ return false; } var opt=_3.extend({},_236),p,_239=_3(this).is(":hidden"),self=this; for(p in prop){ if(prop[p]=="hide"&&_239||prop[p]=="show"&&!_239){ return opt.complete.call(this); } if(p=="height"||p=="width"){ opt.display=_3.css(this,"display"); opt.overflow=this.style.overflow; } } if(opt.overflow!=null){ this.style.overflow="hidden"; } opt.curAnim=_3.extend({},prop); _3.each(prop,function(name,val){ var e=new _3.fx(self,opt,name); if(/toggle|show|hide/.test(val)){ e[val=="toggle"?_239?"show":"hide":val](prop); }else{ var _23e=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),_23f=e.cur(true)||0; if(_23e){ var end=parseFloat(_23e[2]),unit=_23e[3]||"px"; if(unit!="px"){ self.style[name]=(end||1)+unit; _23f=((end||1)/e.cur(true))*_23f; self.style[name]=_23f+unit; } if(_23e[1]){ end=((_23e[1]=="-="?-1:1)*end)+_23f; } e.custom(_23f,end,unit); }else{ e.custom(_23f,val,""); } } }); return true; }); },queue:function(type,fn){ if(_3.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){ _244(this,type,fn); }else{ _244(this,type).push(fn); if(_244(this,type).length==1){ fn.call(this); } } }); },stop:function(_245,_246){ var _247=_3.timers; if(_245){ this.queue([]); } this.each(function(){ for(var i=_247.length-1;i>=0;i--){ if(_247[i].elem==this){ if(_246){ _247[i](true); } _247.splice(i,1); } } }); if(!_246){ this.dequeue(); } return this; }}); var _244=function(elem,type,_24b){ if(elem){ type=type||"fx"; var q=_3.data(elem,type+"queue"); if(!q||_24b){ q=_3.data(elem,type+"queue",_3.makeArray(_24b)); } } return q; }; _3.fn.dequeue=function(type){ type=type||"fx"; return this.each(function(){ var q=_244(this,type); q.shift(); if(q.length){ q[0].call(this); } }); }; _3.extend({speed:function(_24f,_250,fn){ var opt=_24f&&_24f.constructor==Object?_24f:{complete:fn||!fn&&_250||_3.isFunction(_24f)&&_24f,duration:_24f,easing:fn&&_250||_250&&_250.constructor!=Function&&_250}; opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:_3.fx.speeds[opt.duration])||_3.fx.speeds.def; opt.old=opt.complete; opt.complete=function(){ if(opt.queue!==false){ _3(this).dequeue(); } if(_3.isFunction(opt.old)){ opt.old.call(this); } }; return opt; },easing:{linear:function(p,n,_255,diff){ return _255+diff*p; },swing:function(p,n,_259,diff){ return ((-Math.cos(p*Math.PI)/2)+0.5)*diff+_259; }},timers:[],timerId:null,fx:function(elem,_25c,prop){ this.options=_25c; this.elem=elem; this.prop=prop; if(!_25c.orig){ _25c.orig={}; } }}); _3.fx.prototype={update:function(){ if(this.options.step){ this.options.step.call(this.elem,this.now,this); } (_3.fx.step[this.prop]||_3.fx.step._default)(this); if(this.prop=="height"||this.prop=="width"){ this.elem.style.display="block"; } },cur:function(_25e){ if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){ return this.elem[this.prop]; } var r=parseFloat(_3.css(this.elem,this.prop,_25e)); return r&&r>-10000?r:parseFloat(_3.curCSS(this.elem,this.prop))||0; },custom:function(from,to,unit){ this.startTime=now(); 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(_264){ return self.step(_264); } t.elem=this.elem; _3.timers.push(t); if(_3.timerId==null){ _3.timerId=setInterval(function(){ var _265=_3.timers; for(var i=0;i<_265.length;i++){ if(!_265[i]()){ _265.splice(i--,1); } } if(!_265.length){ clearInterval(_3.timerId); _3.timerId=null; } },13); } },show:function(){ this.options.orig[this.prop]=_3.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"; } _3(this.elem).show(); },hide:function(){ this.options.orig[this.prop]=_3.attr(this.elem.style,this.prop); this.options.hide=true; this.custom(this.cur(),0); },step:function(_267){ var t=now(); if(_267||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(_3.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){ _3.attr(this.elem.style,p,this.options.orig[p]); } } } if(done){ this.options.complete.call(this.elem); } return false; }else{ var n=t-this.startTime; this.state=n/this.options.duration; this.pos=_3.easing[this.options.easing||(_3.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; }}; _3.extend(_3.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){ fx.elem.scrollLeft=fx.now; },scrollTop:function(fx){ fx.elem.scrollTop=fx.now; },opacity:function(fx){ _3.attr(fx.elem.style,"opacity",fx.now); },_default:function(fx){ fx.elem.style[fx.prop]=fx.now+fx.unit; }}}); _3.fn.offset=function(){ var left=0,top=0,elem=this[0],_274; if(elem){ with(_3.browser){ var _275=elem.parentNode,_276=elem,_277=elem.offsetParent,doc=elem.ownerDocument,_279=safari&&parseInt(version)<522&&!/adobeair/i.test(_e0),css=_3.curCSS,_27b=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(_277){ add(_277.offsetLeft,_277.offsetTop); if(mozilla&&!/^t(able|d|h)$/i.test(_277.tagName)||safari&&!_279){ border(_277); } if(!_27b&&css(_277,"position")=="fixed"){ _27b=true; } _276=/^body$/i.test(_277.tagName)?_276:_277; _277=_277.offsetParent; } while(_275&&_275.tagName&&!/^body|html$/i.test(_275.tagName)){ if(!/^inline|table.*$/i.test(css(_275,"display"))){ add(-_275.scrollLeft,-_275.scrollTop); } if(mozilla&&css(_275,"overflow")!="visible"){ border(_275); } _275=_275.parentNode; } if((_279&&(_27b||css(_276,"position")=="absolute"))||(mozilla&&css(_276,"position")!="absolute")){ add(-doc.body.offsetLeft,-doc.body.offsetTop); } if(_27b){ add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop)); } } _274={top:top,left:left}; } } function border(elem){ add(_3.curCSS(elem,"borderLeftWidth",true),_3.curCSS(elem,"borderTopWidth",true)); } function add(l,t){ left+=parseInt(l,10)||0; top+=parseInt(t,10)||0; } return _274; }; _3.fn.extend({position:function(){ var left=0,top=0,_282; if(this[0]){ var _283=this.offsetParent(),_284=this.offset(),_285=/^body|html$/i.test(_283[0].tagName)?{top:0,left:0}:_283.offset(); _284.top-=num(this,"marginTop"); _284.left-=num(this,"marginLeft"); _285.top+=num(_283,"borderTopWidth"); _285.left+=num(_283,"borderLeftWidth"); _282={top:_284.top-_285.top,left:_284.left-_285.left}; } return _282; },offsetParent:function(){ var _286=this[0].offsetParent; while(_286&&(!/^body|html$/i.test(_286.tagName)&&_3.css(_286,"position")=="static")){ _286=_286.offsetParent; } return _3(_286); }}); _3.each(["Left","Top"],function(i,name){ var _289="scroll"+name; _3.fn[_289]=function(val){ if(!this[0]){ return; } return val!=_8?this.each(function(){ this==window||this==document?window.scrollTo(!i?val:_3(window).scrollLeft(),i?val:_3(window).scrollTop()):this[_289]=val; }):this[0]==window||this[0]==document?self[i?"pageYOffset":"pageXOffset"]||_3.boxModel&&document.documentElement[_289]||document.body[_289]:this[0][_289]; }; }); _3.each(["Height","Width"],function(i,name){ var tl=i?"Left":"Top",br=i?"Right":"Bottom"; _3.fn["inner"+name]=function(){ return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br); }; _3.fn["outer"+name]=function(_28f){ return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(_28f?num(this,"margin"+tl)+num(this,"margin"+br):0); }; }); })(); jQuery.fn.extend({nextUntil:function(expr){ var _291=[]; this.each(function(){ for(var i=this.nextSibling;i;i=i.nextSibling){ if(i.nodeType!=1){ continue; } if(jQuery.filter(expr,[i]).r.length){ break; } _291.push(i); } }); return this.pushStack(_291); },SimpleAccordion:function(_293){ _293=jQuery.extend({},jQuery.SimpleAccordion.defaults,{header:jQuery(":first-child",this)[0].tagName},_293); if(_293.navigation){ var _294=this.find("a").filter(function(){ return this.href==location.href; }); if(_294.length){ _293.active=_294.parent().parent().prev(); _294.addClass("current"); } } var _295=this,_296=_293.active?jQuery(_293.active,this):_293.active===false?jQuery("
"):jQuery(_293.header,this).eq(0),_297=0; var _298=_295.find(_293.header); _298.not(_296||"").nextUntil(_293.header).hide(); _296.addClass(_293.selectedClass); function toggle(_299,_29a,data,_29c){ var _29d=function(_29e){ _297=_29e?0:--_297; if(_297){ return; } _295.trigger("change",data); }; _297=_29a.size()+_299.size(); if(_293.animated){ if(!_293.alwaysOpen&&_29c){ _299.slideToggle(_293.showSpeed); _29d(true); }else{ _29a.filter(":hidden").each(_29d).end().filter(":visible").slideUp(_293.hideSpeed,_29d); _299.slideDown(_293.showSpeed,_29d); } }else{ if(!_293.alwaysOpen&&_29c){ _299.toggle(); }else{ _29a.hide(); _299.show(); } _29d(true); } } function clickHandler(_29f){ if(!_29f.target&&!_293.alwaysOpen){ _296.toggleClass(_293.selectedClass); var _2a0=_296.nextUntil(_293.header); var _2a1=_296=jQuery([]); toggle(_2a1,_2a0); } var _2a2=jQuery(_29f.target); if(_2a2.parents(_293.header).length){ while(!_2a2.is(_293.header)){ _2a2=_2a2.parent(); } } var _2a3=_2a2[0]==_296[0]; if(_297||(_293.alwaysOpen&&_2a3)||!_2a2.is(_293.header)){ return; } _296.toggleClass(_293.selectedClass); if(!_2a3){ _2a2.addClass(_293.selectedClass); } var _2a1=_2a2.nextUntil(_293.header),_2a0=_296.nextUntil(_293.header),data=[_2a2,_296,_2a1,_2a0]; _296=_2a3?jQuery([]):_2a2; toggle(_2a1,_2a0,data,_2a3); return !_2a1.length; } function activateHandler(_2a5,_2a6){ if(_2a6==null){ return; } clickHandler({target:_2a6>=0?jQuery(_293.header,this)[_2a6]:typeof _2a6=="string"?jQuery(_2a6,this)[0]:null}); } _295.bind("activate",activateHandler); return _295.bind(_293.event,clickHandler); },activate:function(_2a7){ return this.trigger("activate",[_2a7]); }}); jQuery.SimpleAccordion={}; jQuery.extend(jQuery.SimpleAccordion,{defaults:{selectedClass:"selected",showSpeed:"fast",hideSpeed:"fast",alwaysOpen:true,animated:true,event:"click"}}); (function($){ $.fn.jqDrag=function(h){ return i(this,h,"d"); }; $.fn.jqResize=function(h){ return i(this,h,"r"); }; $.jqDnR={dnr:{},e:0,drag:function(v){ if(M.k=="d"){ E.css({left:M.X+v.pageX-M.pX,top:M.Y+v.pageY-M.pY}); }else{ E.css({width:Math.max(v.pageX-M.pX+M.W,0),height:Math.max(v.pageY-M.pY+M.H,0)}); } return false; },stop:function(){ E.css("opacity",M.o); $().unbind("mousemove",J.drag).unbind("mouseup",J.stop); }}; var J=$.jqDnR,M=J.dnr,E=J.e,i=function(e,h,k){ return e.each(function(){ h=(h)?$(h,e):e; h.bind("mousedown",{e:e,k:k},function(v){ var d=v.data,p={}; E=d.e; if(E.css("position")!="relative"){ try{ E.position(p); } catch(e){ } } M={X:p.left||f("left")||0,Y:p.top||f("top")||0,W:f("width")||E[0].scrollWidth||0,H:f("height")||E[0].scrollHeight||0,pX:v.pageX,pY:v.pageY,k:d.k,o:E.css("opacity")}; E.css({opacity:0.8}); $().mousemove($.jqDnR.drag).mouseup($.jqDnR.stop); return false; }); }); },f=function(k){ return parseInt(E.css(k))||false; }; })(jQuery); (function($){ $.blockUI=function(msg,css,opts){ $.blockUI.impl.install(window,msg,css,opts); }; $.blockUI.version=1.32; $.unblockUI=function(opts){ $.blockUI.impl.remove(window,opts); }; $.fn.block=function(msg,css,opts){ return this.each(function(){ if(!this.$pos_checked){ if($.css(this,"position")=="static"){ this.style.position="relative"; } if($.browser.msie){ this.style.zoom=1; } this.$pos_checked=1; } $.blockUI.impl.install(this,msg,css,opts); }); }; $.fn.unblock=function(opts){ return this.each(function(){ $.blockUI.impl.remove(this,opts); }); }; $.fn.displayBox=function(css,fn,_2c3){ var msg=this[0]; if(!msg){ return; } var $msg=$(msg); css=css||{}; var w=$msg.width()||$msg.attr("width")||css.width||$.blockUI.defaults.displayBoxCSS.width; var h=$msg.height()||$msg.attr("height")||css.height||$.blockUI.defaults.displayBoxCSS.height; if(w[w.length-1]=="%"){ var ww=document.documentElement.clientWidth||document.body.clientWidth; w=parseInt(w)||100; w=(w*ww)/100; } if(h[h.length-1]=="%"){ var hh=document.documentElement.clientHeight||document.body.clientHeight; h=parseInt(h)||100; h=(h*hh)/100; } var ml="-"+parseInt(w)/2+"px"; var mt="-"+parseInt(h)/2+"px"; var ua=navigator.userAgent.toLowerCase(); var opts={displayMode:fn||1,noalpha:_2c3&&/mac/.test(ua)&&/firefox/.test(ua)}; $.blockUI.impl.install(window,msg,{width:w,height:h,marginTop:mt,marginLeft:ml},opts); }; $.blockUI.defaults={pageMessage:"

Please wait...

",elementMessage:"",overlayCursor:"wait",overlayCSS:{backgroundColor:"#fff",opacity:"0.5"},pageMessageCSS:{width:"250px",margin:"-50px 0 0 -125px",top:"50%",left:"50%",textAlign:"center",color:"#000",backgroundColor:"#fff",border:"3px solid #aaa"},elementMessageCSS:{width:"250px",padding:"10px",textAlign:"center",backgroundColor:"#fff"},displayBoxCSS:{width:"400px",height:"400px",top:"50%",left:"50%"},ie6Stretch:1,allowTabToLeave:0,closeMessage:"Click to close",fadeOut:1,fadeTime:400}; $.blockUI.impl={box:null,boxCallback:null,pageBlock:null,pageBlockEls:[],op8:window.opera&&window.opera.version()<9,ie6:$.browser.msie&&/MSIE 6.0/.test(navigator.userAgent),install:function(el,msg,css,opts){ opts=opts||{}; this.boxCallback=typeof opts.displayMode=="function"?opts.displayMode:null; this.box=opts.displayMode?msg:null; var full=(el==window); var _2d3=this.op8||$.browser.mozilla&&/Linux/.test(navigator.platform); if(typeof opts.alphaOverride!="undefined"){ _2d3=opts.alphaOverride==0?1:0; } if(full&&this.pageBlock){ this.remove(window,{fadeOut:0}); } if(msg&&typeof msg=="object"&&!msg.jquery&&!msg.nodeType){ css=msg; msg=null; } msg=msg?(msg.nodeType?$(msg):msg):full?$.blockUI.defaults.pageMessage:$.blockUI.defaults.elementMessage; if(opts.displayMode){ var _2d4=jQuery.extend({},$.blockUI.defaults.displayBoxCSS); }else{ var _2d4=jQuery.extend({},full?$.blockUI.defaults.pageMessageCSS:$.blockUI.defaults.elementMessageCSS); } css=jQuery.extend(_2d4,css||{}); var f=($.browser.msie)?$(""):$("
"); var w=$("
"); var m=full?$("
"):$("
"); w.css("position",full?"fixed":"absolute"); if(msg){ m.css(css); } if(!_2d3){ w.css($.blockUI.defaults.overlayCSS); } if(this.op8){ w.css({width:""+el.clientWidth,height:""+el.clientHeight}); } if($.browser.msie){ f.css("opacity","0.0"); } $([f[0],w[0],m[0]]).appendTo(full?"body":el); var expr=$.browser.msie&&(!$.boxModel||$("object,embed",full?null:el).length>0); if(this.ie6||expr){ if(full&&$.blockUI.defaults.ie6Stretch&&$.boxModel){ $("html,body").css("height","100%"); } if((this.ie6||!$.boxModel)&&!full){ var t=this.sz(el,"borderTopWidth"),l=this.sz(el,"borderLeftWidth"); var fixT=t?"(0 - "+t+")":0; var fixL=l?"(0 - "+l+")":0; } $.each([f,w,m],function(i,o){ var s=o[0].style; s.position="absolute"; if(i<2){ full?s.setExpression("height","document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + \"px\""):s.setExpression("height","this.parentNode.offsetHeight + \"px\""); full?s.setExpression("width","jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + \"px\""):s.setExpression("width","this.parentNode.offsetWidth + \"px\""); if(fixL){ s.setExpression("left",fixL); } if(fixT){ s.setExpression("top",fixT); } }else{ if(full){ s.setExpression("top","(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + \"px\""); } s.marginTop=0; } }); } if(opts.displayMode){ w.css("cursor","default").attr("title",$.blockUI.defaults.closeMessage); m.css("cursor","default"); $([f[0],w[0],m[0]]).removeClass("blockUI").addClass("displayBox"); $().click($.blockUI.impl.boxHandler).bind("keypress",$.blockUI.impl.boxHandler); }else{ this.bind(1,el); } m.append(msg).show(); if(msg.jquery){ msg.show(); } if(opts.displayMode){ return; } if(full){ this.pageBlock=m[0]; this.pageBlockEls=$(":input:enabled:visible",this.pageBlock); setTimeout(this.focus,20); }else{ this.center(m[0]); } },remove:function(el,opts){ var o=$.extend({},$.blockUI.defaults,opts); this.bind(0,el); var full=el==window; var els=full?$("body").children().filter(".blockUI"):$(".blockUI",el); if(full){ this.pageBlock=this.pageBlockEls=null; } if(o.fadeOut){ els.fadeOut(o.fadeTime,function(){ if(this.parentNode){ this.parentNode.removeChild(this); } }); }else{ els.remove(); } },boxRemove:function(el){ $().unbind("click",$.blockUI.impl.boxHandler).unbind("keypress",$.blockUI.impl.boxHandler); if(this.boxCallback){ this.boxCallback(this.box); } $("body .displayBox").hide().remove(); },handler:function(e){ if(e.keyCode&&e.keyCode==9){ if($.blockUI.impl.pageBlock&&!$.blockUI.defaults.allowTabToLeave){ var els=$.blockUI.impl.pageBlockEls; var fwd=!e.shiftKey&&e.target==els[els.length-1]; var back=e.shiftKey&&e.target==els[0]; if(fwd||back){ setTimeout(function(){ $.blockUI.impl.focus(back); },10); return false; } } } if($(e.target).parents("div.blockMsg").length>0){ return true; } return $(e.target).parents().children().filter("div.blockUI").length==0; },boxHandler:function(e){ if((e.keyCode&&e.keyCode==27)||(e.type=="click"&&$(e.target).parents("div.blockMsg").length==0)){ $.blockUI.impl.boxRemove(); } return true; },bind:function(b,el){ var full=el==window; if(!b&&(full&&!this.pageBlock||!full&&!el.$blocked)){ return; } if(!full){ el.$blocked=b; } var $e=full?$():$(el).find("a,:input"); $.each(["mousedown","mouseup","keydown","keypress","click"],function(i,o){ $e[b?"bind":"unbind"](o,$.blockUI.impl.handler); }); },focus:function(back){ if(!$.blockUI.impl.pageBlockEls){ return; } var e=$.blockUI.impl.pageBlockEls[back===true?$.blockUI.impl.pageBlockEls.length-1:0]; if(e){ e.focus(); } },center:function(el){ var p=el.parentNode,s=el.style; var l=((p.offsetWidth-el.offsetWidth)/2)-this.sz(p,"borderLeftWidth"); var t=((p.offsetHeight-el.offsetHeight)/2)-this.sz(p,"borderTopWidth"); s.left=l>0?(l+"px"):"0"; s.top=t>0?(t+"px"):"0"; },sz:function(el,p){ return parseInt($.css(el,p))||0; }}; })(jQuery); (function($){ $.scrollTo=function(_2fb,_2fc,_2fd){ $($.browser.safari?"body":"html").scrollTo(_2fb,_2fc,_2fd); }; $.scrollTo.defaults={axis:"y",duration:1}; $.fn.scrollTo=function(_2fe,_2ff,_300){ if(typeof _2ff=="object"){ _300=_2ff; _2ff=0; } _300=$.extend({},$.scrollTo.defaults,_300); if(!_2ff){ _2ff=_300.speed||_300.duration; } _300.queue=_300.queue&&_300.axis.length==2; if(_300.queue){ _2ff=Math.ceil(_2ff/2); } if(typeof _300.offset=="number"){ _300.offset={left:_300.offset,top:_300.offset}; } return this.each(function(){ var elem=this,_302=$(elem),t=_2fe,toff,attr={},win=_302.is("html,body"); switch(typeof t){ case "number": case "string": if(/^([+-]=)?\d+(px)?$/.test(t)){ t={top:t,left:t}; break; } t=$(t,this); case "object": if(t.is||t.style){ toff=(t=$(t)).offset(); } } $.each(_300.axis.split(""),parse); animate(_300.onAfter); function parse(i,axis){ var Pos=axis=="x"?"Left":"Top",pos=Pos.toLowerCase(),key="scroll"+Pos,act=elem[key]; if(toff){ attr[key]=toff[pos]+(win?0:act-_302.offset()[pos]); if(_300.margin){ attr[key]-=parseInt(t.css("margin"+Pos))||0; attr[key]-=parseInt(t.css("border"+Pos+"Width"))||0; } if(_300.offset&&_300.offset[pos]){ attr[key]+=_300.offset[pos]; } }else{ attr[key]=t[pos]; } if(/^\d+$/.test(attr[key])){ attr[key]=attr[key]<=0?0:Math.min(attr[key],max(axis)); } if(!i&&_300.queue){ if(act!=attr[key]){ animate(_300.onAfterFirst); } delete attr[key]; } } function animate(_30d){ _302.animate(attr,_2ff,_300.easing,function(){ if(_30d){ _30d.call(this,_302,attr,t); } }); } function max(axis){ var el=win?$.browser.opera?document.body:document.documentElement:elem,Dim=axis=="x"?"Width":"Height"; return el["scroll"+Dim]-el["client"+Dim]; } }); }; })(jQuery); jQuery.cookie=function(name,_312,_313){ if(typeof _312!="undefined"){ _313=_313||{}; if(_312===null){ _312=""; _313.expires=-1; } var _314=""; if(_313.expires&&(typeof _313.expires=="number"||_313.expires.toUTCString)){ var date; if(typeof _313.expires=="number"){ date=new Date(); date.setTime(date.getTime()+(_313.expires*24*60*60*1000)); }else{ date=_313.expires; } _314="; expires="+date.toUTCString(); } var path=_313.path?"; path="+(_313.path):""; var _317=_313.domain?"; domain="+(_313.domain):""; var _318=_313.secure?"; secure":""; document.cookie=[name,"=",encodeURIComponent(_312),_314,path,_317,_318].join(""); }else{ var _319=null; if(document.cookie&&document.cookie!=""){ var _31a=document.cookie.split(";"); for(var i=0;i<_31a.length;i++){ var _31c=jQuery.trim(_31a[i]); if(_31c.substring(0,name.length+1)==(name+"=")){ _319=decodeURIComponent(_31c.substring(name.length+1)); break; } } } return _319; } }; jQuery.easing["jswing"]=jQuery.easing["swing"]; jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(x,t,b,c,d){ return jQuery.easing[jQuery.easing.def](x,t,b,c,d); },easeInQuad:function(x,t,b,c,d){ return c*(t/=d)*t+b; },easeOutQuad:function(x,t,b,c,d){ return -c*(t/=d)*(t-2)+b; },easeInOutQuad:function(x,t,b,c,d){ if((t/=d/2)<1){ return c/2*t*t+b; } return -c/2*((--t)*(t-2)-1)+b; },easeInCubic:function(x,t,b,c,d){ return c*(t/=d)*t*t+b; },easeOutCubic:function(x,t,b,c,d){ return c*((t=t/d-1)*t*t+1)+b; },easeInOutCubic:function(x,t,b,c,d){ if((t/=d/2)<1){ return c/2*t*t*t+b; } return c/2*((t-=2)*t*t+2)+b; },easeInQuart:function(x,t,b,c,d){ return c*(t/=d)*t*t*t+b; },easeOutQuart:function(x,t,b,c,d){ return -c*((t=t/d-1)*t*t*t-1)+b; },easeInOutQuart:function(x,t,b,c,d){ if((t/=d/2)<1){ return c/2*t*t*t*t+b; } return -c/2*((t-=2)*t*t*t-2)+b; },easeInQuint:function(x,t,b,c,d){ return c*(t/=d)*t*t*t*t+b; },easeOutQuint:function(x,t,b,c,d){ return c*((t=t/d-1)*t*t*t*t+1)+b; },easeInOutQuint:function(x,t,b,c,d){ if((t/=d/2)<1){ return c/2*t*t*t*t*t+b; } return c/2*((t-=2)*t*t*t*t+2)+b; },easeInSine:function(x,t,b,c,d){ return -c*Math.cos(t/d*(Math.PI/2))+c+b; },easeOutSine:function(x,t,b,c,d){ return c*Math.sin(t/d*(Math.PI/2))+b; },easeInOutSine:function(x,t,b,c,d){ return -c/2*(Math.cos(Math.PI*t/d)-1)+b; },easeInExpo:function(x,t,b,c,d){ return (t==0)?b:c*Math.pow(2,10*(t/d-1))+b; },easeOutExpo:function(x,t,b,c,d){ return (t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b; },easeInOutExpo:function(x,t,b,c,d){ if(t==0){ return b; } if(t==d){ return b+c; } if((t/=d/2)<1){ return c/2*Math.pow(2,10*(t-1))+b; } return c/2*(-Math.pow(2,-10*--t)+2)+b; },easeInCirc:function(x,t,b,c,d){ return -c*(Math.sqrt(1-(t/=d)*t)-1)+b; },easeOutCirc:function(x,t,b,c,d){ return c*Math.sqrt(1-(t=t/d-1)*t)+b; },easeInOutCirc:function(x,t,b,c,d){ if((t/=d/2)<1){ return -c/2*(Math.sqrt(1-t*t)-1)+b; } return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b; },easeInElastic:function(x,t,b,c,d){ var s=1.70158; var p=0; var a=c; if(t==0){ return b; } if((t/=d)==1){ return b+c; } if(!p){ p=d*0.3; } if(a=0?"&":"?")+q; _3c5.data=null; }else{ _3c5.data=q; } var _3ca=this,_3cb=[]; if(_3c5.resetForm){ _3cb.push(function(){ _3ca.resetForm(); }); } if(_3c5.clearForm){ _3cb.push(function(){ _3ca.clearForm(); }); } if(!_3c5.dataType&&_3c5.target){ var _3cc=_3c5.success||function(){ }; _3cb.push(function(data){ $(_3c5.target).html(data).each(_3cc,arguments); }); }else{ if(_3c5.success){ _3cb.push(_3c5.success); } } _3c5.success=function(data,_3cf){ for(var i=0,max=_3cb.length;i"); var io=$io[0]; var op8=$.browser.opera&&window.opera.version()<9; if($.browser.msie||op8){ io.src="javascript:false;document.write(\"\");"; } $io.css({position:"absolute",top:"-1000px",left:"-1000px"}); var xhr={responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){ },getResponseHeader:function(){ },setRequestHeader:function(){ }}; var g=opts.global; if(g&&!$.active++){ $.event.trigger("ajaxStart"); } if(g){ $.event.trigger("ajaxSend",[xhr,opts]); } var _3dd=0; var _3de=0; setTimeout(function(){ var _3df=form.encoding?"encoding":"enctype"; var t=_3ca.attr("target"),a=_3ca.attr("action"); _3ca.attr({target:id,method:"POST",action:opts.url}); form[_3df]="multipart/form-data"; if(opts.timeout){ setTimeout(function(){ _3de=true; cb(); },opts.timeout); } $io.appendTo("body"); io.attachEvent?io.attachEvent("onload",cb):io.addEventListener("load",cb,false); form.submit(); _3ca.attr({action:a,target:t}); },10); function cb(){ if(_3dd++){ return; } io.detachEvent?io.detachEvent("onload",cb):io.removeEventListener("load",cb,false); var ok=true; try{ if(_3de){ throw "timeout"; } var data,doc; doc=io.contentWindow?io.contentWindow.document:io.contentDocument?io.contentDocument:io.document; xhr.responseText=doc.body?doc.body.innerHTML:null; xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc; xhr.getResponseHeader=function(_3e4){ var _3e5={"content-type":opts.dataType}; return _3e5[_3e4]; }; if(opts.dataType=="json"||opts.dataType=="script"){ var ta=doc.getElementsByTagName("textarea")[0]; xhr.responseText=ta?ta.value:xhr.responseText; }else{ if(opts.dataType=="xml"&&!xhr.responseXML&&xhr.responseText!=null){ xhr.responseXML=toXml(xhr.responseText); } } data=$.httpData(xhr,opts.dataType); } catch(e){ ok=false; $.handleError(opts,xhr,"error",e); } if(ok){ opts.success(data,"success"); if(g){ $.event.trigger("ajaxSuccess",[xhr,opts]); } } if(g){ $.event.trigger("ajaxComplete",[xhr,opts]); } if(g&&!--$.active){ $.event.trigger("ajaxStop"); } if(opts.complete){ opts.complete(xhr,ok?"success":"error"); } setTimeout(function(){ $io.remove(); xhr.responseXML=null; },100); } function toXml(s,doc){ if(window.ActiveXObject){ doc=new ActiveXObject("Microsoft.XMLDOM"); doc.async="false"; doc.loadXML(s); }else{ doc=(new DOMParser()).parseFromString(s,"text/xml"); } return (doc&&doc.documentElement&&doc.documentElement.tagName!="parsererror")?doc:null; } } }; $.fn.ajaxForm=function(_3e9){ return this.ajaxFormUnbind().bind("submit.form-plugin",function(){ $(this).ajaxSubmit(_3e9); return false; }).each(function(){ $(":submit,input:image",this).bind("click.form-plugin",function(e){ var _3eb=this.form; _3eb.clk=this; if(this.type=="image"){ if(e.offsetX!=undefined){ _3eb.clk_x=e.offsetX; _3eb.clk_y=e.offsetY; }else{ if(typeof $.fn.offset=="function"){ var _3ec=$(this).offset(); _3eb.clk_x=e.pageX-_3ec.left; _3eb.clk_y=e.pageY-_3ec.top; }else{ _3eb.clk_x=e.pageX-this.offsetLeft; _3eb.clk_y=e.pageY-this.offsetTop; } } } setTimeout(function(){ _3eb.clk=_3eb.clk_x=_3eb.clk_y=null; },10); }); }); }; $.fn.ajaxFormUnbind=function(){ this.unbind("submit.form-plugin"); return this.each(function(){ $(":submit,input:image",this).unbind("click.form-plugin"); }); }; $.fn.formToArray=function(_3ed){ var a=[]; if(this.length==0){ return a; } var form=this[0]; var els=_3ed?form.getElementsByTagName("*"):form.elements; if(!els){ return a; } for(var i=0,max=els.length;i0){ _435.description=_435.title.substring(s+2)||_435.description; _435.title=_435.title.substring(0,s)||_435.title; } }else{ _435=false; } }else{ _435=false; } } if(!_435){ this.debug("We dont know what we have:",obj); return false; } return _435; },get:function(_437){ if(typeof _437==="undefined"||_437===null){ return this.active(); }else{ if(typeof _437==="number"){ _437=this.list[_437]||false; }else{ _437=this.create(_437); if(!_437){ return false; } var f=false; for(var i=0;i"); $("body").append("
"+(this.show_linkback?"

"+this.text.about.text+"

 

":"")+"

"+this.text.help.close+"
 "+this.text.help.interact+"

"); this.docHeight=$(document).height(); this.resizeBoxes(); this.repositionBoxes(); $("#lightbox,#lightbox-overlay,#lightbox-overlay-text-interact").hide(); $.each(this.files.images,function(){ var _442=new Image(); _442.onload=function(){ _442.onload=null; _442=null; }; _442.src=this; }); $(window).resize(function(){ $.Lightbox.resizeBoxes(); $.Lightbox.repositionBoxes(); }); $("#lightbox-nav-btnPrev").hover(function(){ $(this).css({"background":"url("+$.Lightbox.files.images.prev+") left 45% no-repeat"}); },function(){ $(this).css({"background":"transparent url("+$.Lightbox.files.images.blank+") no-repeat"}); }).click(function(){ $.Lightbox.showImage($.Lightbox.images.prev()); return false; }); $("#lightbox-nav-btnNext").hover(function(){ $(this).css({"background":"url("+$.Lightbox.files.images.next+") right 45% no-repeat"}); },function(){ $(this).css({"background":"transparent url("+$.Lightbox.files.images.blank+") no-repeat"}); }).click(function(){ $.Lightbox.showImage($.Lightbox.images.next()); return false; }); if(this.show_linkback){ $("#lightbox-overlay-text-about a").click(function(){ window.open($.Lightbox.text.about.link); return false; }); } $("#lightbox-overlay-text-close").hover(function(){ $("#lightbox-overlay-text-interact").fadeIn(); },function(){ $("#lightbox-overlay-text-interact").fadeOut(); }); $("#lightbox-overlay, #lightbox, #lightbox-loading-link, #lightbox-btnClose").unbind().click(function(){ $.Lightbox.finish(); return false; }); $.Lightbox.relify(); return true; },relify:function(){ var _443={}; var _444=0; var _445=this.rel; $.each($("[@rel*="+_445+"]"),function(_446,obj){ var rel=$(obj).attr("rel"); if(rel===_445){ rel=_444; } if(typeof _443[rel]==="undefined"){ _443[rel]=[]; _444++; } _443[rel].push(obj); }); $.each(_443,function(_449,_44a){ $(_44a).lightbox(); }); return true; },init:function(_44b,_44c){ if(typeof _44c==="undefined"){ _44c=_44b; _44b=0; } this.images.clear(); if(!this.images.add(_44c)){ return false; } if(this.images.empty()){ this.debug("Lightbox started, but no images: ",_44b,_44c); return false; } if(!this.images.active(_44b)){ return false; } return true; },start:function(){ $("embed, object, select").css("visibility","hidden"); this.resizeBoxes(); this.repositionBoxes({"speed":0}); $("#lightbox-infoFooter").hide(); $("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-infoBox").hide(); $("#lightbox-overlay").css("opacity",this.opacity).fadeIn(400,function(){ $("#lightbox").fadeIn(300); if(!$.Lightbox.showImage($.Lightbox.images.active())){ $.Lightbox.finish(); return false; } }); return true; },finish:function(){ $("#lightbox").hide(); $("#lightbox-overlay").fadeOut(function(){ $("#lightbox-overlay").hide(); }); $("embed, object, select").css({"visibility":"visible"}); },resizeBoxes:function(){ var _44d=jQuery.browser.version; var dH=$(document).height(); var dW=$(document).width(); if(_44d instanceof Object){ _44d=_44d.number(); } if((jQuery.browser.msie&&_44d<7)){ if(this.ie6H==undefined){ this.ie6H=$(window).height()-400; } dH=this.ie6H; if(this.ie6HB==undefined){ this.ie6HB=$(window).height(); } dW=dW-30; } dH=dH+"px"; dW=dW+"px"; $("#lightbox-overlay").css("width",dW); $("#lightbox-overlay").css("height",dH); },repositionBoxes:function(_450){ _450=$.extend({},_450); _450.callback=_450.callback||null; _450.speed=_450.speed||"slow"; var _451=this.getPageScroll(); var _452=jQuery.browser.version; var dH=$(document).height(); var dHB=$(document.body).height(); if(_452 instanceof Object){ _452=_452.number(); } if((jQuery.browser.msie&&_452<7)){ dH=this.ie6H; dHB=this.ie6HB; } var _455=_450.nHeight||parseInt($("#lightbox").height(),10)||dH/3; var nTop=_451.yScroll+(dHB-_455)/2.5; var _457=_451.xScroll; if((nTop+_455+200)>this.docHeight){ return; } var css={left:_457,top:nTop}; if(_450.speed&&0){ $("#lightbox").animate(css,"slow",_450.callback); }else{ $("#lightbox").css(css); } return true; },showImage:function(_459,_45a){ _459=this.images.get(_459); if(!_459){ return _459; } _45a=$.extend({step:1},_45a); var _45b=_45a.step>1&&this.images.active().src!==_459.src; var _45c=_45a.step>2&&$("#lightbox-image").attr("src")!==_459.src; if(_45b||_45c){ this.debug("We wanted to skip a few steps: ",_45a,_459); _45a.step=1; } switch(_45a.step){ case 1: this.KeyboardNav_Disable(); $("#lightbox-loading").show(); $("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-infoBox").hide(); $("#lightbox-imageBox").unbind(); var _45d=new Image(); _45d.onload=function(){ $.Lightbox.showImage(null,{step:2,width:_45d.width,height:_45d.height}); _45d.onload=null; _45d=null; }; _45d.src=_459.src; if(!this.images.active(_459)){ return false; } break; case 2: $("#lightbox-image").attr("src",_459.src); _45a=$.extend({width:null,height:null},_45a); if(typeof this.padding==="undefined"||this.padding===null||isNaN(this.padding)){ this.padding=parseInt($("#lightbox-imageContainer").css("padding-left"),10)||parseInt($("#lightbox-imageContainer").css("padding"),10)||0; } var _45e=_45a.width; var _45f=_45a.height; var _460=$("#lightbox-imageBox").width(); var _461=$("#lightbox-imageBox").height(); var _462=(_45e+(this.padding*2)); var _463=(_45f+(this.padding*2)); var _464=_460-_462; var _465=_461-_463; $("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:_45f+(this.padding*2)}); $("#lightbox-infoBox").css({width:_45e+this.padding*2}); this.repositionBoxes({"nHeight":_463}); if(_464===0&&_465===0){ if($.browser.msie){ this.pause(250); }else{ this.pause(100); } $.Lightbox.showImage(null,{step:3}); }else{ $("#lightbox-imageBox").animate({width:_462,height:_463},this.speed,function(){ $.Lightbox.showImage(null,{step:3}); }); } break; case 3: $("#lightbox-loading").hide(); $("#lightbox-image").fadeIn(500,function(){ $.Lightbox.showImage(null,{step:4}); }); this.preloadNeighbours(); break; case 4: $("#lightbox-caption-title").html(_459.title+(_459.description?": ":"")||""); $("#lightbox-caption-description").html(_459.description||" "); if(this.images.size()>1){ $("#lightbox-currentNumber").html(this.text.image+" "+(_459.index+1)+" "+this.text.of+" "+this.images.size()); }else{ $("#lightbox-currentNumber").html(" "); } $("#lightbox-imageBox").unbind("mouseover").mouseover(function(){ $("#lightbox-infoBox").slideDown("fast"); }); $("#lightbox-infoBox").unbind("mouseover").mouseover(function(){ $("#lightbox-infoFooter").slideDown("fast"); }); $("#lightbox-nav-btnPrev, #lightbox-nav-btnNext").css({"background":"transparent url("+this.files.images.blank+") no-repeat"}); if(!this.images.first(_459)){ $("#lightbox-nav-btnPrev").show(); } if(!this.images.last(_459)){ $("#lightbox-nav-btnNext").show(); } $("#lightbox-nav").show(); this.KeyboardNav_Enable(); break; default: this.debug("Don't know what to do: ",_45a); return this.showImage(_459,{step:1}); } return true; },preloadNeighbours:function(){ if(this.images.single()||this.images.empty()){ return true; } var _466=this.images.active(); if(!_466){ return _466; } var prev=this.images.prev(_466); var _468; if(prev){ _468=new Image(); _468.src=prev.src; } var next=this.images.next(_466); if(next){ _468=new Image(); _468.src=next.src; } },debug:function(_46a){ var con=null; if(typeof console!=="undefined"&&typeof console.log!=="undefined"){ con=console; }else{ if(typeof window.console!=="undefined"&&typeof window.console.log!=="undefined"){ con=window.console; } } if(con){ if(typeof arguments!=="undefined"&&arguments.length>1){ con.log(arguments); return arguments; }else{ con.log(_46a); return _46a; } } },KeyboardNav_Enable:function(){ $(document).keydown(function(_46c){ $.Lightbox.KeyboardNav_Action(_46c); }); },KeyboardNav_Disable:function(){ $(document).unbind(); },KeyboardNav_Action:function(_46d){ _46d=_46d||window.event; var _46e=_46d.keyCode; var _46f=_46d.DOM_VK_ESCAPE||27; var key=String.fromCharCode(_46e).toLowerCase(); if(key===this.keys.close||_46e===_46f){ return $.Lightbox.finish(); } if(key===this.keys.prev||_46e===37){ return $.Lightbox.showImage($.Lightbox.images.prev()); } if(key===this.keys.next||_46e===39){ return $.Lightbox.showImage($.Lightbox.images.next()); } return true; },getPageScroll:function(){ var _471=$(window).scrollLeft(); var _472=$(window).scrollTop(); var _473={"xScroll":_471,"yScroll":_472}; return _473; },pause:function(ms){ var date=new Date(); var _476=null; do{ _476=new Date(); }while(_476-date"; html+="
"; if(o.selectAll){ html+=""; } $(_47a).find("OPTION").each(function(){ if($(this).val()!=""){ html+="
"; $(_47a).after(html); $(_47a).next(".multiSelect").mouseover(function(){ $(this).addClass("hover"); }).mouseout(function(){ $(this).removeClass("hover"); }).click(function(){ if($(this).hasClass("active")){ $(this).multiSelectOptionsHide(); }else{ $(this).multiSelectOptionsShow(); } return false; }).focus(function(){ $(this).addClass("focus"); }).blur(function(){ $(this).removeClass("focus"); }); if(o.selectAll){ var sa=true; $(_47a).next(".multiSelect").next(".multiSelectOptions").find("INPUT:checkbox").not(".selectAll").each(function(){ if(!$(this).attr("checked")){ sa=false; } }); if(sa){ $(_47a).next(".multiSelect").next(".multiSelectOptions").find("INPUT.selectAll").attr("checked",true).parent().addClass("checked"); } } $(_47a).next(".multiSelect").next(".multiSelectOptions").find("INPUT.selectAll").click(function(){ if($(this).attr("checked")==true){ $(this).parent().parent().find("INPUT:checkbox").attr("checked",true).parent().addClass("checked"); }else{ $(this).parent().parent().find("INPUT:checkbox").attr("checked",false).parent().removeClass("checked"); } }); $(_47a).next(".multiSelect").next(".multiSelectOptions").find("INPUT:checkbox").click(function(){ $(this).parent().parent().multiSelectUpdateSelected(o); $(this).parent().parent().find("LABEL").removeClass("checked").find("INPUT:checked").parent().addClass("checked"); $(this).parent().parent().prev(".multiSelect").focus(); if(!$(this).attr("checked")){ $(this).parent().parent().find("INPUT:checkbox.selectAll").attr("checked",false).parent().removeClass("checked"); } if(_479){ _479($(this)); } }); $(_47a).next(".multiSelect").next(".multiSelectOptions").each(function(){ $(this).multiSelectUpdateSelected(o); $(this).find("INPUT:checked").parent().addClass("checked"); }); $(_47a).next(".multiSelect").next(".multiSelectOptions").find("LABEL").mouseover(function(){ $(this).parent().find("LABEL").removeClass("hover"); $(this).addClass("hover"); }).mouseout(function(){ $(this).parent().find("LABEL").removeClass("hover"); }); $(_47a).next(".multiSelect").keydown(function(e){ if($(this).next(".multiSelectOptions").is(":visible")){ if(e.keyCode==9){ $(this).addClass("focus").trigger("click"); $(this).focus().next(":input").focus(); return true; } if(e.keyCode==27||e.keyCode==37||e.keyCode==39){ $(this).addClass("focus").trigger("click"); } if(e.keyCode==40){ if(!$(this).next(".multiSelectOptions").find("LABEL").hasClass("hover")){ $(this).next(".multiSelectOptions").find("LABEL:first").addClass("hover"); }else{ $(this).next(".multiSelectOptions").find("LABEL.hover").removeClass("hover").next("LABEL").addClass("hover"); if(!$(this).next(".multiSelectOptions").find("LABEL").hasClass("hover")){ $(this).next(".multiSelectOptions").find("LABEL:first").addClass("hover"); } } return false; } if(e.keyCode==38){ if(!$(this).next(".multiSelectOptions").find("LABEL").hasClass("hover")){ $(this).next(".multiSelectOptions").find("LABEL:first").addClass("hover"); }else{ $(this).next(".multiSelectOptions").find("LABEL.hover").removeClass("hover").prev("LABEL").addClass("hover"); if(!$(this).next(".multiSelectOptions").find("LABEL").hasClass("hover")){ $(this).next(".multiSelectOptions").find("LABEL:last").addClass("hover"); } } return false; } if(e.keyCode==13||e.keyCode==32){ if($(this).next(".multiSelectOptions").find("LABEL.hover INPUT:checkbox").hasClass("selectAll")){ if($(this).next(".multiSelectOptions").find("LABEL.hover INPUT:checkbox").attr("checked")){ $(this).next(".multiSelectOptions").find("INPUT:checkbox").attr("checked",false).parent().removeClass("checked"); }else{ $(this).next(".multiSelectOptions").find("INPUT:checkbox").attr("checked",true).parent().addClass("checked"); } $(this).next(".multiSelectOptions").multiSelectUpdateSelected(o); if(_479){ _479($(this)); } return false; } if($(this).next(".multiSelectOptions").find("LABEL.hover INPUT:checkbox").attr("checked")){ $(this).next(".multiSelectOptions").find("LABEL.hover INPUT:checkbox").attr("checked",false); $(this).next(".multiSelectOptions").multiSelectUpdateSelected(o); $(this).next(".multiSelectOptions").find("LABEL").removeClass("checked").find("INPUT:checked").parent().addClass("checked"); $(this).next(".multiSelectOptions").find("INPUT:checkbox.selectAll").attr("checked",false).parent().removeClass("checked"); if(_479){ _479($(this)); } }else{ $(this).next(".multiSelectOptions").find("LABEL.hover INPUT:checkbox").attr("checked",true); $(this).next(".multiSelectOptions").multiSelectUpdateSelected(o); $(this).next(".multiSelectOptions").find("LABEL").removeClass("checked").find("INPUT:checked").parent().addClass("checked"); if(_479){ _479($(this)); } } } return false; }else{ if(e.keyCode==38||e.keyCode==40||e.keyCode==13||e.keyCode==32){ $(this).removeClass("focus").trigger("click"); $(this).next(".multiSelectOptions").find("LABEL:first").addClass("hover"); return false; } if(e.keyCode==9){ $(this).focus().next(":input").focus(); return true; } } if(e.keyCode==13){ return false; } }); $(_47a).remove(); }); },multiSelectOptionsHide:function(){ $(this).removeClass("active").next(".multiSelectOptions").hide(); },multiSelectOptionsShow:function(){ $(".multiSelect").multiSelectOptionsHide(); $(this).next(".multiSelectOptions").find("LABEL").removeClass("hover"); $(this).addClass("active").next(".multiSelectOptions").show(); var _47e=$(this).offset(); $(this).next(".multiSelectOptions").css({top:_47e.top+$(this).outerHeight()+"px"}); $(this).next(".multiSelectOptions").css({left:_47e.left+"px"}); multiSelectCurrent=$(this); var _47f=""; $(this).next(".multiSelectOptions").hover(function(){ clearTimeout(_47f); },function(){ _47f=setTimeout("$(multiSelectCurrent).multiSelectOptionsHide(); $(multiSelectCurrent).unbind(\"hover\");",250); }); },multiSelectUpdateSelected:function(o){ var i=0,s=""; $(this).find("INPUT:checkbox:checked").not(".selectAll").each(function(){ i++; }); if(i==0){ $(this).prev("INPUT.multiSelect").val(o.noneSelected); }else{ if(o.oneOrMoreSelected=="*"){ var _483=""; $(this).find("INPUT:checkbox:checked").each(function(){ if($(this).parent().text()!=o.selectAllText){ _483=_483+$(this).parent().text()+", "; } }); _483=_483.substr(0,_483.length-2); $(this).prev("INPUT.multiSelect").val(_483); }else{ $(this).prev("INPUT.multiSelect").val(o.oneOrMoreSelected.replace("%",i)); } } }}); })(jQuery); } jQuery().ready(function(){ $("div.select-dropdown").each(function(){ var _484=$(this); var _485=$("ul.selectbox",_484); var _486=$("a.dropdown.pulldown_arrow",_484); var _487=$(".dropdown",_484).not(".pulldown_arrow"); var _488=$(this).attr("id").split("-")[0]; var _489=$("#"+_488,_484); var _48a=$("#"+_488+"-titre",_484); var _48b=$("#"+_488+"-size",_484); $("a.dropdown",$(this)).bind("click",function(e){ e.preventDefault(); e.stopPropagation(); _485.slideToggle("slow"); if(_486.is(".actif")){ _486.removeClass("actif"); }else{ _486.addClass("actif"); } }); $("li a",_484).bind("click",function(e){ e.preventDefault(); e.stopPropagation(); _486.removeClass("actif"); _487.attr("href",$(this).attr("href")); _489.val($(this).attr("href")); _487.html($(this).html()); _48a.val($(this).html()); var _48e=$(this).next("span.size").clone(); _48b.val($(this).next("span.size").html()); _48e.addClass("extra-info"); $("span.extra-info",_484).remove(); _487.after(_48e); _487.attr("class",$(this).attr("class")); _487.addClass("dropdown"); _485.slideUp("fast"); }); }); $("#gallerie-thumbs a").each(function(){ jQuery("").attr("src",$(this).attr("href")); }); if($("#gallerie-thumbs a.zoom").length){ $("#gallerie-thumbs a.zoom").lightbox(); $(window).scroll(function(e){ if($(window).scrollLeft()<=0){ $(window).trigger("resize"); } }); } $("img","div.plan").each(function(e){ $(this).addClass("zoom"); var reli=$("a:first","div.plan").attr("href"); $(this).attr("rel",reli); $(this).zoom1().click(function(){ $(this).zoom2().fadeIn().click(function(){ $(this).hide(); return false; }).end(); return false; }); }); $("#categorie_search").multiSelect({oneOrMoreSelected:"*",selectAllText:"Choisir tous",noneSelected:"Choisir"}); $("label[for='categorie_search']").toggle(function(){ $(this).next(".multiSelect").multiSelectOptionsShow(); },function(){ $(this).next(".multiSelect").multiSelectOptionsHide(); }); $("ul.qquestions").each(function(){ $("ul.qquestions").hide(); $("dl.qquestions > dd").hide(); $("dl.qquestions > dt").unbind("click"); $("dl.qquestions > dt").bind("click",function(e){ e.stopPropagation(); e.preventDefault(); var _493=$(this).next("dd"); if(_493.is(":hidden")){ _493.animate({height:"show",opacity:"show"},"normal"); }else{ _493.animate({height:"hide",opacity:"hide"},"slow"); } }); $("dl.qquestions > dd").unbind("click"); $("dl.qquestions > dd").bind("click",function(e){ $(this).animate({height:"hide",opacity:"hide"},"slow"); }); }); $("img[src*='actualite'], img[src*='evenement'], img[src*='manifestation']").each(function(e){ $(this).addClass("zoom"); var bigi=$(this).attr("src").split("normal"); var reli=bigi[0]+"big"+bigi[1]; $(this).attr("rel",reli); $(this).zoom1().click(function(){ $(this).zoom2().fadeIn().click(function(){ $(this).hide(); return false; }).end(); return false; }); }); if($("#content-text a.zoom").length){ $("#content-text a.zoom").lightbox(); $(window).scroll(function(e){ if($(window).scrollLeft()<=0){ $(window).trigger("resize"); } }); } $("a.external").bind("click",function(e){ e.preventDefault(); e.stopPropagation(); window.open(this.href); }); $("body#print-shop, body#print-shop-de, body#print-shop-en").each(function(){ var _49a=$("
"); _49a.hide(); var _49b=""; function showResponse(_49c,_49d){ if($("form",$(_49c)).length){ $("form",_49a).html($("form",$(_49c)).html()); $("form",_49a).unbind("submit").find("input:submit,input:image,button:submit").unbind("click"); $("form",_49a).ajaxForm({success:showResponse}); }else{ if($("div.content-text-bg",$(_49c)).length){ var _49e=$("
"+$("div.content-text-bg",$(_49c)).html()+"
"); _49e.height(_49b); _49e.css("position","absolute"); $("form",_49a).css("visibility","hidden"); $("input[type=text], textarea",_49a).val(""); _49e.prependTo(_49a); } } } $("div.comment","#content-text").append(_49a); $("div.printshop-contact a","#content-text").unbind("click"); $("div.printshop-contact a","#content-text").bind("click",function(e){ e.preventDefault(); e.stopPropagation(); $.get($(this).attr("href")+"&x=1",function(res){ if($("form",_49a).length){ _49a.slideUp("normal",function(){ _49a.empty(); doForm(); }); }else{ doForm(); } function doForm(){ var _4a1=$("form",res); var _4a2=$("div.close",res); _49a.append(_4a1); _49a.append(_4a2); _4a1.ajaxForm({success:showResponse}); _4a2.bind("click",function(){ _49a.slideUp("normal",function(){ _49a.empty(); }); }); _49a.slideDown("normal",function(){ $.scrollTo(_49a,1000,{offset:{top:-20}}); _49b=_49a.height(); $("input[type=text]:first").focus(); }); } }); }); }); $("body#contact, body#kontakt, body#contact-en").each(function(){ if(!$("a.gallery:first",".shoplist-rubrique").length){ return; } var _4a3=$("a.gallery:first",".shoplist-rubrique").attr("href"); var _4a4=_4a3.split("?p="); var _4a5=_4a4[0]+"?p=x"; var _4a6=""; var _4a7=false; var _4a8=""; var _4a9=""; var _4aa=""; $.get(_4a5,function(data){ _4a6=$("
"+$("div.contact-perso",data).html()+"
"); var _4ac=$("input#p",_4a6); _4a6.css("position","absolute"); _4a6.width($("ul.shoplist-rubrique > li:first > ul").innerWidth({border:true,padding:true})); _4a6.hide(); _4aa=$("input.submit",_4a6); function showResponse(_4ad,_4ae){ if($("form",$(_4ad)).length){ $("form",_4a6).html($("form",$(_4ad)).html()); $("form",_4a6).unbind("submit").find("input:submit,input:image,button:submit").unbind("click"); $("form",_4a6).ajaxForm({success:showResponse}); }else{ if($("div.content-text-bg",$(_4ad)).length){ var _4af=$("
"+$("div.content-text-bg",$(_4ad)).html()+"
"); _4af.height(_4a8); _4af.css("position","absolute"); $("form",_4a6).css("visibility","hidden"); $("input[type=text], textarea","form").val(""); _4af.prependTo(_4a6); } } } function showRequest(_4b0,_4b1,_4b2){ var _4b3=$.param(_4b0); alert("About to submit: \n\n"+_4b3); return true; } $("form",_4a6).ajaxForm({success:showResponse}); $("div.close",_4a6).bind("click",function(e){ e.preventDefault(); e.stopPropagation(); _4a6.slideUp({duration:1000,easing:"easeOutQuad",complete:function(){ _4a9.removeClass("form-select"); $("div.content-text-bg",_4a6).remove(); $("form",_4a6).css("visibility",""); }}); }); }); $(".shoplist-rubrique").each(function(){ $(this).SimpleAccordion({header:"h2",navigation:true,alwaysOpen:false}); }); $("a.gallery, div.contact-button a","#content-text").unbind("click"); $("a.gallery, div.contact-button a","#content-text").bind("click",function(e){ e.preventDefault(); e.stopPropagation(); _4a9=$(this); var _4b6=_4a9.attr("href"); _4a9.addClass("form-select"); if($(this).is(".gallery")){ _4a4=_4b6.split("?p="); _4a5=_4a4[0]+"?p=x"; var _4b7=_4a4[1]; $("input#p",_4a6).val(_4b7); var _4b8=$("span.fn",_4a9).html(); contactNameParts=_4b8.split(" "); _4b8=contactNameParts[1]+" "+contactNameParts[0]; }else{ var _4b8="Imprimerie Fr. Faber S.A."; $("input#p",_4a6).val("x"); } $("span.contactName",_4a6).html(_4b8); if(!_4a7){ _4a6.prependTo("div.shoplist_all"); _4a7=true; _4a8=_4a6.height(); } _4a6.slideDown({duration:1000,easing:"easeInQuad",complete:function(){ $("input[@type=\"text\"]:visible:first",_4a6).focus(); }}); }); }); $("div.abonn").each(function(){ var _4b9=$(this); $("div.radio",_4b9).unbind("click"); $("div.radio",_4b9).bind("click",function(e){ e.preventDefault(); e.stopPropagation(); $("div.radio",_4b9).removeClass("selected"); $("input[type=radio]",_4b9).removeAttr("checked"); $("input[type=radio]",$(this)).attr("checked","checked"); $(this).addClass("selected"); }); }); var _4bb=jQuery.browser.version; if(_4bb instanceof Object){ _4bb=_4bb.number(); } if((jQuery.browser.msie&&_4bb<7)){ $("#liste-galerie dt a").hover(function(){ $("span",$(this)).addClass("over"); },function(){ $("span",$(this)).removeClass("over"); }); $("li.newsletter-menu").hover(function(){ $("div.abonnement","li.newsletter-menu").show(); },function(){ $("div.abonnement","li.newsletter-menu").hide(); }); $("ul.smenu-view").each(function(){ var _4bc=$(this).parent("div"); var _4bd=$(this); _4bd.hide(); _4bd.css("margin","-5px 0 0 0px"); _4bd.css("border-top","4px solid #b01446"); _4bc.hover(function(){ _4bd.show(); },function(){ _4bd.hide(); }); }); } }); (function($){ $.fn.zoomi=function(){ $(this).filter("img").each(function(){ if(!this.z){ $(this).zoom1().mouseover(function(){ $(this).zoom2().show(); }); $(this.z).mouseout(function(){ $(this).hide(); }); } }); return this; }; $.fn.zoom1=function(){ $(this).each(function(){ var e=this; $(e).css({"position":"relative","z-index":"8"}).after(""); e.z=e.nextSibling; $(e.z).removeClass("zoomi").addClass("zoom2").attr("src",$(e).attr("rel")||e.src).css({"position":"absolute","z-index":"3000"}); $(e.z).hide(); }); return this; }; $.fn.zoom2=function(){ var s=[]; this.each(function(){ var e=this; if(!e.z){ e=$(e).zoom1()[0]; } s.push(e.z); if(!e.z.complete){ return; } if(!e.z.width){ $(e.z).show(); e.z.width=e.z.width; $(e.z).hide(); } $(e.z).css({left:e.offsetLeft-(e.z.width-e.scrollWidth)/2+"px",top:$(e).offsetTop()-(e.z.height-e.scrollHeight)/2+"px"}); }); return this.pushStack(s); }; $.fn.offsetLeft=function(){ var e=this[0]; if(!e.offsetParent){ return e.offsetLeft; } return e.offsetLeft+$(e.offsetParent).offsetLeft(); }; $.fn.offsetTop=function(){ var e=this[0]; if(!e.offsetParent){ return e.offsetTop; } return e.offsetTop+$(e.offsetParent).offsetTop(); }; })(jQuery); (function($){ $.fn.gmsAscii=function(_4c5){ _4c5=jQuery.extend({iScale:1,bColor:false,bAlpha:true,bBlock:true,bInvert:false,strResolution:"medium"},_4c5); return $(this).each(function(){ return asciifyImageLoad($(this)); }); function asciifyImage(oImg,_4c7){ var _4c8=_4c5.iScale; var _4c9=_4c5.bColor; var _4ca=_4c5.bAlpha; var _4cb=_4c5.bBlock; var _4cc=_4c5.bInvert; var _4cd=_4c5.strResolution; var _4ce=(" .,:;i1tfLCG08@").split(""); var _4cf=(" CGO08@").split(""); var _4d0="courier new"; var _4d1=document.createElement("canvas"); if(!_4d1.getContext){ return; } var oCtx=_4d1.getContext("2d"); if(!oCtx.getImageData){ return; } var _4d3=oImg.getAttribute("asciichars")||(_4c9?_4cf:_4ce); var _4d4=0.5; switch(_4cd){ case "low": _4d4=0.25; break; case "medium": _4d4=0.5; break; case "high": _4d4=1; break; } var _4d5=Math.round(parseInt(oImg.offsetWidth)*_4d4); var _4d6=Math.round(parseInt(oImg.offsetHeight)*_4d4); _4d1.width=_4d5; _4d1.height=_4d6; _4d1.style.display="none"; _4d1.style.width=_4d5; _4d1.style.height=_4d6; oCtx.drawImage(_4c7,0,0,_4d5,_4d6); var _4d7=oCtx.getImageData(0,0,_4d5,_4d6).data; var _4d8=""; for(var y=0;y<_4d6;y+=2){ for(var x=0;x<_4d5;x++){ var _4db=(y*_4d5+x)*4; var iRed=_4d7[_4db]; var _4dd=_4d7[_4db+1]; var _4de=_4d7[_4db+2]; var _4df=_4d7[_4db+3]; if(_4df==0){ var _4e0=0; }else{ var _4e1=(0.3*iRed+0.59*_4dd+0.11*_4de)/255; var _4e2=(_4d3.length-1)-Math.round(_4e1*(_4d3.length-1)); } if(_4cc){ _4e2=(_4d3.length-1)-_4e2; } var _4e3=_4d3[_4e2]; if(_4e3==" "){ _4e3=" "; } if(_4c9){ _4d8+=""+_4e3+""; }else{ _4d8+=_4e3; } } _4d8+="
"; } var _4e4=(2/_4d4)*_4c8; var _4e5=(2/_4d4)*_4c8; var _4e6=0; if(_4cd=="low"){ switch(_4c8){ case 1: _4e6=-1; break; case 2: case 3: _4e6=-2.1; break; case 4: _4e6=-3.1; break; case 5: _4e6=-4.15; break; } } if(_4cd=="medium"){ switch(_4c8){ case 1: _4e6=0; break; case 2: _4e6=-1; break; case 3: _4e6=-1.04; break; case 4: case 5: _4e6=-2.1; break; } } if(_4cd=="high"){ switch(_4c8){ case 1: case 2: _4e6=0; break; case 3: case 4: case 5: _4e6=-1; break; } } var _4e7=document.createElement("table"); _4e7.innerHTML=""+_4d8+""; if(oImg.style.backgroundColor){ _4e7.rows[0].cells[0].style.backgroundColor=oImg.style.backgroundColor; _4e7.rows[0].cells[0].style.color=oImg.style.color; } _4e7.cellSpacing=0; _4e7.cellPadding=0; var _4e8=_4e7.style; _4e8.display="inline"; _4e8.width=Math.round(_4d5/_4d4*_4c8)+"px"; _4e8.height=Math.round(_4d6/_4d4*_4c8)+"px"; _4e8.whiteSpace="pre"; _4e8.margin="0px"; _4e8.padding="0px"; _4e8.letterSpacing=_4e6+"px"; _4e8.fontFamily=_4d0; _4e8.fontSize=_4e4+"px"; _4e8.lineHeight=_4e5+"px"; _4e8.textAlign="left"; _4e8.textDecoration="none"; oImg.parentNode.replaceChild(_4e7,oImg); } function asciifyImageLoad(_4e9){ oImg=_4e9[0]; var _4ea=new Image(); _4ea.src=oImg.src; if(_4ea.complete){ asciifyImage(oImg,_4ea); }else{ _4ea.onload=function(){ asciifyImage(oImg,_4ea); }; } } }; })(jQuery);