var swfobject=function(){var aq="undefined",aA="object",aa="Shockwave Flash",ae="ShockwaveFlash.ShockwaveFlash",az="application/x-shockwave-flash",Z="SWFObjectExprInst",av="onreadystatechange",am=window,aI=document,aC=navigator,ab=false,ac=[aG],aN=[],al=[],ag=[],aK,Y,ar,ao,ah=false,aO=false,aM,au,aL=true,ak=function(){var c=typeof aI.getElementById!=aq&&typeof aI.getElementsByTagName!=aq&&typeof aI.createElement!=aq,g=aC.userAgent.toLowerCase(),j=aC.platform.toLowerCase(),h=j?/win/.test(j):/win/.test(g),a=j?/mac/.test(j):/mac/.test(g),b=/webkit/.test(g)?parseFloat(g.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,i=!+"\v1",e=[0,0,0],f=null;if(typeof aC.plugins!=aq&&typeof aC.plugins[aa]==aA){f=aC.plugins[aa].description;if(f&&!(typeof aC.mimeTypes!=aq&&aC.mimeTypes[az]&&!aC.mimeTypes[az].enabledPlugin)){ab=true;i=false;f=f.replace(/^.*\s+(\S+\s+\S+$)/,"$1");e[0]=parseInt(f.replace(/^(.*)\..*$/,"$1"),10);e[1]=parseInt(f.replace(/^.*\.(.*)\s.*$/,"$1"),10);e[2]=/[a-zA-Z]/.test(f)?parseInt(f.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0;}}else{if(typeof am.ActiveXObject!=aq){try{var d=new ActiveXObject(ae);if(d){f=d.GetVariable("$version");if(f){i=true;f=f.split(" ")[1].split(",");e=[parseInt(f[0],10),parseInt(f[1],10),parseInt(f[2],10)];}}}catch(k){}}}return{w3:c,pv:e,wk:b,ie:i,win:h,mac:a};}(),aJ=function(){if(!ak.w3){return;}if((typeof aI.readyState!=aq&&aI.readyState=="complete")||(typeof aI.readyState==aq&&(aI.getElementsByTagName("body")[0]||aI.body))){aT();}if(!ah){if(typeof aI.addEventListener!=aq){aI.addEventListener("DOMContentLoaded",aT,false);}if(ak.ie&&ak.win){aI.attachEvent(av,function(){if(aI.readyState=="complete"){aI.detachEvent(av,arguments.callee);aT();}});if(am==top){(function(){if(ah){return;}try{aI.documentElement.doScroll("left");}catch(a){setTimeout(arguments.callee,0);return;}aT();})();}}if(ak.wk){(function(){if(ah){return;}if(!/loaded|complete/.test(aI.readyState)){setTimeout(arguments.callee,0);return;}aT();})();}aB(aT);}}();function aT(){if(ah){return;}try{var d=aI.getElementsByTagName("body")[0].appendChild(ap("span"));d.parentNode.removeChild(d);}catch(a){return;}ah=true;var b=ac.length;for(var c=0;c<b;c++){ac[c]();}}function ai(a){if(ah){a();}else{ac[ac.length]=a;}}function aB(b){if(typeof am.addEventListener!=aq){am.addEventListener("load",b,false);}else{if(typeof aI.addEventListener!=aq){aI.addEventListener("load",b,false);}else{if(typeof am.attachEvent!=aq){aH(am,"onload",b);}else{if(typeof am.onload=="function"){var a=am.onload;am.onload=function(){a();b();};}else{am.onload=b;}}}}}function aG(){if(ab){ad();}else{af();}}function ad(){var b=aI.getElementsByTagName("body")[0];var a=ap(aA);a.setAttribute("type",az);var d=b.appendChild(a);if(d){var c=0;(function(){if(typeof d.GetVariable!=aq){var e=d.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");ak.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)];}}else{if(c<10){c++;setTimeout(arguments.callee,10);return;}}b.removeChild(a);d=null;af();})();}else{af();}}function af(){var f=aN.length;if(f>0){for(var c=0;c<f;c++){var k=aN[c].id;var g=aN[c].callbackFn;var d={success:false,id:k};if(ak.pv[0]>0){var i=aQ(k);if(i){if(at(aN[c].swfVersion)&&!(ak.wk&&ak.wk<312)){aF(k,true);if(g){d.success=true;d.ref=ax(k);g(d);}}else{if(aN[c].expressInstall&&an()){var b={};b.data=aN[c].expressInstall;b.width=i.getAttribute("width")||"0";b.height=i.getAttribute("height")||"0";if(i.getAttribute("class")){b.styleclass=i.getAttribute("class");}if(i.getAttribute("align")){b.align=i.getAttribute("align");}var h={};var j=i.getElementsByTagName("param");var a=j.length;for(var e=0;e<a;e++){if(j[e].getAttribute("name").toLowerCase()!="movie"){h[j[e].getAttribute("name")]=j[e].getAttribute("value");}}X(b,h,k,g);}else{ay(i);if(g){g(d);}}}}}else{aF(k,true);if(g){var l=ax(k);if(l&&typeof l.SetVariable!=aq){d.success=true;d.ref=l;}g(d);}}}}}function ax(a){var b=null;var c=aQ(a);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=aq){b=c;}else{var d=c.getElementsByTagName(aA)[0];if(d){b=d;}}}return b;}function an(){return !aO&&at("6.0.65")&&(ak.win||ak.mac)&&!(ak.wk&&ak.wk<312);}function X(b,d,f,h){aO=true;ar=h||null;ao={success:false,id:f};var e=aQ(f);if(e){if(e.nodeName=="OBJECT"){aK=aU(e);Y=null;}else{aK=e;Y=f;}b.id=Z;if(typeof b.width==aq||(!/%$/.test(b.width)&&parseInt(b.width,10)<310)){b.width="310";}if(typeof b.height==aq||(!/%$/.test(b.height)&&parseInt(b.height,10)<137)){b.height="137";}aI.title=aI.title.slice(0,47)+" - Flash Player Installation";var c=ak.ie&&ak.win?"ActiveX":"PlugIn",a="MMredirectURL="+am.location.toString().replace(/&/g,"%26")+"&MMplayerType="+c+"&MMdoctitle="+aI.title;if(typeof d.flashvars!=aq){d.flashvars+="&"+a;}else{d.flashvars=a;}if(ak.ie&&ak.win&&e.readyState!=4){var g=ap("div");f+="SWFObjectNew";g.setAttribute("id",f);e.parentNode.insertBefore(g,e);e.style.display="none";(function(){if(e.readyState==4){e.parentNode.removeChild(e);}else{setTimeout(arguments.callee,10);}})();}aD(b,d,f);}}function ay(b){if(ak.ie&&ak.win&&b.readyState!=4){var a=ap("div");b.parentNode.insertBefore(a,b);a.parentNode.replaceChild(aU(b),a);b.style.display="none";(function(){if(b.readyState==4){b.parentNode.removeChild(b);}else{setTimeout(arguments.callee,10);}})();}else{b.parentNode.replaceChild(aU(b),b);}}function aU(f){var a=ap("div");if(ak.win&&ak.ie){a.innerHTML=f.innerHTML;}else{var c=f.getElementsByTagName(aA)[0];if(c){var e=c.childNodes;if(e){var b=e.length;for(var d=0;d<b;d++){if(!(e[d].nodeType==1&&e[d].nodeName=="PARAM")&&!(e[d].nodeType==8)){a.appendChild(e[d].cloneNode(true));}}}}}return a;}function aD(b,f,k){var j,d=aQ(k);if(ak.wk&&ak.wk<312){return j;}if(d){if(typeof b.id==aq){b.id=k;}if(ak.ie&&ak.win){var h="";for(var i in b){if(b[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){f.movie=b[i];}else{if(i.toLowerCase()=="styleclass"){h+=' class="'+b[i]+'"';}else{if(i.toLowerCase()!="classid"){h+=" "+i+'="'+b[i]+'"';}}}}}var c="";for(var e in f){if(f[e]!=Object.prototype[e]){c+='<param name="'+e+'" value="'+f[e]+'" />';}}d.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+h+">"+c+"</object>";al[al.length]=b.id;j=aQ(b.id);}else{var l=ap(aA);l.setAttribute("type",az);for(var a in b){if(b[a]!=Object.prototype[a]){if(a.toLowerCase()=="styleclass"){l.setAttribute("class",b[a]);}else{if(a.toLowerCase()!="classid"){l.setAttribute(a,b[a]);}}}}for(var g in f){if(f[g]!=Object.prototype[g]&&g.toLowerCase()!="movie"){aS(l,g,f[g]);}}d.parentNode.replaceChild(l,d);j=l;}}return j;}function aS(d,b,c){var a=ap("param");a.setAttribute("name",b);a.setAttribute("value",c);d.appendChild(a);}function aw(b){var a=aQ(b);if(a&&a.nodeName=="OBJECT"){if(ak.ie&&ak.win){a.style.display="none";(function(){if(a.readyState==4){aP(b);}else{setTimeout(arguments.callee,10);}})();}else{a.parentNode.removeChild(a);}}}function aP(c){var b=aQ(c);if(b){for(var a in b){if(typeof b[a]=="function"){b[a]=null;}}b.parentNode.removeChild(b);}}function aQ(c){var a=null;try{a=aI.getElementById(c);}catch(b){}return a;}function ap(a){return aI.createElement(a);}function aH(c,a,b){c.attachEvent(a,b);ag[ag.length]=[c,a,b];}function at(c){var b=ak.pv,a=c.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return(b[0]>a[0]||(b[0]==a[0]&&b[1]>a[1])||(b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]))?true:false;}function aE(f,c,e,g){if(ak.ie&&ak.mac){return;}var a=aI.getElementsByTagName("head")[0];if(!a){return;}var b=(e&&typeof e=="string")?e:"screen";if(g){aM=null;au=null;}if(!aM||au!=b){var d=ap("style");d.setAttribute("type","text/css");d.setAttribute("media",b);aM=a.appendChild(d);if(ak.ie&&ak.win&&typeof aI.styleSheets!=aq&&aI.styleSheets.length>0){aM=aI.styleSheets[aI.styleSheets.length-1];}au=b;}if(ak.ie&&ak.win){if(aM&&typeof aM.addRule==aA){aM.addRule(f,c);}}else{if(aM&&typeof aI.createTextNode!=aq){aM.appendChild(aI.createTextNode(f+" {"+c+"}"));}}}function aF(c,a){if(!aL){return;}var b=a?"visible":"hidden";if(ah&&aQ(c)){aQ(c).style.visibility=b;}else{aE("#"+c,"visibility:"+b);}}function aj(b){var c=/[\\\"<>\.;]/;var a=c.exec(b)!=null;return a&&typeof encodeURIComponent!=aq?encodeURIComponent(b):b;}var aR=function(){if(ak.ie&&ak.win){window.attachEvent("onunload",function(){var e=ag.length;for(var f=0;f<e;f++){ag[f][0].detachEvent(ag[f][1],ag[f][2]);}var d=al.length;for(var a=0;a<d;a++){aw(al[a]);}for(var c in ak){ak[c]=null;}ak=null;for(var b in swfobject){swfobject[b]=null;}swfobject=null;});}}();return{registerObject:function(e,b,a,d){if(ak.w3&&e&&b){var c={};c.id=e;c.swfVersion=b;c.expressInstall=a;c.callbackFn=d;aN[aN.length]=c;aF(e,false);}else{if(d){d({success:false,id:e});}}},getObjectById:function(a){if(ak.w3){return ax(a);}},embedSWF:function(f,g,h,e,j,c,k,d,b,a){var i={success:false,id:g};if(ak.w3&&!(ak.wk&&ak.wk<312)&&f&&g&&h&&e&&j){aF(g,false);ai(function(){h+="";e+="";var m={};if(b&&typeof b===aA){for(var q in b){m[q]=b[q];}}m.data=f;m.width=h;m.height=e;var p={};if(d&&typeof d===aA){for(var l in d){p[l]=d[l];}}if(k&&typeof k===aA){for(var n in k){if(typeof p.flashvars!=aq){p.flashvars+="&"+n+"="+k[n];}else{p.flashvars=n+"="+k[n];}}}if(at(j)){var o=aD(m,p,g);if(m.id==g){aF(g,true);}i.success=true;i.ref=o;}else{if(c&&an()){m.data=c;X(m,p,g,a);return;}else{aF(g,true);}}if(a){a(i);}});}else{if(a){a(i);}}},switchOffAutoHideShow:function(){aL=false;},ua:ak,getFlashPlayerVersion:function(){return{major:ak.pv[0],minor:ak.pv[1],release:ak.pv[2]};},hasFlashPlayerVersion:at,createSWF:function(c,b,a){if(ak.w3){return aD(c,b,a);}else{return undefined;}},showExpressInstall:function(d,a,b,c){if(ak.w3&&an()){X(d,a,b,c);}},removeSWF:function(a){if(ak.w3){aw(a);}},createCSS:function(a,d,c,b){if(ak.w3){aE(a,d,c,b);}},addDomLoadEvent:ai,addLoadEvent:aB,getQueryParamValue:function(a){var d=aI.location.search||aI.location.hash;if(d){if(/\?/.test(d)){d=d.split("?")[1];}if(a==null){return aj(d);}var c=d.split("&");for(var b=0;b<c.length;b++){if(c[b].substring(0,c[b].indexOf("="))==a){return aj(c[b].substring((c[b].indexOf("=")+1)));}}}return"";},expressInstallCallback:function(){if(aO){var a=aQ(Z);if(a&&aK){a.parentNode.replaceChild(aK,a);if(Y){aF(Y,true);if(ak.ie&&ak.win){aK.style.display="block";}}if(ar){ar(ao);}}aO=false;}}};}();(function(){var S=this,ac,E=S.jQuery,G=S.$,V=S.jQuery=S.$=function(a,b){return new V.fn.init(a,b);},ag=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ab=/^.[^:#\[\.,]*$/;V.fn=V.prototype={init:function(d,b){d=d||document;if(d.nodeType){this[0]=d;this.length=1;this.context=d;return this;}if(typeof d==="string"){var a=ag.exec(d);if(a&&(a[1]||!b)){if(a[1]){d=V.clean([a[1]],b);}else{var c=document.getElementById(a[3]);if(c&&c.id!=a[3]){return V().find(d);}var e=V(c||[]);e.context=document;e.selector=d;return e;}}else{return V(b).find(d);}}else{if(V.isFunction(d)){return V(document).ready(d);}}if(d.selector&&d.context){this.selector=d.selector;this.context=d.context;}return this.setArray(V.isArray(d)?d:V.makeArray(d));},selector:"",jquery:"1.3.2",size:function(){return this.length;},get:function(a){return a===ac?Array.prototype.slice.call(this):this[a];},pushStack:function(d,b,c){var a=V(d);a.prevObject=this;a.context=this.context;if(b==="find"){a.selector=this.selector+(this.selector?" ":"")+c;}else{if(b){a.selector=this.selector+"."+b+"("+c+")";}}return a;},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this;},each:function(b,a){return V.each(this,b,a);},index:function(a){return V.inArray(a&&a.jquery?a[0]:a,this);},attr:function(d,b,a){var c=d;if(typeof d==="string"){if(b===ac){return this[0]&&V[a||"attr"](this[0],d);}else{c={};c[d]=b;}}return this.each(function(e){for(d in c){V.attr(a?this.style:this,d,V.prop(this,c[d],a,e,d));}});},css:function(a,b){if((a=="width"||a=="height")&&parseFloat(b)<0){b=ac;}return this.attr(a,b,"curCSS");},text:function(b){if(typeof b!=="object"&&b!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(b));}var a="";V.each(b||this,function(){V.each(this.childNodes,function(){if(this.nodeType!=8){a+=this.nodeType!=1?this.nodeValue:V.fn.text([this]);}});});return a;},wrapAll:function(a){if(this[0]){var b=V(a,this[0].ownerDocument).clone();if(this[0].parentNode){b.insertBefore(this[0]);}b.map(function(){var c=this;while(c.firstChild){c=c.firstChild;}return c;}).append(this);}return this;},wrapInner:function(a){return this.each(function(){V(this).contents().wrapAll(a);});},wrap:function(a){return this.each(function(){V(this).wrapAll(a);});},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.appendChild(a);}});},prepend:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.insertBefore(a,this.firstChild);}});},before:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this);});},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling);});},end:function(){return this.prevObject||V([]);},push:[].push,sort:[].sort,splice:[].splice,find:function(a){if(this.length===1){var b=this.pushStack([],"find",a);b.length=0;V.find(a,this[0],b);return b;}else{return this.pushStack(V.unique(V.map(this,function(c){return V.find(a,c);})),"find",a);}},clone:function(a){var c=this.map(function(){if(!V.support.noCloneEvent&&!V.isXMLDoc(this)){var e=this.outerHTML;if(!e){var f=this.ownerDocument.createElement("div");f.appendChild(this.cloneNode(true));e=f.innerHTML;}return V.clean([e.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0];}else{return this.cloneNode(true);}});if(a===true){var b=this.find("*").andSelf(),d=0;c.find("*").andSelf().each(function(){if(this.nodeName!==b[d].nodeName){return;}var e=V.data(b[d],"events");for(var g in e){for(var f in e[g]){V.event.add(this,g,e[g][f],e[g][f].data);}}d++;});}return c;},filter:function(a){return this.pushStack(V.isFunction(a)&&V.grep(this,function(b,c){return a.call(b,c);})||V.multiFilter(a,V.grep(this,function(b){return b.nodeType===1;})),"filter",a);},closest:function(b){var a=V.expr.match.POS.test(b)?V(b):null,c=0;return this.map(function(){var d=this;while(d&&d.ownerDocument){if(a?a.index(d)>-1:V(d).is(b)){V.data(d,"closest",c);return d;}d=d.parentNode;c++;}});},not:function(a){if(typeof a==="string"){if(ab.test(a)){return this.pushStack(V.multiFilter(a,this,true),"not",a);}else{a=V.multiFilter(a,this);}}var b=a.length&&a[a.length-1]!==ac&&!a.nodeType;return this.filter(function(){return b?V.inArray(this,a)<0:this!=a;});},add:function(a){return this.pushStack(V.unique(V.merge(this.get(),typeof a==="string"?V(a):V.makeArray(a))));},is:function(a){return !!a&&V.multiFilter(a,this).length>0;},hasClass:function(a){return !!a&&this.is("."+a);},val:function(g){if(g===ac){var a=this[0];if(a){if(V.nodeName(a,"option")){return(a.attributes.value||{}).specified?a.value:a.text;}if(V.nodeName(a,"select")){var e=a.selectedIndex,h=[],i=a.options,d=a.type=="select-one";if(e<0){return null;}for(var b=d?e:0,f=d?e+1:i.length;b<f;b++){var c=i[b];if(c.selected){g=V(c).val();if(d){return g;}h.push(g);}}return h;}return(a.value||"").replace(/\r/g,"");}return ac;}if(typeof g==="number"){g+="";}return this.each(function(){if(this.nodeType!=1){return;}if(V.isArray(g)&&/radio|checkbox/.test(this.type)){this.checked=(V.inArray(this.value,g)>=0||V.inArray(this.name,g)>=0);}else{if(V.nodeName(this,"select")){var j=V.makeArray(g);V("option",this).each(function(){this.selected=(V.inArray(this.value,j)>=0||V.inArray(this.text,j)>=0);});if(!j.length){this.selectedIndex=-1;}}else{this.value=g;}}});},html:function(a){return a===ac?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(a);},replaceWith:function(a){return this.after(a).remove();},eq:function(a){return this.slice(a,+a+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","));},map:function(a){return this.pushStack(V.map(this,function(b,c){return a.call(b,c,b);}));},andSelf:function(){return this.add(this.prevObject);},domManip:function(f,i,h){if(this[0]){var e=(this[0].ownerDocument||this[0]).createDocumentFragment(),b=V.clean(f,(this[0].ownerDocument||this[0]),e),d=e.firstChild;if(d){for(var c=0,a=this.length;c<a;c++){h.call(g(this[c],d),this.length>1||c>0?e.cloneNode(true):e);}}if(b){V.each(b,F);}}return this;function g(j,k){return i&&V.nodeName(j,"table")&&V.nodeName(k,"tr")?(j.getElementsByTagName("tbody")[0]||j.appendChild(j.ownerDocument.createElement("tbody"))):j;}}};V.fn.init.prototype=V.fn;function F(a,b){if(b.src){V.ajax({url:b.src,async:false,dataType:"script"});}else{V.globalEval(b.text||b.textContent||b.innerHTML||"");}if(b.parentNode){b.parentNode.removeChild(b);}}function aa(){return +new Date;}V.extend=V.fn.extend=function(){var f=arguments[0]||{},d=1,e=arguments.length,a=false,c;if(typeof f==="boolean"){a=f;f=arguments[1]||{};d=2;}if(typeof f!=="object"&&!V.isFunction(f)){f={};}if(e==d){f=this;--d;}for(;d<e;d++){if((c=arguments[d])!=null){for(var b in c){var g=f[b],h=c[b];if(f===h){continue;}if(a&&h&&typeof h==="object"&&!h.nodeType){f[b]=V.extend(a,g||(h.length!=null?[]:{}),h);}else{if(h!==ac){f[b]=h;}}}}}return f;};var X=/z-?index|font-?weight|opacity|zoom|line-?height/i,H=document.defaultView||{},J=Object.prototype.toString;V.extend({noConflict:function(a){S.$=G;if(a){S.jQuery=E;}return V;},isFunction:function(a){return J.call(a)==="[object Function]";},isArray:function(a){return J.call(a)==="[object Array]";},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&V.isXMLDoc(a.ownerDocument);},globalEval:function(a){if(a&&/\S/.test(a)){var c=document.getElementsByTagName("head")[0]||document.documentElement,b=document.createElement("script");b.type="text/javascript";if(V.support.scriptEval){b.appendChild(document.createTextNode(a));}else{b.text=a;}c.insertBefore(b,c.firstChild);c.removeChild(b);}},nodeName:function(b,a){return b.nodeName&&b.nodeName.toUpperCase()==a.toUpperCase();},each:function(a,g,c){var f,d=0,e=a.length;if(c){if(e===ac){for(f in a){if(g.apply(a[f],c)===false){break;}}}else{for(;d<e;){if(g.apply(a[d++],c)===false){break;}}}}else{if(e===ac){for(f in a){if(g.call(a[f],f,a[f])===false){break;}}}else{for(var b=a[0];d<e&&g.call(b,d,b)!==false;b=a[++d]){}}}return a;},prop:function(b,c,a,e,d){if(V.isFunction(c)){c=c.call(b,e);}return typeof c==="number"&&a=="curCSS"&&!X.test(d)?c+"px":c;},className:{add:function(a,b){V.each((b||"").split(/\s+/),function(c,d){if(a.nodeType==1&&!V.className.has(a.className,d)){a.className+=(a.className?" ":"")+d;}});},remove:function(a,b){if(a.nodeType==1){a.className=b!==ac?V.grep(a.className.split(/\s+/),function(c){return !V.className.has(b,c);}).join(" "):"";}},has:function(b,a){return b&&V.inArray(a,(b.className||b).toString().split(/\s+/))>-1;}},swap:function(b,a,c){var d={};for(var e in a){d[e]=b.style[e];b.style[e]=a[e];}c.call(b);for(var e in a){b.style[e]=d[e];}},css:function(d,b,f,a){if(b=="width"||b=="height"){var h,c={position:"absolute",visibility:"hidden",display:"block"},g=b=="width"?["Left","Right"]:["Top","Bottom"];function e(){h=b=="width"?d.offsetWidth:d.offsetHeight;if(a==="border"){return;}V.each(g,function(){if(!a){h-=parseFloat(V.curCSS(d,"padding"+this,true))||0;}if(a==="margin"){h+=parseFloat(V.curCSS(d,"margin"+this,true))||0;}else{h-=parseFloat(V.curCSS(d,"border"+this+"Width",true))||0;}});}if(d.offsetWidth!==0){e();}else{V.swap(d,c,e);}return Math.max(0,Math.round(h));}return V.curCSS(d,b,f);},curCSS:function(e,b,c){var h,a=e.style;if(b=="opacity"&&!V.support.opacity){h=V.attr(a,"opacity");return h==""?"1":h;}if(b.match(/float/i)){b=N;}if(!c&&a&&a[b]){h=a[b];}else{if(H.getComputedStyle){if(b.match(/float/i)){b="float";}b=b.replace(/([A-Z])/g,"-$1").toLowerCase();var i=H.getComputedStyle(e,null);if(i){h=i.getPropertyValue(b);}if(b=="opacity"&&h==""){h="1";}}else{if(e.currentStyle){var f=b.replace(/\-(\w)/g,function(j,k){return k.toUpperCase();});h=e.currentStyle[b]||e.currentStyle[f];if(!/^\d+(px)?$/i.test(h)&&/^\d/.test(h)){var d=a.left,g=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left;a.left=h||0;h=a.pixelLeft+"px";a.left=d;e.runtimeStyle.left=g;}}}}return h;},clean:function(b,g,e){g=g||document;if(typeof g.createElement==="undefined"){g=g.ownerDocument||g[0]&&g[0].ownerDocument||document;}if(!e&&b.length===1&&typeof b[0]==="string"){var d=/^<(\w+)\s*\/?>$/.exec(b[0]);if(d){return[g.createElement(d[1])];}}var c=[],a=[],h=g.createElement("div");V.each(b,function(o,k){if(typeof k==="number"){k+="";}if(!k){return;}if(typeof k==="string"){k=k.replace(/(<(\w+)[^>]*?)\/>/g,function(q,r,p){return p.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?q:r+"></"+p+">";});var l=k.replace(/^\s+/,"").substring(0,10).toLowerCase();var i=!l.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!l.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||l.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!l.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!l.indexOf("<td")||!l.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!l.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!V.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];h.innerHTML=i[1]+k+i[2];while(i[0]--){h=h.lastChild;}if(!V.support.tbody){var j=/<tbody/i.test(k),n=!l.indexOf("<table")&&!j?h.firstChild&&h.firstChild.childNodes:i[1]=="<table>"&&!j?h.childNodes:[];for(var m=n.length-1;m>=0;--m){if(V.nodeName(n[m],"tbody")&&!n[m].childNodes.length){n[m].parentNode.removeChild(n[m]);}}}if(!V.support.leadingWhitespace&&/^\s/.test(k)){h.insertBefore(g.createTextNode(k.match(/^\s*/)[0]),h.firstChild);}k=V.makeArray(h.childNodes);}if(k.nodeType){c.push(k);}else{c=V.merge(c,k);}});if(e){for(var f=0;c[f];f++){if(V.nodeName(c[f],"script")&&(!c[f].type||c[f].type.toLowerCase()==="text/javascript")){a.push(c[f].parentNode?c[f].parentNode.removeChild(c[f]):c[f]);}else{if(c[f].nodeType===1){c.splice.apply(c,[f+1,0].concat(V.makeArray(c[f].getElementsByTagName("script"))));}e.appendChild(c[f]);}}return a;}return c;},attr:function(f,c,g){if(!f||f.nodeType==3||f.nodeType==8){return ac;}var d=!V.isXMLDoc(f),h=g!==ac;c=d&&V.props[c]||c;if(f.tagName){var b=/href|src|style/.test(c);if(c=="selected"&&f.parentNode){f.parentNode.selectedIndex;}if(c in f&&d&&!b){if(h){if(c=="type"&&V.nodeName(f,"input")&&f.parentNode){throw"type property can't be changed";}f[c]=g;}if(V.nodeName(f,"form")&&f.getAttributeNode(c)){return f.getAttributeNode(c).nodeValue;}if(c=="tabIndex"){var e=f.getAttributeNode("tabIndex");return e&&e.specified?e.value:f.nodeName.match(/(button|input|object|select|textarea)/i)?0:f.nodeName.match(/^(a|area)$/i)&&f.href?0:ac;}return f[c];}if(!V.support.style&&d&&c=="style"){return V.attr(f.style,"cssText",g);}if(h){f.setAttribute(c,""+g);}var a=!V.support.hrefNormalized&&d&&b?f.getAttribute(c,2):f.getAttribute(c);return a===null?ac:a;}if(!V.support.opacity&&c=="opacity"){if(h){f.zoom=1;f.filter=(f.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(g)+""=="NaN"?"":"alpha(opacity="+g*100+")");}return f.filter&&f.filter.indexOf("opacity=")>=0?(parseFloat(f.filter.match(/opacity=([^)]*)/)[1])/100)+"":"";}c=c.replace(/-([a-z])/ig,function(i,j){return j.toUpperCase();});if(h){f[c]=g;}return f[c];},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"");},makeArray:function(a){var b=[];if(a!=null){var c=a.length;if(c==null||typeof a==="string"||V.isFunction(a)||a.setInterval){b[0]=a;}else{while(c){b[--c]=a[c];}}}return b;},inArray:function(a,b){for(var c=0,d=b.length;c<d;c++){if(b[c]===a){return c;}}return -1;},merge:function(b,d){var e=0,a,c=b.length;if(!V.support.getAll){while((a=d[e++])!=null){if(a.nodeType!=8){b[c++]=a;}}}else{while((a=d[e++])!=null){b[c++]=a;}}return b;},unique:function(g){var c=[],f={};try{for(var a=0,d=g.length;a<d;a++){var b=V.data(g[a]);if(!f[b]){f[b]=true;c.push(g[a]);}}}catch(e){c=g;}return c;},grep:function(f,e,b){var a=[];for(var c=0,d=f.length;c<d;c++){if(!b!=!e(f[c],c)){a.push(f[c]);}}return a;},map:function(e,b){var f=[];for(var a=0,c=e.length;a<c;a++){var d=b(e[a],a);if(d!=null){f[f.length]=d;}}return f.concat.apply([],f);}});var af=navigator.userAgent.toLowerCase();V.browser={version:(af.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(af),opera:/opera/.test(af),msie:/msie/.test(af)&&!/opera/.test(af),mozilla:/mozilla/.test(af)&&!/(compatible|webkit)/.test(af)};V.each({parent:function(a){return a.parentNode;},parents:function(a){return V.dir(a,"parentNode");},next:function(a){return V.nth(a,2,"nextSibling");},prev:function(a){return V.nth(a,2,"previousSibling");},nextAll:function(a){return V.dir(a,"nextSibling");},prevAll:function(a){return V.dir(a,"previousSibling");},siblings:function(a){return V.sibling(a.parentNode.firstChild,a);},children:function(a){return V.sibling(a.firstChild);},contents:function(a){return V.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:V.makeArray(a.childNodes);}},function(a,b){V.fn[a]=function(c){var d=V.map(this,b);if(c&&typeof c=="string"){d=V.multiFilter(c,d);}return this.pushStack(V.unique(d),a,c);};});V.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){V.fn[a]=function(c){var g=[],d=V(c);for(var h=0,e=d.length;h<e;h++){var f=(h>0?this.clone(true):this).get();V.fn[b].apply(V(d[h]),f);g=g.concat(f);}return this.pushStack(g,a,c);};});V.each({removeAttr:function(a){V.attr(this,a,"");if(this.nodeType==1){this.removeAttribute(a);}},addClass:function(a){V.className.add(this,a);},removeClass:function(a){V.className.remove(this,a);},toggleClass:function(b,a){if(typeof a!=="boolean"){a=!V.className.has(this,b);}V.className[a?"add":"remove"](this,b);},remove:function(a){if(!a||V.filter(a,[this]).length){V("*",this).add([this]).each(function(){V.event.remove(this);V.removeData(this);});if(this.parentNode){this.parentNode.removeChild(this);}}},empty:function(){V(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild);}}},function(a,b){V.fn[a]=function(){return this.each(b,arguments);};});function Q(a,b){return a[0]&&parseInt(V.curCSS(a[0],b,true),10)||0;}var O="jQuery"+aa(),M=0,ad={};V.extend({cache:{},data:function(d,c,a){d=d==S?ad:d;var b=d[O];if(!b){b=d[O]=++M;}if(c&&!V.cache[b]){V.cache[b]={};}if(a!==ac){V.cache[b][c]=a;}return c?V.cache[b][c]:b;},removeData:function(d,c){d=d==S?ad:d;var b=d[O];if(c){if(V.cache[b]){delete V.cache[b][c];c="";for(c in V.cache[b]){break;}if(!c){V.removeData(d);}}}else{try{delete d[O];}catch(a){if(d.removeAttribute){d.removeAttribute(O);}}delete V.cache[b];}},queue:function(d,c,b){if(d){c=(c||"fx")+"queue";var a=V.data(d,c);if(!a||V.isArray(b)){a=V.data(d,c,V.makeArray(b));}else{if(b){a.push(b);}}}return a;},dequeue:function(b,a){var c=V.queue(b,a),d=c.shift();if(!a||a==="fx"){d=c[0];}if(d!==ac){d.call(b);}}});V.fn.extend({data:function(c,a){var b=c.split(".");b[1]=b[1]?"."+b[1]:"";if(a===ac){var d=this.triggerHandler("getData"+b[1]+"!",[b[0]]);if(d===ac&&this.length){d=V.data(this[0],c);}return d===ac&&b[1]?this.data(b[0]):d;}else{return this.trigger("setData"+b[1]+"!",[b[0],a]).each(function(){V.data(this,c,a);});}},removeData:function(a){return this.each(function(){V.removeData(this,a);});},queue:function(a,b){if(typeof a!=="string"){b=a;a="fx";}if(b===ac){return V.queue(this[0],a);}return this.each(function(){var c=V.queue(this,a,b);if(a=="fx"&&c.length==1){c[0].call(this);}});},dequeue:function(a){return this.each(function(){V.dequeue(this,a);});}});(function(){var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,k=0,g=Object.prototype.toString;var b=function(D,u,y,p){y=y||[];u=u||document;if(u.nodeType!==1&&u.nodeType!==9){return[];}if(!D||typeof D!=="string"){return y;}var ai=[],w,r,q,t,z,v,C=true;e.lastIndex=0;while((w=e.exec(D))!==null){ai.push(w[1]);if(w[2]){v=RegExp.rightContext;break;}}if(ai.length>1&&l.exec(D)){if(ai.length===2&&h.relative[ai[0]]){r=i(ai[0]+ai[1],u);}else{r=h.relative[ai[0]]?[u]:b(ai.shift(),u);while(ai.length){D=ai.shift();if(h.relative[D]){D+=ai.shift();}r=i(D,r);}}}else{var B=p?{expr:ai.pop(),set:a(p)}:b.find(ai.pop(),ai.length===1&&u.parentNode?u.parentNode:u,d(u));r=b.filter(B.expr,B.set);if(ai.length>0){q=a(r);}else{C=false;}while(ai.length){var A=ai.pop(),x=A;if(!h.relative[A]){A="";}else{x=ai.pop();}if(x==null){x=u;}h.relative[A](q,x,d(u));}}if(!q){q=r;}if(!q){throw"Syntax error, unrecognized expression: "+(A||D);}if(g.call(q)==="[object Array]"){if(!C){y.push.apply(y,q);}else{if(u.nodeType===1){for(var s=0;q[s]!=null;s++){if(q[s]&&(q[s]===true||q[s].nodeType===1&&j(u,q[s]))){y.push(r[s]);}}}else{for(var s=0;q[s]!=null;s++){if(q[s]&&q[s].nodeType===1){y.push(r[s]);}}}}}else{a(q,y);}if(v){b(v,u,y,p);if(c){hasDuplicate=false;y.sort(c);if(hasDuplicate){for(var s=1;s<y.length;s++){if(y[s]===y[s-1]){y.splice(s--,1);}}}}}return y;};b.matches=function(p,q){return b(p,null,null,q);};b.find=function(p,q,u){var x,v;if(!p){return[];}for(var t=0,s=h.order.length;t<s;t++){var w=h.order[t],v;if((v=h.match[w].exec(p))){var r=RegExp.leftContext;if(r.substr(r.length-1)!=="\\"){v[1]=(v[1]||"").replace(/\\/g,"");x=h.find[w](v,q,u);if(x!=null){p=p.replace(h.match[w],"");break;}}}}if(!x){x=q.getElementsByTagName("*");}return{set:x,expr:p};};b.filter=function(u,p,y,x){var w=u,q=[],t=p,D,B,ai=p&&p[0]&&d(p[0]);while(u&&p.length){for(var z in h.filter){if((D=h.match[z].exec(u))!=null){var v=h.filter[z],A,s;B=false;if(t==q){q=[];}if(h.preFilter[z]){D=h.preFilter[z](D,t,y,q,x,ai);if(!D){B=A=true;}else{if(D===true){continue;}}}if(D){for(var C=0;(s=t[C])!=null;C++){if(s){A=v(s,D,C,t);var r=x^!!A;if(y&&A!=null){if(r){B=true;}else{t[C]=false;}}else{if(r){q.push(s);B=true;}}}}}if(A!==ac){if(!y){t=q;}u=u.replace(h.match[z],"");if(!B){return[];}break;}}}if(u==w){if(B==null){throw"Syntax error, unrecognized expression: "+u;}else{break;}}w=u;}return t;};var h=b.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(p){return p.getAttribute("href");}},relative:{"+":function(p,q,x){var v=typeof q==="string",u=v&&!/\W/.test(q),w=v&&!u;if(u&&!x){q=q.toUpperCase();}for(var t=0,s=p.length,r;t<s;t++){if((r=p[t])){while((r=r.previousSibling)&&r.nodeType!==1){}p[t]=w||r&&r.nodeName===q?r||false:r===q;}}if(w){b.filter(q,p,true);}},">":function(w,r,p){var u=typeof r==="string";if(u&&!/\W/.test(r)){r=p?r:r.toUpperCase();for(var s=0,q=w.length;s<q;s++){var v=w[s];if(v){var t=v.parentNode;w[s]=t.nodeName===r?t:false;}}}else{for(var s=0,q=w.length;s<q;s++){var v=w[s];if(v){w[s]=u?v.parentNode:v.parentNode===r;}}if(u){b.filter(r,w,true);}}},"":function(t,r,q){var s=k++,u=f;if(!r.match(/\W/)){var p=r=q?r:r.toUpperCase();u=o;}u("parentNode",r,s,t,p,q);},"~":function(t,r,q){var s=k++,u=f;if(typeof r==="string"&&!r.match(/\W/)){var p=r=q?r:r.toUpperCase();u=o;}u("previousSibling",r,s,t,p,q);}},find:{ID:function(q,r,s){if(typeof r.getElementById!=="undefined"&&!s){var p=r.getElementById(q[1]);return p?[p]:[];}},NAME:function(s,q,r){if(typeof q.getElementsByName!=="undefined"){var v=[],p=q.getElementsByName(s[1]);for(var t=0,u=p.length;t<u;t++){if(p[t].getAttribute("name")===s[1]){v.push(p[t]);}}return v.length===0?null:v;}},TAG:function(p,q){return q.getElementsByTagName(p[1]);}},preFilter:{CLASS:function(t,r,s,q,w,p){t=" "+t[1].replace(/\\/g,"")+" ";if(p){return t;}for(var u=0,v;(v=r[u])!=null;u++){if(v){if(w^(v.className&&(" "+v.className+" ").indexOf(t)>=0)){if(!s){q.push(v);}}else{if(s){r[u]=false;}}}}return false;},ID:function(p){return p[1].replace(/\\/g,"");},TAG:function(q,p){for(var r=0;p[r]===false;r++){}return p[r]&&d(p[r])?q[1]:q[1].toUpperCase();},CHILD:function(p){if(p[1]=="nth"){var q=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(p[2]=="even"&&"2n"||p[2]=="odd"&&"2n+1"||!/\D/.test(p[2])&&"0n+"+p[2]||p[2]);p[2]=(q[1]+(q[2]||1))-0;p[3]=q[3]-0;}p[0]=k++;return p;},ATTR:function(p,r,s,q,u,v){var t=p[1].replace(/\\/g,"");if(!v&&h.attrMap[t]){p[1]=h.attrMap[t];}if(p[2]==="~="){p[4]=" "+p[4]+" ";}return p;},PSEUDO:function(p,r,s,q,u){if(p[1]==="not"){if(p[3].match(e).length>1||/^\w/.test(p[3])){p[3]=b(p[3],null,null,r);}else{var t=b.filter(p[3],r,s,true^u);if(!s){q.push.apply(q,t);}return false;}}else{if(h.match.POS.test(p[0])||h.match.CHILD.test(p[0])){return true;}}return p;},POS:function(p){p.unshift(true);return p;}},filters:{enabled:function(p){return p.disabled===false&&p.type!=="hidden";},disabled:function(p){return p.disabled===true;},checked:function(p){return p.checked===true;},selected:function(p){p.parentNode.selectedIndex;return p.selected===true;},parent:function(p){return !!p.firstChild;},empty:function(p){return !p.firstChild;},has:function(r,q,p){return !!b(p[3],r).length;},header:function(p){return/h\d/i.test(p.nodeName);},text:function(p){return"text"===p.type;},radio:function(p){return"radio"===p.type;},checkbox:function(p){return"checkbox"===p.type;},file:function(p){return"file"===p.type;},password:function(p){return"password"===p.type;},submit:function(p){return"submit"===p.type;},image:function(p){return"image"===p.type;},reset:function(p){return"reset"===p.type;},button:function(p){return"button"===p.type||p.nodeName.toUpperCase()==="BUTTON";},input:function(p){return/input|select|textarea|button/i.test(p.nodeName);}},setFilters:{first:function(q,p){return p===0;},last:function(r,q,p,s){return q===s.length-1;},even:function(q,p){return p%2===0;},odd:function(q,p){return p%2===1;},lt:function(r,q,p){return q<p[3]-0;},gt:function(r,q,p){return q>p[3]-0;},nth:function(r,q,p){return p[3]-0==q;},eq:function(r,q,p){return p[3]-0==q;}},filter:{PSEUDO:function(w,s,t,p){var r=s[1],u=h.filters[r];if(u){return u(w,t,s,p);}else{if(r==="contains"){return(w.textContent||w.innerText||"").indexOf(s[3])>=0;}else{if(r==="not"){var v=s[3];for(var t=0,q=v.length;t<q;t++){if(v[t]===w){return false;}}return true;}}}},CHILD:function(r,u){var y=u[1],s=r;switch(y){case"only":case"first":while(s=s.previousSibling){if(s.nodeType===1){return false;}}if(y=="first"){return true;}s=r;case"last":while(s=s.nextSibling){if(s.nodeType===1){return false;}}return true;case"nth":var t=u[2],p=u[3];if(t==1&&p==0){return true;}var x=u[0],v=r.parentNode;if(v&&(v.sizcache!==x||!r.nodeIndex)){var w=0;for(s=v.firstChild;s;s=s.nextSibling){if(s.nodeType===1){s.nodeIndex=++w;}}v.sizcache=x;}var q=r.nodeIndex-p;if(t==0){return q==0;}else{return(q%t==0&&q/t>=0);}}},ID:function(q,p){return q.nodeType===1&&q.getAttribute("id")===p;},TAG:function(q,p){return(p==="*"&&q.nodeType===1)||q.nodeName===p;},CLASS:function(q,p){return(" "+(q.className||q.getAttribute("class"))+" ").indexOf(p)>-1;},ATTR:function(q,t){var s=t[1],u=h.attrHandle[s]?h.attrHandle[s](q):q[s]!=null?q[s]:q.getAttribute(s),r=u+"",p=t[2],v=t[4];return u==null?p==="!=":p==="="?r===v:p==="*="?r.indexOf(v)>=0:p==="~="?(" "+r+" ").indexOf(v)>=0:!v?r&&u!==false:p==="!="?r!=v:p==="^="?r.indexOf(v)===0:p==="$="?r.substr(r.length-v.length)===v:p==="|="?r===v||r.substr(0,v.length+1)===v+"-":false;},POS:function(p,r,s,q){var u=r[2],t=h.setFilters[u];if(t){return t(p,s,r,q);}}}};var l=h.match.POS;for(var n in h.match){h.match[n]=RegExp(h.match[n].source+/(?![^\[]*\])(?![^\(]*\))/.source);}var a=function(q,p){q=Array.prototype.slice.call(q);if(p){p.push.apply(p,q);return p;}return q;};try{Array.prototype.slice.call(document.documentElement.childNodes);}catch(m){a=function(p,t){var r=t||[];if(g.call(p)==="[object Array]"){Array.prototype.push.apply(r,p);}else{if(typeof p.length==="number"){for(var s=0,q=p.length;s<q;s++){r.push(p[s]);}}else{for(var s=0;p[s];s++){r.push(p[s]);}}}return r;};}var c;if(document.documentElement.compareDocumentPosition){c=function(q,p){var r=q.compareDocumentPosition(p)&4?-1:q===p?0:1;if(r===0){hasDuplicate=true;}return r;};}else{if("sourceIndex" in document.documentElement){c=function(q,p){var r=q.sourceIndex-p.sourceIndex;if(r===0){hasDuplicate=true;}return r;};}else{if(document.createRange){c=function(t,r){var s=t.ownerDocument.createRange(),q=r.ownerDocument.createRange();s.selectNode(t);s.collapse(true);q.selectNode(r);q.collapse(true);var p=s.compareBoundaryPoints(Range.START_TO_END,q);if(p===0){hasDuplicate=true;}return p;};}}}(function(){var q=document.createElement("form"),r="script"+(new Date).getTime();q.innerHTML="<input name='"+r+"'/>";var p=document.documentElement;p.insertBefore(q,p.firstChild);if(!!document.getElementById(r)){h.find.ID=function(s,t,u){if(typeof t.getElementById!=="undefined"&&!u){var v=t.getElementById(s[1]);return v?v.id===s[1]||typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id").nodeValue===s[1]?[v]:ac:[];}};h.filter.ID=function(t,u){var s=typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id");return t.nodeType===1&&s&&s.nodeValue===u;};}p.removeChild(q);})();(function(){var p=document.createElement("div");p.appendChild(document.createComment(""));if(p.getElementsByTagName("*").length>0){h.find.TAG=function(s,r){var q=r.getElementsByTagName(s[1]);if(s[1]==="*"){var u=[];for(var t=0;q[t];t++){if(q[t].nodeType===1){u.push(q[t]);}}q=u;}return q;};}p.innerHTML="<a href='#'></a>";if(p.firstChild&&typeof p.firstChild.getAttribute!=="undefined"&&p.firstChild.getAttribute("href")!=="#"){h.attrHandle.href=function(q){return q.getAttribute("href",2);};}})();if(document.querySelectorAll){(function(){var p=b,q=document.createElement("div");q.innerHTML="<p class='TEST'></p>";if(q.querySelectorAll&&q.querySelectorAll(".TEST").length===0){return;}b=function(s,r,u,v){r=r||document;if(!v&&r.nodeType===9&&!d(r)){try{return a(r.querySelectorAll(s),u);}catch(t){}}return p(s,r,u,v);};b.find=p.find;b.filter=p.filter;b.selectors=p.selectors;b.matches=p.matches;})();}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var p=document.createElement("div");p.innerHTML="<div class='test e'></div><div class='test'></div>";if(p.getElementsByClassName("e").length===0){return;}p.lastChild.className="e";if(p.getElementsByClassName("e").length===1){return;}h.order.splice(1,0,"CLASS");h.find.CLASS=function(q,r,s){if(typeof r.getElementsByClassName!=="undefined"&&!s){return r.getElementsByClassName(q[1]);}};})();}function o(t,z,y,s,r,p){var w=t=="previousSibling"&&!p;for(var v=0,u=s.length;v<u;v++){var q=s[v];if(q){if(w&&q.nodeType===1){q.sizcache=y;q.sizset=v;}q=q[t];var x=false;while(q){if(q.sizcache===y){x=s[q.sizset];break;}if(q.nodeType===1&&!p){q.sizcache=y;q.sizset=v;}if(q.nodeName===z){x=q;break;}q=q[t];}s[v]=x;}}}function f(t,z,y,s,r,p){var w=t=="previousSibling"&&!p;for(var v=0,u=s.length;v<u;v++){var q=s[v];if(q){if(w&&q.nodeType===1){q.sizcache=y;q.sizset=v;}q=q[t];var x=false;while(q){if(q.sizcache===y){x=s[q.sizset];break;}if(q.nodeType===1){if(!p){q.sizcache=y;q.sizset=v;}if(typeof z!=="string"){if(q===z){x=true;break;}}else{if(b.filter(z,[q]).length>0){x=q;break;}}}q=q[t];}s[v]=x;}}}var j=document.compareDocumentPosition?function(q,p){return q.compareDocumentPosition(p)&16;}:function(q,p){return q!==p&&(q.contains?q.contains(p):true);};var d=function(p){return p.nodeType===9&&p.documentElement.nodeName!=="HTML"||!!p.ownerDocument&&d(p.ownerDocument);};var i=function(q,p){var t=[],u="",v,s=p.nodeType?[p]:p;while((v=h.match.PSEUDO.exec(q))){u+=v[0];q=q.replace(h.match.PSEUDO,"");}q=h.relative[q]?q+"*":q;for(var w=0,r=s.length;w<r;w++){b(q,s[w],t);}return b.filter(u,t);};V.find=b;V.filter=b.filter;V.expr=b.selectors;V.expr[":"]=V.expr.filters;b.selectors.filters.hidden=function(p){return p.offsetWidth===0||p.offsetHeight===0;};b.selectors.filters.visible=function(p){return p.offsetWidth>0||p.offsetHeight>0;};b.selectors.filters.animated=function(p){return V.grep(V.timers,function(q){return p===q.elem;}).length;};V.multiFilter=function(r,p,q){if(q){r=":not("+r+")";}return b.matches(r,p);};V.dir=function(r,q){var p=[],s=r[q];while(s&&s!=document){if(s.nodeType==1){p.push(s);}s=s[q];}return p;};V.nth=function(p,q,s,t){q=q||1;var r=0;for(;p;p=p[s]){if(p.nodeType==1&&++r==q){break;}}return p;};V.sibling=function(r,q){var p=[];for(;r;r=r.nextSibling){if(r.nodeType==1&&r!=q){p.push(r);}}return p;};return;S.Sizzle=b;})();V.event={add:function(e,g,d,c){if(e.nodeType==3||e.nodeType==8){return;}if(e.setInterval&&e!=S){e=S;}if(!d.guid){d.guid=this.guid++;}if(c!==ac){var a=d;d=this.proxy(a);d.data=c;}var f=V.data(e,"events")||V.data(e,"events",{}),b=V.data(e,"handle")||V.data(e,"handle",function(){return typeof V!=="undefined"&&!V.event.triggered?V.event.handle.apply(arguments.callee.elem,arguments):ac;});b.elem=e;V.each(g.split(/\s+/),function(i,j){var k=j.split(".");j=k.shift();d.type=k.slice().sort().join(".");var h=f[j];if(V.event.specialAll[j]){V.event.specialAll[j].setup.call(e,c,k);}if(!h){h=f[j]={};if(!V.event.special[j]||V.event.special[j].setup.call(e,c,k)===false){if(e.addEventListener){e.addEventListener(j,b,false);}else{if(e.attachEvent){e.attachEvent("on"+j,b);}}}}h[d.guid]=d;V.event.global[j]=true;});e=null;},guid:1,global:{},remove:function(g,d,f){if(g.nodeType==3||g.nodeType==8){return;}var c=V.data(g,"events"),b,a;if(c){if(d===ac||(typeof d==="string"&&d.charAt(0)==".")){for(var e in c){this.remove(g,e+(d||""));}}else{if(d.type){f=d.handler;d=d.type;}V.each(d.split(/\s+/),function(j,l){var i=l.split(".");l=i.shift();var k=RegExp("(^|\\.)"+i.slice().sort().join(".*\\.")+"(\\.|$)");if(c[l]){if(f){delete c[l][f.guid];}else{for(var m in c[l]){if(k.test(c[l][m].type)){delete c[l][m];}}}if(V.event.specialAll[l]){V.event.specialAll[l].teardown.call(g,i);}for(b in c[l]){break;}if(!b){if(!V.event.special[l]||V.event.special[l].teardown.call(g,i)===false){if(g.removeEventListener){g.removeEventListener(l,V.data(g,"handle"),false);}else{if(g.detachEvent){g.detachEvent("on"+l,V.data(g,"handle"));}}}b=null;delete c[l];}}});}for(b in c){break;}if(!b){var h=V.data(g,"handle");if(h){h.elem=null;}V.removeData(g,"events");V.removeData(g,"handle");}}},trigger:function(e,g,d,a){var c=e.type||e;if(!a){e=typeof e==="object"?e[O]?e:V.extend(V.Event(c),e):V.Event(c);if(c.indexOf("!")>=0){e.type=c=c.slice(0,-1);e.exclusive=true;}if(!d){e.stopPropagation();if(this.global[c]){V.each(V.cache,function(){if(this.events&&this.events[c]){V.event.trigger(e,g,this.handle.elem);}});}}if(!d||d.nodeType==3||d.nodeType==8){return ac;}e.result=ac;e.target=d;g=V.makeArray(g);g.unshift(e);}e.currentTarget=d;var f=V.data(d,"handle");if(f){f.apply(d,g);}if((!d[c]||(V.nodeName(d,"a")&&c=="click"))&&d["on"+c]&&d["on"+c].apply(d,g)===false){e.result=false;}if(!a&&d[c]&&!e.isDefaultPrevented()&&!(V.nodeName(d,"a")&&c=="click")){this.triggered=true;try{d[c]();}catch(h){}}this.triggered=false;if(!e.isPropagationStopped()){var b=d.parentNode||d.ownerDocument;if(b){V.event.trigger(e,g,b,true);}}},handle:function(g){var f,a;g=arguments[0]=V.event.fix(g||S.event);g.currentTarget=this;var h=g.type.split(".");g.type=h.shift();f=!h.length&&!g.exclusive;var e=RegExp("(^|\\.)"+h.slice().sort().join(".*\\.")+"(\\.|$)");a=(V.data(this,"events")||{})[g.type];for(var c in a){var d=a[c];if(f||e.test(d.type)){g.handler=d;g.data=d.data;var b=d.apply(this,arguments);if(b!==ac){g.result=b;if(b===false){g.preventDefault();g.stopPropagation();}}if(g.isImmediatePropagationStopped()){break;}}}},props:"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 toElement view wheelDelta which".split(" "),fix:function(c){if(c[O]){return c;}var f=c;c=V.Event(f);for(var a=this.props.length,e;a;){e=this.props[--a];c[e]=f[e];}if(!c.target){c.target=c.srcElement||document;}if(c.target.nodeType==3){c.target=c.target.parentNode;}if(!c.relatedTarget&&c.fromElement){c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement;}if(c.pageX==null&&c.clientX!=null){var d=document.documentElement,b=document.body;c.pageX=c.clientX+(d&&d.scrollLeft||b&&b.scrollLeft||0)-(d.clientLeft||0);c.pageY=c.clientY+(d&&d.scrollTop||b&&b.scrollTop||0)-(d.clientTop||0);}if(!c.which&&((c.charCode||c.charCode===0)?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode;}if(!c.metaKey&&c.ctrlKey){c.metaKey=c.ctrlKey;}if(!c.which&&c.button){c.which=(c.button&1?1:(c.button&2?3:(c.button&4?2:0)));}return c;},proxy:function(b,a){a=a||function(){return b.apply(this,arguments);};a.guid=b.guid=b.guid||a.guid||this.guid++;return a;},special:{ready:{setup:ae,teardown:function(){}}},specialAll:{live:{setup:function(a,b){V.event.add(this,b[0],Y);},teardown:function(a){if(a.length){var b=0,c=RegExp("(^|\\.)"+a[0]+"(\\.|$)");V.each((V.data(this,"events").live||{}),function(){if(c.test(this.type)){b++;}});if(b<1){V.event.remove(this,a[0],Y);}}}}}};V.Event=function(a){if(!this.preventDefault){return new V.Event(a);}if(a&&a.type){this.originalEvent=a;this.type=a.type;}else{this.type=a;}this.timeStamp=aa();this[O]=true;};function R(){return false;}function L(){return true;}V.Event.prototype={preventDefault:function(){this.isDefaultPrevented=L;var a=this.originalEvent;if(!a){return;}if(a.preventDefault){a.preventDefault();}a.returnValue=false;},stopPropagation:function(){this.isPropagationStopped=L;var a=this.originalEvent;if(!a){return;}if(a.stopPropagation){a.stopPropagation();}a.cancelBubble=true;},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=L;this.stopPropagation();},isDefaultPrevented:R,isPropagationStopped:R,isImmediatePropagationStopped:R};var W=function(c){var b=c.relatedTarget;while(b&&b!=this){try{b=b.parentNode;}catch(a){b=this;}}if(b!=this){c.type=c.data;V.event.handle.apply(this,arguments);}};V.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(b,a){V.event.special[a]={setup:function(){V.event.add(this,b,W,a);},teardown:function(){V.event.remove(this,b,W);}};});V.fn.extend({bind:function(c,a,b){return c=="unload"?this.one(c,a,b):this.each(function(){V.event.add(this,c,b||a,b&&a);});},one:function(a,b,d){var c=V.event.proxy(d||b,function(e){V(this).unbind(e,c);return(d||b).apply(this,arguments);});return this.each(function(){V.event.add(this,a,c,d&&b);});},unbind:function(b,a){return this.each(function(){V.event.remove(this,b,a);});},trigger:function(a,b){return this.each(function(){V.event.trigger(a,b,this);});},triggerHandler:function(b,a){if(this[0]){var c=V.Event(b);c.preventDefault();c.stopPropagation();V.event.trigger(c,a,this[0]);return c.result;}},toggle:function(a){var b=arguments,c=1;while(c<b.length){V.event.proxy(a,b[c++]);}return this.click(V.event.proxy(a,function(d){this.lastToggle=(this.lastToggle||0)%c;d.preventDefault();return b[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(a,b){return this.mouseenter(a).mouseleave(b);},ready:function(a){ae();if(V.isReady){a.call(document,V);}else{V.readyList.push(a);}return this;},live:function(a,c){var b=V.event.proxy(c);b.guid+=this.selector+a;V(document).bind(P(a,this.selector),this.selector,b);return this;},die:function(b,a){V(document).unbind(P(b,this.selector),a?{guid:a.guid+this.selector+b}:null);return this;}});function Y(b){var c=RegExp("(^|\\.)"+b.type+"(\\.|$)"),a=true,d=[];V.each(V.data(this,"events").live||[],function(e,f){if(c.test(f.type)){var g=V(b.target).closest(f.data)[0];if(g){d.push({elem:g,fn:f});}}});d.sort(function(f,e){return V.data(f.elem,"closest")-V.data(e.elem,"closest");});V.each(d,function(){if(this.fn.call(this.elem,b,this.fn.data)===false){return(a=false);}});return a;}function P(b,a){return["live",b,a.replace(/\./g,"`").replace(/ /g,"|")].join(".");}V.extend({isReady:false,readyList:[],ready:function(){if(!V.isReady){V.isReady=true;if(V.readyList){V.each(V.readyList,function(){this.call(document,V);});V.readyList=null;}V(document).triggerHandler("ready");}}});var ah=false;function ae(){if(ah){return;}ah=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);V.ready();},false);}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);V.ready();}});if(document.documentElement.doScroll&&S==S.top){(function(){if(V.isReady){return;}try{document.documentElement.doScroll("left");}catch(a){setTimeout(arguments.callee,0);return;}V.ready();})();}}}V.event.add(S,"load",V.ready);}V.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(b,a){V.fn[a]=function(c){return c?this.bind(a,c):this.trigger(a);};});V(S).bind("unload",function(){for(var a in V.cache){if(a!=1&&V.cache[a].handle){V.event.remove(V.cache[a].handle.elem);}}});(function(){V.support={};var g=document.documentElement,a=document.createElement("script"),c=document.createElement("div"),f="script"+(new Date).getTime();c.style.display="none";c.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var d=c.getElementsByTagName("*"),b=c.getElementsByTagName("a")[0];if(!d||!d.length||!b){return;}V.support={leadingWhitespace:c.firstChild.nodeType==3,tbody:!c.getElementsByTagName("tbody").length,objectAll:!!c.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!c.getElementsByTagName("link").length,style:/red/.test(b.getAttribute("style")),hrefNormalized:b.getAttribute("href")==="/a",opacity:b.style.opacity==="0.5",cssFloat:!!b.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};a.type="text/javascript";try{a.appendChild(document.createTextNode("window."+f+"=1;"));}catch(e){}g.insertBefore(a,g.firstChild);if(S[f]){V.support.scriptEval=true;delete S[f];}g.removeChild(a);if(c.attachEvent&&c.fireEvent){c.attachEvent("onclick",function(){V.support.noCloneEvent=false;c.detachEvent("onclick",arguments.callee);});c.cloneNode(true).fireEvent("onclick");}V(function(){var h=document.createElement("div");h.style.width=h.style.paddingLeft="1px";document.body.appendChild(h);V.boxModel=V.support.boxModel=h.offsetWidth===2;document.body.removeChild(h).style.display="none";});})();var N=V.support.cssFloat?"cssFloat":"styleFloat";V.props={"for":"htmlFor","class":"className","float":N,cssFloat:N,styleFloat:N,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};V.fn.extend({_load:V.fn.load,load:function(a,f,g){if(typeof a!=="string"){return this._load(a);}var e=a.indexOf(" ");if(e>=0){var b=a.slice(e,a.length);a=a.slice(0,e);}var d="GET";if(f){if(V.isFunction(f)){g=f;f=null;}else{if(typeof f==="object"){f=V.param(f);d="POST";}}}var c=this;V.ajax({url:a,type:d,dataType:"html",data:f,complete:function(i,h){if(h=="success"||h=="notmodified"){c.html(b?V("<div/>").append(i.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(b):i.responseText);}if(g){c.each(g,[i.responseText,h,i]);}}});return this;},serialize:function(){return V.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?V.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type));}).map(function(b,c){var a=V(this).val();return a==null?null:V.isArray(a)?V.map(a,function(e,d){return{name:c.name,value:e};}):{name:c.name,value:a};}).get();}});V.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(a,b){V.fn[b]=function(c){return this.bind(b,c);};});var I=aa();V.extend({get:function(c,a,b,d){if(V.isFunction(a)){b=a;a=null;}return V.ajax({type:"GET",url:c,data:a,success:b,dataType:d});},getScript:function(a,b){return V.get(a,null,b,"script");},getJSON:function(b,c,a){return V.get(b,c,a,"json");},post:function(c,a,b,d){if(V.isFunction(a)){b=a;a={};}return V.ajax({type:"POST",url:c,data:a,success:b,dataType:d});},ajaxSetup:function(a){V.extend(V.ajaxSettings,a);},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return S.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();},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(n){n=V.extend(true,n,V.extend(true,{},V.ajaxSettings,n));var h,r=/=\?(&|$)/g,c,g,s=n.type.toUpperCase();if(n.data&&n.processData&&typeof n.data!=="string"){n.data=V.param(n.data);}if(n.dataType=="jsonp"){if(s=="GET"){if(!n.url.match(r)){n.url+=(n.url.match(/\?/)?"&":"?")+(n.jsonp||"callback")+"=?";}}else{if(!n.data||!n.data.match(r)){n.data=(n.data?n.data+"&":"")+(n.jsonp||"callback")+"=?";}}n.dataType="json";}if(n.dataType=="json"&&(n.data&&n.data.match(r)||n.url.match(r))){h="jsonp"+I++;if(n.data){n.data=(n.data+"").replace(r,"="+h+"$1");}n.url=n.url.replace(r,"="+h+"$1");n.dataType="script";S[h]=function(t){g=t;j();m();S[h]=ac;try{delete S[h];}catch(u){}if(i){i.removeChild(e);}};}if(n.dataType=="script"&&n.cache==null){n.cache=false;}if(n.cache===false&&s=="GET"){var q=aa();var f=n.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+q+"$2");n.url=f+((f==n.url)?(n.url.match(/\?/)?"&":"?")+"_="+q:"");}if(n.data&&s=="GET"){n.url+=(n.url.match(/\?/)?"&":"?")+n.data;n.data=null;}if(n.global&&!V.active++){V.event.trigger("ajaxStart");}var b=/^(\w+:)?\/\/([^\/?#]+)/.exec(n.url);if(n.dataType=="script"&&s=="GET"&&b&&(b[1]&&b[1]!=location.protocol||b[2]!=location.host)){var i=document.getElementsByTagName("head")[0];var e=document.createElement("script");e.src=n.url;if(n.scriptCharset){e.charset=n.scriptCharset;}if(!h){var p=false;e.onload=e.onreadystatechange=function(){if(!p&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){p=true;j();m();e.onload=e.onreadystatechange=null;i.removeChild(e);}};}i.appendChild(e);return ac;}var l=false;var k=n.xhr();if(n.username){k.open(s,n.url,n.async,n.username,n.password);}else{k.open(s,n.url,n.async);}try{if(n.data){k.setRequestHeader("Content-Type",n.contentType);}if(n.ifModified){k.setRequestHeader("If-Modified-Since",V.lastModified[n.url]||"Thu, 01 Jan 1970 00:00:00 GMT");}k.setRequestHeader("X-Requested-With","XMLHttpRequest");k.setRequestHeader("Accept",n.dataType&&n.accepts[n.dataType]?n.accepts[n.dataType]+", */*":n.accepts._default);}catch(d){}if(n.beforeSend&&n.beforeSend(k,n)===false){if(n.global&&!--V.active){V.event.trigger("ajaxStop");}k.abort();return false;}if(n.global){V.event.trigger("ajaxSend",[k,n]);}var o=function(t){if(k.readyState==0){if(a){clearInterval(a);a=null;if(n.global&&!--V.active){V.event.trigger("ajaxStop");}}}else{if(!l&&k&&(k.readyState==4||t=="timeout")){l=true;if(a){clearInterval(a);a=null;}c=t=="timeout"?"timeout":!V.httpSuccess(k)?"error":n.ifModified&&V.httpNotModified(k,n.url)?"notmodified":"success";if(c=="success"){try{g=V.httpData(k,n.dataType,n);}catch(v){c="parsererror";}}if(c=="success"){var u;try{u=k.getResponseHeader("Last-Modified");}catch(v){}if(n.ifModified&&u){V.lastModified[n.url]=u;}if(!h){j();}}else{V.handleError(n,k,c);}m();if(t){k.abort();}if(n.async){k=null;}}}};if(n.async){var a=setInterval(o,13);if(n.timeout>0){setTimeout(function(){if(k&&!l){o("timeout");}},n.timeout);}}try{k.send(n.data);}catch(d){V.handleError(n,k,null,d);}if(!n.async){o();}function j(){if(n.success){n.success(g,c);}if(n.global){V.event.trigger("ajaxSuccess",[k,n]);}}function m(){if(n.complete){n.complete(k,c);}if(n.global){V.event.trigger("ajaxComplete",[k,n]);}if(n.global&&!--V.active){V.event.trigger("ajaxStop");}}return k;},handleError:function(d,b,c,a){if(d.error){d.error(b,c,a);}if(d.global){V.event.trigger("ajaxError",[b,d,a]);}},active:0,httpSuccess:function(b){try{return !b.status&&location.protocol=="file:"||(b.status>=200&&b.status<300)||b.status==304||b.status==1223;}catch(a){}return false;},httpNotModified:function(a,c){try{var b=a.getResponseHeader("Last-Modified");return a.status==304||b==V.lastModified[c];}catch(d){}return false;},httpData:function(e,c,a){var f=e.getResponseHeader("content-type"),b=c=="xml"||!c&&f&&f.indexOf("xml")>=0,d=b?e.responseXML:e.responseText;if(b&&d.documentElement.tagName=="parsererror"){throw"parsererror";}if(a&&a.dataFilter){d=a.dataFilter(d,c);}if(typeof d==="string"){if(c=="script"){V.globalEval(d);}if(c=="json"){d=S["eval"]("("+d+")");}}return d;},param:function(c){var a=[];function b(e,f){a[a.length]=encodeURIComponent(e)+"="+encodeURIComponent(f);}if(V.isArray(c)||c.jquery){V.each(c,function(){b(this.name,this.value);});}else{for(var d in c){if(V.isArray(c[d])){V.each(c[d],function(){b(d,this);});}else{b(d,V.isFunction(c[d])?c[d]():c[d]);}}}return a.join("&").replace(/%20/g,"+");}});var T={},U,Z=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(c,b){var a={};V.each(Z.concat.apply([],Z.slice(0,b)),function(){a[this]=c;});return a;}V.fn.extend({show:function(f,h){if(f){return this.animate(K("show",3),f,h);}else{for(var d=0,b=this.length;d<b;d++){var a=V.data(this[d],"olddisplay");this[d].style.display=a||"";if(V.css(this[d],"display")==="none"){var c=this[d].tagName,g;if(T[c]){g=T[c];}else{var e=V("<"+c+" />").appendTo("body");g=e.css("display");if(g==="none"){g="block";}e.remove();T[c]=g;}V.data(this[d],"olddisplay",g);}}for(var d=0,b=this.length;d<b;d++){this[d].style.display=V.data(this[d],"olddisplay")||"";}return this;}},hide:function(b,c){if(b){return this.animate(K("hide",3),b,c);}else{for(var a=0,e=this.length;a<e;a++){var d=V.data(this[a],"olddisplay");if(!d&&d!=="none"){V.data(this[a],"olddisplay",V.css(this[a],"display"));}}for(var a=0,e=this.length;a<e;a++){this[a].style.display="none";}return this;}},_toggle:V.fn.toggle,toggle:function(a,c){var b=typeof a==="boolean";return V.isFunction(a)&&V.isFunction(c)?this._toggle.apply(this,arguments):a==null||b?this.each(function(){var d=b?a:V(this).is(":hidden");V(this)[d?"show":"hide"]();}):this.animate(K("toggle",3),a,c);},fadeTo:function(b,a,c){return this.animate({opacity:a},b,c);},animate:function(c,e,b,a){var d=V.speed(e,b,a);return this[d.queue===false?"each":"queue"](function(){var i=V.extend({},d),g,f=this.nodeType==1&&V(this).is(":hidden"),h=this;for(g in c){if(c[g]=="hide"&&f||c[g]=="show"&&!f){return i.complete.call(this);}if((g=="height"||g=="width")&&this.style){i.display=V.css(this,"display");i.overflow=this.style.overflow;}}if(i.overflow!=null){this.style.overflow="hidden";}i.curAnim=V.extend({},c);V.each(c,function(m,l){var k=new V.fx(h,i,m);if(/toggle|show|hide/.test(l)){k[l=="toggle"?f?"show":"hide":l](c);}else{var j=l.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),o=k.cur(true)||0;if(j){var n=parseFloat(j[2]),p=j[3]||"px";if(p!="px"){h.style[m]=(n||1)+p;o=((n||1)/k.cur(true))*o;h.style[m]=o+p;}if(j[1]){n=((j[1]=="-="?-1:1)*n)+o;}k.custom(o,n,p);}else{k.custom(o,l,"");}}});return true;});},stop:function(c,b){var a=V.timers;if(c){this.queue([]);}this.each(function(){for(var d=a.length-1;d>=0;d--){if(a[d].elem==this){if(b){a[d](true);}a.splice(d,1);}}});if(!b){this.dequeue();}return this;}});V.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){V.fn[a]=function(c,d){return this.animate(b,c,d);};});V.extend({speed:function(a,b,d){var c=typeof a==="object"?a:{complete:d||!d&&b||V.isFunction(a)&&a,duration:a,easing:d&&b||b&&!V.isFunction(b)&&b};c.duration=V.fx.off?0:typeof c.duration==="number"?c.duration:V.fx.speeds[c.duration]||V.fx.speeds._default;c.old=c.complete;c.complete=function(){if(c.queue!==false){V(this).dequeue();}if(V.isFunction(c.old)){c.old.call(this);}};return c;},easing:{linear:function(a,b,c,d){return c+d*a;},swing:function(a,b,c,d){return((-Math.cos(a*Math.PI)/2)+0.5)*d+c;}},timers:[],fx:function(c,b,a){this.options=b;this.elem=c;this.prop=a;if(!b.orig){b.orig={};}}});V.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this);}(V.fx.step[this.prop]||V.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block";}},cur:function(b){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];}var a=parseFloat(V.css(this.elem,this.prop,b));return a&&a>-10000?a:parseFloat(V.curCSS(this.elem,this.prop))||0;},custom:function(c,b,a){this.startTime=aa();this.start=c;this.end=b;this.unit=a||this.unit||"px";this.now=this.start;this.pos=this.state=0;var d=this;function e(f){return d.step(f);}e.elem=this.elem;if(e()&&V.timers.push(e)&&!U){U=setInterval(function(){var g=V.timers;for(var f=0;f<g.length;f++){if(!g[f]()){g.splice(f--,1);}}if(!g.length){clearInterval(U);U=ac;}},13);}},show:function(){this.options.orig[this.prop]=V.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());V(this.elem).show();},hide:function(){this.options.orig[this.prop]=V.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(c){var a=aa();if(c||a>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var e=true;for(var f in this.options.curAnim){if(this.options.curAnim[f]!==true){e=false;}}if(e){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(V.css(this.elem,"display")=="none"){this.elem.style.display="block";}}if(this.options.hide){V(this.elem).hide();}if(this.options.hide||this.options.show){for(var d in this.options.curAnim){V.attr(this.elem.style,d,this.options.orig[d]);}}this.options.complete.call(this.elem);}return false;}else{var b=a-this.startTime;this.state=b/this.options.duration;this.pos=V.easing[this.options.easing||(V.easing.swing?"swing":"linear")](this.state,b,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};V.extend(V.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){V.attr(a.elem.style,"opacity",a.now);},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null){a.elem.style[a.prop]=a.now+a.unit;}else{a.elem[a.prop]=a.now;}}}});if(document.documentElement.getBoundingClientRect){V.fn.offset=function(){if(!this[0]){return{top:0,left:0};}if(this[0]===this[0].ownerDocument.body){return V.offset.bodyOffset(this[0]);}var c=this[0].getBoundingClientRect(),f=this[0].ownerDocument,b=f.body,a=f.documentElement,h=a.clientTop||b.clientTop||0,g=a.clientLeft||b.clientLeft||0,e=c.top+(self.pageYOffset||V.boxModel&&a.scrollTop||b.scrollTop)-h,d=c.left+(self.pageXOffset||V.boxModel&&a.scrollLeft||b.scrollLeft)-g;return{top:e,left:d};};}else{V.fn.offset=function(){if(!this[0]){return{top:0,left:0};}if(this[0]===this[0].ownerDocument.body){return V.offset.bodyOffset(this[0]);}V.offset.initialized||V.offset.initialize();var f=this[0],c=f.offsetParent,b=f,k=f.ownerDocument,i,d=k.documentElement,g=k.body,h=k.defaultView,a=h.getComputedStyle(f,null),j=f.offsetTop,e=f.offsetLeft;while((f=f.parentNode)&&f!==g&&f!==d){i=h.getComputedStyle(f,null);j-=f.scrollTop,e-=f.scrollLeft;if(f===c){j+=f.offsetTop,e+=f.offsetLeft;if(V.offset.doesNotAddBorder&&!(V.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(f.tagName))){j+=parseInt(i.borderTopWidth,10)||0,e+=parseInt(i.borderLeftWidth,10)||0;}b=c,c=f.offsetParent;}if(V.offset.subtractsBorderForOverflowNotVisible&&i.overflow!=="visible"){j+=parseInt(i.borderTopWidth,10)||0,e+=parseInt(i.borderLeftWidth,10)||0;}a=i;}if(a.position==="relative"||a.position==="static"){j+=g.offsetTop,e+=g.offsetLeft;}if(a.position==="fixed"){j+=Math.max(d.scrollTop,g.scrollTop),e+=Math.max(d.scrollLeft,g.scrollLeft);}return{top:j,left:e};};}V.offset={initialize:function(){if(this.initialized){return;}var h=document.body,b=document.createElement("div"),d,c,j,e,i,a,f=h.style.marginTop,g='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';i={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(a in i){b.style[a]=i[a];}b.innerHTML=g;h.insertBefore(b,h.firstChild);d=b.firstChild,c=d.firstChild,e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(c.offsetTop!==5);this.doesAddBorderForTableAndCells=(e.offsetTop===5);d.style.overflow="hidden",d.style.position="relative";this.subtractsBorderForOverflowNotVisible=(c.offsetTop===-5);h.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(h.offsetTop===0);h.style.marginTop=f;h.removeChild(b);this.initialized=true;},bodyOffset:function(b){V.offset.initialized||V.offset.initialize();var a=b.offsetTop,c=b.offsetLeft;if(V.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(V.curCSS(b,"marginTop",true),10)||0,c+=parseInt(V.curCSS(b,"marginLeft",true),10)||0;}return{top:a,left:c};}};V.fn.extend({position:function(){var d=0,c=0,f;if(this[0]){var a=this.offsetParent(),e=this.offset(),b=/^body|html$/i.test(a[0].tagName)?{top:0,left:0}:a.offset();e.top-=Q(this,"marginTop");e.left-=Q(this,"marginLeft");b.top+=Q(a,"borderTopWidth");b.left+=Q(a,"borderLeftWidth");f={top:e.top-b.top,left:e.left-b.left};}return f;},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&&(!/^body|html$/i.test(a.tagName)&&V.css(a,"position")=="static")){a=a.offsetParent;}return V(a);}});V.each(["Left","Top"],function(c,b){var a="scroll"+b;V.fn[a]=function(d){if(!this[0]){return null;}return d!==ac?this.each(function(){this==S||this==document?S.scrollTo(!c?d:V(S).scrollLeft(),c?d:V(S).scrollTop()):this[a]=d;}):this[0]==S||this[0]==document?self[c?"pageYOffset":"pageXOffset"]||V.boxModel&&document.documentElement[a]||document.body[a]:this[0][a];};});V.each(["Height","Width"],function(d,a){var e=d?"Left":"Top",c=d?"Right":"Bottom",f=a.toLowerCase();V.fn["inner"+a]=function(){return this[0]?V.css(this[0],f,false,"padding"):null;};V.fn["outer"+a]=function(g){return this[0]?V.css(this[0],f,false,g?"margin":"border"):null;};var b=a.toLowerCase();V.fn[b]=function(g){return this[0]==S?document.compatMode=="CSS1Compat"&&document.documentElement["client"+a]||document.body["client"+a]:this[0]==document?Math.max(document.documentElement["client"+a],document.body["scroll"+a],document.documentElement["scroll"+a],document.body["offset"+a],document.documentElement["offset"+a]):g===ac?(this.length?V.css(this[0],b):null):this.css(b,typeof g==="string"?g:g+"px");};});})();jQuery.ui||(function(m){var j=m.fn.remove,n=m.browser.mozilla&&(parseFloat(m.browser.version)<1.9);m.ui={version:"1.7.2",plugin:{add:function(d,e,b){var a=m.ui[d].prototype;for(var c in b){a.plugins[c]=a.plugins[c]||[];a.plugins[c].push([e,b[c]]);}},call:function(c,e,d){var b=c.plugins[e];if(!b||!c.element[0].parentNode){return;}for(var a=0;a<b.length;a++){if(c.options[b[a][0]]){b[a][1].apply(c.element,d);}}}},contains:function(b,a){return document.compareDocumentPosition?b.compareDocumentPosition(a)&16:b!==a&&b.contains(a);},hasScroll:function(a,c){if(m(a).css("overflow")=="hidden"){return false;}var b=(c&&c=="left")?"scrollLeft":"scrollTop",d=false;if(a[b]>0){return true;}a[b]=1;d=(a[b]>0);a[b]=0;return d;},isOverAxis:function(b,a,c){return(b>a)&&(b<(a+c));},isOver:function(c,e,b,a,d,f){return m.ui.isOverAxis(c,b,d)&&m.ui.isOverAxis(e,a,f);},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(n){var p=m.attr,o=m.fn.removeAttr,r="http://www.w3.org/2005/07/aaa",k=/^aria-/,l=/^wairole:/;m.attr=function(c,b,d){var a=d!==undefined;return(b=="role"?(a?p.call(this,c,b,"wairole:"+d):(p.apply(this,arguments)||"").replace(l,"")):(k.test(b)?(a?c.setAttributeNS(r,b.replace(k,"aaa:"),d):p.call(this,c,b.replace(k,"aaa:"))):p.apply(this,arguments)));};m.fn.removeAttr=function(a){return(k.test(a)?this.each(function(){this.removeAttributeNS(r,a.replace(k,""));}):o.call(this,a));};}m.fn.extend({remove:function(){m("*",this).add(this).each(function(){m(this).triggerHandler("remove");});return j.apply(this,arguments);},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui");},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false;});},scrollParent:function(){var a;if((m.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){a=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(m.curCSS(this,"position",1))&&(/(auto|scroll)/).test(m.curCSS(this,"overflow",1)+m.curCSS(this,"overflow-y",1)+m.curCSS(this,"overflow-x",1));}).eq(0);}else{a=this.parents().filter(function(){return(/(auto|scroll)/).test(m.curCSS(this,"overflow",1)+m.curCSS(this,"overflow-y",1)+m.curCSS(this,"overflow-x",1));}).eq(0);}return(/fixed/).test(this.css("position"))||!a.length?m(document):a;}});m.extend(m.expr[":"],{data:function(c,b,a){return !!m.data(c,a[3]);},focusable:function(b){var c=b.nodeName.toLowerCase(),a=m.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(c)?!b.disabled:"a"==c||"area"==c?b.href||!isNaN(a):!isNaN(a))&&!m(b)["area"==c?"parents":"closest"](":hidden").length;},tabbable:function(b){var a=m.attr(b,"tabindex");return(isNaN(a)||a>=0)&&m(b).is(":focusable");}});function q(a,b,c,f){function e(h){var g=m[a][b][h]||[];return(typeof g=="string"?g.split(/,?\s+/):g);}var d=e("getter");if(f.length==1&&typeof f[0]=="string"){d=d.concat(e("getterSetter"));}return(m.inArray(c,d)!=-1);}m.widget=function(b,a){var c=b.split(".")[0];b=b.split(".")[1];m.fn[b]=function(g){var e=(typeof g=="string"),f=Array.prototype.slice.call(arguments,1);if(e&&g.substring(0,1)=="_"){return this;}if(e&&q(c,b,g,f)){var d=m.data(this[0],b);return(d?d[g].apply(d,f):undefined);}return this.each(function(){var h=m.data(this,b);(!h&&!e&&m.data(this,b,new m[c][b](this,g))._init());(h&&e&&m.isFunction(h[g])&&h[g].apply(h,f));});};m[c]=m[c]||{};m[c][b]=function(f,e){var d=this;this.namespace=c;this.widgetName=b;this.widgetEventPrefix=m[c][b].eventPrefix||b;this.widgetBaseClass=c+"-"+b;this.options=m.extend({},m.widget.defaults,m[c][b].defaults,m.metadata&&m.metadata.get(f)[b],e);this.element=m(f).bind("setData."+b,function(i,h,g){if(i.target==f){return d._setData(h,g);}}).bind("getData."+b,function(h,g){if(h.target==f){return d._getData(g);}}).bind("remove",function(){return d.destroy();});};m[c][b].prototype=m.extend({},m.widget.prototype,a);m[c][b].getterSetter="option";};m.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled");},option:function(d,a){var c=d,b=this;if(typeof d=="string"){if(a===undefined){return this._getData(d);}c={};c[d]=a;}m.each(c,function(e,f){b._setData(e,f);});},_getData:function(a){return this.options[a];},_setData:function(a,b){this.options[a]=b;if(a=="disabled"){this.element[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",b);}},enable:function(){this._setData("disabled",false);},disable:function(){this._setData("disabled",true);},_trigger:function(g,a,b){var f=this.options[g],e=(g==this.widgetEventPrefix?g:this.widgetEventPrefix+g);a=m.Event(a);a.type=e;if(a.originalEvent){for(var d=m.event.props.length,c;d;){c=m.event.props[--d];a[c]=a.originalEvent[c];}}this.element.trigger(a,b);return !(m.isFunction(f)&&f.call(this.element[0],a,b)===false||a.isDefaultPrevented());}};m.widget.defaults={disabled:false};m.ui.mouse={_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b);}).bind("click."+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;b.stopImmediatePropagation();return false;}});if(m.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on");}this.started=false;},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(m.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable));},_mouseDown:function(d){d.originalEvent=d.originalEvent||{};if(d.originalEvent.mouseHandled){return;}(this._mouseStarted&&this._mouseUp(d));this._mouseDownEvent=d;var c=this,a=(d.which==1),b=(typeof this.options.cancel=="string"?m(d.target).parents().add(d.target).filter(this.options.cancel).length:false);if(!a||b||!this._mouseCapture(d)){return true;}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true;},this.options.delay);}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=(this._mouseStart(d)!==false);if(!this._mouseStarted){d.preventDefault();return true;}}this._mouseMoveDelegate=function(e){return c._mouseMove(e);};this._mouseUpDelegate=function(e){return c._mouseUp(e);};m(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(m.browser.safari||d.preventDefault());d.originalEvent.mouseHandled=true;return true;},_mouseMove:function(a){if(m.browser.msie&&!a.button){return this._mouseUp(a);}if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault();}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,a)!==false);(this._mouseStarted?this._mouseDrag(a):this._mouseUp(a));}return !this._mouseStarted;},_mouseUp:function(a){m(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(a.target==this._mouseDownEvent.target);this._mouseStop(a);}return false;},_mouseDistanceMet:function(a){return(Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance);},_mouseDelayMet:function(a){return this.mouseDelayMet;},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return true;}};m.ui.mouse.defaults={cancel:null,distance:1,delay:0};})(jQuery);(function(b){b.widget("ui.draggable",b.extend({},b.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative";}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit();},destroy:function(){if(!this.element.data("draggable")){return;}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();},_mouseCapture:function(a){var d=this.options;if(this.helper||d.disabled||b(a.target).is(".ui-resizable-handle")){return false;}this.handle=this._getHandle(a);if(!this.handle){return false;}return true;},_mouseStart:function(a){var d=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(b.ui.ddmanager){b.ui.ddmanager.current=this;}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;if(d.cursorAt){this._adjustOffsetFromHelper(d.cursorAt);}if(d.containment){this._setContainment();}this._trigger("start",a);this._cacheHelperProportions();if(b.ui.ddmanager&&!d.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,a);}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);return true;},_mouseDrag:function(a,f){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!f){var e=this._uiHash();this._trigger("drag",a,e);this.position=e.position;}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px";}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px";}if(b.ui.ddmanager){b.ui.ddmanager.drag(this,a);}return false;},_mouseStop:function(e){var f=false;if(b.ui.ddmanager&&!this.options.dropBehaviour){f=b.ui.ddmanager.drop(this,e);}if(this.dropped){f=this.dropped;this.dropped=false;}if((this.options.revert=="invalid"&&!f)||(this.options.revert=="valid"&&f)||this.options.revert===true||(b.isFunction(this.options.revert)&&this.options.revert.call(this.element,f))){var a=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){a._trigger("stop",e);a._clear();});}else{this._trigger("stop",e);this._clear();}return false;},_getHandle:function(a){var d=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==a.target){d=true;}});return d;},_createHelper:function(e){var f=this.options;var a=b.isFunction(f.helper)?b(f.helper.apply(this.element[0],[e])):(f.helper=="clone"?this.element.clone():this.element);if(!a.parents("body").length){a.appendTo((f.appendTo=="parent"?this.element[0].parentNode:f.appendTo));}if(a[0]!=this.element[0]&&!(/(fixed|absolute)/).test(a.css("position"))){a.css("position","absolute");}return a;},_adjustOffsetFromHelper:function(a){if(a.left!=undefined){this.offset.click.left=a.left+this.margins.left;}if(a.right!=undefined){this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;}if(a.top!=undefined){this.offset.click.top=a.top+this.margins.top;}if(a.bottom!=undefined){this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top;}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop();}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)){a={top:0,left:0};}return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()};}else{return{top:0,left:0};}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)};},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};},_setContainment:function(){var h=this.options;if(h.containment=="parent"){h.containment=this.helper[0].parentNode;}if(h.containment=="document"||h.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(h.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(h.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];}if(!(/^(document|window|parent)$/).test(h.containment)&&h.containment.constructor!=Array){var f=b(h.containment)[0];if(!f){return;}var g=b(h.containment).offset();var a=(b(f).css("overflow")!="hidden");this.containment=[g.left+(parseInt(b(f).css("borderLeftWidth"),10)||0)+(parseInt(b(f).css("paddingLeft"),10)||0)-this.margins.left,g.top+(parseInt(b(f).css("borderTopWidth"),10)||0)+(parseInt(b(f).css("paddingTop"),10)||0)-this.margins.top,g.left+(a?Math.max(f.scrollWidth,f.offsetWidth):f.offsetWidth)-(parseInt(b(f).css("borderLeftWidth"),10)||0)-(parseInt(b(f).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,g.top+(a?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(b(f).css("borderTopWidth"),10)||0)-(parseInt(b(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top];}else{if(h.containment.constructor==Array){this.containment=h.containment;}}},_convertPositionTo:function(k,i){if(!i){i=this.position;}var a=k=="absolute"?1:-1;var j=this.options,d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=(/(html|body)/i).test(d[0].tagName);return{top:(i.top+this.offset.relative.top*a+this.offset.parent.top*a-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(l?0:d.scrollTop()))*a)),left:(i.left+this.offset.relative.left*a+this.offset.parent.left*a-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:d.scrollLeft())*a))};},_generatePosition:function(m){var p=this.options,j=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=(/(html|body)/i).test(j[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset();}var l=m.pageX;var k=m.pageY;if(this.originalPosition){if(this.containment){if(m.pageX-this.offset.click.left<this.containment[0]){l=this.containment[0]+this.offset.click.left;}if(m.pageY-this.offset.click.top<this.containment[1]){k=this.containment[1]+this.offset.click.top;}if(m.pageX-this.offset.click.left>this.containment[2]){l=this.containment[2]+this.offset.click.left;}if(m.pageY-this.offset.click.top>this.containment[3]){k=this.containment[3]+this.offset.click.top;}}if(p.grid){var o=this.originalPageY+Math.round((k-this.originalPageY)/p.grid[1])*p.grid[1];k=this.containment?(!(o-this.offset.click.top<this.containment[1]||o-this.offset.click.top>this.containment[3])?o:(!(o-this.offset.click.top<this.containment[1])?o-p.grid[1]:o+p.grid[1])):o;var n=this.originalPageX+Math.round((l-this.originalPageX)/p.grid[0])*p.grid[0];l=this.containment?(!(n-this.offset.click.left<this.containment[0]||n-this.offset.click.left>this.containment[2])?n:(!(n-this.offset.click.left<this.containment[0])?n-p.grid[0]:n+p.grid[0])):n;}}return{top:(k-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(a?0:j.scrollTop())))),left:(l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():a?0:j.scrollLeft())))};},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove();}this.helper=null;this.cancelHelperRemoval=false;},_trigger:function(a,e,f){f=f||this._uiHash();b.ui.plugin.call(this,a,[e,f]);if(a=="drag"){this.positionAbs=this._convertPositionTo("absolute");}return b.widget.prototype._trigger.call(this,a,e,f);},plugins:{},_uiHash:function(a){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs};}}));b.extend(b.ui.draggable,{version:"1.7.2",eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});b.ui.plugin.add("draggable","connectToSortable",{start:function(g,i){var h=b(this).data("draggable"),j=h.options,a=b.extend({},i,{item:h.element});h.sortables=[];b(j.connectToSortable).each(function(){var c=b.data(this,"sortable");if(c&&!c.options.disabled){h.sortables.push({instance:c,shouldRevert:c.options.revert});c._refreshItems();c._trigger("activate",g,a);}});},stop:function(f,h){var g=b(this).data("draggable"),a=b.extend({},h,{item:g.element});b.each(g.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;g.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true;}this.instance._mouseStop(f);this.instance.options.helper=this.instance.options._helper;if(g.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"});}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",f,a);}});},drag:function(g,j){var i=b(this).data("draggable"),a=this;var h=function(c){var q=this.offset.click.top,o=this.offset.click.left;var s=this.positionAbs.top,e=this.positionAbs.left;var d=c.height,f=c.width;var r=c.top,t=c.left;return b.ui.isOver(s+q,e+o,r,t,d,f);};b.each(i.sortables,function(c){this.instance.positionAbs=i.positionAbs;this.instance.helperProportions=i.helperProportions;this.instance.offset.click=i.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(a).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return j.helper[0];};g.target=this.instance.currentItem[0];this.instance._mouseCapture(g,true);this.instance._mouseStart(g,true,true);this.instance.offset.click.top=i.offset.click.top;this.instance.offset.click.left=i.offset.click.left;this.instance.offset.parent.left-=i.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=i.offset.parent.top-this.instance.offset.parent.top;i._trigger("toSortable",g);i.dropped=this.instance.element;i.currentItem=i.element;this.instance.fromOutside=i;}if(this.instance.currentItem){this.instance._mouseDrag(g);}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",g,this.instance._uiHash(this.instance));this.instance._mouseStop(g,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove();}i._trigger("fromSortable",g);i.dropped=false;}}});}});b.ui.plugin.add("draggable","cursor",{start:function(f,g){var a=b("body"),h=b(this).data("draggable").options;if(a.css("cursor")){h._cursor=a.css("cursor");}a.css("cursor",h.cursor);},stop:function(a,e){var f=b(this).data("draggable").options;if(f._cursor){b("body").css("cursor",f._cursor);}}});b.ui.plugin.add("draggable","iframeFix",{start:function(a,e){var f=b(this).data("draggable").options;b(f.iframeFix===true?"iframe":f.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(b(this).offset()).appendTo("body");});},stop:function(a,d){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this);});}});b.ui.plugin.add("draggable","opacity",{start:function(f,g){var a=b(g.helper),h=b(this).data("draggable").options;if(a.css("opacity")){h._opacity=a.css("opacity");}a.css("opacity",h.opacity);},stop:function(a,e){var f=b(this).data("draggable").options;if(f._opacity){b(e.helper).css("opacity",f._opacity);}}});b.ui.plugin.add("draggable","scroll",{start:function(e,f){var a=b(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML"){a.overflowOffset=a.scrollParent.offset();}},drag:function(h,i){var g=b(this).data("draggable"),j=g.options,a=false;if(g.scrollParent[0]!=document&&g.scrollParent[0].tagName!="HTML"){if(!j.axis||j.axis!="x"){if((g.overflowOffset.top+g.scrollParent[0].offsetHeight)-h.pageY<j.scrollSensitivity){g.scrollParent[0].scrollTop=a=g.scrollParent[0].scrollTop+j.scrollSpeed;}else{if(h.pageY-g.overflowOffset.top<j.scrollSensitivity){g.scrollParent[0].scrollTop=a=g.scrollParent[0].scrollTop-j.scrollSpeed;}}}if(!j.axis||j.axis!="y"){if((g.overflowOffset.left+g.scrollParent[0].offsetWidth)-h.pageX<j.scrollSensitivity){g.scrollParent[0].scrollLeft=a=g.scrollParent[0].scrollLeft+j.scrollSpeed;}else{if(h.pageX-g.overflowOffset.left<j.scrollSensitivity){g.scrollParent[0].scrollLeft=a=g.scrollParent[0].scrollLeft-j.scrollSpeed;}}}}else{if(!j.axis||j.axis!="x"){if(h.pageY-b(document).scrollTop()<j.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()-j.scrollSpeed);}else{if(b(window).height()-(h.pageY-b(document).scrollTop())<j.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()+j.scrollSpeed);}}}if(!j.axis||j.axis!="y"){if(h.pageX-b(document).scrollLeft()<j.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()-j.scrollSpeed);}else{if(b(window).width()-(h.pageX-b(document).scrollLeft())<j.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()+j.scrollSpeed);}}}}if(a!==false&&b.ui.ddmanager&&!j.dropBehaviour){b.ui.ddmanager.prepareOffsets(g,h);}}});b.ui.plugin.add("draggable","snap",{start:function(f,g){var a=b(this).data("draggable"),h=a.options;a.snapElements=[];b(h.snap.constructor!=String?(h.snap.items||":data(draggable)"):h.snap).each(function(){var d=b(this);var c=d.offset();if(this!=a.element[0]){a.snapElements.push({item:this,width:d.outerWidth(),height:d.outerHeight(),top:c.top,left:c.left});}});},drag:function(r,i){var K=b(this).data("draggable"),l=K.options;var a=l.snapTolerance;var M=i.offset.left,B=M+K.helperProportions.width,J=i.offset.top,I=J+K.helperProportions.height;for(var t=K.snapElements.length-1;t>=0;t--){var o=K.snapElements[t].left,G=o+K.snapElements[t].width,F=K.snapElements[t].top,L=F+K.snapElements[t].height;if(!((o-a<M&&M<G+a&&F-a<J&&J<L+a)||(o-a<M&&M<G+a&&F-a<I&&I<L+a)||(o-a<B&&B<G+a&&F-a<J&&J<L+a)||(o-a<B&&B<G+a&&F-a<I&&I<L+a))){if(K.snapElements[t].snapping){(K.options.snap.release&&K.options.snap.release.call(K.element,r,b.extend(K._uiHash(),{snapItem:K.snapElements[t].item})));}K.snapElements[t].snapping=false;continue;}if(l.snapMode!="inner"){var H=Math.abs(F-I)<=a;var d=Math.abs(L-J)<=a;var D=Math.abs(o-B)<=a;var E=Math.abs(G-M)<=a;if(H){i.position.top=K._convertPositionTo("relative",{top:F-K.helperProportions.height,left:0}).top-K.margins.top;}if(d){i.position.top=K._convertPositionTo("relative",{top:L,left:0}).top-K.margins.top;}if(D){i.position.left=K._convertPositionTo("relative",{top:0,left:o-K.helperProportions.width}).left-K.margins.left;}if(E){i.position.left=K._convertPositionTo("relative",{top:0,left:G}).left-K.margins.left;}}var C=(H||d||D||E);if(l.snapMode!="outer"){var H=Math.abs(F-J)<=a;var d=Math.abs(L-I)<=a;var D=Math.abs(o-M)<=a;var E=Math.abs(G-B)<=a;if(H){i.position.top=K._convertPositionTo("relative",{top:F,left:0}).top-K.margins.top;}if(d){i.position.top=K._convertPositionTo("relative",{top:L-K.helperProportions.height,left:0}).top-K.margins.top;}if(D){i.position.left=K._convertPositionTo("relative",{top:0,left:o}).left-K.margins.left;}if(E){i.position.left=K._convertPositionTo("relative",{top:0,left:G-K.helperProportions.width}).left-K.margins.left;}}if(!K.snapElements[t].snapping&&(H||d||D||E||C)){(K.options.snap.snap&&K.options.snap.snap.call(K.element,r,b.extend(K._uiHash(),{snapItem:K.snapElements[t].item})));}K.snapElements[t].snapping=(H||d||D||E||C);}}});b.ui.plugin.add("draggable","stack",{start:function(a,f){var h=b(this).data("draggable").options;var g=b.makeArray(b(h.stack.group)).sort(function(d,c){return(parseInt(b(d).css("zIndex"),10)||h.stack.min)-(parseInt(b(c).css("zIndex"),10)||h.stack.min);});b(g).each(function(c){this.style.zIndex=h.stack.min+c;});this[0].style.zIndex=h.stack.min+g.length;}});b.ui.plugin.add("draggable","zIndex",{start:function(f,g){var a=b(g.helper),h=b(this).data("draggable").options;if(a.css("zIndex")){h._zIndex=a.css("zIndex");}a.css("zIndex",h.zIndex);},stop:function(a,e){var f=b(this).data("draggable").options;if(f._zIndex){b(e.helper).css("zIndex",f._zIndex);}}});})(jQuery);(function(b){b.widget("ui.accordion",{_init:function(){var f=this.options,a=this;this.running=0;if(f.collapsible==b.ui.accordion.defaults.collapsible&&f.alwaysOpen!=b.ui.accordion.defaults.alwaysOpen){f.collapsible=!f.alwaysOpen;}if(f.navigation){var e=this.element.find("a").filter(f.navigationFilter);if(e.length){if(e.filter(f.header).length){this.active=e;}else{this.active=e.parent().parent().prev();e.addClass("ui-accordion-content-active");}}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");if(this.element[0].nodeName=="UL"){this.element.children("li").addClass("ui-accordion-li-fix");}this.headers=this.element.find(f.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b(this).addClass("ui-state-hover");}).bind("mouseleave.accordion",function(){b(this).removeClass("ui-state-hover");}).bind("focus.accordion",function(){b(this).addClass("ui-state-focus");}).bind("blur.accordion",function(){b(this).removeClass("ui-state-focus");});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||f.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");b("<span/>").addClass("ui-icon "+f.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(f.icons.header).toggleClass(f.icons.headerSelected);if(b.browser.msie){this.element.find("a").css("zoom","1");}this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(c){return a._keydown(c);}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex","0");}else{this.active.attr("aria-expanded","true").attr("tabIndex","0");}if(!b.browser.safari){this.headers.find("a").attr("tabIndex","-1");}if(f.event){this.headers.bind((f.event)+".accordion",function(c){return a._clickHandler.call(a,c,this);});}},destroy:function(){var d=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var a=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(d.autoHeight||d.fillHeight){a.css("height","");}},_setData:function(a,d){if(a=="alwaysOpen"){a="collapsible";d=!d;}b.widget.prototype._setData.apply(this,arguments);},_keydown:function(j){var l=this.options,k=b.ui.keyCode;if(l.disabled||j.altKey||j.ctrlKey){return;}var i=this.headers.length;var a=this.headers.index(j.target);var h=false;switch(j.keyCode){case k.RIGHT:case k.DOWN:h=this.headers[(a+1)%i];break;case k.LEFT:case k.UP:h=this.headers[(a-1+i)%i];break;case k.SPACE:case k.ENTER:return this._clickHandler({target:j.target},j.target);}if(h){b(j.target).attr("tabIndex","-1");b(h).attr("tabIndex","0");h.focus();return false;}return true;},resize:function(){var h=this.options,g;if(h.fillSpace){if(b.browser.msie){var a=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden");}g=this.element.parent().height();if(b.browser.msie){this.element.parent().css("overflow",a);}this.headers.each(function(){g-=b(this).outerHeight();});var f=0;this.headers.next().each(function(){f=Math.max(f,b(this).innerHeight()-b(this).height());}).height(Math.max(0,g-f)).css("overflow","auto");}else{if(h.autoHeight){g=0;this.headers.next().each(function(){g=Math.max(g,b(this).outerHeight());}).height(g);}}},activate:function(a){var d=this._findActive(a)[0];this._clickHandler({target:d},d);},_findActive:function(a){return a?typeof a=="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?b([]):this.headers.filter(":eq(0)");},_clickHandler:function(l,p){var n=this.options;if(n.disabled){return false;}if(!l.target&&n.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(n.icons.headerSelected).addClass(n.icons.header);this.active.next().addClass("ui-accordion-content-active");var r=this.active.next(),o={options:n,newHeader:b([]),oldHeader:n.active,newContent:b([]),oldContent:r},m=(this.active=b([]));this._toggle(m,r,o);return false;}var q=b(l.currentTarget||p);var a=q[0]==this.active[0];if(this.running||(!n.collapsible&&a)){return false;}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(n.icons.headerSelected).addClass(n.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!a){q.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(n.icons.header).addClass(n.icons.headerSelected);q.next().addClass("ui-accordion-content-active");}var m=q.next(),r=this.active.next(),o={options:n,newHeader:a&&n.collapsible?b([]):q,oldHeader:this.active,newContent:a&&n.collapsible?b([]):m.find("> *"),oldContent:r.find("> *")},k=this.headers.index(this.active[0])>this.headers.index(q[0]);this.active=a?b([]):q;this._toggle(m,r,o,a,k);return false;},_toggle:function(r,a,w,n,o){var t=this.options,q=this;this.toShow=r;this.toHide=a;this.data=w;var s=function(){if(!q){return;}return q._completed.apply(q,arguments);};this._trigger("changestart",null,this.data);this.running=a.size()===0?r.size():a.size();if(t.animated){var v={};if(t.collapsible&&n){v={toShow:b([]),toHide:a,complete:s,down:o,autoHeight:t.autoHeight||t.fillSpace};}else{v={toShow:r,toHide:a,complete:s,down:o,autoHeight:t.autoHeight||t.fillSpace};}if(!t.proxied){t.proxied=t.animated;}if(!t.proxiedDuration){t.proxiedDuration=t.duration;}t.animated=b.isFunction(t.proxied)?t.proxied(v):t.proxied;t.duration=b.isFunction(t.proxiedDuration)?t.proxiedDuration(v):t.proxiedDuration;var p=b.ui.accordion.animations,u=t.duration,x=t.animated;if(!p[x]){p[x]=function(c){this.slide(c,{easing:x,duration:u||700});};}p[x](v);}else{if(t.collapsible&&n){r.toggle();}else{a.hide();r.show();}s(true);}a.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();r.prev().attr("aria-expanded","true").attr("tabIndex","0").focus();},_completed:function(a){var d=this.options;this.running=a?0:--this.running;if(this.running){return;}if(d.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""});}this._trigger("change",null,this.data);}});b.extend(b.ui.accordion,{version:"1.7.2",defaults:{active:null,alwaysOpen:true,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase();}},animations:{slide:function(k,r){k=b.extend({easing:"swing",duration:300},k,r);if(!k.toHide.size()){k.toShow.animate({height:"show"},k);return;}if(!k.toShow.size()){k.toHide.animate({height:"hide"},k);return;}var m=k.toShow.css("overflow"),q,n={},p={},o=["height","paddingTop","paddingBottom"],l;var a=k.toShow;l=a[0].style.width;a.width(parseInt(a.parent().width(),10)-parseInt(a.css("paddingLeft"),10)-parseInt(a.css("paddingRight"),10)-(parseInt(a.css("borderLeftWidth"),10)||0)-(parseInt(a.css("borderRightWidth"),10)||0));b.each(o,function(d,c){p[c]="hide";var e=(""+b.css(k.toShow[0],c)).match(/^([\d+-.]+)(.*)$/);n[c]={value:e[1],unit:e[2]||"px"};});k.toShow.css({height:0,overflow:"hidden"}).show();k.toHide.filter(":hidden").each(k.complete).end().filter(":visible").animate(p,{step:function(c,d){if(d.prop=="height"){q=(d.now-d.start)/(d.end-d.start);}k.toShow[0].style[d.prop]=(q*n[d.prop].value)+n[d.prop].unit;},duration:k.duration,easing:k.easing,complete:function(){if(!k.autoHeight){k.toShow.css("height","");}k.toShow.css("width",l);k.toShow.css({overflow:m});k.complete();}});},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1000:200});},easeslide:function(a){this.slide(a,{easing:"easeinout",duration:700});}}});})(jQuery);(function(ar){var aC="colorbox",aQ="hover",aJ=true,ad=false,Z,aO=!ar.support.opacity,af=aO&&!window.XMLHttpRequest,ai="click.colorbox",az="cbox_open",an="cbox_load",aF="cbox_complete",am="cbox_cleanup",aP="cbox_closed",aq="resize.cbox_resize",ak="resize.cboxie6 scroll.cboxie6",ax,ag,ah,aV,aA,aL,aT,aw,aU,ab,au,aX,aD,aK,aN,ao,aM,aj,aE,aa,aY,aW,aS,aI,ap,aR,aB,ac,aH,ay,at={transition:"elastic",speed:350,width:ad,height:ad,initialWidth:"400",initialHeight:"400",maxWidth:ad,maxHeight:ad,scalePhotos:aJ,scrollbars:aJ,inline:ad,html:ad,iframe:ad,photo:ad,href:ad,title:ad,rel:ad,opacity:0.9,preloading:aJ,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:ad,overlayClose:aJ,slideshow:ad,slideshowAuto:aJ,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow"};function al(a){if(a.keyCode===37){a.preventDefault();aj.click();}else{if(a.keyCode===39){a.preventDefault();aM.click();}}}function av(b,a){a=a==="x"?document.documentElement.clientWidth:document.documentElement.clientHeight;return(typeof b==="string")?(b.match(/%/)?(a/100)*parseInt(b,10):parseInt(b,10)):b;}function aG(a){return ac.photo||a.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i);}function ae(){for(var a in ac){if(typeof(ac[a])==="function"){ac[a]=ac[a].call(aR);}}}Z=ar.fn.colorbox=function(a,b){if(this.length){this.each(function(){var c=ar(this).data(aC)?ar.extend({},ar(this).data(aC),a):ar.extend({},at,a);ar(this).data(aC,c).addClass("cboxelement");});}else{ar(this).data(aC,ar.extend({},at,a));}ar(this).unbind(ai).bind(ai,function(c){aR=this;ac=ar(aR).data(aC);ae();ar().bind("keydown.cbox_close",function(e){if(e.keyCode===27){e.preventDefault();Z.close();}});if(ac.overlayClose){ax.css({cursor:"pointer"}).one("click",Z.close);}aR.blur();ay=b||ad;var d=ac.rel||aR.rel;if(d&&d!=="nofollow"){aU=ar(".cboxelement").filter(function(){var e=ar(this).data(aC).rel||this.rel;return(e===d);});aB=aU.index(aR);if(aB<0){aU=aU.add(aR);aB=aU.length-1;}}else{aU=ar(aR);aB=0;}if(!aH){aH=aJ;ar.event.trigger(az);aE.html(ac.close);ax.css({opacity:ac.opacity}).show();Z.position(av(ac.initialWidth,"x"),av(ac.initialHeight,"y"),0);if(af){ab.bind(ak,function(){ax.css({width:ab.width(),height:ab.height(),top:ab.scrollTop(),left:ab.scrollLeft()});}).trigger(ak);}}Z.slideshow();Z.load();c.preventDefault();});if(a&&a.open){ar(this).triggerHandler(ai);}return this;};Z.init=function(){function a(b){return ar('<div id="cbox'+b+'"/>');}ab=ar(window);ag=ar('<div id="colorbox"/>');ax=a("Overlay").hide();ah=a("Wrapper");aV=a("Content").append(au=a("LoadedContent").css({width:0,height:0}),aX=a("LoadingOverlay"),aD=a("LoadingGraphic"),aK=a("Title"),aN=a("Current"),ao=a("Slideshow"),aM=a("Next"),aj=a("Previous"),aE=a("Close"));ah.append(ar("<div/>").append(a("TopLeft"),aA=a("TopCenter"),a("TopRight")),ar("<div/>").append(aL=a("MiddleLeft"),aV,aT=a("MiddleRight")),ar("<div/>").append(a("BottomLeft"),aw=a("BottomCenter"),a("BottomRight"))).children().children().css({"float":"left"});ar("body").prepend(ax,ag.append(ah));if(aO){ag.addClass("cboxIE");if(af){ax.css("position","absolute");}}aV.children().addClass(aQ).mouseover(function(){ar(this).addClass(aQ);}).mouseout(function(){ar(this).removeClass(aQ);}).hide();aa=aA.height()+aw.height()+aV.outerHeight(aJ)-aV.height();aY=aL.width()+aT.width()+aV.outerWidth(aJ)-aV.width();aW=au.outerHeight(aJ);aS=au.outerWidth(aJ);ag.css({"padding-bottom":aa,"padding-right":aY}).hide();aM.click(Z.next);aj.click(Z.prev);aE.click(Z.close);aV.children().removeClass(aQ);};Z.position=function(a,f,c,d){var h=document.documentElement.clientHeight,e=h/2-f/2,b=document.documentElement.clientWidth/2-a/2,i;if(f>h){e-=(f-h);}if(e<0){e=0;}if(b<0){b=0;}e+=ab.scrollTop();b+=ab.scrollLeft();a=a-aY;f=f-aa;i=(ag.width()===a&&ag.height()===f)?0:c;ah[0].style.width=ah[0].style.height="9999px";function g(j){aA[0].style.width=aw[0].style.width=aV[0].style.width=j.style.width;aD[0].style.height=aX[0].style.height=aV[0].style.height=aL[0].style.height=aT[0].style.height=j.style.height;}ag.dequeue().animate({height:f,width:a,top:e,left:b},{duration:i,complete:function(){g(this);ah[0].style.width=(a+aY)+"px";ah[0].style.height=(f+aa)+"px";if(d){d();}},step:function(){g(this);}});};Z.resize=function(l){if(!aH){return;}var d,e,c,f,i,k,j,n,g,a=ac.transition==="none"?0:ac.speed;ab.unbind(aq);if(!l){g=setTimeout(function(){e=au.children().outerHeight(aJ);au[0].style.height=e+"px";Z.position(au.width()+aS+aY,e+aW+aa,a);},1);return;}au.remove();au=ar(l);function b(){d=ac.width?aI:aI&&aI<au.width()?aI:au.width();return d;}function h(){e=ac.height?ap:ap&&ap<au.height()?ap:au.height();return e;}if(!ac.scrollbars){au.css({overflow:"hidden"});}au.hide().appendTo("body").attr({id:"cboxLoadedContent"}).css({width:b()}).css({height:h()}).prependTo(aV);if(af){ar("select:not(#colorbox select)").filter(function(){return ar(this).css("visibility")!=="hidden";}).css({visibility:"hidden"}).one(am,function(){ar(this).css({visibility:"inherit"});});}n=ar("#cboxPhoto")[0];if(n&&ac.height){c=(e-parseInt(n.style.height,10))/2;n.style.marginTop=(c>0?c:0)+"px";}function m(p){var q=d+aS+aY,o=e+aW+aa;ar().unbind("keydown",al);Z.position(q,o,p,function(){if(!aH){return;}if(aO){if(n){au.fadeIn(100);}ag[0].style.removeAttribute("filter");}aV.children().show();ar("#cboxIframeTemp").after("<iframe id='cboxIframe' name='iframe_"+new Date().getTime()+"' frameborder=0 src='"+(ac.href||aR.href)+"' />").remove();aX.hide();aD.hide();ao.hide();if(aU.length>1){aN.html(ac.current.replace(/\{current\}/,aB+1).replace(/\{total\}/,aU.length));aM.html(ac.next);aj.html(ac.previous);ar().bind("keydown",al);if(ac.slideshow){ao.show();}}else{aN.hide();aM.hide();aj.hide();}aK.html(ac.title||aR.title);ar.event.trigger(aF);if(ay){ay.call(aR);}if(ac.transition==="fade"){ag.fadeTo(a,1,function(){if(aO){ag[0].style.removeAttribute("filter");}});}ab.bind(aq,function(){Z.position(q,o,0);});});}if((ac.transition==="fade"&&ag.fadeTo(a,0,function(){m(0);}))||m(a)){}if(ac.preloading&&aU.length>1){f=aB>0?aU[aB-1]:aU[aU.length-1];k=aB<aU.length-1?aU[aB+1]:aU[0];j=ar(k).data(aC).href||k.href;i=ar(f).data(aC).href||f.href;if(aG(j)){ar("<img />").attr("src",j);}if(aG(i)){ar("<img />").attr("src",i);}}};Z.load=function(){var b,c,a,d,e=Z.resize;aR=aU[aB];ac=ar(aR).data(aC);ae();ar.event.trigger(an);b=ac.height?av(ac.height,"y")-aW-aa:ad;c=ac.width?av(ac.width,"x")-aS-aY:ad;a=ac.href||aR.href;aX.show();aD.show();aE.show();if(ac.maxHeight){ap=ac.maxHeight?av(ac.maxHeight,"y")-aW-aa:ad;b=b&&b<ap?b:ap;}if(ac.maxWidth){aI=ac.maxWidth?av(ac.maxWidth,"x")-aS-aY:ad;c=c&&c<aI?c:aI;}ap=b;aI=c;if(ac.inline){ar('<div id="cboxInlineTemp" />').hide().insertBefore(ar(a)[0]).bind(an+" "+am,function(){au.children().insertBefore(this);ar(this).remove();});e(ar(a).wrapAll("<div/>").parent());}else{if(ac.iframe){e(ar("<div><div id='cboxIframeTemp' /></div>"));}else{if(ac.html){e(ar("<div/>").html(ac.html));}else{if(aG(a)){d=new Image();d.onload=function(){d.onload=null;if((ap||aI)&&ac.scalePhotos){var j=this.width,g=this.height,h=0,i=this,f=function(){g+=g*h;j+=j*h;i.height=g;i.width=j;};if(aI&&j>aI){h=(aI-j)/j;f();}if(ap&&g>ap){h=(ap-g)/g;f();}}e(ar("<div />").css({width:this.width,height:this.height}).append(ar(this).css({width:this.width,height:this.height,display:"block",margin:"auto",border:0}).attr("id","cboxPhoto")));if(aU.length>1){ar(this).css({cursor:"pointer"}).click(Z.next);}if(aO){this.style.msInterpolationMode="bicubic";}};d.src=a;}else{ar("<div />").load(a,function(g,f){if(f==="success"){e(ar(this));}else{e(ar("<p>Request unsuccessful.</p>"));}});}}}}};Z.next=function(){aB=aB<aU.length-1?aB+1:0;Z.load();};Z.prev=function(){aB=aB>0?aB-1:aU.length-1;Z.load();};Z.slideshow=function(){var a,b,d="cboxSlideshow_";ao.bind(am,function(){clearTimeout(b);ao.unbind(aF+" "+an+" click");});function c(){ao.text(ac.slideshowStop).bind(aF,function(){b=setTimeout(Z.next,ac.slideshowSpeed);}).bind(an,function(){clearTimeout(b);}).one("click",function(){a();ar(this).removeClass(aQ);});ag.removeClass(d+"off").addClass(d+"on");}a=function(){clearTimeout(b);ao.text(ac.slideshowStart).unbind(aF+" "+an).one("click",function(){c();b=setTimeout(Z.next,ac.slideshowSpeed);ar(this).removeClass(aQ);});ag.removeClass(d+"on").addClass(d+"off");};if(ac.slideshow&&aU.length>1){if(ac.slideshowAuto){c();}else{a();}}};Z.close=function(){ar.event.trigger(am);aH=ad;ar().unbind("keydown",al).unbind("keydown.cbox_close");ab.unbind(aq+" "+ak);ax.css({cursor:"auto"}).fadeOut("fast");ag.stop(aJ,ad).fadeOut("fast",function(){au.remove();ag.css({opacity:1});aV.children().hide();ar.event.trigger(aP);});};Z.element=function(){return aR;};Z.settings=at;ar(Z.init);}(jQuery));var jaaulde=window.jaaulde||{};jaaulde.utils=jaaulde.utils||{};jaaulde.utils.cookies=(function(){var d=[];var g={hoursToLive:null,path:"/",domain:null,secure:false};var f=function(i){var h;if(typeof i!=="object"||i===null){h=g;}else{h={hoursToLive:(typeof i.hoursToLive==="number"&&i.hoursToLive!==0?i.hoursToLive:g.hoursToLive),path:(typeof i.path==="string"&&i.path!==""?i.path:g.path),domain:(typeof i.domain==="string"&&i.domain!==""?i.domain:g.domain),secure:(typeof i.secure==="boolean"&&i.secure?i.secure:g.secure)};}return h;};var a=function(h){var i=new Date();i.setTime(i.getTime()+(h*60*60*1000));return i.toGMTString();};var b=function(h){h=f(h);return((typeof h.hoursToLive==="number"?"; expires="+a(h.hoursToLive):"")+"; path="+h.path+(typeof h.domain==="string"?"; domain="+h.domain:"")+(h.secure===true?"; secure":""));};var e=function(){d={};var h,j,m,k=document.cookie.split(";");for(var l=0;l<k.length;l=l+1){h=k[l].split("=");j=h[0].replace(/^\s*/,"").replace(/\s*$/,"");m=decodeURIComponent(h[1]);d[j]=m;}return d;};var c=function(){};c.prototype.get=function(h){var i;e();if(typeof h==="string"){i=(typeof d[h]!=="undefined")?d[h]:null;}else{if(typeof h==="object"&&h!==null){i={};for(var j in h){if(typeof d[h[j]]!=="undefined"){i[h[j]]=d[h[j]];}else{i[h[j]]=null;}}}else{i=d;}}return i;};c.prototype.filter=function(j){var i={};e();if(typeof j==="string"){j=new RegExp(j);}for(var h in d){if(h.match(j)){i[h]=d[h];}}return i;};c.prototype.set=function(i,k,j){if(typeof k==="undefined"||k===null){if(typeof j!=="object"||j===null){j={};}k="";j.hoursToLive=-8760;}var h=b(j);document.cookie=i+"="+encodeURIComponent(k)+h;};c.prototype.del=function(h,k){var j={};if(typeof k!=="object"||k===null){k={};}if(typeof h==="boolean"&&h===true){j=this.get();}else{if(typeof h==="string"){j[h]=true;}}for(var i in j){if(typeof i==="string"&&i!==""){this.set(i,null,k);}}};c.prototype.test=function(){var h=false,i="cT",j="data";this.set(i,j);if(this.get(i)===j){this.del(i);h=true;}return h;};c.prototype.setOptions=function(h){if(typeof h!=="object"){h=null;}g=f(h);};return new c();})();(function(){if(window.jQuery){(function(b){b.cookies=jaaulde.utils.cookies;var a={cookify:function(c){return this.each(function(){var d,g=false,h=false,j="",f="",e=["name","id"],k,l;for(d in e){if(!isNaN(d)){j=b(this).attr(e[d]);if(typeof j==="string"&&j!==""){g=true;break;}}}if(g){k=this.nodeName.toLowerCase();if(k!=="input"&&k!=="textarea"&&k!=="select"&&k!=="img"){f=b(this).html();h=true;}else{l=b(this).attr("type");if(typeof l==="string"&&l!==""){l=l.toLowerCase();}if(l!=="radio"&&l!=="checkbox"){f=b(this).val();h=true;}}if(h){if(typeof f!=="string"||f===""){f=null;}b.cookies.set(j,f,c);}}});},cookieFill:function(){return this.each(function(){var g,j=false,d="",h,f=["name","id"],c=0,e;for(g in f){if(!isNaN(g)){d=b(this).attr(f[g]);if(typeof d==="string"&&d!==""){j=true;break;}}}if(j){h=b.cookies.get(d);if(h!==null){e=this.nodeName.toLowerCase();if(e==="input"||e==="textarea"||e==="select"){b(this).val(h);}else{b(this).html(h);}}}c=0;});},cookieBind:function(c){return this.each(function(){b(this).cookieFill().change(function(){b(this).cookify(c);});});}};b.each(a,function(c){b.fn[c]=this;});})(window.jQuery);}})();if(typeof asual=="undefined"){var asual={};}if(typeof asual.util=="undefined"){asual.util={};}asual.util.Browser=new function(){var h=navigator.userAgent.toLowerCase(),g=/webkit/.test(h),k=/opera/.test(h),i=/msie/.test(h)&&!/opera/.test(h),j=/mozilla/.test(h)&&!/(compatible|webkit)/.test(h),l=parseFloat(i?h.substr(h.indexOf("msie")+4):(h.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1]);this.toString=function(){return"[class Browser]";};this.getVersion=function(){return l;};this.isMSIE=function(){return i;};this.isSafari=function(){return g;};this.isOpera=function(){return k;};this.isMozilla=function(){return j;};};asual.util.Events=new function(){var q="DOMContentLoaded",m="onstop",n=window,v=document,p=[],o=asual.util,s=o.Browser,r=s.isMSIE(),u=s.isSafari();this.toString=function(){return"[class Events]";};this.addListener=function(b,c,a){p.push({o:b,t:c,l:a});if(!(c==q&&(r||u))){if(b.addEventListener){b.addEventListener(c,a,false);}else{if(b.attachEvent){b.attachEvent("on"+c,a);}}}};this.removeListener=function(d,a,b){for(var e=0,c;c=p[e];e++){if(c.o==d&&c.t==a&&c.l==b){p.splice(e,1);break;}}if(!(a==q&&(r||u))){if(d.removeEventListener){d.removeEventListener(a,b,false);}else{if(d.detachEvent){d.detachEvent("on"+a,b);}}}};var l=function(){for(var a=0,b;b=p[a];a++){if(b.t!=q){o.Events.removeListener(b.o,b.t,b.l);}}};var t=function(){if(v.readyState=="interactive"){function a(){v.detachEvent(m,a);l();}v.attachEvent(m,a);n.setTimeout(function(){v.detachEvent(m,a);},0);}};if(r||u){(function(){try{if((r&&v.body)||!/loaded|complete/.test(v.readyState)){v.documentElement.doScroll("left");}}catch(a){return setTimeout(arguments.callee,0);}for(var b=0,a;a=p[b];b++){if(a.t==q){a.l.call(null);}}})();}if(r){n.attachEvent("onbeforeunload",t);}this.addListener(n,"unload",l);};asual.util.Functions=new function(){this.toString=function(){return"[class Functions]";};this.bind=function(l,h,k){for(var i=2,j,g=[];j=arguments[i];i++){g.push(j);}return function(){return l.apply(h,g);};};};var SWFAddressEvent=function(h){this.toString=function(){return"[object SWFAddressEvent]";};this.type=h;this.target=[SWFAddress][0];this.value=SWFAddress.getValue();this.path=SWFAddress.getPath();this.pathNames=SWFAddress.getPathNames();this.parameters={};var g=SWFAddress.getParameterNames();for(var f=0,e=g.length;f<e;f++){this.parameters[g[f]]=SWFAddress.getParameter(g[f]);}this.parameterNames=g;};SWFAddressEvent.INIT="init";SWFAddressEvent.CHANGE="change";SWFAddressEvent.INTERNAL_CHANGE="internalChange";SWFAddressEvent.EXTERNAL_CHANGE="externalChange";var SWFAddress=new function(){var _getHash=function(){var index=_l.href.indexOf("#");return index!=-1?_ec(_dc(_l.href.substr(index+1))):"";};var _getWindow=function(){try{top.document;return top;}catch(e){return window;}};var _strictCheck=function(value,force){if(_opts.strict){value=force?(value.substr(0,1)!="/"?"/"+value:value):(value==""?"/":value);}return value;};var _ieLocal=function(value,direction){return(_msie&&_l.protocol=="file:")?(direction?_value.replace(/\?/,"%3F"):_value.replace(/%253F/,"?")):value;};var _searchScript=function(el){if(el.childNodes){for(var i=0,l=el.childNodes.length,s;i<l;i++){if(el.childNodes[i].src){_url=String(el.childNodes[i].src);}if(s=_searchScript(el.childNodes[i])){return s;}}}};var _titleCheck=function(){if(_d.title!=_title&&_d.title.indexOf("#")!=-1){_d.title=_title;}};var _listen=function(){if(!_silent){var hash=_getHash();var diff=!(_value==hash);if(_safari&&_version<523){if(_length!=_h.length){_length=_h.length;if(typeof _stack[_length-1]!=UNDEFINED){_value=_stack[_length-1];}_update.call(this,false);}}else{if(_msie&&diff){if(_version<7){_l.reload();}else{this.setValue(hash);}}else{if(diff){_value=hash;_update.call(this,false);}}}if(_msie){_titleCheck.call(this);}}};var _bodyClick=function(e){if(_popup.length>0){var popup=window.open(_popup[0],_popup[1],eval(_popup[2]));if(typeof _popup[3]!=UNDEFINED){eval(_popup[3]);}}_popup=[];};var _swfChange=function(){for(var i=0,id,obj,value=SWFAddress.getValue(),setter="setSWFAddressValue";id=_ids[i];i++){obj=document.getElementById(id);if(obj){if(obj.parentNode&&typeof obj.parentNode.so!=UNDEFINED){obj.parentNode.so.call(setter,value);}else{if(!(obj&&typeof obj[setter]!=UNDEFINED)){var objects=obj.getElementsByTagName("object");var embeds=obj.getElementsByTagName("embed");obj=((objects[0]&&typeof objects[0][setter]!=UNDEFINED)?objects[0]:((embeds[0]&&typeof embeds[0][setter]!=UNDEFINED)?embeds[0]:null));}if(obj){obj[setter](value);}}}else{if(obj=document[id]){if(typeof obj[setter]!=UNDEFINED){obj[setter](value);}}}}};var _jsDispatch=function(type){this.dispatchEvent(new SWFAddressEvent(type));type=type.substr(0,1).toUpperCase()+type.substr(1);if(typeof this["on"+type]==FUNCTION){this["on"+type]();}};var _jsInit=function(){if(_util.Browser.isSafari()){_d.body.addEventListener("click",_bodyClick);}_jsDispatch.call(this,"init");};var _jsChange=function(){_swfChange();_jsDispatch.call(this,"change");};var _update=function(internal){_jsChange.call(this);if(internal){_jsDispatch.call(this,"internalChange");}else{_jsDispatch.call(this,"externalChange");}_st(_functions.bind(_track,this),10);};var _track=function(){var value=(_l.pathname+(/\/$/.test(_l.pathname)?"":"/")+this.getValue()).replace(/\/\//,"/").replace(/^\/$/,"");var fn=_t[_opts.tracker];if(typeof fn==FUNCTION){fn(value);}else{if(typeof _t.pageTracker!=UNDEFINED&&typeof _t.pageTracker._trackPageview==FUNCTION){_t.pageTracker._trackPageview(value);}else{if(typeof _t.urchinTracker==FUNCTION){_t.urchinTracker(value);}}}};var _htmlWrite=function(){var doc=_frame.contentWindow.document;doc.open();doc.write("<html><head><title>"+_d.title+"</title><script>var "+ID+' = "'+_getHash()+'";</script></head></html>');doc.close();};var _htmlLoad=function(){var win=_frame.contentWindow;var src=win.location.href;_value=(typeof win[ID]!=UNDEFINED?win[ID]:"");if(_value!=_getHash()){_update.call(SWFAddress,false);_l.hash=_ieLocal(_value,TRUE);}};var _load=function(){if(!_loaded){_loaded=TRUE;if(_msie&&_version<8){var frameset=_d.getElementsByTagName("frameset")[0];_frame=_d.createElement((frameset?"":"i")+"frame");if(frameset){frameset.insertAdjacentElement("beforeEnd",_frame);frameset[frameset.cols?"cols":"rows"]+=",0";_frame.src="javascript:false";_frame.noResize=true;_frame.frameBorder=_frame.frameSpacing=0;}else{_frame.src="javascript:false";_frame.style.display="none";_d.body.insertAdjacentElement("afterBegin",_frame);}_st(function(){_events.addListener(_frame,"load",_htmlLoad);if(typeof _frame.contentWindow[ID]==UNDEFINED){_htmlWrite();}},50);}else{if(_safari){if(_version<418){_d.body.innerHTML+='<form id="'+ID+'" style="position:absolute;top:-9999px;" method="get"></form>';_form=_d.getElementById(ID);}if(typeof _l[ID]==UNDEFINED){_l[ID]={};}if(typeof _l[ID][_l.pathname]!=UNDEFINED){_stack=_l[ID][_l.pathname].split(",");}}}_st(_functions.bind(function(){_jsInit.call(this);_jsChange.call(this);_track.call(this);},this),1);if(_msie&&_version>=8){_d.body.onhashchange=_functions.bind(_listen,this);_si(_functions.bind(_titleCheck,this),50);}else{_si(_functions.bind(_listen,this),50);}}};var ID="swfaddress",FUNCTION="function",UNDEFINED="undefined",TRUE=true,FALSE=false,_util=asual.util,_browser=_util.Browser,_events=_util.Events,_functions=_util.Functions,_version=_browser.getVersion(),_msie=_browser.isMSIE(),_mozilla=_browser.isMozilla(),_opera=_browser.isOpera(),_safari=_browser.isSafari(),_supported=FALSE,_t=_getWindow(),_d=_t.document,_h=_t.history,_l=_t.location,_si=setInterval,_st=setTimeout,_dc=decodeURI,_ec=encodeURI,_frame,_form,_url,_title=_d.title,_length=_h.length,_silent=FALSE,_loaded=FALSE,_justset=TRUE,_juststart=TRUE,_ref=this,_stack=[],_ids=[],_popup=[],_listeners={},_value=_getHash(),_opts={history:TRUE,strict:TRUE};if(_msie&&_d.documentMode&&_d.documentMode!=_version){_version=_d.documentMode!=8?7:8;}_supported=(_mozilla&&_version>=1)||(_msie&&_version>=6)||(_opera&&_version>=9.5)||(_safari&&_version>=312);if(_supported){if(_opera){history.navigationMode="compatible";}for(var i=1;i<_length;i++){_stack.push("");}_stack.push(_getHash());if(_msie&&_l.hash!=_getHash()){_l.hash="#"+_ieLocal(_getHash(),TRUE);}_searchScript(document);var _qi=_url?_url.indexOf("?"):-1;if(_qi!=-1){var param,params=_url.substr(_qi+1).split("&");for(var i=0,p;p=params[i];i++){param=p.split("=");if(/^(history|strict)$/.test(param[0])){_opts[param[0]]=(isNaN(param[1])?/^(true|yes)$/i.test(param[1]):(parseInt(param[1])!=0));}if(/^tracker$/.test(param[0])){_opts[param[0]]=param[1];}}}if(_msie){_titleCheck.call(this);}if(window==_t){_events.addListener(document,"DOMContentLoaded",_functions.bind(_load,this));}_events.addListener(_t,"load",_functions.bind(_load,this));}else{if((!_supported&&_l.href.indexOf("#")!=-1)||(_safari&&_version<418&&_l.href.indexOf("#")!=-1&&_l.search!="")){_d.open();_d.write('<html><head><meta http-equiv="refresh" content="0;url='+_l.href.substr(0,_l.href.indexOf("#"))+'" /></head></html>');_d.close();}else{_track();}}this.toString=function(){return"[class SWFAddress]";};this.back=function(){_h.back();};this.forward=function(){_h.forward();};this.up=function(){var path=this.getPath();this.setValue(path.substr(0,path.lastIndexOf("/",path.length-2)+(path.substr(path.length-1)=="/"?1:0)));};this.go=function(delta){_h.go(delta);};this.href=function(url,target){target=typeof target!=UNDEFINED?target:"_self";if(target=="_self"){self.location.href=url;}else{if(target=="_top"){_l.href=url;}else{if(target=="_blank"){window.open(url);}else{_t.frames[target].location.href=url;}}}};this.popup=function(url,name,options,handler){try{var popup=window.open(url,name,eval(options));if(typeof handler!=UNDEFINED){eval(handler);}}catch(ex){}_popup=arguments;};this.getIds=function(){return _ids;};this.getId=function(index){return _ids[0];};this.setId=function(id){_ids[0]=id;};this.addId=function(id){this.removeId(id);_ids.push(id);};this.removeId=function(id){for(var i=0;i<_ids.length;i++){if(id==_ids[i]){_ids.splice(i,1);break;}}};this.addEventListener=function(type,listener){if(typeof _listeners[type]==UNDEFINED){_listeners[type]=[];}_listeners[type].push(listener);};this.removeEventListener=function(type,listener){if(typeof _listeners[type]!=UNDEFINED){for(var i=0,l;l=_listeners[type][i];i++){if(l==listener){break;}}_listeners[type].splice(i,1);}};this.dispatchEvent=function(event){if(this.hasEventListener(event.type)){event.target=this;for(var i=0,l;l=_listeners[event.type][i];i++){l(event);}return TRUE;}return FALSE;};this.hasEventListener=function(type){return(typeof _listeners[type]!=UNDEFINED&&_listeners[type].length>0);};this.getBaseURL=function(){var url=_l.href;if(url.indexOf("#")!=-1){url=url.substr(0,url.indexOf("#"));}if(url.substr(url.length-1)=="/"){url=url.substr(0,url.length-1);}return url;};this.getStrict=function(){return _opts.strict;};this.setStrict=function(strict){_opts.strict=strict;};this.getHistory=function(){return _opts.history;};this.setHistory=function(history){_opts.history=history;};this.getTracker=function(){return _opts.tracker;};this.setTracker=function(tracker){_opts.tracker=tracker;};this.getTitle=function(){return _d.title;};this.setTitle=function(title){if(!_supported){return null;}if(typeof title==UNDEFINED){return;}if(title=="null"){title="";}title=_dc(title);_st(function(){_title=_d.title=title;if(_juststart&&_frame&&_frame.contentWindow&&_frame.contentWindow.document){_frame.contentWindow.document.title=title;_juststart=FALSE;}if(!_justset&&_mozilla){_l.replace(_l.href.indexOf("#")!=-1?_l.href:_l.href+"#");}_justset=FALSE;},10);};this.getStatus=function(){return _t.status;};this.setStatus=function(status){if(!_supported){return null;}if(typeof status==UNDEFINED){return;}if(status=="null"){status="";}status=_dc(status);if(!_safari){status=_strictCheck((status!="null")?status:"",TRUE);if(status=="/"){status="";}if(!(/http(s)?:\/\//.test(status))){var index=_l.href.indexOf("#");status=(index==-1?_l.href:_l.href.substr(0,index))+"#"+status;}_t.status=status;}};this.resetStatus=function(){_t.status="";};this.getValue=function(){if(!_supported){return null;}return _dc(_strictCheck(_ieLocal(_value,FALSE),FALSE));};this.setValue=function(value){if(!_supported){return null;}if(typeof value==UNDEFINED){return;}if(value=="null"){value="";}value=_ec(_dc(_strictCheck(value,TRUE)));if(value=="/"){value="";}if(_value==value){return;}_justset=TRUE;_value=value;_silent=TRUE;_update.call(SWFAddress,true);_stack[_h.length]=_value;if(_safari){if(_opts.history){_l[ID][_l.pathname]=_stack.toString();_length=_h.length+1;if(_version<418){if(_l.search==""){_form.action="#"+_value;_form.submit();}}else{if(_version<523||_value==""){var evt=_d.createEvent("MouseEvents");evt.initEvent("click",TRUE,TRUE);var anchor=_d.createElement("a");anchor.href="#"+_value;anchor.dispatchEvent(evt);}else{_l.hash="#"+_value;}}}else{_l.replace("#"+_value);}}else{if(_value!=_getHash()){if(_opts.history){_l.hash="#"+_dc(_ieLocal(_value,TRUE));}else{_l.replace("#"+_dc(_value));}}}if((_msie&&_version<8)&&_opts.history){_st(_htmlWrite,50);}if(_safari){_st(function(){_silent=FALSE;},1);}else{_silent=FALSE;}};this.getPath=function(){var value=this.getValue();if(value.indexOf("?")!=-1){return value.split("?")[0];}else{if(value.indexOf("#")!=-1){return value.split("#")[0];}else{return value;}}};this.getPathNames=function(){var path=this.getPath(),names=path.split("/");if(path.substr(0,1)=="/"||path.length==0){names.splice(0,1);}if(path.substr(path.length-1,1)=="/"){names.splice(names.length-1,1);}return names;};this.getQueryString=function(){var value=this.getValue(),index=value.indexOf("?");if(index!=-1&&index<value.length){return value.substr(index+1);}};this.getParameter=function(param){var value=this.getValue();var index=value.indexOf("?");if(index!=-1){value=value.substr(index+1);var p,params=value.split("&"),i=params.length,r=[];while(i--){p=params[i].split("=");if(p[0]==param){r.push(p[1]);}}if(r.length!=0){return r.length!=1?r:r[0];}}};this.getParameterNames=function(){var value=this.getValue();var index=value.indexOf("?");var names=[];if(index!=-1){value=value.substr(index+1);if(value!=""&&value.indexOf("=")!=-1){var params=value.split("&"),i=0;while(i<params.length){names.push(params[i].split("=")[0]);i++;}}}return names;};this.onInit=null;this.onChange=null;this.onInternalChange=null;this.onExternalChange=null;(function(){var _args;if(typeof FlashObject!=UNDEFINED){SWFObject=FlashObject;}if(typeof SWFObject!=UNDEFINED&&SWFObject.prototype&&SWFObject.prototype.write){var _s1=SWFObject.prototype.write;SWFObject.prototype.write=function(){_args=arguments;if(this.getAttribute("version").major<8){this.addVariable("$swfaddress",SWFAddress.getValue());((typeof _args[0]=="string")?document.getElementById(_args[0]):_args[0]).so=this;}var success;if(success=_s1.apply(this,_args)){_ref.addId(this.getAttribute("id"));}return success;};}if(typeof swfobject!=UNDEFINED){var _s2r=swfobject.registerObject;swfobject.registerObject=function(){_args=arguments;_s2r.apply(this,_args);_ref.addId(_args[0]);};var _s2c=swfobject.createSWF;swfobject.createSWF=function(){_args=arguments;var swf=_s2c.apply(this,_args);if(swf){_ref.addId(_args[0].id);}return swf;};var _s2e=swfobject.embedSWF;swfobject.embedSWF=function(){_args=arguments;if(typeof _args[8]==UNDEFINED){_args[8]={};}if(typeof _args[8].id==UNDEFINED){_args[8].id=_args[1];}_s2e.apply(this,_args);_ref.addId(_args[8].id);};}if(typeof UFO!=UNDEFINED){var _u=UFO.create;UFO.create=function(){_args=arguments;_u.apply(this,_args);_ref.addId(_args[0].id);};}if(typeof AC_FL_RunContent!=UNDEFINED){var _a=AC_FL_RunContent;AC_FL_RunContent=function(){_args=arguments;_a.apply(this,_args);for(var i=0,l=_args.length;i<l;i++){if(_args[i]=="id"){_ref.addId(_args[i+1]);}}};}})();};Function.prototype.bind=function(b){var a=this;return function(){return a.apply(b,arguments);};};function EventBroadcaster(){this.x={};this.events=[];this.builtinEvts=[];}EventBroadcaster.prototype.getActionIdx=function(d,c,b){if(d){var e=this.events[d];if(e){var a=e.length;for(var f=a-1;f>=0;f--){if(e[f].action==c&&e[f].binding==b){return f;}}}else{return -1;}}return -1;};EventBroadcaster.prototype.addListener=function(c,b,a){if(this.events[c]){if(this.getActionIdx(c,b,a)==-1){var d=this.events[c];d[d.length]={action:b,binding:a};}}else{this.events[c]=[];this.events[c][0]={action:b,binding:a};}};EventBroadcaster.prototype.removeListener=function(c,b,a){if(this.events){if(this.events[c]){var d=this.actionExists(c,b,a);if(d>=0){this.events[c].splice(d,1);}}}};EventBroadcaster.prototype.removeAllListeners=function(a){delete this.events;this.events=[];};EventBroadcaster.prototype.dispatchEvent=function(d,g,b){if(!g){g=window.event;}if(this.events){var c=this.events;if(c){var f=c[d];if(f){for(var h in f){var a=f[h].action;if(f[h].binding){a=a.bind(f[h].binding);}a(g,b);}}}}};swell={};swell.config={urlShortening:{login:"jayk",apiKey:"R_f1ac808d96b3430478cc0b7453905b5b"}};swell.cookies={homePageVisitor:{get:function(){var a=$.cookies.get("homePageVisitor");return a!=null?a:0;},set:function(a){$.cookies.del("homePageVisitor",{domain:swell.config.BaseDomain,secure:false,hoursToLive:720,path:"/"});$.cookies.set("homePageVisitor",a,{domain:swell.config.BaseDomain,secure:false,hoursToLive:43200,path:"/"});},del:function(){$.cookies.del("homePageVisitor",{domain:swell.config.BaseDomain,secure:false,hoursToLive:720,path:"/"});}},articlesFromHome:{get:function(){var a=$.cookies.get("articlesFromHome");return a!=null?a:false;},set:function(a){$.cookies.del("articlesFromHome",{domain:swell.config.BaseDomain,secure:false,hoursToLive:720,path:"/"});$.cookies.set("articlesFromHome",a,{domain:swell.config.BaseDomain,secure:false,hoursToLive:43200,path:"/"});},del:function(){$.cookies.del("articlesFromHome",{domain:swell.config.BaseDomain,secure:false,hoursToLive:720,path:"/"});}},segment:{get:function(){return $.cookies.get("spendType");},set:function(a){$.cookies.del("spendType",{domain:swell.config.BaseDomain,secure:false,hoursToLive:720,path:"/"});$.cookies.set("spendType",a,{domain:swell.config.BaseDomain,secure:false,hoursToLive:720,path:"/"});},del:function(){$.cookies.del("spendType",{domain:swell.config.BaseDomain,secure:false,hoursToLive:720,path:"/"});}},location:{get:function(){var a=$.cookies.get("loc");if(a==null){a="U.S.";}return a;}},login:{get:function(){var a,b,f,c=document.cookie.split(";");for(var d=0;d<c.length;d++){a=c[d].split("=");b=a[0].replace(/^\s*/,"").replace(/\s*$/,"");f="";if(b==swell.config.PluckCookieName){for(var e=1;e<a.length;e++){if(f!=""){f=f+"=";}f=f+decodeURIComponent(a[e]);}return f;}}return null;},set:function(a){logger.log("setting user cookie with options");$.cookies.set(swell.config.PluckCookieName,a,{domain:swell.config.BaseDomain,secure:false,hoursToLive:0,path:"/"});},del:function(){$.cookies.del(swell.config.PluckCookieName,{domain:swell.config.BaseDomain,secure:false,hoursToLive:0,path:"/"});}}};swell.eventSequencer=function(b,a){this.sequenceId=b,this.eventChain=a;this.currentEvent=0;};swell.eventSequencer.prototype={getEvArgs:function(a){return $.extend(this.eventChain[a].eventArgs,{sequenceId:this.sequenceId});},startEventSequence:function(){var a=this.getEvArgs(0);swell.events.raiseEvent(this.eventChain[0].eventName,a);},eventComplete:function(d){var a=this.currentEvent+1;if(a<this.eventChain.length){var b=this.getEvArgs(a);var c=this.eventChain[++this.currentEvent];swell.events.raiseEvent(c.eventName,b);}else{swell.events.raiseEvent("sequenceCompleted",this.sequenceId);}}};swell.events={broadcaster:new EventBroadcaster(),eventSequencers:{},raiseEvent:function(c,a,b){return this.broadcaster.dispatchEvent(c,a,b);},registerListener:function(b,a,c){return this.broadcaster.addListener(b,a,c);},raiseEventSequence:function(a){var b="ev-seq-"+new Date().getTime();this.eventSequencers[b]=new swell.eventSequencer(b,a);this.eventSequencers[b].startEventSequence();},eventCompleted:function(a){logger.log("event completed raised:",a);logger.log("sequencers:",this.eventSequencers);var b=this.eventSequencers[a.sequenceId];if(b){b.eventComplete(a.eventName);}},sequenceCompleted:function(a){delete this.eventSequencers[a];},init:function(){swell.events.registerListener("eventCompleted",this.eventCompleted,this);swell.events.registerListener("sequenceCompleted",this.sequenceCompleted,this);}};swell.loadMsnBar=function(){$("<div>").load(String.format("/msgmodal/msnbar?{0}",Math.floor(Math.random()*99999999999)),function(){$("body").addClass("msn-bar");}).insertBefore($(".site-wrap"));};swell.init=function(){swell.events.init();if(document.referrer==""){logger.log("inital visit no referrer - setting cookie");$.cookies.set("rfr","none"+"|"+$.trim($("title").html())+": "+window.location.href,{domain:swell.config.BaseDomain,secure:false,hoursToLive:0,path:"/"});}else{if((document.referrer.indexOf(swell.config.BaseDomain)==-1)){logger.log("initial visit came from another site setting location");$.cookies.set("rfr",document.referrer+"|"+$.trim($("title").html())+":"+window.location.href,{domain:swell.config.BaseDomain,secure:false,hoursToLive:0,path:"/"});}}$(document).ready(function(){var b=$.cookies.get("rfr");if(b!==null){var a=b.substring(0,b.indexOf("|"));if((a.indexOf("msn.com")!=-1)||(a.indexOf("msnmoney.com")!=-1)){swell.loadMsnBar();}}$("a[rel='external']").each(function(c,d){$(d).attr("target","_blank");});});};