if(!this.JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}})();
/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
var swfobject=function(){var J="undefined",x="object",Y="Shockwave Flash",ac="ShockwaveFlash.ShockwaveFlash",w="application/x-shockwave-flash",X="SWFObjectExprInst",D="onreadystatechange",U=window,n=document,z=navigator,Z=false,aa=[j],u=[],T=[],O=[],p,W,K,H,P=false,a=false,r,M,q=true,S=function(){var ag=typeof n.getElementById!=J&&typeof n.getElementsByTagName!=J&&typeof n.createElement!=J,an=z.userAgent.toLowerCase(),ae=z.platform.toLowerCase(),ak=ae?/win/.test(ae):/win/.test(an),ai=ae?/mac/.test(ae):/mac/.test(an),al=/webkit/.test(an)?parseFloat(an.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ad=!+"\v1",am=[0,0,0],ah=null;if(typeof z.plugins!=J&&typeof z.plugins[Y]==x){ah=z.plugins[Y].description;if(ah&&!(typeof z.mimeTypes!=J&&z.mimeTypes[w]&&!z.mimeTypes[w].enabledPlugin)){Z=true;ad=false;ah=ah.replace(/^.*\s+(\S+\s+\S+$)/,"$1");am[0]=parseInt(ah.replace(/^(.*)\..*$/,"$1"),10);am[1]=parseInt(ah.replace(/^.*\.(.*)\s.*$/,"$1"),10);am[2]=/[a-zA-Z]/.test(ah)?parseInt(ah.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof U.ActiveXObject!=J){try{var aj=new ActiveXObject(ac);if(aj){ah=aj.GetVariable("$version");if(ah){ad=true;ah=ah.split(" ")[1].split(",");am=[parseInt(ah[0],10),parseInt(ah[1],10),parseInt(ah[2],10)]}}}catch(af){}}}return{w3:ag,pv:am,wk:al,ie:ad,win:ak,mac:ai}}(),o=function(){if(!S.w3){return}if((typeof n.readyState!=J&&n.readyState=="complete")||(typeof n.readyState==J&&(n.getElementsByTagName("body")[0]||n.body))){g()}if(!P){if(typeof n.addEventListener!=J){n.addEventListener("DOMContentLoaded",g,false)}if(S.ie&&S.win){n.attachEvent(D,function(){if(n.readyState=="complete"){n.detachEvent(D,arguments.callee);g()}});if(U==top){(function(){if(P){return}try{n.documentElement.doScroll("left")}catch(ad){setTimeout(arguments.callee,0);return}g()})()}}if(S.wk){(function(){if(P){return}if(!/loaded|complete/.test(n.readyState)){setTimeout(arguments.callee,0);return}g()})()}y(g)}}();function g(){if(P){return}try{var af=n.getElementsByTagName("body")[0].appendChild(I("span"));af.parentNode.removeChild(af)}catch(ag){return}P=true;var ad=aa.length;for(var ae=0;ae<ad;ae++){aa[ae]()}}function Q(ad){if(P){ad()}else{aa[aa.length]=ad}}function y(ae){if(typeof U.addEventListener!=J){U.addEventListener("load",ae,false)}else{if(typeof n.addEventListener!=J){n.addEventListener("load",ae,false)}else{if(typeof U.attachEvent!=J){l(U,"onload",ae)}else{if(typeof U.onload=="function"){var ad=U.onload;U.onload=function(){ad();ae()}}else{U.onload=ae}}}}}function j(){if(Z){ab()}else{N()}}function ab(){var ad=n.getElementsByTagName("body")[0];var ag=I(x);ag.setAttribute("type",w);var af=ad.appendChild(ag);if(af){var ae=0;(function(){if(typeof af.GetVariable!=J){var ah=af.GetVariable("$version");if(ah){ah=ah.split(" ")[1].split(",");S.pv=[parseInt(ah[0],10),parseInt(ah[1],10),parseInt(ah[2],10)]}}else{if(ae<10){ae++;setTimeout(arguments.callee,10);return}}ad.removeChild(ag);af=null;N()})()}else{N()}}function N(){var am=u.length;if(am>0){for(var al=0;al<am;al++){var ae=u[al].id;var ah=u[al].callbackFn;var ag={success:false,id:ae};if(S.pv[0]>0){var ak=d(ae);if(ak){if(L(u[al].swfVersion)&&!(S.wk&&S.wk<312)){C(ae,true);if(ah){ag.success=true;ag.ref=F(ae);ah(ag)}}else{if(u[al].expressInstall&&G()){var ao={};ao.data=u[al].expressInstall;ao.width=ak.getAttribute("width")||"0";ao.height=ak.getAttribute("height")||"0";if(ak.getAttribute("class")){ao.styleclass=ak.getAttribute("class")}if(ak.getAttribute("align")){ao.align=ak.getAttribute("align")}var an={};var ad=ak.getElementsByTagName("param");var ai=ad.length;for(var aj=0;aj<ai;aj++){if(ad[aj].getAttribute("name").toLowerCase()!="movie"){an[ad[aj].getAttribute("name")]=ad[aj].getAttribute("value")}}V(ao,an,ae,ah)}else{v(ak);if(ah){ah(ag)}}}}}else{C(ae,true);if(ah){var af=F(ae);if(af&&typeof af.SetVariable!=J){ag.success=true;ag.ref=af}ah(ag)}}}}}function F(ag){var ad=null;var ae=d(ag);if(ae&&ae.nodeName=="OBJECT"){if(typeof ae.SetVariable!=J){ad=ae}else{var af=ae.getElementsByTagName(x)[0];if(af){ad=af}}}return ad}function G(){return !a&&L("6.0.65")&&(S.win||S.mac)&&!(S.wk&&S.wk<312)}function V(ag,ah,ad,af){a=true;K=af||null;H={success:false,id:ad};var ak=d(ad);if(ak){if(ak.nodeName=="OBJECT"){p=h(ak);W=null}else{p=ak;W=ad}ag.id=X;if(typeof ag.width==J||(!/%$/.test(ag.width)&&parseInt(ag.width,10)<310)){ag.width="310"}if(typeof ag.height==J||(!/%$/.test(ag.height)&&parseInt(ag.height,10)<137)){ag.height="137"}n.title=n.title.slice(0,47)+" - Flash Player Installation";var aj=S.ie&&S.win?"ActiveX":"PlugIn",ai="MMredirectURL="+U.location.toString().replace(/&/g,"%26")+"&MMplayerType="+aj+"&MMdoctitle="+n.title;if(typeof ah.flashvars!=J){ah.flashvars+="&"+ai}else{ah.flashvars=ai}if(S.ie&&S.win&&ak.readyState!=4){var ae=I("div");ad+="SWFObjectNew";ae.setAttribute("id",ad);ak.parentNode.insertBefore(ae,ak);ak.style.display="none";(function(){if(ak.readyState==4){ak.parentNode.removeChild(ak)}else{setTimeout(arguments.callee,10)}})()}A(ag,ah,ad)}}function v(ae){if(S.ie&&S.win&&ae.readyState!=4){var ad=I("div");ae.parentNode.insertBefore(ad,ae);ad.parentNode.replaceChild(h(ae),ad);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}else{ae.parentNode.replaceChild(h(ae),ae)}}function h(ah){var ag=I("div");if(S.win&&S.ie){ag.innerHTML=ah.innerHTML}else{var ae=ah.getElementsByTagName(x)[0];if(ae){var ai=ae.childNodes;if(ai){var ad=ai.length;for(var af=0;af<ad;af++){if(!(ai[af].nodeType==1&&ai[af].nodeName=="PARAM")&&!(ai[af].nodeType==8)){ag.appendChild(ai[af].cloneNode(true))}}}}}return ag}function A(ao,am,ae){var ad,ag=d(ae);if(S.wk&&S.wk<312){return ad}if(ag){if(typeof ao.id==J){ao.id=ae}if(S.ie&&S.win){var an="";for(var ak in ao){if(ao[ak]!=Object.prototype[ak]){if(ak.toLowerCase()=="data"){am.movie=ao[ak]}else{if(ak.toLowerCase()=="styleclass"){an+=' class="'+ao[ak]+'"'}else{if(ak.toLowerCase()!="classid"){an+=" "+ak+'="'+ao[ak]+'"'}}}}}var al="";for(var aj in am){if(am[aj]!=Object.prototype[aj]){al+='<param name="'+aj+'" value="'+am[aj]+'" />'}}ag.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+an+">"+al+"</object>";T[T.length]=ao.id;ad=d(ao.id)}else{var af=I(x);af.setAttribute("type",w);for(var ai in ao){if(ao[ai]!=Object.prototype[ai]){if(ai.toLowerCase()=="styleclass"){af.setAttribute("class",ao[ai])}else{if(ai.toLowerCase()!="classid"){af.setAttribute(ai,ao[ai])}}}}for(var ah in am){if(am[ah]!=Object.prototype[ah]&&ah.toLowerCase()!="movie"){f(af,ah,am[ah])}}ag.parentNode.replaceChild(af,ag);ad=af}}return ad}function f(af,ad,ae){var ag=I("param");ag.setAttribute("name",ad);ag.setAttribute("value",ae);af.appendChild(ag)}function E(ae){var ad=d(ae);if(ad&&ad.nodeName=="OBJECT"){if(S.ie&&S.win){ad.style.display="none";(function(){if(ad.readyState==4){c(ae)}else{setTimeout(arguments.callee,10)}})()}else{ad.parentNode.removeChild(ad)}}}function c(af){var ae=d(af);if(ae){for(var ad in ae){if(typeof ae[ad]=="function"){ae[ad]=null}}ae.parentNode.removeChild(ae)}}function d(af){var ad=null;try{ad=n.getElementById(af)}catch(ae){}return ad}function I(ad){return n.createElement(ad)}function l(af,ad,ae){af.attachEvent(ad,ae);O[O.length]=[af,ad,ae]}function L(af){var ae=S.pv,ad=af.split(".");ad[0]=parseInt(ad[0],10);ad[1]=parseInt(ad[1],10)||0;ad[2]=parseInt(ad[2],10)||0;return(ae[0]>ad[0]||(ae[0]==ad[0]&&ae[1]>ad[1])||(ae[0]==ad[0]&&ae[1]==ad[1]&&ae[2]>=ad[2]))?true:false}function B(ai,ae,aj,ah){if(S.ie&&S.mac){return}var ag=n.getElementsByTagName("head")[0];if(!ag){return}var ad=(aj&&typeof aj=="string")?aj:"screen";if(ah){r=null;M=null}if(!r||M!=ad){var af=I("style");af.setAttribute("type","text/css");af.setAttribute("media",ad);r=ag.appendChild(af);if(S.ie&&S.win&&typeof n.styleSheets!=J&&n.styleSheets.length>0){r=n.styleSheets[n.styleSheets.length-1]}M=ad}if(S.ie&&S.win){if(r&&typeof r.addRule==x){r.addRule(ai,ae)}}else{if(r&&typeof n.createTextNode!=J){r.appendChild(n.createTextNode(ai+" {"+ae+"}"))}}}function C(af,ad){if(!q){return}var ae=ad?"visible":"hidden";if(P&&d(af)){d(af).style.visibility=ae}else{B("#"+af,"visibility:"+ae)}}function R(ae){var af=/[\\\"<>\.;]/;var ad=af.exec(ae)!=null;return ad&&typeof encodeURIComponent!=J?encodeURIComponent(ae):ae}var e=function(){if(S.ie&&S.win){window.attachEvent("onunload",function(){var ai=O.length;for(var ah=0;ah<ai;ah++){O[ah][0].detachEvent(O[ah][1],O[ah][2])}var af=T.length;for(var ag=0;ag<af;ag++){E(T[ag])}for(var ae in S){S[ae]=null}S=null;for(var ad in swfobject){swfobject[ad]=null}swfobject=null})}}();return{registerObject:function(ah,ad,ag,af){if(S.w3&&ah&&ad){var ae={};ae.id=ah;ae.swfVersion=ad;ae.expressInstall=ag;ae.callbackFn=af;u[u.length]=ae;C(ah,false)}else{if(af){af({success:false,id:ah})}}},getObjectById:function(ad){if(S.w3){return F(ad)}},embedSWF:function(ah,an,ak,am,ae,ag,af,aj,al,ai){var ad={success:false,id:an};if(S.w3&&!(S.wk&&S.wk<312)&&ah&&an&&ak&&am&&ae){C(an,false);Q(function(){ak+="";am+="";var ap={};if(al&&typeof al===x){for(var ar in al){ap[ar]=al[ar]}}ap.data=ah;ap.width=ak;ap.height=am;var at={};if(aj&&typeof aj===x){for(var aq in aj){at[aq]=aj[aq]}}if(af&&typeof af===x){for(var ao in af){if(typeof at.flashvars!=J){at.flashvars+="&"+ao+"="+af[ao]}else{at.flashvars=ao+"="+af[ao]}}}if(L(ae)){var au=A(ap,at,an);if(ap.id==an){C(an,true)}ad.success=true;ad.ref=au}else{if(ag&&G()){ap.data=ag;V(ap,at,an,ai);return}else{C(an,true)}}if(ai){ai(ad)}})}else{if(ai){ai(ad)}}},switchOffAutoHideShow:function(){q=false},ua:S,getFlashPlayerVersion:function(){return{major:S.pv[0],minor:S.pv[1],release:S.pv[2]}},hasFlashPlayerVersion:L,createSWF:function(af,ae,ad){if(S.w3){return A(af,ae,ad)}else{return undefined}},showExpressInstall:function(af,ag,ad,ae){if(S.w3&&G()){V(af,ag,ad,ae)}},removeSWF:function(ad){if(S.w3){E(ad)}},createCSS:function(ag,af,ae,ad){if(S.w3){B(ag,af,ae,ad)}},addDomLoadEvent:Q,addLoadEvent:y,getQueryParamValue:function(ag){var af=n.location.search||n.location.hash;if(af){if(/\?/.test(af)){af=af.split("?")[1]}if(ag==null){return R(af)}var ae=af.split("&");for(var ad=0;ad<ae.length;ad++){if(ae[ad].substring(0,ae[ad].indexOf("="))==ag){return R(ae[ad].substring((ae[ad].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var ad=d(X);if(ad&&p){ad.parentNode.replaceChild(p,ad);if(W){C(W,true);if(S.ie&&S.win){p.style.display="block"}}if(K){K(H)}}a=false}}}}();if(typeof jwplayer=="undefined"){var jwplayer=function(a){if(jwplayer.api){return jwplayer.api.selectPlayer(a)}};var $jw=jwplayer;jwplayer.version="5.8.2011 (Licensed version)";jwplayer.vid=document.createElement("video");jwplayer.audio=document.createElement("audio");jwplayer.source=document.createElement("source");(function(e){e.utils=function(){};e.utils.typeOf=function(d){var c=typeof d;if(c==="object"){if(d){if(d instanceof Array){c="array"}}else{c="null"}}return c};e.utils.extend=function(){var g=e.utils.extend["arguments"];if(g.length>1){for(var d=1;d<g.length;d++){for(var c in g[d]){g[0][c]=g[d][c]}}return g[0]}return null};e.utils.clone=function(d){var f;var j=e.utils.clone["arguments"];if(j.length==1){switch(e.utils.typeOf(j[0])){case"object":f={};for(var c in j[0]){f[c]=e.utils.clone(j[0][c])}break;case"array":f=[];for(var c in j[0]){f[c]=e.utils.clone(j[0][c])}break;default:return j[0];break}}return f};e.utils.extension=function(c){if(!c){return""}c=c.substring(c.lastIndexOf("/")+1,c.length);c=c.split("?")[0];if(c.lastIndexOf(".")>-1){return c.substr(c.lastIndexOf(".")+1,c.length).toLowerCase()}return};e.utils.html=function(c,d){c.innerHTML=d};e.utils.wrap=function(c,d){if(c.parentNode){c.parentNode.replaceChild(d,c)}d.appendChild(c)};e.utils.ajax=function(d,c,f){var l;if(window.XMLHttpRequest){l=new XMLHttpRequest()}else{l=new ActiveXObject("Microsoft.XMLHTTP")}l.onreadystatechange=function(){if(l.readyState===4){if(l.status===200){if(c){if(!e.utils.exists(l.responseXML)){try{if(window.DOMParser){var h=(new DOMParser()).parseFromString(l.responseText,"text/xml");if(h){l=e.utils.extend({},l,{responseXML:h})}}else{h=new ActiveXObject("Microsoft.XMLDOM");h.async="false";h.loadXML(l.responseText);l=e.utils.extend({},l,{responseXML:h})}}catch(j){if(f){f(d)}}}c(l)}}else{if(f){f(d)}}}};try{l.open("GET",d,true);l.send(null)}catch(g){if(f){f(d)}}return l};e.utils.load=function(c,d,g){c.onreadystatechange=function(){if(c.readyState===4){if(c.status===200){if(d){d()}}else{if(g){g()}}}}};e.utils.find=function(d,c){return d.getElementsByTagName(c)};e.utils.append=function(c,d){c.appendChild(d)};e.utils.isIE=function(){return((!+"\v1")||(typeof window.ActiveXObject!="undefined"))};e.utils.userAgentMatch=function(d){var c=navigator.userAgent.toLowerCase();return(c.match(d)!==null)};e.utils.isIOS=function(){return e.utils.userAgentMatch(/iP(hone|ad|od)/i)};e.utils.isIPad=function(){return e.utils.userAgentMatch(/iPad/i)};e.utils.isIPod=function(){return e.utils.userAgentMatch(/iP(hone|od)/i)};e.utils.isAndroid=function(){return e.utils.userAgentMatch(/android/i)};e.utils.isLegacyAndroid=function(){return e.utils.userAgentMatch(/android 2.[012]/i)};e.utils.isBlackberry=function(){return e.utils.userAgentMatch(/blackberry/i)};e.utils.isMobile=function(){return e.utils.isIOS()};e.utils.getFirstPlaylistItemFromConfig=function(g){var c={};var d;if(g.playlist&&g.playlist.length){d=g.playlist[0]}else{d=g}c.file=d.file;c.levels=d.levels;c.streamer=d.streamer;c.playlistfile=d.playlistfile;c.provider=d.provider;if(!c.provider){if(c.file&&(c.file.toLowerCase().indexOf("youtube.com")>-1||c.file.toLowerCase().indexOf("youtu.be")>-1)){c.provider="youtube"}if(c.streamer&&c.streamer.toLowerCase().indexOf("rtmp://")==0){c.provider="rtmp"}if(d.type){c.provider=d.type.toLowerCase()}}if(c.provider=="audio"){c.provider="sound"}return c};e.utils.getOuterHTML=function(c){if(c.outerHTML){return c.outerHTML}else{try{return new XMLSerializer().serializeToString(c)}catch(d){return""}}};e.utils.setOuterHTML=function(c,l){if(c.outerHTML){c.outerHTML=l}else{var d=document.createElement("div");d.innerHTML=l;var f=document.createRange();f.selectNodeContents(d);var g=f.extractContents();c.parentNode.insertBefore(g,c);c.parentNode.removeChild(c)}};e.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined"){return true}if(typeof window.ActiveXObject!="undefined"){try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");return true}catch(c){}}return false};e.utils.getPluginName=function(c){if(c.lastIndexOf("/")>=0){c=c.substring(c.lastIndexOf("/")+1,c.length)}if(c.lastIndexOf("-")>=0){c=c.substring(0,c.lastIndexOf("-"))}if(c.lastIndexOf(".swf")>=0){c=c.substring(0,c.lastIndexOf(".swf"))}if(c.lastIndexOf(".js")>=0){c=c.substring(0,c.lastIndexOf(".js"))}return c};e.utils.getPluginVersion=function(c){if(c.lastIndexOf("-")>=0){if(c.lastIndexOf(".js")>=0){return c.substring(c.lastIndexOf("-")+1,c.lastIndexOf(".js"))}else{if(c.lastIndexOf(".swf")>=0){return c.substring(c.lastIndexOf("-")+1,c.lastIndexOf(".swf"))}else{return c.substring(c.lastIndexOf("-")+1)}}}return""};e.utils.getAbsolutePath=function(d,g){if(!e.utils.exists(g)){g=document.location.href}if(!e.utils.exists(d)){return undefined}if(a(d)){return d}var f=g.substring(0,g.indexOf("://")+3);var c=g.substring(f.length,g.indexOf("/",f.length+1));var j;if(d.indexOf("/")===0){j=d.split("/")}else{var r=g.split("?")[0];r=r.substring(f.length+c.length+1,r.lastIndexOf("/"));j=r.split("/").concat(d.split("/"))}var h=[];for(var u=0;u<j.length;u++){if(!j[u]||!e.utils.exists(j[u])||j[u]=="."){continue}else{if(j[u]==".."){h.pop()}else{h.push(j[u])}}}return f+c+"/"+h.join("/")};function a(c){if(!e.utils.exists(c)){return}var d=c.indexOf("://");var g=c.indexOf("?");return(d>0&&(g<0||(g>d)))}e.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};e.utils.getPluginPathType=function(j){if(typeof j!="string"){return}j=j.split("?")[0];var c=j.indexOf("://");if(c>0){return e.utils.pluginPathType.ABSOLUTE}var f=j.indexOf("/");var d=e.utils.extension(j);if(c<0&&f<0&&(!d||!isNaN(d))){return e.utils.pluginPathType.CDN}return e.utils.pluginPathType.RELATIVE};e.utils.mapEmpty=function(c){for(var d in c){return false}return true};e.utils.mapLength=function(c){var g=0;for(var d in c){g++}return g};e.utils.log=function(d,c){if(typeof console!="undefined"&&typeof console.log!="undefined"){if(c){console.log(d,c)}else{console.log(d)}}};e.utils.css=function(g,d,f){if(e.utils.exists(g)){for(var l in d){try{if(typeof d[l]==="undefined"){continue}else{if(typeof d[l]=="number"&&!(l=="zIndex"||l=="opacity")){if(isNaN(d[l])){continue}if(l.match(/color/i)){d[l]="#"+e.utils.strings.pad(d[l].toString(16),6)}else{d[l]=Math.ceil(d[l])+"px"}}}g.style[l]=d[l]}catch(c){}}}};e.utils.isYouTube=function(c){return(c.indexOf("youtube.com")>-1||c.indexOf("youtu.be")>-1)};e.utils.transform=function(h,g,d,c,f){if(!e.utils.exists(g)){g=1}if(!e.utils.exists(d)){d=1}if(!e.utils.exists(c)){c=0}if(!e.utils.exists(f)){f=0}if(g==1&&d==1&&c==0&&f==0){h.style.webkitTransform="";h.style.MozTransform="";h.style.OTransform=""}else{var n="scale("+g+","+d+") translate("+c+"px,"+f+"px)";h.style.webkitTransform=n;h.style.MozTransform=n;h.style.OTransform=n}};e.utils.stretch=function(B,l,j,n,c,o){if(typeof j=="undefined"||typeof n=="undefined"||typeof c=="undefined"||typeof o=="undefined"){return}var g=j/c;var h=n/o;var D=0;var C=0;var f={};if(l.parentElement){l.parentElement.style.overflow="hidden"}e.utils.transform(l);switch(B.toUpperCase()){case e.utils.stretching.NONE:f.width=c;f.height=o;f.top=(n-f.height)/2;f.left=(j-f.width)/2;break;case e.utils.stretching.UNIFORM:if(g>h){f.width=c*h;f.height=o*h}else{f.width=c*g;f.height=o*g}f.top=(n-f.height)/2;f.left=(j-f.width)/2;break;case e.utils.stretching.FILL:if(g>h){f.width=c*g;f.height=o*g}else{f.width=c*h;f.height=o*h}f.top=(n-f.height)/2;f.left=(j-f.width)/2;break;case e.utils.stretching.EXACTFIT:f.width=c;f.height=o;var d=Math.round((c/2)*(1-1/g));var p=Math.round((o/2)*(1-1/h));e.utils.transform(l,g,h,d,p);f.top=f.left=0;break;default:break}e.utils.css(l,f)};e.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};e.utils.deepReplaceKeyName=function(g,h,d){switch(e.utils.typeOf(g)){case"array":for(var c=0;c<g.length;c++){g[c]=e.utils.deepReplaceKeyName(g[c],h,d)}break;case"object":for(var n in g){var f=n.replace(new RegExp(h,"g"),d);g[f]=e.utils.deepReplaceKeyName(g[n],h,d);if(n!=f){delete g[n]}}break}return g};e.utils.isInArray=function(d,c){if(!(d)||!(d instanceof Array)){return false}for(var g=0;g<d.length;g++){if(c===d[g]){return true}}return false};e.utils.exists=function(c){switch(typeof(c)){case"string":return(c.length>0);break;case"object":return(c!==null);case"undefined":return false}return true};e.utils.empty=function(c){if(typeof c.hasChildNodes=="function"){while(c.hasChildNodes()){c.removeChild(c.firstChild)}}};e.utils.parseDimension=function(c){if(typeof c=="string"){if(c===""){return 0}else{if(c.lastIndexOf("%")>-1){return c}else{return parseInt(c.replace("px",""),10)}}}return c};e.utils.getDimensions=function(c){if(c&&c.style){return{x:e.utils.parseDimension(c.style.left),y:e.utils.parseDimension(c.style.top),width:e.utils.parseDimension(c.style.width),height:e.utils.parseDimension(c.style.height)}}else{return{}}};e.utils.getElementWidth=function(c){if(!c){return null}else{if(c==document.body){return e.utils.parentNode(c).clientWidth}else{if(c.clientWidth>0){return c.clientWidth}else{if(c.style){return e.utils.parseDimension(c.style.width)}else{return null}}}}};e.utils.getElementHeight=function(c){if(!c){return null}else{if(c==document.body){return e.utils.parentNode(c).clientHeight}else{if(c.clientHeight>0){return c.clientHeight}else{if(c.style){return e.utils.parseDimension(c.style.height)}else{return null}}}}};e.utils.timeFormat=function(c){str="00:00";if(c>0){str=Math.floor(c/60)<10?"0"+Math.floor(c/60)+":":Math.floor(c/60)+":";str+=Math.floor(c%60)<10?"0"+Math.floor(c%60):Math.floor(c%60)}return str};e.utils.useNativeFullscreen=function(){return(navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")==0)};e.utils.parentNode=function(c){if(!c){return docuemnt.body}else{if(c.parentNode){return c.parentNode}else{if(c.parentElement){return c.parentElement}else{return c}}}};e.utils.getBoundingClientRect=function(c){if(typeof c.getBoundingClientRect=="function"){return c.getBoundingClientRect()}else{return{left:c.offsetLeft+document.body.scrollLeft,top:c.offsetTop+document.body.scrollTop,width:c.offsetWidth,height:c.offsetHeight}}}})(jwplayer);(function(a){a.events=function(){};a.events.COMPLETE="COMPLETE";a.events.ERROR="ERROR"})(jwplayer);(function(jwplayer){jwplayer.events.eventdispatcher=function(debug){var _debug=debug;var _listeners;var _globallisteners;this.resetEventListeners=function(){_listeners={};_globallisteners=[]};this.resetEventListeners();this.addEventListener=function(type,listener,count){try{if(!jwplayer.utils.exists(_listeners[type])){_listeners[type]=[]}if(typeof(listener)=="string"){eval("listener = "+listener)}_listeners[type].push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return false};this.removeEventListener=function(type,listener){if(!_listeners[type]){return}try{for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){if(_listeners[type][listenerIndex].listener.toString()==listener.toString()){_listeners[type].splice(listenerIndex,1);break}}}catch(err){jwplayer.utils.log("error",err)}return false};this.addGlobalListener=function(listener,count){try{if(typeof(listener)=="string"){eval("listener = "+listener)}_globallisteners.push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return false};this.removeGlobalListener=function(listener){if(!_globallisteners[type]){return}try{for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){if(_globallisteners[globalListenerIndex].listener.toString()==listener.toString()){_globallisteners.splice(globalListenerIndex,1);break}}}catch(err){jwplayer.utils.log("error",err)}return false};this.sendEvent=function(type,data){if(!jwplayer.utils.exists(data)){data={}}if(_debug){jwplayer.utils.log(type,data)}if(typeof _listeners[type]!="undefined"){for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){try{_listeners[type][listenerIndex].listener(data)}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_listeners[type][listenerIndex].listener)}if(_listeners[type][listenerIndex]){if(_listeners[type][listenerIndex].count===1){delete _listeners[type][listenerIndex]}else{if(_listeners[type][listenerIndex].count>0){_listeners[type][listenerIndex].count=_listeners[type][listenerIndex].count-1}}}}}for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){try{_globallisteners[globalListenerIndex].listener(data)}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_globallisteners[globalListenerIndex].listener)}if(_globallisteners[globalListenerIndex]){if(_globallisteners[globalListenerIndex].count===1){delete _globallisteners[globalListenerIndex]}else{if(_globallisteners[globalListenerIndex].count>0){_globallisteners[globalListenerIndex].count=_globallisteners[globalListenerIndex].count-1}}}}}}})(jwplayer);(function(a){var e={};a.utils.animations=function(){};a.utils.animations.transform=function(c,d){c.style.webkitTransform=d;c.style.MozTransform=d;c.style.OTransform=d;c.style.msTransform=d};a.utils.animations.transformOrigin=function(c,d){c.style.webkitTransformOrigin=d;c.style.MozTransformOrigin=d;c.style.OTransformOrigin=d;c.style.msTransformOrigin=d};a.utils.animations.rotate=function(c,d){a.utils.animations.transform(c,["rotate(",d,"deg)"].join(""))};a.utils.cancelAnimation=function(c){delete e[c.id]};a.utils.fadeTo=function(l,c,x,g,f,w){if(e[l.id]!=w&&a.utils.exists(w)){return}if(l.style.opacity==c){return}var v=new Date().getTime();if(w>v){setTimeout(function(){a.utils.fadeTo(l,c,x,g,0,w)},w-v)}if(l.style.display=="none"){l.style.display="block"}if(!a.utils.exists(g)){g=l.style.opacity===""?1:l.style.opacity}if(l.style.opacity==c&&l.style.opacity!==""&&a.utils.exists(w)){if(c===0){l.style.display="none"}return}if(!a.utils.exists(w)){w=v;e[l.id]=w}if(!a.utils.exists(f)){f=0}var h=(x>0)?((v-w)/(x*1000)):0;h=h>1?1:h;var j=c-g;var d=g+(h*j);if(d>1){d=1}else{if(d<0){d=0}}l.style.opacity=d;if(f>0){e[l.id]=w+f*1000;a.utils.fadeTo(l,c,x,g,0,e[l.id]);return}setTimeout(function(){a.utils.fadeTo(l,c,x,g,0,w)},10)}})(jwplayer);(function(a){a.utils.arrays=function(){};a.utils.arrays.indexOf=function(d,g){for(var c=0;c<d.length;c++){if(d[c]==g){return c}}return -1};a.utils.arrays.remove=function(d,g){var c=a.utils.arrays.indexOf(d,g);if(c>-1){d.splice(c,1)}}})(jwplayer);(function(a){a.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},oga:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"},wav:{html5:"audio/x-wav"}}})(jwplayer);(function(h){h.utils.mediaparser=function(){};var a={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}};var r={};h.utils.mediaparser.parseMedia=function(j){return g(j)};function f(l,j){if(!h.utils.exists(j)){j=a[l]}else{h.utils.extend(j,a[l])}return j}function g(n,p){if(r[n.tagName.toLowerCase()]&&!h.utils.exists(p)){return r[n.tagName.toLowerCase()](n)}else{p=f("element",p);var o={};for(var q in p){if(q!="length"){var l=n.getAttribute(q);if(h.utils.exists(l)){o[p[q]]=l}}}var j=n.style["#background-color"];if(j&&!(j=="transparent"||j=="rgba(0, 0, 0, 0)")){o.screencolor=j}return o}}function c(n,q){q=f("media",q);var j=[];var p=h.utils.selectors("source",n);for(var l in p){if(!isNaN(l)){j.push(d(p[l]))}}var o=g(n,q);if(h.utils.exists(o.file)){j[0]={file:o.file}}o.levels=j;return o}function d(l,j){j=f("source",j);var n=g(l,j);n.width=n.width?n.width:0;n.bitrate=n.bitrate?n.bitrate:0;return n}function e(l,j){j=f("video",j);var n=c(l,j);return n}r.media=c;r.audio=c;r.source=d;r.video=e})(jwplayer);(function(a){a.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};a.utils.scriptloader=function(d){var g=a.utils.loaderstatus.NEW;var c=new a.events.eventdispatcher();a.utils.extend(this,c);this.load=function(){if(g==a.utils.loaderstatus.NEW){g=a.utils.loaderstatus.LOADING;var e=document.createElement("script");e.onload=function(f){g=a.utils.loaderstatus.COMPLETE;c.sendEvent(a.events.COMPLETE)};e.onerror=function(f){g=a.utils.loaderstatus.ERROR;c.sendEvent(a.events.ERROR)};e.onreadystatechange=function(){if(e.readyState=="loaded"||e.readyState=="complete"){g=a.utils.loaderstatus.COMPLETE;c.sendEvent(a.events.COMPLETE)}};document.getElementsByTagName("head")[0].appendChild(e);e.src=d}};this.getStatus=function(){return g}}})(jwplayer);(function(a){a.utils.selectors=function(c,j){if(!a.utils.exists(j)){j=document}c=a.utils.strings.trim(c);var d=c.charAt(0);if(d=="#"){return j.getElementById(c.substr(1))}else{if(d=="."){if(j.getElementsByClassName){return j.getElementsByClassName(c.substr(1))}else{return a.utils.selectors.getElementsByTagAndClass("*",c.substr(1))}}else{if(c.indexOf(".")>0){var e=c.split(".");return a.utils.selectors.getElementsByTagAndClass(e[0],e[1])}else{return j.getElementsByTagName(c)}}}return null};a.utils.selectors.getElementsByTagAndClass=function(j,e,c){var f=[];if(!a.utils.exists(c)){c=document}var r=c.getElementsByTagName(j);for(var h=0;h<r.length;h++){if(a.utils.exists(r[h].className)){var g=r[h].className.split(" ");for(var d=0;d<g.length;d++){if(g[d]==e){f.push(r[h])}}}}return f}})(jwplayer);(function(a){a.utils.strings=function(){};a.utils.strings.trim=function(c){return c.replace(/^\s*/,"").replace(/\s*$/,"")};a.utils.strings.pad=function(d,g,c){if(!c){c="0"}while(d.length<g){d=c+d}return d};a.utils.strings.serialize=function(c){if(c==null){return null}else{if(c=="true"){return true}else{if(c=="false"){return false}else{if(isNaN(Number(c))||c.length>5||c.length==0){return c}else{return Number(c)}}}}};a.utils.strings.seconds=function(g){g=g.replace(",",".");var c=g.split(":");var d=0;if(g.substr(-1)=="s"){d=Number(g.substr(0,g.length-1))}else{if(g.substr(-1)=="m"){d=Number(g.substr(0,g.length-1))*60}else{if(g.substr(-1)=="h"){d=Number(g.substr(0,g.length-1))*3600}else{if(c.length>1){d=Number(c[c.length-1]);d+=Number(c[c.length-2])*60;if(c.length==3){d+=Number(c[c.length-3])*3600}}else{d=Number(g)}}}}return d};a.utils.strings.xmlAttribute=function(c,d){for(var g=0;g<c.attributes.length;g++){if(c.attributes[g].name&&c.attributes[g].name.toLowerCase()==d.toLowerCase()){return c.attributes[g].value.toString()}}return""};a.utils.strings.jsonToString=function(e){var g=g||{};if(g&&g.stringify){return g.stringify(e)}var h=typeof(e);if(h!="object"||e===null){if(h=="string"){e='"'+e.replace(/"/g,'\\"')+'"'}else{return String(e)}}else{var f=[],d=(e&&e.constructor==Array);for(var p in e){var c=e[p];switch(typeof(c)){case"string":c='"'+c.replace(/"/g,'\\"')+'"';break;case"object":if(a.utils.exists(c)){c=a.utils.strings.jsonToString(c)}break}if(d){if(typeof(c)!="function"){f.push(String(c))}}else{if(typeof(c)!="function"){f.push('"'+p+'":'+String(c))}}}if(d){return"["+String(f)+"]"}else{return"{"+String(f)+"}"}}}})(jwplayer);(function(a){var c=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);a.utils.typechecker=function(g,f){f=!a.utils.exists(f)?l(g):f;return d(g,f)};function l(f){var g=["true","false","t","f"];if(g.toString().indexOf(f.toLowerCase().replace(" ",""))>=0){return"boolean"}else{if(c.test(f)){return"color"}else{if(!isNaN(parseInt(f,10))&&parseInt(f,10).toString().length==f.length){return"integer"}else{if(!isNaN(parseFloat(f))&&parseFloat(f).toString().length==f.length){return"float"}}}}return"string"}function d(g,f){if(!a.utils.exists(f)){return g}switch(f){case"color":if(g.length>0){return e(g)}return null;case"integer":return parseInt(g,10);case"float":return parseFloat(g);case"boolean":if(g.toLowerCase()=="true"){return true}else{if(g=="1"){return true}}return false}return g}function e(f){switch(f.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:f=f.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2");if(f.length==3){f=f.charAt(0)+f.charAt(0)+f.charAt(1)+f.charAt(1)+f.charAt(2)+f.charAt(2)}return parseInt(f,16)}return parseInt("000000",16)}})(jwplayer);(function(a){a.utils.parsers=function(){};a.utils.parsers.localName=function(c){if(!c){return""}else{if(c.localName){return c.localName}else{if(c.baseName){return c.baseName}else{return""}}}};a.utils.parsers.textContent=function(c){if(!c){return""}else{if(c.textContent){return c.textContent}else{if(c.text){return c.text}else{return""}}}}})(jwplayer);(function(a){a.utils.parsers.jwparser=function(){};a.utils.parsers.jwparser.PREFIX="jwplayer";a.utils.parsers.jwparser.parseEntry=function(d,g){for(var c=0;c<d.childNodes.length;c++){if(d.childNodes[c].prefix==a.utils.parsers.jwparser.PREFIX){g[a.utils.parsers.localName(d.childNodes[c])]=a.utils.strings.serialize(a.utils.parsers.textContent(d.childNodes[c]))}if(!g.file&&String(g.link).toLowerCase().indexOf("youtube")>-1){g.file=g.link}}return g};a.utils.parsers.jwparser.getProvider=function(e){if(e.type){return e.type}else{if(e.file.indexOf("youtube.com/w")>-1||e.file.indexOf("youtube.com/v")>-1||e.file.indexOf("youtu.be/")>-1){return"youtube"}else{if(e.streamer&&e.streamer.indexOf("rtmp")==0){return"rtmp"}else{if(e.streamer&&e.streamer.indexOf("http")==0){return"http"}else{var c=a.utils.strings.extension(e.file);if(extensions.hasOwnProperty(c)){return extensions[c]}}}}}return""}})(jwplayer);(function(a){a.utils.parsers.mediaparser=function(){};a.utils.parsers.mediaparser.PREFIX="media";a.utils.parsers.mediaparser.parseGroup=function(e,l){var f=false;for(var d=0;d<e.childNodes.length;d++){if(e.childNodes[d].prefix==a.utils.parsers.mediaparser.PREFIX){if(!a.utils.parsers.localName(e.childNodes[d])){continue}switch(a.utils.parsers.localName(e.childNodes[d]).toLowerCase()){case"content":if(!f){l.file=a.utils.strings.xmlAttribute(e.childNodes[d],"url")}if(a.utils.strings.xmlAttribute(e.childNodes[d],"duration")){l.duration=a.utils.strings.seconds(a.utils.strings.xmlAttribute(e.childNodes[d],"duration"))}if(a.utils.strings.xmlAttribute(e.childNodes[d],"start")){l.start=a.utils.strings.seconds(a.utils.strings.xmlAttribute(e.childNodes[d],"start"))}if(e.childNodes[d].childNodes&&e.childNodes[d].childNodes.length>0){l=a.utils.parsers.mediaparser.parseGroup(e.childNodes[d],l)}if(a.utils.strings.xmlAttribute(e.childNodes[d],"width")||a.utils.strings.xmlAttribute(e.childNodes[d],"bitrate")||a.utils.strings.xmlAttribute(e.childNodes[d],"url")){if(!l.levels){l.levels=[]}l.levels.push({width:a.utils.strings.xmlAttribute(e.childNodes[d],"width"),bitrate:a.utils.strings.xmlAttribute(e.childNodes[d],"bitrate"),file:a.utils.strings.xmlAttribute(e.childNodes[d],"url")})}break;case"title":l.title=a.utils.parsers.textContent(e.childNodes[d]);break;case"description":l.description=a.utils.parsers.textContent(e.childNodes[d]);break;case"keywords":l.tags=a.utils.parsers.textContent(e.childNodes[d]);break;case"thumbnail":l.image=a.utils.strings.xmlAttribute(e.childNodes[d],"url");break;case"credit":l.author=a.utils.parsers.textContent(e.childNodes[d]);break;case"player":var c=e.childNodes[d].url;if(c.indexOf("youtube.com")>=0||c.indexOf("youtu.be")>=0){f=true;l.file=a.utils.strings.xmlAttribute(e.childNodes[d],"url")}break;case"group":a.utils.parsers.mediaparser.parseGroup(e.childNodes[d],l);break}}}return l}})(jwplayer);(function(e){e.utils.parsers.rssparser=function(){};e.utils.parsers.rssparser.parse=function(d){var f=[];for(var c=0;c<d.childNodes.length;c++){if(e.utils.parsers.localName(d.childNodes[c]).toLowerCase()=="channel"){for(var j=0;j<d.childNodes[c].childNodes.length;j++){if(e.utils.parsers.localName(d.childNodes[c].childNodes[j]).toLowerCase()=="item"){f.push(a(d.childNodes[c].childNodes[j]))}}}}return f};function a(c){var d={};for(var g=0;g<c.childNodes.length;g++){if(!e.utils.parsers.localName(c.childNodes[g])){continue}switch(e.utils.parsers.localName(c.childNodes[g]).toLowerCase()){case"enclosure":d.file=e.utils.strings.xmlAttribute(c.childNodes[g],"url");break;case"title":d.title=e.utils.parsers.textContent(c.childNodes[g]);break;case"pubdate":d.date=e.utils.parsers.textContent(c.childNodes[g]);break;case"description":d.description=e.utils.parsers.textContent(c.childNodes[g]);break;case"link":d.link=e.utils.parsers.textContent(c.childNodes[g]);break;case"category":if(d.tags){d.tags+=e.utils.parsers.textContent(c.childNodes[g])}else{d.tags=e.utils.parsers.textContent(c.childNodes[g])}break}}d=e.utils.parsers.mediaparser.parseGroup(c,d);d=e.utils.parsers.jwparser.parseEntry(c,d);return new e.html5.playlistitem(d)}})(jwplayer);(function(c){var a={};var g={};c.plugins=function(){};c.plugins.loadPlugins=function(e,d){g[e]=new c.plugins.pluginloader(new c.plugins.model(a),d);return g[e]};c.plugins.registerPlugin=function(e,l,h){var f=c.utils.getPluginName(e);if(a[f]){a[f].registerPlugin(e,l,h)}else{c.utils.log("A plugin ("+e+") was registered with the player that was not loaded. Please check your configuration.");for(var d in g){g[d].pluginFailed()}}}})(jwplayer);(function(a){a.plugins.model=function(c){this.addPlugin=function(d){var g=a.utils.getPluginName(d);if(!c[g]){c[g]=new a.plugins.plugin(d)}return c[g]}}})(jwplayer);(function(a){a.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};a.plugins.plugin=function(l){var w="http://lp.longtailvideo.com";var g=a.utils.loaderstatus.NEW;var h;var f;var j;var v=new a.events.eventdispatcher();a.utils.extend(this,v);function c(){switch(a.utils.getPluginPathType(l)){case a.utils.pluginPathType.ABSOLUTE:return l;case a.utils.pluginPathType.RELATIVE:return a.utils.getAbsolutePath(l,window.location.href);case a.utils.pluginPathType.CDN:var o=a.utils.getPluginName(l);var n=a.utils.getPluginVersion(l);var p=(window.location.href.indexOf("https://")==0)?w.replace("http://","https://secure"):w;return p+"/"+a.version.split(".")[0]+"/"+o+"/"+o+(n!==""?("-"+n):"")+".js"}}function e(n){j=setTimeout(function(){g=a.utils.loaderstatus.COMPLETE;v.sendEvent(a.events.COMPLETE)},1000)}function d(n){g=a.utils.loaderstatus.ERROR;v.sendEvent(a.events.ERROR)}this.load=function(){if(g==a.utils.loaderstatus.NEW){if(l.lastIndexOf(".swf")>0){h=l;g=a.utils.loaderstatus.COMPLETE;v.sendEvent(a.events.COMPLETE);return}g=a.utils.loaderstatus.LOADING;var n=new a.utils.scriptloader(c());n.addEventListener(a.events.COMPLETE,e);n.addEventListener(a.events.ERROR,d);n.load()}};this.registerPlugin=function(o,n,p){if(j){clearTimeout(j);j=undefined}if(n&&p){h=p;f=n}else{if(typeof n=="string"){h=n}else{if(typeof n=="function"){f=n}else{if(!n&&!p){h=o}}}}g=a.utils.loaderstatus.COMPLETE;v.sendEvent(a.events.COMPLETE)};this.getStatus=function(){return g};this.getPluginName=function(){return a.utils.getPluginName(l)};this.getFlashPath=function(){if(h){switch(a.utils.getPluginPathType(h)){case a.utils.pluginPathType.ABSOLUTE:return h;case a.utils.pluginPathType.RELATIVE:if(l.lastIndexOf(".swf")>0){return a.utils.getAbsolutePath(h,window.location.href)}return a.utils.getAbsolutePath(h,c());case a.utils.pluginPathType.CDN:if(h.indexOf("-")>-1){return h+"h"}return h+"-h"}}return null};this.getJS=function(){return f};this.getPluginmode=function(){if(typeof h!="undefined"&&typeof f!="undefined"){return a.plugins.pluginmodes.HYBRID}else{if(typeof h!="undefined"){return a.plugins.pluginmodes.FLASH}else{if(typeof f!="undefined"){return a.plugins.pluginmodes.JAVASCRIPT}}}};this.getNewInstance=function(n,p,o){return new f(n,p,o)};this.getURL=function(){return l}}})(jwplayer);(function(a){a.plugins.pluginloader=function(h,e){var g={};var u=a.utils.loaderstatus.NEW;var d=false;var v=false;var c=new a.events.eventdispatcher();a.utils.extend(this,c);function f(){if(!v){v=true;u=a.utils.loaderstatus.COMPLETE;c.sendEvent(a.events.COMPLETE)}}function j(){if(!v){var n=0;for(plugin in g){var l=g[plugin].getStatus();if(l==a.utils.loaderstatus.LOADING||l==a.utils.loaderstatus.NEW){n++}}if(n==0){f()}}}this.setupPlugins=function(l,w,r){var x={length:0,plugins:{}};var o={length:0,plugins:{}};for(var n in g){var p=g[n].getPluginName();if(g[n].getFlashPath()){x.plugins[g[n].getFlashPath()]=w.plugins[n];x.plugins[g[n].getFlashPath()].pluginmode=g[n].getPluginmode();x.length++}if(g[n].getJS()){var q=document.createElement("div");q.id=l.id+"_"+p;q.style.position="absolute";q.style.zIndex=o.length+10;o.plugins[p]=g[n].getNewInstance(l,w.plugins[n],q);o.length++;if(typeof o.plugins[p].resize!="undefined"){l.onReady(r(o.plugins[p],q,true));l.onResize(r(o.plugins[p],q))}}}l.plugins=o.plugins;return x};this.load=function(){u=a.utils.loaderstatus.LOADING;d=true;for(var l in e){if(a.utils.exists(l)){g[l]=h.addPlugin(l);g[l].addEventListener(a.events.COMPLETE,j);g[l].addEventListener(a.events.ERROR,j)}}for(l in g){g[l].load()}d=false;j()};this.pluginFailed=function(){f()};this.getStatus=function(){return u}}})(jwplayer);(function(e){var a=[];e.api=function(K){this.container=K;this.id=K.id;var q={};var H={};var l={};var J=[];var g=undefined;var o=false;var h=[];var I=e.utils.getOuterHTML(K);var n={};var j={};this.getBuffer=function(){return this.callInternal("jwGetBuffer")};this.getContainer=function(){return this.container};function c(v,u){return function(x,y,z,A){if(v.renderingMode=="flash"||v.renderingMode=="html5"){var w;if(y){j[x]=y;w="jwplayer('"+v.id+"').callback('"+x+"')"}else{if(!y&&j[x]){delete j[x]}}g.jwDockSetButton(x,w,z,A)}return u}}this.getPlugin=function(u){var w=this;var v={};if(u=="dock"){return e.utils.extend(v,{setButton:c(w,v),show:function(){w.callInternal("jwDockShow");return v},hide:function(){w.callInternal("jwDockHide");return v},onShow:function(x){w.componentListener("dock",e.api.events.JWPLAYER_COMPONENT_SHOW,x);return v},onHide:function(x){w.componentListener("dock",e.api.events.JWPLAYER_COMPONENT_HIDE,x);return v}})}else{if(u=="controlbar"){return e.utils.extend(v,{show:function(){w.callInternal("jwControlbarShow");return v},hide:function(){w.callInternal("jwControlbarHide");return v},onShow:function(x){w.componentListener("controlbar",e.api.events.JWPLAYER_COMPONENT_SHOW,x);return v},onHide:function(x){w.componentListener("controlbar",e.api.events.JWPLAYER_COMPONENT_HIDE,x);return v}})}else{if(u=="display"){return e.utils.extend(v,{show:function(){w.callInternal("jwDisplayShow");return v},hide:function(){w.callInternal("jwDisplayHide");return v},onShow:function(x){w.componentListener("display",e.api.events.JWPLAYER_COMPONENT_SHOW,x);return v},onHide:function(x){w.componentListener("display",e.api.events.JWPLAYER_COMPONENT_HIDE,x);return v}})}else{return this.plugins[u]}}}};this.callback=function(u){if(j[u]){return j[u]()}};this.getDuration=function(){return this.callInternal("jwGetDuration")};this.getFullscreen=function(){return this.callInternal("jwGetFullscreen")};this.getHeight=function(){return this.callInternal("jwGetHeight")};this.getLockState=function(){return this.callInternal("jwGetLockState")};this.getMeta=function(){return this.getItemMeta()};this.getMute=function(){return this.callInternal("jwGetMute")};this.getPlaylist=function(){var v=this.callInternal("jwGetPlaylist");if(this.renderingMode=="flash"){e.utils.deepReplaceKeyName(v,"__dot__",".")}for(var u=0;u<v.length;u++){if(!e.utils.exists(v[u].index)){v[u].index=u}}return v};this.getPlaylistItem=function(u){if(!e.utils.exists(u)){u=this.getCurrentItem()}return this.getPlaylist()[u]};this.getPosition=function(){return this.callInternal("jwGetPosition")};this.getRenderingMode=function(){return this.renderingMode};this.getState=function(){return this.callInternal("jwGetState")};this.getVolume=function(){return this.callInternal("jwGetVolume")};this.getWidth=function(){return this.callInternal("jwGetWidth")};this.setFullscreen=function(u){if(!e.utils.exists(u)){this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen"))}else{this.callInternal("jwSetFullscreen",u)}return this};this.setMute=function(u){if(!e.utils.exists(u)){this.callInternal("jwSetMute",!this.callInternal("jwGetMute"))}else{this.callInternal("jwSetMute",u)}return this};this.lock=function(){return this};this.unlock=function(){return this};this.load=function(u){this.callInternal("jwLoad",u);return this};this.playlistItem=function(u){this.callInternal("jwPlaylistItem",u);return this};this.playlistPrev=function(){this.callInternal("jwPlaylistPrev");return this};this.playlistNext=function(){this.callInternal("jwPlaylistNext");return this};this.resize=function(v,u){if(this.renderingMode=="html5"){g.jwResize(v,u)}else{this.container.width=v;this.container.height=u;var w=document.getElementById(this.id+"_wrapper");if(w){w.style.width=v+"px";w.style.height=u+"px"}}return this};this.play=function(u){if(typeof u=="undefined"){u=this.getState();if(u==e.api.events.state.PLAYING||u==e.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPlay",u)}return this};this.pause=function(u){if(typeof u=="undefined"){u=this.getState();if(u==e.api.events.state.PLAYING||u==e.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPause",u)}return this};this.stop=function(){this.callInternal("jwStop");return this};this.seek=function(u){this.callInternal("jwSeek",u);return this};this.setVolume=function(u){this.callInternal("jwSetVolume",u);return this};this.onBufferChange=function(u){return this.eventListener(e.api.events.JWPLAYER_MEDIA_BUFFER,u)};this.onBufferFull=function(u){return this.eventListener(e.api.events.JWPLAYER_MEDIA_BUFFER_FULL,u)};this.onError=function(u){return this.eventListener(e.api.events.JWPLAYER_ERROR,u)};this.onFullscreen=function(u){return this.eventListener(e.api.events.JWPLAYER_FULLSCREEN,u)};this.onMeta=function(u){return this.eventListener(e.api.events.JWPLAYER_MEDIA_META,u)};this.onMute=function(u){return this.eventListener(e.api.events.JWPLAYER_MEDIA_MUTE,u)};this.onPlaylist=function(u){return this.eventListener(e.api.events.JWPLAYER_PLAYLIST_LOADED,u)};this.onPlaylistItem=function(u){return this.eventListener(e.api.events.JWPLAYER_PLAYLIST_ITEM,u)};this.onReady=function(u){return this.eventListener(e.api.events.API_READY,u)};this.onResize=function(u){return this.eventListener(e.api.events.JWPLAYER_RESIZE,u)};this.onComplete=function(u){return this.eventListener(e.api.events.JWPLAYER_MEDIA_COMPLETE,u)};this.onSeek=function(u){return this.eventListener(e.api.events.JWPLAYER_MEDIA_SEEK,u)};this.onTime=function(u){return this.eventListener(e.api.events.JWPLAYER_MEDIA_TIME,u)};this.onVolume=function(u){return this.eventListener(e.api.events.JWPLAYER_MEDIA_VOLUME,u)};this.onBuffer=function(u){return this.stateListener(e.api.events.state.BUFFERING,u)};this.onPause=function(u){return this.stateListener(e.api.events.state.PAUSED,u)};this.onPlay=function(u){return this.stateListener(e.api.events.state.PLAYING,u)};this.onIdle=function(u){return this.stateListener(e.api.events.state.IDLE,u)};this.remove=function(){q={};h=[];if(e.utils.getOuterHTML(this.container)!=I){e.api.destroyPlayer(this.id,I)}};this.setup=function(v){if(e.embed){var u=this.id;this.remove();var w=e(u);w.config=v;return new e.embed(w)}return this};this.registerPlugin=function(w,v,u){e.plugins.registerPlugin(w,v,u)};this.setPlayer=function(u,v){g=u;this.renderingMode=v};this.stateListener=function(u,v){if(!H[u]){H[u]=[];this.eventListener(e.api.events.JWPLAYER_PLAYER_STATE,f(u))}H[u].push(v);return this};this.detachMedia=function(){if(this.renderingMode=="html5"){return this.callInternal("jwDetachMedia")}};this.attachMedia=function(){if(this.renderingMode=="html5"){return this.callInternal("jwAttachMedia")}};function f(u){return function(x){var w=x.newstate,z=x.oldstate;if(w==u){var y=H[w];if(y){for(var v=0;v<y.length;v++){if(typeof y[v]=="function"){y[v].call(this,{oldstate:z,newstate:w})}}}}}}this.componentListener=function(u,v,w){if(!l[u]){l[u]={}}if(!l[u][v]){l[u][v]=[];this.eventListener(v,p(u,v))}l[u][v].push(w);return this};function p(u,v){return function(x){if(u==x.component){var w=l[u][v];if(w){for(var y=0;y<w.length;y++){if(typeof w[y]=="function"){w[y].call(this,x)}}}}}}this.addInternalListener=function(u,v){u.jwAddEventListener(v,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+v+'", dat); }')};this.eventListener=function(u,v){if(!q[u]){q[u]=[];if(g&&o){this.addInternalListener(g,u)}}q[u].push(v);return this};this.dispatchEvent=function(w){if(q[w]){var v=d(w,arguments[1]);for(var u=0;u<q[w].length;u++){if(typeof q[w][u]=="function"){q[w][u].call(this,v)}}}};function d(w,u){var y=e.utils.extend({},u);if(w==e.api.events.JWPLAYER_FULLSCREEN&&!y.fullscreen){y.fullscreen=y.message=="true"?true:false;delete y.message}else{if(typeof y.data=="object"){y=e.utils.extend(y,y.data);delete y.data}}var v=["position","duration","offset"];for(var x in v){if(y[v[x]]){y[v[x]]=Math.round(y[v[x]]*1000)/1000}}return y}this.callInternal=function(v,u){if(o){if(typeof g!="undefined"&&typeof g[v]=="function"){if(e.utils.exists(u)){return(g[v])(u)}else{return(g[v])()}}return null}else{h.push({method:v,parameters:u})}};this.playerReady=function(w){o=true;if(!g){this.setPlayer(document.getElementById(w.id))}this.container=document.getElementById(this.id);for(var u in q){this.addInternalListener(g,u)}this.eventListener(e.api.events.JWPLAYER_PLAYLIST_ITEM,function(x){n={}});this.eventListener(e.api.events.JWPLAYER_MEDIA_META,function(x){e.utils.extend(n,x.metadata)});this.dispatchEvent(e.api.events.API_READY);while(h.length>0){var v=h.shift();this.callInternal(v.method,v.parameters)}};this.getItemMeta=function(){return n};this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")};function r(w,y,x){var u=[];if(!y){y=0}if(!x){x=w.length-1}for(var v=y;v<=x;v++){u.push(w[v])}return u}return this};e.api.selectPlayer=function(c){var g;if(!e.utils.exists(c)){c=0}if(c.nodeType){g=c}else{if(typeof c=="string"){g=document.getElementById(c)}}if(g){var d=e.api.playerById(g.id);if(d){return d}else{return e.api.addPlayer(new e.api(g))}}else{if(typeof c=="number"){return e.getPlayers()[c]}}return null};e.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_COMPONENT_SHOW:"jwplayerComponentShow",JWPLAYER_COMPONENT_HIDE:"jwplayerComponentHide",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem"};e.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};e.api.playerById=function(d){for(var c=0;c<a.length;c++){if(a[c].id==d){return a[c]}}return null};e.api.addPlayer=function(c){for(var d=0;d<a.length;d++){if(a[d]==c){return c}}a.push(c);return c};e.api.destroyPlayer=function(h,p){var g=-1;for(var f=0;f<a.length;f++){if(a[f].id==h){g=f;continue}}if(g>=0){var j=document.getElementById(a[g].id);if(document.getElementById(a[g].id+"_wrapper")){j=document.getElementById(a[g].id+"_wrapper")}if(j){if(p){e.utils.setOuterHTML(j,p)}else{var d=document.createElement("div");var c=j.id;if(j.id.indexOf("_wrapper")==j.id.length-8){newID=j.id.substring(0,j.id.length-8)}d.setAttribute("id",c);j.parentNode.replaceChild(d,j)}}a.splice(g,1)}return null};e.getPlayers=function(){return a.slice(0)}})(jwplayer);var _userPlayerReady=(typeof playerReady=="function")?playerReady:undefined;playerReady=function(e){var a=jwplayer.api.playerById(e.id);if(a){a.playerReady(e)}else{jwplayer.api.selectPlayer(e.id).playerReady(e)}if(_userPlayerReady){_userPlayerReady.call(this,e)}};(function(c){var a=c.utils;c.embed=function(q){var h={width:400,height:300,components:{controlbar:{position:"over"}}};var f=a.mediaparser.parseMedia(q.container);var e=new c.embed.config(a.extend(h,f,q.config),this);var d=c.plugins.loadPlugins(q.id,e.plugins);function j(l,o){for(var n in o){if(typeof l[n]=="function"){(l[n]).call(l,o[n])}}}function p(){if(d.getStatus()==a.loaderstatus.COMPLETE){for(var D=0;D<e.modes.length;D++){if(e.modes[D].type&&c.embed[e.modes[D].type]){var n=e.modes[D].config;var A=e;if(n){A=a.extend(a.clone(e),n);var z=["file","levels","playlist"];for(var C=0;C<z.length;C++){var o=z[C];if(a.exists(n[o])){for(var B=0;B<z.length;B++){if(B!=C){var l=z[B];if(a.exists(A[l])&&!a.exists(n[l])){delete A[l]}}}}}}var r=new c.embed[e.modes[D].type](document.getElementById(q.id),e.modes[D],A,d,q);if(r.supportsConfig()){r.embed();j(q,e.events);return q}}}a.log("No suitable players found");new c.embed.logo(a.extend({hide:true},e.components.logo),"none",q.id)}}d.addEventListener(c.events.COMPLETE,p);d.addEventListener(c.events.ERROR,p);d.load();return q};function g(){if(!document.body){return setTimeout(g,15)}var f=a.selectors.getElementsByTagAndClass("video","jwplayer");for(var d=0;d<f.length;d++){var e=f[d];if(e.id==""){e.id="jwplayer_"+Math.round(Math.random()*100000)}c(e.id).setup({})}}g()})(jwplayer);(function(e){function h(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}var u={players:"modes",autoplay:"autostart"};function a(o){var n=o.toLowerCase();var l=["left","right","top","bottom"];for(var p=0;p<l.length;p++){if(n==l[p]){return true}}return false}function c(n){var l=false;l=(n instanceof Array)||(typeof n=="object"&&!n.position&&!n.size);return l}function j(l){if(typeof l=="string"){if(parseInt(l).toString()==l||l.toLowerCase().indexOf("px")>-1){return parseInt(l)}}return l}var g=["playlist","dock","controlbar","logo","display"];function f(q){var o={};switch(e.utils.typeOf(q.plugins)){case"object":for(var n in q.plugins){o[e.utils.getPluginName(n)]=n}break;case"string":var p=q.plugins.split(",");for(var l=0;l<p.length;l++){o[e.utils.getPluginName(p[l])]=p[l]}break}return o}function d(p,o,n,r){if(e.utils.typeOf(p[o])!="object"){p[o]={}}var l=p[o][n];if(e.utils.typeOf(l)!="object"){p[o][n]=l={}}if(r){if(o=="plugins"){var q=e.utils.getPluginName(n);l[r]=p[q+"."+r];delete p[q+"."+r]}else{l[r]=p[n+"."+r];delete p[n+"."+r]}}}e.embed.deserialize=function(l){var n=f(l);for(var r in n){d(l,"plugins",n[r])}for(var q in l){if(q.indexOf(".")>-1){var p=q.split(".");var o=p[0];var q=p[1];if(e.utils.isInArray(g,o)){d(l,"components",o,q)}else{if(n[o]){d(l,"plugins",n[o],q)}}}}return l};e.embed.config=function(n,l){var B=e.utils.extend({},n);var z;if(c(B.playlist)){z=B.playlist;delete B.playlist}B=e.embed.deserialize(B);B.height=j(B.height);B.width=j(B.width);if(typeof B.plugins=="string"){var o=B.plugins.split(",");if(typeof B.plugins!="object"){B.plugins={}}for(var x=0;x<o.length;x++){var y=e.utils.getPluginName(o[x]);if(typeof B[y]=="object"){B.plugins[o[x]]=B[y];delete B[y]}else{B.plugins[o[x]]={}}}}for(var A=0;A<g.length;A++){var r=g[A];if(e.utils.exists(B[r])){if(typeof B[r]!="object"){if(!B.components[r]){B.components[r]={}}if(r=="logo"){B.components[r].file=B[r]}else{B.components[r].position=B[r]}delete B[r]}else{if(!B.components[r]){B.components[r]={}}e.utils.extend(B.components[r],B[r]);delete B[r]}}if(typeof B[r+"size"]!="undefined"){if(!B.components[r]){B.components[r]={}}B.components[r].size=B[r+"size"];delete B[r+"size"]}}if(typeof B.icons!="undefined"){if(!B.components.display){B.components.display={}}B.components.display.icons=B.icons;delete B.icons}for(var q in u){if(B[q]){if(!B[u[q]]){B[u[q]]=B[q]}delete B[q]}}var p;if(B.flashplayer&&!B.modes){p=h();p[0].src=B.flashplayer;delete B.flashplayer}else{if(B.modes){if(typeof B.modes=="string"){p=h();p[0].src=B.modes}else{if(B.modes instanceof Array){p=B.modes}else{if(typeof B.modes=="object"&&B.modes.type){p=[B.modes]}}}delete B.modes}else{p=h()}}B.modes=p;if(z){B.playlist=z}return B}})(jwplayer);(function(a){a.embed.download=function(c,n,e,d,g){this.embed=function(){var F=a.utils.extend({},e);var r={};var E=e.width?e.width:480;if(typeof E!="number"){E=parseInt(E,10)}var H=e.height?e.height:320;if(typeof H!="number"){H=parseInt(H,10)}var l,p,o;var h={};if(e.playlist&&e.playlist.length){h.file=e.playlist[0].file;p=e.playlist[0].image;h.levels=e.playlist[0].levels}else{h.file=e.file;p=e.image;h.levels=e.levels}if(h.file){l=h.file}else{if(h.levels&&h.levels.length){l=h.levels[0].file}}o=l?"pointer":"auto";var G={display:{style:{cursor:o,width:E,height:H,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:o,position:"absolute",display:l?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},display_iconBackground:{style:{cursor:o,position:"absolute",display:l?"block":"none",top:((H-50)/2),left:((E-50)/2),border:0,width:50,height:50,margin:0,padding:0,zIndex:2,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC)"}},display_image:{style:{width:E,height:H,display:p?"block":"none",position:"absolute",cursor:o,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};var D=function(w,y,v){var x=document.createElement(w);if(v){x.id=v}else{x.id=c.id+"_jwplayer_"+y}a.utils.css(x,G[y].style);return x};r.display=D("a","display",c.id);if(l){r.display.setAttribute("href",a.utils.getAbsolutePath(l))}r.display_image=D("img","display_image");r.display_image.setAttribute("alt","Click to download...");if(p){r.display_image.setAttribute("src",a.utils.getAbsolutePath(p))}if(true){r.display_icon=D("div","display_icon");r.display_iconBackground=D("div","display_iconBackground");r.display.appendChild(r.display_image);r.display_iconBackground.appendChild(r.display_icon);r.display.appendChild(r.display_iconBackground)}_css=a.utils.css;_hide=function(v){_css(v,{display:"none"})};function u(v){_imageWidth=r.display_image.naturalWidth;_imageHeight=r.display_image.naturalHeight;j()}function j(){a.utils.stretch(a.utils.stretching.UNIFORM,r.display_image,E,H,_imageWidth,_imageHeight)}r.display_image.onerror=function(v){_hide(r.display_image)};r.display_image.onload=u;c.parentNode.replaceChild(r.display,c);var q=(e.plugins&&e.plugins.logo)?e.plugins.logo:{};r.display.appendChild(new a.embed.logo(e.components.logo,"download",c.id));g.container=document.getElementById(g.id);g.setPlayer(r.display,"download")};this.supportsConfig=function(){if(e){var j=a.utils.getFirstPlaylistItemFromConfig(e);if(typeof j.file=="undefined"&&typeof j.levels=="undefined"){return true}else{if(j.file){return f(j.file,j.provider,j.playlistfile)}else{if(j.levels&&j.levels.length){for(var h=0;h<j.levels.length;h++){if(j.levels[h].file&&f(j.levels[h].file,j.provider,j.playlistfile)){return true}}}}}}else{return true}};function f(j,o,h){if(h){return false}var l=["image","sound","youtube","http"];if(o&&(l.toString().indexOf(o)>-1)){return true}if(!o||(o&&o=="video")){var p=a.utils.extension(j);if(p&&a.utils.extensionmap[p]){return true}}return false}}})(jwplayer);(function(a){a.embed.flash=function(z,c,g,y,e){function h(o,n,p){var q=document.createElement("param");q.setAttribute("name",n);q.setAttribute("value",p);o.appendChild(q)}function f(o,p,n){return function(q){if(n){document.getElementById(e.id+"_wrapper").appendChild(p)}var u=document.getElementById(e.id).getPluginConfig("display");o.resize(u.width,u.height);var r={left:u.x,top:u.y};a.utils.css(p,r)}}function x(p){if(!p){return{}}var r={};for(var o in p){var n=p[o];for(var q in n){r[o+"."+q]=n[q]}}return r}function d(q,p){if(q[p]){var u=q[p];for(var o in u){var n=u[o];if(typeof n=="string"){if(!q[o]){q[o]=n}}else{for(var r in n){if(!q[o+"."+r]){q[o+"."+r]=n[r]}}}}delete q[p]}}function j(q){if(!q){return{}}var v={},u=[];for(var n in q){var p=a.utils.getPluginName(n);var o=q[n];u.push(n);for(var r in o){v[p+"."+r]=o[r]}}v.plugins=u.join(",");return v}function l(p){var n=p.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&";for(var o in p){if(typeof(p[o])=="object"){n+=o+"="+encodeURIComponent("[[JSON]]"+a.utils.strings.jsonToString(p[o]))+"&"}else{n+=o+"="+encodeURIComponent(p[o])+"&"}}return n.substring(0,n.length-1)}this.embed=function(){g.id=e.id;var u;var C=a.utils.extend({},g);var v=C.width;var q=C.height;if(z.id+"_wrapper"==z.parentNode.id){u=document.getElementById(z.id+"_wrapper")}else{u=document.createElement("div");u.id=z.id+"_wrapper";a.utils.wrap(z,u);a.utils.css(u,{position:"relative",width:v,height:q})}var w=y.setupPlugins(e,C,f);if(w.length>0){a.utils.extend(C,j(w.plugins))}else{delete C.plugins}var E=["height","width","modes","events"];for(var o=0;o<E.length;o++){delete C[E[o]]}var B="opaque";if(C.wmode){B=C.wmode}d(C,"components");d(C,"providers");if(typeof C["dock.position"]!="undefined"){if(C["dock.position"].toString().toLowerCase()=="false"){C.dock=C["dock.position"];delete C["dock.position"]}}var r="#000000";var D;if(a.utils.isIE()){var p='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+r+'" width="100%" height="100%" id="'+z.id+'" name="'+z.id+'" tabindex=0"">';p+='<param name="movie" value="'+c.src+'">';p+='<param name="allowfullscreen" value="true">';p+='<param name="allowscriptaccess" value="always">';p+='<param name="seamlesstabbing" value="true">';p+='<param name="wmode" value="'+B+'">';p+='<param name="flashvars" value="'+l(C)+'">';p+="</object>";a.utils.setOuterHTML(z,p);D=document.getElementById(z.id)}else{var n=document.createElement("object");n.setAttribute("type","application/x-shockwave-flash");n.setAttribute("data",c.src);n.setAttribute("width","100%");n.setAttribute("height","100%");n.setAttribute("bgcolor","#000000");n.setAttribute("id",z.id);n.setAttribute("name",z.id);n.setAttribute("tabindex",0);h(n,"allowfullscreen","true");h(n,"allowscriptaccess","always");h(n,"seamlesstabbing","true");h(n,"wmode",B);h(n,"flashvars",l(C));z.parentNode.replaceChild(n,z);D=n}e.container=D;e.setPlayer(D,"flash")};this.supportsConfig=function(){if(a.utils.hasFlash()){if(g){var o=a.utils.getFirstPlaylistItemFromConfig(g);if(typeof o.file=="undefined"&&typeof o.levels=="undefined"){return true}else{if(o.file){return flashCanPlay(o.file,o.provider)}else{if(o.levels&&o.levels.length){for(var n=0;n<o.levels.length;n++){if(o.levels[n].file&&flashCanPlay(o.levels[n].file,o.provider)){return true}}}}}}else{return true}}return false};flashCanPlay=function(n,p){var o=["video","http","sound","image"];if(p&&(o.toString().indexOf(p<0))){return true}var q=a.utils.extension(n);if(!q){return true}if(a.utils.exists(a.utils.extensionmap[q])&&!a.utils.exists(a.utils.extensionmap[q].flash)){return false}return true}}})(jwplayer);(function(a){a.embed.html5=function(c,n,e,d,g){function f(j,l,h){return function(o){var p=document.getElementById(c.id+"_displayarea");if(h){p.appendChild(l)}j.resize(p.clientWidth,p.clientHeight);l.left=p.style.left;l.top=p.style.top}}this.embed=function(){if(a.html5){d.setupPlugins(g,e,f);c.innerHTML="";var j=a.utils.extend({screencolor:"0x000000"},e);var h=["plugins","modes","events"];for(var l=0;l<h.length;l++){delete j[h[l]]}if(j.levels&&!j.sources){j.sources=e.levels}if(j.skin&&j.skin.toLowerCase().indexOf(".zip")>0){j.skin=j.skin.replace(/\.zip/i,".xml")}var o=new (a.html5(c)).setup(j);g.container=document.getElementById(g.id);g.setPlayer(o,"html5")}else{return null}};this.supportsConfig=function(){if(!!a.vid.canPlayType){if(e){var j=a.utils.getFirstPlaylistItemFromConfig(e);if(typeof j.file=="undefined"&&typeof j.levels=="undefined"){return true}else{if(j.file){return html5CanPlay(a.vid,j.file,j.provider,j.playlistfile)}else{if(j.levels&&j.levels.length){for(var h=0;h<j.levels.length;h++){if(j.levels[h].file&&html5CanPlay(a.vid,j.levels[h].file,j.provider,j.playlistfile)){return true}}}}}}else{return true}}return false};html5CanPlay=function(l,j,o,h){if(h){return false}if(o&&o=="youtube"){return true}if(o&&o!="video"&&o!="http"&&o!="sound"){return false}var p=a.utils.extension(j);if(!a.utils.exists(p)||!a.utils.exists(a.utils.extensionmap[p])){return true}if(!a.utils.exists(a.utils.extensionmap[p].html5)){return false}if(a.utils.isLegacyAndroid()&&p.match(/m4v|mp4/)){return true}return browserCanPlay(l,a.utils.extensionmap[p].html5)};browserCanPlay=function(j,h){if(!h){return true}if(j.canPlayType(h)){return true}else{if(h=="audio/mp3"&&navigator.userAgent.match(/safari/i)){return j.canPlayType("audio/mpeg")}else{return false}}}}})(jwplayer);(function(a){a.embed.logo=function(F,E,g){var p={prefix:"http://l.longtailvideo.com/"+E+"/",file:"",link:"",margin:8,out:0.5,over:1,timeout:5,hide:false,position:"bottom-left"};_css=a.utils.css;var d;var o;D();function D(){e();f();j()}function e(){if(p.prefix){var q=a.version.split(/\W/).splice(0,2).join("/");if(p.prefix.indexOf(q)<0){p.prefix+=q+"/"}}o=a.utils.extend({},p,F)}function n(){var u={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};u.display=o.hide?"none":"block";var r=o.position.toLowerCase().split("-");for(var q in r){u[r[q]]=o.margin}return u}function f(){d=document.createElement("img");d.id=g+"_jwplayer_logo";d.style.display="none";d.onload=function(q){_css(d,n());h()};if(!o.file){return}if(o.file.indexOf("http://")===0){d.src=o.file}else{d.src=o.prefix+o.file}}if(!o.file){return}function j(){if(o.link){d.onmouseover=l;d.onmouseout=h;d.onclick=c}else{this.mouseEnabled=false}}function c(q){if(typeof q!="undefined"){q.preventDefault();q.stopPropagation()}if(o.link){window.open(o.link,"_blank")}return}function h(q){if(o.link){d.style.opacity=o.out}return}function l(q){if(o.hide){d.style.opacity=o.over}return}return d}})(jwplayer);(function(a){a.html5=function(c){var e=c;this.setup=function(d){a.utils.extend(this,new a.html5.api(e,d));return this};return this}})(jwplayer);(function(c){var a=c.utils;var g=a.css;c.html5.view=function(p,n,C){var z=p;var ah=n;var ae=C;var H;var D;var x;var r;var A;var f;var u;var j=false;var l,e;function h(){H=document.createElement("div");H.id=ah.id;H.className=ah.className;_videowrapper=document.createElement("div");_videowrapper.id=H.id+"_video_wrapper";ah.id=H.id+"_video";g(H,{position:"relative",height:ae.height,width:ae.width,padding:0,backgroundColor:I(),zIndex:0});function I(){if(z.skin.getComponentSettings("display")&&z.skin.getComponentSettings("display").backgroundcolor){return z.skin.getComponentSettings("display").backgroundcolor}return parseInt("000000",16)}g(ah,{width:"100%",height:"100%",top:0,left:0,zIndex:1,margin:"auto",display:"block"});g(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});a.wrap(ah,H);a.wrap(ah,_videowrapper);r=document.createElement("div");r.id=H.id+"_displayarea";H.appendChild(r)}function G(){for(var I=0;I<ae.plugins.order.length;I++){var J=ae.plugins.order[I];if(a.exists(ae.plugins.object[J].getDisplayElement)){ae.plugins.object[J].height=a.parseDimension(ae.plugins.object[J].getDisplayElement().style.height);ae.plugins.object[J].width=a.parseDimension(ae.plugins.object[J].getDisplayElement().style.width);ae.plugins.config[J].currentPosition=ae.plugins.config[J].position}}y()}function ag(I){g(r,{display:(ae.getMedia()&&ae.getMedia().hasChrome()&&I.newstate!=c.api.events.state.IDLE)?"none":"block"})}function y(J){var L=ae.getMedia()?ae.getMedia().getDisplayElement():null;if(a.exists(L)){if(u!=L){if(u&&u.parentNode){u.parentNode.replaceChild(L,u)}u=L}for(var I=0;I<ae.plugins.order.length;I++){var K=ae.plugins.order[I];if(a.exists(ae.plugins.object[K].getDisplayElement)){ae.plugins.config[K].currentPosition=ae.plugins.config[K].position}}}F(ae.width,ae.height)}this.setup=function(){if(ae&&ae.getMedia()){ah=ae.getMedia().getDisplayElement()}h();G();z.jwAddEventListener(c.api.events.JWPLAYER_PLAYER_STATE,ag);z.jwAddEventListener(c.api.events.JWPLAYER_MEDIA_LOADED,y);z.jwAddEventListener(c.api.events.JWPLAYER_MEDIA_META,function(){af()});var I;if(a.exists(window.onresize)){I=window.onresize}window.onresize=function(J){if(a.exists(I)){try{I(J)}catch(L){}}if(z.jwGetFullscreen()){if(!o()){var K=a.getBoundingClientRect(document.body);ae.width=Math.abs(K.left)+Math.abs(K.right);ae.height=window.innerHeight;F(ae.width,ae.height)}}else{F(ae.width,ae.height)}}};function E(I){switch(I.keyCode){case 27:if(z.jwGetFullscreen()){z.jwSetFullscreen(false)}break;case 32:if(z.jwGetState()!=c.api.events.state.IDLE&&z.jwGetState()!=c.api.events.state.PAUSED){z.jwPause()}else{z.jwPlay()}break}}function F(N,K){if(H.style.display=="none"){return}var M=[].concat(ae.plugins.order);M.reverse();A=M.length+2;if(o()){try{if(ae.fullscreen&&!ae.getMedia().getDisplayElement().webkitDisplayingFullscreen){ae.fullscreen=false}}catch(I){}}if(!ae.fullscreen){D=N;x=K;if(typeof N=="string"&&N.indexOf("%")>0){D=a.getElementWidth(a.parentNode(H))*parseInt(N.replace("%"),"")/100}else{D=N}if(typeof K=="string"&&K.indexOf("%")>0){x=a.getElementHeight(a.parentNode(H))*parseInt(K.replace("%"),"")/100}else{x=K}g(r,{top:0,bottom:0,left:0,right:0,width:D,height:x,position:"absolute"});g(H,{height:x,width:D});var L=d(v,M);if(L.length>0){A+=L.length;var J=L.indexOf("playlist"),O=L.indexOf("controlbar");if(J>=0&&O>=0){L[J]=L.splice(O,1,L[J])[0]}d(ad,L,true)}l=a.getElementWidth(r);e=a.getElementHeight(r)}else{if(!o()){d(w,M,true)}}af()}function d(P,L,M){var N=[];for(var K=0;K<L.length;K++){var O=L[K];if(a.exists(ae.plugins.object[O].getDisplayElement)){if(ae.plugins.config[O].currentPosition!=c.html5.view.positions.NONE){var I=P(O,A--);if(!I){N.push(O)}else{var J=I.width;var Q=I.height;if(M){delete I.width;delete I.height}g(ae.plugins.object[O].getDisplayElement(),I);ae.plugins.object[O].resize(J,Q)}}else{g(ae.plugins.object[O].getDisplayElement(),{display:"none"})}}}return N}function v(J,K){if(a.exists(ae.plugins.object[J].getDisplayElement)){if(ae.plugins.config[J].position&&q(ae.plugins.config[J].position)){if(!a.exists(ae.plugins.object[J].getDisplayElement().parentNode)){H.appendChild(ae.plugins.object[J].getDisplayElement())}var I=B(J);I.zIndex=K;return I}}return false}function ad(I,J){if(!a.exists(ae.plugins.object[I].getDisplayElement().parentNode)){r.appendChild(ae.plugins.object[I].getDisplayElement())}return{position:"absolute",width:(a.getElementWidth(r)-a.parseDimension(r.style.left)-a.parseDimension(r.style.right)),height:(a.getElementHeight(r)-a.parseDimension(r.style.top)-a.parseDimension(r.style.bottom)),zIndex:J}}function w(I,J){return{position:"fixed",width:ae.width,height:ae.height,zIndex:J}}function af(){if(!a.exists(ae.getMedia())){return}r.style.position="absolute";var K=ae.getMedia().getDisplayElement();if(K&&K.tagName.toLowerCase()=="video"){K.style.position="absolute";if(K.parentNode){K.parentNode.style.left=r.style.left;K.parentNode.style.top=r.style.top}if(ae.fullscreen&&z.jwGetStretching()==c.utils.stretching.EXACTFIT&&!a.isMobile()){var I=document.createElement("div");a.stretch(c.utils.stretching.UNIFORM,I,a.getElementWidth(r),a.getElementHeight(r),l,e);a.stretch(c.utils.stretching.EXACTFIT,K,a.parseDimension(I.style.width),a.parseDimension(I.style.height),K.videoWidth?K.videoWidth:400,K.videoHeight?K.videoHeight:300);g(K,{left:I.style.left,top:I.style.top})}else{a.stretch(z.jwGetStretching(),K,a.getElementWidth(r),a.getElementHeight(r),K.videoWidth?K.videoWidth:400,K.videoHeight?K.videoHeight:300)}}else{var J=ae.plugins.object.display.getDisplayElement();if(J){ae.getMedia().resize(a.parseDimension(J.style.width),a.parseDimension(J.style.height))}else{ae.getMedia().resize(a.parseDimension(r.style.width),a.parseDimension(r.style.height))}}}function B(J){var K={position:"absolute",margin:0,padding:0,top:null};var I=ae.plugins.config[J].currentPosition.toLowerCase();switch(I.toUpperCase()){case c.html5.view.positions.TOP:K.top=a.parseDimension(r.style.top);K.left=a.parseDimension(r.style.left);K.width=a.getElementWidth(r)-a.parseDimension(r.style.left)-a.parseDimension(r.style.right);K.height=ae.plugins.object[J].height;r.style[I]=a.parseDimension(r.style[I])+ae.plugins.object[J].height+"px";r.style.height=a.getElementHeight(r)-K.height+"px";break;case c.html5.view.positions.RIGHT:K.top=a.parseDimension(r.style.top);K.right=a.parseDimension(r.style.right);K.width=ae.plugins.object[J].width;K.height=a.getElementHeight(r)-a.parseDimension(r.style.top)-a.parseDimension(r.style.bottom);r.style.width=a.getElementWidth(r)-K.width+"px";break;case c.html5.view.positions.BOTTOM:K.bottom=a.parseDimension(r.style.bottom);K.left=a.parseDimension(r.style.left);K.width=a.getElementWidth(r)-a.parseDimension(r.style.left)-a.parseDimension(r.style.right);K.height=ae.plugins.object[J].height;r.style.height=a.getElementHeight(r)-K.height+"px";break;case c.html5.view.positions.LEFT:K.top=a.parseDimension(r.style.top);K.left=a.parseDimension(r.style.left);K.width=ae.plugins.object[J].width;K.height=a.getElementHeight(r)-a.parseDimension(r.style.top)-a.parseDimension(r.style.bottom);r.style[I]=a.parseDimension(r.style[I])+ae.plugins.object[J].width+"px";r.style.width=a.getElementWidth(r)-K.width+"px";break;default:break}return K}this.resize=F;this.fullscreen=function(N){var J;try{J=ae.getMedia().getDisplayElement()}catch(I){}if(o()&&J&&J.webkitSupportsFullscreen){if(N&&!J.webkitDisplayingFullscreen){try{a.transform(J);J.webkitEnterFullscreen()}catch(M){}}else{if(!N){af();if(J.webkitDisplayingFullscreen){try{J.webkitExitFullscreen()}catch(M){}}}}j=false}else{if(N){document.onkeydown=E;clearInterval(f);var L=a.getBoundingClientRect(document.body);ae.width=Math.abs(L.left)+Math.abs(L.right);ae.height=window.innerHeight;var K={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483000};g(H,K);K.zIndex=1;if(ae.getMedia()&&ae.getMedia().getDisplayElement()){g(ae.getMedia().getDisplayElement(),K)}K.zIndex=2;g(r,K);j=true}else{document.onkeydown="";ae.width=D;ae.height=x;g(H,{position:"relative",height:ae.height,width:ae.width,zIndex:0});j=false}F(ae.width,ae.height)}};function q(I){return([c.html5.view.positions.TOP,c.html5.view.positions.RIGHT,c.html5.view.positions.BOTTOM,c.html5.view.positions.LEFT].toString().indexOf(I.toUpperCase())>-1)}function o(){if(z.jwGetState()!=c.api.events.state.IDLE&&!j&&(ae.getMedia()&&ae.getMedia().getDisplayElement()&&ae.getMedia().getDisplayElement().webkitSupportsFullscreen)&&a.useNativeFullscreen()){return true}return false}};c.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}})(jwplayer);(function(a){var e={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:a.html5.view.positions.BOTTOM,idlehide:false,hideplaylistcontrols:false,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_utils=a.utils;_css=_utils.css;_hide=function(c){_css(c,{display:"none"})};_show=function(c){_css(c,{display:"block"})};a.html5.controlbar=function(aq,u){window.controlbar=this;var ap=aq;var F=_utils.extend({},e,ap.skin.getComponentSettings("controlbar"),u);if(F.position==a.html5.view.positions.NONE||typeof a.html5.view.positions[F.position]=="undefined"){return}if(_utils.mapLength(ap.skin.getComponentLayout("controlbar"))>0){F.layout=ap.skin.getComponentLayout("controlbar")}var I;var j;var G;var H;var ae="none";var ak;var ao;var J;var aj;var ai;var x;var l={};var Y=false;var af={};var A;var am=false;var X;var ag;var p=false;var L=false;var N;var an=new a.html5.eventdispatcher();_utils.extend(this,an);function T(){if(!A){A=ap.skin.getSkinElement("controlbar","background");if(!A){A={width:0,height:0,src:null}}}return A}function g(){G=0;H=0;j=0;if(!Y){var au={height:T().height,backgroundColor:F.backgroundcolor};I=document.createElement("div");I.id=ap.id+"_jwplayer_controlbar";_css(I,au)}var at=(ap.skin.getSkinElement("controlbar","capLeft"));var ar=(ap.skin.getSkinElement("controlbar","capRight"));if(at){w("capLeft","left",false,I)}B("background",I,{position:"absolute",height:T().height,left:(at?at.width:0),zIndex:0},"img");if(T().src){l.background.src=T().src}B("elements",I,{position:"relative",height:T().height,zIndex:1});if(ar){w("capRight","right",false,I)}}this.getDisplayElement=function(){return I};this.resize=function(au,ar){n();_utils.cancelAnimation(I);ai=au;x=ar;if(L!=ap.jwGetFullscreen()){L=ap.jwGetFullscreen();ag=undefined}var at=v();S({id:ap.id,duration:J,position:ao});ad({id:ap.id,bufferPercent:aj});return at};this.show=function(){if(am){am=false;_show(I);q()}};this.hide=function(){if(!am){am=true;_hide(I);D()}};function Z(){var at=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var au in at){var ar=at[au];if(typeof l[ar]!="undefined"){af[ar]=_utils.getBoundingClientRect(l[ar])}}}var ah;function al(ar){if(am){return}clearTimeout(X);if(F.position==a.html5.view.positions.OVER||ap.jwGetFullscreen()){switch(ap.jwGetState()){case a.api.events.state.PAUSED:case a.api.events.state.IDLE:if(I&&I.style.opacity<1&&(!F.idlehide||_utils.exists(ar))){ah=false;setTimeout(function(){if(!ah){r()}},100)}if(F.idlehide){X=setTimeout(function(){z()},2000)}break;default:ah=true;if(ar){r()}X=setTimeout(function(){z()},2000);break}}else{r()}}function z(){if(!am){D();if(I.style.opacity==1){_utils.cancelAnimation(I);_utils.fadeTo(I,0,0.1,1,0)}}}function r(){if(!am){q();if(I.style.opacity==0){_utils.cancelAnimation(I);_utils.fadeTo(I,1,0.1,0,0)}}}function P(ar){return function(){if(p&&ag!=ar){ag=ar;an.sendEvent(ar,{component:"controlbar",boundingRect:h()})}}}var q=P(a.api.events.JWPLAYER_COMPONENT_SHOW);var D=P(a.api.events.JWPLAYER_COMPONENT_HIDE);function h(){if(F.position==a.html5.view.positions.OVER||ap.jwGetFullscreen()){return _utils.getDimensions(I)}else{return{x:0,y:0,width:0,height:0}}}function B(aw,av,au,ar){var at;if(!Y){if(!ar){ar="div"}at=document.createElement(ar);l[aw]=at;at.id=I.id+"_"+aw;av.appendChild(at)}else{at=document.getElementById(I.id+"_"+aw)}if(_utils.exists(au)){_css(at,au)}return at}function f(){if(ap.jwGetHeight()<=40){F.layout=_utils.clone(F.layout);for(var ar=0;ar<F.layout.left.elements.length;ar++){if(F.layout.left.elements[ar].name=="fullscreen"){F.layout.left.elements.splice(ar,1)}}for(ar=0;ar<F.layout.right.elements.length;ar++){if(F.layout.right.elements[ar].name=="fullscreen"){F.layout.right.elements.splice(ar,1)}}W()}U(F.layout.left);U(F.layout.center);U(F.layout.right)}function U(av,ar){var aw=av.position=="right"?"right":"left";var au=_utils.extend([],av.elements);if(_utils.exists(ar)){au.reverse()}var av=B(av.position+"Group",l.elements,{"float":"left",styleFloat:"left",cssFloat:"left",height:"100%"});for(var at=0;at<au.length;at++){E(au[at],aw,av)}}function c(){return j++}function E(aw,ay,aA){var av,at,au,ar,aB;if(!aA){aA=l.elements}if(aw.type=="divider"){w("divider"+c(),ay,true,aA,undefined,aw.width,aw.element);return}switch(aw.name){case"play":w("playButton",ay,false,aA);w("pauseButton",ay,true,aA);o("playButton","jwPlay");o("pauseButton","jwPause");break;case"prev":w("prevButton",ay,true,aA);o("prevButton","jwPlaylistPrev");break;case"stop":w("stopButton",ay,true,aA);o("stopButton","jwStop");break;case"next":w("nextButton",ay,true,aA);o("nextButton","jwPlaylistNext");break;case"elapsed":w("elapsedText",ay,true,aA);break;case"time":at=!_utils.exists(ap.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:ap.skin.getSkinElement("controlbar","timeSliderCapLeft").width;au=!_utils.exists(ap.skin.getSkinElement("controlbar","timeSliderCapRight"))?0:ap.skin.getSkinElement("controlbar","timeSliderCapRight").width;av=ay=="left"?at:au;aB={height:T().height,position:"relative","float":"left",styleFloat:"left",cssFloat:"left"};var ax=B("timeSlider",aA,aB);w("timeSliderCapLeft",ay,true,ax,"relative");w("timeSliderRail",ay,false,ax,"relative");w("timeSliderBuffer",ay,false,ax,"absolute");w("timeSliderProgress",ay,false,ax,"absolute");w("timeSliderThumb",ay,false,ax,"absolute");w("timeSliderCapRight",ay,true,ax,"relative");y("time");break;case"fullscreen":w("fullscreenButton",ay,false,aA);w("normalscreenButton",ay,true,aA);o("fullscreenButton","jwSetFullscreen",true);o("normalscreenButton","jwSetFullscreen",false);break;case"volume":at=!_utils.exists(ap.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?0:ap.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;au=!_utils.exists(ap.skin.getSkinElement("controlbar","volumeSliderCapRight"))?0:ap.skin.getSkinElement("controlbar","volumeSliderCapRight").width;av=ay=="left"?at:au;ar=ap.skin.getSkinElement("controlbar","volumeSliderRail").width+at+au;aB={height:T().height,position:"relative",width:ar,"float":"left",styleFloat:"left",cssFloat:"left"};var az=B("volumeSlider",aA,aB);w("volumeSliderCapLeft",ay,false,az,"relative");w("volumeSliderRail",ay,false,az,"relative");w("volumeSliderProgress",ay,false,az,"absolute");w("volumeSliderThumb",ay,false,az,"absolute");w("volumeSliderCapRight",ay,false,az,"relative");y("volume");break;case"mute":w("muteButton",ay,false,aA);w("unmuteButton",ay,true,aA);o("muteButton","jwSetMute",true);o("unmuteButton","jwSetMute",false);break;case"duration":w("durationText",ay,true,aA);break}}function w(av,ay,at,aB,aw,ar,au){if(_utils.exists(ap.skin.getSkinElement("controlbar",av))||av.indexOf("Text")>0||av.indexOf("divider")===0){var ax={height:"100%",position:aw?aw:"relative",display:"block","float":"left",styleFloat:"left",cssFloat:"left"};if((av.indexOf("next")===0||av.indexOf("prev")===0)&&(ap.jwGetPlaylist().length<2||F.hideplaylistcontrols)){at=false;ax.display="none"}var aC;if(av.indexOf("Text")>0){av.innerhtml="00:00";ax.font=F.fontsize+"px/"+(T().height+1)+"px "+F.font;ax.color=F.fontcolor;ax.textAlign="center";ax.fontWeight=F.fontweight;ax.fontStyle=F.fontstyle;ax.cursor="default";aC=14+3*F.fontsize}else{if(av.indexOf("divider")===0){if(ar){if(!isNaN(parseInt(ar))){aC=parseInt(ar)}}else{if(au){var az=ap.skin.getSkinElement("controlbar",au);if(az){ax.background="url("+az.src+") repeat-x center left";aC=az.width}}else{ax.background="url("+ap.skin.getSkinElement("controlbar","divider").src+") repeat-x center left";aC=ap.skin.getSkinElement("controlbar","divider").width}}}else{ax.background="url("+ap.skin.getSkinElement("controlbar",av).src+") repeat-x center left";aC=ap.skin.getSkinElement("controlbar",av).width}}if(ay=="left"){if(at){G+=aC}}else{if(ay=="right"){if(at){H+=aC}}}if(_utils.typeOf(aB)=="undefined"){aB=l.elements}ax.width=aC;if(Y){_css(l[av],ax)}else{var aA=B(av,aB,ax);if(_utils.exists(ap.skin.getSkinElement("controlbar",av+"Over"))){aA.onmouseover=function(aD){aA.style.backgroundImage=["url(",ap.skin.getSkinElement("controlbar",av+"Over").src,")"].join("")};aA.onmouseout=function(aD){aA.style.backgroundImage=["url(",ap.skin.getSkinElement("controlbar",av).src,")"].join("")}}if(av.indexOf("divider")==0){aA.setAttribute("class","divider")}}}}function K(){ap.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,C);ap.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,ab);ap.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,ad);ap.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,aa);ap.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_TIME,S);ap.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,R);ap.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,V);ap.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,d)}function C(){if(!F.hideplaylistcontrols){if(ap.jwGetPlaylist().length>1){_show(l.nextButton);_show(l.prevButton)}else{_hide(l.nextButton);_hide(l.prevButton)}v();M()}}function ab(ar){J=ap.jwGetPlaylist()[ar.index].duration;S({id:ap.id,duration:J,position:0});ad({id:ap.id,bufferProgress:0})}function M(){S({id:ap.id,duration:ap.jwGetDuration(),position:0});ad({id:ap.id,bufferProgress:0});R({id:ap.id,mute:ap.jwGetMute()});aa({id:ap.id,newstate:a.api.events.state.IDLE});V({id:ap.id,volume:ap.jwGetVolume()})}function o(au,av,at){if(Y){return}if(_utils.exists(ap.skin.getSkinElement("controlbar",au))){var ar=l[au];if(_utils.exists(ar)){_css(ar,{cursor:"pointer"});if(av=="fullscreen"){ar.onmouseup=function(aw){aw.stopPropagation();ap.jwSetFullscreen(!ap.jwGetFullscreen())}}else{ar.onmouseup=function(aw){aw.stopPropagation();if(_utils.exists(at)){ap[av](at)}else{ap[av]()}}}}}}function y(ar){if(Y){return}var at=l[ar+"Slider"];_css(l.elements,{cursor:"pointer"});_css(at,{cursor:"pointer"});at.onmousedown=function(au){ae=ar};at.onmouseup=function(au){au.stopPropagation();Q(au.pageX)};at.onmousemove=function(au){if(ae=="time"){ak=true;var av=au.pageX-af[ar+"Slider"].left-window.pageXOffset;_css(l[ae+"SliderThumb"],{left:av})}}}function Q(at){ak=false;var ar;if(ae=="time"){ar=at-af.timeSliderRail.left+window.pageXOffset;var av=ar/af.timeSliderRail.width*J;if(av<0){av=0}else{if(av>J){av=J-3}}if(ap.jwGetState()==a.api.events.state.PAUSED||ap.jwGetState()==a.api.events.state.IDLE){ap.jwPlay()}ap.jwSeek(av)}else{if(ae=="volume"){ar=at-af.volumeSliderRail.left-window.pageXOffset;var au=Math.round(ar/af.volumeSliderRail.width*100);if(au<0){au=0}else{if(au>100){au=100}}if(ap.jwGetMute()){ap.jwSetMute(false)}ap.jwSetVolume(au)}}ae="none"}function ad(at){if(_utils.exists(at.bufferPercent)){aj=at.bufferPercent}if(af.timeSliderRail){var av=ap.skin.getSkinElement("controlbar","timeSliderCapLeft");var au=af.timeSliderRail.width;var ar=isNaN(Math.round(au*aj/100))?0:Math.round(au*aj/100);_css(l.timeSliderBuffer,{width:ar,left:av?av.width:0})}}function R(ar){if(ar.mute){_hide(l.muteButton);_show(l.unmuteButton);_hide(l.volumeSliderProgress)}else{_show(l.muteButton);_hide(l.unmuteButton);_show(l.volumeSliderProgress)}}function aa(ar){if(ar.newstate==a.api.events.state.BUFFERING||ar.newstate==a.api.events.state.PLAYING){_show(l.pauseButton);_hide(l.playButton)}else{_hide(l.pauseButton);_show(l.playButton)}al();if(ar.newstate==a.api.events.state.IDLE){_hide(l.timeSliderBuffer);_hide(l.timeSliderProgress);_hide(l.timeSliderThumb);S({id:ap.id,duration:ap.jwGetDuration(),position:0})}else{_show(l.timeSliderBuffer);if(ar.newstate!=a.api.events.state.BUFFERING){_show(l.timeSliderProgress);_show(l.timeSliderThumb)}}}function d(ar){ad({bufferPercent:0});S(_utils.extend(ar,{position:0,duration:J}))}function S(av){if(_utils.exists(av.position)){ao=av.position}if(_utils.exists(av.duration)){J=av.duration}var at=(ao===J===0)?0:ao/J;var ax=af.timeSliderRail;if(ax){var ar=isNaN(Math.round(ax.width*at))?0:Math.round(ax.width*at);var aw=ap.skin.getSkinElement("controlbar","timeSliderCapLeft");var au=ar+(aw?aw.width:0);if(l.timeSliderProgress){_css(l.timeSliderProgress,{width:ar,left:aw?aw.width:0});if(!ak){if(l.timeSliderThumb){l.timeSliderThumb.style.left=au+"px"}}}}if(l.durationText){l.durationText.innerHTML=_utils.timeFormat(J)}if(l.elapsedText){l.elapsedText.innerHTML=_utils.timeFormat(ao)}}function W(){var ar=l.elements.childNodes;var ax,av;for(var au=0;au<ar.length;au++){var aw=ar[au].childNodes;for(var at in aw){if(isNaN(parseInt(at,10))){continue}if(aw[at].id.indexOf(I.id+"_divider")===0&&av&&av.id.indexOf(I.id+"_divider")===0&&aw[at].style.backgroundImage==av.style.backgroundImage){aw[at].style.display="none"}else{if(aw[at].id.indexOf(I.id+"_divider")===0&&ax&&ax.style.display!="none"){aw[at].style.display="block"}}if(aw[at].style.display!="none"){av=aw[at]}ax=aw[at]}}}function O(){if(ap.jwGetFullscreen()){_show(l.normalscreenButton);_hide(l.fullscreenButton)}else{_hide(l.normalscreenButton);_show(l.fullscreenButton)}if(ap.jwGetState()==a.api.events.state.BUFFERING||ap.jwGetState()==a.api.events.state.PLAYING){_show(l.pauseButton);_hide(l.playButton)}else{_hide(l.pauseButton);_show(l.playButton)}if(ap.jwGetMute()==true){_hide(l.muteButton);_show(l.unmuteButton)}else{_show(l.muteButton);_hide(l.unmuteButton)}}function v(){W();O();var au={width:ai};var aB={"float":"left",styleFloat:"left",cssFloat:"left"};if(F.position==a.html5.view.positions.OVER||ap.jwGetFullscreen()){au.left=F.margin;au.width-=2*F.margin;au.top=x-T().height-F.margin;au.height=T().height}var aw=ap.skin.getSkinElement("controlbar","capLeft");var az=ap.skin.getSkinElement("controlbar","capRight");aB.width=au.width-(aw?aw.width:0)-(az?az.width:0);var av=_utils.getBoundingClientRect(l.leftGroup).width;var ay=_utils.getBoundingClientRect(l.rightGroup).width;var ax=aB.width-av-ay;var at=ax;var ar=ap.skin.getSkinElement("controlbar","timeSliderCapLeft");var aA=ap.skin.getSkinElement("controlbar","timeSliderCapRight");if(_utils.exists(ar)){at-=ar.width}if(_utils.exists(aA)){at-=aA.width}l.timeSlider.style.width=ax+"px";l.timeSliderRail.style.width=at+"px";_css(I,au);_css(l.elements,aB);_css(l.background,aB);Z();return au}function V(ax){if(_utils.exists(l.volumeSliderRail)){var au=isNaN(ax.volume/100)?1:ax.volume/100;var av=_utils.parseDimension(l.volumeSliderRail.style.width);var ar=isNaN(Math.round(av*au))?0:Math.round(av*au);var ay=_utils.parseDimension(l.volumeSliderRail.style.right);var at=(!_utils.exists(ap.skin.getSkinElement("controlbar","volumeSliderCapLeft")))?0:ap.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(l.volumeSliderProgress,{width:ar,left:at});if(l.volumeSliderThumb){var aw=(ar-Math.round(_utils.parseDimension(l.volumeSliderThumb.style.width)/2));aw=Math.min(Math.max(aw,0),av-_utils.parseDimension(l.volumeSliderThumb.style.width));_css(l.volumeSliderThumb,{left:aw})}if(_utils.exists(l.volumeSliderCapLeft)){_css(l.volumeSliderCapLeft,{left:0})}}}function n(){N=document.getElementById(ap.id);N.addEventListener("mousemove",al)}function ac(){g();f();Z();Y=true;K();F.idlehide=(F.idlehide.toString().toLowerCase()=="true");if(F.position==a.html5.view.positions.OVER&&F.idlehide){I.style.opacity=0;p=true}else{I.style.opacity=1;setTimeout((function(){p=true;q()}),1)}n();M()}ac();return this}})(jwplayer);(function(g){var c=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"];var a=g.utils;g.html5.controller=function(C,r,h,o){var B=C;var w=h;var q=o;var M=r;var x=true;var f=-1;var O=a.exists(w.config.debug)&&(w.config.debug.toString().toLowerCase()=="console");var y=new g.html5.eventdispatcher(M.id,O);a.extend(this,y);var ac=[];var E=false;function v(Q){if(E){y.sendEvent(Q.type,Q)}else{ac.push(Q)}}function G(Q){if(!E){E=true;y.sendEvent(g.api.events.JWPLAYER_READY,Q);if(g.utils.exists(window.playerReady)){playerReady(Q)}if(g.utils.exists(window[h.config.playerReady])){window[h.config.playerReady](Q)}while(ac.length>0){var S=ac.shift();y.sendEvent(S.type,S)}if(h.config.autostart&&!g.utils.isIOS()){A()}while(L.length>0){var R=L.shift();P(R.method,R.arguments)}}}w.addGlobalListener(v);w.addEventListener(g.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){w.getMedia().play()});w.addEventListener(g.api.events.JWPLAYER_MEDIA_TIME,function(Q){if(Q.position>=w.playlist[w.item].start&&f>=0){w.playlist[w.item].start=f;f=-1}});w.addEventListener(g.api.events.JWPLAYER_MEDIA_COMPLETE,function(Q){setTimeout(ad,25)});w.addEventListener(g.api.events.JWPLAYER_PLAYLIST_LOADED,A);w.addEventListener(g.api.events.JWPLAYER_FULLSCREEN,D);function d(){try{J(w.item);if(w.playlist[w.item].levels[0].file.length>0){if(x||w.state==g.api.events.state.IDLE){w.getMedia().load(w.playlist[w.item]);x=false}else{if(w.state==g.api.events.state.PAUSED){w.getMedia().play()}}}return true}catch(Q){y.sendEvent(g.api.events.JWPLAYER_ERROR,Q)}return false}function e(){try{if(w.playlist[w.item].levels[0].file.length>0){switch(w.state){case g.api.events.state.PLAYING:case g.api.events.state.BUFFERING:if(w.getMedia()){w.getMedia().pause()}break}}return true}catch(Q){y.sendEvent(g.api.events.JWPLAYER_ERROR,Q)}return false}function N(Q){try{if(w.playlist[w.item].levels[0].file.length>0){if(typeof Q!="number"){Q=parseFloat(Q)}switch(w.state){case g.api.events.state.IDLE:if(f<0){f=w.playlist[w.item].start;w.playlist[w.item].start=Q}d();break;case g.api.events.state.PLAYING:case g.api.events.state.PAUSED:case g.api.events.state.BUFFERING:w.seek(Q);break}}return true}catch(R){y.sendEvent(g.api.events.JWPLAYER_ERROR,R)}return false}function K(Q){if(!a.exists(Q)){Q=true}try{if(w.getMedia()){w.getMedia().stop(Q)}return true}catch(R){y.sendEvent(g.api.events.JWPLAYER_ERROR,R)}return false}function u(){try{if(w.playlist[w.item].levels[0].file.length>0){if(w.config.shuffle){J(ag())}else{if(w.item+1==w.playlist.length){J(0)}else{J(w.item+1)}}}if(w.state!=g.api.events.state.IDLE){var R=w.state;w.state=g.api.events.state.IDLE;y.sendEvent(g.api.events.JWPLAYER_PLAYER_STATE,{oldstate:R,newstate:g.api.events.state.IDLE})}d();return true}catch(Q){y.sendEvent(g.api.events.JWPLAYER_ERROR,Q)}return false}function n(){try{if(w.playlist[w.item].levels[0].file.length>0){if(w.config.shuffle){J(ag())}else{if(w.item===0){J(w.playlist.length-1)}else{J(w.item-1)}}}if(w.state!=g.api.events.state.IDLE){var R=w.state;w.state=g.api.events.state.IDLE;y.sendEvent(g.api.events.JWPLAYER_PLAYER_STATE,{oldstate:R,newstate:g.api.events.state.IDLE})}d();return true}catch(Q){y.sendEvent(g.api.events.JWPLAYER_ERROR,Q)}return false}function ag(){var Q=null;if(w.playlist.length>1){while(!a.exists(Q)){Q=Math.floor(Math.random()*w.playlist.length);if(Q==w.item){Q=null}}}else{Q=0}return Q}function j(R){if(!w.playlist||!w.playlist[R]){return false}try{if(w.playlist[R].levels[0].file.length>0){var S=w.state;if(S!==g.api.events.state.IDLE){if(w.playlist[w.item].provider==w.playlist[R].provider){K(false)}else{K()}}J(R);d()}return true}catch(Q){y.sendEvent(g.api.events.JWPLAYER_ERROR,Q)}return false}function J(Q){if(!w.playlist[Q]){return}w.setActiveMediaProvider(w.playlist[Q]);if(w.item!=Q){w.item=Q;x=true;y.sendEvent(g.api.events.JWPLAYER_PLAYLIST_ITEM,{index:Q})}}function l(R){try{J(w.item);var S=w.getMedia();switch(typeof(R)){case"number":S.volume(R);break;case"string":S.volume(parseInt(R,10));break}return true}catch(Q){y.sendEvent(g.api.events.JWPLAYER_ERROR,Q)}return false}function F(R){try{J(w.item);var S=w.getMedia();if(typeof R=="undefined"){S.mute(!w.mute)}else{if(R.toString().toLowerCase()=="true"){S.mute(true)}else{S.mute(false)}}return true}catch(Q){y.sendEvent(g.api.events.JWPLAYER_ERROR,Q)}return false}function p(R,Q){try{w.width=R;w.height=Q;q.resize(R,Q);y.sendEvent(g.api.events.JWPLAYER_RESIZE,{width:w.width,height:w.height});return true}catch(S){y.sendEvent(g.api.events.JWPLAYER_ERROR,S)}return false}function I(R){try{if(typeof R=="undefined"){R=!w.fullscreen}if(R!=w.fullscreen){if(R.toString().toLowerCase()=="true"){w.fullscreen=true;q.fullscreen(true);y.sendEvent(g.api.events.JWPLAYER_FULLSCREEN,{fullscreen:true})}else{w.fullscreen=false;q.fullscreen(false);y.sendEvent(g.api.events.JWPLAYER_FULLSCREEN,{fullscreen:false})}y.sendEvent(g.api.events.JWPLAYER_RESIZE,{width:w.width,height:w.height})}return true}catch(Q){y.sendEvent(g.api.events.JWPLAYER_ERROR,Q)}return false}function af(Q){try{K();w.loadPlaylist(Q);if(w.playlist[w.item].provider){J(w.item);if(w.config.autostart.toString().toLowerCase()=="true"){d()}return true}else{return false}}catch(R){y.sendEvent(g.api.events.JWPLAYER_ERROR,R)}return false}function A(Q){J(w.playlist[w.item]);if(w.config.autostart.toString().toLowerCase()=="true"){d()}}function D(Q){I(Q.fullscreen)}function H(){try{return w.getMedia().detachMedia()}catch(Q){return null}}function z(){try{return w.getMedia().attachMedia()}catch(Q){return null}}g.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};function ad(){switch(w.config.repeat.toUpperCase()){case g.html5.controller.repeatoptions.SINGLE:d();break;case g.html5.controller.repeatoptions.ALWAYS:if(w.item==w.playlist.length-1&&!w.config.shuffle){j(0)}else{u()}break;case g.html5.controller.repeatoptions.LIST:if(w.item==w.playlist.length-1&&!w.config.shuffle){K();J(0)}else{u()}break;default:K();break}}var L=[];function ae(Q){return function(){if(E){P(Q,arguments)}else{L.push({method:Q,arguments:arguments})}}}function P(S,R){var Q=[];for(i=0;i<R.length;i++){Q.push(R[i])}S.apply(this,Q)}this.play=ae(d);this.pause=ae(e);this.seek=ae(N);this.stop=ae(K);this.next=ae(u);this.prev=ae(n);this.item=ae(j);this.setVolume=ae(l);this.setMute=ae(F);this.resize=ae(p);this.setFullscreen=ae(I);this.load=ae(af);this.playerReady=G;this.detachMedia=H;this.attachMedia=z}})(jwplayer);(function(a){a.html5.defaultSkin=function(){this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.1"><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/><setting name="fontcolor" value="0x000000"/></settings><layout><group position="left"><button name="play"/><divider name="divider"/><button name="prev"/><divider name="divider"/><button name="next"/><divider name="divider"/><text name="elapsed"/></group><group position="center"><slider name="time"/></group><group position="right"><text name="duration"/><divider name="divider"/><button name="blank"/><divider name="divider"/><button name="mute"/><slider name="volume"/><divider name="divider"/><button name="fullscreen"/></group></layout><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUOI3t1LERACAMQlFgGvcfxNIhHMK4gsUvUviOmgtNsiAZkBSEKxKEnCYkkQrJn/YwbUNiSDDYRZaQRDaShv+oX9GBZEIuK+8hXVLs+/YAAAAASUVORK5CYII="/><element name="blankButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUCB0FwcENgEAAw7Aq+893g8APUILNOQcbFRktVGqUVFRkWNz3xTa2sUaLNUosKlRUvvf5AdbWOTtzmzyWAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAANUlEQVR42u2RsQkAAAjD/NTTPaW6dXLrINJA1kBpGPMAjDWmOgp1HFQXx+b1KOefO4oxY57R73YnVYCQUCQAAAAASUVORK5CYII="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAIUlEQVQ4jWNgGAWjYOiD/0gYG3/U0FFDB4Oho2AUDAYAAEwiL9HrpdMVAAAAAElFTkSuQmCC"/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQklEQVQ4y2NgGAWjYOiD/1AMA/JAfB5NjCJD/YH4PRaLyDa0H4lNNUP/DxlD59PCUBCIp3ZEwYA+NZLUKBgFgwEAAN+HLX9sB8u8AAAAAElFTkSuQmCC"/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQElEQVQ4y2NgGAWjYOiD/0B8Hojl0cT+U2ooCL8HYn9qGwrD/bQw9P+QMXQ+tSMqnpoRBUpS+tRMUqNgFAwGAADxZy1/mHvFnAAAAABJRU5ErkJggg=="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAOElEQVRIDe3BwQkAIRADwAhhw/nU/kWwUK+KPITMABFh19Y+F0acY8CJvX9wYpXgRElwolSIiMf9ZWEDhtwurFsAAAAASUVORK5CYII="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAN0lEQVRIDe3BwQkAMQwDMBcc55mRe9zi7RR+FCwBEWG39vcfGHFm4MTuhhMlwYlVBSdKhYh43AW/LQMKm1spzwAAAABJRU5ErkJggg=="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAIElEQVRIiWNgGAWjYBTQBfynMR61YCRYMApGwSigMQAAiVWPcbq6UkIAAAAASUVORK5CYII="/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAYCAYAAAA/OUfnAAAAO0lEQVQYlWP4//8/Awwz0JgDBP/BeN6Cxf/hnI2btiI4u/fsQ3AOHjqK4Jw4eQbBOX/hEoKDYjSd/AMA4cS4mfLsorgAAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAJklEQVQ4y2NgGAUjDcwH4v/kaPxPikZkxcNVI9mBQ5XoGAWDFwAAsKAXKQQmfbUAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAMklEQVQ4y2NgGAWDHPyntub5xBr6Hwv/Pzk2/yfVG/8psRFE25Oq8T+tQnsIaB4FVAcAi2YVysVY52AAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAACmpqampqbBXAu8AAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAAAAAAAAAACDY+nAAAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderCapRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAQklEQVRIiWNgGAWjYMiD/0iYFDmSLbDHImdPLQtgBpEiR7Zl2NijAA5oEkT/0Whi5UiyAJ8BVMsHNMtoo2AUDAIAAGdcIN3IDNXoAAAAAElFTkSuQmCC"/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAP0lEQVRIx2NgGAWjYMiD/1RSQ5QB/wmIUWzJfzx8qhj+n4DYCAY0DyJ7PBbYU8sHMEvwiZFtODXUjIJRMJgBACpWIN2ZxdPTAAAAAElFTkSuQmCC"/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAiUlEQVR42u3XSw2AMBREURwgAQlIQAISKgUpSEFKJeCg5b0E0kWBTVcD9ySTsL0Jn9IBAAAA+K2UUrBlW/Rr5ZDoIeeuoFkxJD9ss03aIXXQqB9SttoG7ZA6qNcOKdttiwcJh9RB+iFl4SshkRBuLR72+9cvH0SOKI2HRo7x/Fi1/uoCAAAAwLsD8ki99IlO2dQAAAAASUVORK5CYII="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAVUlEQVR42u3WMQrAIAxAUW/g/SdvGmvpoOBeSHgPsjj5QTANAACARCJilIhYM0tEvJM+Ik3Id9E957kQIb+F3OdCPC0hPkQriqWx9hp/x/QGAABQyAPLB22VGrpLDgAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAA/0lEQVR42u2U0QmEMBAF7cASLMESUoIlpARLSCkpwRJSgiWkhOvAXD4WsgRkyaG5DbyB+Yvg8KITAAAAAAAYk+u61mwk15EjPtlEfihmqIiZR1Qx80ghjgdUuiHXGHSVsoag0x6x8DUoyjD5KovmEJ9NTDMRPIT0mtdIUkjlonuNohO+Ha99DTmkuGgKCTcvebAzx82ZoCWC3/3aIMWSRucaxcjORSFY4xpFdjYJGp1rFGcyCYZ/RVh6AUnfcNZ2zih3/mGj1jVCdiNDwyrq1rA/xMdeEXvDVdnYc1vDc3uPkDObXrlaxbNHSOohQhr/WOeLEWfWTgAAAAAAADzNF9sHJ7PJ57MlAAAAAElFTkSuQmCC"/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACBklEQVR42u3Zv0sCYRzH8USTzOsHHEWGkC1HgaDgkktGDjUYtDQ01RDSljQ1BLU02+rk1NTm2NLq4Nx/0L/h9fnCd3j4cnZe1/U8xiO8h3uurufF0/3COd/3/0UWYiEWYiEWYiGJQ+J8xuPxKhXjEMZANinjIZhkGuVRNioE4wVURo4JkHm0xKWmhRAc1bh1EyCUw5BcBIjHiApKa4CErko6DEJwuRo6IRKzyJD8FJAyI3Zp2zRImiBcRhlfo5RtlxCcE3CcDNpGrhYIT2IhAJKilO0VRmzJ32fAMTpBTS0QMfGwlcuKMRftE0DJ0wCJdcOsCkBdXP3Mh9CEFUBTPS9mDZJBG6io4aqVzMdCokCw9H3kT6j/C/9iDdSeUMNC7DkyyxAs/Rk6Qss8FPWRZgdVtUH4DjxEn1zxh+/zj1wHlf4MQhNGrwqA6sY40U8JonRJwEQh+AO3AvCG6gHv4U7IY4krxkroWoAOkoQMGfCBrgIm+YBGqPENpIJ66CJg3x66Y0gnSUidAEEnNr9jjLiWMn5DiWP0OC/oAsCgkq43xBdGDMQr7YASP/vEkHvdl1+JOCcEV5sC4hGEOzTlPuKgd0b0xD4JkRcOgnRRTjdErkYhAsQVq6IdUuPJtmk7BCL3t/h88cx91pKQkI/pkDx6pmYTIjEoxiHsN1YWYiEWYiEWknhflZ5IErA5nr8AAAAASUVORK5CYII="/></elements></component><component name="dock"><settings><setting name="fontcolor" value="0xffffff"/></settings><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/></elements></component><component name="playlist"><settings><setting name="backgroundcolor" value="0xe8e8e8"/></settings><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHBJREFUaN7t2MENwCAMBEEe9N8wSKYC/D8YV7CyJoRkVtVImxkZPQInMxoP0XiIxkM0HsGbjjSNBx544IEHHnjggUe/6UQeey0PIh7XTftGxKPj4eXCtLsHHh+ZxkO0Iw8PR55Ni8ZD9Hu/EAoP0dc5RRg9qeRjVF8AAAAASUVORK5CYII="/><element name="sliderCapTop" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAKElEQVQ4y2P4//8/Az68bNmy/+iYkB6GUUNHDR01dNTQUUNHDaXcUABUDOKhcxnsSwAAAABJRU5ErkJggg=="/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAJUlEQVQ4T2P4//8/Ay4MBP9xYbz6Rg0dNXTU0FFDRw0dNZRyQwHH4NBa7GJsXAAAAABJRU5ErkJggg=="/><element name="sliderCapBottom" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/></elements></component></components></skin>';this.xml=null;if(window.DOMParser){parser=new DOMParser();this.xml=parser.parseFromString(this.text,"text/xml")}else{this.xml=new ActiveXObject("Microsoft.XMLDOM");this.xml.async="false";this.xml.loadXML(this.text)}return this}})(jwplayer);(function(a){_utils=a.utils;_css=_utils.css;_hide=function(c){_css(c,{display:"none"})};_show=function(c){_css(c,{display:"block"})};a.html5.display=function(ac,J){var ab={icons:true,showmute:false};var ae=_utils.extend({},ab,J);var aa=ac;var r={};var Q;var w;var z;var n;var u;var L;var D;var M=!_utils.exists(aa.skin.getComponentSettings("display").bufferrotation)?15:parseInt(aa.skin.getComponentSettings("display").bufferrotation,10);var o=!_utils.exists(aa.skin.getComponentSettings("display").bufferinterval)?100:parseInt(aa.skin.getComponentSettings("display").bufferinterval,10);var C=-1;var v="";var c=true;var P;var S=false;var f=false;var y,g;var K=new a.html5.eventdispatcher();_utils.extend(this,K);var G={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:d},display_icon:{style:{cursor:"pointer",position:"absolute",top:((aa.skin.getSkinElement("display","background").height-aa.skin.getSkinElement("display","playIcon").height)/2),left:((aa.skin.getSkinElement("display","background").width-aa.skin.getSkinElement("display","playIcon").width)/2),border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:((w-aa.skin.getSkinElement("display","background").height)/2),left:((Q-aa.skin.getSkinElement("display","background").width)/2),border:0,backgroundImage:(["url(",aa.skin.getSkinElement("display","background").src,")"]).join(""),width:aa.skin.getSkinElement("display","background").width,height:aa.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:Q,height:w,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:0.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}};aa.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,j);aa.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,j);aa.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,j);aa.jwAddEventListener(a.api.events.JWPLAYER_ERROR,l);e();function e(){r.display=F("div","display");r.display_text=F("div","display_text");r.display.appendChild(r.display_text);r.display_image=F("img","display_image");r.display_image.onerror=function(T){_hide(r.display_image)};r.display_image.onload=B;r.display_icon=F("div","display_icon");r.display_iconBackground=F("div","display_iconBackground");r.display.appendChild(r.display_image);r.display_iconBackground.appendChild(r.display_icon);r.display.appendChild(r.display_iconBackground);R();setTimeout((function(){f=true;if(ae.icons.toString()=="true"){I()}}),1)}this.getDisplayElement=function(){return r.display};this.resize=function(U,T){_css(r.display,{width:U,height:T});_css(r.display_text,{width:(U-10),top:((T-_utils.getBoundingClientRect(r.display_text).height)/2)});_css(r.display_iconBackground,{top:((T-aa.skin.getSkinElement("display","background").height)/2),left:((U-aa.skin.getSkinElement("display","background").width)/2)});if(Q!=U||w!=T){Q=U;w=T;P=undefined;I()}if(!aa.jwGetFullscreen()){y=U;g=T}O();j({})};this.show=function(){if(S){S=false;q(aa.jwGetState())}};this.hide=function(){if(!S){E();S=true}};function B(T){z=r.display_image.naturalWidth;n=r.display_image.naturalHeight;O()}function O(){if(aa.jwGetFullscreen()&&aa.jwGetStretching()==a.utils.stretching.EXACTFIT){var T=document.createElement("div");_utils.stretch(a.utils.stretching.UNIFORM,T,Q,w,y,g);_utils.stretch(a.utils.stretching.EXACTFIT,r.display_image,_utils.parseDimension(T.style.width),_utils.parseDimension(T.style.height),z,n);_css(r.display_image,{left:T.style.left,top:T.style.top})}else{_utils.stretch(aa.jwGetStretching(),r.display_image,Q,w,z,n)}}function F(T,V){var U=document.createElement(T);U.id=aa.id+"_jwplayer_"+V;_css(U,G[V].style);return U}function R(){for(var T in r){if(_utils.exists(G[T].click)){r[T].onclick=G[T].click}}}function d(T){if(typeof T.preventDefault!="undefined"){T.preventDefault()}else{T.returnValue=false}if(aa.jwGetState()!=a.api.events.state.PLAYING){aa.jwPlay()}else{aa.jwPause()}}function p(T){if(D){E();return}r.display_icon.style.backgroundImage=(["url(",aa.skin.getSkinElement("display",T).src,")"]).join("");_css(r.display_icon,{width:aa.skin.getSkinElement("display",T).width,height:aa.skin.getSkinElement("display",T).height,top:(aa.skin.getSkinElement("display","background").height-aa.skin.getSkinElement("display",T).height)/2,left:(aa.skin.getSkinElement("display","background").width-aa.skin.getSkinElement("display",T).width)/2});N();if(_utils.exists(aa.skin.getSkinElement("display",T+"Over"))){r.display_icon.onmouseover=function(U){r.display_icon.style.backgroundImage=["url(",aa.skin.getSkinElement("display",T+"Over").src,")"].join("")};r.display_icon.onmouseout=function(U){r.display_icon.style.backgroundImage=["url(",aa.skin.getSkinElement("display",T).src,")"].join("")}}else{r.display_icon.onmouseover=null;r.display_icon.onmouseout=null}}function E(){if(ae.icons.toString()=="true"){_hide(r.display_icon);_hide(r.display_iconBackground);h()}}function N(){if(!S&&ae.icons.toString()=="true"){_show(r.display_icon);_show(r.display_iconBackground);I()}}function l(T){D=true;E();r.display_text.innerHTML=T.message;_show(r.display_text);r.display_text.style.top=((w-_utils.getBoundingClientRect(r.display_text).height)/2)+"px"}function H(){r.display_image.style.display="none"}function j(T){if((T.type==a.api.events.JWPLAYER_PLAYER_STATE||T.type==a.api.events.JWPLAYER_PLAYLIST_ITEM)&&D){D=false;_hide(r.display_text)}var U=aa.jwGetState();if(U==v){return}v=U;if(C>=0){clearTimeout(C)}if(c||aa.jwGetState()==a.api.events.state.PLAYING||aa.jwGetState()==a.api.events.state.PAUSED){q(aa.jwGetState())}else{C=setTimeout(ad(aa.jwGetState()),500)}}function ad(T){return(function(){q(T)})}function q(T){if(_utils.exists(L)){clearInterval(L);L=null;_utils.animations.rotate(r.display_icon,0)}switch(T){case a.api.events.state.BUFFERING:if(_utils.isMobile()){H();E()}else{if(aa.jwGetPlaylist()[aa.jwGetItem()].provider=="sound"){x()}u=0;L=setInterval(function(){u+=M;_utils.animations.rotate(r.display_icon,u%360)},o);p("bufferIcon");c=true}break;case a.api.events.state.PAUSED:if(!_utils.isMobile()){if(aa.jwGetPlaylist()[aa.jwGetItem()].provider!="sound"){_css(r.display_image,{background:"transparent no-repeat center center"})}p("playIcon");c=true}break;case a.api.events.state.IDLE:if(aa.jwGetPlaylist()[aa.jwGetItem()]&&aa.jwGetPlaylist()[aa.jwGetItem()].image){x()}else{H()}p("playIcon");c=true;break;default:if(aa.jwGetPlaylist()[aa.jwGetItem()]&&aa.jwGetPlaylist()[aa.jwGetItem()].provider=="sound"){if(_utils.isMobile()){H();c=false}else{x()}}else{H();c=false}if(aa.jwGetMute()&&ae.showmute){p("muteIcon")}else{E()}break}C=-1}function x(){if(aa.jwGetPlaylist()[aa.jwGetItem()]&&aa.jwGetPlaylist()[aa.jwGetItem()].image){_css(r.display_image,{display:"block"});r.display_image.src=_utils.getAbsolutePath(aa.jwGetPlaylist()[aa.jwGetItem()].image)}}function A(T){return function(){if(!f){return}if(!S&&P!=T){P=T;K.sendEvent(T,{component:"display",boundingRect:_utils.getDimensions(r.display_iconBackground)})}}}var I=A(a.api.events.JWPLAYER_COMPONENT_SHOW);var h=A(a.api.events.JWPLAYER_COMPONENT_HIDE);return this}})(jwplayer);(function(c){var a=c.utils;var g=a.css;c.html5.dock=function(B,r){function C(){return{align:c.html5.view.positions.RIGHT}}var h=a.extend({},C(),r);if(h.align=="FALSE"){return}var ah={};var ag=[];var d;var x;var ad=false;var q=false;var af={x:0,y:0,width:0,height:0};var ae;var j;var F;var f=new c.html5.eventdispatcher();a.extend(this,f);var p=document.createElement("div");p.id=B.id+"_jwplayer_dock";p.style.opacity=1;l();B.jwAddEventListener(c.api.events.JWPLAYER_PLAYER_STATE,n);this.getDisplayElement=function(){return p};this.setButton=function(J,G,H,I){if(!G&&ah[J]){a.arrays.remove(ag,J);p.removeChild(ah[J].div);delete ah[J]}else{if(G){if(!ah[J]){ah[J]={}}ah[J].handler=G;ah[J].outGraphic=H;ah[J].overGraphic=I;if(!ah[J].div){ag.push(J);ah[J].div=document.createElement("div");ah[J].div.style.position="relative";p.appendChild(ah[J].div);ah[J].div.appendChild(document.createElement("img"));ah[J].div.childNodes[0].style.position="absolute";ah[J].div.childNodes[0].style.left=0;ah[J].div.childNodes[0].style.top=0;ah[J].div.childNodes[0].style.zIndex=10;ah[J].div.childNodes[0].style.cursor="pointer";ah[J].div.appendChild(document.createElement("img"));ah[J].div.childNodes[1].style.position="absolute";ah[J].div.childNodes[1].style.left=0;ah[J].div.childNodes[1].style.top=0;if(B.skin.getSkinElement("dock","button")){ah[J].div.childNodes[1].src=B.skin.getSkinElement("dock","button").src}ah[J].div.childNodes[1].style.zIndex=9;ah[J].div.childNodes[1].style.cursor="pointer";ah[J].div.onmouseover=function(){if(ah[J].overGraphic){ah[J].div.childNodes[0].src=ah[J].overGraphic}if(B.skin.getSkinElement("dock","buttonOver")){ah[J].div.childNodes[1].src=B.skin.getSkinElement("dock","buttonOver").src}};ah[J].div.onmouseout=function(){if(ah[J].outGraphic){ah[J].div.childNodes[0].src=ah[J].outGraphic}if(B.skin.getSkinElement("dock","button")){ah[J].div.childNodes[1].src=B.skin.getSkinElement("dock","button").src}};if(B.skin.getSkinElement("dock","button")){ah[J].div.childNodes[1].src=B.skin.getSkinElement("dock","button").src}}if(ah[J].outGraphic){ah[J].div.childNodes[0].src=ah[J].outGraphic}else{if(ah[J].overGraphic){ah[J].div.childNodes[0].src=ah[J].overGraphic}}if(G){ah[J].div.onclick=function(K){K.preventDefault();c(B.id).callback(J);if(ah[J].overGraphic){ah[J].div.childNodes[0].src=ah[J].overGraphic}if(B.skin.getSkinElement("dock","button")){ah[J].div.childNodes[1].src=B.skin.getSkinElement("dock","button").src}}}}}e(d,x)};function v(G){}function e(R,P){l();if(ag.length>0){var S=10;var O=S;var L=-1;var M=B.skin.getSkinElement("dock","button").height;var K=B.skin.getSkinElement("dock","button").width;var I=R-K-S;var N,H;if(h.align==c.html5.view.positions.LEFT){L=1;I=S}for(var T=0;T<ag.length;T++){var Q=Math.floor(O/P);if((O+M+S)>((Q+1)*P)){O=((Q+1)*P)+S;Q=Math.floor(O/P)}var G=ah[ag[T]].div;G.style.top=(O%P)+"px";G.style.left=(I+(B.skin.getSkinElement("dock","button").width+S)*Q*L)+"px";var J={x:a.parseDimension(G.style.left),y:a.parseDimension(G.style.top),width:K,height:M};if(!N||(J.x<=N.x&&J.y<=N.y)){N=J}if(!H||(J.x>=H.x&&J.y>=H.y)){H=J}O+=B.skin.getSkinElement("dock","button").height+S}af={x:N.x,y:N.y,width:H.x-N.x+H.width,height:N.y-H.y+H.height}}if(q!=B.jwGetFullscreen()||d!=R||x!=P){d=R;x=P;q=B.jwGetFullscreen();ae=undefined;setTimeout(u,1)}}function D(G){return function(){if(!ad&&ae!=G&&ag.length>0){ae=G;f.sendEvent(G,{component:"dock",boundingRect:af})}}}function n(G){if(a.isMobile()){if(G.newstate==c.api.events.state.IDLE){A()}else{E()}}else{o()}}function o(G){if(ad){return}clearTimeout(F);if(r.position==c.html5.view.positions.OVER||B.jwGetFullscreen()){switch(B.jwGetState()){case c.api.events.state.PAUSED:case c.api.events.state.IDLE:if(p&&p.style.opacity<1&&(!r.idlehide||a.exists(G))){w()}if(r.idlehide){F=setTimeout(function(){y()},2000)}break;default:if(a.exists(G)){w()}F=setTimeout(function(){y()},2000);break}}else{w()}}var u=D(c.api.events.JWPLAYER_COMPONENT_SHOW);var z=D(c.api.events.JWPLAYER_COMPONENT_HIDE);this.resize=e;var A=function(){g(p,{display:"block"});if(ad){ad=false;u()}};var E=function(){g(p,{display:"none"});if(!ad){z();ad=true}};function y(){if(!ad){z();if(p.style.opacity==1){a.cancelAnimation(p);a.fadeTo(p,0,0.1,1,0)}}}function w(){if(!ad){u();if(p.style.opacity==0){a.cancelAnimation(p);a.fadeTo(p,1,0.1,0,0)}}}function l(){j=document.getElementById(B.id);j.addEventListener("mousemove",o)}this.hide=E;this.show=A;return this}})(jwplayer);(function(a){a.html5.eventdispatcher=function(g,c){var d=new a.events.eventdispatcher(c);a.utils.extend(this,d);this.sendEvent=function(e,f){if(!a.utils.exists(f)){f={}}a.utils.extend(f,{id:g,version:a.version,type:e});d.sendEvent(e,f)}}})(jwplayer);(function(a){var e={prefix:"",file:"",link:"",margin:8,out:0.5,over:1,timeout:5,hide:true,position:"bottom-left"};_css=a.utils.css;a.html5.logo=function(N,n){var j=N;var P;var f;var O;var q=false;o();function o(){d();j.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,r);c();L()}function d(){if(e.prefix){var v=N.version.split(/\W/).splice(0,2).join("/");if(e.prefix.indexOf(v)<0){e.prefix+=v+"/"}}if(n.position==a.html5.view.positions.OVER){n.position=e.position}try{if(window.location.href.indexOf("https")==0){e.prefix=e.prefix.replace("http://l.longtailvideo.com","https://securel.longtailvideo.com")}}catch(w){}f=a.utils.extend({},e,n)}function c(){O=document.createElement("img");O.id=j.id+"_jwplayer_logo";O.style.display="none";O.onload=function(v){_css(O,u());g()};if(!f.file){return}if(f.file.indexOf("/")>=0){O.src=f.file}else{O.src=f.prefix+f.file}}if(!f.file){return}this.resize=function(w,v){};this.getDisplayElement=function(){return O};function L(){if(f.link){O.onmouseover=l;O.onmouseout=g;O.onclick=p}else{this.mouseEnabled=false}}function p(v){if(typeof v!="undefined"){v.stopPropagation()}if(!q){return}j.jwPause();j.jwSetFullscreen(false);if(f.link){window.open(f.link,"_top")}return}function g(v){if(f.link&&q){O.style.opacity=f.out}return}function l(v){if(q){O.style.opacity=f.over}return}function u(){var x={textDecoration:"none",position:"absolute",cursor:"pointer"};x.display=(f.hide.toString()=="true"&&!q)?"none":"block";var w=f.position.toLowerCase().split("-");for(var v in w){x[w[v]]=f.margin}return x}function M(){if(f.hide.toString()=="true"){O.style.display="block";O.style.opacity=0;a.utils.fadeTo(O,f.out,0.1,parseFloat(O.style.opacity));P=setTimeout(function(){h()},f.timeout*1000)}q=true}function h(){q=false;if(f.hide.toString()=="true"){a.utils.fadeTo(O,0,0.1,parseFloat(O.style.opacity))}}function r(v){if(v.newstate==a.api.events.state.BUFFERING){clearTimeout(P);M()}}return this}})(jwplayer);(function(l){var c={ended:l.api.events.state.IDLE,playing:l.api.events.state.PLAYING,pause:l.api.events.state.PAUSED,buffering:l.api.events.state.BUFFERING};var d=l.utils;var a=d.css;var e=d.isMobile();l.html5.mediavideo=function(B,p){var n={abort:K,canplay:E,canplaythrough:E,durationchange:ad,emptied:K,ended:E,error:w,loadeddata:ad,loadedmetadata:ad,loadstart:E,pause:E,play:K,playing:E,progress:H,ratechange:K,seeked:E,seeking:E,stalled:E,suspend:E,timeupdate:v,volumechange:j,waiting:E,canshowcurrentframe:K,dataunavailable:K,empty:K,load:g,loadedfirstframe:K,webkitfullscreenchange:C};var D=new l.html5.eventdispatcher();d.extend(this,D);var M=B,F=p,G,q,o,I,z,ag=false,ah=false,r,af,f;ae();this.load=function(Q,N){if(typeof N=="undefined"){N=true}if(!ah){return}I=Q;d.empty(G);f=0;if(Q.levels&&Q.levels.length>0){if(Q.levels.length==1){G.src=Q.levels[0].file}else{y(Q.levels);if(G.src){G.removeAttribute("src")}for(var P=0;P<Q.levels.length;P++){var O=G.ownerDocument.createElement("source");O.src=Q.levels[P].file;G.appendChild(O);f++}}}else{G.src=Q.file}if(e){if(Q.image){G.poster=Q.image}G.style.display="block";setTimeout(function(){G.setAttribute("controls","controls")},100)}r=af=o=false;M.buffer=0;if(!d.exists(Q.start)){Q.start=0}M.duration=Q.duration;D.sendEvent(l.api.events.JWPLAYER_MEDIA_LOADED);if((!e&&Q.levels.length==1)||!ag){G.load()}ag=false;if(N){x(l.api.events.state.BUFFERING);D.sendEvent(l.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});this.play()}};this.play=function(){if(!ah){return}if(q!=l.api.events.state.PLAYING){u();if(af){x(l.api.events.state.PLAYING)}else{x(l.api.events.state.BUFFERING)}G.play()}};this.pause=function(){if(!ah){return}G.pause();x(l.api.events.state.PAUSED)};this.seek=function(N){if(!ah){return}if(!(M.duration<=0||isNaN(M.duration))&&!(M.position<=0||isNaN(M.position))){G.currentTime=N;G.play()}};_stop=this.stop=function(P){if(!ah){return}if(!d.exists(P)){P=true}A();if(P){G.style.display="none";af=false;var N=navigator.userAgent;if(N.match(/chrome/i)){G.src=undefined}else{if(N.match(/safari/i)||N.match(/firefox/i)){G.removeAttribute("src")}else{G.src=""}}G.removeAttribute("controls");G.removeAttribute("poster");d.empty(G);G.load();ag=true;if(G.webkitSupportsFullscreen){try{G.webkitExitFullscreen()}catch(O){}}}x(l.api.events.state.IDLE)};this.fullscreen=function(N){if(N===true){this.resize("100%","100%")}else{this.resize(M.config.width,M.config.height)}};this.resize=function(O,N){};this.volume=function(N){if(!e){G.volume=N/100}};this.mute=function(N){if(!e){G.muted=N}};this.getDisplayElement=function(){return G};this.hasChrome=function(){return e};this.detachMedia=function(){ah=false;return this.getDisplayElement()};this.attachMedia=function(){ah=true};function h(O,N){return function(P){if(ah&&d.exists(P.target.parentNode)){N(P)}}}function ae(){G=document.createElement("video");q=l.api.events.state.IDLE;for(var N in n){G.addEventListener(N,h(N,n[N]),true)}ah=true;G.setAttribute("x-webkit-airplay","allow");if(F.parentNode){F.parentNode.replaceChild(G,F)}if(!G.id){G.id=F.id}G.volume=M.volume/100}function x(N){if(N==l.api.events.state.PAUSED&&q==l.api.events.state.IDLE){return}if(q!=N){var O=q;M.state=q=N;D.sendEvent(l.api.events.JWPLAYER_PLAYER_STATE,{oldstate:O,newstate:N})}}function K(N){}function j(N){var O=Math.round(G.volume*100);if(O!=M.volume){M.volume=O;D.sendEvent(l.api.events.JWPLAYER_MEDIA_VOLUME,{volume:M.volume})}if(G.muted!=M.mute){M.mute=G.muted;D.sendEvent(l.api.events.JWPLAYER_MEDIA_MUTE,{mute:M.mute})}}function H(O){var N;if(d.exists(O)&&O.lengthComputable&&O.total){N=O.loaded/O.total*100}else{if(d.exists(G.buffered)&&(G.buffered.length>0)){var P=G.buffered.length-1;if(P>=0){N=G.buffered.end(P)/G.duration*100}}}if(af===false&&q==l.api.events.state.BUFFERING){D.sendEvent(l.api.events.JWPLAYER_MEDIA_BUFFER_FULL);af=true}if(!r){if(N==100){r=true}if(d.exists(N)&&(N>M.buffer)){M.buffer=Math.round(N);D.sendEvent(l.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(N)})}}}function v(O){if(d.exists(O)&&d.exists(O.target)){if(!isNaN(O.target.duration)&&(isNaN(M.duration)||M.duration<1)){if(O.target.duration==Infinity){M.duration=0}else{M.duration=Math.round(O.target.duration*10)/10}}if(!o&&G.readyState>0){G.style.display="block";x(l.api.events.state.PLAYING)}if(q==l.api.events.state.PLAYING){if(!o&&G.readyState>0){o=true;try{if(G.currentTime<I.start){G.currentTime=I.start}}catch(N){}G.volume=M.volume/100;G.muted=M.mute}M.position=M.duration>0?(Math.round(O.target.currentTime*10)/10):0;D.sendEvent(l.api.events.JWPLAYER_MEDIA_TIME,{position:M.position,duration:M.duration});if(M.position>=M.duration&&(M.position>0||M.duration>0)){L()}}}H(O)}function g(N){}function E(N){if(c[N.type]){if(N.type=="ended"){L()}else{x(c[N.type])}}}function ad(N){var P=Math.round(N.target.duration*10)/10;var O={height:N.target.videoHeight,width:N.target.videoWidth,duration:P};if((M.duration<P||isNaN(M.duration))&&N.target.duration!=Infinity){M.duration=P}D.sendEvent(l.api.events.JWPLAYER_MEDIA_META,{metadata:O})}function w(O){if(q==l.api.events.state.IDLE){return}var N="There was an error: ";if((O.target.error&&O.target.tagName.toLowerCase()=="video")||O.target.parentNode.error&&O.target.parentNode.tagName.toLowerCase()=="video"){var P=!d.exists(O.target.error)?O.target.parentNode.error:O.target.error;switch(P.code){case P.MEDIA_ERR_ABORTED:N="You aborted the video playback: ";break;case P.MEDIA_ERR_NETWORK:N="A network error caused the video download to fail part-way: ";break;case P.MEDIA_ERR_DECODE:N="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case P.MEDIA_ERR_SRC_NOT_SUPPORTED:N="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:N="An unknown error occurred: ";break}}else{if(O.target.tagName.toLowerCase()=="source"){f--;if(f>0){return}N="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{d.log("An unknown error occurred.  Continuing...");return}}_stop(false);N+=J();_error=true;D.sendEvent(l.api.events.JWPLAYER_ERROR,{message:N});return}function J(){var N="";for(var Q in I.levels){var P=I.levels[Q];var O=F.ownerDocument.createElement("source");N+=l.utils.getAbsolutePath(P.file);if(Q<(I.levels.length-1)){N+=", "}}return N}function u(){if(!d.exists(z)){z=setInterval(function(){H()},100)}}function A(){clearInterval(z);z=null}function L(){if(q!=l.api.events.state.IDLE){_stop(false);D.sendEvent(l.api.events.JWPLAYER_MEDIA_COMPLETE)}}function C(N){if(d.exists(G.webkitDisplayingFullscreen)){if(M.fullscreen&&!G.webkitDisplayingFullscreen){D.sendEvent(l.api.events.JWPLAYER_FULLSCREEN,{fullscreen:false})}}}function y(N){if(N.length>0&&d.isIOS()){if(d.extension(N[0].file)!="mp4"){var P=-1;for(var Q=1;Q<N.length;Q++){if(d.extension(N[Q].file)=="mp4"){P=Q;break}}if(P>-1){var O=N.splice(P,1)[0];N.unshift(O)}}}}}})(jwplayer);(function(c){var a={ended:c.api.events.state.IDLE,playing:c.api.events.state.PLAYING,pause:c.api.events.state.PAUSED,buffering:c.api.events.state.BUFFERING};var g=c.utils.css;c.html5.mediayoutube=function(d,o){var x=new c.html5.eventdispatcher();c.utils.extend(this,x);var f=d;var z=document.getElementById(o.id);var y=c.api.events.state.IDLE;var j,h;function e(p){if(y!=p){var q=y;f.state=p;y=p;x.sendEvent(c.api.events.JWPLAYER_PLAYER_STATE,{oldstate:q,newstate:p})}}this.getDisplayElement=this.detachMedia=function(){return z};this.attachMedia=function(){};this.play=function(){if(y==c.api.events.state.IDLE){x.sendEvent(c.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100});x.sendEvent(c.api.events.JWPLAYER_MEDIA_BUFFER_FULL);e(c.api.events.state.PLAYING)}else{if(y==c.api.events.state.PAUSED){e(c.api.events.state.PLAYING)}}};this.pause=function(){e(c.api.events.state.PAUSED)};this.seek=function(p){};this.stop=function(p){if(!_utils.exists(p)){p=true}f.position=0;e(c.api.events.state.IDLE);if(p){g(z,{display:"none"})}};this.volume=function(p){f.volume=p;x.sendEvent(c.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(p)})};this.mute=function(p){z.muted=p;f.mute=p;x.sendEvent(c.api.events.JWPLAYER_MEDIA_MUTE,{mute:p})};this.resize=function(q,p){if(q*p>0&&j){j.width=h.width=q;j.height=h.height=p}};this.fullscreen=function(p){if(p===true){this.resize("100%","100%")}else{this.resize(f.config.width,f.config.height)}};this.load=function(p){l(p);g(j,{display:"block"});e(c.api.events.state.BUFFERING);x.sendEvent(c.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});x.sendEvent(c.api.events.JWPLAYER_MEDIA_LOADED);this.play()};this.hasChrome=function(){return(y!=c.api.events.state.IDLE)};function l(w){var r=w.levels[0].file;r=["http://www.youtube.com/v/",n(r),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");j=document.createElement("object");j.id=z.id;j.style.position="absolute";var v={movie:r,allowfullscreen:"true",allowscriptaccess:"always"};for(var A in v){var u=document.createElement("param");u.name=A;u.value=v[A];j.appendChild(u)}h=document.createElement("embed");j.appendChild(h);var p={src:r,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:j.width,height:j.height};for(var q in p){h.setAttribute(q,p[q])}j.appendChild(h);j.style.zIndex=2147483000;if(z!=j&&z.parentNode){z.parentNode.replaceChild(j,z)}z=j}function n(q){var p=q.split(/\?|\#\!/);var u="";for(var r=0;r<p.length;r++){if(p[r].substr(0,2)=="v="){u=p[r].substr(2)}}if(u==""){if(q.indexOf("/v/")>=0){u=q.substr(q.indexOf("/v/")+3)}else{if(q.indexOf("youtu.be")>=0){u=q.substr(q.indexOf("youtu.be/")+9)}else{u=q}}}if(u.indexOf("?")>-1){u=u.substr(0,u.indexOf("?"))}if(u.indexOf("&")>-1){u=u.substr(0,u.indexOf("&"))}return u}this.embed=h;return this}})(jwplayer);(function(jwplayer){var _configurableStateVariables=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];jwplayer.html5.model=function(api,container,options){var _api=api;var _container=container;var _model={id:_container.id,playlist:[],state:jwplayer.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:90,mute:false,fullscreen:false,repeat:"",stretching:jwplayer.utils.stretching.UNIFORM,autostart:false,debug:undefined,screencolor:undefined}};var _media;var _eventDispatcher=new jwplayer.html5.eventdispatcher();var _components=["display","logo","controlbar","playlist","dock"];jwplayer.utils.extend(_model,_eventDispatcher);for(var option in options){if(typeof options[option]=="string"){var type=/color$/.test(option)?"color":null;options[option]=jwplayer.utils.typechecker(options[option],type)}var config=_model.config;var path=option.split(".");for(var edge in path){if(edge==path.length-1){config[path[edge]]=options[option]}else{if(!jwplayer.utils.exists(config[path[edge]])){config[path[edge]]={}}config=config[path[edge]]}}}for(var index in _configurableStateVariables){var configurableStateVariable=_configurableStateVariables[index];_model[configurableStateVariable]=_model.config[configurableStateVariable]}var pluginorder=_components.concat([]);if(jwplayer.utils.exists(_model.plugins)){if(typeof _model.plugins=="string"){var userplugins=_model.plugins.split(",");for(var userplugin in userplugins){if(typeof userplugins[userplugin]=="string"){pluginorder.push(userplugins[userplugin].replace(/^\s+|\s+$/g,""))}}}}if(jwplayer.utils.isMobile()){pluginorder=["display","logo","dock","playlist"];if(!jwplayer.utils.exists(_model.config.repeat)){_model.config.repeat="list"}}else{if(_model.config.chromeless){pluginorder=["logo","dock","playlist"];if(!jwplayer.utils.exists(_model.config.repeat)){_model.config.repeat="list"}}}_model.plugins={order:pluginorder,config:{},object:{}};if(typeof _model.config.components!="undefined"){for(var component in _model.config.components){_model.plugins.config[component]=_model.config.components[component]}}var playlistVisible=false;for(var pluginIndex in _model.plugins.order){var pluginName=_model.plugins.order[pluginIndex];var pluginConfig=!jwplayer.utils.exists(_model.plugins.config[pluginName])?{}:_model.plugins.config[pluginName];_model.plugins.config[pluginName]=!jwplayer.utils.exists(_model.plugins.config[pluginName])?pluginConfig:jwplayer.utils.extend(_model.plugins.config[pluginName],pluginConfig);if(!jwplayer.utils.exists(_model.plugins.config[pluginName].position)){if(pluginName=="playlist"){_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.NONE}else{_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.OVER}}else{if(pluginName=="playlist"){playlistVisible=true}_model.plugins.config[pluginName].position=_model.plugins.config[pluginName].position.toString().toUpperCase()}}if(_model.plugins.config.controlbar&&playlistVisible){_model.plugins.config.controlbar.hideplaylistcontrols=true}if(typeof _model.plugins.config.dock!="undefined"){if(typeof _model.plugins.config.dock!="object"){var position=_model.plugins.config.dock.toString().toUpperCase();_model.plugins.config.dock={position:position}}if(typeof _model.plugins.config.dock.position!="undefined"){_model.plugins.config.dock.align=_model.plugins.config.dock.position;_model.plugins.config.dock.position=jwplayer.html5.view.positions.OVER}if(typeof _model.plugins.config.dock.idlehide=="undefined"){try{_model.plugins.config.dock.idlehide=_model.plugins.config.controlbar.idlehide}catch(e){}}}function _loadExternal(playlistfile){var loader=new jwplayer.html5.playlistloader();loader.addEventListener(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,function(evt){_model.playlist=new jwplayer.html5.playlist(evt);_loadComplete(true)});loader.addEventListener(jwplayer.api.events.JWPLAYER_ERROR,function(evt){_model.playlist=new jwplayer.html5.playlist({playlist:[]});_loadComplete(false)});loader.load(playlistfile)}function _loadComplete(){if(_model.config.shuffle){_model.item=_getShuffleItem()}else{if(_model.config.item>=_model.playlist.length){_model.config.item=_model.playlist.length-1}else{if(_model.config.item<0){_model.config.item=0}}_model.item=_model.config.item}_model.position=0;_model.duration=_model.playlist.length>0?_model.playlist[_model.item].duration:0;_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:_model.playlist});_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_ITEM,{index:_model.item})}_model.loadPlaylist=function(arg){var input;if(typeof arg=="string"){if(arg.indexOf("[")==0||arg.indexOf("{")=="0"){try{input=eval(arg)}catch(err){input=arg}}else{input=arg}}else{input=arg}var config;switch(jwplayer.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input};break}_model.playlist=new jwplayer.html5.playlist(config);_model.item=_model.config.item>=0?_model.config.item:0;if(!_model.playlist[_model.item].provider){_loadExternal(_model.playlist[_model.item].file)}else{_loadComplete()}};function _getShuffleItem(){var result=null;if(_model.playlist.length>1){while(!jwplayer.utils.exists(result)){result=Math.floor(Math.random()*_model.playlist.length);if(result==_model.item){result=null}}}else{result=0}return result}function forward(evt){if(evt.type==jwplayer.api.events.JWPLAYER_MEDIA_LOADED){_container=_media.getDisplayElement()}_eventDispatcher.sendEvent(evt.type,evt)}var _mediaProviders={};_model.setActiveMediaProvider=function(playlistItem){if(playlistItem.provider=="audio"){playlistItem.provider="sound"}var provider=playlistItem.provider;var current=_media?_media.getDisplayElement():null;if(provider=="sound"||provider=="http"||provider==""){provider="video"}if(!jwplayer.utils.exists(_mediaProviders[provider])){switch(provider){case"video":_media=new jwplayer.html5.mediavideo(_model,current?current:_container);break;case"youtube":_media=new jwplayer.html5.mediayoutube(_model,current?current:_container);break}if(!jwplayer.utils.exists(_media)){return false}_media.addGlobalListener(forward);_mediaProviders[provider]=_media}else{if(_media!=_mediaProviders[provider]){if(_media){_media.stop()}_media=_mediaProviders[provider]}}return true};_model.getMedia=function(){return _media};_model.seek=function(pos){_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_SEEK,{position:_model.position,offset:pos});return _media.seek(pos)};_model.setupPlugins=function(){if(!jwplayer.utils.exists(_model.plugins)||!jwplayer.utils.exists(_model.plugins.order)||_model.plugins.order.length==0){jwplayer.utils.log("No plugins to set up");return _model}for(var i=0;i<_model.plugins.order.length;i++){try{var pluginName=_model.plugins.order[i];if(jwplayer.utils.exists(jwplayer.html5[pluginName])){if(pluginName=="playlist"){_model.plugins.object[pluginName]=new jwplayer.html5.playlistcomponent(_api,_model.plugins.config[pluginName])}else{_model.plugins.object[pluginName]=new jwplayer.html5[pluginName](_api,_model.plugins.config[pluginName])}}else{_model.plugins.order.splice(plugin,plugin+1)}if(typeof _model.plugins.object[pluginName].addGlobalListener=="function"){_model.plugins.object[pluginName].addGlobalListener(forward)}}catch(err){jwplayer.utils.log("Could not setup "+pluginName)}}};return _model}})(jwplayer);(function(a){a.html5.playlist=function(c){var g=[];if(c.playlist&&c.playlist instanceof Array&&c.playlist.length>0){for(var d in c.playlist){if(!isNaN(parseInt(d))){g.push(new a.html5.playlistitem(c.playlist[d]))}}}else{g.push(new a.html5.playlistitem(c))}return g}})(jwplayer);(function(c){var a={size:180,position:c.html5.view.positions.NONE,itemheight:60,thumbs:true,fontcolor:"#000000",overcolor:"",activecolor:"",backgroundcolor:"#f8f8f8",font:"_sans",fontsize:"",fontstyle:"",fontweight:""};var g={_sans:"Arial, Helvetica, sans-serif",_serif:"Times, Times New Roman, serif",_typewriter:"Courier New, Courier, monospace"};_utils=c.utils;_css=_utils.css;_hide=function(d){_css(d,{display:"none"})};_show=function(d){_css(d,{display:"block"})};c.html5.playlistcomponent=function(y,x){var aa=y;var e=c.utils.extend({},a,aa.skin.getComponentSettings("playlist"),x);if(e.position==c.html5.view.positions.NONE||typeof c.html5.view.positions[e.position]=="undefined"){return}var ab;var o;var z;var d;var h;var f;var n=-1;var j={background:undefined,item:undefined,itemOver:undefined,itemImage:undefined,itemActive:undefined};this.getDisplayElement=function(){return ab};this.resize=function(F,D){o=F;z=D;if(aa.jwGetFullscreen()){_hide(ab)}else{var E={display:"block",width:o,height:z};_css(ab,E)}};this.show=function(){_show(ab)};this.hide=function(){_hide(ab)};function l(){ab=document.createElement("div");ab.id=aa.id+"_jwplayer_playlistcomponent";ab.style.overflow="hidden";switch(e.position){case c.html5.view.positions.RIGHT:case c.html5.view.positions.LEFT:ab.style.width=e.size+"px";break;case c.html5.view.positions.TOP:case c.html5.view.positions.BOTTOM:ab.style.height=e.size+"px";break}v();if(j.item){e.itemheight=j.item.height}ab.style.backgroundColor="#C6C6C6";aa.jwAddEventListener(c.api.events.JWPLAYER_PLAYLIST_LOADED,A);aa.jwAddEventListener(c.api.events.JWPLAYER_PLAYLIST_ITEM,C);aa.jwAddEventListener(c.api.events.JWPLAYER_PLAYER_STATE,p)}function u(){var D=document.createElement("ul");_css(D,{width:ab.style.width,minWidth:ab.style.width,height:ab.style.height,backgroundColor:e.backgroundcolor,backgroundImage:j.background?"url("+j.background.src+")":"",color:e.fontcolor,listStyle:"none",margin:0,padding:0,fontFamily:g[e.font]?g[e.font]:g._sans,fontSize:(e.fontsize?e.fontsize:11)+"px",fontStyle:e.fontstyle,fontWeight:e.fontweight,overflowY:"auto"});return D}function ac(D){return function(){var E=f.getElementsByClassName("item")[D];var F=e.fontcolor;var G=j.item?"url("+j.item.src+")":"";if(D==aa.jwGetPlaylistIndex()){if(e.activecolor!==""){F=e.activecolor}if(j.itemActive){G="url("+j.itemActive.src+")"}}_css(E,{color:e.overcolor!==""?e.overcolor:F,backgroundImage:j.itemOver?"url("+j.itemOver.src+")":G})}}function r(D){return function(){var E=f.getElementsByClassName("item")[D];var F=e.fontcolor;var G=j.item?"url("+j.item.src+")":"";if(D==aa.jwGetPlaylistIndex()){if(e.activecolor!==""){F=e.activecolor}if(j.itemActive){G="url("+j.itemActive.src+")"}}_css(E,{color:F,backgroundImage:G})}}function w(F){var M=d[F];var L=document.createElement("li");L.className="item";_css(L,{height:e.itemheight,display:"block",cursor:"pointer",backgroundImage:j.item?"url("+j.item.src+")":"",backgroundSize:"100% "+e.itemheight+"px"});L.onmouseover=ac(F);L.onmouseout=r(F);var G=document.createElement("div");var P=new Image();var H=0;var I=0;var J=0;if(Z()&&(M.image||M["playlist.image"]||j.itemImage)){P.className="image";if(j.itemImage){H=(e.itemheight-j.itemImage.height)/2;I=j.itemImage.width;J=j.itemImage.height}else{I=e.itemheight*4/3;J=e.itemheight}_css(G,{height:J,width:I,"float":"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:H+"px",position:"relative"});_css(P,{position:"relative"});G.appendChild(P);P.onload=function(){c.utils.stretch(c.utils.stretching.FILL,P,I,J,this.naturalWidth,this.naturalHeight)};if(M["playlist.image"]){P.src=M["playlist.image"]}else{if(M.image){P.src=M.image}else{if(j.itemImage){P.src=j.itemImage.src}}}L.appendChild(G)}var O=o-I-H*2;if(z<e.itemheight*d.length){O-=15}var N=document.createElement("div");_css(N,{position:"relative",height:"100%",overflow:"hidden"});var D=document.createElement("span");if(M.duration>0){D.className="duration";_css(D,{fontSize:(e.fontsize?e.fontsize:11)+"px",fontWeight:(e.fontweight?e.fontweight:"bold"),width:"40px",height:e.fontsize?e.fontsize+10:20,lineHeight:24,"float":"right",styleFloat:"right",cssFloat:"right"});D.innerHTML=_utils.timeFormat(M.duration);N.appendChild(D)}var K=document.createElement("span");K.className="title";_css(K,{padding:"5px 5px 0 "+(H?0:"5px"),height:e.fontsize?e.fontsize+10:20,lineHeight:e.fontsize?e.fontsize+10:20,overflow:"hidden","float":"left",styleFloat:"left",cssFloat:"left",width:((M.duration>0)?O-50:O)-10+"px",fontSize:(e.fontsize?e.fontsize:13)+"px",fontWeight:(e.fontweight?e.fontweight:"bold")});K.innerHTML=M?M.title:"";N.appendChild(K);if(M.description){var E=document.createElement("span");E.className="description";_css(E,{display:"block","float":"left",styleFloat:"left",cssFloat:"left",margin:0,paddingLeft:K.style.paddingLeft,paddingRight:K.style.paddingRight,lineHeight:(e.fontsize?e.fontsize+4:16)+"px",overflow:"hidden",position:"relative"});E.innerHTML=M.description;N.appendChild(E)}L.appendChild(N);return L}function A(E){ab.innerHTML="";d=aa.jwGetPlaylist();if(!d){return}items=[];f=u();for(var F=0;F<d.length;F++){var D=w(F);D.onclick=ad(F);f.appendChild(D);items.push(D)}n=aa.jwGetPlaylistIndex();r(n)();ab.appendChild(f);if(_utils.isIOS()&&window.iScroll){f.style.height=e.itemheight*d.length+"px";var G=new iScroll(ab.id)}}function ad(D){return function(){aa.jwPlaylistItem(D);aa.jwPlay(true)}}function q(){f.scrollTop=aa.jwGetPlaylistIndex()*e.itemheight}function Z(){return e.thumbs.toString().toLowerCase()=="true"}function C(D){if(n>=0){r(n)();n=D.index}r(D.index)();q()}function p(){if(e.position==c.html5.view.positions.OVER){switch(aa.jwGetState()){case c.api.events.state.IDLE:_show(ab);break;default:_hide(ab);break}}}function v(){for(var D in j){j[D]=B(D)}}function B(D){return aa.skin.getSkinElement("playlist",D)}l();return this}})(jwplayer);(function(e){e.html5.playlistitem=function(c){var d={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]};var g=e.utils.extend({},d,c);if(g.type){g.provider=g.type;delete g.type}if(g.levels.length===0){g.levels[0]=new e.html5.playlistitemlevel(g)}if(!g.provider){g.provider=a(g.levels[0])}else{g.provider=g.provider.toLowerCase()}return g};function a(c){if(e.utils.isYouTube(c.file)){return"youtube"}else{var d=e.utils.extension(c.file);var f;if(d&&e.utils.extensionmap[d]){if(d=="m3u8"){return"video"}f=e.utils.extensionmap[d].html5}else{if(c.type){f=c.type}}if(f){var j=f.split("/")[0];if(j=="audio"){return"sound"}else{if(j=="video"){return j}}}}return""}})(jwplayer);(function(a){a.html5.playlistitemlevel=function(c){var g={file:"",streamer:"",bitrate:0,width:0};for(var d in g){if(a.utils.exists(c[d])){g[d]=c[d]}}return g}})(jwplayer);(function(a){a.html5.playlistloader=function(){var d=new a.html5.eventdispatcher();a.utils.extend(this,d);this.load=function(e){a.utils.ajax(e,g,c)};function g(f){var e=[];try{var e=a.utils.parsers.rssparser.parse(f.responseXML.firstChild);d.sendEvent(a.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new a.html5.playlist({playlist:e})})}catch(h){c("Could not parse the playlist")}}function c(e){d.sendEvent(a.api.events.JWPLAYER_ERROR,{message:e?e:"Could not load playlist an unknown reason."})}}})(jwplayer);(function(a){a.html5.skin=function(){var c={};var e=false;this.load=function(d,g){new a.html5.skinloader(d,function(f){e=true;c=f;g()},function(){new a.html5.skinloader("",function(f){e=true;c=f;g()})})};this.getSkinElement=function(d,f){if(e){try{return c[d].elements[f]}catch(j){a.utils.log("No such skin component / element: ",[d,f])}}return null};this.getComponentSettings=function(d){if(e){return c[d].settings}return null};this.getComponentLayout=function(d){if(e){return c[d].layout}return null}}})(jwplayer);(function(a){a.html5.skinloader=function(c,J,g){var q={};var r=J;var h=g;var M=true;var f;var o=c;var n=false;function l(){if(typeof o!="string"||o===""){L(a.html5.defaultSkin().xml)}else{a.utils.ajax(a.utils.getAbsolutePath(o),function(u){try{if(a.utils.exists(u.responseXML)){L(u.responseXML);return}}catch(v){e()}L(a.html5.defaultSkin().xml)},function(u){L(a.html5.defaultSkin().xml)})}}function L(I){var y=I.getElementsByTagName("component");if(y.length===0){return}for(var F=0;F<y.length;F++){var w=y[F].getAttribute("name");var v={settings:{},elements:{},layout:{}};q[w]=v;var C=y[F].getElementsByTagName("elements")[0].getElementsByTagName("element");for(var A=0;A<C.length;A++){p(C[A],w)}var O=y[F].getElementsByTagName("settings")[0];if(O&&O.childNodes.length>0){var P=O.getElementsByTagName("setting");for(var ac=0;ac<P.length;ac++){var ad=P[ac].getAttribute("name");var H=P[ac].getAttribute("value");var G=/color$/.test(ad)?"color":null;q[w].settings[ad]=a.utils.typechecker(H,G)}}var Q=y[F].getElementsByTagName("layout")[0];if(Q&&Q.childNodes.length>0){var Z=Q.getElementsByTagName("group");for(var E=0;E<Z.length;E++){var u=Z[E];q[w].layout[u.getAttribute("position")]={elements:[]};for(var ab=0;ab<u.attributes.length;ab++){var x=u.attributes[ab];q[w].layout[u.getAttribute("position")][x.name]=x.value}var aa=u.getElementsByTagName("*");for(var D=0;D<aa.length;D++){var z=aa[D];q[w].layout[u.getAttribute("position")].elements.push({type:z.tagName});for(var B=0;B<z.attributes.length;B++){var N=z.attributes[B];q[w].layout[u.getAttribute("position")].elements[D][N.name]=N.value}if(!a.utils.exists(q[w].layout[u.getAttribute("position")].elements[D].name)){q[w].layout[u.getAttribute("position")].elements[D].name=z.tagName}}}}M=false;j()}}function j(){clearInterval(f);if(!n){f=setInterval(function(){K()},100)}}function p(u,A){var z=new Image();var w=u.getAttribute("name");var y=u.getAttribute("src");var B;if(y.indexOf("data:image/png;base64,")===0){B=y}else{var x=a.utils.getAbsolutePath(o);var v=x.substr(0,x.lastIndexOf("/"));B=[v,A,y].join("/")}q[A].elements[w]={height:0,width:0,src:"",ready:false,image:z};z.onload=function(C){d(z,w,A)};z.onerror=function(C){n=true;j();h()};z.src=B}function e(){for(var v in q){var x=q[v];for(var u in x.elements){var y=x.elements[u];var w=y.image;w.onload=null;w.onerror=null;delete y.image;delete x.elements[u]}delete q[v]}}function K(){for(var u in q){if(u!="properties"){for(var v in q[u].elements){if(!q[u].elements[v].ready){return}}}}if(M===false){clearInterval(f);r(q)}}function d(u,w,v){if(q[v]&&q[v].elements[w]){q[v].elements[w].height=u.height;q[v].elements[w].width=u.width;q[v].elements[w].src=u.src;q[v].elements[w].ready=true;j()}else{a.utils.log("Loaded an image for a missing element: "+v+"."+w)}}l()}})(jwplayer);(function(a){a.html5.api=function(j,h){var f={};var z=document.createElement("div");j.parentNode.replaceChild(z,j);z.id=j.id;f.version=a.version;f.id=z.id;var e=new a.html5.model(f,z,h);var c=new a.html5.view(f,z,e);var d=new a.html5.controller(f,z,e,c);f.skin=new a.html5.skin();f.jwPlay=function(o){if(typeof o=="undefined"){n()}else{if(o.toString().toLowerCase()=="true"){d.play()}else{d.pause()}}};f.jwPause=function(o){if(typeof o=="undefined"){n()}else{if(o.toString().toLowerCase()=="true"){d.pause()}else{d.play()}}};function n(){if(e.state==a.api.events.state.PLAYING||e.state==a.api.events.state.BUFFERING){d.pause()}else{d.play()}}f.jwStop=d.stop;f.jwSeek=d.seek;f.jwPlaylistItem=d.item;f.jwPlaylistNext=d.next;f.jwPlaylistPrev=d.prev;f.jwResize=d.resize;f.jwLoad=d.load;f.jwDetachMedia=d.detachMedia;f.jwAttachMedia=d.attachMedia;function B(o){return function(){return e[o]}}function l(o,q,p){return function(){var r=e.plugins.object[o];if(r&&r[q]&&typeof r[q]=="function"){r[q].apply(r,p)}}}f.jwGetItem=B("item");f.jwGetPosition=B("position");f.jwGetDuration=B("duration");f.jwGetBuffer=B("buffer");f.jwGetWidth=B("width");f.jwGetHeight=B("height");f.jwGetFullscreen=B("fullscreen");f.jwSetFullscreen=d.setFullscreen;f.jwGetVolume=B("volume");f.jwSetVolume=d.setVolume;f.jwGetMute=B("mute");f.jwSetMute=d.setMute;f.jwGetStretching=function(){return e.stretching.toUpperCase()};f.jwGetState=B("state");f.jwGetVersion=function(){return f.version};f.jwGetPlaylist=function(){return e.playlist};f.jwGetPlaylistIndex=f.jwGetItem;f.jwAddEventListener=d.addEventListener;f.jwRemoveEventListener=d.removeEventListener;f.jwSendEvent=d.sendEvent;f.jwDockSetButton=function(r,o,p,q){if(e.plugins.object.dock&&e.plugins.object.dock.setButton){e.plugins.object.dock.setButton(r,o,p,q)}};f.jwControlbarShow=l("controlbar","show");f.jwControlbarHide=l("controlbar","hide");f.jwDockShow=l("dock","show");f.jwDockHide=l("dock","hide");f.jwDisplayShow=l("display","show");f.jwDisplayHide=l("display","hide");f.jwGetLevel=function(){};f.jwGetBandwidth=function(){};f.jwGetLockState=function(){};f.jwLock=function(){};f.jwUnlock=function(){};function g(){if(e.config.playlistfile){e.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,A);e.loadPlaylist(e.config.playlistfile)}else{if(typeof e.config.playlist=="string"){e.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,A);e.loadPlaylist(e.config.playlist)}else{e.loadPlaylist(e.config);setTimeout(A,25)}}}function A(o){e.removeEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,A);e.setupPlugins();c.setup();var o={id:f.id,version:f.version};d.playerReady(o)}if(e.config.chromeless&&!a.utils.isIOS()){g()}else{f.skin.load(e.config.skin,g)}return f}})(jwplayer)}
/*
 * jQuery JavaScript Library v1.6.2
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Thu Jun 30 14:16:56 2011 -0400
 */
(function(bf,Q){var ax=bf.document,bx=bf.navigator,bo=bf.location;var c=(function(){var bI=function(b3,b4){return new bI.fn.init(b3,b4,bG)},bY=bf.jQuery,bK=bf.$,bG,b2=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bQ=/\S/,bM=/^\s+/,bH=/\s+$/,bL=/\d/,bD=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bR=/^[\],:{}\s]*$/,b0=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bT=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bN=/(?:^|:|,)(?:\s*\[)+/g,bB=/(webkit)[ \/]([\w.]+)/,bV=/(opera)(?:.*version)?[ \/]([\w.]+)/,bU=/(msie) ([\w.]+)/,bW=/(mozilla)(?:.*? rv:([\w.]+))?/,bE=/-([a-z])/ig,bX=function(b3,b4){return b4.toUpperCase()},b1=bx.userAgent,bZ,bF,e,bP=Object.prototype.toString,bJ=Object.prototype.hasOwnProperty,bC=Array.prototype.push,bO=Array.prototype.slice,bS=String.prototype.trim,by=Array.prototype.indexOf,bA={};bI.fn=bI.prototype={constructor:bI,init:function(b3,b7,b6){var b5,b8,b4,b9;if(!b3){return this}if(b3.nodeType){this.context=this[0]=b3;this.length=1;return this}if(b3==="body"&&!b7&&ax.body){this.context=ax;this[0]=ax.body;this.selector=b3;this.length=1;return this}if(typeof b3==="string"){if(b3.charAt(0)==="<"&&b3.charAt(b3.length-1)===">"&&b3.length>=3){b5=[null,b3,null]}else{b5=b2.exec(b3)}if(b5&&(b5[1]||!b7)){if(b5[1]){b7=b7 instanceof bI?b7[0]:b7;b9=(b7?b7.ownerDocument||b7:ax);b4=bD.exec(b3);if(b4){if(bI.isPlainObject(b7)){b3=[ax.createElement(b4[1])];bI.fn.attr.call(b3,b7,true)}else{b3=[b9.createElement(b4[1])]}}else{b4=bI.buildFragment([b5[1]],[b9]);b3=(b4.cacheable?bI.clone(b4.fragment):b4.fragment).childNodes}return bI.merge(this,b3)}else{b8=ax.getElementById(b5[2]);if(b8&&b8.parentNode){if(b8.id!==b5[2]){return b6.find(b3)}this.length=1;this[0]=b8}this.context=ax;this.selector=b3;return this}}else{if(!b7||b7.jquery){return(b7||b6).find(b3)}else{return this.constructor(b7).find(b3)}}}else{if(bI.isFunction(b3)){return b6.ready(b3)}}if(b3.selector!==Q){this.selector=b3.selector;this.context=b3.context}return bI.makeArray(b3,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return bO.call(this,0)},get:function(b3){return b3==null?this.toArray():(b3<0?this[this.length+b3]:this[b3])},pushStack:function(b4,b6,b3){var b5=this.constructor();if(bI.isArray(b4)){bC.apply(b5,b4)}else{bI.merge(b5,b4)}b5.prevObject=this;b5.context=this.context;if(b6==="find"){b5.selector=this.selector+(this.selector?" ":"")+b3}else{if(b6){b5.selector=this.selector+"."+b6+"("+b3+")"}}return b5},each:function(b4,b3){return bI.each(this,b4,b3)},ready:function(b3){bI.bindReady();bF.done(b3);return this},eq:function(b3){return b3===-1?this.slice(b3):this.slice(b3,+b3+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bO.apply(this,arguments),"slice",bO.call(arguments).join(","))},map:function(b3){return this.pushStack(bI.map(this,function(b5,b4){return b3.call(b5,b4,b5)}))},end:function(){return this.prevObject||this.constructor(null)},push:bC,sort:[].sort,splice:[].splice};bI.fn.init.prototype=bI.fn;bI.extend=bI.fn.extend=function(){var cc,b5,b3,b4,b9,ca,b8=arguments[0]||{},b7=1,b6=arguments.length,cb=false;if(typeof b8==="boolean"){cb=b8;b8=arguments[1]||{};b7=2}if(typeof b8!=="object"&&!bI.isFunction(b8)){b8={}}if(b6===b7){b8=this;--b7}for(;b7<b6;b7++){if((cc=arguments[b7])!=null){for(b5 in cc){b3=b8[b5];b4=cc[b5];if(b8===b4){continue}if(cb&&b4&&(bI.isPlainObject(b4)||(b9=bI.isArray(b4)))){if(b9){b9=false;ca=b3&&bI.isArray(b3)?b3:[]}else{ca=b3&&bI.isPlainObject(b3)?b3:{}}b8[b5]=bI.extend(cb,ca,b4)}else{if(b4!==Q){b8[b5]=b4}}}}}return b8};bI.extend({noConflict:function(b3){if(bf.$===bI){bf.$=bK}if(b3&&bf.jQuery===bI){bf.jQuery=bY}return bI},isReady:false,readyWait:1,holdReady:function(b3){if(b3){bI.readyWait++}else{bI.ready(true)}},ready:function(b3){if((b3===true&&!--bI.readyWait)||(b3!==true&&!bI.isReady)){if(!ax.body){return setTimeout(bI.ready,1)}bI.isReady=true;if(b3!==true&&--bI.readyWait>0){return}bF.resolveWith(ax,[bI]);if(bI.fn.trigger){bI(ax).trigger("ready").unbind("ready")}}},bindReady:function(){if(bF){return}bF=bI._Deferred();if(ax.readyState==="complete"){return setTimeout(bI.ready,1)}if(ax.addEventListener){ax.addEventListener("DOMContentLoaded",e,false);bf.addEventListener("load",bI.ready,false)}else{if(ax.attachEvent){ax.attachEvent("onreadystatechange",e);bf.attachEvent("onload",bI.ready);var b3=false;try{b3=bf.frameElement==null}catch(b4){}if(ax.documentElement.doScroll&&b3){bz()}}}},isFunction:function(b3){return bI.type(b3)==="function"},isArray:Array.isArray||function(b3){return bI.type(b3)==="array"},isWindow:function(b3){return b3&&typeof b3==="object"&&"setInterval" in b3},isNaN:function(b3){return b3==null||!bL.test(b3)||isNaN(b3)},type:function(b3){return b3==null?String(b3):bA[bP.call(b3)]||"object"},isPlainObject:function(b4){if(!b4||bI.type(b4)!=="object"||b4.nodeType||bI.isWindow(b4)){return false}if(b4.constructor&&!bJ.call(b4,"constructor")&&!bJ.call(b4.constructor.prototype,"isPrototypeOf")){return false}var b3;for(b3 in b4){}return b3===Q||bJ.call(b4,b3)},isEmptyObject:function(b4){for(var b3 in b4){return false}return true},error:function(b3){throw b3},parseJSON:function(b3){if(typeof b3!=="string"||!b3){return null}b3=bI.trim(b3);if(bf.JSON&&bf.JSON.parse){return bf.JSON.parse(b3)}if(bR.test(b3.replace(b0,"@").replace(bT,"]").replace(bN,""))){return(new Function("return "+b3))()}bI.error("Invalid JSON: "+b3)},parseXML:function(b5,b3,b4){if(bf.DOMParser){b4=new DOMParser();b3=b4.parseFromString(b5,"text/xml")}else{b3=new ActiveXObject("Microsoft.XMLDOM");b3.async="false";b3.loadXML(b5)}b4=b3.documentElement;if(!b4||!b4.nodeName||b4.nodeName==="parsererror"){bI.error("Invalid XML: "+b5)}return b3},noop:function(){},globalEval:function(b3){if(b3&&bQ.test(b3)){(bf.execScript||function(b4){bf["eval"].call(bf,b4)})(b3)}},camelCase:function(b3){return b3.replace(bE,bX)},nodeName:function(b4,b3){return b4.nodeName&&b4.nodeName.toUpperCase()===b3.toUpperCase()},each:function(b6,b9,b5){var b4,b7=0,b8=b6.length,b3=b8===Q||bI.isFunction(b6);if(b5){if(b3){for(b4 in b6){if(b9.apply(b6[b4],b5)===false){break}}}else{for(;b7<b8;){if(b9.apply(b6[b7++],b5)===false){break}}}}else{if(b3){for(b4 in b6){if(b9.call(b6[b4],b4,b6[b4])===false){break}}}else{for(;b7<b8;){if(b9.call(b6[b7],b7,b6[b7++])===false){break}}}}return b6},trim:bS?function(b3){return b3==null?"":bS.call(b3)}:function(b3){return b3==null?"":b3.toString().replace(bM,"").replace(bH,"")},makeArray:function(b6,b4){var b3=b4||[];if(b6!=null){var b5=bI.type(b6);if(b6.length==null||b5==="string"||b5==="function"||b5==="regexp"||bI.isWindow(b6)){bC.call(b3,b6)}else{bI.merge(b3,b6)}}return b3},inArray:function(b5,b6){if(by){return by.call(b6,b5)}for(var b3=0,b4=b6.length;b3<b4;b3++){if(b6[b3]===b5){return b3}}return -1},merge:function(b7,b5){var b6=b7.length,b4=0;if(typeof b5.length==="number"){for(var b3=b5.length;b4<b3;b4++){b7[b6++]=b5[b4]}}else{while(b5[b4]!==Q){b7[b6++]=b5[b4++]}}b7.length=b6;return b7},grep:function(b4,b9,b3){var b5=[],b8;b3=!!b3;for(var b6=0,b7=b4.length;b6<b7;b6++){b8=!!b9(b4[b6],b6);if(b3!==b8){b5.push(b4[b6])}}return b5},map:function(b3,ca,cb){var b8,b9,b7=[],b5=0,b4=b3.length,b6=b3 instanceof bI||b4!==Q&&typeof b4==="number"&&((b4>0&&b3[0]&&b3[b4-1])||b4===0||bI.isArray(b3));if(b6){for(;b5<b4;b5++){b8=ca(b3[b5],b5,cb);if(b8!=null){b7[b7.length]=b8}}}else{for(b9 in b3){b8=ca(b3[b9],b9,cb);if(b8!=null){b7[b7.length]=b8}}}return b7.concat.apply([],b7)},guid:1,proxy:function(b7,b6){if(typeof b6==="string"){var b5=b7[b6];b6=b7;b7=b5}if(!bI.isFunction(b7)){return Q}var b3=bO.call(arguments,2),b4=function(){return b7.apply(b6,b3.concat(bO.call(arguments)))};b4.guid=b7.guid=b7.guid||b4.guid||bI.guid++;return b4},access:function(b3,cb,b9,b5,b8,ca){var b4=b3.length;if(typeof cb==="object"){for(var b6 in cb){bI.access(b3,b6,cb[b6],b5,b8,b9)}return b3}if(b9!==Q){b5=!ca&&b5&&bI.isFunction(b9);for(var b7=0;b7<b4;b7++){b8(b3[b7],cb,b5?b9.call(b3[b7],b7,b8(b3[b7],cb)):b9,ca)}return b3}return b4?b8(b3[0],cb):Q},now:function(){return(new Date()).getTime()},uaMatch:function(b4){b4=b4.toLowerCase();var b3=bB.exec(b4)||bV.exec(b4)||bU.exec(b4)||b4.indexOf("compatible")<0&&bW.exec(b4)||[];return{browser:b3[1]||"",version:b3[2]||"0"}},sub:function(){function b3(b6,b7){return new b3.fn.init(b6,b7)}bI.extend(true,b3,this);b3.superclass=this;b3.fn=b3.prototype=this();b3.fn.constructor=b3;b3.sub=this.sub;b3.fn.init=function b5(b6,b7){if(b7&&b7 instanceof bI&&!(b7 instanceof b3)){b7=b3(b7)}return bI.fn.init.call(this,b6,b7,b4)};b3.fn.init.prototype=b3.fn;var b4=b3(ax);return b3},browser:{}});bI.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(b4,b3){bA["[object "+b3+"]"]=b3.toLowerCase()});bZ=bI.uaMatch(b1);if(bZ.browser){bI.browser[bZ.browser]=true;bI.browser.version=bZ.version}if(bI.browser.webkit){bI.browser.safari=true}if(bQ.test("\xA0")){bM=/^[\s\xA0]+/;bH=/[\s\xA0]+$/}bG=bI(ax);if(ax.addEventListener){e=function(){ax.removeEventListener("DOMContentLoaded",e,false);bI.ready()}}else{if(ax.attachEvent){e=function(){if(ax.readyState==="complete"){ax.detachEvent("onreadystatechange",e);bI.ready()}}}}function bz(){if(bI.isReady){return}try{ax.documentElement.doScroll("left")}catch(b3){setTimeout(bz,1);return}bI.ready()}return bI})();var a="done fail isResolved isRejected promise then always pipe".split(" "),aL=[].slice;c.extend({_Deferred:function(){var bA=[],bB,by,bz,e={done:function(){if(!bz){var bD=arguments,bE,bH,bG,bF,bC;if(bB){bC=bB;bB=0}for(bE=0,bH=bD.length;bE<bH;bE++){bG=bD[bE];bF=c.type(bG);if(bF==="array"){e.done.apply(e,bG)}else{if(bF==="function"){bA.push(bG)}}}if(bC){e.resolveWith(bC[0],bC[1])}}return this},resolveWith:function(bD,bC){if(!bz&&!bB&&!by){bC=bC||[];by=1;try{while(bA[0]){bA.shift().apply(bD,bC)}}finally{bB=[bD,bC];by=0}}return this},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:function(){return !!(by||bB)},cancel:function(){bz=1;bA=[];return this}};return e},Deferred:function(by){var e=c._Deferred(),bA=c._Deferred(),bz;c.extend(e,{then:function(bC,bB){e.done(bC).fail(bB);return this},always:function(){return e.done.apply(e,arguments).fail.apply(this,arguments)},fail:bA.done,rejectWith:bA.resolveWith,reject:bA.resolve,isRejected:bA.isResolved,pipe:function(bC,bB){return c.Deferred(function(bD){c.each({done:[bC,"resolve"],fail:[bB,"reject"]},function(bF,bI){var bE=bI[0],bH=bI[1],bG;if(c.isFunction(bE)){e[bF](function(){bG=bE.apply(this,arguments);if(bG&&c.isFunction(bG.promise)){bG.promise().then(bD.resolve,bD.reject)}else{bD[bH](bG)}})}else{e[bF](bD[bH])}})}).promise()},promise:function(bC){if(bC==null){if(bz){return bz}bz=bC={}}var bB=a.length;while(bB--){bC[a[bB]]=e[a[bB]]}return bC}});e.done(bA.cancel).fail(e.cancel);delete e.cancel;if(by){by.call(e,e)}return e},when:function(bD){var by=arguments,bz=0,bC=by.length,bB=bC,e=bC<=1&&bD&&c.isFunction(bD.promise)?bD:c.Deferred();function bA(bE){return function(bF){by[bE]=arguments.length>1?aL.call(arguments,0):bF;if(!(--bB)){e.resolveWith(e,aL.call(by,0))}}}if(bC>1){for(;bz<bC;bz++){if(by[bz]&&c.isFunction(by[bz].promise)){by[bz].promise().then(bA(bz),e.reject)}else{--bB}}if(!bB){e.resolveWith(e,by)}}else{if(e!==bD){e.resolveWith(e,bC?[bD]:[])}}return e.promise()}});c.support=(function(){var bI=ax.createElement("div"),bP=ax.documentElement,bB,bQ,bJ,bz,bH,bC,bF,by,bG,bK,bE,bO,bM,bA,bD,bL,bR;bI.setAttribute("className","t");bI.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";bB=bI.getElementsByTagName("*");bQ=bI.getElementsByTagName("a")[0];if(!bB||!bB.length||!bQ){return{}}bJ=ax.createElement("select");bz=bJ.appendChild(ax.createElement("option"));bH=bI.getElementsByTagName("input")[0];bF={leadingWhitespace:(bI.firstChild.nodeType===3),tbody:!bI.getElementsByTagName("tbody").length,htmlSerialize:!!bI.getElementsByTagName("link").length,style:/top/.test(bQ.getAttribute("style")),hrefNormalized:(bQ.getAttribute("href")==="/a"),opacity:/^0.55$/.test(bQ.style.opacity),cssFloat:!!bQ.style.cssFloat,checkOn:(bH.value==="on"),optSelected:bz.selected,getSetAttribute:bI.className!=="t",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bH.checked=true;bF.noCloneChecked=bH.cloneNode(true).checked;bJ.disabled=true;bF.optDisabled=!bz.disabled;try{delete bI.test}catch(bN){bF.deleteExpando=false}if(!bI.addEventListener&&bI.attachEvent&&bI.fireEvent){bI.attachEvent("onclick",function(){bF.noCloneEvent=false});bI.cloneNode(true).fireEvent("onclick")}bH=ax.createElement("input");bH.value="t";bH.setAttribute("type","radio");bF.radioValue=bH.value==="t";bH.setAttribute("checked","checked");bI.appendChild(bH);by=ax.createDocumentFragment();by.appendChild(bI.firstChild);bF.checkClone=by.cloneNode(true).cloneNode(true).lastChild.checked;bI.innerHTML="";bI.style.width=bI.style.paddingLeft="1px";bG=ax.getElementsByTagName("body")[0];bE=ax.createElement(bG?"div":"body");bO={visibility:"hidden",width:0,height:0,border:0,margin:0};if(bG){c.extend(bO,{position:"absolute",left:-1000,top:-1000})}for(bL in bO){bE.style[bL]=bO[bL]}bE.appendChild(bI);bK=bG||bP;bK.insertBefore(bE,bK.firstChild);bF.appendChecked=bH.checked;bF.boxModel=bI.offsetWidth===2;if("zoom" in bI.style){bI.style.display="inline";bI.style.zoom=1;bF.inlineBlockNeedsLayout=(bI.offsetWidth===2);bI.style.display="";bI.innerHTML="<div style='width:4px;'></div>";bF.shrinkWrapBlocks=(bI.offsetWidth!==2)}bI.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";bM=bI.getElementsByTagName("td");bR=(bM[0].offsetHeight===0);bM[0].style.display="";bM[1].style.display="none";bF.reliableHiddenOffsets=bR&&(bM[0].offsetHeight===0);bI.innerHTML="";if(ax.defaultView&&ax.defaultView.getComputedStyle){bC=ax.createElement("div");bC.style.width="0";bC.style.marginRight="0";bI.appendChild(bC);bF.reliableMarginRight=(parseInt((ax.defaultView.getComputedStyle(bC,null)||{marginRight:0}).marginRight,10)||0)===0}bE.innerHTML="";bK.removeChild(bE);if(bI.attachEvent){for(bL in {submit:1,change:1,focusin:1}){bD="on"+bL;bR=(bD in bI);if(!bR){bI.setAttribute(bD,"return;");bR=(typeof bI[bD]==="function")}bF[bL+"Bubbles"]=bR}}bE=by=bJ=bz=bG=bC=bI=bH=null;return bF})();c.boxModel=c.support.boxModel;var aS=/^(?:\{.*\}|\[.*\])$/,aC=/([a-z])([A-Z])/g;c.extend({cache:{},uuid:0,expando:"jQuery"+(c.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?c.cache[e[c.expando]]:e[c.expando];return !!e&&!Z(e)},data:function(bA,by,bC,bB){if(!c.acceptData(bA)){return}var bF=c.expando,bE=typeof by==="string",bD,bG=bA.nodeType,e=bG?c.cache:bA,bz=bG?bA[c.expando]:bA[c.expando]&&c.expando;if((!bz||(bB&&bz&&!e[bz][bF]))&&bE&&bC===Q){return}if(!bz){if(bG){bA[c.expando]=bz=++c.uuid}else{bz=c.expando}}if(!e[bz]){e[bz]={};if(!bG){e[bz].toJSON=c.noop}}if(typeof by==="object"||typeof by==="function"){if(bB){e[bz][bF]=c.extend(e[bz][bF],by)}else{e[bz]=c.extend(e[bz],by)}}bD=e[bz];if(bB){if(!bD[bF]){bD[bF]={}}bD=bD[bF]}if(bC!==Q){bD[c.camelCase(by)]=bC}if(by==="events"&&!bD[by]){return bD[bF]&&bD[bF].events}return bE?bD[c.camelCase(by)]||bD[by]:bD},removeData:function(bB,bz,bC){if(!c.acceptData(bB)){return}var bE=c.expando,bF=bB.nodeType,by=bF?c.cache:bB,bA=bF?bB[c.expando]:c.expando;if(!by[bA]){return}if(bz){var bD=bC?by[bA][bE]:by[bA];if(bD){delete bD[bz];if(!Z(bD)){return}}}if(bC){delete by[bA][bE];if(!Z(by[bA])){return}}var e=by[bA][bE];if(c.support.deleteExpando||by!=bf){delete by[bA]}else{by[bA]=null}if(e){by[bA]={};if(!bF){by[bA].toJSON=c.noop}by[bA][bE]=e}else{if(bF){if(c.support.deleteExpando){delete bB[c.expando]}else{if(bB.removeAttribute){bB.removeAttribute(c.expando)}else{bB[c.expando]=null}}}}},_data:function(by,e,bz){return c.data(by,e,bz,true)},acceptData:function(by){if(by.nodeName){var e=c.noData[by.nodeName.toLowerCase()];if(e){return !(e===true||by.getAttribute("classid")!==e)}}return true}});c.fn.extend({data:function(bB,bD){var bC=null;if(typeof bB==="undefined"){if(this.length){bC=c.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,bz;for(var bA=0,by=e.length;bA<by;bA++){bz=e[bA].name;if(bz.indexOf("data-")===0){bz=c.camelCase(bz.substring(5));a8(this[0],bz,bC[bz])}}}}return bC}else{if(typeof bB==="object"){return this.each(function(){c.data(this,bB)})}}var bE=bB.split(".");bE[1]=bE[1]?"."+bE[1]:"";if(bD===Q){bC=this.triggerHandler("getData"+bE[1]+"!",[bE[0]]);if(bC===Q&&this.length){bC=c.data(this[0],bB);bC=a8(this[0],bB,bC)}return bC===Q&&bE[1]?this.data(bE[0]):bC}else{return this.each(function(){var bG=c(this),bF=[bE[0],bD];bG.triggerHandler("setData"+bE[1]+"!",bF);c.data(this,bB,bD);bG.triggerHandler("changeData"+bE[1]+"!",bF)})}},removeData:function(e){return this.each(function(){c.removeData(this,e)})}});function a8(bA,bz,bB){if(bB===Q&&bA.nodeType===1){var by="data-"+bz.replace(aC,"$1-$2").toLowerCase();bB=bA.getAttribute(by);if(typeof bB==="string"){try{bB=bB==="true"?true:bB==="false"?false:bB==="null"?null:!c.isNaN(bB)?parseFloat(bB):aS.test(bB)?c.parseJSON(bB):bB}catch(bC){}c.data(bA,bz,bB)}else{bB=Q}}return bB}function Z(by){for(var e in by){if(e!=="toJSON"){return false}}return true}function bk(bB,bA,bD){var bz=bA+"defer",by=bA+"queue",e=bA+"mark",bC=c.data(bB,bz,Q,true);if(bC&&(bD==="queue"||!c.data(bB,by,Q,true))&&(bD==="mark"||!c.data(bB,e,Q,true))){setTimeout(function(){if(!c.data(bB,by,Q,true)&&!c.data(bB,e,Q,true)){c.removeData(bB,bz,true);bC.resolve()}},0)}}c.extend({_mark:function(by,e){if(by){e=(e||"fx")+"mark";c.data(by,e,(c.data(by,e,Q,true)||0)+1,true)}},_unmark:function(bB,bA,by){if(bB!==true){by=bA;bA=bB;bB=false}if(bA){by=by||"fx";var e=by+"mark",bz=bB?0:((c.data(bA,e,Q,true)||1)-1);if(bz){c.data(bA,e,bz,true)}else{c.removeData(bA,e,true);bk(bA,by,"mark")}}},queue:function(by,e,bA){if(by){e=(e||"fx")+"queue";var bz=c.data(by,e,Q,true);if(bA){if(!bz||c.isArray(bA)){bz=c.data(by,e,c.makeArray(bA),true)}else{bz.push(bA)}}return bz||[]}},dequeue:function(bA,bz){bz=bz||"fx";var e=c.queue(bA,bz),by=e.shift(),bB;if(by==="inprogress"){by=e.shift()}if(by){if(bz==="fx"){e.unshift("inprogress")}by.call(bA,function(){c.dequeue(bA,bz)})}if(!e.length){c.removeData(bA,bz+"queue",true);bk(bA,bz,"queue")}}});c.fn.extend({queue:function(e,by){if(typeof e!=="string"){by=e;e="fx"}if(by===Q){return c.queue(this[0],e)}return this.each(function(){var bz=c.queue(this,e,by);if(e==="fx"&&bz[0]!=="inprogress"){c.dequeue(this,e)}})},dequeue:function(e){return this.each(function(){c.dequeue(this,e)})},delay:function(by,e){by=c.fx?c.fx.speeds[by]||by:by;e=e||"fx";return this.queue(e,function(){var bz=this;setTimeout(function(){c.dequeue(bz,e)},by)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(bG,bz){if(typeof bG!=="string"){bz=bG;bG=Q}bG=bG||"fx";var e=c.Deferred(),by=this,bB=by.length,bE=1,bC=bG+"defer",bD=bG+"queue",bF=bG+"mark",bA;function bH(){if(!(--bE)){e.resolveWith(by,[by])}}while(bB--){if((bA=c.data(by[bB],bC,Q,true)||(c.data(by[bB],bD,Q,true)||c.data(by[bB],bF,Q,true))&&c.data(by[bB],bC,c._Deferred(),true))){bE++;bA.done(bH)}}bH();return e.promise()}});var aQ=/[\n\t\r]/g,ai=/\s+/,aU=/\r/g,h=/^(?:button|input)$/i,J=/^(?:button|input|object|select|textarea)$/i,p=/^a(?:rea)?$/i,aq=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,bb=/\:|^on/,a6,a0;c.fn.extend({attr:function(e,by){return c.access(this,e,by,true,c.attr)},removeAttr:function(e){return this.each(function(){c.removeAttr(this,e)})},prop:function(e,by){return c.access(this,e,by,true,c.prop)},removeProp:function(e){e=c.propFix[e]||e;return this.each(function(){try{this[e]=Q;delete this[e]}catch(by){}})},addClass:function(bB){var bD,bz,by,bA,bC,bE,e;if(c.isFunction(bB)){return this.each(function(bF){c(this).addClass(bB.call(this,bF,this.className))})}if(bB&&typeof bB==="string"){bD=bB.split(ai);for(bz=0,by=this.length;bz<by;bz++){bA=this[bz];if(bA.nodeType===1){if(!bA.className&&bD.length===1){bA.className=bB}else{bC=" "+bA.className+" ";for(bE=0,e=bD.length;bE<e;bE++){if(!~bC.indexOf(" "+bD[bE]+" ")){bC+=bD[bE]+" "}}bA.className=c.trim(bC)}}}}return this},removeClass:function(bC){var bD,bz,by,bB,bA,bE,e;if(c.isFunction(bC)){return this.each(function(bF){c(this).removeClass(bC.call(this,bF,this.className))})}if((bC&&typeof bC==="string")||bC===Q){bD=(bC||"").split(ai);for(bz=0,by=this.length;bz<by;bz++){bB=this[bz];if(bB.nodeType===1&&bB.className){if(bC){bA=(" "+bB.className+" ").replace(aQ," ");for(bE=0,e=bD.length;bE<e;bE++){bA=bA.replace(" "+bD[bE]+" "," ")}bB.className=c.trim(bA)}else{bB.className=""}}}}return this},toggleClass:function(bA,by){var bz=typeof bA,e=typeof by==="boolean";if(c.isFunction(bA)){return this.each(function(bB){c(this).toggleClass(bA.call(this,bB,this.className,by),by)})}return this.each(function(){if(bz==="string"){var bD,bC=0,bB=c(this),bE=by,bF=bA.split(ai);while((bD=bF[bC++])){bE=e?bE:!bB.hasClass(bD);bB[bE?"addClass":"removeClass"](bD)}}else{if(bz==="undefined"||bz==="boolean"){if(this.className){c._data(this,"__className__",this.className)}this.className=this.className||bA===false?"":c._data(this,"__className__")||""}}})},hasClass:function(e){var bA=" "+e+" ";for(var bz=0,by=this.length;bz<by;bz++){if((" "+this[bz].className+" ").replace(aQ," ").indexOf(bA)>-1){return true}}return false},val:function(bA){var e,by,bz=this[0];if(!arguments.length){if(bz){e=c.valHooks[bz.nodeName.toLowerCase()]||c.valHooks[bz.type];if(e&&"get" in e&&(by=e.get(bz,"value"))!==Q){return by}by=bz.value;return typeof by==="string"?by.replace(aU,""):by==null?"":by}return Q}var bB=c.isFunction(bA);return this.each(function(bD){var bC=c(this),bE;if(this.nodeType!==1){return}if(bB){bE=bA.call(this,bD,bC.val())}else{bE=bA}if(bE==null){bE=""}else{if(typeof bE==="number"){bE+=""}else{if(c.isArray(bE)){bE=c.map(bE,function(bF){return bF==null?"":bF+""})}}}e=c.valHooks[this.nodeName.toLowerCase()]||c.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bE,"value")===Q){this.value=bE}})}});c.extend({valHooks:{option:{get:function(e){var by=e.attributes.value;return !by||by.specified?e.value:e.text}},select:{get:function(e){var bD,bB=e.selectedIndex,bE=[],bF=e.options,bA=e.type==="select-one";if(bB<0){return null}for(var by=bA?bB:0,bC=bA?bB+1:bF.length;by<bC;by++){var bz=bF[by];if(bz.selected&&(c.support.optDisabled?!bz.disabled:bz.getAttribute("disabled")===null)&&(!bz.parentNode.disabled||!c.nodeName(bz.parentNode,"optgroup"))){bD=c(bz).val();if(bA){return bD}bE.push(bD)}}if(bA&&!bE.length&&bF.length){return c(bF[bB]).val()}return bE},set:function(by,bz){var e=c.makeArray(bz);c(by).find("option").each(function(){this.selected=c.inArray(c(this).val(),e)>=0});if(!e.length){by.selectedIndex=-1}return e}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attrFix:{tabindex:"tabIndex"},attr:function(bD,bA,bE,bC){var by=bD.nodeType;if(!bD||by===3||by===8||by===2){return Q}if(bC&&bA in c.attrFn){return c(bD)[bA](bE)}if(!("getAttribute" in bD)){return c.prop(bD,bA,bE)}var bz,e,bB=by!==1||!c.isXMLDoc(bD);if(bB){bA=c.attrFix[bA]||bA;e=c.attrHooks[bA];if(!e){if(aq.test(bA)){e=a0}else{if(a6&&bA!=="className"&&(c.nodeName(bD,"form")||bb.test(bA))){e=a6}}}}if(bE!==Q){if(bE===null){c.removeAttr(bD,bA);return Q}else{if(e&&"set" in e&&bB&&(bz=e.set(bD,bE,bA))!==Q){return bz}else{bD.setAttribute(bA,""+bE);return bE}}}else{if(e&&"get" in e&&bB&&(bz=e.get(bD,bA))!==null){return bz}else{bz=bD.getAttribute(bA);return bz===null?Q:bz}}},removeAttr:function(by,e){var bz;if(by.nodeType===1){e=c.attrFix[e]||e;if(c.support.getSetAttribute){by.removeAttribute(e)}else{c.attr(by,e,"");by.removeAttributeNode(by.getAttributeNode(e))}if(aq.test(e)&&(bz=c.propFix[e]||e) in by){by[bz]=false}}},attrHooks:{type:{set:function(e,by){if(h.test(e.nodeName)&&e.parentNode){c.error("type property can't be changed")}else{if(!c.support.radioValue&&by==="radio"&&c.nodeName(e,"input")){var bz=e.value;e.setAttribute("type",by);if(bz){e.value=bz}return by}}}},tabIndex:{get:function(by){var e=by.getAttributeNode("tabIndex");return e&&e.specified?parseInt(e.value,10):J.test(by.nodeName)||p.test(by.nodeName)&&by.href?0:Q}},value:{get:function(by,e){if(a6&&c.nodeName(by,"button")){return a6.get(by,e)}return e in by?by.value:null},set:function(by,bz,e){if(a6&&c.nodeName(by,"button")){return a6.set(by,bz,e)}by.value=bz}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(bC,bA,bD){var by=bC.nodeType;if(!bC||by===3||by===8||by===2){return Q}var bz,e,bB=by!==1||!c.isXMLDoc(bC);if(bB){bA=c.propFix[bA]||bA;e=c.propHooks[bA]}if(bD!==Q){if(e&&"set" in e&&(bz=e.set(bC,bD,bA))!==Q){return bz}else{return(bC[bA]=bD)}}else{if(e&&"get" in e&&(bz=e.get(bC,bA))!==Q){return bz}else{return bC[bA]}}},propHooks:{}});a0={get:function(by,e){return c.prop(by,e)?e.toLowerCase():Q},set:function(by,bA,e){var bz;if(bA===false){c.removeAttr(by,e)}else{bz=c.propFix[e]||e;if(bz in by){by[bz]=true}by.setAttribute(e,e.toLowerCase())}return e}};if(!c.support.getSetAttribute){c.attrFix=c.propFix;a6=c.attrHooks.name=c.attrHooks.title=c.valHooks.button={get:function(bz,by){var e;e=bz.getAttributeNode(by);return e&&e.nodeValue!==""?e.nodeValue:Q},set:function(bz,bA,by){var e=bz.getAttributeNode(by);if(e){e.nodeValue=bA;return bA}}};c.each(["width","height"],function(by,e){c.attrHooks[e]=c.extend(c.attrHooks[e],{set:function(bz,bA){if(bA===""){bz.setAttribute(e,"auto");return bA}}})})}if(!c.support.hrefNormalized){c.each(["href","src","width","height"],function(by,e){c.attrHooks[e]=c.extend(c.attrHooks[e],{get:function(bA){var bz=bA.getAttribute(e,2);return bz===null?Q:bz}})})}if(!c.support.style){c.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||Q},set:function(e,by){return(e.style.cssText=""+by)}}}if(!c.support.optSelected){c.propHooks.selected=c.extend(c.propHooks.selected,{get:function(by){var e=by.parentNode;if(e){e.selectedIndex;if(e.parentNode){e.parentNode.selectedIndex}}}})}if(!c.support.checkOn){c.each(["radio","checkbox"],function(){c.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}})}c.each(["radio","checkbox"],function(){c.valHooks[this]=c.extend(c.valHooks[this],{set:function(e,by){if(c.isArray(by)){return(e.checked=c.inArray(c(e).val(),by)>=0)}}})});var a2=/\.(.*)$/,bh=/^(?:textarea|input|select)$/i,T=/\./g,bl=/ /g,aI=/[^\w\s.|`]/g,M=function(e){return e.replace(aI,"\\$&")};c.event={add:function(bA,bE,bJ,bC){if(bA.nodeType===3||bA.nodeType===8){return}if(bJ===false){bJ=bn}else{if(!bJ){return}}var by,bI;if(bJ.handler){by=bJ;bJ=by.handler}if(!bJ.guid){bJ.guid=c.guid++}var bF=c._data(bA);if(!bF){return}var bK=bF.events,bD=bF.handle;if(!bK){bF.events=bK={}}if(!bD){bF.handle=bD=function(bL){return typeof c!=="undefined"&&(!bL||c.event.triggered!==bL.type)?c.event.handle.apply(bD.elem,arguments):Q}}bD.elem=bA;bE=bE.split(" ");var bH,bB=0,e;while((bH=bE[bB++])){bI=by?c.extend({},by):{handler:bJ,data:bC};if(bH.indexOf(".")>-1){e=bH.split(".");bH=e.shift();bI.namespace=e.slice(0).sort().join(".")}else{e=[];bI.namespace=""}bI.type=bH;if(!bI.guid){bI.guid=bJ.guid}var bz=bK[bH],bG=c.event.special[bH]||{};if(!bz){bz=bK[bH]=[];if(!bG.setup||bG.setup.call(bA,bC,e,bD)===false){if(bA.addEventListener){bA.addEventListener(bH,bD,false)}else{if(bA.attachEvent){bA.attachEvent("on"+bH,bD)}}}}if(bG.add){bG.add.call(bA,bI);if(!bI.handler.guid){bI.handler.guid=bJ.guid}}bz.push(bI);c.event.global[bH]=true}bA=null},global:{},remove:function(bM,bH,bz,bD){if(bM.nodeType===3||bM.nodeType===8){return}if(bz===false){bz=bn}var bP,bC,bE,bJ,bK=0,bA,bF,bI,bB,bG,e,bO,bL=c.hasData(bM)&&c._data(bM),by=bL&&bL.events;if(!bL||!by){return}if(bH&&bH.type){bz=bH.handler;bH=bH.type}if(!bH||typeof bH==="string"&&bH.charAt(0)==="."){bH=bH||"";for(bC in by){c.event.remove(bM,bC+bH)}return}bH=bH.split(" ");while((bC=bH[bK++])){bO=bC;e=null;bA=bC.indexOf(".")<0;bF=[];if(!bA){bF=bC.split(".");bC=bF.shift();bI=new RegExp("(^|\\.)"+c.map(bF.slice(0).sort(),M).join("\\.(?:.*\\.)?")+"(\\.|$)")}bG=by[bC];if(!bG){continue}if(!bz){for(bJ=0;bJ<bG.length;bJ++){e=bG[bJ];if(bA||bI.test(e.namespace)){c.event.remove(bM,bO,e.handler,bJ);bG.splice(bJ--,1)}}continue}bB=c.event.special[bC]||{};for(bJ=bD||0;bJ<bG.length;bJ++){e=bG[bJ];if(bz.guid===e.guid){if(bA||bI.test(e.namespace)){if(bD==null){bG.splice(bJ--,1)}if(bB.remove){bB.remove.call(bM,e)}}if(bD!=null){break}}}if(bG.length===0||bD!=null&&bG.length===1){if(!bB.teardown||bB.teardown.call(bM,bF)===false){c.removeEvent(bM,bC,bL.handle)}bP=null;delete by[bC]}}if(c.isEmptyObject(by)){var bN=bL.handle;if(bN){bN.elem=null}delete bL.events;delete bL.handle;if(c.isEmptyObject(bL)){c.removeData(bM,Q,true)}}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(e,bE,bC,bJ){var bH=e.type||e,bz=[],by;if(bH.indexOf("!")>=0){bH=bH.slice(0,-1);by=true}if(bH.indexOf(".")>=0){bz=bH.split(".");bH=bz.shift();bz.sort()}if((!bC||c.event.customEvent[bH])&&!c.event.global[bH]){return}e=typeof e==="object"?e[c.expando]?e:new c.Event(bH,e):new c.Event(bH);e.type=bH;e.exclusive=by;e.namespace=bz.join(".");e.namespace_re=new RegExp("(^|\\.)"+bz.join("\\.(?:.*\\.)?")+"(\\.|$)");if(bJ||!bC){e.preventDefault();e.stopPropagation()}if(!bC){c.each(c.cache,function(){var bL=c.expando,bK=this[bL];if(bK&&bK.events&&bK.events[bH]){c.event.trigger(e,bE,bK.handle.elem)}});return}if(bC.nodeType===3||bC.nodeType===8){return}e.result=Q;e.target=bC;bE=bE!=null?c.makeArray(bE):[];bE.unshift(e);var bI=bC,bA=bH.indexOf(":")<0?"on"+bH:"";do{var bF=c._data(bI,"handle");e.currentTarget=bI;if(bF){bF.apply(bI,bE)}if(bA&&c.acceptData(bI)&&bI[bA]&&bI[bA].apply(bI,bE)===false){e.result=false;e.preventDefault()}bI=bI.parentNode||bI.ownerDocument||bI===e.target.ownerDocument&&bf}while(bI&&!e.isPropagationStopped());if(!e.isDefaultPrevented()){var bB,bG=c.event.special[bH]||{};if((!bG._default||bG._default.call(bC.ownerDocument,e)===false)&&!(bH==="click"&&c.nodeName(bC,"a"))&&c.acceptData(bC)){try{if(bA&&bC[bH]){bB=bC[bA];if(bB){bC[bA]=null}c.event.triggered=bH;bC[bH]()}}catch(bD){}if(bB){bC[bA]=bB}c.event.triggered=Q}}return e.result},handle:function(bE){bE=c.event.fix(bE||bf.event);var by=((c._data(this,"events")||{})[bE.type]||[]).slice(0),bD=!bE.exclusive&&!bE.namespace,bB=Array.prototype.slice.call(arguments,0);bB[0]=bE;bE.currentTarget=this;for(var bA=0,e=by.length;bA<e;bA++){var bC=by[bA];if(bD||bE.namespace_re.test(bC.namespace)){bE.handler=bC.handler;bE.data=bC.data;bE.handleObj=bC;var bz=bC.handler.apply(this,bB);if(bz!==Q){bE.result=bz;if(bz===false){bE.preventDefault();bE.stopPropagation()}}if(bE.isImmediatePropagationStopped()){break}}}return bE.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(bB){if(bB[c.expando]){return bB}var by=bB;bB=c.Event(by);for(var bz=this.props.length,bD;bz;){bD=this.props[--bz];bB[bD]=by[bD]}if(!bB.target){bB.target=bB.srcElement||ax}if(bB.target.nodeType===3){bB.target=bB.target.parentNode}if(!bB.relatedTarget&&bB.fromElement){bB.relatedTarget=bB.fromElement===bB.target?bB.toElement:bB.fromElement}if(bB.pageX==null&&bB.clientX!=null){var bA=bB.target.ownerDocument||ax,bC=bA.documentElement,e=bA.body;bB.pageX=bB.clientX+(bC&&bC.scrollLeft||e&&e.scrollLeft||0)-(bC&&bC.clientLeft||e&&e.clientLeft||0);bB.pageY=bB.clientY+(bC&&bC.scrollTop||e&&e.scrollTop||0)-(bC&&bC.clientTop||e&&e.clientTop||0)}if(bB.which==null&&(bB.charCode!=null||bB.keyCode!=null)){bB.which=bB.charCode!=null?bB.charCode:bB.keyCode}if(!bB.metaKey&&bB.ctrlKey){bB.metaKey=bB.ctrlKey}if(!bB.which&&bB.button!==Q){bB.which=(bB.button&1?1:(bB.button&2?3:(bB.button&4?2:0)))}return bB},guid:100000000,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(e){c.event.add(this,v(e.origType,e.selector),c.extend({},e,{handler:ao,guid:e.handler.guid}))},remove:function(e){c.event.remove(this,v(e.origType,e.selector),e)}},beforeunload:{setup:function(bz,by,e){if(c.isWindow(this)){this.onbeforeunload=e}},teardown:function(by,e){if(this.onbeforeunload===e){this.onbeforeunload=null}}}}};c.removeEvent=ax.removeEventListener?function(by,e,bz){if(by.removeEventListener){by.removeEventListener(e,bz,false)}}:function(by,e,bz){if(by.detachEvent){by.detachEvent("on"+e,bz)}};c.Event=function(by,e){if(!this.preventDefault){return new c.Event(by,e)}if(by&&by.type){this.originalEvent=by;this.type=by.type;this.isDefaultPrevented=(by.defaultPrevented||by.returnValue===false||by.getPreventDefault&&by.getPreventDefault())?l:bn}else{this.type=by}if(e){c.extend(this,e)}this.timeStamp=c.now();this[c.expando]=true};function bn(){return false}function l(){return true}c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=l;var by=this.originalEvent;if(!by){return}if(by.preventDefault){by.preventDefault()}else{by.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=l;var by=this.originalEvent;if(!by){return}if(by.stopPropagation){by.stopPropagation()}by.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=l;this.stopPropagation()},isDefaultPrevented:bn,isPropagationStopped:bn,isImmediatePropagationStopped:bn};var ah=function(bz){var bA=bz.relatedTarget,e=false,by=bz.type;bz.type=bz.data;if(bA!==this){if(bA){e=c.contains(this,bA)}if(!e){c.event.handle.apply(this,arguments);bz.type=by}}},aX=function(e){e.type=e.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(by,e){c.event.special[by]={setup:function(bz){c.event.add(this,e,bz&&bz.selector?aX:ah,by)},teardown:function(bz){c.event.remove(this,e,bz&&bz.selector?aX:ah)}}});if(!c.support.submitBubbles){c.event.special.submit={setup:function(by,e){if(!c.nodeName(this,"form")){c.event.add(this,"click.specialSubmit",function(bB){var bA=bB.target,bz=bA.type;if((bz==="submit"||bz==="image")&&c(bA).closest("form").length){aZ("submit",this,arguments)}});c.event.add(this,"keypress.specialSubmit",function(bB){var bA=bB.target,bz=bA.type;if((bz==="text"||bz==="password")&&c(bA).closest("form").length&&bB.keyCode===13){aZ("submit",this,arguments)}})}else{return false}},teardown:function(e){c.event.remove(this,".specialSubmit")}}}if(!c.support.changeBubbles){var bq,o=function(by){var e=by.type,bz=by.value;if(e==="radio"||e==="checkbox"){bz=by.checked}else{if(e==="select-multiple"){bz=by.selectedIndex>-1?c.map(by.options,function(bA){return bA.selected}).join("-"):""}else{if(c.nodeName(by,"select")){bz=by.selectedIndex}}}return bz},af=function af(bA){var by=bA.target,bz,bB;if(!bh.test(by.nodeName)||by.readOnly){return}bz=c._data(by,"_change_data");bB=o(by);if(bA.type!=="focusout"||by.type!=="radio"){c._data(by,"_change_data",bB)}if(bz===Q||bB===bz){return}if(bz!=null||bB){bA.type="change";bA.liveFired=Q;c.event.trigger(bA,arguments[1],by)}};c.event.special.change={filters:{focusout:af,beforedeactivate:af,click:function(bA){var bz=bA.target,by=c.nodeName(bz,"input")?bz.type:"";if(by==="radio"||by==="checkbox"||c.nodeName(bz,"select")){af.call(this,bA)}},keydown:function(bA){var bz=bA.target,by=c.nodeName(bz,"input")?bz.type:"";if((bA.keyCode===13&&!c.nodeName(bz,"textarea"))||(bA.keyCode===32&&(by==="checkbox"||by==="radio"))||by==="select-multiple"){af.call(this,bA)}},beforeactivate:function(bz){var by=bz.target;c._data(by,"_change_data",o(by))}},setup:function(bz,by){if(this.type==="file"){return false}for(var e in bq){c.event.add(this,e+".specialChange",bq[e])}return bh.test(this.nodeName)},teardown:function(e){c.event.remove(this,".specialChange");return bh.test(this.nodeName)}};bq=c.event.special.change.filters;bq.focus=bq.beforeactivate}function aZ(by,bA,e){var bz=c.extend({},e[0]);bz.type=by;bz.originalEvent={};bz.liveFired=Q;c.event.handle.call(bA,bz);if(bz.isDefaultPrevented()){e[0].preventDefault()}}if(!c.support.focusinBubbles){c.each({focus:"focusin",blur:"focusout"},function(bA,e){var by=0;c.event.special[e]={setup:function(){if(by++===0){ax.addEventListener(bA,bz,true)}},teardown:function(){if(--by===0){ax.removeEventListener(bA,bz,true)}}};function bz(bB){var bC=c.event.fix(bB);bC.type=e;bC.originalEvent={};c.event.trigger(bC,null,bC.target);if(bC.isDefaultPrevented()){bB.preventDefault()}}})}c.each(["bind","one"],function(by,e){c.fn[e]=function(bE,bF,bD){var bC;if(typeof bE==="object"){for(var bB in bE){this[e](bB,bF,bE[bB],bD)}return this}if(arguments.length===2||bF===false){bD=bF;bF=Q}if(e==="one"){bC=function(bG){c(this).unbind(bG,bC);return bD.apply(this,arguments)};bC.guid=bD.guid||c.guid++}else{bC=bD}if(bE==="unload"&&e!=="one"){this.one(bE,bF,bD)}else{for(var bA=0,bz=this.length;bA<bz;bA++){c.event.add(this[bA],bE,bC,bF)}}return this}});c.fn.extend({unbind:function(bB,bA){if(typeof bB==="object"&&!bB.preventDefault){for(var bz in bB){this.unbind(bz,bB[bz])}}else{for(var by=0,e=this.length;by<e;by++){c.event.remove(this[by],bB,bA)}}return this},delegate:function(e,by,bA,bz){return this.live(by,bA,bz,e)},undelegate:function(e,by,bz){if(arguments.length===0){return this.unbind("live")}else{return this.die(by,null,bz,e)}},trigger:function(e,by){return this.each(function(){c.event.trigger(e,by,this)})},triggerHandler:function(e,by){if(this[0]){return c.event.trigger(e,by,this[0],true)}},toggle:function(bA){var by=arguments,e=bA.guid||c.guid++,bz=0,bB=function(bC){var bD=(c.data(this,"lastToggle"+bA.guid)||0)%bz;c.data(this,"lastToggle"+bA.guid,bD+1);bC.preventDefault();return by[bD].apply(this,arguments)||false};bB.guid=e;while(bz<by.length){by[bz++].guid=e}return this.click(bB)},hover:function(e,by){return this.mouseenter(e).mouseleave(by||e)}});var aV={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(by,e){c.fn[e]=function(bI,bF,bK,bB){var bJ,bG=0,bH,bA,bM,bD=bB||this.selector,bz=bB?this:c(this.context);if(typeof bI==="object"&&!bI.preventDefault){for(var bL in bI){bz[e](bL,bF,bI[bL],bD)}return this}if(e==="die"&&!bI&&bB&&bB.charAt(0)==="."){bz.unbind(bB);return this}if(bF===false||c.isFunction(bF)){bK=bF||bn;bF=Q}bI=(bI||"").split(" ");while((bJ=bI[bG++])!=null){bH=a2.exec(bJ);bA="";if(bH){bA=bH[0];bJ=bJ.replace(a2,"")}if(bJ==="hover"){bI.push("mouseenter"+bA,"mouseleave"+bA);continue}bM=bJ;if(aV[bJ]){bI.push(aV[bJ]+bA);bJ=bJ+bA}else{bJ=(aV[bJ]||bJ)+bA}if(e==="live"){for(var bE=0,bC=bz.length;bE<bC;bE++){c.event.add(bz[bE],"live."+v(bJ,bD),{data:bF,selector:bD,handler:bK,origType:bJ,origHandler:bK,preType:bM})}}else{bz.unbind("live."+v(bJ,bD),bK)}}return this}});function ao(bI){var bF,bA,bO,bC,e,bK,bH,bJ,bG,bN,bE,bD,bM,bL=[],bB=[],by=c._data(this,"events");if(bI.liveFired===this||!by||!by.live||bI.target.disabled||bI.button&&bI.type==="click"){return}if(bI.namespace){bD=new RegExp("(^|\\.)"+bI.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")}bI.liveFired=this;var bz=by.live.slice(0);for(bH=0;bH<bz.length;bH++){e=bz[bH];if(e.origType.replace(a2,"")===bI.type){bB.push(e.selector)}else{bz.splice(bH--,1)}}bC=c(bI.target).closest(bB,bI.currentTarget);for(bJ=0,bG=bC.length;bJ<bG;bJ++){bE=bC[bJ];for(bH=0;bH<bz.length;bH++){e=bz[bH];if(bE.selector===e.selector&&(!bD||bD.test(e.namespace))&&!bE.elem.disabled){bK=bE.elem;bO=null;if(e.preType==="mouseenter"||e.preType==="mouseleave"){bI.type=e.preType;bO=c(bI.relatedTarget).closest(e.selector)[0];if(bO&&c.contains(bK,bO)){bO=bK}}if(!bO||bO!==bK){bL.push({elem:bK,handleObj:e,level:bE.level})}}}}for(bJ=0,bG=bL.length;bJ<bG;bJ++){bC=bL[bJ];if(bA&&bC.level>bA){break}bI.currentTarget=bC.elem;bI.data=bC.handleObj.data;bI.handleObj=bC.handleObj;bM=bC.handleObj.origHandler.apply(bC.elem,arguments);if(bM===false||bI.isPropagationStopped()){bA=bC.level;if(bM===false){bF=false}if(bI.isImmediatePropagationStopped()){break}}}return bF}function v(by,e){return(by&&by!=="*"?by+".":"")+e.replace(T,"`").replace(bl,"&")}c.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error").split(" "),function(by,e){c.fn[e]=function(bA,bz){if(bz==null){bz=bA;bA=null}return arguments.length>0?this.bind(e,bA,bz):this.trigger(e)};if(c.attrFn){c.attrFn[e]=true}});
/*
 * Sizzle CSS Selector Engine
 *  Copyright 2011, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var bI=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bJ=0,bM=Object.prototype.toString,bD=false,bC=true,bK=/\\/g,bQ=/\W/;[0,0].sort(function(){bC=false;return 0});var bA=function(bV,e,bY,bZ){bY=bY||[];e=e||ax;var b1=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!bV||typeof bV!=="string"){return bY}var bS,b3,b6,bR,b2,b5,b4,bX,bU=true,bT=bA.isXML(e),bW=[],b0=bV;do{bI.exec("");bS=bI.exec(b0);if(bS){b0=bS[3];bW.push(bS[1]);if(bS[2]){bR=bS[3];break}}}while(bS);if(bW.length>1&&bE.exec(bV)){if(bW.length===2&&bF.relative[bW[0]]){b3=bN(bW[0]+bW[1],e)}else{b3=bF.relative[bW[0]]?[e]:bA(bW.shift(),e);while(bW.length){bV=bW.shift();if(bF.relative[bV]){bV+=bW.shift()}b3=bN(bV,b3)}}}else{if(!bZ&&bW.length>1&&e.nodeType===9&&!bT&&bF.match.ID.test(bW[0])&&!bF.match.ID.test(bW[bW.length-1])){b2=bA.find(bW.shift(),e,bT);e=b2.expr?bA.filter(b2.expr,b2.set)[0]:b2.set[0]}if(e){b2=bZ?{expr:bW.pop(),set:bG(bZ)}:bA.find(bW.pop(),bW.length===1&&(bW[0]==="~"||bW[0]==="+")&&e.parentNode?e.parentNode:e,bT);b3=b2.expr?bA.filter(b2.expr,b2.set):b2.set;if(bW.length>0){b6=bG(b3)}else{bU=false}while(bW.length){b5=bW.pop();b4=b5;if(!bF.relative[b5]){b5=""}else{b4=bW.pop()}if(b4==null){b4=e}bF.relative[b5](b6,b4,bT)}}else{b6=bW=[]}}if(!b6){b6=b3}if(!b6){bA.error(b5||bV)}if(bM.call(b6)==="[object Array]"){if(!bU){bY.push.apply(bY,b6)}else{if(e&&e.nodeType===1){for(bX=0;b6[bX]!=null;bX++){if(b6[bX]&&(b6[bX]===true||b6[bX].nodeType===1&&bA.contains(e,b6[bX]))){bY.push(b3[bX])}}}else{for(bX=0;b6[bX]!=null;bX++){if(b6[bX]&&b6[bX].nodeType===1){bY.push(b3[bX])}}}}}else{bG(b6,bY)}if(bR){bA(bR,b1,bY,bZ);bA.uniqueSort(bY)}return bY};bA.uniqueSort=function(bR){if(bL){bD=bC;bR.sort(bL);if(bD){for(var e=1;e<bR.length;e++){if(bR[e]===bR[e-1]){bR.splice(e--,1)}}}}return bR};bA.matches=function(e,bR){return bA(e,null,null,bR)};bA.matchesSelector=function(e,bR){return bA(bR,null,null,[e]).length>0};bA.find=function(bX,e,bY){var bW;if(!bX){return[]}for(var bT=0,bS=bF.order.length;bT<bS;bT++){var bU,bV=bF.order[bT];if((bU=bF.leftMatch[bV].exec(bX))){var bR=bU[1];bU.splice(1,1);if(bR.substr(bR.length-1)!=="\\"){bU[1]=(bU[1]||"").replace(bK,"");bW=bF.find[bV](bU,e,bY);if(bW!=null){bX=bX.replace(bF.match[bV],"");break}}}}if(!bW){bW=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName("*"):[]}return{set:bW,expr:bX}};bA.filter=function(b1,b0,b4,bU){var bW,e,bS=b1,b6=[],bY=b0,bX=b0&&b0[0]&&bA.isXML(b0[0]);while(b1&&b0.length){for(var bZ in bF.filter){if((bW=bF.leftMatch[bZ].exec(b1))!=null&&bW[2]){var b5,b3,bR=bF.filter[bZ],bT=bW[1];e=false;bW.splice(1,1);if(bT.substr(bT.length-1)==="\\"){continue}if(bY===b6){b6=[]}if(bF.preFilter[bZ]){bW=bF.preFilter[bZ](bW,bY,b4,b6,bU,bX);if(!bW){e=b5=true}else{if(bW===true){continue}}}if(bW){for(var bV=0;(b3=bY[bV])!=null;bV++){if(b3){b5=bR(b3,bW,bV,bY);var b2=bU^!!b5;if(b4&&b5!=null){if(b2){e=true}else{bY[bV]=false}}else{if(b2){b6.push(b3);e=true}}}}}if(b5!==Q){if(!b4){bY=b6}b1=b1.replace(bF.match[bZ],"");if(!e){return[]}break}}}if(b1===bS){if(e==null){bA.error(b1)}else{break}}bS=b1}return bY};bA.error=function(e){throw"Syntax error, unrecognized expression: "+e};var bF=bA.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|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(bW,bR){var bT=typeof bR==="string",bV=bT&&!bQ.test(bR),bX=bT&&!bV;if(bV){bR=bR.toLowerCase()}for(var bS=0,e=bW.length,bU;bS<e;bS++){if((bU=bW[bS])){while((bU=bU.previousSibling)&&bU.nodeType!==1){}bW[bS]=bX||bU&&bU.nodeName.toLowerCase()===bR?bU||false:bU===bR}}if(bX){bA.filter(bR,bW,true)}},">":function(bW,bR){var bV,bU=typeof bR==="string",bS=0,e=bW.length;if(bU&&!bQ.test(bR)){bR=bR.toLowerCase();for(;bS<e;bS++){bV=bW[bS];if(bV){var bT=bV.parentNode;bW[bS]=bT.nodeName.toLowerCase()===bR?bT:false}}}else{for(;bS<e;bS++){bV=bW[bS];if(bV){bW[bS]=bU?bV.parentNode:bV.parentNode===bR}}if(bU){bA.filter(bR,bW,true)}}},"":function(bT,bR,bV){var bU,bS=bJ++,e=bO;if(typeof bR==="string"&&!bQ.test(bR)){bR=bR.toLowerCase();bU=bR;e=by}e("parentNode",bR,bS,bT,bU,bV)},"~":function(bT,bR,bV){var bU,bS=bJ++,e=bO;if(typeof bR==="string"&&!bQ.test(bR)){bR=bR.toLowerCase();bU=bR;e=by}e("previousSibling",bR,bS,bT,bU,bV)}},find:{ID:function(bR,bS,bT){if(typeof bS.getElementById!=="undefined"&&!bT){var e=bS.getElementById(bR[1]);return e&&e.parentNode?[e]:[]}},NAME:function(bS,bV){if(typeof bV.getElementsByName!=="undefined"){var bR=[],bU=bV.getElementsByName(bS[1]);for(var bT=0,e=bU.length;bT<e;bT++){if(bU[bT].getAttribute("name")===bS[1]){bR.push(bU[bT])}}return bR.length===0?null:bR}},TAG:function(e,bR){if(typeof bR.getElementsByTagName!=="undefined"){return bR.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(bT,bR,bS,e,bW,bX){bT=" "+bT[1].replace(bK,"")+" ";if(bX){return bT}for(var bU=0,bV;(bV=bR[bU])!=null;bU++){if(bV){if(bW^(bV.className&&(" "+bV.className+" ").replace(/[\t\n\r]/g," ").indexOf(bT)>=0)){if(!bS){e.push(bV)}}else{if(bS){bR[bU]=false}}}}return false},ID:function(e){return e[1].replace(bK,"")},TAG:function(bR,e){return bR[1].replace(bK,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){bA.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var bR=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bR[1]+(bR[2]||1))-0;e[3]=bR[3]-0}else{if(e[2]){bA.error(e[0])}}e[0]=bJ++;return e},ATTR:function(bU,bR,bS,e,bV,bW){var bT=bU[1]=bU[1].replace(bK,"");if(!bW&&bF.attrMap[bT]){bU[1]=bF.attrMap[bT]}bU[4]=(bU[4]||bU[5]||"").replace(bK,"");if(bU[2]==="~="){bU[4]=" "+bU[4]+" "}return bU},PSEUDO:function(bU,bR,bS,e,bV){if(bU[1]==="not"){if((bI.exec(bU[3])||"").length>1||/^\w/.test(bU[3])){bU[3]=bA(bU[3],null,null,bR)}else{var bT=bA.filter(bU[3],bR,bS,true^bV);if(!bS){e.push.apply(e,bT)}return false}}else{if(bF.match.POS.test(bU[0])||bF.match.CHILD.test(bU[0])){return true}}return bU},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(bS,bR,e){return !!bA(e[3],bS).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(bS){var e=bS.getAttribute("type"),bR=bS.type;return bS.nodeName.toLowerCase()==="input"&&"text"===bR&&(e===bR||e===null)},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type},submit:function(bR){var e=bR.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===bR.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(bR){var e=bR.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===bR.type},button:function(bR){var e=bR.nodeName.toLowerCase();return e==="input"&&"button"===bR.type||e==="button"},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(bR,e){return e===0},last:function(bS,bR,e,bT){return bR===bT.length-1},even:function(bR,e){return e%2===0},odd:function(bR,e){return e%2===1},lt:function(bS,bR,e){return bR<e[3]-0},gt:function(bS,bR,e){return bR>e[3]-0},nth:function(bS,bR,e){return e[3]-0===bR},eq:function(bS,bR,e){return e[3]-0===bR}},filter:{PSEUDO:function(bS,bX,bW,bY){var e=bX[1],bR=bF.filters[e];if(bR){return bR(bS,bW,bX,bY)}else{if(e==="contains"){return(bS.textContent||bS.innerText||bA.getText([bS])||"").indexOf(bX[3])>=0}else{if(e==="not"){var bT=bX[3];for(var bV=0,bU=bT.length;bV<bU;bV++){if(bT[bV]===bS){return false}}return true}else{bA.error(e)}}}},CHILD:function(e,bT){var bW=bT[1],bR=e;switch(bW){case"only":case"first":while((bR=bR.previousSibling)){if(bR.nodeType===1){return false}}if(bW==="first"){return true}bR=e;case"last":while((bR=bR.nextSibling)){if(bR.nodeType===1){return false}}return true;case"nth":var bS=bT[2],bZ=bT[3];if(bS===1&&bZ===0){return true}var bV=bT[0],bY=e.parentNode;if(bY&&(bY.sizcache!==bV||!e.nodeIndex)){var bU=0;for(bR=bY.firstChild;bR;bR=bR.nextSibling){if(bR.nodeType===1){bR.nodeIndex=++bU}}bY.sizcache=bV}var bX=e.nodeIndex-bZ;if(bS===0){return bX===0}else{return(bX%bS===0&&bX/bS>=0)}}},ID:function(bR,e){return bR.nodeType===1&&bR.getAttribute("id")===e},TAG:function(bR,e){return(e==="*"&&bR.nodeType===1)||bR.nodeName.toLowerCase()===e},CLASS:function(bR,e){return(" "+(bR.className||bR.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(bV,bT){var bS=bT[1],e=bF.attrHandle[bS]?bF.attrHandle[bS](bV):bV[bS]!=null?bV[bS]:bV.getAttribute(bS),bW=e+"",bU=bT[2],bR=bT[4];return e==null?bU==="!=":bU==="="?bW===bR:bU==="*="?bW.indexOf(bR)>=0:bU==="~="?(" "+bW+" ").indexOf(bR)>=0:!bR?bW&&e!==false:bU==="!="?bW!==bR:bU==="^="?bW.indexOf(bR)===0:bU==="$="?bW.substr(bW.length-bR.length)===bR:bU==="|="?bW===bR||bW.substr(0,bR.length+1)===bR+"-":false},POS:function(bU,bR,bS,bV){var e=bR[2],bT=bF.setFilters[e];if(bT){return bT(bU,bS,bR,bV)}}}};var bE=bF.match.POS,bz=function(bR,e){return"\\"+(e-0+1)};for(var bB in bF.match){bF.match[bB]=new RegExp(bF.match[bB].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bF.leftMatch[bB]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bF.match[bB].source.replace(/\\(\d+)/g,bz))}var bG=function(bR,e){bR=Array.prototype.slice.call(bR,0);if(e){e.push.apply(e,bR);return e}return bR};try{Array.prototype.slice.call(ax.documentElement.childNodes,0)[0].nodeType}catch(bP){bG=function(bU,bT){var bS=0,bR=bT||[];if(bM.call(bU)==="[object Array]"){Array.prototype.push.apply(bR,bU)}else{if(typeof bU.length==="number"){for(var e=bU.length;bS<e;bS++){bR.push(bU[bS])}}else{for(;bU[bS];bS++){bR.push(bU[bS])}}}return bR}}var bL,bH;if(ax.documentElement.compareDocumentPosition){bL=function(bR,e){if(bR===e){bD=true;return 0}if(!bR.compareDocumentPosition||!e.compareDocumentPosition){return bR.compareDocumentPosition?-1:1}return bR.compareDocumentPosition(e)&4?-1:1}}else{bL=function(bY,bX){if(bY===bX){bD=true;return 0}else{if(bY.sourceIndex&&bX.sourceIndex){return bY.sourceIndex-bX.sourceIndex}}var bV,bR,bS=[],e=[],bU=bY.parentNode,bW=bX.parentNode,bZ=bU;if(bU===bW){return bH(bY,bX)}else{if(!bU){return -1}else{if(!bW){return 1}}}while(bZ){bS.unshift(bZ);bZ=bZ.parentNode}bZ=bW;while(bZ){e.unshift(bZ);bZ=bZ.parentNode}bV=bS.length;bR=e.length;for(var bT=0;bT<bV&&bT<bR;bT++){if(bS[bT]!==e[bT]){return bH(bS[bT],e[bT])}}return bT===bV?bH(bY,e[bT],-1):bH(bS[bT],bX,1)};bH=function(bR,e,bS){if(bR===e){return bS}var bT=bR.nextSibling;while(bT){if(bT===e){return -1}bT=bT.nextSibling}return 1}}bA.getText=function(e){var bR="",bT;for(var bS=0;e[bS];bS++){bT=e[bS];if(bT.nodeType===3||bT.nodeType===4){bR+=bT.nodeValue}else{if(bT.nodeType!==8){bR+=bA.getText(bT.childNodes)}}}return bR};(function(){var bR=ax.createElement("div"),bS="script"+(new Date()).getTime(),e=ax.documentElement;bR.innerHTML="<a name='"+bS+"'/>";e.insertBefore(bR,e.firstChild);if(ax.getElementById(bS)){bF.find.ID=function(bU,bV,bW){if(typeof bV.getElementById!=="undefined"&&!bW){var bT=bV.getElementById(bU[1]);return bT?bT.id===bU[1]||typeof bT.getAttributeNode!=="undefined"&&bT.getAttributeNode("id").nodeValue===bU[1]?[bT]:Q:[]}};bF.filter.ID=function(bV,bT){var bU=typeof bV.getAttributeNode!=="undefined"&&bV.getAttributeNode("id");return bV.nodeType===1&&bU&&bU.nodeValue===bT}}e.removeChild(bR);e=bR=null})();(function(){var e=ax.createElement("div");e.appendChild(ax.createComment(""));if(e.getElementsByTagName("*").length>0){bF.find.TAG=function(bR,bV){var bU=bV.getElementsByTagName(bR[1]);if(bR[1]==="*"){var bT=[];for(var bS=0;bU[bS];bS++){if(bU[bS].nodeType===1){bT.push(bU[bS])}}bU=bT}return bU}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bF.attrHandle.href=function(bR){return bR.getAttribute("href",2)}}e=null})();if(ax.querySelectorAll){(function(){var e=bA,bT=ax.createElement("div"),bS="__sizzle__";bT.innerHTML="<p class='TEST'></p>";if(bT.querySelectorAll&&bT.querySelectorAll(".TEST").length===0){return}bA=function(b4,bV,bZ,b3){bV=bV||ax;if(!b3&&!bA.isXML(bV)){var b2=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b4);if(b2&&(bV.nodeType===1||bV.nodeType===9)){if(b2[1]){return bG(bV.getElementsByTagName(b4),bZ)}else{if(b2[2]&&bF.find.CLASS&&bV.getElementsByClassName){return bG(bV.getElementsByClassName(b2[2]),bZ)}}}if(bV.nodeType===9){if(b4==="body"&&bV.body){return bG([bV.body],bZ)}else{if(b2&&b2[3]){var bY=bV.getElementById(b2[3]);if(bY&&bY.parentNode){if(bY.id===b2[3]){return bG([bY],bZ)}}else{return bG([],bZ)}}}try{return bG(bV.querySelectorAll(b4),bZ)}catch(b0){}}else{if(bV.nodeType===1&&bV.nodeName.toLowerCase()!=="object"){var bW=bV,bX=bV.getAttribute("id"),bU=bX||bS,b6=bV.parentNode,b5=/^\s*[+~]/.test(b4);if(!bX){bV.setAttribute("id",bU)}else{bU=bU.replace(/'/g,"\\$&")}if(b5&&b6){bV=bV.parentNode}try{if(!b5||b6){return bG(bV.querySelectorAll("[id='"+bU+"'] "+b4),bZ)}}catch(b1){}finally{if(!bX){bW.removeAttribute("id")}}}}}return e(b4,bV,bZ,b3)};for(var bR in e){bA[bR]=e[bR]}bT=null})()}(function(){var e=ax.documentElement,bS=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(bS){var bU=!bS.call(ax.createElement("div"),"div"),bR=false;try{bS.call(ax.documentElement,"[test!='']:sizzle")}catch(bT){bR=true}bA.matchesSelector=function(bW,bY){bY=bY.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!bA.isXML(bW)){try{if(bR||!bF.match.PSEUDO.test(bY)&&!/!=/.test(bY)){var bV=bS.call(bW,bY);if(bV||!bU||bW.document&&bW.document.nodeType!==11){return bV}}}catch(bX){}}return bA(bY,null,null,[bW]).length>0}}})();(function(){var e=ax.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}bF.order.splice(1,0,"CLASS");bF.find.CLASS=function(bR,bS,bT){if(typeof bS.getElementsByClassName!=="undefined"&&!bT){return bS.getElementsByClassName(bR[1])}};e=null})();function by(bR,bW,bV,bZ,bX,bY){for(var bT=0,bS=bZ.length;bT<bS;bT++){var e=bZ[bT];if(e){var bU=false;e=e[bR];while(e){if(e.sizcache===bV){bU=bZ[e.sizset];break}if(e.nodeType===1&&!bY){e.sizcache=bV;e.sizset=bT}if(e.nodeName.toLowerCase()===bW){bU=e;break}e=e[bR]}bZ[bT]=bU}}}function bO(bR,bW,bV,bZ,bX,bY){for(var bT=0,bS=bZ.length;bT<bS;bT++){var e=bZ[bT];if(e){var bU=false;e=e[bR];while(e){if(e.sizcache===bV){bU=bZ[e.sizset];break}if(e.nodeType===1){if(!bY){e.sizcache=bV;e.sizset=bT}if(typeof bW!=="string"){if(e===bW){bU=true;break}}else{if(bA.filter(bW,[e]).length>0){bU=e;break}}}e=e[bR]}bZ[bT]=bU}}}if(ax.documentElement.contains){bA.contains=function(bR,e){return bR!==e&&(bR.contains?bR.contains(e):true)}}else{if(ax.documentElement.compareDocumentPosition){bA.contains=function(bR,e){return !!(bR.compareDocumentPosition(e)&16)}}else{bA.contains=function(){return false}}}bA.isXML=function(e){var bR=(e?e.ownerDocument||e:0).documentElement;return bR?bR.nodeName!=="HTML":false};var bN=function(e,bX){var bV,bT=[],bU="",bS=bX.nodeType?[bX]:bX;while((bV=bF.match.PSEUDO.exec(e))){bU+=bV[0];e=e.replace(bF.match.PSEUDO,"")}e=bF.relative[e]?e+"*":e;for(var bW=0,bR=bS.length;bW<bR;bW++){bA(e,bS[bW],bT)}return bA.filter(bU,bT)};c.find=bA;c.expr=bA.selectors;c.expr[":"]=c.expr.filters;c.unique=bA.uniqueSort;c.text=bA.getText;c.isXMLDoc=bA.isXML;c.contains=bA.contains})();var ae=/Until$/,at=/^(?:parents|prevUntil|prevAll)/,bd=/,/,bt=/^.[^:#\[\.,]*$/,V=Array.prototype.slice,N=c.expr.match.POS,aA={children:true,contents:true,next:true,prev:true};c.fn.extend({find:function(e){var bz=this,bB,by;if(typeof e!=="string"){return c(e).filter(function(){for(bB=0,by=bz.length;bB<by;bB++){if(c.contains(bz[bB],this)){return true}}})}var bA=this.pushStack("","find",e),bD,bE,bC;for(bB=0,by=this.length;bB<by;bB++){bD=bA.length;c.find(e,this[bB],bA);if(bB>0){for(bE=bD;bE<bA.length;bE++){for(bC=0;bC<bD;bC++){if(bA[bC]===bA[bE]){bA.splice(bE--,1);break}}}}}return bA},has:function(by){var e=c(by);return this.filter(function(){for(var bA=0,bz=e.length;bA<bz;bA++){if(c.contains(this,e[bA])){return true}}})},not:function(e){return this.pushStack(aH(this,e,false),"not",e)},filter:function(e){return this.pushStack(aH(this,e,true),"filter",e)},is:function(e){return !!e&&(typeof e==="string"?c.filter(e,this).length>0:this.filter(e).length>0)},closest:function(bH,by){var bE=[],bB,bz,bG=this[0];if(c.isArray(bH)){var bD,bA,bC={},e=1;if(bG&&bH.length){for(bB=0,bz=bH.length;bB<bz;bB++){bA=bH[bB];if(!bC[bA]){bC[bA]=N.test(bA)?c(bA,by||this.context):bA}}while(bG&&bG.ownerDocument&&bG!==by){for(bA in bC){bD=bC[bA];if(bD.jquery?bD.index(bG)>-1:c(bG).is(bD)){bE.push({selector:bA,elem:bG,level:e})}}bG=bG.parentNode;e++}}return bE}var bF=N.test(bH)||typeof bH!=="string"?c(bH,by||this.context):0;for(bB=0,bz=this.length;bB<bz;bB++){bG=this[bB];while(bG){if(bF?bF.index(bG)>-1:c.find.matchesSelector(bG,bH)){bE.push(bG);break}else{bG=bG.parentNode;if(!bG||!bG.ownerDocument||bG===by||bG.nodeType===11){break}}}}bE=bE.length>1?c.unique(bE):bE;return this.pushStack(bE,"closest",bH)},index:function(e){if(!e||typeof e==="string"){return c.inArray(this[0],e?c(e):this.parent().children())}return c.inArray(e.jquery?e[0]:e,this)},add:function(e,by){var bA=typeof e==="string"?c(e,by):c.makeArray(e&&e.nodeType?[e]:e),bz=c.merge(this.get(),bA);return this.pushStack(I(bA[0])||I(bz[0])?bz:c.unique(bz))},andSelf:function(){return this.add(this.prevObject)}});function I(e){return !e||!e.parentNode||e.parentNode.nodeType===11}c.each({parent:function(by){var e=by.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return c.dir(e,"parentNode")},parentsUntil:function(by,e,bz){return c.dir(by,"parentNode",bz)},next:function(e){return c.nth(e,2,"nextSibling")},prev:function(e){return c.nth(e,2,"previousSibling")},nextAll:function(e){return c.dir(e,"nextSibling")},prevAll:function(e){return c.dir(e,"previousSibling")},nextUntil:function(by,e,bz){return c.dir(by,"nextSibling",bz)},prevUntil:function(by,e,bz){return c.dir(by,"previousSibling",bz)},siblings:function(e){return c.sibling(e.parentNode.firstChild,e)},children:function(e){return c.sibling(e.firstChild)},contents:function(e){return c.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:c.makeArray(e.childNodes)}},function(e,by){c.fn[e]=function(bC,bz){var bB=c.map(this,by,bC),bA=V.call(arguments);if(!ae.test(e)){bz=bC}if(bz&&typeof bz==="string"){bB=c.filter(bz,bB)}bB=this.length>1&&!aA[e]?c.unique(bB):bB;if((this.length>1||bd.test(bz))&&at.test(e)){bB=bB.reverse()}return this.pushStack(bB,e,bA.join(","))}});c.extend({filter:function(bz,e,by){if(by){bz=":not("+bz+")"}return e.length===1?c.find.matchesSelector(e[0],bz)?[e[0]]:[]:c.find.matches(bz,e)},dir:function(bz,by,bB){var e=[],bA=bz[by];while(bA&&bA.nodeType!==9&&(bB===Q||bA.nodeType!==1||!c(bA).is(bB))){if(bA.nodeType===1){e.push(bA)}bA=bA[by]}return e},nth:function(bB,e,bz,bA){e=e||1;var by=0;for(;bB;bB=bB[bz]){if(bB.nodeType===1&&++by===e){break}}return bB},sibling:function(bz,by){var e=[];for(;bz;bz=bz.nextSibling){if(bz.nodeType===1&&bz!==by){e.push(bz)}}return e}});function aH(bA,bz,e){bz=bz||0;if(c.isFunction(bz)){return c.grep(bA,function(bC,bB){var bD=!!bz.call(bC,bB,bC);return bD===e})}else{if(bz.nodeType){return c.grep(bA,function(bC,bB){return(bC===bz)===e})}else{if(typeof bz==="string"){var by=c.grep(bA,function(bB){return bB.nodeType===1});if(bt.test(bz)){return c.filter(bz,by,!e)}else{bz=c.filter(bz,by)}}}}return c.grep(bA,function(bC,bB){return(c.inArray(bC,bz)>=0)===e})}var aj=/ jQuery\d+="(?:\d+|null)"/g,au=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,f=/<([\w:]+)/,C=/<tbody/i,ab=/<|&#?\w+;/,U=/<(?:script|object|embed|option|style)/i,r=/checked\s*(?:[^=]|=\s*.checked.)/i,bp=/\/(java|ecma)script/i,aP=/^\s*<!(?:\[CDATA\[|\-\-)/,az={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};az.optgroup=az.option;az.tbody=az.tfoot=az.colgroup=az.caption=az.thead;az.th=az.td;if(!c.support.htmlSerialize){az._default=[1,"div<div>","</div>"]}c.fn.extend({text:function(e){if(c.isFunction(e)){return this.each(function(bz){var by=c(this);by.text(e.call(this,bz,by.text()))})}if(typeof e!=="object"&&e!==Q){return this.empty().append((this[0]&&this[0].ownerDocument||ax).createTextNode(e))}return c.text(this)},wrapAll:function(e){if(c.isFunction(e)){return this.each(function(bz){c(this).wrapAll(e.call(this,bz))})}if(this[0]){var by=c(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){by.insertBefore(this[0])}by.map(function(){var bz=this;while(bz.firstChild&&bz.firstChild.nodeType===1){bz=bz.firstChild}return bz}).append(this)}return this},wrapInner:function(e){if(c.isFunction(e)){return this.each(function(by){c(this).wrapInner(e.call(this,by))})}return this.each(function(){var by=c(this),bz=by.contents();if(bz.length){bz.wrapAll(e)}else{by.append(e)}})},wrap:function(e){return this.each(function(){c(this).wrapAll(e)})},unwrap:function(){return this.parent().each(function(){if(!c.nodeName(this,"body")){c(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.insertBefore(e,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(by){this.parentNode.insertBefore(by,this)})}else{if(arguments.length){var e=c(arguments[0]);e.push.apply(e,this.toArray());return this.pushStack(e,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(by){this.parentNode.insertBefore(by,this.nextSibling)})}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,c(arguments[0]).toArray());return e}}},remove:function(e,bA){for(var by=0,bz;(bz=this[by])!=null;by++){if(!e||c.filter(e,[bz]).length){if(!bA&&bz.nodeType===1){c.cleanData(bz.getElementsByTagName("*"));c.cleanData([bz])}if(bz.parentNode){bz.parentNode.removeChild(bz)}}}return this},empty:function(){for(var e=0,by;(by=this[e])!=null;e++){if(by.nodeType===1){c.cleanData(by.getElementsByTagName("*"))}while(by.firstChild){by.removeChild(by.firstChild)}}return this},clone:function(by,e){by=by==null?false:by;e=e==null?by:e;return this.map(function(){return c.clone(this,by,e)})},html:function(bA){if(bA===Q){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(aj,""):null}else{if(typeof bA==="string"&&!U.test(bA)&&(c.support.leadingWhitespace||!au.test(bA))&&!az[(f.exec(bA)||["",""])[1].toLowerCase()]){bA=bA.replace(Y,"<$1></$2>");try{for(var bz=0,by=this.length;bz<by;bz++){if(this[bz].nodeType===1){c.cleanData(this[bz].getElementsByTagName("*"));this[bz].innerHTML=bA}}}catch(bB){this.empty().append(bA)}}else{if(c.isFunction(bA)){this.each(function(bC){var e=c(this);e.html(bA.call(this,bC,e.html()))})}else{this.empty().append(bA)}}}return this},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(c.isFunction(e)){return this.each(function(bA){var bz=c(this),by=bz.html();bz.replaceWith(e.call(this,bA,by))})}if(typeof e!=="string"){e=c(e).detach()}return this.each(function(){var bz=this.nextSibling,by=this.parentNode;c(this).remove();if(bz){c(bz).before(e)}else{c(by).append(e)}})}else{return this.length?this.pushStack(c(c.isFunction(e)?e():e),"replaceWith",e):this}},detach:function(e){return this.remove(e,true)},domManip:function(bE,bI,bH){var bA,bB,bD,bG,bF=bE[0],by=[];if(!c.support.checkClone&&arguments.length===3&&typeof bF==="string"&&r.test(bF)){return this.each(function(){c(this).domManip(bE,bI,bH,true)})}if(c.isFunction(bF)){return this.each(function(bK){var bJ=c(this);bE[0]=bF.call(this,bK,bI?bJ.html():Q);bJ.domManip(bE,bI,bH)})}if(this[0]){bG=bF&&bF.parentNode;if(c.support.parentNode&&bG&&bG.nodeType===11&&bG.childNodes.length===this.length){bA={fragment:bG}}else{bA=c.buildFragment(bE,this,by)}bD=bA.fragment;if(bD.childNodes.length===1){bB=bD=bD.firstChild}else{bB=bD.firstChild}if(bB){bI=bI&&c.nodeName(bB,"tr");for(var bz=0,e=this.length,bC=e-1;bz<e;bz++){bH.call(bI?be(this[bz],bB):this[bz],bA.cacheable||(e>1&&bz<bC)?c.clone(bD,true,true):bD)}}if(by.length){c.each(by,bs)}}return this}});function be(e,by){return c.nodeName(e,"table")?(e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody"))):e}function z(e,bE){if(bE.nodeType!==1||!c.hasData(e)){return}var bD=c.expando,bA=c.data(e),bB=c.data(bE,bA);if((bA=bA[bD])){var bF=bA.events;bB=bB[bD]=c.extend({},bA);if(bF){delete bB.handle;bB.events={};for(var bC in bF){for(var bz=0,by=bF[bC].length;bz<by;bz++){c.event.add(bE,bC+(bF[bC][bz].namespace?".":"")+bF[bC][bz].namespace,bF[bC][bz],bF[bC][bz].data)}}}}}function ak(by,e){var bz;if(e.nodeType!==1){return}if(e.clearAttributes){e.clearAttributes()}if(e.mergeAttributes){e.mergeAttributes(by)}bz=e.nodeName.toLowerCase();if(bz==="object"){e.outerHTML=by.outerHTML}else{if(bz==="input"&&(by.type==="checkbox"||by.type==="radio")){if(by.checked){e.defaultChecked=e.checked=by.checked}if(e.value!==by.value){e.value=by.value}}else{if(bz==="option"){e.selected=by.defaultSelected}else{if(bz==="input"||bz==="textarea"){e.defaultValue=by.defaultValue}}}}e.removeAttribute(c.expando)}c.buildFragment=function(bC,bA,by){var bB,e,bz,bD;if(bA&&bA[0]){bD=bA[0].ownerDocument||bA[0]}if(!bD.createDocumentFragment){bD=ax}if(bC.length===1&&typeof bC[0]==="string"&&bC[0].length<512&&bD===ax&&bC[0].charAt(0)==="<"&&!U.test(bC[0])&&(c.support.checkClone||!r.test(bC[0]))){e=true;bz=c.fragments[bC[0]];if(bz&&bz!==1){bB=bz}}if(!bB){bB=bD.createDocumentFragment();c.clean(bC,bD,bB,by)}if(e){c.fragments[bC[0]]=bz?bB:1}return{fragment:bB,cacheable:e}};c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,by){c.fn[e]=function(bz){var bC=[],bF=c(bz),bE=this.length===1&&this[0].parentNode;if(bE&&bE.nodeType===11&&bE.childNodes.length===1&&bF.length===1){bF[by](this[0]);return this}else{for(var bD=0,bA=bF.length;bD<bA;bD++){var bB=(bD>0?this.clone(true):this).get();c(bF[bD])[by](bB);bC=bC.concat(bB)}return this.pushStack(bC,e,bF.selector)}}});function bi(e){if("getElementsByTagName" in e){return e.getElementsByTagName("*")}else{if("querySelectorAll" in e){return e.querySelectorAll("*")}else{return[]}}}function aB(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked}}function K(e){if(c.nodeName(e,"input")){aB(e)}else{if("getElementsByTagName" in e){c.grep(e.getElementsByTagName("input"),aB)}}}c.extend({clone:function(bB,bD,bz){var bC=bB.cloneNode(true),e,by,bA;if((!c.support.noCloneEvent||!c.support.noCloneChecked)&&(bB.nodeType===1||bB.nodeType===11)&&!c.isXMLDoc(bB)){ak(bB,bC);e=bi(bB);by=bi(bC);for(bA=0;e[bA];++bA){ak(e[bA],by[bA])}}if(bD){z(bB,bC);if(bz){e=bi(bB);by=bi(bC);for(bA=0;e[bA];++bA){z(e[bA],by[bA])}}}e=by=null;return bC},clean:function(bz,bB,bK,bD){var bI;bB=bB||ax;if(typeof bB.createElement==="undefined"){bB=bB.ownerDocument||bB[0]&&bB[0].ownerDocument||ax}var bL=[],bE;for(var bH=0,bC;(bC=bz[bH])!=null;bH++){if(typeof bC==="number"){bC+=""}if(!bC){continue}if(typeof bC==="string"){if(!ab.test(bC)){bC=bB.createTextNode(bC)}else{bC=bC.replace(Y,"<$1></$2>");var bN=(f.exec(bC)||["",""])[1].toLowerCase(),bA=az[bN]||az._default,bG=bA[0],by=bB.createElement("div");by.innerHTML=bA[1]+bC+bA[2];while(bG--){by=by.lastChild}if(!c.support.tbody){var e=C.test(bC),bF=bN==="table"&&!e?by.firstChild&&by.firstChild.childNodes:bA[1]==="<table>"&&!e?by.childNodes:[];for(bE=bF.length-1;bE>=0;--bE){if(c.nodeName(bF[bE],"tbody")&&!bF[bE].childNodes.length){bF[bE].parentNode.removeChild(bF[bE])}}}if(!c.support.leadingWhitespace&&au.test(bC)){by.insertBefore(bB.createTextNode(au.exec(bC)[0]),by.firstChild)}bC=by.childNodes}}var bJ;if(!c.support.appendChecked){if(bC[0]&&typeof(bJ=bC.length)==="number"){for(bE=0;bE<bJ;bE++){K(bC[bE])}}else{K(bC)}}if(bC.nodeType){bL.push(bC)}else{bL=c.merge(bL,bC)}}if(bK){bI=function(bO){return !bO.type||bp.test(bO.type)};for(bH=0;bL[bH];bH++){if(bD&&c.nodeName(bL[bH],"script")&&(!bL[bH].type||bL[bH].type.toLowerCase()==="text/javascript")){bD.push(bL[bH].parentNode?bL[bH].parentNode.removeChild(bL[bH]):bL[bH])}else{if(bL[bH].nodeType===1){var bM=c.grep(bL[bH].getElementsByTagName("script"),bI);bL.splice.apply(bL,[bH+1,0].concat(bM))}bK.appendChild(bL[bH])}}}return bL},cleanData:function(by){var bB,bz,e=c.cache,bG=c.expando,bE=c.event.special,bD=c.support.deleteExpando;for(var bC=0,bA;(bA=by[bC])!=null;bC++){if(bA.nodeName&&c.noData[bA.nodeName.toLowerCase()]){continue}bz=bA[c.expando];if(bz){bB=e[bz]&&e[bz][bG];if(bB&&bB.events){for(var bF in bB.events){if(bE[bF]){c.event.remove(bA,bF)}else{c.removeEvent(bA,bF,bB.handle)}}if(bB.handle){bB.handle.elem=null}}if(bD){delete bA[c.expando]}else{if(bA.removeAttribute){bA.removeAttribute(c.expando)}}delete e[bz]}}}});function bs(e,by){if(by.src){c.ajax({url:by.src,async:false,dataType:"script"})}else{c.globalEval((by.text||by.textContent||by.innerHTML||"").replace(aP,"/*$0*/"))}if(by.parentNode){by.parentNode.removeChild(by)}}var an=/alpha\([^)]*\)/i,aw=/opacity=([^)]*)/,F=/([A-Z]|^ms)/g,bg=/^-?\d+(?:px)?$/i,br=/^-?\d/,O=/^[+\-]=/,am=/[^+\-\.\de]+/g,ba={position:"absolute",visibility:"hidden",display:"block"},ap=["Left","Right"],a4=["Top","Bottom"],ac,aK,aY;c.fn.css=function(e,by){if(arguments.length===2&&by===Q){return this}return c.access(this,e,by,true,function(bA,bz,bB){return bB!==Q?c.style(bA,bz,bB):c.css(bA,bz)})};c.extend({cssHooks:{opacity:{get:function(bz,by){if(by){var e=ac(bz,"opacity","opacity");return e===""?"1":e}else{return bz.style.opacity}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(bA,bz,bG,bB){if(!bA||bA.nodeType===3||bA.nodeType===8||!bA.style){return}var bE,bF,bC=c.camelCase(bz),by=bA.style,bH=c.cssHooks[bC];bz=c.cssProps[bC]||bC;if(bG!==Q){bF=typeof bG;if(bF==="number"&&isNaN(bG)||bG==null){return}if(bF==="string"&&O.test(bG)){bG=+bG.replace(am,"")+parseFloat(c.css(bA,bz));bF="number"}if(bF==="number"&&!c.cssNumber[bC]){bG+="px"}if(!bH||!("set" in bH)||(bG=bH.set(bA,bG))!==Q){try{by[bz]=bG}catch(bD){}}}else{if(bH&&"get" in bH&&(bE=bH.get(bA,false,bB))!==Q){return bE}return by[bz]}},css:function(bB,bA,by){var bz,e;bA=c.camelCase(bA);e=c.cssHooks[bA];bA=c.cssProps[bA]||bA;if(bA==="cssFloat"){bA="float"}if(e&&"get" in e&&(bz=e.get(bB,true,by))!==Q){return bz}else{if(ac){return ac(bB,bA)}}},swap:function(bA,bz,bB){var e={};for(var by in bz){e[by]=bA.style[by];bA.style[by]=bz[by]}bB.call(bA);for(by in bz){bA.style[by]=e[by]}}});c.curCSS=c.css;c.each(["height","width"],function(by,e){c.cssHooks[e]={get:function(bB,bA,bz){var bC;if(bA){if(bB.offsetWidth!==0){return u(bB,e,bz)}else{c.swap(bB,ba,function(){bC=u(bB,e,bz)})}return bC}},set:function(bz,bA){if(bg.test(bA)){bA=parseFloat(bA);if(bA>=0){return bA+"px"}}else{return bA}}}});if(!c.support.opacity){c.cssHooks.opacity={get:function(by,e){return aw.test((e&&by.currentStyle?by.currentStyle.filter:by.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""},set:function(bB,bC){var bA=bB.style,by=bB.currentStyle;bA.zoom=1;var e=c.isNaN(bC)?"":"alpha(opacity="+bC*100+")",bz=by&&by.filter||bA.filter||"";bA.filter=an.test(bz)?bz.replace(an,e):bz+" "+e}}}c(function(){if(!c.support.reliableMarginRight){c.cssHooks.marginRight={get:function(bz,by){var e;c.swap(bz,{display:"inline-block"},function(){if(by){e=ac(bz,"margin-right","marginRight")}else{e=bz.style.marginRight}});return e}}}});if(ax.defaultView&&ax.defaultView.getComputedStyle){aK=function(bB,bz){var by,bA,e;bz=bz.replace(F,"-$1").toLowerCase();if(!(bA=bB.ownerDocument.defaultView)){return Q}if((e=bA.getComputedStyle(bB,null))){by=e.getPropertyValue(bz);if(by===""&&!c.contains(bB.ownerDocument.documentElement,bB)){by=c.style(bB,bz)}}return by}}if(ax.documentElement.currentStyle){aY=function(bB,bz){var bC,by=bB.currentStyle&&bB.currentStyle[bz],e=bB.runtimeStyle&&bB.runtimeStyle[bz],bA=bB.style;if(!bg.test(by)&&br.test(by)){bC=bA.left;if(e){bB.runtimeStyle.left=bB.currentStyle.left}bA.left=bz==="fontSize"?"1em":(by||0);by=bA.pixelLeft+"px";bA.left=bC;if(e){bB.runtimeStyle.left=e}}return by===""?"auto":by}}ac=aK||aY;function u(bz,by,e){var bB=by==="width"?bz.offsetWidth:bz.offsetHeight,bA=by==="width"?ap:a4;if(bB>0){if(e!=="border"){c.each(bA,function(){if(!e){bB-=parseFloat(c.css(bz,"padding"+this))||0}if(e==="margin"){bB+=parseFloat(c.css(bz,e+this))||0}else{bB-=parseFloat(c.css(bz,"border"+this+"Width"))||0}})}return bB+"px"}bB=ac(bz,by,by);if(bB<0||bB==null){bB=bz.style[by]||0}bB=parseFloat(bB)||0;if(e){c.each(bA,function(){bB+=parseFloat(c.css(bz,"padding"+this))||0;if(e!=="padding"){bB+=parseFloat(c.css(bz,"border"+this+"Width"))||0}if(e==="margin"){bB+=parseFloat(c.css(bz,e+this))||0}})}return bB+"px"}if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(bz){var by=bz.offsetWidth,e=bz.offsetHeight;return(by===0&&e===0)||(!c.support.reliableHiddenOffsets&&(bz.style.display||c.css(bz,"display"))==="none")};c.expr.filters.visible=function(e){return !c.expr.filters.hidden(e)}}var n=/%20/g,ar=/\[\]$/,bw=/\r?\n/g,bu=/#.*$/,aF=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,a1=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aO=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,aR=/^(?:GET|HEAD)$/,d=/^\/\//,R=/\?/,a9=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,w=/^(?:select|textarea)/i,j=/\s+/,bv=/([?&])_=[^&]*/,P=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,G=c.fn.load,ad={},x={},aG,y;try{aG=bo.href}catch(ay){aG=ax.createElement("a");aG.href="";aG=aG.href}y=P.exec(aG.toLowerCase())||[];function g(e){return function(bB,bD){if(typeof bB!=="string"){bD=bB;bB="*"}if(c.isFunction(bD)){var bA=bB.toLowerCase().split(j),bz=0,bC=bA.length,by,bE,bF;for(;bz<bC;bz++){by=bA[bz];bF=/^\+/.test(by);if(bF){by=by.substr(1)||"*"}bE=e[by]=e[by]||[];bE[bF?"unshift":"push"](bD)}}}}function aW(by,bH,bC,bG,bE,bA){bE=bE||bH.dataTypes[0];bA=bA||{};bA[bE]=true;var bD=by[bE],bz=0,e=bD?bD.length:0,bB=(by===ad),bF;for(;bz<e&&(bB||!bF);bz++){bF=bD[bz](bH,bC,bG);if(typeof bF==="string"){if(!bB||bA[bF]){bF=Q}else{bH.dataTypes.unshift(bF);bF=aW(by,bH,bC,bG,bF,bA)}}}if((bB||!bF)&&!bA["*"]){bF=aW(by,bH,bC,bG,"*",bA)}return bF}c.fn.extend({load:function(bz,bC,bD){if(typeof bz!=="string"&&G){return G.apply(this,arguments)}else{if(!this.length){return this}}var bB=bz.indexOf(" ");if(bB>=0){var e=bz.slice(bB,bz.length);bz=bz.slice(0,bB)}var bA="GET";if(bC){if(c.isFunction(bC)){bD=bC;bC=Q}else{if(typeof bC==="object"){bC=c.param(bC,c.ajaxSettings.traditional);bA="POST"}}}var by=this;c.ajax({url:bz,type:bA,dataType:"html",data:bC,complete:function(bF,bE,bG){bG=bF.responseText;if(bF.isResolved()){bF.done(function(bH){bG=bH});by.html(e?c("<div>").append(bG.replace(a9,"")).find(e):bG)}if(bD){by.each(bD,[bG,bE,bF])}}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||w.test(this.nodeName)||a1.test(this.type))}).map(function(e,by){var bz=c(this).val();return bz==null?null:c.isArray(bz)?c.map(bz,function(bB,bA){return{name:by.name,value:bB.replace(bw,"\r\n")}}):{name:by.name,value:bz.replace(bw,"\r\n")}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,by){c.fn[by]=function(bz){return this.bind(by,bz)}});c.each(["get","post"],function(e,by){c[by]=function(bz,bB,bC,bA){if(c.isFunction(bB)){bA=bA||bC;bC=bB;bB=Q}return c.ajax({type:by,url:bz,data:bB,success:bC,dataType:bA})}});c.extend({getScript:function(e,by){return c.get(e,Q,by,"script")},getJSON:function(e,by,bz){return c.get(e,by,bz,"json")},ajaxSetup:function(bz,e){if(!e){e=bz;bz=c.extend(true,c.ajaxSettings,e)}else{c.extend(true,bz,c.ajaxSettings,e)}for(var by in {context:1,url:1}){if(by in e){bz[by]=e[by]}else{if(by in c.ajaxSettings){bz[by]=c.ajaxSettings[by]}}}return bz},ajaxSettings:{url:aG,isLocal:aO.test(y[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":bf.String,"text html":true,"text json":c.parseJSON,"text xml":c.parseXML}},ajaxPrefilter:g(ad),ajaxTransport:g(x),ajax:function(bC,bA){if(typeof bC==="object"){bA=bC;bC=Q}bA=bA||{};var bG=c.ajaxSetup({},bA),bV=bG.context||bG,bJ=bV!==bG&&(bV.nodeType||bV instanceof c)?c(bV):c.event,bU=c.Deferred(),bQ=c._Deferred(),bE=bG.statusCode||{},bF,bK={},bR={},bT,bB,bO,bH,bL,bD=0,bz,bN,bM={readyState:0,setRequestHeader:function(bW,bX){if(!bD){var e=bW.toLowerCase();bW=bR[e]=bR[e]||bW;bK[bW]=bX}return this},getAllResponseHeaders:function(){return bD===2?bT:null},getResponseHeader:function(bW){var e;if(bD===2){if(!bB){bB={};while((e=aF.exec(bT))){bB[e[1].toLowerCase()]=e[2]}}e=bB[bW.toLowerCase()]}return e===Q?null:e},overrideMimeType:function(e){if(!bD){bG.mimeType=e}return this},abort:function(e){e=e||"abort";if(bO){bO.abort(e)}bI(0,e);return this}};function bI(b1,bZ,b2,bY){if(bD===2){return}bD=2;if(bH){clearTimeout(bH)}bO=Q;bT=bY||"";bM.readyState=b1?4:0;var bW,b6,b5,b0=b2?bm(bG,bM,b2):Q,bX,b4;if(b1>=200&&b1<300||b1===304){if(bG.ifModified){if((bX=bM.getResponseHeader("Last-Modified"))){c.lastModified[bF]=bX}if((b4=bM.getResponseHeader("Etag"))){c.etag[bF]=b4}}if(b1===304){bZ="notmodified";bW=true}else{try{b6=L(bG,b0);bZ="success";bW=true}catch(b3){bZ="parsererror";b5=b3}}}else{b5=bZ;if(!bZ||b1){bZ="error";if(b1<0){b1=0}}}bM.status=b1;bM.statusText=bZ;if(bW){bU.resolveWith(bV,[b6,bZ,bM])}else{bU.rejectWith(bV,[bM,bZ,b5])}bM.statusCode(bE);bE=Q;if(bz){bJ.trigger("ajax"+(bW?"Success":"Error"),[bM,bG,bW?b6:b5])}bQ.resolveWith(bV,[bM,bZ]);if(bz){bJ.trigger("ajaxComplete",[bM,bG]);if(!(--c.active)){c.event.trigger("ajaxStop")}}}bU.promise(bM);bM.success=bM.done;bM.error=bM.fail;bM.complete=bQ.done;bM.statusCode=function(bW){if(bW){var e;if(bD<2){for(e in bW){bE[e]=[bE[e],bW[e]]}}else{e=bW[bM.status];bM.then(e,e)}}return this};bG.url=((bC||bG.url)+"").replace(bu,"").replace(d,y[1]+"//");bG.dataTypes=c.trim(bG.dataType||"*").toLowerCase().split(j);if(bG.crossDomain==null){bL=P.exec(bG.url.toLowerCase());bG.crossDomain=!!(bL&&(bL[1]!=y[1]||bL[2]!=y[2]||(bL[3]||(bL[1]==="http:"?80:443))!=(y[3]||(y[1]==="http:"?80:443))))}if(bG.data&&bG.processData&&typeof bG.data!=="string"){bG.data=c.param(bG.data,bG.traditional)}aW(ad,bG,bA,bM);if(bD===2){return false}bz=bG.global;bG.type=bG.type.toUpperCase();bG.hasContent=!aR.test(bG.type);if(bz&&c.active++===0){c.event.trigger("ajaxStart")}if(!bG.hasContent){if(bG.data){bG.url+=(R.test(bG.url)?"&":"?")+bG.data}bF=bG.url;if(bG.cache===false){var by=c.now(),bS=bG.url.replace(bv,"$1_="+by);bG.url=bS+((bS===bG.url)?(R.test(bG.url)?"&":"?")+"_="+by:"")}}if(bG.data&&bG.hasContent&&bG.contentType!==false||bA.contentType){bM.setRequestHeader("Content-Type",bG.contentType)}if(bG.ifModified){bF=bF||bG.url;if(c.lastModified[bF]){bM.setRequestHeader("If-Modified-Since",c.lastModified[bF])}if(c.etag[bF]){bM.setRequestHeader("If-None-Match",c.etag[bF])}}bM.setRequestHeader("Accept",bG.dataTypes[0]&&bG.accepts[bG.dataTypes[0]]?bG.accepts[bG.dataTypes[0]]+(bG.dataTypes[0]!=="*"?", */*; q=0.01":""):bG.accepts["*"]);for(bN in bG.headers){bM.setRequestHeader(bN,bG.headers[bN])}if(bG.beforeSend&&(bG.beforeSend.call(bV,bM,bG)===false||bD===2)){bM.abort();return false}for(bN in {success:1,error:1,complete:1}){bM[bN](bG[bN])}bO=aW(x,bG,bA,bM);if(!bO){bI(-1,"No Transport")}else{bM.readyState=1;if(bz){bJ.trigger("ajaxSend",[bM,bG])}if(bG.async&&bG.timeout>0){bH=setTimeout(function(){bM.abort("timeout")},bG.timeout)}try{bD=1;bO.send(bK,bI)}catch(bP){if(status<2){bI(-1,bP)}else{c.error(bP)}}}return bM},param:function(e,bz){var by=[],bB=function(bC,bD){bD=c.isFunction(bD)?bD():bD;by[by.length]=encodeURIComponent(bC)+"="+encodeURIComponent(bD)};if(bz===Q){bz=c.ajaxSettings.traditional}if(c.isArray(e)||(e.jquery&&!c.isPlainObject(e))){c.each(e,function(){bB(this.name,this.value)})}else{for(var bA in e){B(bA,e[bA],bz,bB)}}return by.join("&").replace(n,"+")}});function B(bz,bB,by,bA){if(c.isArray(bB)){c.each(bB,function(bD,bC){if(by||ar.test(bz)){bA(bz,bC)}else{B(bz+"["+(typeof bC==="object"||c.isArray(bC)?bD:"")+"]",bC,by,bA)}})}else{if(!by&&bB!=null&&typeof bB==="object"){for(var e in bB){B(bz+"["+e+"]",bB[e],by,bA)}}else{bA(bz,bB)}}}c.extend({active:0,lastModified:{},etag:{}});function bm(bG,bF,bC){var by=bG.contents,bE=bG.dataTypes,bz=bG.responseFields,bB,bD,bA,e;for(bD in bz){if(bD in bC){bF[bz[bD]]=bC[bD]}}while(bE[0]==="*"){bE.shift();if(bB===Q){bB=bG.mimeType||bF.getResponseHeader("content-type")}}if(bB){for(bD in by){if(by[bD]&&by[bD].test(bB)){bE.unshift(bD);break}}}if(bE[0] in bC){bA=bE[0]}else{for(bD in bC){if(!bE[0]||bG.converters[bD+" "+bE[0]]){bA=bD;break}if(!e){e=bD}}bA=bA||e}if(bA){if(bA!==bE[0]){bE.unshift(bA)}return bC[bA]}}function L(bK,bC){if(bK.dataFilter){bC=bK.dataFilter(bC,bK.dataType)}var bG=bK.dataTypes,bJ={},bD,bH,bz=bG.length,bE,bF=bG[0],bA,bB,bI,by,e;for(bD=1;bD<bz;bD++){if(bD===1){for(bH in bK.converters){if(typeof bH==="string"){bJ[bH.toLowerCase()]=bK.converters[bH]}}}bA=bF;bF=bG[bD];if(bF==="*"){bF=bA}else{if(bA!=="*"&&bA!==bF){bB=bA+" "+bF;bI=bJ[bB]||bJ["* "+bF];if(!bI){e=Q;for(by in bJ){bE=by.split(" ");if(bE[0]===bA||bE[0]==="*"){e=bJ[bE[1]+" "+bF];if(e){by=bJ[by];if(by===true){bI=e}else{if(e===true){bI=by}}break}}}}if(!(bI||e)){c.error("No conversion from "+bB.replace(" "," to "))}if(bI!==true){bC=bI?bI(bC):e(by(bC))}}}}return bC}var aE=c.now(),A=/(\=)\?(&|$)|\?\?/i;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return c.expando+"_"+(aE++)}});c.ajaxPrefilter("json jsonp",function(bG,bD,bF){var bA=bG.contentType==="application/x-www-form-urlencoded"&&(typeof bG.data==="string");if(bG.dataTypes[0]==="jsonp"||bG.jsonp!==false&&(A.test(bG.url)||bA&&A.test(bG.data))){var bE,bz=bG.jsonpCallback=c.isFunction(bG.jsonpCallback)?bG.jsonpCallback():bG.jsonpCallback,bC=bf[bz],e=bG.url,bB=bG.data,by="$1"+bz+"$2";if(bG.jsonp!==false){e=e.replace(A,by);if(bG.url===e){if(bA){bB=bB.replace(A,by)}if(bG.data===bB){e+=(/\?/.test(e)?"&":"?")+bG.jsonp+"="+bz}}}bG.url=e;bG.data=bB;bf[bz]=function(bH){bE=[bH]};bF.always(function(){bf[bz]=bC;if(bE&&c.isFunction(bC)){bf[bz](bE[0])}});bG.converters["script json"]=function(){if(!bE){c.error(bz+" was not called")}return bE[0]};bG.dataTypes[0]="json";return"script"}});c.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){c.globalEval(e);return e}}});c.ajaxPrefilter("script",function(e){if(e.cache===Q){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});c.ajaxTransport("script",function(bz){if(bz.crossDomain){var e,by=ax.head||ax.getElementsByTagName("head")[0]||ax.documentElement;return{send:function(bA,bB){e=ax.createElement("script");e.async="async";if(bz.scriptCharset){e.charset=bz.scriptCharset}e.src=bz.url;e.onload=e.onreadystatechange=function(bD,bC){if(bC||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(by&&e.parentNode){by.removeChild(e)}e=Q;if(!bC){bB(200,"success")}}};by.insertBefore(e,by.firstChild)},abort:function(){if(e){e.onload(0,1)}}}}});var H=bf.ActiveXObject?function(){for(var e in S){S[e](0,1)}}:false,E=0,S;function aN(){try{return new bf.XMLHttpRequest()}catch(by){}}function al(){try{return new bf.ActiveXObject("Microsoft.XMLHTTP")}catch(by){}}c.ajaxSettings.xhr=bf.ActiveXObject?function(){return !this.isLocal&&aN()||al()}:aN;(function(e){c.extend(c.support,{ajax:!!e,cors:!!e&&("withCredentials" in e)})})(c.ajaxSettings.xhr());if(c.support.ajax){c.ajaxTransport(function(e){if(!e.crossDomain||c.support.cors){var by;return{send:function(bE,bz){var bD=e.xhr(),bC,bB;if(e.username){bD.open(e.type,e.url,e.async,e.username,e.password)}else{bD.open(e.type,e.url,e.async)}if(e.xhrFields){for(bB in e.xhrFields){bD[bB]=e.xhrFields[bB]}}if(e.mimeType&&bD.overrideMimeType){bD.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!bE["X-Requested-With"]){bE["X-Requested-With"]="XMLHttpRequest"}try{for(bB in bE){bD.setRequestHeader(bB,bE[bB])}}catch(bA){}bD.send((e.hasContent&&e.data)||null);by=function(bN,bH){var bI,bG,bF,bL,bK;try{if(by&&(bH||bD.readyState===4)){by=Q;if(bC){bD.onreadystatechange=c.noop;if(H){delete S[bC]}}if(bH){if(bD.readyState!==4){bD.abort()}}else{bI=bD.status;bF=bD.getAllResponseHeaders();bL={};bK=bD.responseXML;if(bK&&bK.documentElement){bL.xml=bK}bL.text=bD.responseText;try{bG=bD.statusText}catch(bM){bG=""}if(!bI&&e.isLocal&&!e.crossDomain){bI=bL.text?200:404}else{if(bI===1223){bI=204}}}}}catch(bJ){if(!bH){bz(-1,bJ)}}if(bL){bz(bI,bG,bL,bF)}};if(!e.async||bD.readyState===4){by()}else{bC=++E;if(H){if(!S){S={};c(bf).unload(H)}S[bC]=by}bD.onreadystatechange=by}},abort:function(){if(by){by(0,1)}}}}})}var W={},bc,q,aD=/^(?:toggle|show|hide)$/,aT=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,a5,aJ=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],a7,X=bf.webkitRequestAnimationFrame||bf.mozRequestAnimationFrame||bf.oRequestAnimationFrame;c.fn.extend({show:function(bA,bD,bC){var bz,bB;if(bA||bA===0){return this.animate(a3("show",3),bA,bD,bC)}else{for(var by=0,e=this.length;by<e;by++){bz=this[by];if(bz.style){bB=bz.style.display;if(!c._data(bz,"olddisplay")&&bB==="none"){bB=bz.style.display=""}if(bB===""&&c.css(bz,"display")==="none"){c._data(bz,"olddisplay",D(bz.nodeName))}}}for(by=0;by<e;by++){bz=this[by];if(bz.style){bB=bz.style.display;if(bB===""||bB==="none"){bz.style.display=c._data(bz,"olddisplay")||""}}}return this}},hide:function(bz,bC,bB){if(bz||bz===0){return this.animate(a3("hide",3),bz,bC,bB)}else{for(var by=0,e=this.length;by<e;by++){if(this[by].style){var bA=c.css(this[by],"display");if(bA!=="none"&&!c._data(this[by],"olddisplay")){c._data(this[by],"olddisplay",bA)}}}for(by=0;by<e;by++){if(this[by].style){this[by].style.display="none"}}return this}},_toggle:c.fn.toggle,toggle:function(bz,by,bA){var e=typeof bz==="boolean";if(c.isFunction(bz)&&c.isFunction(by)){this._toggle.apply(this,arguments)}else{if(bz==null||e){this.each(function(){var bB=e?bz:c(this).is(":hidden");c(this)[bB?"show":"hide"]()})}else{this.animate(a3("toggle",3),bz,by,bA)}}return this},fadeTo:function(e,bA,bz,by){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:bA},e,bz,by)},animate:function(bB,by,bA,bz){var e=c.speed(by,bA,bz);if(c.isEmptyObject(bB)){return this.each(e.complete,[false])}bB=c.extend({},bB);return this[e.queue===false?"each":"queue"](function(){if(e.queue===false){c._mark(this)}var bF=c.extend({},e),bM=this.nodeType===1,bJ=bM&&c(this).is(":hidden"),bC,bG,bE,bL,bK,bI,bD,bH,bN;bF.animatedProperties={};for(bE in bB){bC=c.camelCase(bE);if(bE!==bC){bB[bC]=bB[bE];delete bB[bE]}bG=bB[bC];if(c.isArray(bG)){bF.animatedProperties[bC]=bG[1];bG=bB[bC]=bG[0]}else{bF.animatedProperties[bC]=bF.specialEasing&&bF.specialEasing[bC]||bF.easing||"swing"}if(bG==="hide"&&bJ||bG==="show"&&!bJ){return bF.complete.call(this)}if(bM&&(bC==="height"||bC==="width")){bF.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(c.css(this,"display")==="inline"&&c.css(this,"float")==="none"){if(!c.support.inlineBlockNeedsLayout){this.style.display="inline-block"}else{bL=D(this.nodeName);if(bL==="inline"){this.style.display="inline-block"}else{this.style.display="inline";this.style.zoom=1}}}}}if(bF.overflow!=null){this.style.overflow="hidden"}for(bE in bB){bK=new c.fx(this,bF,bE);bG=bB[bE];if(aD.test(bG)){bK[bG==="toggle"?bJ?"show":"hide":bG]()}else{bI=aT.exec(bG);bD=bK.cur();if(bI){bH=parseFloat(bI[2]);bN=bI[3]||(c.cssNumber[bE]?"":"px");if(bN!=="px"){c.style(this,bE,(bH||1)+bN);bD=((bH||1)/bK.cur())*bD;c.style(this,bE,bD+bN)}if(bI[1]){bH=((bI[1]==="-="?-1:1)*bH)+bD}bK.custom(bD,bH,bN)}else{bK.custom(bD,bG,"")}}}return true})},stop:function(by,e){if(by){this.queue([])}this.each(function(){var bA=c.timers,bz=bA.length;if(!e){c._unmark(true,this)}while(bz--){if(bA[bz].elem===this){if(e){bA[bz](true)}bA.splice(bz,1)}}});if(!e){this.dequeue()}return this}});function bj(){setTimeout(av,0);return(a7=c.now())}function av(){a7=Q}function a3(by,e){var bz={};c.each(aJ.concat.apply([],aJ.slice(0,e)),function(){bz[this]=by});return bz}c.each({slideDown:a3("show",1),slideUp:a3("hide",1),slideToggle:a3("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,by){c.fn[e]=function(bz,bB,bA){return this.animate(by,bz,bB,bA)}});c.extend({speed:function(bz,bA,by){var e=bz&&typeof bz==="object"?c.extend({},bz):{complete:by||!by&&bA||c.isFunction(bz)&&bz,duration:bz,easing:by&&bA||bA&&!c.isFunction(bA)&&bA};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(bB){if(c.isFunction(e.old)){e.old.call(this)}if(e.queue!==false){c.dequeue(this)}else{if(bB!==false){c._unmark(this)}}};return e},easing:{linear:function(bz,bA,e,by){return e+by*bz},swing:function(bz,bA,e,by){return((-Math.cos(bz*Math.PI)/2)+0.5)*by+e}},timers:[],fx:function(by,e,bz){this.options=e;this.elem=by;this.prop=bz;e.orig=e.orig||{}}});c.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var e,by=c.css(this.elem,this.prop);return isNaN(e=parseFloat(by))?!by||by==="auto"?0:by:e},custom:function(bD,bC,bA){var e=this,bz=c.fx,bB;this.startTime=a7||bj();this.start=bD;this.end=bC;this.unit=bA||this.unit||(c.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;function by(bE){return e.step(bE)}by.elem=this.elem;if(by()&&c.timers.push(by)&&!a5){if(X){a5=true;bB=function(){if(a5){X(bB);bz.tick()}};X(bB)}else{a5=setInterval(bz.tick,bz.interval)}}},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(bB){var bA=a7||bj(),e=true,bC=this.elem,by=this.options,bz,bE;if(bB||bA>=by.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();by.animatedProperties[this.prop]=true;for(bz in by.animatedProperties){if(by.animatedProperties[bz]!==true){e=false}}if(e){if(by.overflow!=null&&!c.support.shrinkWrapBlocks){c.each(["","X","Y"],function(bF,bG){bC.style["overflow"+bG]=by.overflow[bF]})}if(by.hide){c(bC).hide()}if(by.hide||by.show){for(var bD in by.animatedProperties){c.style(bC,bD,by.orig[bD])}}by.complete.call(bC)}return false}else{if(by.duration==Infinity){this.now=bA}else{bE=bA-this.startTime;this.state=bE/by.duration;this.pos=c.easing[by.animatedProperties[this.prop]](this.state,bE,0,1,by.duration);this.now=this.start+((this.end-this.start)*this.pos)}this.update()}return true}};c.extend(c.fx,{tick:function(){for(var by=c.timers,e=0;e<by.length;++e){if(!by[e]()){by.splice(e--,1)}}if(!by.length){c.fx.stop()}},interval:13,stop:function(){clearInterval(a5);a5=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){c.style(e.elem,"opacity",e.now)},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null){e.elem.style[e.prop]=(e.prop==="width"||e.prop==="height"?Math.max(0,e.now):e.now)+e.unit}else{e.elem[e.prop]=e.now}}}});if(c.expr&&c.expr.filters){c.expr.filters.animated=function(e){return c.grep(c.timers,function(by){return e===by.elem}).length}}function D(bA){if(!W[bA]){var e=ax.body,by=c("<"+bA+">").appendTo(e),bz=by.css("display");by.remove();if(bz==="none"||bz===""){if(!bc){bc=ax.createElement("iframe");bc.frameBorder=bc.width=bc.height=0}e.appendChild(bc);if(!q||!bc.createElement){q=(bc.contentWindow||bc.contentDocument).document;q.write((ax.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");q.close()}by=q.createElement(bA);q.body.appendChild(by);bz=c.css(by,"display");e.removeChild(bc)}W[bA]=bz}return W[bA]}var aa=/^t(?:able|d|h)$/i,ag=/^(?:body|html)$/i;if("getBoundingClientRect" in ax.documentElement){c.fn.offset=function(bL){var bB=this[0],bE;if(bL){return this.each(function(e){c.offset.setOffset(this,bL,e)})}if(!bB||!bB.ownerDocument){return null}if(bB===bB.ownerDocument.body){return c.offset.bodyOffset(bB)}try{bE=bB.getBoundingClientRect()}catch(bI){}var bK=bB.ownerDocument,bz=bK.documentElement;if(!bE||!c.contains(bz,bB)){return bE?{top:bE.top,left:bE.left}:{top:0,left:0}}var bF=bK.body,bG=aM(bK),bD=bz.clientTop||bF.clientTop||0,bH=bz.clientLeft||bF.clientLeft||0,by=bG.pageYOffset||c.support.boxModel&&bz.scrollTop||bF.scrollTop,bC=bG.pageXOffset||c.support.boxModel&&bz.scrollLeft||bF.scrollLeft,bJ=bE.top+by-bD,bA=bE.left+bC-bH;return{top:bJ,left:bA}}}else{c.fn.offset=function(bI){var bC=this[0];if(bI){return this.each(function(bJ){c.offset.setOffset(this,bI,bJ)})}if(!bC||!bC.ownerDocument){return null}if(bC===bC.ownerDocument.body){return c.offset.bodyOffset(bC)}c.offset.initialize();var bF,bz=bC.offsetParent,by=bC,bH=bC.ownerDocument,bA=bH.documentElement,bD=bH.body,bE=bH.defaultView,e=bE?bE.getComputedStyle(bC,null):bC.currentStyle,bG=bC.offsetTop,bB=bC.offsetLeft;while((bC=bC.parentNode)&&bC!==bD&&bC!==bA){if(c.offset.supportsFixedPosition&&e.position==="fixed"){break}bF=bE?bE.getComputedStyle(bC,null):bC.currentStyle;bG-=bC.scrollTop;bB-=bC.scrollLeft;if(bC===bz){bG+=bC.offsetTop;bB+=bC.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&aa.test(bC.nodeName))){bG+=parseFloat(bF.borderTopWidth)||0;bB+=parseFloat(bF.borderLeftWidth)||0}by=bz;bz=bC.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&bF.overflow!=="visible"){bG+=parseFloat(bF.borderTopWidth)||0;bB+=parseFloat(bF.borderLeftWidth)||0}e=bF}if(e.position==="relative"||e.position==="static"){bG+=bD.offsetTop;bB+=bD.offsetLeft}if(c.offset.supportsFixedPosition&&e.position==="fixed"){bG+=Math.max(bA.scrollTop,bD.scrollTop);bB+=Math.max(bA.scrollLeft,bD.scrollLeft)}return{top:bG,left:bB}}}c.offset={initialize:function(){var e=ax.body,by=ax.createElement("div"),bB,bD,bC,bE,bz=parseFloat(c.css(e,"marginTop"))||0,bA="<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>";c.extend(by.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});by.innerHTML=bA;e.insertBefore(by,e.firstChild);bB=by.firstChild;bD=bB.firstChild;bE=bB.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(bD.offsetTop!==5);this.doesAddBorderForTableAndCells=(bE.offsetTop===5);bD.style.position="fixed";bD.style.top="20px";this.supportsFixedPosition=(bD.offsetTop===20||bD.offsetTop===15);bD.style.position=bD.style.top="";bB.style.overflow="hidden";bB.style.position="relative";this.subtractsBorderForOverflowNotVisible=(bD.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(e.offsetTop!==bz);e.removeChild(by);c.offset.initialize=c.noop},bodyOffset:function(e){var bz=e.offsetTop,by=e.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){bz+=parseFloat(c.css(e,"marginTop"))||0;by+=parseFloat(c.css(e,"marginLeft"))||0}return{top:bz,left:by}},setOffset:function(bA,bJ,bD){var bE=c.css(bA,"position");if(bE==="static"){bA.style.position="relative"}var bC=c(bA),by=bC.offset(),e=c.css(bA,"top"),bH=c.css(bA,"left"),bI=(bE==="absolute"||bE==="fixed")&&c.inArray("auto",[e,bH])>-1,bG={},bF={},bz,bB;if(bI){bF=bC.position();bz=bF.top;bB=bF.left}else{bz=parseFloat(e)||0;bB=parseFloat(bH)||0}if(c.isFunction(bJ)){bJ=bJ.call(bA,bD,by)}if(bJ.top!=null){bG.top=(bJ.top-by.top)+bz}if(bJ.left!=null){bG.left=(bJ.left-by.left)+bB}if("using" in bJ){bJ.using.call(bA,bG)}else{bC.css(bG)}}};c.fn.extend({position:function(){if(!this[0]){return null}var bz=this[0],by=this.offsetParent(),bA=this.offset(),e=ag.test(by[0].nodeName)?{top:0,left:0}:by.offset();bA.top-=parseFloat(c.css(bz,"marginTop"))||0;bA.left-=parseFloat(c.css(bz,"marginLeft"))||0;e.top+=parseFloat(c.css(by[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(by[0],"borderLeftWidth"))||0;return{top:bA.top-e.top,left:bA.left-e.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||ax.body;while(e&&(!ag.test(e.nodeName)&&c.css(e,"position")==="static")){e=e.offsetParent}return e})}});c.each(["Left","Top"],function(by,e){var bz="scroll"+e;c.fn[bz]=function(bC){var bA,bB;if(bC===Q){bA=this[0];if(!bA){return null}bB=aM(bA);return bB?("pageXOffset" in bB)?bB[by?"pageYOffset":"pageXOffset"]:c.support.boxModel&&bB.document.documentElement[bz]||bB.document.body[bz]:bA[bz]}return this.each(function(){bB=aM(this);if(bB){bB.scrollTo(!by?bC:c(bB).scrollLeft(),by?bC:c(bB).scrollTop())}else{this[bz]=bC}})}});function aM(e){return c.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}c.each(["Height","Width"],function(by,e){var bz=e.toLowerCase();c.fn["inner"+e]=function(){var bA=this[0];return bA&&bA.style?parseFloat(c.css(bA,bz,"padding")):null};c.fn["outer"+e]=function(bB){var bA=this[0];return bA&&bA.style?parseFloat(c.css(bA,bz,bB?"margin":"border")):null};c.fn[bz]=function(bB){var bC=this[0];if(!bC){return bB==null?null:this}if(c.isFunction(bB)){return this.each(function(bG){var bF=c(this);bF[bz](bB.call(this,bG,bF[bz]()))})}if(c.isWindow(bC)){var bD=bC.document.documentElement["client"+e];return bC.document.compatMode==="CSS1Compat"&&bD||bC.document.body["client"+e]||bD}else{if(bC.nodeType===9){return Math.max(bC.documentElement["client"+e],bC.body["scroll"+e],bC.documentElement["scroll"+e],bC.body["offset"+e],bC.documentElement["offset"+e])}else{if(bB===Q){var bE=c.css(bC,bz),bA=parseFloat(bE);return c.isNaN(bA)?bE:bA}else{return this.css(bz,typeof bB==="string"?bB:bB+"px")}}}}});bf.jQuery=bf.$=c})(window);
/*
 * jQuery UI 1.8.1
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI
 */
jQuery.ui||(function(a){a.ui={version:"1.8.1",plugin:{add:function(d,e,g){var f=a.ui[d].prototype;for(var c in g){f.plugins[c]=f.plugins[c]||[];f.plugins[c].push([e,g[c]])}},call:function(c,e,d){var g=c.plugins[e];if(!g||!c.element[0].parentNode){return}for(var f=0;f<g.length;f++){if(c.options[g[f][0]]){g[f][1].apply(c.element,d)}}}},contains:function(d,c){return document.compareDocumentPosition?d.compareDocumentPosition(c)&16:d!==c&&d.contains(c)},hasScroll:function(f,d){if(a(f).css("overflow")=="hidden"){return false}var c=(d&&d=="left")?"scrollLeft":"scrollTop",e=false;if(f[c]>0){return true}f[c]=1;e=(f[c]>0);f[c]=0;return e},isOverAxis:function(d,c,e){return(d>c)&&(d<(c+e))},isOver:function(h,d,g,f,c,e){return a.ui.isOverAxis(h,g,c)&&a.ui.isOverAxis(d,f,e)},keyCode:{ALT:18,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}};a.fn.extend({_focus:a.fn.focus,focus:function(c,d){return typeof c==="number"?this.each(function(){var e=this;setTimeout(function(){a(e).focus();(d&&d.call(e))},c)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none")},scrollParent:function(){var c;if((a.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){c=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(a.curCSS(this,"position",1))&&(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}else{c=this.parents().filter(function(){return(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!c.length?a(document):c},zIndex:function(f){if(f!==undefined){return this.css("zIndex",f)}if(this.length){var d=a(this[0]),c,e;while(d.length&&d[0]!==document){c=d.css("position");if(c=="absolute"||c=="relative"||c=="fixed"){e=parseInt(d.css("zIndex"));if(!isNaN(e)&&e!=0){return e}}d=d.parent()}}return 0}});a.extend(a.expr[":"],{data:function(e,d,c){return !!a.data(e,c[3])},focusable:function(d){var e=d.nodeName.toLowerCase(),c=a.attr(d,"tabindex");return(/input|select|textarea|button|object/.test(e)?!d.disabled:"a"==e||"area"==e?d.href||!isNaN(c):!isNaN(c))&&!a(d)["area"==e?"parents":"closest"](":hidden").length},tabbable:function(d){var c=a.attr(d,"tabindex");return(isNaN(c)||c>=0)&&a(d).is(":focusable")}})})(jQuery);
/*
 * jQuery UI Widget 1.8.1
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(c){var a=c.fn.remove;c.fn.remove=function(d,e){return this.each(function(){if(!e){if(!d||c.filter(d,[this]).length){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")})}}return a.call(c(this),d,e)})};c.widget=function(e,g,d){var f=e.split(".")[0],j;e=e.split(".")[1];j=f+"-"+e;if(!d){d=g;g=c.Widget}c.expr[":"][j]=function(l){return !!c.data(l,e)};c[f]=c[f]||{};c[f][e]=function(l,n){if(arguments.length){this._createWidget(l,n)}};var h=new g();h.options=c.extend({},h.options);c[f][e].prototype=c.extend(true,h,{namespace:f,widgetName:e,widgetEventPrefix:c[f][e].prototype.widgetEventPrefix||e,widgetBaseClass:j},d);c.widget.bridge(e,c[f][e])};c.widget.bridge=function(e,d){c.fn[e]=function(h){var f=typeof h==="string",g=Array.prototype.slice.call(arguments,1),j=this;h=!f&&g.length?c.extend.apply(null,[true,h].concat(g)):h;if(f&&h.substring(0,1)==="_"){return j}if(f){this.each(function(){var l=c.data(this,e),n=l&&c.isFunction(l[h])?l[h].apply(l,g):l;if(n!==l&&n!==undefined){j=n;return false}})}else{this.each(function(){var l=c.data(this,e);if(l){if(h){l.option(h)}l._init()}else{c.data(this,e,new d(h,this))}})}return j}};c.Widget=function(d,e){if(arguments.length){this._createWidget(d,e)}};c.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(e,f){this.element=c(f).data(this.widgetName,this);this.options=c.extend(true,{},this.options,c.metadata&&c.metadata.get(f)[this.widgetName],e);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(f,g){var e=f,d=this;if(arguments.length===0){return c.extend({},d.options)}if(typeof f==="string"){if(g===undefined){return this.options[f]}e={};e[f]=g}c.each(e,function(h,j){d._setOption(h,j)});return d},_setOption:function(d,e){this.options[d]=e;if(d==="disabled"){this.widget()[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",e)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(e,f,g){var j=this.options[e];f=c.Event(f);f.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase();g=g||{};if(f.originalEvent){for(var d=c.event.props.length,h;d;){h=c.event.props[--d];f[h]=f.originalEvent[h]}}this.element.trigger(f,g);return !(c.isFunction(j)&&j.call(this.element[0],f,g)===false||f.isDefaultPrevented())}}})(jQuery);
/*
 * jQuery UI Mouse 1.8.1
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.bind("mousedown."+this.widgetName,function(d){return c._mouseDown(d)}).bind("click."+this.widgetName,function(d){if(c._preventClickEvent){c._preventClickEvent=false;d.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(e){e.originalEvent=e.originalEvent||{};if(e.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(e));this._mouseDownEvent=e;var d=this,f=(e.which==1),c=(typeof this.options.cancel=="string"?a(e.target).parents().add(e.target).filter(this.options.cancel).length:false);if(!f||c||!this._mouseCapture(e)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){this._mouseStarted=(this._mouseStart(e)!==false);if(!this._mouseStarted){e.preventDefault();return true}}this._mouseMoveDelegate=function(g){return d._mouseMove(g)};this._mouseUpDelegate=function(g){return d._mouseUp(g)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(a.browser.safari||e.preventDefault());e.originalEvent.mouseHandled=true;return true},_mouseMove:function(c){if(a.browser.msie&&!c.button){return this._mouseUp(c)}if(this._mouseStarted){this._mouseDrag(c);return c.preventDefault()}if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,c)!==false);(this._mouseStarted?this._mouseDrag(c):this._mouseUp(c))}return !this._mouseStarted},_mouseUp:function(c){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(c.target==this._mouseDownEvent.target);this._mouseStop(c)}return false},_mouseDistanceMet:function(c){return(Math.max(Math.abs(this._mouseDownEvent.pageX-c.pageX),Math.abs(this._mouseDownEvent.pageY-c.pageY))>=this.options.distance)},_mouseDelayMet:function(c){return this.mouseDelayMet},_mouseStart:function(c){},_mouseDrag:function(c){},_mouseStop:function(c){},_mouseCapture:function(c){return true}})})(jQuery);(function(g){g.ui=g.ui||{};var d=/left|center|right/,f="center",e=/top|center|bottom/,h="center",a=g.fn.position,c=g.fn.offset;g.fn.position=function(l){if(!l||!l.of){return a.apply(this,arguments)}l=g.extend({},l);var p=g(l.of),r=(l.collision||"flip").split(" "),q=l.offset?l.offset.split(" "):[0,0],o,j,n;if(l.of.nodeType===9){o=p.width();j=p.height();n={top:0,left:0}}else{if(l.of.scrollTo&&l.of.document){o=p.width();j=p.height();n={top:p.scrollTop(),left:p.scrollLeft()}}else{if(l.of.preventDefault){l.at="left top";o=j=0;n={top:l.of.pageY,left:l.of.pageX}}else{o=p.outerWidth();j=p.outerHeight();n=p.offset()}}}g.each(["my","at"],function(){var u=(l[this]||"").split(" ");if(u.length===1){u=d.test(u[0])?u.concat([h]):e.test(u[0])?[f].concat(u):[f,h]}u[0]=d.test(u[0])?u[0]:f;u[1]=e.test(u[1])?u[1]:h;l[this]=u});if(r.length===1){r[1]=r[0]}q[0]=parseInt(q[0],10)||0;if(q.length===1){q[1]=q[0]}q[1]=parseInt(q[1],10)||0;if(l.at[0]==="right"){n.left+=o}else{if(l.at[0]===f){n.left+=o/2}}if(l.at[1]==="bottom"){n.top+=j}else{if(l.at[1]===h){n.top+=j/2}}n.left+=q[0];n.top+=q[1];return this.each(function(){var x=g(this),w=x.outerWidth(),v=x.outerHeight(),u=g.extend({},n);if(l.my[0]==="right"){u.left-=w}else{if(l.my[0]===f){u.left-=w/2}}if(l.my[1]==="bottom"){u.top-=v}else{if(l.my[1]===h){u.top-=v/2}}u.left=parseInt(u.left);u.top=parseInt(u.top);g.each(["left","top"],function(z,y){if(g.ui.position[r[z]]){g.ui.position[r[z]][y](u,{targetWidth:o,targetHeight:j,elemWidth:w,elemHeight:v,offset:q,my:l.my,at:l.at})}});if(g.fn.bgiframe){x.bgiframe()}x.offset(g.extend(u,{using:l.using}))})};g.ui.position={fit:{left:function(j,l){var o=g(window),n=j.left+l.elemWidth-o.width()-o.scrollLeft();j.left=n>0?j.left-n:Math.max(0,j.left)},top:function(j,l){var o=g(window),n=j.top+l.elemHeight-o.height()-o.scrollTop();j.top=n>0?j.top-n:Math.max(0,j.top)}},flip:{left:function(l,n){if(n.at[0]==="center"){return}var p=g(window),o=l.left+n.elemWidth-p.width()-p.scrollLeft(),j=n.my[0]==="left"?-n.elemWidth:n.my[0]==="right"?n.elemWidth:0,q=-2*n.offset[0];l.left+=l.left<0?j+n.targetWidth+q:o>0?j-n.targetWidth+q:0},top:function(l,o){if(o.at[1]==="center"){return}var q=g(window),p=l.top+o.elemHeight-q.height()-q.scrollTop(),j=o.my[1]==="top"?-o.elemHeight:o.my[1]==="bottom"?o.elemHeight:0,n=o.at[1]==="top"?o.targetHeight:-o.targetHeight,r=-2*o.offset[1];l.top+=l.top<0?j+o.targetHeight+r:p>0?j+n+r:0}}};if(!g.offset.setOffset){g.offset.setOffset=function(p,l){if(/static/.test(g.curCSS(p,"position"))){p.style.position="relative"}var o=g(p),r=o.offset(),j=parseInt(g.curCSS(p,"top",true),10)||0,q=parseInt(g.curCSS(p,"left",true),10)||0,n={top:(l.top-r.top)+j,left:(l.left-r.left)+q};if("using" in l){l.using.call(p,n)}else{o.css(n)}};g.fn.offset=function(j){var l=this[0];if(!l||!l.ownerDocument){return null}if(j){return this.each(function(){g.offset.setOffset(this,j)})}return c.call(this)}}}(jQuery));(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,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},_create: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();return this},_mouseCapture:function(c){var d=this.options;if(this.helper||d.disabled||a(c.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(c);if(!this.handle){return false}return true},_mouseStart:function(c){var d=this.options;this.helper=this._createHelper(c);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;(d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt));if(d.containment){this._setContainment()}if(this._trigger("start",c)===false){this._clear();return false}this._cacheHelperProportions();if(a.ui.ddmanager&&!d.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,c)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(c,true);return true},_mouseDrag:function(c,e){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!e){var d=this._uiHash();if(this._trigger("drag",c,d)===false){this._mouseUp({});return false}this.position=d.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(a.ui.ddmanager){a.ui.ddmanager.drag(this,c)}return false},_mouseStop:function(d){var e=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){e=a.ui.ddmanager.drop(this,d)}if(this.dropped){e=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode){return false}if((this.options.revert=="invalid"&&!e)||(this.options.revert=="valid"&&e)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,e))){var c=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(c._trigger("stop",d)!==false){c._clear()}})}else{if(this._trigger("stop",d)!==false){this._clear()}}return false},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({})}else{this._clear()}return this},_getHandle:function(c){var d=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==c.target){d=true}});return d},_createHelper:function(d){var e=this.options;var c=a.isFunction(e.helper)?a(e.helper.apply(this.element[0],[d])):(e.helper=="clone"?this.element.clone():this.element);if(!c.parents("body").length){c.appendTo((e.appendTo=="parent"?this.element[0].parentNode:e.appendTo))}if(c[0]!=this.element[0]&&!(/(fixed|absolute)/).test(c.css("position"))){c.css("position","absolute")}return c},_adjustOffsetFromHelper:function(c){if(typeof c=="string"){c=c.split(" ")}if(a.isArray(c)){c={left:+c[0],top:+c[1]||0}}if("left" in c){this.offset.click.left=c.left+this.margins.left}if("right" in c){this.offset.click.left=this.helperProportions.width-c.right+this.margins.left}if("top" in c){this.offset.click.top=c.top+this.margins.top}if("bottom" in c){this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){c={top:0,left:0}}return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.element.position();return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.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 f=this.options;if(f.containment=="parent"){f.containment=this.helper[0].parentNode}if(f.containment=="document"||f.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(f.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(f.containment)&&f.containment.constructor!=Array){var d=a(f.containment)[0];if(!d){return}var e=a(f.containment).offset();var c=(a(d).css("overflow")!="hidden");this.containment=[e.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,e.left+(c?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(c?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(f.containment.constructor==Array){this.containment=f.containment}}},_convertPositionTo:function(g,j){if(!j){j=this.position}var e=g=="absolute"?1:-1;var f=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=(/(html|body)/i).test(c[0].tagName);return{top:(j.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(h?0:c.scrollTop()))*e)),left:(j.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:c.scrollLeft())*e))}},_generatePosition:function(f){var j=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=(/(html|body)/i).test(c[0].tagName);var e=f.pageX;var d=f.pageY;if(this.originalPosition){if(this.containment){if(f.pageX-this.offset.click.left<this.containment[0]){e=this.containment[0]+this.offset.click.left}if(f.pageY-this.offset.click.top<this.containment[1]){d=this.containment[1]+this.offset.click.top}if(f.pageX-this.offset.click.left>this.containment[2]){e=this.containment[2]+this.offset.click.left}if(f.pageY-this.offset.click.top>this.containment[3]){d=this.containment[3]+this.offset.click.top}}if(j.grid){var h=this.originalPageY+Math.round((d-this.originalPageY)/j.grid[1])*j.grid[1];d=this.containment?(!(h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3])?h:(!(h-this.offset.click.top<this.containment[1])?h-j.grid[1]:h+j.grid[1])):h;var g=this.originalPageX+Math.round((e-this.originalPageX)/j.grid[0])*j.grid[0];e=this.containment?(!(g-this.offset.click.left<this.containment[0]||g-this.offset.click.left>this.containment[2])?g:(!(g-this.offset.click.left<this.containment[0])?g-j.grid[0]:g+j.grid[0])):g}}return{top:(d-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(l?0:c.scrollTop())))),left:(e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:c.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(c,d,e){e=e||this._uiHash();a.ui.plugin.call(this,c,[d,e]);if(c=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.Widget.prototype._trigger.call(this,c,d,e)},plugins:{},_uiHash:function(c){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.1"});a.ui.plugin.add("draggable","connectToSortable",{start:function(d,f){var e=a(this).data("draggable"),g=e.options,c=a.extend({},f,{item:e.element});e.sortables=[];a(g.connectToSortable).each(function(){var h=a.data(this,"sortable");if(h&&!h.options.disabled){e.sortables.push({instance:h,shouldRevert:h.options.revert});h._refreshItems();h._trigger("activate",d,c)}})},stop:function(d,f){var e=a(this).data("draggable"),c=a.extend({},f,{item:e.element});a.each(e.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;e.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(d);this.instance.options.helper=this.instance.options._helper;if(e.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",d,c)}})},drag:function(d,g){var f=a(this).data("draggable"),c=this;var e=function(l){var u=this.offset.click.top,r=this.offset.click.left;var h=this.positionAbs.top,p=this.positionAbs.left;var n=l.height,q=l.width;var v=l.top,j=l.left;return a.ui.isOver(h+u,p+r,v,j,n,q)};a.each(f.sortables,function(h){this.instance.positionAbs=f.positionAbs;this.instance.helperProportions=f.helperProportions;this.instance.offset.click=f.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(c).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return g.helper[0]};d.target=this.instance.currentItem[0];this.instance._mouseCapture(d,true);this.instance._mouseStart(d,true,true);this.instance.offset.click.top=f.offset.click.top;this.instance.offset.click.left=f.offset.click.left;this.instance.offset.parent.left-=f.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=f.offset.parent.top-this.instance.offset.parent.top;f._trigger("toSortable",d);f.dropped=this.instance.element;f.currentItem=f.element;this.instance.fromOutside=f}if(this.instance.currentItem){this.instance._mouseDrag(d)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",d,this.instance._uiHash(this.instance));this.instance._mouseStop(d,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}f._trigger("fromSortable",d);f.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(d,e){var c=a("body"),f=a(this).data("draggable").options;if(c.css("cursor")){f._cursor=c.css("cursor")}c.css("cursor",f.cursor)},stop:function(c,d){var e=a(this).data("draggable").options;if(e._cursor){a("body").css("cursor",e._cursor)}}});a.ui.plugin.add("draggable","iframeFix",{start:function(c,d){var e=a(this).data("draggable").options;a(e.iframeFix===true?"iframe":e.iframeFix).each(function(){a('<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(a(this).offset()).appendTo("body")})},stop:function(c,d){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(d,e){var c=a(e.helper),f=a(this).data("draggable").options;if(c.css("opacity")){f._opacity=c.css("opacity")}c.css("opacity",f.opacity)},stop:function(c,d){var e=a(this).data("draggable").options;if(e._opacity){a(d.helper).css("opacity",e._opacity)}}});a.ui.plugin.add("draggable","scroll",{start:function(d,e){var c=a(this).data("draggable");if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){c.overflowOffset=c.scrollParent.offset()}},drag:function(e,f){var d=a(this).data("draggable"),g=d.options,c=false;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!g.axis||g.axis!="x"){if((d.overflowOffset.top+d.scrollParent[0].offsetHeight)-e.pageY<g.scrollSensitivity){d.scrollParent[0].scrollTop=c=d.scrollParent[0].scrollTop+g.scrollSpeed}else{if(e.pageY-d.overflowOffset.top<g.scrollSensitivity){d.scrollParent[0].scrollTop=c=d.scrollParent[0].scrollTop-g.scrollSpeed}}}if(!g.axis||g.axis!="y"){if((d.overflowOffset.left+d.scrollParent[0].offsetWidth)-e.pageX<g.scrollSensitivity){d.scrollParent[0].scrollLeft=c=d.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(e.pageX-d.overflowOffset.left<g.scrollSensitivity){d.scrollParent[0].scrollLeft=c=d.scrollParent[0].scrollLeft-g.scrollSpeed}}}}else{if(!g.axis||g.axis!="x"){if(e.pageY-a(document).scrollTop()<g.scrollSensitivity){c=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed)}else{if(a(window).height()-(e.pageY-a(document).scrollTop())<g.scrollSensitivity){c=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)}}}if(!g.axis||g.axis!="y"){if(e.pageX-a(document).scrollLeft()<g.scrollSensitivity){c=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed)}else{if(a(window).width()-(e.pageX-a(document).scrollLeft())<g.scrollSensitivity){c=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)}}}}if(c!==false&&a.ui.ddmanager&&!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(d,e)}}});a.ui.plugin.add("draggable","snap",{start:function(d,e){var c=a(this).data("draggable"),f=c.options;c.snapElements=[];a(f.snap.constructor!=String?(f.snap.items||":data(draggable)"):f.snap).each(function(){var h=a(this);var g=h.offset();if(this!=c.element[0]){c.snapElements.push({item:this,width:h.outerWidth(),height:h.outerHeight(),top:g.top,left:g.left})}})},drag:function(x,u){var g=a(this).data("draggable"),v=g.options;var B=v.snapTolerance;var A=u.offset.left,z=A+g.helperProportions.width,f=u.offset.top,e=f+g.helperProportions.height;for(var y=g.snapElements.length-1;y>=0;y--){var w=g.snapElements[y].left,q=w+g.snapElements[y].width,p=g.snapElements[y].top,D=p+g.snapElements[y].height;if(!((w-B<A&&A<q+B&&p-B<f&&f<D+B)||(w-B<A&&A<q+B&&p-B<e&&e<D+B)||(w-B<z&&z<q+B&&p-B<f&&f<D+B)||(w-B<z&&z<q+B&&p-B<e&&e<D+B))){if(g.snapElements[y].snapping){(g.options.snap.release&&g.options.snap.release.call(g.element,x,a.extend(g._uiHash(),{snapItem:g.snapElements[y].item})))}g.snapElements[y].snapping=false;continue}if(v.snapMode!="inner"){var c=Math.abs(p-e)<=B;var C=Math.abs(D-f)<=B;var j=Math.abs(w-z)<=B;var n=Math.abs(q-A)<=B;if(c){u.position.top=g._convertPositionTo("relative",{top:p-g.helperProportions.height,left:0}).top-g.margins.top}if(C){u.position.top=g._convertPositionTo("relative",{top:D,left:0}).top-g.margins.top}if(j){u.position.left=g._convertPositionTo("relative",{top:0,left:w-g.helperProportions.width}).left-g.margins.left}if(n){u.position.left=g._convertPositionTo("relative",{top:0,left:q}).left-g.margins.left}}var h=(c||C||j||n);if(v.snapMode!="outer"){var c=Math.abs(p-f)<=B;var C=Math.abs(D-e)<=B;var j=Math.abs(w-A)<=B;var n=Math.abs(q-z)<=B;if(c){u.position.top=g._convertPositionTo("relative",{top:p,left:0}).top-g.margins.top}if(C){u.position.top=g._convertPositionTo("relative",{top:D-g.helperProportions.height,left:0}).top-g.margins.top}if(j){u.position.left=g._convertPositionTo("relative",{top:0,left:w}).left-g.margins.left}if(n){u.position.left=g._convertPositionTo("relative",{top:0,left:q-g.helperProportions.width}).left-g.margins.left}}if(!g.snapElements[y].snapping&&(c||C||j||n||h)){(g.options.snap.snap&&g.options.snap.snap.call(g.element,x,a.extend(g._uiHash(),{snapItem:g.snapElements[y].item})))}g.snapElements[y].snapping=(c||C||j||n||h)}}});a.ui.plugin.add("draggable","stack",{start:function(d,e){var g=a(this).data("draggable").options;var f=a.makeArray(a(g.stack)).sort(function(j,h){return(parseInt(a(j).css("zIndex"),10)||0)-(parseInt(a(h).css("zIndex"),10)||0)});if(!f.length){return}var c=parseInt(f[0].style.zIndex)||0;a(f).each(function(h){this.style.zIndex=c+h});this[0].style.zIndex=c+f.length}});a.ui.plugin.add("draggable","zIndex",{start:function(d,e){var c=a(e.helper),f=a(this).data("draggable").options;if(c.css("zIndex")){f._zIndex=c.css("zIndex")}c.css("zIndex",f.zIndex)},stop:function(c,d){var e=a(this).data("draggable").options;if(e._zIndex){a(d.helper).css("zIndex",e._zIndex)}}})})(jQuery);(function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var d=this.options,c=d.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(c)?c:function(e){return e.is(c)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[d.scope]=a.ui.ddmanager.droppables[d.scope]||[];a.ui.ddmanager.droppables[d.scope].push(this);(d.addClasses&&this.element.addClass("ui-droppable"))},destroy:function(){var c=a.ui.ddmanager.droppables[this.options.scope];for(var d=0;d<c.length;d++){if(c[d]==this){c.splice(d,1)}}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(c,d){if(c=="accept"){this.accept=a.isFunction(d)?d:function(e){return e.is(d)}}a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(d){var c=a.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}(c&&this._trigger("activate",d,this.ui(c)))},_deactivate:function(d){var c=a.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}(c&&this._trigger("deactivate",d,this.ui(c)))},_over:function(d){var c=a.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0]){return}if(this.accept.call(this.element[0],(c.currentItem||c.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger("over",d,this.ui(c))}},_out:function(d){var c=a.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0]){return}if(this.accept.call(this.element[0],(c.currentItem||c.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("out",d,this.ui(c))}},_drop:function(d,e){var c=e||a.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0]){return false}var f=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var g=a.data(this,"droppable");if(g.options.greedy&&!g.options.disabled&&g.options.scope==c.options.scope&&g.accept.call(g.element[0],(c.currentItem||c.element))&&a.ui.intersect(c,a.extend(g,{offset:g.element.offset()}),g.options.tolerance)){f=true;return false}});if(f){return false}if(this.accept.call(this.element[0],(c.currentItem||c.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("drop",d,this.ui(c));return this.element}return false},ui:function(d){return{draggable:(d.currentItem||d.element),helper:d.helper,position:d.position,offset:d.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.1"});a.ui.intersect=function(w,n,u){if(!n.offset){return false}var e=(w.positionAbs||w.position.absolute).left,d=e+w.helperProportions.width,q=(w.positionAbs||w.position.absolute).top,p=q+w.helperProportions.height;var g=n.offset.left,c=g+n.proportions.width,v=n.offset.top,o=v+n.proportions.height;switch(u){case"fit":return(g<e&&d<c&&v<q&&p<o);break;case"intersect":return(g<e+(w.helperProportions.width/2)&&d-(w.helperProportions.width/2)<c&&v<q+(w.helperProportions.height/2)&&p-(w.helperProportions.height/2)<o);break;case"pointer":var h=((w.positionAbs||w.position.absolute).left+(w.clickOffset||w.offset.click).left),j=((w.positionAbs||w.position.absolute).top+(w.clickOffset||w.offset.click).top),f=a.ui.isOver(j,h,v,g,n.proportions.height,n.proportions.width);return f;break;case"touch":return((q>=v&&q<=o)||(p>=v&&p<=o)||(q<v&&p>o))&&((e>=g&&e<=c)||(d>=g&&d<=c)||(e<g&&d>c));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(f,h){var c=a.ui.ddmanager.droppables[f.options.scope]||[];var g=h?h.type:null;var l=(f.currentItem||f.element).find(":data(droppable)").andSelf();droppablesLoop:for(var e=0;e<c.length;e++){if(c[e].options.disabled||(f&&!c[e].accept.call(c[e].element[0],(f.currentItem||f.element)))){continue}for(var d=0;d<l.length;d++){if(l[d]==c[e].element[0]){c[e].proportions.height=0;continue droppablesLoop}}c[e].visible=c[e].element.css("display")!="none";if(!c[e].visible){continue}c[e].offset=c[e].element.offset();c[e].proportions={width:c[e].element[0].offsetWidth,height:c[e].element[0].offsetHeight};if(g=="mousedown"){c[e]._activate.call(c[e],h)}}},drop:function(c,d){var e=false;a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(!this.options){return}if(!this.options.disabled&&this.visible&&a.ui.intersect(c,this,this.options.tolerance)){e=e||this._drop.call(this,d)}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],(c.currentItem||c.element))){this.isout=1;this.isover=0;this._deactivate.call(this,d)}});return e},drag:function(c,d){if(c.options.refreshPositions){a.ui.ddmanager.prepareOffsets(c,d)}a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var f=a.ui.intersect(c,this,this.options.tolerance);var h=!f&&this.isover==1?"isout":(f&&this.isover==0?"isover":null);if(!h){return}var g;if(this.options.greedy){var e=this.element.parents(":data(droppable):eq(0)");if(e.length){g=a.data(e[0],"droppable");g.greedyChild=(h=="isover"?1:0)}}if(g&&h=="isover"){g.isover=0;g.isout=1;g._out.call(g,d)}this[h]=1;this[h=="isout"?"isover":"isout"]=0;this[h=="isover"?"_over":"_out"].call(this,d);if(g&&h=="isout"){g.isout=0;g.isover=1;g._over.call(g,d)}})}}})(jQuery);(function(d){d.widget("ui.resizable",d.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000},_create:function(){var f=this,l=this.options;this.element.addClass("ui-resizable");d.extend(this,{_aspectRatio:!!(l.aspectRatio),aspectRatio:l.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:l.helper||l.ghost||l.animate?l.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css("position"))&&d.browser.opera){this.element.css({position:"relative",top:"auto",left:"auto"})}this.element.wrap(d('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=l.handles||(!d(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var p=this.handles.split(",");this.handles={};for(var g=0;g<p.length;g++){var j=d.trim(p[g]),e="ui-resizable-"+j;var h=d('<div class="ui-resizable-handle '+e+'"></div>');if(/sw|se|ne|nw/.test(j)){h.css({zIndex:++l.zIndex})}if("se"==j){h.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[j]=".ui-resizable-"+j;this.element.append(h)}}this._renderAxis=function(u){u=u||this.element;for(var o in this.handles){if(this.handles[o].constructor==String){this.handles[o]=d(this.handles[o],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var q=d(this.handles[o],this.element),r=0;r=/sw|ne|nw|se|n|s/.test(o)?q.outerHeight():q.outerWidth();var n=["padding",/ne|nw|n/.test(o)?"Top":/se|sw|s/.test(o)?"Bottom":/^e$/.test(o)?"Right":"Left"].join("");u.css(n,r);this._proportionallyResize()}if(!d(this.handles[o]).length){continue}}};this._renderAxis(this.element);this._handles=d(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!f.resizing){if(this.className){var n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}f.axis=n&&n[1]?n[1]:"se"}});if(l.autoHide){this._handles.hide();d(this.element).addClass("ui-resizable-autohide").hover(function(){d(this).removeClass("ui-resizable-autohide");f._handles.show()},function(){if(!f.resizing){d(this).addClass("ui-resizable-autohide");f._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(g){d(g).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){e(this.element);var f=this.element;f.after(this.originalElement.css({position:f.css("position"),width:f.outerWidth(),height:f.outerHeight(),top:f.css("top"),left:f.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);e(this.originalElement);return this},_mouseCapture:function(f){var g=false;for(var e in this.handles){if(d(this.handles[e])[0]==f.target){g=true}}return !this.options.disabled&&g},_mouseStart:function(g){var l=this.options,f=this.element.position(),e=this.element;this.resizing=true;this.documentScroll={top:d(document).scrollTop(),left:d(document).scrollLeft()};if(e.is(".ui-draggable")||(/absolute/).test(e.css("position"))){e.css({position:"absolute",top:f.top,left:f.left})}if(d.browser.opera&&(/relative/).test(e.css("position"))){e.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var n=c(this.helper.css("left")),h=c(this.helper.css("top"));if(l.containment){n+=d(l.containment).scrollLeft()||0;h+=d(l.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:n,top:h};this.size=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalSize=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalPosition={left:n,top:h};this.sizeDiff={width:e.outerWidth()-e.width(),height:e.outerHeight()-e.height()};this.originalMousePosition={left:g.pageX,top:g.pageY};this.aspectRatio=(typeof l.aspectRatio=="number")?l.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var j=d(".ui-resizable-"+this.axis).css("cursor");d("body").css("cursor",j=="auto"?this.axis+"-resize":j);e.addClass("ui-resizable-resizing");this._propagate("start",g);return true},_mouseDrag:function(e){var h=this.helper,g=this.options,q={},v=this,l=this.originalMousePosition,r=this.axis;var w=(e.pageX-l.left)||0,u=(e.pageY-l.top)||0;var j=this._change[r];if(!j){return false}var p=j.apply(this,[e,w,u]),n=d.browser.msie&&d.browser.version<7,f=this.sizeDiff;if(this._aspectRatio||e.shiftKey){p=this._updateRatio(p,e)}p=this._respectSize(p,e);this._propagate("resize",e);h.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(p);this._trigger("resize",e,this.ui());return false},_mouseStop:function(h){this.resizing=false;var j=this.options,q=this;if(this._helper){var g=this._proportionallyResizeElements,e=g.length&&(/textarea/i).test(g[0].nodeName),f=e&&d.ui.hasScroll(g[0],"left")?0:q.sizeDiff.height,n=e?0:q.sizeDiff.width;var r={width:(q.size.width-n),height:(q.size.height-f)},l=(parseInt(q.element.css("left"),10)+(q.position.left-q.originalPosition.left))||null,p=(parseInt(q.element.css("top"),10)+(q.position.top-q.originalPosition.top))||null;if(!j.animate){this.element.css(d.extend(r,{top:p,left:l}))}q.helper.height(q.size.height);q.helper.width(q.size.width);if(this._helper&&!j.animate){this._proportionallyResize()}}d("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",h);if(this._helper){this.helper.remove()}return false},_updateCache:function(e){var f=this.options;this.offset=this.helper.offset();if(a(e.left)){this.position.left=e.left}if(a(e.top)){this.position.top=e.top}if(a(e.height)){this.size.height=e.height}if(a(e.width)){this.size.width=e.width}},_updateRatio:function(h,g){var j=this.options,l=this.position,f=this.size,e=this.axis;if(h.height){h.width=(f.height*this.aspectRatio)}else{if(h.width){h.height=(f.width/this.aspectRatio)}}if(e=="sw"){h.left=l.left+(f.width-h.width);h.top=null}if(e=="nw"){h.top=l.top+(f.height-h.height);h.left=l.left+(f.width-h.width)}return h},_respectSize:function(p,g){var l=this.helper,j=this.options,w=this._aspectRatio||g.shiftKey,v=this.axis,y=a(p.width)&&j.maxWidth&&(j.maxWidth<p.width),q=a(p.height)&&j.maxHeight&&(j.maxHeight<p.height),h=a(p.width)&&j.minWidth&&(j.minWidth>p.width),x=a(p.height)&&j.minHeight&&(j.minHeight>p.height);if(h){p.width=j.minWidth}if(x){p.height=j.minHeight}if(y){p.width=j.maxWidth}if(q){p.height=j.maxHeight}var f=this.originalPosition.left+this.originalSize.width,u=this.position.top+this.size.height;var n=/sw|nw|w/.test(v),e=/nw|ne|n/.test(v);if(h&&n){p.left=f-j.minWidth}if(y&&n){p.left=f-j.maxWidth}if(x&&e){p.top=u-j.minHeight}if(q&&e){p.top=u-j.maxHeight}var r=!p.width&&!p.height;if(r&&!p.left&&p.top){p.top=null}else{if(r&&!p.top&&p.left){p.left=null}}return p},_proportionallyResize:function(){var l=this.options;if(!this._proportionallyResizeElements.length){return}var g=this.helper||this.element;for(var f=0;f<this._proportionallyResizeElements.length;f++){var h=this._proportionallyResizeElements[f];if(!this.borderDif){var e=[h.css("borderTopWidth"),h.css("borderRightWidth"),h.css("borderBottomWidth"),h.css("borderLeftWidth")],j=[h.css("paddingTop"),h.css("paddingRight"),h.css("paddingBottom"),h.css("paddingLeft")];this.borderDif=d.map(e,function(n,p){var o=parseInt(n,10)||0,q=parseInt(j[p],10)||0;return o+q})}if(d.browser.msie&&!(!(d(g).is(":hidden")||d(g).parents(":hidden").length))){continue}h.css({height:(g.height()-this.borderDif[0]-this.borderDif[2])||0,width:(g.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var f=this.element,j=this.options;this.elementOffset=f.offset();if(this._helper){this.helper=this.helper||d('<div style="overflow:hidden;"></div>');var e=d.browser.msie&&d.browser.version<7,g=(e?1:0),h=(e?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+h,height:this.element.outerHeight()+h,position:"absolute",left:this.elementOffset.left-g+"px",top:this.elementOffset.top-g+"px",zIndex:++j.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(g,f,e){return{width:this.originalSize.width+f}},w:function(h,f,e){var l=this.options,g=this.originalSize,j=this.originalPosition;return{left:j.left+f,width:g.width-f}},n:function(h,f,e){var l=this.options,g=this.originalSize,j=this.originalPosition;return{top:j.top+e,height:g.height-e}},s:function(g,f,e){return{height:this.originalSize.height+e}},se:function(g,f,e){return d.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[g,f,e]))},sw:function(g,f,e){return d.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[g,f,e]))},ne:function(g,f,e){return d.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[g,f,e]))},nw:function(g,f,e){return d.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[g,f,e]))}},_propagate:function(f,e){d.ui.plugin.call(this,f,[e,this.ui()]);(f!="resize"&&this._trigger(f,e,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});d.extend(d.ui.resizable,{version:"1.8.1"});d.ui.plugin.add("resizable","alsoResize",{start:function(f,g){var e=d(this).data("resizable"),j=e.options;var h=function(l){d(l).each(function(){d(this).data("resizable-alsoresize",{width:parseInt(d(this).width(),10),height:parseInt(d(this).height(),10),left:parseInt(d(this).css("left"),10),top:parseInt(d(this).css("top"),10)})})};if(typeof(j.alsoResize)=="object"&&!j.alsoResize.parentNode){if(j.alsoResize.length){j.alsoResize=j.alsoResize[0];h(j.alsoResize)}else{d.each(j.alsoResize,function(l,n){h(l)})}}else{h(j.alsoResize)}},resize:function(g,j){var f=d(this).data("resizable"),l=f.options,h=f.originalSize,p=f.originalPosition;var n={height:(f.size.height-h.height)||0,width:(f.size.width-h.width)||0,top:(f.position.top-p.top)||0,left:(f.position.left-p.left)||0},e=function(o,q){d(o).each(function(){var v=d(this),w=d(this).data("resizable-alsoresize"),u={},r=q&&q.length?q:["width","height","top","left"];d.each(r||["width","height","top","left"],function(x,z){var y=(w[z]||0)+(n[z]||0);if(y&&y>=0){u[z]=y||null}});if(/relative/.test(v.css("position"))&&d.browser.opera){f._revertToRelativePosition=true;v.css({position:"absolute",top:"auto",left:"auto"})}v.css(u)})};if(typeof(l.alsoResize)=="object"&&!l.alsoResize.nodeType){d.each(l.alsoResize,function(o,q){e(o,q)})}else{e(l.alsoResize)}},stop:function(f,g){var e=d(this).data("resizable");if(e._revertToRelativePosition&&d.browser.opera){e._revertToRelativePosition=false;el.css({position:"relative"})}d(this).removeData("resizable-alsoresize-start")}});d.ui.plugin.add("resizable","animate",{stop:function(j,r){var u=d(this).data("resizable"),l=u.options;var h=u._proportionallyResizeElements,e=h.length&&(/textarea/i).test(h[0].nodeName),f=e&&d.ui.hasScroll(h[0],"left")?0:u.sizeDiff.height,p=e?0:u.sizeDiff.width;var g={width:(u.size.width-p),height:(u.size.height-f)},n=(parseInt(u.element.css("left"),10)+(u.position.left-u.originalPosition.left))||null,q=(parseInt(u.element.css("top"),10)+(u.position.top-u.originalPosition.top))||null;u.element.animate(d.extend(g,q&&n?{top:q,left:n}:{}),{duration:l.animateDuration,easing:l.animateEasing,step:function(){var o={width:parseInt(u.element.css("width"),10),height:parseInt(u.element.css("height"),10),top:parseInt(u.element.css("top"),10),left:parseInt(u.element.css("left"),10)};if(h&&h.length){d(h[0]).css({width:o.width,height:o.height})}u._updateCache(o);u._propagate("resize",j)}})}});d.ui.plugin.add("resizable","containment",{start:function(f,w){var y=d(this).data("resizable"),l=y.options,q=y.element;var g=l.containment,n=(g instanceof d)?g.get(0):(/parent/.test(g))?q.parent().get(0):g;if(!n){return}y.containerElement=d(n);if(/document/.test(g)||g==document){y.containerOffset={left:0,top:0};y.containerPosition={left:0,top:0};y.parentData={element:d(document),left:0,top:0,width:d(document).width(),height:d(document).height()||document.body.parentNode.scrollHeight}}else{var u=d(n),j=[];d(["Top","Right","Left","Bottom"]).each(function(p,o){j[p]=c(u.css("padding"+o))});y.containerOffset=u.offset();y.containerPosition=u.position();y.containerSize={height:(u.innerHeight()-j[3]),width:(u.innerWidth()-j[1])};var v=y.containerOffset,e=y.containerSize.height,r=y.containerSize.width,h=(d.ui.hasScroll(n,"left")?n.scrollWidth:r),x=(d.ui.hasScroll(n)?n.scrollHeight:e);y.parentData={element:n,left:v.left,top:v.top,width:h,height:x}}},resize:function(g,v){var y=d(this).data("resizable"),j=y.options,f=y.containerSize,u=y.containerOffset,q=y.size,r=y.position,w=y._aspectRatio||g.shiftKey,e={top:0,left:0},h=y.containerElement;if(h[0]!=document&&(/static/).test(h.css("position"))){e=u}if(r.left<(y._helper?u.left:0)){y.size.width=y.size.width+(y._helper?(y.position.left-u.left):(y.position.left-e.left));if(w){y.size.height=y.size.width/j.aspectRatio}y.position.left=j.helper?u.left:0}if(r.top<(y._helper?u.top:0)){y.size.height=y.size.height+(y._helper?(y.position.top-u.top):y.position.top);if(w){y.size.width=y.size.height*j.aspectRatio}y.position.top=y._helper?u.top:0}y.offset.left=y.parentData.left+y.position.left;y.offset.top=y.parentData.top+y.position.top;var p=Math.abs((y._helper?y.offset.left-e.left:(y.offset.left-e.left))+y.sizeDiff.width),x=Math.abs((y._helper?y.offset.top-e.top:(y.offset.top-u.top))+y.sizeDiff.height);var n=y.containerElement.get(0)==y.element.parent().get(0),l=/relative|absolute/.test(y.containerElement.css("position"));if(n&&l){p-=y.parentData.left}if(p+y.size.width>=y.parentData.width){y.size.width=y.parentData.width-p;if(w){y.size.height=y.size.width/y.aspectRatio}}if(x+y.size.height>=y.parentData.height){y.size.height=y.parentData.height-x;if(w){y.size.width=y.size.height*y.aspectRatio}}},stop:function(f,r){var v=d(this).data("resizable"),g=v.options,p=v.position,q=v.containerOffset,e=v.containerPosition,j=v.containerElement;var l=d(v.helper),x=l.offset(),u=l.outerWidth()-v.sizeDiff.width,n=l.outerHeight()-v.sizeDiff.height;if(v._helper&&!g.animate&&(/relative/).test(j.css("position"))){d(this).css({left:x.left-e.left-q.left,width:u,height:n})}if(v._helper&&!g.animate&&(/static/).test(j.css("position"))){d(this).css({left:x.left-e.left-q.left,width:u,height:n})}}});d.ui.plugin.add("resizable","ghost",{start:function(g,h){var e=d(this).data("resizable"),j=e.options,f=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:0.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof j.ghost=="string"?j.ghost:"");e.ghost.appendTo(e.helper)},resize:function(f,g){var e=d(this).data("resizable"),h=e.options;if(e.ghost){e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})}},stop:function(f,g){var e=d(this).data("resizable"),h=e.options;if(e.ghost&&e.helper){e.helper.get(0).removeChild(e.ghost.get(0))}}});d.ui.plugin.add("resizable","grid",{resize:function(e,q){var u=d(this).data("resizable"),h=u.options,n=u.size,j=u.originalSize,l=u.originalPosition,r=u.axis,p=h._aspectRatio||e.shiftKey;h.grid=typeof h.grid=="number"?[h.grid,h.grid]:h.grid;var g=Math.round((n.width-j.width)/(h.grid[0]||1))*(h.grid[0]||1),f=Math.round((n.height-j.height)/(h.grid[1]||1))*(h.grid[1]||1);if(/^(se|s|e)$/.test(r)){u.size.width=j.width+g;u.size.height=j.height+f}else{if(/^(ne)$/.test(r)){u.size.width=j.width+g;u.size.height=j.height+f;u.position.top=l.top-f}else{if(/^(sw)$/.test(r)){u.size.width=j.width+g;u.size.height=j.height+f;u.position.left=l.left-g}else{u.size.width=j.width+g;u.size.height=j.height+f;u.position.top=l.top-f;u.position.left=l.left-g}}}}});var c=function(e){return parseInt(e,10)||0};var a=function(e){return !isNaN(parseInt(e,10))}})(jQuery);(function(a){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var d;this.refresh=function(){d=a(c.options.filter,c.element[0]);d.each(function(){var e=a(this);var f=e.offset();a.data(this,"selectable-item",{element:this,$element:e,left:f.left,top:f.top,right:f.left+e.outerWidth(),bottom:f.top+e.outerHeight(),startselected:false,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})};this.refresh();this.selectees=d.addClass("ui-selectee");this._mouseInit();this.helper=a(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(e){var c=this;this.opos=[e.pageX,e.pageY];if(this.options.disabled){return}var d=this.options;this.selectees=a(d.filter,this.element[0]);this._trigger("start",e);a(d.appendTo).append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:e.clientX,top:e.clientY,width:0,height:0});if(d.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var f=a.data(this,"selectable-item");f.startselected=true;if(!e.metaKey){f.$element.removeClass("ui-selected");f.selected=false;f.$element.addClass("ui-unselecting");f.unselecting=true;c._trigger("unselecting",e,{unselecting:f.element})}});a(e.target).parents().andSelf().each(function(){var f=a.data(this,"selectable-item");if(f){f.$element.removeClass("ui-unselecting").addClass("ui-selecting");f.unselecting=false;f.selecting=true;f.selected=true;c._trigger("selecting",e,{selecting:f.element});return false}})},_mouseDrag:function(l){var d=this;this.dragged=true;if(this.options.disabled){return}var f=this.options;var e=this.opos[0],j=this.opos[1],c=l.pageX,h=l.pageY;if(e>c){var g=c;c=e;e=g}if(j>h){var g=h;h=j;j=g}this.helper.css({left:e,top:j,width:c-e,height:h-j});this.selectees.each(function(){var n=a.data(this,"selectable-item");if(!n||n.element==d.element[0]){return}var o=false;if(f.tolerance=="touch"){o=(!(n.left>c||n.right<e||n.top>h||n.bottom<j))}else{if(f.tolerance=="fit"){o=(n.left>e&&n.right<c&&n.top>j&&n.bottom<h)}}if(o){if(n.selected){n.$element.removeClass("ui-selected");n.selected=false}if(n.unselecting){n.$element.removeClass("ui-unselecting");n.unselecting=false}if(!n.selecting){n.$element.addClass("ui-selecting");n.selecting=true;d._trigger("selecting",l,{selecting:n.element})}}else{if(n.selecting){if(l.metaKey&&n.startselected){n.$element.removeClass("ui-selecting");n.selecting=false;n.$element.addClass("ui-selected");n.selected=true}else{n.$element.removeClass("ui-selecting");n.selecting=false;if(n.startselected){n.$element.addClass("ui-unselecting");n.unselecting=true}d._trigger("unselecting",l,{unselecting:n.element})}}if(n.selected){if(!l.metaKey&&!n.startselected){n.$element.removeClass("ui-selected");n.selected=false;n.$element.addClass("ui-unselecting");n.unselecting=true;d._trigger("unselecting",l,{unselecting:n.element})}}}});return false},_mouseStop:function(e){var c=this;this.dragged=false;var d=this.options;a(".ui-unselecting",this.element[0]).each(function(){var f=a.data(this,"selectable-item");f.$element.removeClass("ui-unselecting");f.unselecting=false;f.startselected=false;c._trigger("unselected",e,{unselected:f.element})});a(".ui-selecting",this.element[0]).each(function(){var f=a.data(this,"selectable-item");f.$element.removeClass("ui-selecting").addClass("ui-selected");f.selecting=false;f.selected=true;f.startselected=true;c._trigger("selected",e,{selected:f.element})});this._trigger("stop",e);this.helper.remove();return false}});a.extend(a.ui.selectable,{version:"1.8.1"})})(jQuery);(function(a){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000},_create:function(){var c=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var c=this.items.length-1;c>=0;c--){this.items[c].item.removeData("sortable-item")}return this},_setOption:function(c,d){if(c==="disabled"){this.options[c]=d;this.widget()[d?"addClass":"removeClass"]("ui-sortable-disabled")}else{a.Widget.prototype._setOption.apply(self,arguments)}},_mouseCapture:function(f,g){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(f);var e=null,d=this,c=a(f.target).parents().each(function(){if(a.data(this,"sortable-item")==d){e=a(this);return false}});if(a.data(f.target,"sortable-item")==d){e=a(f.target)}if(!e){return false}if(this.options.handle&&!g){var h=false;a(this.options.handle,e).find("*").andSelf().each(function(){if(this==f.target){h=true}});if(!h){return false}}this.currentItem=e;this._removeCurrentsFromItems();return true},_mouseStart:function(f,g,c){var h=this.options,d=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(f);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,{click:{left:f.pageX-this.offset.left,top:f.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(f);this.originalPageX=f.pageX;this.originalPageY=f.pageY;(h.cursorAt&&this._adjustOffsetFromHelper(h.cursorAt));this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(h.containment){this._setContainment()}if(h.cursor){if(a("body").css("cursor")){this._storedCursor=a("body").css("cursor")}a("body").css("cursor",h.cursor)}if(h.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",h.opacity)}if(h.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",h.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",f,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!c){for(var e=this.containers.length-1;e>=0;e--){this.containers[e]._trigger("activate",f,d._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}if(a.ui.ddmanager&&!h.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,f)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(f);return true},_mouseDrag:function(g){this.position=this._generatePosition(g);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var h=this.options,c=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-g.pageY<h.scrollSensitivity){this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop+h.scrollSpeed}else{if(g.pageY-this.overflowOffset.top<h.scrollSensitivity){this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop-h.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-g.pageX<h.scrollSensitivity){this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft+h.scrollSpeed}else{if(g.pageX-this.overflowOffset.left<h.scrollSensitivity){this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft-h.scrollSpeed}}}else{if(g.pageY-a(document).scrollTop()<h.scrollSensitivity){c=a(document).scrollTop(a(document).scrollTop()-h.scrollSpeed)}else{if(a(window).height()-(g.pageY-a(document).scrollTop())<h.scrollSensitivity){c=a(document).scrollTop(a(document).scrollTop()+h.scrollSpeed)}}if(g.pageX-a(document).scrollLeft()<h.scrollSensitivity){c=a(document).scrollLeft(a(document).scrollLeft()-h.scrollSpeed)}else{if(a(window).width()-(g.pageX-a(document).scrollLeft())<h.scrollSensitivity){c=a(document).scrollLeft(a(document).scrollLeft()+h.scrollSpeed)}}}if(c!==false&&a.ui.ddmanager&&!h.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,g)}}this.positionAbs=this._convertPositionTo("absolute");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"}for(var e=this.items.length-1;e>=0;e--){var f=this.items[e],d=f.item[0],j=this._intersectsWithPointer(f);if(!j){continue}if(d!=this.currentItem[0]&&this.placeholder[j==1?"next":"prev"]()[0]!=d&&!a.ui.contains(this.placeholder[0],d)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],d):true)){this.direction=j==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(f)){this._rearrange(g,f)}else{break}this._trigger("change",g,this._uiHash());break}}this._contactContainers(g);if(a.ui.ddmanager){a.ui.ddmanager.drag(this,g)}this._trigger("sort",g,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(d,e){if(!d){return}if(a.ui.ddmanager&&!this.options.dropBehaviour){a.ui.ddmanager.drop(this,d)}if(this.options.revert){var c=this;var f=c.placeholder.offset();c.reverting=true;a(this.helper).animate({left:f.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:f.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(d)})}else{this._clear(d,e)}return false},cancel:function(){var c=this;if(this.dragging){this._mouseUp();if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("deactivate",null,c._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,c._uiHash(this));this.containers[d].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){a(this.domPosition.prev).after(this.currentItem)}else{a(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(e){var c=this._getItemsAsjQuery(e&&e.connected);var d=[];e=e||{};a(c).each(function(){var f=(a(e.item||this).attr(e.attribute||"id")||"").match(e.expression||(/(.+)[-=_](.+)/));if(f){d.push((e.key||f[1]+"[]")+"="+(e.key&&e.expression?f[1]:f[2]))}});return d.join("&")},toArray:function(e){var c=this._getItemsAsjQuery(e&&e.connected);var d=[];e=e||{};c.each(function(){d.push(a(e.item||this).attr(e.attribute||"id")||"")});return d},_intersectsWith:function(p){var e=this.positionAbs.left,d=e+this.helperProportions.width,o=this.positionAbs.top,n=o+this.helperProportions.height;var f=p.left,c=f+p.width,q=p.top,j=q+p.height;var u=this.offset.click.top,h=this.offset.click.left;var g=(o+u)>q&&(o+u)<j&&(e+h)>f&&(e+h)<c;if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>p[this.floating?"width":"height"])){return g}else{return(f<e+(this.helperProportions.width/2)&&d-(this.helperProportions.width/2)<c&&q<o+(this.helperProportions.height/2)&&n-(this.helperProportions.height/2)<j)}},_intersectsWithPointer:function(e){var f=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),h=f&&d,c=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();if(!h){return false}return this.floating?(((g&&g=="right")||c=="down")?2:1):(c&&(c=="down"?2:1))},_intersectsWithSides:function(f){var d=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,f.top+(f.height/2),f.height),e=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,f.left+(f.width/2),f.width),c=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();if(this.floating&&g){return((g=="right"&&e)||(g=="left"&&!e))}else{return c&&((c=="down"&&d)||(c=="up"&&!d))}},_getDragVerticalDirection:function(){var c=this.positionAbs.top-this.lastPositionAbs.top;return c!=0&&(c>0?"down":"up")},_getDragHorizontalDirection:function(){var c=this.positionAbs.left-this.lastPositionAbs.left;return c!=0&&(c>0?"right":"left")},refresh:function(c){this._refreshItems(c);this.refreshPositions();return this},_connectWith:function(){var c=this.options;return c.connectWith.constructor==String?[c.connectWith]:c.connectWith},_getItemsAsjQuery:function(c){var o=this;var h=[];var f=[];var l=this._connectWith();if(l&&c){for(var e=l.length-1;e>=0;e--){var n=a(l[e]);for(var d=n.length-1;d>=0;d--){var g=a.data(n[d],"sortable");if(g&&g!=this&&!g.options.disabled){f.push([a.isFunction(g.options.items)?g.options.items.call(g.element):a(g.options.items,g.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),g])}}}}f.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var e=f.length-1;e>=0;e--){f[e][0].each(function(){h.push(this)})}return a(h)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data(sortable-item)");for(var d=0;d<this.items.length;d++){for(var c=0;c<e.length;c++){if(e[c]==this.items[d].item[0]){this.items.splice(d,1)}}}},_refreshItems:function(c){this.items=[];this.containers=[this];var l=this.items;var u=this;var g=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],c,{item:this.currentItem}):a(this.options.items,this.element),this]];var o=this._connectWith();if(o){for(var f=o.length-1;f>=0;f--){var p=a(o[f]);for(var e=p.length-1;e>=0;e--){var h=a.data(p[e],"sortable");if(h&&h!=this&&!h.options.disabled){g.push([a.isFunction(h.options.items)?h.options.items.call(h.element[0],c,{item:this.currentItem}):a(h.options.items,h.element),h]);this.containers.push(h)}}}}for(var f=g.length-1;f>=0;f--){var n=g[f][1];var d=g[f][0];for(var e=0,q=d.length;e<q;e++){var r=a(d[e]);r.data("sortable-item",n);l.push({item:r,instance:n,width:0,height:0,left:0,top:0})}}},refreshPositions:function(c){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var e=this.items.length-1;e>=0;e--){var f=this.items[e];var d=this.options.toleranceElement?a(this.options.toleranceElement,f.item):f.item;if(!c){f.width=d.outerWidth();f.height=d.outerHeight()}var g=d.offset();f.left=g.left;f.top=g.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var e=this.containers.length-1;e>=0;e--){var g=this.containers[e].element.offset();this.containers[e].containerCache.left=g.left;this.containers[e].containerCache.top=g.top;this.containers[e].containerCache.width=this.containers[e].element.outerWidth();this.containers[e].containerCache.height=this.containers[e].element.outerHeight()}}return this},_createPlaceholder:function(e){var c=e||this,f=c.options;if(!f.placeholder||f.placeholder.constructor==String){var d=f.placeholder;f.placeholder={element:function(){var g=a(document.createElement(c.currentItem[0].nodeName)).addClass(d||c.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!d){g.style.visibility="hidden"}return g},update:function(g,h){if(d&&!f.forcePlaceholderSize){return}if(!h.height()){h.height(c.currentItem.innerHeight()-parseInt(c.currentItem.css("paddingTop")||0,10)-parseInt(c.currentItem.css("paddingBottom")||0,10))}if(!h.width()){h.width(c.currentItem.innerWidth()-parseInt(c.currentItem.css("paddingLeft")||0,10)-parseInt(c.currentItem.css("paddingRight")||0,10))}}}}c.placeholder=a(f.placeholder.element.call(c.element,c.currentItem));c.currentItem.after(c.placeholder);f.placeholder.update(c,c.placeholder)},_contactContainers:function(c){var e=null,n=null;for(var g=this.containers.length-1;g>=0;g--){if(a.ui.contains(this.currentItem[0],this.containers[g].element[0])){continue}if(this._intersectsWith(this.containers[g].containerCache)){if(e&&a.ui.contains(this.containers[g].element[0],e.element[0])){continue}e=this.containers[g];n=g}else{if(this.containers[g].containerCache.over){this.containers[g]._trigger("out",c,this._uiHash(this));this.containers[g].containerCache.over=0}}}if(!e){return}if(this.containers.length===1){this.containers[n]._trigger("over",c,this._uiHash(this));this.containers[n].containerCache.over=1}else{if(this.currentContainer!=this.containers[n]){var l=10000;var h=null;var d=this.positionAbs[this.containers[n].floating?"left":"top"];for(var f=this.items.length-1;f>=0;f--){if(!a.ui.contains(this.containers[n].element[0],this.items[f].item[0])){continue}var o=this.items[f][this.containers[n].floating?"left":"top"];if(Math.abs(o-d)<l){l=Math.abs(o-d);h=this.items[f]}}if(!h&&!this.options.dropOnEmpty){return}this.currentContainer=this.containers[n];h?this._rearrange(c,h,null,true):this._rearrange(c,null,this.containers[n].element,true);this._trigger("change",c,this._uiHash());this.containers[n]._trigger("change",c,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[n]._trigger("over",c,this._uiHash(this));this.containers[n].containerCache.over=1}}},_createHelper:function(d){var e=this.options;var c=a.isFunction(e.helper)?a(e.helper.apply(this.element[0],[d,this.currentItem])):(e.helper=="clone"?this.currentItem.clone():this.currentItem);if(!c.parents("body").length){a(e.appendTo!="parent"?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(c[0])}if(c[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(c[0].style.width==""||e.forceHelperSize){c.width(this.currentItem.width())}if(c[0].style.height==""||e.forceHelperSize){c.height(this.currentItem.height())}return c},_adjustOffsetFromHelper:function(c){if(typeof c=="string"){c=c.split(" ")}if(a.isArray(c)){c={left:+c[0],top:+c[1]||0}}if("left" in c){this.offset.click.left=c.left+this.margins.left}if("right" in c){this.offset.click.left=this.helperProportions.width-c.right+this.margins.left}if("top" in c){this.offset.click.top=c.top+this.margins.top}if("bottom" in c){this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){c={top:0,left:0}}return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.currentItem.position();return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;if(f.containment=="parent"){f.containment=this.helper[0].parentNode}if(f.containment=="document"||f.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(f.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(f.containment)){var d=a(f.containment)[0];var e=a(f.containment).offset();var c=(a(d).css("overflow")!="hidden");this.containment=[e.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,e.left+(c?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(c?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(g,j){if(!j){j=this.position}var e=g=="absolute"?1:-1;var f=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=(/(html|body)/i).test(c[0].tagName);return{top:(j.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(h?0:c.scrollTop()))*e)),left:(j.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:c.scrollLeft())*e))}},_generatePosition:function(f){var j=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=(/(html|body)/i).test(c[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var e=f.pageX;var d=f.pageY;if(this.originalPosition){if(this.containment){if(f.pageX-this.offset.click.left<this.containment[0]){e=this.containment[0]+this.offset.click.left}if(f.pageY-this.offset.click.top<this.containment[1]){d=this.containment[1]+this.offset.click.top}if(f.pageX-this.offset.click.left>this.containment[2]){e=this.containment[2]+this.offset.click.left}if(f.pageY-this.offset.click.top>this.containment[3]){d=this.containment[3]+this.offset.click.top}}if(j.grid){var h=this.originalPageY+Math.round((d-this.originalPageY)/j.grid[1])*j.grid[1];d=this.containment?(!(h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3])?h:(!(h-this.offset.click.top<this.containment[1])?h-j.grid[1]:h+j.grid[1])):h;var g=this.originalPageX+Math.round((e-this.originalPageX)/j.grid[0])*j.grid[0];e=this.containment?(!(g-this.offset.click.left<this.containment[0]||g-this.offset.click.left>this.containment[2])?g:(!(g-this.offset.click.left<this.containment[0])?g-j.grid[0]:g+j.grid[0])):g}}return{top:(d-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(l?0:c.scrollTop())))),left:(e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:c.scrollLeft())))}},_rearrange:function(h,g,d,f){d?d[0].appendChild(this.placeholder[0]):g.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=="down"?g.item[0]:g.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var e=this,c=this.counter;window.setTimeout(function(){if(c==e.counter){e.refreshPositions(!f)}},0)},_clear:function(e,f){this.reverting=false;var g=[],c=this;if(!this._noFinalSort&&this.currentItem[0].parentNode){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var d in this._storedCSS){if(this._storedCSS[d]=="auto"||this._storedCSS[d]=="static"){this._storedCSS[d]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!f){g.push(function(h){this._trigger("receive",h,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!f){g.push(function(h){this._trigger("update",h,this._uiHash())})}if(!a.ui.contains(this.element[0],this.currentItem[0])){if(!f){g.push(function(h){this._trigger("remove",h,this._uiHash())})}for(var d=this.containers.length-1;d>=0;d--){if(a.ui.contains(this.containers[d].element[0],this.currentItem[0])&&!f){g.push((function(h){return function(j){h._trigger("receive",j,this._uiHash(this))}}).call(this,this.containers[d]));g.push((function(h){return function(j){h._trigger("update",j,this._uiHash(this))}}).call(this,this.containers[d]))}}}for(var d=this.containers.length-1;d>=0;d--){if(!f){g.push((function(h){return function(j){h._trigger("deactivate",j,this._uiHash(this))}}).call(this,this.containers[d]))}if(this.containers[d].containerCache.over){g.push((function(h){return function(j){h._trigger("out",j,this._uiHash(this))}}).call(this,this.containers[d]));this.containers[d].containerCache.over=0}}if(this._storedCursor){a("body").css("cursor",this._storedCursor)}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!f){this._trigger("beforeStop",e,this._uiHash());for(var d=0;d<g.length;d++){g[d].call(this,e)}this._trigger("stop",e,this._uiHash())}return false}if(!f){this._trigger("beforeStop",e,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove()}this.helper=null;if(!f){for(var d=0;d<g.length;d++){g[d].call(this,e)}this._trigger("stop",e,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(a.Widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(d){var c=d||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:d?d.element:null}}});a.extend(a.ui.sortable,{version:"1.8.1"})})(jQuery);(function(a){a.widget("ui.accordion",{options:{active:0,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()}},_create:function(){var e=this.options,c=this;this.running=0;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(e.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){a(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(e.navigation){var d=this.element.find("a").filter(e.navigationFilter);if(d.length){var f=d.closest(".ui-accordion-header");if(f.length){this.active=f}else{this.active=d.closest(".ui-accordion-content").prev()}}}this.active=this._findActive(this.active||e.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");this._createIcons();this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(g){return c._keydown(g)}).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(!a.browser.safari){this.headers.find("a").attr("tabIndex","-1")}if(e.event){this.headers.bind((e.event)+".accordion",function(g){c._clickHandler.call(c,g,this);g.preventDefault()})}},_createIcons:function(){var c=this.options;if(c.icons){a("<span/>").addClass("ui-icon "+c.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(c.icons.header).toggleClass(c.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},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._destroyIcons();var c=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){c.css("height","")}return this},_setOption:function(c,d){a.Widget.prototype._setOption.apply(this,arguments);if(c=="active"){this.activate(d)}if(c=="icons"){this._destroyIcons();if(d){this._createIcons()}}},_keydown:function(f){var h=this.options,g=a.ui.keyCode;if(h.disabled||f.altKey||f.ctrlKey){return}var e=this.headers.length;var c=this.headers.index(f.target);var d=false;switch(f.keyCode){case g.RIGHT:case g.DOWN:d=this.headers[(c+1)%e];break;case g.LEFT:case g.UP:d=this.headers[(c-1+e)%e];break;case g.SPACE:case g.ENTER:this._clickHandler({target:f.target},f.target);f.preventDefault()}if(d){a(f.target).attr("tabIndex","-1");a(d).attr("tabIndex","0");d.focus();return false}return true},resize:function(){var e=this.options,d;if(e.fillSpace){if(a.browser.msie){var c=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();if(a.browser.msie){this.element.parent().css("overflow",c)}this.headers.each(function(){d-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,d-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else{if(e.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).height())}).height(d)}}return this},activate:function(c){this.options.active=c;var d=this._findActive(c)[0];this._clickHandler({target:d},d);return this},_findActive:function(c){return c?typeof c=="number"?this.headers.filter(":eq("+c+")"):this.headers.not(this.headers.not(c)):c===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(c,g){var e=this.options;if(e.disabled){return}if(!c.target){if(!e.collapsible){return}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header);this.active.next().addClass("ui-accordion-content-active");var j=this.active.next(),f={options:e,newHeader:a([]),oldHeader:e.active,newContent:a([]),oldContent:j},d=(this.active=a([]));this._toggle(d,j,f);return}var h=a(c.currentTarget||g);var l=h[0]==this.active[0];e.active=e.collapsible&&l?false:a(".ui-accordion-header",this.element).index(h);if(this.running||(!e.collapsible&&l)){return}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header);if(!l){h.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(e.icons.header).addClass(e.icons.headerSelected);h.next().addClass("ui-accordion-content-active")}var d=h.next(),j=this.active.next(),f={options:e,newHeader:l&&e.collapsible?a([]):h,oldHeader:this.active,newContent:l&&e.collapsible?a([]):d,oldContent:j},n=this.headers.index(this.active[0])>this.headers.index(h[0]);this.active=l?a([]):h;this._toggle(d,j,f,l,n);return},_toggle:function(c,l,h,n,p){var e=this.options,r=this;this.toShow=c;this.toHide=l;this.data=h;var d=function(){if(!r){return}return r._completed.apply(r,arguments)};this._trigger("changestart",null,this.data);this.running=l.size()===0?c.size():l.size();if(e.animated){var g={};if(e.collapsible&&n){g={toShow:a([]),toHide:l,complete:d,down:p,autoHeight:e.autoHeight||e.fillSpace}}else{g={toShow:c,toHide:l,complete:d,down:p,autoHeight:e.autoHeight||e.fillSpace}}if(!e.proxied){e.proxied=e.animated}if(!e.proxiedDuration){e.proxiedDuration=e.duration}e.animated=a.isFunction(e.proxied)?e.proxied(g):e.proxied;e.duration=a.isFunction(e.proxiedDuration)?e.proxiedDuration(g):e.proxiedDuration;var q=a.ui.accordion.animations,f=e.duration,j=e.animated;if(j&&!q[j]&&!a.easing[j]){j="slide"}if(!q[j]){q[j]=function(o){this.slide(o,{easing:j,duration:f||700})}}q[j](g)}else{if(e.collapsible&&n){c.toggle()}else{l.hide();c.show()}d(true)}l.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();c.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(c){var d=this.options;this.running=c?0:--this.running;if(this.running){return}if(d.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}});a.extend(a.ui.accordion,{version:"1.8.1",animations:{slide:function(n,j){n=a.extend({easing:"swing",duration:300},n,j);if(!n.toHide.size()){n.toShow.animate({height:"show"},n);return}if(!n.toShow.size()){n.toHide.animate({height:"hide"},n);return}var d=n.toShow.css("overflow"),h=0,e={},g={},f=["height","paddingTop","paddingBottom"],c;var l=n.toShow;c=l[0].style.width;l.width(parseInt(l.parent().width(),10)-parseInt(l.css("paddingLeft"),10)-parseInt(l.css("paddingRight"),10)-(parseInt(l.css("borderLeftWidth"),10)||0)-(parseInt(l.css("borderRightWidth"),10)||0));a.each(f,function(o,q){g[q]="hide";var p=(""+a.css(n.toShow[0],q)).match(/^([\d+-.]+)(.*)$/);e[q]={value:p[1],unit:p[2]||"px"}});n.toShow.css({height:0,overflow:"hidden"}).show();n.toHide.filter(":hidden").each(n.complete).end().filter(":visible").animate(g,{step:function(o,p){if(p.prop=="height"){h=(p.end-p.start===0)?0:(p.now-p.start)/(p.end-p.start)}n.toShow[0].style[p.prop]=(h*e[p.prop].value)+e[p.prop].unit},duration:n.duration,easing:n.easing,complete:function(){if(!n.autoHeight){n.toShow.css("height","")}n.toShow.css("width",c);n.toShow.css({overflow:d});n.complete()}})},bounceslide:function(c){this.slide(c,{easing:c.down?"easeOutBounce":"swing",duration:c.down?1000:200})}}})})(jQuery);(function(a){a.widget("ui.autocomplete",{options:{minLength:1,delay:300},_create:function(){var c=this,d=this.element[0].ownerDocument;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(e){var f=a.ui.keyCode;switch(e.keyCode){case f.PAGE_UP:c._move("previousPage",e);break;case f.PAGE_DOWN:c._move("nextPage",e);break;case f.UP:c._move("previous",e);e.preventDefault();break;case f.DOWN:c._move("next",e);e.preventDefault();break;case f.ENTER:if(c.menu.active){e.preventDefault()}case f.TAB:if(!c.menu.active){return}c.menu.select(e);break;case f.ESCAPE:c.element.val(c.term);c.close(e);break;case f.LEFT:case f.RIGHT:case f.SHIFT:case f.CONTROL:case f.ALT:break;default:clearTimeout(c.searching);c.searching=setTimeout(function(){c.search(null,e)},c.options.delay);break}}).bind("focus.autocomplete",function(){c.selectedItem=null;c.previous=c.element.val()}).bind("blur.autocomplete",function(e){clearTimeout(c.searching);c.closing=setTimeout(function(){c.close(e);c._change(e)},150)});this._initSource();this.response=function(){return c._response.apply(c,arguments)};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo("body",d).menu({focus:function(f,g){var e=g.item.data("item.autocomplete");if(false!==c._trigger("focus",null,{item:e})){if(/^key/.test(f.originalEvent.type)){c.element.val(e.value)}}},selected:function(g,h){var f=h.item.data("item.autocomplete");if(false!==c._trigger("select",g,{item:f})){c.element.val(f.value)}c.close(g);var e=c.previous;if(c.element[0]!==d.activeElement){c.element.focus();c.previous=e}c.selectedItem=f},blur:function(e,f){if(c.menu.element.is(":visible")){c.element.val(c.term)}}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");if(a.fn.bgiframe){this.menu.element.bgiframe()}},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();a.Widget.prototype.destroy.call(this)},_setOption:function(c){a.Widget.prototype._setOption.apply(this,arguments);if(c==="source"){this._initSource()}},_initSource:function(){var d,c;if(a.isArray(this.options.source)){d=this.options.source;this.source=function(f,e){e(a.ui.autocomplete.filter(d,f.term))}}else{if(typeof this.options.source==="string"){c=this.options.source;this.source=function(f,e){a.getJSON(c,f,e)}}else{this.source=this.options.source}}},search:function(d,c){d=d!=null?d:this.element.val();if(d.length<this.options.minLength){return this.close(c)}clearTimeout(this.closing);if(this._trigger("search")===false){return}return this._search(d)},_search:function(c){this.term=this.element.addClass("ui-autocomplete-loading").val();this.source({term:c},this.response)},_response:function(c){if(c.length){c=this._normalize(c);this._suggest(c);this._trigger("open")}else{this.close()}this.element.removeClass("ui-autocomplete-loading")},close:function(c){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this._trigger("close",c);this.menu.element.hide();this.menu.deactivate()}},_change:function(c){if(this.previous!==this.element.val()){this._trigger("change",c,{item:this.selectedItem})}},_normalize:function(c){if(c.length&&c[0].label&&c[0].value){return c}return a.map(c,function(d){if(typeof d==="string"){return{label:d,value:d}}return a.extend({label:d.label||d.value,value:d.value||d.label},d)})},_suggest:function(c){var d=this.menu.element.empty().zIndex(this.element.zIndex()+1),e,f;this._renderMenu(d,c);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position({my:"left top",at:"left bottom",of:this.element,collision:"none"});e=d.width("").width();f=this.element.width();d.width(Math.max(e,f))},_renderMenu:function(e,d){var c=this;a.each(d,function(f,g){c._renderItem(e,g)})},_renderItem:function(c,d){return a("<li></li>").data("item.autocomplete",d).append("<a>"+d.label+"</a>").appendTo(c)},_move:function(d,c){if(!this.menu.element.is(":visible")){this.search(null,c);return}if(this.menu.first()&&/^previous/.test(d)||this.menu.last()&&/^next/.test(d)){this.element.val(this.term);this.menu.deactivate();return}this.menu[d](c)},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(c){return c.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")},filter:function(e,c){var d=new RegExp(a.ui.autocomplete.escapeRegex(c),"i");return a.grep(e,function(f){return d.test(f.label||f.value||f)})}})}(jQuery));(function(a){a.widget("ui.menu",{_create:function(){var c=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(d){if(!a(d.target).closest(".ui-menu-item a").length){return}d.preventDefault();c.select(d)});this.refresh()},refresh:function(){var d=this;var c=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");c.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(e){d.activate(e,a(this).parent())}).mouseleave(function(){d.deactivate()})},activate:function(f,e){this.deactivate();if(this.hasScroll()){var g=e.offset().top-this.element.offset().top,c=this.element.attr("scrollTop"),d=this.element.height();if(g<0){this.element.attr("scrollTop",c+g)}else{if(g>d){this.element.attr("scrollTop",c+g-d+e.height())}}}this.active=e.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",f,{item:e})},deactivate:function(){if(!this.active){return}this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null},next:function(c){this.move("next",".ui-menu-item:first",c)},previous:function(c){this.move("prev",".ui-menu-item:last",c)},first:function(){return this.active&&!this.active.prev().length},last:function(){return this.active&&!this.active.next().length},move:function(f,e,d){if(!this.active){this.activate(d,this.element.children(e));return}var c=this.active[f+"All"](".ui-menu-item").eq(0);if(c.length){this.activate(d,c)}else{this.activate(d,this.element.children(e))}},nextPage:function(e){if(this.hasScroll()){if(!this.active||this.last()){this.activate(e,this.element.children(":first"));return}var f=this.active.offset().top,d=this.element.height(),c=this.element.children("li").filter(function(){var g=a(this).offset().top-f-d+a(this).height();return g<10&&g>-10});if(!c.length){c=this.element.children(":last")}this.activate(e,c)}else{this.activate(e,this.element.children(!this.active||this.last()?":first":":last"))}},previousPage:function(d){if(this.hasScroll()){if(!this.active||this.first()){this.activate(d,this.element.children(":last"));return}var e=this.active.offset().top,c=this.element.height();result=this.element.children("li").filter(function(){var f=a(this).offset().top-e+c-a(this).height();return f<10&&f>-10});if(!result.length){result=this.element.children(":first")}this.activate(d,result)}else{this.activate(d,this.element.children(!this.active||this.first()?":last":":first"))}},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(c){this._trigger("selected",c,{item:this.active})}})}(jQuery));(function(g){var e,d="ui-button ui-widget ui-state-default ui-corner-all",c="ui-state-hover ui-state-active ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon ui-button-text-only",f=function(h){g(":ui-button",h.target.form).each(function(){var j=g(this).data("button");setTimeout(function(){j.refresh()},1)})},a=function(j){var h=j.name,l=j.form,n=g([]);if(h){if(l){n=g(l).find("[name='"+h+"']")}else{n=g("[name='"+h+"']",j.ownerDocument).filter(function(){return !this.form})}}return n};g.widget("ui.button",{options:{text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",f);this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var h=this,l=this.options,n=this.type==="checkbox"||this.type==="radio",o="ui-state-hover"+(!n?" ui-state-active":""),j="ui-state-focus";if(l.label===null){l.label=this.buttonElement.html()}if(this.element.is(":disabled")){l.disabled=true}this.buttonElement.addClass(d).attr("role","button").bind("mouseenter.button",function(){if(l.disabled){return}g(this).addClass("ui-state-hover");if(this===e){g(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){if(l.disabled){return}g(this).removeClass(o)}).bind("focus.button",function(){g(this).addClass(j)}).bind("blur.button",function(){g(this).removeClass(j)});if(n){this.element.bind("change.button",function(){h.refresh()})}if(this.type==="checkbox"){this.buttonElement.bind("click.button",function(){if(l.disabled){return false}g(this).toggleClass("ui-state-active");h.buttonElement.attr("aria-pressed",h.element[0].checked)})}else{if(this.type==="radio"){this.buttonElement.bind("click.button",function(){if(l.disabled){return false}g(this).addClass("ui-state-active");h.buttonElement.attr("aria-pressed",true);var p=h.element[0];a(p).not(p).map(function(){return g(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)})}else{this.buttonElement.bind("mousedown.button",function(){if(l.disabled){return false}g(this).addClass("ui-state-active");e=this;g(document).one("mouseup",function(){e=null})}).bind("mouseup.button",function(){if(l.disabled){return false}g(this).removeClass("ui-state-active")}).bind("keydown.button",function(p){if(l.disabled){return false}if(p.keyCode==g.ui.keyCode.SPACE||p.keyCode==g.ui.keyCode.ENTER){g(this).addClass("ui-state-active")}}).bind("keyup.button",function(){g(this).removeClass("ui-state-active")});if(this.buttonElement.is("a")){this.buttonElement.keyup(function(p){if(p.keyCode===g.ui.keyCode.SPACE){g(this).click()}})}}}this._setOption("disabled",l.disabled)},_determineButtonType:function(){if(this.element.is(":checkbox")){this.type="checkbox"}else{if(this.element.is(":radio")){this.type="radio"}else{if(this.element.is("input")){this.type="input"}else{this.type="button"}}}if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var h=this.element.is(":checked");if(h){this.buttonElement.addClass("ui-state-active")}this.buttonElement.attr("aria-pressed",h)}else{this.buttonElement=this.element}},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass(d+" "+c).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());if(!this.hasTitle){this.buttonElement.removeAttr("title")}g.Widget.prototype.destroy.call(this)},_setOption:function(h,j){g.Widget.prototype._setOption.apply(this,arguments);if(h==="disabled"){if(j){this.element.attr("disabled",true)}else{this.element.removeAttr("disabled")}}this._resetButton()},refresh:function(){var h=this.element.is(":disabled");if(h!==this.options.disabled){this._setOption("disabled",h)}if(this.type==="radio"){a(this.element[0]).each(function(){if(g(this).is(":checked")){g(this).button("widget").addClass("ui-state-active").attr("aria-pressed",true)}else{g(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)}})}else{if(this.type==="checkbox"){if(this.element.is(":checked")){this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true)}else{this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)}}}},_resetButton:function(){if(this.type==="input"){if(this.options.label){this.element.val(this.options.label)}return}var n=this.buttonElement,l=g("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(n.empty()).text(),j=this.options.icons,h=j.primary&&j.secondary;if(j.primary||j.secondary){n.addClass("ui-button-text-icon"+(h?"s":""));if(j.primary){n.prepend("<span class='ui-button-icon-primary ui-icon "+j.primary+"'></span>")}if(j.secondary){n.append("<span class='ui-button-icon-secondary ui-icon "+j.secondary+"'></span>")}if(!this.options.text){n.addClass(h?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon");if(!this.hasTitle){n.attr("title",l)}}}else{n.addClass("ui-button-text-only")}}});g.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset");this._init()},_init:function(){this.refresh()},_setOption:function(h,j){if(h==="disabled"){this.buttons.button("option",h,j)}g.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(":button, :submit, :reset, :checkbox, :radio, a, :data(button)").filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return g(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return g(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");g.Widget.prototype.destroy.call(this)}})}(jQuery));(function(c){var a="ui-dialog ui-widget ui-widget-content ui-corner-all ";c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},_create:function(){this.originalTitle=this.element.attr("title");var o=this,p=o.options,l=p.title||o.originalTitle||"&#160;",e=c.ui.dialog.getTitleId(o.element),n=(o.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass(a+p.dialogClass).css({zIndex:p.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(q){if(p.closeOnEscape&&q.keyCode&&q.keyCode===c.ui.keyCode.ESCAPE){o.close(q);q.preventDefault()}}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(q){o.moveToTop(false,q)}),g=o.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(n),f=(o.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(n),j=c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){j.addClass("ui-state-hover")},function(){j.removeClass("ui-state-hover")}).focus(function(){j.addClass("ui-state-focus")}).blur(function(){j.removeClass("ui-state-focus")}).click(function(q){o.close(q);return false}).appendTo(f),h=(o.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(p.closeText).appendTo(j),d=c("<span></span>").addClass("ui-dialog-title").attr("id",e).html(l).prependTo(f);if(c.isFunction(p.beforeclose)&&!c.isFunction(p.beforeClose)){p.beforeClose=p.beforeclose}f.find("*").add(f).disableSelection();if(p.draggable&&c.fn.draggable){o._makeDraggable()}if(p.resizable&&c.fn.resizable){o._makeResizable()}o._createButtons(p.buttons);o._isOpen=false;if(c.fn.bgiframe){n.bgiframe()}},_init:function(){if(this.options.autoOpen){this.open()}},destroy:function(){var d=this;if(d.overlay){d.overlay.destroy()}d.uiDialog.hide();d.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");d.uiDialog.remove();if(d.originalTitle){d.element.attr("title",d.originalTitle)}return d},widget:function(){return this.uiDialog},close:function(f){var d=this,e;if(false===d._trigger("beforeClose",f)){return}if(d.overlay){d.overlay.destroy()}d.uiDialog.unbind("keypress.ui-dialog");d._isOpen=false;if(d.options.hide){d.uiDialog.hide(d.options.hide,function(){d._trigger("close",f)})}else{d.uiDialog.hide();d._trigger("close",f)}c.ui.dialog.overlay.resize();if(d.options.modal){e=0;c(".ui-dialog").each(function(){if(this!==d.uiDialog[0]){e=Math.max(e,c(this).css("z-index"))}});c.ui.dialog.maxZ=e}return d},isOpen:function(){return this._isOpen},moveToTop:function(h,g){var d=this,f=d.options,e;if((f.modal&&!h)||(!f.stack&&!f.modal)){return d._trigger("focus",g)}if(f.zIndex>c.ui.dialog.maxZ){c.ui.dialog.maxZ=f.zIndex}if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}e={scrollTop:d.element.attr("scrollTop"),scrollLeft:d.element.attr("scrollLeft")};c.ui.dialog.maxZ+=1;d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(e);d._trigger("focus",g);return d},open:function(){if(this._isOpen){return}var e=this,f=e.options,d=e.uiDialog;e.overlay=f.modal?new c.ui.dialog.overlay(e):null;if(d.next().length){d.appendTo("body")}e._size();e._position(f.position);d.show(f.show);e.moveToTop(true);if(f.modal){d.bind("keypress.ui-dialog",function(j){if(j.keyCode!==c.ui.keyCode.TAB){return}var h=c(":tabbable",this),l=h.filter(":first"),g=h.filter(":last");if(j.target===g[0]&&!j.shiftKey){l.focus(1);return false}else{if(j.target===l[0]&&j.shiftKey){g.focus(1);return false}}})}c([]).add(d.find(".ui-dialog-content :tabbable:first")).add(d.find(".ui-dialog-buttonpane :tabbable:first")).add(d).filter(":first").focus();e._trigger("open");e._isOpen=true;return e},_createButtons:function(g){var f=this,d=false,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");f.uiDialog.find(".ui-dialog-buttonpane").remove();if(typeof g==="object"&&g!==null){c.each(g,function(){return !(d=true)})}if(d){c.each(g,function(h,l){var j=c('<button type="button"></button>').text(h).click(function(){l.apply(f.element[0],arguments)}).appendTo(e);if(c.fn.button){j.button()}});e.appendTo(f.uiDialog)}},_makeDraggable:function(){var d=this,g=d.options,h=c(document),f;function e(j){return{position:j.position,offset:j.offset}}d.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(j,l){f=g.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");d._trigger("dragStart",j,e(l))},drag:function(j,l){d._trigger("drag",j,e(l))},stop:function(j,l){g.position=[l.position.left-h.scrollLeft(),l.position.top-h.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(f);d._trigger("dragStop",j,e(l));c.ui.dialog.overlay.resize()}})},_makeResizable:function(j){j=(j===undefined?this.options.resizable:j);var e=this,h=e.options,d=e.uiDialog.css("position"),g=(typeof j==="string"?j:"n,e,s,w,se,sw,ne,nw");function f(l){return{originalPosition:l.originalPosition,originalSize:l.originalSize,position:l.position,size:l.size}}e.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:e.element,maxWidth:h.maxWidth,maxHeight:h.maxHeight,minWidth:h.minWidth,minHeight:e._minHeight(),handles:g,start:function(l,n){c(this).addClass("ui-dialog-resizing");e._trigger("resizeStart",l,f(n))},resize:function(l,n){e._trigger("resize",l,f(n))},stop:function(l,n){c(this).removeClass("ui-dialog-resizing");h.height=c(this).height();h.width=c(this).width();e._trigger("resizeStop",l,f(n));c.ui.dialog.overlay.resize()}}).css("position",d).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var d=this.options;if(d.height==="auto"){return d.minHeight}else{return Math.min(d.minHeight,d.height)}},_position:function(e){var f=[],g=[0,0],d;e=e||c.ui.dialog.prototype.options.position;if(typeof e==="string"||(typeof e==="object"&&"0" in e)){f=e.split?e.split(" "):[e[0],e[1]];if(f.length===1){f[1]=f[0]}c.each(["left","top"],function(j,h){if(+f[j]===f[j]){g[j]=f[j];f[j]=h}})}else{if(typeof e==="object"){if("left" in e){f[0]="left";g[0]=e.left}else{if("right" in e){f[0]="right";g[0]=-e.right}}if("top" in e){f[1]="top";g[1]=e.top}else{if("bottom" in e){f[1]="bottom";g[1]=-e.bottom}}}}d=this.uiDialog.is(":visible");if(!d){this.uiDialog.show()}this.uiDialog.css({top:0,left:0}).position({my:f.join(" "),at:f.join(" "),offset:g.join(" "),of:window,collision:"fit",using:function(j){var h=c(this).css(j).offset().top;if(h<0){c(this).css("top",j.top-h)}}});if(!d){this.uiDialog.hide()}},_setOption:function(g,h){var e=this,d=e.uiDialog,j=d.is(":data(resizable)"),f=false;switch(g){case"beforeclose":g="beforeClose";break;case"buttons":e._createButtons(h);break;case"closeText":e.uiDialogTitlebarCloseText.text(""+h);break;case"dialogClass":d.removeClass(e.options.dialogClass).addClass(a+h);break;case"disabled":if(h){d.addClass("ui-dialog-disabled")}else{d.removeClass("ui-dialog-disabled")}break;case"draggable":if(h){e._makeDraggable()}else{d.draggable("destroy")}break;case"height":f=true;break;case"maxHeight":if(j){d.resizable("option","maxHeight",h)}f=true;break;case"maxWidth":if(j){d.resizable("option","maxWidth",h)}f=true;break;case"minHeight":if(j){d.resizable("option","minHeight",h)}f=true;break;case"minWidth":if(j){d.resizable("option","minWidth",h)}f=true;break;case"position":e._position(h);break;case"resizable":if(j&&!h){d.resizable("destroy")}if(j&&typeof h==="string"){d.resizable("option","handles",h)}if(!j&&h!==false){e._makeResizable(h)}break;case"title":c(".ui-dialog-title",e.uiDialogTitlebar).html(""+(h||"&#160;"));break;case"width":f=true;break}c.Widget.prototype._setOption.apply(e,arguments);if(f){e._size()}},_size:function(){var e=this.options,d;this.element.css({width:"auto",minHeight:0,height:0});d=this.uiDialog.css({height:"auto",width:e.width}).height();this.element.css(e.height==="auto"?{minHeight:Math.max(e.minHeight-d,0),height:"auto"}:{minHeight:0,height:Math.max(e.height-d,0)}).show();if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight())}}});c.extend(c.ui.dialog,{version:"1.8.1",uuid:0,maxZ:0,getTitleId:function(d){var e=d.attr("id");if(!e){this.uuid+=1;e=this.uuid}return"ui-dialog-title-"+e},overlay:function(d){this.$el=c.ui.dialog.overlay.create(d)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(d){return d+".dialog-overlay"}).join(" "),create:function(e){if(this.instances.length===0){setTimeout(function(){if(c.ui.dialog.overlay.instances.length){c(document).bind(c.ui.dialog.overlay.events,function(f){return(c(f.target).zIndex()>=c.ui.dialog.overlay.maxZ)})}},1);c(document).bind("keydown.dialog-overlay",function(f){if(e.options.closeOnEscape&&f.keyCode&&f.keyCode===c.ui.keyCode.ESCAPE){e.close(f);f.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var d=(this.oldInstances.pop()||c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});if(c.fn.bgiframe){d.bgiframe()}this.instances.push(d);return d},destroy:function(d){this.oldInstances.push(this.instances.splice(c.inArray(d,this.instances),1)[0]);if(this.instances.length===0){c([document,window]).unbind(".dialog-overlay")}d.remove();var e=0;c.each(this.instances,function(){e=Math.max(e,this.css("z-index"))});this.maxZ=e},height:function(){var e,d;if(c.browser.msie&&c.browser.version<7){e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(e<d){return c(window).height()+"px"}else{return e+"px"}}else{return c(document).height()+"px"}},width:function(){var d,e;if(c.browser.msie&&c.browser.version<7){d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(d<e){return c(window).width()+"px"}else{return d+"px"}}else{return c(document).width()+"px"}},resize:function(){var d=c([]);c.each(c.ui.dialog.overlay.instances,function(){d=d.add(this)});d.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})}(jQuery));(function(c){var a=5;c.widget("ui.slider",c.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var d=this,e=this.options;this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");if(e.disabled){this.element.addClass("ui-slider-disabled ui-disabled")}this.range=c([]);if(e.range){if(e.range===true){this.range=c("<div></div>");if(!e.values){e.values=[this._valueMin(),this._valueMin()]}if(e.values.length&&e.values.length!==2){e.values=[e.values[0],e.values[0]]}}else{this.range=c("<div></div>")}this.range.appendTo(this.element).addClass("ui-slider-range");if(e.range==="min"||e.range==="max"){this.range.addClass("ui-slider-range-"+e.range)}this.range.addClass("ui-widget-header")}if(c(".ui-slider-handle",this.element).length===0){c("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle")}if(e.values&&e.values.length){while(c(".ui-slider-handle",this.element).length<e.values.length){c("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle")}}this.handles=c(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(f){f.preventDefault()}).hover(function(){if(!e.disabled){c(this).addClass("ui-state-hover")}},function(){c(this).removeClass("ui-state-hover")}).focus(function(){if(!e.disabled){c(".ui-slider .ui-state-focus").removeClass("ui-state-focus");c(this).addClass("ui-state-focus")}else{c(this).blur()}}).blur(function(){c(this).removeClass("ui-state-focus")});this.handles.each(function(f){c(this).data("index.ui-slider-handle",f)});this.handles.keydown(function(n){var h=true,g=c(this).data("index.ui-slider-handle"),o,j,f,l;if(d.options.disabled){return}switch(n.keyCode){case c.ui.keyCode.HOME:case c.ui.keyCode.END:case c.ui.keyCode.PAGE_UP:case c.ui.keyCode.PAGE_DOWN:case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:h=false;if(!d._keySliding){d._keySliding=true;c(this).addClass("ui-state-active");o=d._start(n,g);if(o===false){return}}break}l=d.options.step;if(d.options.values&&d.options.values.length){j=f=d.values(g)}else{j=f=d.value()}switch(n.keyCode){case c.ui.keyCode.HOME:f=d._valueMin();break;case c.ui.keyCode.END:f=d._valueMax();break;case c.ui.keyCode.PAGE_UP:f=j+((d._valueMax()-d._valueMin())/a);break;case c.ui.keyCode.PAGE_DOWN:f=j-((d._valueMax()-d._valueMin())/a);break;case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:if(j===d._valueMax()){return}f=j+l;break;case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:if(j===d._valueMin()){return}f=j-l;break}d._slide(n,g,f);return h}).keyup(function(g){var f=c(this).data("index.ui-slider-handle");if(d._keySliding){d._keySliding=false;d._stop(g,f);d._change(g,f);c(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this},_mouseCapture:function(f){var g=this.options,l,p,e,h,r,n,q,j,d;if(g.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();l={x:f.pageX,y:f.pageY};p=this._normValueFromMouse(l);e=this._valueMax()-this._valueMin()+1;r=this;this.handles.each(function(o){var u=Math.abs(p-r.values(o));if(e>u){e=u;h=c(this);n=o}});if(g.range===true&&this.values(1)===g.min){n+=1;h=c(this.handles[n])}q=this._start(f,n);if(q===false){return false}this._mouseSliding=true;r._handleIndex=n;h.addClass("ui-state-active").focus();j=h.offset();d=!c(f.target).parents().andSelf().is(".ui-slider-handle");this._clickOffset=d?{left:0,top:0}:{left:f.pageX-j.left-(h.width()/2),top:f.pageY-j.top-(h.height()/2)-(parseInt(h.css("borderTopWidth"),10)||0)-(parseInt(h.css("borderBottomWidth"),10)||0)+(parseInt(h.css("marginTop"),10)||0)};p=this._normValueFromMouse(l);this._slide(f,n,p);this._animateOff=true;return true},_mouseStart:function(d){return true},_mouseDrag:function(f){var d={x:f.pageX,y:f.pageY},e=this._normValueFromMouse(d);this._slide(f,this._handleIndex,e);return false},_mouseStop:function(d){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(d,this._handleIndex);this._change(d,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false},_detectOrientation:function(){this.orientation=(this.options.orientation==="vertical")?"vertical":"horizontal"},_normValueFromMouse:function(e){var d,h,g,f,j;if(this.orientation==="horizontal"){d=this.elementSize.width;h=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{d=this.elementSize.height;h=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}g=(h/d);if(g>1){g=1}if(g<0){g=0}if(this.orientation==="vertical"){g=1-g}f=this._valueMax()-this._valueMin();j=this._valueMin()+g*f;return this._trimAlignValue(j)},_start:function(f,e){var d={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){d.value=this.values(e);d.values=this.values()}return this._trigger("start",f,d)},_slide:function(h,g,f){var d,e,j;if(this.options.values&&this.options.values.length){d=this.values(g?0:1);if((this.options.values.length===2&&this.options.range===true)&&((g===0&&f>d)||(g===1&&f<d))){f=d}if(f!==this.values(g)){e=this.values();e[g]=f;j=this._trigger("slide",h,{handle:this.handles[g],value:f,values:e});d=this.values(g?0:1);if(j!==false){this.values(g,f,true)}}}else{if(f!==this.value()){j=this._trigger("slide",h,{handle:this.handles[g],value:f});if(j!==false){this.value(f)}}}},_stop:function(f,e){var d={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){d.value=this.values(e);d.values=this.values()}this._trigger("stop",f,d)},_change:function(f,e){if(!this._keySliding&&!this._mouseSliding){var d={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){d.value=this.values(e);d.values=this.values()}this._trigger("change",f,d)}},value:function(d){if(arguments.length){this.options.value=this._trimAlignValue(d);this._refreshValue();this._change(null,0)}return this._value()},values:function(e,h){var g,d,f;if(arguments.length>1){this.options.values[e]=this._trimAlignValue(h);this._refreshValue();this._change(null,e)}if(arguments.length){if(c.isArray(arguments[0])){g=this.options.values;d=arguments[0];for(f=0;f<g.length;f+=1){g[f]=this._trimAlignValue(d[f]);this._change(null,f)}this._refreshValue()}else{if(this.options.values&&this.options.values.length){return this._values(e)}else{return this.value()}}}else{return this._values()}},_setOption:function(e,f){var d,g=0;if(c.isArray(this.options.values)){g=this.options.values.length}c.Widget.prototype._setOption.apply(this,arguments);switch(e){case"disabled":if(f){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case"value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;this._refreshValue();for(d=0;d<g;d+=1){this._change(null,d)}this._animateOff=false;break}},_value:function(){var d=this.options.value;d=this._trimAlignValue(d);return d},_values:function(d){var g,f,e;if(arguments.length){g=this.options.values[d];g=this._trimAlignValue(g);return g}else{f=this.options.values.slice();for(e=0;e<f.length;e+=1){f[e]=this._trimAlignValue(f[e])}return f}},_trimAlignValue:function(g){if(g<this._valueMin()){return this._valueMin()}if(g>this._valueMax()){return this._valueMax()}var d=this.options.step,f=g%d,e=g-f;if(f>=(d/2)){e+=d}return parseFloat(e.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var g=this.options.range,f=this.options,q=this,e=(!this._animateOff)?f.animate:false,h,d={},j,n,l,p;if(this.options.values&&this.options.values.length){this.handles.each(function(r,o){h=(q.values(r)-q._valueMin())/(q._valueMax()-q._valueMin())*100;d[q.orientation==="horizontal"?"left":"bottom"]=h+"%";c(this).stop(1,1)[e?"animate":"css"](d,f.animate);if(q.options.range===true){if(q.orientation==="horizontal"){if(r===0){q.range.stop(1,1)[e?"animate":"css"]({left:h+"%"},f.animate)}if(r===1){q.range[e?"animate":"css"]({width:(h-j)+"%"},{queue:false,duration:f.animate})}}else{if(r===0){q.range.stop(1,1)[e?"animate":"css"]({bottom:(h)+"%"},f.animate)}if(r===1){q.range[e?"animate":"css"]({height:(h-j)+"%"},{queue:false,duration:f.animate})}}}j=h})}else{n=this.value();l=this._valueMin();p=this._valueMax();h=(p!==l)?(n-l)/(p-l)*100:0;d[q.orientation==="horizontal"?"left":"bottom"]=h+"%";this.handle.stop(1,1)[e?"animate":"css"](d,f.animate);if(g==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[e?"animate":"css"]({width:h+"%"},f.animate)}if(g==="max"&&this.orientation==="horizontal"){this.range[e?"animate":"css"]({width:(100-h)+"%"},{queue:false,duration:f.animate})}if(g==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[e?"animate":"css"]({height:h+"%"},f.animate)}if(g==="max"&&this.orientation==="vertical"){this.range[e?"animate":"css"]({height:(100-h)+"%"},{queue:false,duration:f.animate})}}}});c.extend(c.ui.slider,{version:"1.8.1"})}(jQuery));(function(d){var c=0,a=0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'},_create:function(){this._tabify(true)},_setOption:function(e,f){if(e=="selected"){if(this.options.collapsible&&f==this.options.selected){return}this.select(f)}else{this.options[e]=f;this._tabify()}},_tabId:function(e){return e.title&&e.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+(++c)},_sanitizeSelector:function(e){return e.replace(/:/g,"\\:")},_cookie:function(){var e=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+(++a));return d.cookie.apply(null,[e].concat(d.makeArray(arguments)))},_ui:function(f,e){return{tab:f,panel:e,index:this.anchors.index(f)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var e=d(this);e.html(e.data("label.tabs")).removeData("label.tabs")})},_tabify:function(v){this.list=this.element.find("ol,ul").eq(0);this.lis=d("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);var w=this,g=this.options;var f=/^#.+/;this.anchors.each(function(y,o){var x=d(o).attr("href");var z=x.split("#")[0],A;if(z&&(z===location.toString().split("#")[0]||(A=d("base")[0])&&z===A.href)){x=o.hash;o.href=x}if(f.test(x)){w.panels=w.panels.add(w._sanitizeSelector(x))}else{if(x!="#"){d.data(o,"href.tabs",x);d.data(o,"load.tabs",x.replace(/#.*$/,""));var C=w._tabId(o);o.href="#"+C;var B=d("#"+C);if(!B.length){B=d(g.panelTemplate).attr("id",C).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(w.panels[y-1]||w.list);B.data("destroy.tabs",true)}w.panels=w.panels.add(B)}else{g.disabled.push(y)}}});if(v){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(g.selected===undefined){if(location.hash){this.anchors.each(function(x,o){if(o.hash==location.hash){g.selected=x;return false}})}if(typeof g.selected!="number"&&g.cookie){g.selected=parseInt(w._cookie(),10)}if(typeof g.selected!="number"&&this.lis.filter(".ui-tabs-selected").length){g.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}g.selected=g.selected||(this.lis.length?0:-1)}else{if(g.selected===null){g.selected=-1}}g.selected=((g.selected>=0&&this.anchors[g.selected])||g.selected<0)?g.selected:0;g.disabled=d.unique(g.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(x,o){return w.lis.index(x)}))).sort();if(d.inArray(g.selected,g.disabled)!=-1){g.disabled.splice(d.inArray(g.selected,g.disabled),1)}this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(g.selected>=0&&this.anchors.length){this.panels.eq(g.selected).removeClass("ui-tabs-hide");this.lis.eq(g.selected).addClass("ui-tabs-selected ui-state-active");w.element.queue("tabs",function(){w._trigger("show",null,w._ui(w.anchors[g.selected],w.panels[g.selected]))});this.load(g.selected)}d(window).bind("unload",function(){w.lis.add(w.anchors).unbind(".tabs");w.lis=w.anchors=w.panels=null})}else{g.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[g.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");if(g.cookie){this._cookie(g.selected,g.cookie)}for(var l=0,u;(u=this.lis[l]);l++){d(u)[d.inArray(l,g.disabled)!=-1&&!d(u).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}if(g.cache===false){this.anchors.removeData("cache.tabs")}this.lis.add(this.anchors).unbind(".tabs");if(g.event!="mouseover"){var j=function(x,o){if(o.is(":not(.ui-state-disabled)")){o.addClass("ui-state-"+x)}};var p=function(x,o){o.removeClass("ui-state-"+x)};this.lis.bind("mouseover.tabs",function(){j("hover",d(this))});this.lis.bind("mouseout.tabs",function(){p("hover",d(this))});this.anchors.bind("focus.tabs",function(){j("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){p("focus",d(this).closest("li"))})}var e,n;if(g.fx){if(d.isArray(g.fx)){e=g.fx[0];n=g.fx[1]}else{e=n=g.fx}}function h(o,x){o.css({display:""});if(!d.support.opacity&&x.opacity){o[0].style.removeAttribute("filter")}}var q=n?function(o,x){d(o).closest("li").addClass("ui-tabs-selected ui-state-active");x.hide().removeClass("ui-tabs-hide").animate(n,n.duration||"normal",function(){h(x,n);w._trigger("show",null,w._ui(o,x[0]))})}:function(o,x){d(o).closest("li").addClass("ui-tabs-selected ui-state-active");x.removeClass("ui-tabs-hide");w._trigger("show",null,w._ui(o,x[0]))};var r=e?function(x,o){o.animate(e,e.duration||"normal",function(){w.lis.removeClass("ui-tabs-selected ui-state-active");o.addClass("ui-tabs-hide");h(o,e);w.element.dequeue("tabs")})}:function(x,o,y){w.lis.removeClass("ui-tabs-selected ui-state-active");o.addClass("ui-tabs-hide");w.element.dequeue("tabs")};this.anchors.bind(g.event+".tabs",function(){var x=this,z=d(this).closest("li"),o=w.panels.filter(":not(.ui-tabs-hide)"),y=d(w._sanitizeSelector(this.hash));if((z.hasClass("ui-tabs-selected")&&!g.collapsible)||z.hasClass("ui-state-disabled")||z.hasClass("ui-state-processing")||w._trigger("select",null,w._ui(this,y[0]))===false){this.blur();return false}g.selected=w.anchors.index(this);w.abort();if(g.collapsible){if(z.hasClass("ui-tabs-selected")){g.selected=-1;if(g.cookie){w._cookie(g.selected,g.cookie)}w.element.queue("tabs",function(){r(x,o)}).dequeue("tabs");this.blur();return false}else{if(!o.length){if(g.cookie){w._cookie(g.selected,g.cookie)}w.element.queue("tabs",function(){q(x,y)});w.load(w.anchors.index(this));this.blur();return false}}}if(g.cookie){w._cookie(g.selected,g.cookie)}if(y.length){if(o.length){w.element.queue("tabs",function(){r(x,o)})}w.element.queue("tabs",function(){q(x,y)});w.load(w.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(d.browser.msie){this.blur()}});this.anchors.bind("click.tabs",function(){return false})},destroy:function(){var e=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var f=d.data(this,"href.tabs");if(f){this.href=f}var g=d(this).unbind(".tabs");d.each(["href","load","cache"],function(h,j){g.removeData(j+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){if(d.data(this,"destroy.tabs")){d(this).remove()}else{d(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}});if(e.cookie){this._cookie(null,e.cookie)}return this},add:function(h,g,f){if(f===undefined){f=this.anchors.length}var e=this,l=this.options,p=d(l.tabTemplate.replace(/#\{href\}/g,h).replace(/#\{label\}/g,g)),n=!h.indexOf("#")?h.replace("#",""):this._tabId(d("a",p)[0]);p.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=d("#"+n);if(!j.length){j=d(l.panelTemplate).attr("id",n).data("destroy.tabs",true)}j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(f>=this.lis.length){p.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{p.insertBefore(this.lis[f]);j.insertBefore(this.panels[f])}l.disabled=d.map(l.disabled,function(q,o){return q>=f?++q:q});this._tabify();if(this.anchors.length==1){l.selected=0;p.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){e._trigger("show",null,e._ui(e.anchors[0],e.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[f],this.panels[f]));return this},remove:function(e){var g=this.options,h=this.lis.eq(e).remove(),f=this.panels.eq(e).remove();if(h.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(e+(e+1<this.anchors.length?1:-1))}g.disabled=d.map(d.grep(g.disabled,function(l,j){return l!=e}),function(l,j){return l>=e?--l:l});this._tabify();this._trigger("remove",null,this._ui(h.find("a")[0],f[0]));return this},enable:function(e){var f=this.options;if(d.inArray(e,f.disabled)==-1){return}this.lis.eq(e).removeClass("ui-state-disabled");f.disabled=d.grep(f.disabled,function(h,g){return h!=e});this._trigger("enable",null,this._ui(this.anchors[e],this.panels[e]));return this},disable:function(f){var e=this,g=this.options;if(f!=g.selected){this.lis.eq(f).addClass("ui-state-disabled");g.disabled.push(f);g.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[f],this.panels[f]))}return this},select:function(e){if(typeof e=="string"){e=this.anchors.index(this.anchors.filter("[href$="+e+"]"))}else{if(e===null){e=-1}}if(e==-1&&this.options.collapsible){e=this.options.selected}this.anchors.eq(e).trigger(this.options.event+".tabs");return this},load:function(h){var f=this,l=this.options,e=this.anchors.eq(h)[0],g=d.data(e,"load.tabs");this.abort();if(!g||this.element.queue("tabs").length!==0&&d.data(e,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(h).addClass("ui-state-processing");if(l.spinner){var j=d("span",e);j.data("label.tabs",j.html()).html(l.spinner)}this.xhr=d.ajax(d.extend({},l.ajaxOptions,{url:g,success:function(o,n){d(f._sanitizeSelector(e.hash)).html(o);f._cleanup();if(l.cache){d.data(e,"cache.tabs",true)}f._trigger("load",null,f._ui(f.anchors[h],f.panels[h]));try{l.ajaxOptions.success(o,n)}catch(p){}},error:function(p,n,o){f._cleanup();f._trigger("load",null,f._ui(f.anchors[h],f.panels[h]));try{l.ajaxOptions.error(p,n,h,e)}catch(o){}}}));f.element.dequeue("tabs");return this},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(f,e){this.anchors.eq(f).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.1"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(g,j){var e=this,l=this.options;var f=e._rotate||(e._rotate=function(n){clearTimeout(e.rotation);e.rotation=setTimeout(function(){var o=l.selected;e.select(++o<e.anchors.length?o:0)},g);if(n){n.stopPropagation()}});var h=e._unrotate||(e._unrotate=!j?function(n){if(n.clientX){e.rotate(null)}}:function(n){t=l.selected;f()});if(g){this.element.bind("tabsshow",f);this.anchors.bind(l.event+".tabs",h);f()}else{clearTimeout(e.rotation);this.element.unbind("tabsshow",f);this.anchors.unbind(l.event+".tabs",h);delete this._rotate;delete this._unrotate}return this}})})(jQuery);(function($){$.extend($.ui,{datepicker:{version:"1.8.1"}});var PROP_NAME="datepicker";var dpuuid=new Date().getTime();function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"_default",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};$.extend(this._defaults,this.regional[""]);this.dpDiv=$('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){target.id="dp"+(++this.uuid)}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([^A-Za-z0-9_])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}this._attachments(input,inst);input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});this._autoSize(inst);$.data(target,PROP_NAME,inst)},_attachments:function(input,inst){var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(inst.append){inst.append.remove()}if(appendText){inst.append=$('<span class="'+this._appendClass+'">'+appendText+"</span>");input[isRTL?"before":"after"](inst.append)}input.unbind("focus",this._showDatepicker);if(inst.trigger){inst.trigger.remove()}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");inst.trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==input[0]){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(input[0])}return false})}},_autoSize:function(inst){if(this._get(inst,"autoSize")&&!inst.inline){var date=new Date(2009,12-1,20);var dateFormat=this._get(inst,"dateFormat");if(dateFormat.match(/[DM]/)){var findMax=function(names){var max=0;var maxI=0;for(var i=0;i<names.length;i++){if(names[i].length>max){max=names[i].length;maxI=i}}return maxI};date.setMonth(findMax(this._get(inst,(dateFormat.match(/MM/)?"monthNames":"monthNamesShort"))));date.setDate(findMax(this._get(inst,(dateFormat.match(/DD/)?"dayNames":"dayNamesShort")))+20-date.getDay())}inst.input.attr("size",this._formatDate(inst,date).length)}},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst),true);this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,date,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id="dp"+(++this.uuid);this._dialogInput=$('<input type="text" id="'+id+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});date=(date&&date.constructor==Date?this._formatDate(inst,date):date);this._dialogInput.val(date);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=document.documentElement.clientWidth;var browserHeight=document.documentElement.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",(this._pos[0]+20)+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;inst.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;inst.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().addClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(target,name,value){var inst=this._getInst(target);if(arguments.length==2&&typeof name=="string"){return(name=="defaults"?$.extend({},$.datepicker._defaults):(inst?(name=="all"?$.extend({},inst.settings):this._get(inst,name)):null))}var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}if(inst){if(this._curInst==inst){this._hideDatepicker()}var date=this._getDateDatepicker(target,true);extendRemove(inst.settings,settings);this._attachments($(target),inst);this._autoSize(inst);this._setDateDatepicker(target,date);this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date){var inst=this._getInst(target);if(inst){this._setDate(inst,date);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target,noDefault){var inst=this._getInst(target);if(inst&&!inst.inline){this._setDateFromField(inst,noDefault)}return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(".ui-datepicker-rtl");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker();handled=false;break;case 13:var sel=$("td."+$.datepicker._dayOverClass,inst.dpDiv).add($("td."+$.datepicker._currentClass,inst.dpDiv));if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])}else{$.datepicker._hideDatepicker()}return false;break;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M")}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,"D")}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M")}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,"D")}handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else{if(event.keyCode==36&&event.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,"constrainInput")){var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr<" "||!chars||chars.indexOf(chr)>-1)}},_doKeyUp:function(event){var inst=$.datepicker._getInst(event.target);if(inst.input.val()!=inst.lastVal){try{var date=$.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),(inst.input?inst.input.val():null),$.datepicker._getFormatConfig(inst));if(date){$.datepicker._setDateFromField(inst);$.datepicker._updateAlternate(inst);$.datepicker._updateDatepicker(inst)}}catch(event){$.datepicker.log(event)}}return true},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);if($.datepicker._curInst&&$.datepicker._curInst!=inst){$.datepicker._curInst.dpDiv.stop(true,true)}var beforeShow=$.datepicker._get(inst,"beforeShow");extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));inst.lastVal=null;$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim");var duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datepicker._datepickerShowing=true;var borders=$.datepicker._getBorders(inst.dpDiv);inst.dpDiv.find("iframe.ui-datepicker-cover").css({left:-borders[0],top:-borders[1],width:inst.dpDiv.outerWidth(),height:inst.dpDiv.outerHeight()})};inst.dpDiv.zIndex($(input).zIndex()+1);if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim||"show"]((showAnim?duration:null),postProcess)}if(!showAnim||!duration){postProcess()}if(inst.input.is(":visible")&&!inst.input.is(":disabled")){inst.input.focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var self=this;var borders=$.datepicker._getBorders(inst.dpDiv);inst.dpDiv.empty().append(this._generateHTML(inst)).find("iframe.ui-datepicker-cover").css({left:-borders[0],top:-borders[1],width:inst.dpDiv.outerWidth(),height:inst.dpDiv.outerHeight()}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){$(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).removeClass("ui-datepicker-next-hover")}}).bind("mouseover",function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).addClass("ui-datepicker-next-hover")}}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em")}else{inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("")}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst==$.datepicker._curInst&&$.datepicker._datepickerShowing&&inst.input&&inst.input.is(":visible")&&!inst.input.is(":disabled")){inst.input.focus()}},_getBorders:function(elem){var convert=function(value){return{thin:1,medium:2,thick:3}[value]||value};return[parseFloat(convert(elem.css("border-left-width"))),parseFloat(convert(elem.css("border-top-width")))]},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=document.documentElement.clientWidth+$(document).scrollLeft();var viewHeight=document.documentElement.clientHeight+$(document).scrollTop();offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=Math.min(offset.left,(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0);offset.top-=Math.min(offset.top,(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(dpHeight+inputHeight):0);return offset},_findPos:function(obj){var inst=this._getInst(obj);var isRTL=this._get(inst,"isRTL");while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj[isRTL?"previousSibling":"nextSibling"]}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return}if(this._datepickerShowing){var showAnim=this._get(inst,"showAnim");var duration=this._get(inst,"duration");var postProcess=function(){$.datepicker._tidyDialog(inst);this._curInst=null};if($.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide"))]((showAnim?duration:null),postProcess)}if(!showAnim){postProcess()}var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target);if($target[0].id!=$.datepicker._mainDivId&&$target.parents("#"+$.datepicker._mainDivId).length==0&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker()}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie){inst.input.focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{this._hideDatepicker();this._lastInput=inst.input[0];if(typeof(inst.input[0])!="object"){inst.input.focus()}this._lastInput=null}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);var dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getTime());checkDate.setDate(checkDate.getDate()+4-(checkDate.getDay()||7));var time=checkDate.getTime();checkDate.setMonth(0);checkDate.setDate(1);return Math.floor(Math.round((time-checkDate)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments"}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){lookAhead(match);var size=(match=="@"?14:(match=="!"?20:(match=="y"?4:(match=="o"?3:2))));var digits=new RegExp("^\\d{1,"+size+"}");var num=value.substring(iValue).match(digits);if(!num){throw"Missing number at position "+iValue}iValue+=num[0].length;return parseInt(num[0],10)};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);for(var i=0;i<names.length;i++){if(value.substr(iValue,names[i].length)==names[i]){iValue+=names[i].length;return i+1}}throw"Unknown name at position "+iValue};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"o":doy=getNumber("o");break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"@":var date=new Date(getNumber("@"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"!":var date=new Date((getNumber("!")-this._ticksTo1970)/10000);year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'")){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year==-1){year=new Date().getFullYear()}else{if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}}if(doy>-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*10000000),formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value,len){var num=""+value;if(lookAhead(match)){while(num.length<len){num="0"+num}}return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output="";var literal=false;if(date){for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"o":output+=formatNumber("o",(date.getTime()-new Date(date.getFullYear(),0,0).getTime())/86400000,3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"!":output+=date.getTime()*10000+this._ticksTo1970;break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";break;case"D":case"M":return null;case"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst,noDefault){if(inst.input.val()==inst.lastVal){return}var dateFormat=this._get(inst,"dateFormat");var dates=inst.lastVal=inst.input?inst.input.val():null;var date,defaultDate;date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);dates=(noDefault?"":dates)}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){return this._restrictMinMax(inst,this._determineDate(inst,this._get(inst,"defaultDate"),new Date()))},_determineDate:function(inst,date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset){try{return $.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),offset,$.datepicker._getFormatConfig(inst))}catch(e){}var date=(offset.toLowerCase().match(/^c/)?$.datepicker._getDate(inst):null)||new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date=="string"?offsetString(date):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&&date.toString()=="Invalid Date"?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,noChange){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._restrictMinMax(inst,this._determineDate(inst,date,new Date()));inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if((origMonth!=inst.selectedMonth||origYear!=inst.selectedYear)&&!noChange){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,"isRTL");var showButtonPanel=this._get(inst,"showButtonPanel");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-(numMonths[0]*numMonths[1])+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._adjustDate('#"+inst.id+"', -"+stepMonths+", 'M');\" title=\""+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>"));var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._adjustDate('#"+inst.id+"', +"+stepMonths+", 'M');\" title=\""+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>"));var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+dpuuid+'.datepicker._hideDatepicker();">'+this._get(inst,"closeText")+"</button>":"");var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._gotoToday('#"+inst.id+"');\">"+currentText+"</button>":"")+(isRTL?"":controls)+"</div>":"";var firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);var showWeek=this._get(inst,"showWeek");var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var monthNamesShort=this._get(inst,"monthNamesShort");var beforeShowDay=this._get(inst,"beforeShowDay");var showOtherMonths=this._get(inst,"showOtherMonths");var selectOtherMonths=this._get(inst,"selectOtherMonths");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var defaultDate=this._getDefaultDate(inst);var html="";for(var row=0;row<numMonths[0];row++){var group="";for(var col=0;col<numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=" ui-corner-all";var calender="";if(isMultiMonth){calender+='<div class="ui-datepicker-group';if(numMonths[1]>1){switch(col){case 0:calender+=" ui-datepicker-group-first";cornerClass=" ui-corner-"+(isRTL?"right":"left");break;case numMonths[1]-1:calender+=" ui-datepicker-group-last";cornerClass=" ui-corner-"+(isRTL?"left":"right");break;default:calender+=" ui-datepicker-group-middle";cornerClass="";break}}calender+='">'}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var thead=(showWeek?'<th class="ui-datepicker-week-col">'+this._get(inst,"weekHeader")+"</th>":"");for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+="<th"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+dayNames[day]+'">'+dayNamesMin[day]+"</span></th>"}calender+=thead+"</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow<numRows;dRow++){calender+="<tr>";var tbody=(!showWeek?"":'<td class="ui-datepicker-week-col">'+this._get(inst,"calculateWeek")(printDate)+"</td>");for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=(otherMonth&&!selectOtherMonths)||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+='<td class="'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()==currentDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":' onclick="DP_jQuery_'+dpuuid+".datepicker._selectDay('#"+inst.id+"',"+printDate.getMonth()+","+printDate.getFullYear()+', this);return false;"')+">"+(otherMonth&&!showOtherMonths?"&#xa0;":(unselectable?'<span class="ui-state-default">'+printDate.getDate()+"</span>":'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?" ui-state-highlight":"")+(printDate.getTime()==currentDate.getTime()?" ui-state-active":"")+(otherMonth?" ui-priority-secondary":"")+'" href="#">'+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+"</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col==numMonths[1]-1)?'<div class="ui-datepicker-row-break"></div>':""):"");group+=calender}html+=group}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,secondary,monthNames,monthNamesShort){var changeMonth=this._get(inst,"changeMonth");var changeYear=this._get(inst,"changeYear");var showMonthAfterYear=this._get(inst,"showMonthAfterYear");var html='<div class="ui-datepicker-title">';var monthHtml="";if(secondary||!changeMonth){monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+"</span>"}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+dpuuid+".datepicker._selectMonthYear('#"+inst.id+"', this, 'M');\" onclick=\"DP_jQuery_"+dpuuid+".datepicker._clickMonthYear('#"+inst.id+"');\">";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNamesShort[month]+"</option>"}}monthHtml+="</select>"}if(!showMonthAfterYear){html+=monthHtml+(secondary||!(changeMonth&&changeYear)?"&#xa0;":"")}if(secondary||!changeYear){html+='<span class="ui-datepicker-year">'+drawYear+"</span>"}else{var years=this._get(inst,"yearRange").split(":");var thisYear=new Date().getFullYear();var determineYear=function(value){var year=(value.match(/c[+-].*/)?drawYear+parseInt(value.substring(1),10):(value.match(/[+-].*/)?thisYear+parseInt(value,10):parseInt(value,10)));return(isNaN(year)?thisYear:year)};var year=determineYear(years[0]);var endYear=Math.max(year,determineYear(years[1]||""));year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+dpuuid+".datepicker._selectMonthYear('#"+inst.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+dpuuid+".datepicker._clickMonthYear('#"+inst.id+"');\">";for(;year<=endYear;year++){html+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}html+="</select>"}html+=this._get(inst,"yearSuffix");if(showMonthAfterYear){html+=(secondary||!(changeMonth&&changeYear)?"&#xa0;":"")+monthHtml}html+="</div>";return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._restrictMinMax(inst,this._daylightSavingAdjust(new Date(year,month,day)));inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_restrictMinMax:function(inst,date){var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);return date},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax){return this._determineDate(inst,this._get(inst,minMax+"Date"),null)},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[0]*numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");return((!minDate||date.getTime()>=minDate.getTime())&&(!maxDate||date.getTime()<=maxDate.getTime()))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate"||options=="widget")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.8.1";window["DP_jQuery_"+dpuuid]=$})(jQuery);(function(a){a.widget("ui.progressbar",{options:{value:0},_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin(),"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.valueDiv.remove();a.Widget.prototype.destroy.apply(this,arguments)},value:function(c){if(c===undefined){return this._value()}this._setOption("value",c);return this},_setOption:function(c,d){switch(c){case"value":this.options.value=d;this._refreshValue();this._trigger("change");break}a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var c=this.options.value;if(typeof c!=="number"){c=0}if(c<this._valueMin()){c=this._valueMin()}if(c>this._valueMax()){c=this._valueMax()}return c},_valueMin:function(){return 0},_valueMax:function(){return 100},_refreshValue:function(){var c=this.value();this.valueDiv[c===this._valueMax()?"addClass":"removeClass"]("ui-corner-right").width(c+"%");this.element.attr("aria-valuenow",c)}});a.extend(a.ui.progressbar,{version:"1.8.1"})})(jQuery);jQuery.effects||(function(h){h.effects={};h.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(p,o){h.fx.step[o]=function(q){if(!q.colorInit){q.start=n(q.elem,o);q.end=l(q.end);q.colorInit=true}q.elem.style[o]="rgb("+Math.max(Math.min(parseInt((q.pos*(q.end[0]-q.start[0]))+q.start[0],10),255),0)+","+Math.max(Math.min(parseInt((q.pos*(q.end[1]-q.start[1]))+q.start[1],10),255),0)+","+Math.max(Math.min(parseInt((q.pos*(q.end[2]-q.start[2]))+q.start[2],10),255),0)+")"}});function l(p){var o;if(p&&p.constructor==Array&&p.length==3){return p}if(o=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(p)){return[parseInt(o[1],10),parseInt(o[2],10),parseInt(o[3],10)]}if(o=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(p)){return[parseFloat(o[1])*2.55,parseFloat(o[2])*2.55,parseFloat(o[3])*2.55]}if(o=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(p)){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}if(o=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(p)){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}if(o=/rgba\(0, 0, 0, 0\)/.exec(p)){return a.transparent}return a[h.trim(p).toLowerCase()]}function n(q,o){var p;do{p=h.curCSS(q,o);if(p!=""&&p!="transparent"||h.nodeName(q,"body")){break}o="backgroundColor"}while(q=q.parentNode);return l(p)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};var f=["add","remove","toggle"],d={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function g(){var r=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,u={},p,q;if(r&&r.length&&r[0]&&r[r[0]]){var o=r.length;while(o--){p=r[o];if(typeof r[p]=="string"){q=p.replace(/\-(\w)/g,function(v,w){return w.toUpperCase()});u[q]=r[p]}}}else{for(p in r){if(typeof r[p]==="string"){u[p]=r[p]}}}return u}function c(p){var o,q;for(o in p){q=p[o];if(q==null||h.isFunction(q)||o in d||(/scrollbar/).test(o)||(!(/color/i).test(o)&&isNaN(parseFloat(q)))){delete p[o]}}return p}function j(o,q){var r={_:0},p;for(p in q){if(o[p]!=q[p]){r[p]=q[p]}}return r}h.effects.animateClass=function(o,p,r,q){if(h.isFunction(r)){q=r;r=null}return this.each(function(){var x=h(this),u=x.attr("style")||" ",y=c(g.call(this)),w,v=x.attr("className");h.each(f,function(z,A){if(o[A]){x[A+"Class"](o[A])}});w=c(g.call(this));x.attr("className",v);x.animate(j(y,w),p,r,function(){h.each(f,function(z,A){if(o[A]){x[A+"Class"](o[A])}});if(typeof x.attr("style")=="object"){x.attr("style").cssText="";x.attr("style").cssText=u}else{x.attr("style",u)}if(q){q.apply(this,arguments)}})})};h.fn.extend({_addClass:h.fn.addClass,addClass:function(p,o,r,q){return o?h.effects.animateClass.apply(this,[{add:p},o,r,q]):this._addClass(p)},_removeClass:h.fn.removeClass,removeClass:function(p,o,r,q){return o?h.effects.animateClass.apply(this,[{remove:p},o,r,q]):this._removeClass(p)},_toggleClass:h.fn.toggleClass,toggleClass:function(q,p,o,u,r){if(typeof p=="boolean"||p===undefined){if(!o){return this._toggleClass(q,p)}else{return h.effects.animateClass.apply(this,[(p?{add:q}:{remove:q}),o,u,r])}}else{return h.effects.animateClass.apply(this,[{toggle:q},p,o,u])}},switchClass:function(o,q,p,u,r){return h.effects.animateClass.apply(this,[{add:q,remove:o},p,u,r])}});h.extend(h.effects,{version:"1.8.1",save:function(p,q){for(var o=0;o<q.length;o++){if(q[o]!==null){p.data("ec.storage."+q[o],p[0].style[q[o]])}}},restore:function(p,q){for(var o=0;o<q.length;o++){if(q[o]!==null){p.css(q[o],p.data("ec.storage."+q[o]))}}},setMode:function(o,p){if(p=="toggle"){p=o.is(":hidden")?"show":"hide"}return p},getBaseline:function(p,q){var r,o;switch(p[0]){case"top":r=0;break;case"middle":r=0.5;break;case"bottom":r=1;break;default:r=p[0]/q.height}switch(p[1]){case"left":o=0;break;case"center":o=0.5;break;case"right":o=1;break;default:o=p[1]/q.width}return{x:o,y:r}},createWrapper:function(o){if(o.parent().is(".ui-effects-wrapper")){return o.parent()}var p={width:o.outerWidth(true),height:o.outerHeight(true),"float":o.css("float")},q=h("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});o.wrap(q);q=o.parent();if(o.css("position")=="static"){q.css({position:"relative"});o.css({position:"relative"})}else{h.extend(p,{position:o.css("position"),zIndex:o.css("z-index")});h.each(["top","left","bottom","right"],function(r,u){p[u]=o.css(u);if(isNaN(parseInt(p[u],10))){p[u]="auto"}});o.css({position:"relative",top:0,left:0})}return q.css(p).show()},removeWrapper:function(o){if(o.parent().is(".ui-effects-wrapper")){return o.parent().replaceWith(o)}return o},setTransition:function(p,r,o,q){q=q||{};h.each(r,function(v,u){unit=p.cssUnit(u);if(unit[0]>0){q[u]=unit[0]*o+unit[1]}});return q}});function e(p,o,q,r){if(typeof p=="object"){r=o;q=null;o=p;p=o.effect}if(h.isFunction(o)){r=o;q=null;o={}}if(h.isFunction(q)){r=q;q=null}if(typeof o=="number"||h.fx.speeds[o]){r=q;q=o;o={}}o=o||{};q=q||o.duration;q=h.fx.off?0:typeof q=="number"?q:h.fx.speeds[q]||h.fx.speeds._default;r=r||o.complete;return[p,o,q,r]}h.fn.extend({effect:function(r,q,v,w){var p=e.apply(this,arguments),u={options:p[1],duration:p[2],callback:p[3]},o=h.effects[r];return o&&!h.fx.off?o.call(this,u):this},_show:h.fn.show,show:function(p){if(!p||typeof p=="number"||h.fx.speeds[p]){return this._show.apply(this,arguments)}else{var o=e.apply(this,arguments);o[1].mode="show";return this.effect.apply(this,o)}},_hide:h.fn.hide,hide:function(p){if(!p||typeof p=="number"||h.fx.speeds[p]){return this._hide.apply(this,arguments)}else{var o=e.apply(this,arguments);o[1].mode="hide";return this.effect.apply(this,o)}},__toggle:h.fn.toggle,toggle:function(p){if(!p||typeof p=="number"||h.fx.speeds[p]||typeof p=="boolean"||h.isFunction(p)){return this.__toggle.apply(this,arguments)}else{var o=e.apply(this,arguments);o[1].mode="toggle";return this.effect.apply(this,o)}},cssUnit:function(o){var p=this.css(o),q=[];h.each(["em","px","%","pt"],function(r,u){if(p.indexOf(u)>0){q=[parseFloat(p),u]}});return q}});h.easing.jswing=h.easing.swing;h.extend(h.easing,{def:"easeOutQuad",swing:function(p,q,o,u,r){return h.easing[h.easing.def](p,q,o,u,r)},easeInQuad:function(p,q,o,u,r){return u*(q/=r)*q+o},easeOutQuad:function(p,q,o,u,r){return -u*(q/=r)*(q-2)+o},easeInOutQuad:function(p,q,o,u,r){if((q/=r/2)<1){return u/2*q*q+o}return -u/2*((--q)*(q-2)-1)+o},easeInCubic:function(p,q,o,u,r){return u*(q/=r)*q*q+o},easeOutCubic:function(p,q,o,u,r){return u*((q=q/r-1)*q*q+1)+o},easeInOutCubic:function(p,q,o,u,r){if((q/=r/2)<1){return u/2*q*q*q+o}return u/2*((q-=2)*q*q+2)+o},easeInQuart:function(p,q,o,u,r){return u*(q/=r)*q*q*q+o},easeOutQuart:function(p,q,o,u,r){return -u*((q=q/r-1)*q*q*q-1)+o},easeInOutQuart:function(p,q,o,u,r){if((q/=r/2)<1){return u/2*q*q*q*q+o}return -u/2*((q-=2)*q*q*q-2)+o},easeInQuint:function(p,q,o,u,r){return u*(q/=r)*q*q*q*q+o},easeOutQuint:function(p,q,o,u,r){return u*((q=q/r-1)*q*q*q*q+1)+o},easeInOutQuint:function(p,q,o,u,r){if((q/=r/2)<1){return u/2*q*q*q*q*q+o}return u/2*((q-=2)*q*q*q*q+2)+o},easeInSine:function(p,q,o,u,r){return -u*Math.cos(q/r*(Math.PI/2))+u+o},easeOutSine:function(p,q,o,u,r){return u*Math.sin(q/r*(Math.PI/2))+o},easeInOutSine:function(p,q,o,u,r){return -u/2*(Math.cos(Math.PI*q/r)-1)+o},easeInExpo:function(p,q,o,u,r){return(q==0)?o:u*Math.pow(2,10*(q/r-1))+o},easeOutExpo:function(p,q,o,u,r){return(q==r)?o+u:u*(-Math.pow(2,-10*q/r)+1)+o},easeInOutExpo:function(p,q,o,u,r){if(q==0){return o}if(q==r){return o+u}if((q/=r/2)<1){return u/2*Math.pow(2,10*(q-1))+o}return u/2*(-Math.pow(2,-10*--q)+2)+o},easeInCirc:function(p,q,o,u,r){return -u*(Math.sqrt(1-(q/=r)*q)-1)+o},easeOutCirc:function(p,q,o,u,r){return u*Math.sqrt(1-(q=q/r-1)*q)+o},easeInOutCirc:function(p,q,o,u,r){if((q/=r/2)<1){return -u/2*(Math.sqrt(1-q*q)-1)+o}return u/2*(Math.sqrt(1-(q-=2)*q)+1)+o},easeInElastic:function(q,u,o,z,y){var v=1.70158;var w=0;var r=z;if(u==0){return o}if((u/=y)==1){return o+z}if(!w){w=y*0.3}if(r<Math.abs(z)){r=z;var v=w/4}else{var v=w/(2*Math.PI)*Math.asin(z/r)}return -(r*Math.pow(2,10*(u-=1))*Math.sin((u*y-v)*(2*Math.PI)/w))+o},easeOutElastic:function(q,u,o,z,y){var v=1.70158;var w=0;var r=z;if(u==0){return o}if((u/=y)==1){return o+z}if(!w){w=y*0.3}if(r<Math.abs(z)){r=z;var v=w/4}else{var v=w/(2*Math.PI)*Math.asin(z/r)}return r*Math.pow(2,-10*u)*Math.sin((u*y-v)*(2*Math.PI)/w)+z+o},easeInOutElastic:function(q,u,o,z,y){var v=1.70158;var w=0;var r=z;if(u==0){return o}if((u/=y/2)==2){return o+z}if(!w){w=y*(0.3*1.5)}if(r<Math.abs(z)){r=z;var v=w/4}else{var v=w/(2*Math.PI)*Math.asin(z/r)}if(u<1){return -0.5*(r*Math.pow(2,10*(u-=1))*Math.sin((u*y-v)*(2*Math.PI)/w))+o}return r*Math.pow(2,-10*(u-=1))*Math.sin((u*y-v)*(2*Math.PI)/w)*0.5+z+o},easeInBack:function(p,q,o,v,u,r){if(r==undefined){r=1.70158}return v*(q/=u)*q*((r+1)*q-r)+o},easeOutBack:function(p,q,o,v,u,r){if(r==undefined){r=1.70158}return v*((q=q/u-1)*q*((r+1)*q+r)+1)+o},easeInOutBack:function(p,q,o,v,u,r){if(r==undefined){r=1.70158}if((q/=u/2)<1){return v/2*(q*q*(((r*=(1.525))+1)*q-r))+o}return v/2*((q-=2)*q*(((r*=(1.525))+1)*q+r)+2)+o},easeInBounce:function(p,q,o,u,r){return u-h.easing.easeOutBounce(p,r-q,0,u,r)+o},easeOutBounce:function(p,q,o,u,r){if((q/=r)<(1/2.75)){return u*(7.5625*q*q)+o}else{if(q<(2/2.75)){return u*(7.5625*(q-=(1.5/2.75))*q+0.75)+o}else{if(q<(2.5/2.75)){return u*(7.5625*(q-=(2.25/2.75))*q+0.9375)+o}else{return u*(7.5625*(q-=(2.625/2.75))*q+0.984375)+o}}}},easeInOutBounce:function(p,q,o,u,r){if(q<r/2){return h.easing.easeInBounce(p,q*2,0,u,r)*0.5+o}return h.easing.easeOutBounce(p,q*2-r,0,u,r)*0.5+u*0.5+o}})})(jQuery);(function(a){a.effects.blind=function(c){return this.queue(function(){var e=a(this),d=["position","top","left"];var j=a.effects.setMode(e,c.options.mode||"hide");var h=c.options.direction||"vertical";a.effects.save(e,d);e.show();var n=a.effects.createWrapper(e).css({overflow:"hidden"});var f=(h=="vertical")?"height":"width";var l=(h=="vertical")?n.height():n.width();if(j=="show"){n.css(f,0)}var g={};g[f]=j=="show"?l:0;n.animate(g,c.duration,c.options.easing,function(){if(j=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(c.callback){c.callback.apply(e[0],arguments)}e.dequeue()})})}})(jQuery);(function(a){a.effects.bounce=function(c){return this.queue(function(){var f=a(this),o=["position","top","left"];var n=a.effects.setMode(f,c.options.mode||"effect");var q=c.options.direction||"up";var d=c.options.distance||20;var e=c.options.times||5;var h=c.duration||250;if(/show|hide/.test(n)){o.push("opacity")}a.effects.save(f,o);f.show();a.effects.createWrapper(f);var g=(q=="up"||q=="down")?"top":"left";var u=(q=="up"||q=="left")?"pos":"neg";var d=c.options.distance||(g=="top"?f.outerHeight({margin:true})/3:f.outerWidth({margin:true})/3);if(n=="show"){f.css("opacity",0).css(g,u=="pos"?-d:d)}if(n=="hide"){d=d/(e*2)}if(n!="hide"){e--}if(n=="show"){var j={opacity:1};j[g]=(u=="pos"?"+=":"-=")+d;f.animate(j,h/2,c.options.easing);d=d/2;e--}for(var l=0;l<e;l++){var r={},p={};r[g]=(u=="pos"?"-=":"+=")+d;p[g]=(u=="pos"?"+=":"-=")+d;f.animate(r,h/2,c.options.easing).animate(p,h/2,c.options.easing);d=(n=="hide")?d*2:d/2}if(n=="hide"){var j={opacity:0};j[g]=(u=="pos"?"-=":"+=")+d;f.animate(j,h/2,c.options.easing,function(){f.hide();a.effects.restore(f,o);a.effects.removeWrapper(f);if(c.callback){c.callback.apply(this,arguments)}})}else{var r={},p={};r[g]=(u=="pos"?"-=":"+=")+d;p[g]=(u=="pos"?"+=":"-=")+d;f.animate(r,h/2,c.options.easing).animate(p,h/2,c.options.easing,function(){a.effects.restore(f,o);a.effects.removeWrapper(f);if(c.callback){c.callback.apply(this,arguments)}})}f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);(function(a){a.effects.clip=function(c){return this.queue(function(){var g=a(this),n=["position","top","left","height","width"];var l=a.effects.setMode(g,c.options.mode||"hide");var o=c.options.direction||"vertical";a.effects.save(g,n);g.show();var d=a.effects.createWrapper(g).css({overflow:"hidden"});var f=g[0].tagName=="IMG"?d:g;var h={size:(o=="vertical")?"height":"width",position:(o=="vertical")?"top":"left"};var e=(o=="vertical")?f.height():f.width();if(l=="show"){f.css(h.size,0);f.css(h.position,e/2)}var j={};j[h.size]=l=="show"?e:0;j[h.position]=l=="show"?0:e/2;f.animate(j,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){if(l=="hide"){g.hide()}a.effects.restore(g,n);a.effects.removeWrapper(g);if(c.callback){c.callback.apply(g[0],arguments)}g.dequeue()}})})}})(jQuery);(function(a){a.effects.drop=function(c){return this.queue(function(){var f=a(this),e=["position","top","left","opacity"];var l=a.effects.setMode(f,c.options.mode||"hide");var j=c.options.direction||"left";a.effects.save(f,e);f.show();a.effects.createWrapper(f);var g=(j=="up"||j=="down")?"top":"left";var d=(j=="up"||j=="left")?"pos":"neg";var n=c.options.distance||(g=="top"?f.outerHeight({margin:true})/2:f.outerWidth({margin:true})/2);if(l=="show"){f.css("opacity",0).css(g,d=="pos"?-n:n)}var h={opacity:l=="show"?1:0};h[g]=(l=="show"?(d=="pos"?"+=":"-="):(d=="pos"?"-=":"+="))+n;f.animate(h,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){if(l=="hide"){f.hide()}a.effects.restore(f,e);a.effects.removeWrapper(f);if(c.callback){c.callback.apply(this,arguments)}f.dequeue()}})})}})(jQuery);(function(a){a.effects.explode=function(c){return this.queue(function(){var n=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3;var f=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3;c.options.mode=c.options.mode=="toggle"?(a(this).is(":visible")?"hide":"show"):c.options.mode;var l=a(this).show().css("visibility","hidden");var o=l.offset();o.top-=parseInt(l.css("marginTop"),10)||0;o.left-=parseInt(l.css("marginLeft"),10)||0;var h=l.outerWidth(true);var d=l.outerHeight(true);for(var g=0;g<n;g++){for(var e=0;e<f;e++){l.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-e*(h/f),top:-g*(d/n)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/f,height:d/n,left:o.left+e*(h/f)+(c.options.mode=="show"?(e-Math.floor(f/2))*(h/f):0),top:o.top+g*(d/n)+(c.options.mode=="show"?(g-Math.floor(n/2))*(d/n):0),opacity:c.options.mode=="show"?0:1}).animate({left:o.left+e*(h/f)+(c.options.mode=="show"?0:(e-Math.floor(f/2))*(h/f)),top:o.top+g*(d/n)+(c.options.mode=="show"?0:(g-Math.floor(n/2))*(d/n)),opacity:c.options.mode=="show"?1:0},c.duration||500)}}setTimeout(function(){c.options.mode=="show"?l.css({visibility:"visible"}):l.css({visibility:"visible"}).hide();if(c.callback){c.callback.apply(l[0])}l.dequeue();a("div.ui-effects-explode").remove()},c.duration||500)})}})(jQuery);(function(a){a.effects.fold=function(c){return this.queue(function(){var f=a(this),o=["position","top","left"];var j=a.effects.setMode(f,c.options.mode||"hide");var u=c.options.size||15;var r=!(!c.options.horizFirst);var h=c.duration?c.duration/2:a.fx.speeds._default/2;a.effects.save(f,o);f.show();var e=a.effects.createWrapper(f).css({overflow:"hidden"});var l=((j=="show")!=r);var g=l?["width","height"]:["height","width"];var d=l?[e.width(),e.height()]:[e.height(),e.width()];var n=/([0-9]+)%/.exec(u);if(n){u=parseInt(n[1],10)/100*d[j=="hide"?0:1]}if(j=="show"){e.css(r?{height:0,width:u}:{height:u,width:0})}var q={},p={};q[g[0]]=j=="show"?d[0]:u;p[g[1]]=j=="show"?d[1]:0;e.animate(q,h,c.options.easing).animate(p,h,c.options.easing,function(){if(j=="hide"){f.hide()}a.effects.restore(f,o);a.effects.removeWrapper(f);if(c.callback){c.callback.apply(f[0],arguments)}f.dequeue()})})}})(jQuery);(function(a){a.effects.highlight=function(c){return this.queue(function(){var e=a(this),d=["backgroundImage","backgroundColor","opacity"],g=a.effects.setMode(e,c.options.mode||"show"),f={backgroundColor:e.css("backgroundColor")};if(g=="hide"){f.opacity=0}a.effects.save(e,d);e.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(f,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){(g=="hide"&&e.hide());a.effects.restore(e,d);(g=="show"&&!a.support.opacity&&this.style.removeAttribute("filter"));(c.callback&&c.callback.apply(this,arguments));e.dequeue()}})})}})(jQuery);(function(a){a.effects.pulsate=function(c){return this.queue(function(){var e=a(this),f=a.effects.setMode(e,c.options.mode||"show");times=((c.options.times||5)*2)-1;duration=c.duration?c.duration/2:a.fx.speeds._default/2,isVisible=e.is(":visible"),animateTo=0;if(!isVisible){e.css("opacity",0).show();animateTo=1}if((f=="hide"&&isVisible)||(f=="show"&&!isVisible)){times--}for(var d=0;d<times;d++){e.animate({opacity:animateTo},duration,c.options.easing);animateTo=(animateTo+1)%2}e.animate({opacity:animateTo},duration,c.options.easing,function(){if(animateTo==0){e.hide()}(c.callback&&c.callback.apply(this,arguments))});e.queue("fx",function(){e.dequeue()}).dequeue()})}})(jQuery);(function(a){a.effects.puff=function(c){return this.queue(function(){var g=a(this),h=a.effects.setMode(g,c.options.mode||"hide"),f=parseInt(c.options.percent,10)||150,e=f/100,d={height:g.height(),width:g.width()};a.extend(c.options,{fade:true,mode:h,percent:h=="hide"?f:100,from:h=="hide"?d:{height:d.height*e,width:d.width*e}});g.effect("scale",c.options,c.duration,c.callback);g.dequeue()})};a.effects.scale=function(c){return this.queue(function(){var h=a(this);var e=a.extend(true,{},c.options);var n=a.effects.setMode(h,c.options.mode||"effect");var j=parseInt(c.options.percent,10)||(parseInt(c.options.percent,10)==0?0:(n=="hide"?0:100));var l=c.options.direction||"both";var d=c.options.origin;if(n!="effect"){e.origin=d||["middle","center"];e.restore=true}var g={height:h.height(),width:h.width()};h.from=c.options.from||(n=="show"?{height:0,width:0}:g);var f={y:l!="horizontal"?(j/100):1,x:l!="vertical"?(j/100):1};h.to={height:g.height*f.y,width:g.width*f.x};if(c.options.fade){if(n=="show"){h.from.opacity=0;h.to.opacity=1}if(n=="hide"){h.from.opacity=1;h.to.opacity=0}}e.from=h.from;e.to=h.to;e.mode=n;h.effect("size",e,c.duration,c.callback);h.dequeue()})};a.effects.size=function(c){return this.queue(function(){var d=a(this),r=["position","top","left","width","height","overflow","opacity"];var q=["position","top","left","overflow","opacity"];var n=["width","height","overflow"];var v=["fontSize"];var o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];var g=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];var h=a.effects.setMode(d,c.options.mode||"effect");var l=c.options.restore||false;var f=c.options.scale||"both";var u=c.options.origin;var e={height:d.height(),width:d.width()};d.from=c.options.from||e;d.to=c.options.to||e;if(u){var j=a.effects.getBaseline(u,e);d.from.top=(e.height-d.from.height)*j.y;d.from.left=(e.width-d.from.width)*j.x;d.to.top=(e.height-d.to.height)*j.y;d.to.left=(e.width-d.to.width)*j.x}var p={from:{y:d.from.height/e.height,x:d.from.width/e.width},to:{y:d.to.height/e.height,x:d.to.width/e.width}};if(f=="box"||f=="both"){if(p.from.y!=p.to.y){r=r.concat(o);d.from=a.effects.setTransition(d,o,p.from.y,d.from);d.to=a.effects.setTransition(d,o,p.to.y,d.to)}if(p.from.x!=p.to.x){r=r.concat(g);d.from=a.effects.setTransition(d,g,p.from.x,d.from);d.to=a.effects.setTransition(d,g,p.to.x,d.to)}}if(f=="content"||f=="both"){if(p.from.y!=p.to.y){r=r.concat(v);d.from=a.effects.setTransition(d,v,p.from.y,d.from);d.to=a.effects.setTransition(d,v,p.to.y,d.to)}}a.effects.save(d,l?r:q);d.show();a.effects.createWrapper(d);d.css("overflow","hidden").css(d.from);if(f=="content"||f=="both"){o=o.concat(["marginTop","marginBottom"]).concat(v);g=g.concat(["marginLeft","marginRight"]);n=r.concat(o).concat(g);d.find("*[width]").each(function(){child=a(this);if(l){a.effects.save(child,n)}var w={height:child.height(),width:child.width()};child.from={height:w.height*p.from.y,width:w.width*p.from.x};child.to={height:w.height*p.to.y,width:w.width*p.to.x};if(p.from.y!=p.to.y){child.from=a.effects.setTransition(child,o,p.from.y,child.from);child.to=a.effects.setTransition(child,o,p.to.y,child.to)}if(p.from.x!=p.to.x){child.from=a.effects.setTransition(child,g,p.from.x,child.from);child.to=a.effects.setTransition(child,g,p.to.x,child.to)}child.css(child.from);child.animate(child.to,c.duration,c.options.easing,function(){if(l){a.effects.restore(child,n)}})})}d.animate(d.to,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){if(d.to.opacity===0){d.css("opacity",d.from.opacity)}if(h=="hide"){d.hide()}a.effects.restore(d,l?r:q);a.effects.removeWrapper(d);if(c.callback){c.callback.apply(this,arguments)}d.dequeue()}})})}})(jQuery);(function(a){a.effects.shake=function(c){return this.queue(function(){var f=a(this),o=["position","top","left"];var n=a.effects.setMode(f,c.options.mode||"effect");var q=c.options.direction||"left";var d=c.options.distance||20;var e=c.options.times||3;var h=c.duration||c.options.duration||140;a.effects.save(f,o);f.show();a.effects.createWrapper(f);var g=(q=="up"||q=="down")?"top":"left";var u=(q=="up"||q=="left")?"pos":"neg";var j={},r={},p={};j[g]=(u=="pos"?"-=":"+=")+d;r[g]=(u=="pos"?"+=":"-=")+d*2;p[g]=(u=="pos"?"-=":"+=")+d*2;f.animate(j,h,c.options.easing);for(var l=1;l<e;l++){f.animate(r,h,c.options.easing).animate(p,h,c.options.easing)}f.animate(r,h,c.options.easing).animate(j,h/2,c.options.easing,function(){a.effects.restore(f,o);a.effects.removeWrapper(f);if(c.callback){c.callback.apply(this,arguments)}});f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);(function(a){a.effects.slide=function(c){return this.queue(function(){var f=a(this),e=["position","top","left"];var l=a.effects.setMode(f,c.options.mode||"show");var j=c.options.direction||"left";a.effects.save(f,e);f.show();a.effects.createWrapper(f).css({overflow:"hidden"});var g=(j=="up"||j=="down")?"top":"left";var d=(j=="up"||j=="left")?"pos":"neg";var n=c.options.distance||(g=="top"?f.outerHeight({margin:true}):f.outerWidth({margin:true}));if(l=="show"){f.css(g,d=="pos"?-n:n)}var h={};h[g]=(l=="show"?(d=="pos"?"+=":"-="):(d=="pos"?"-=":"+="))+n;f.animate(h,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){if(l=="hide"){f.hide()}a.effects.restore(f,e);a.effects.removeWrapper(f);if(c.callback){c.callback.apply(this,arguments)}f.dequeue()}})})}})(jQuery);(function(a){a.effects.transfer=function(c){return this.queue(function(){var g=a(this),j=a(c.options.to),f=j.offset(),h={top:f.top,left:f.left,height:j.innerHeight(),width:j.innerWidth()},e=g.offset(),d=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(c.options.className).css({top:e.top,left:e.left,height:g.innerHeight(),width:g.innerWidth(),position:"absolute"}).animate(h,c.duration,c.options.easing,function(){d.remove();(c.callback&&c.callback.apply(g[0],arguments));g.dequeue()})})}})(jQuery);(function(c){jQuery.browser.mobile=/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(c)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(c.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera);(function(){var T=document,aO=window,ag=Math,C=ag.round,aa=ag.floor,bq=ag.ceil,aZ=ag.max,an=ag.min,bn=ag.abs,a6=ag.cos,N=ag.sin,u=ag.PI,bp=u*2/360,f=navigator.userAgent,bg=/msie/i.test(f)&&!aO.opera,a9=T.documentMode==8,aK=/AppleWebKit/.test(f),g=/Firefox/.test(f),d=!!T.createElementNS&&!!T.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,ao="http://www.w3.org/2000/svg",bd="ontouchstart" in T.documentElement,ab,Z,aC={},Y=0,V=1,O,aT,aM,r,o,aL,aA="div",bf="absolute",q="relative",aE="hidden",I="highcharts-",ay="visible",aw="px",au="none",aF="M",aG="L",aQ="rgba(192,192,192,"+(d?0.000001:0.002)+")",ah="",ac="hover",D="select",a8,U,a0,av,bj,a2,ax,aS,R,a5,S,H,e=aO.HighchartsAdapter,K=e||{},bo=K.each,v=K.grep,A=K.map,F=K.merge,ba=K.hyphenate,am=K.addEvent,ap=K.removeEvent,aX=K.fireEvent,ar=K.animate,a3=K.stop,bk={},a1;function aH(M,L){if(!M){M={}}for(var bs in L){M[bs]=L[bs]}return M}function w(L,M){return parseInt(L,M||10)}function be(L){return typeof L=="string"}function Q(L){return typeof L=="object"}function af(L){return typeof L=="number"}function aW(L,bs){var M=L.length;while(M--){if(L[M]==bs){L.splice(M,1);break}}}function n(L){return L!==aL&&L!==null}function al(bs,bv,bu){var M,bt="setAttribute",L;if(be(bv)){if(n(bu)){bs[bt](bv,bu)}else{if(bs&&bs.getAttribute){L=bs.getAttribute(bv)}}}else{if(n(bv)&&Q(bv)){for(M in bv){bs[bt](M,bv[M])}}}return L}function aq(L){if(!L||L.constructor!=Array){L=[L]}return L}function c(){var M=arguments,bs,L,bt=M.length;for(bs=0;bs<bt;bs++){L=M[bs];if(typeof L!=="undefined"&&L!==null){return L}}}function bb(bs){var M="",L;for(L in bs){M+=ba(L)+":"+bs[L]+";"}return M}function aI(L,M){if(bg){if(M&&M.opacity!==aL){M.filter="alpha(opacity="+(M.opacity*100)+")"}}aH(L.style,M)}function aD(L,bv,bu,bt,bs){var M=T.createElement(L);if(bv){aH(M,bv)}if(bs){aI(M,{padding:0,border:au,margin:0})}if(bu){aI(M,bu)}if(bt){bt.appendChild(M)}return M}function aJ(M,L){r=c(M,L.animation)}if(e&&e.init){e.init()}if(!e&&aO.jQuery){var X=jQuery;bo=function(M,bt){for(var bs=0,L=M.length;bs<L;bs++){if(bt.call(M[bs],M[bs],bs,M)===false){return bs}}};v=X.grep;A=function(M,bu){var bt=[];for(var bs=0,L=M.length;bs<L;bs++){bt[bs]=bu.call(M[bs],M[bs],bs,M)}return bt};F=function(){var L=arguments;return X.extend(true,null,L[0],L[1],L[2],L[3])};ba=function(L){return L.replace(/([A-Z])/g,function(bs,M){return"-"+M.toLowerCase()})};am=function(M,bs,L){X(M).bind(bs,L)};ap=function(bs,L,M){var bt=T.removeEventListener?"removeEventListener":"detachEvent";if(T[bt]&&!bs[bt]){bs[bt]=function(){}}X(bs).unbind(L,M)};aX=function(bt,bs,M,L){var bv=X.Event(bs),bu="detached"+bs;aH(bv,M);if(bt[bs]){bt[bu]=bt[bs];bt[bs]=null}X(bt).trigger(bv);if(bt[bu]){bt[bs]=bt[bu];bt[bu]=null}if(L&&!bv.isDefaultPrevented()){L(bv)}};ar=function(bs,bt,L){var M=X(bs);if(bt.d){bs.toD=bt.d;bt.d=1}M.stop();M.animate(bt,L)};a3=function(L){X(L).stop()};X.extend(X.easing,{easeOutQuad:function(M,bs,L,bu,bt){return -bu*(bs/=bt)*(bs-2)+L}});var a4=jQuery.fx.step._default,bc=jQuery.fx.prototype.cur;X.fx.step._default=function(M){var L=M.elem;if(L.attr){L.attr(M.prop,M.now)}else{a4.apply(this,arguments)}};X.fx.step.d=function(bs){var M=bs.elem;if(!bs.started){var L=o.init(M,M.d,M.toD);bs.start=L[0];bs.end=L[1];bs.started=true}M.attr("d",o.step(bs.start,bs.end,bs.pos,M.toD))};X.fx.prototype.cur=function(){var M=this.elem,L;if(M.attr){L=M.attr(this.prop)}else{L=bc.apply(this,arguments)}return L}}o={init:function(bu,bz,bA){bz=bz||"";var M=bu.shift,bs=bz.indexOf("C")>-1,bt=bs?7:3,bx,bB,bw,L=bz.split(" "),bv=[].concat(bA),bD,by,bC=function(bE){bw=bE.length;while(bw--){if(bE[bw]==aF){bE.splice(bw+1,0,bE[bw+1],bE[bw+2],bE[bw+1],bE[bw+2])}}};if(bs){bC(L);bC(bv)}if(bu.isArea){bD=L.splice(L.length-6,6);by=bv.splice(bv.length-6,6)}if(M){bv=[].concat(bv).splice(0,bt).concat(bv);bu.shift=false}if(L.length){bx=bv.length;while(L.length<bx){bB=[].concat(L).splice(L.length-bt,bt);if(bs){bB[bt-6]=bB[bt-2];bB[bt-5]=bB[bt-1]}L=L.concat(bB)}}if(bD){L=L.concat(bD);bv=bv.concat(by)}return[L,bv]},step:function(bw,M,bv,L){var bt=[],bu=bw.length,bs;if(bv==1){bt=L}else{if(bu==M.length&&bv<1){while(bu--){bs=parseFloat(bw[bu]);bt[bu]=isNaN(bs)?bw[bu]:bv*(parseFloat(M[bu]-bs))+bs}}else{bt=M}}return bt}};function aP(){var L=aT.global.useUTC;a8=L?Date.UTC:function(bu,bv,bs,M,bt,bw){return new Date(bu,bv,c(bs,1),c(M,0),c(bt,0),c(bw,0)).getTime()};U=L?"getUTCMinutes":"getMinutes";a0=L?"getUTCHours":"getHours";av=L?"getUTCDay":"getDay";bj=L?"getUTCDate":"getDate";a2=L?"getUTCMonth":"getMonth";ax=L?"getUTCFullYear":"getFullYear";aS=L?"setUTCMinutes":"setMinutes";R=L?"setUTCHours":"setHours";a5=L?"setUTCDate":"setDate";S=L?"setUTCMonth":"setMonth";H=L?"setUTCFullYear":"setFullYear"}function aN(L){aT=F(aT,L);aP();return aT}function P(){return aT}function ae(L){if(!O){O=aD(aA)}if(L){O.appendChild(L)}O.innerHTML=""}var aj={enabled:true,align:"center",x:0,y:15,style:{color:"#666",fontSize:"11px",lineHeight:"14px"}};aT={colors:["#4572A7","#AA4643","#89A54E","#80699B","#3D96AE","#DB843D","#92A8CD","#A47D7C","#B5CA92"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:true},chart:{borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:true,spacingTop:10,spacingRight:10,spacingBottom:15,spacingLeft:10,style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0"},title:{text:"Chart title",align:"center",y:15,style:{color:"#3E576F",fontSize:"16px"}},subtitle:{text:"",align:"center",y:30,style:{color:"#6D869F"}},plotOptions:{line:{allowPointSelect:false,showCheckbox:false,animation:{duration:1000},events:{},lineWidth:2,shadow:true,marker:{enabled:true,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:F(aj,{enabled:false,y:-6,formatter:function(){return this.y}}),showInLegend:true,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:true}},labels:{style:{position:bf,color:"#3E576F"}},legend:{enabled:true,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderWidth:1,borderColor:"#909090",borderRadius:5,shadow:false,style:{padding:"5px"},itemStyle:{cursor:"pointer",color:"#3E576F"},itemHoverStyle:{cursor:"pointer",color:"#000000"},itemHiddenStyle:{color:"#C0C0C0"},itemCheckboxStyle:{position:bf,width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0},loading:{hideDuration:100,labelStyle:{fontWeight:"bold",position:q,top:"1em"},showDuration:100,style:{position:bf,backgroundColor:"white",opacity:0.5,textAlign:"center"}},tooltip:{enabled:true,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:2,borderRadius:5,shadow:true,snap:bd?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",whiteSpace:"nowrap"}},toolbar:{itemStyle:{color:"#4572A7",cursor:"pointer"}},credits:{enabled:true,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"10px"}}};var az={dateTimeLabelFormats:{second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:false,gridLineColor:"#C0C0C0",labels:aj,lineColor:"#C0D0E0",lineWidth:1,max:null,min:null,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:false,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#6D869F",fontWeight:"bold"}},type:"linear"},a7=F(az,{endOnTick:true,gridLineWidth:1,tickPixelInterval:72,showLastLabel:true,labels:{align:"right",x:-8,y:3},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:true,tickWidth:0,title:{rotation:270,text:"Y-values"}}),at={labels:{align:"right",x:-8,y:null},title:{rotation:270}},J={labels:{align:"left",x:8,y:null},title:{rotation:90}},bi={labels:{align:"center",x:0,y:14},title:{rotation:0}},B=F(bi,{labels:{y:-5}});var br=aT.plotOptions,bl=br.line;br.spline=F(bl);br.scatter=F(bl,{lineWidth:0,states:{hover:{lineWidth:0}}});br.area=F(bl,{});br.areaspline=F(br.area);br.column=F(bl,{borderColor:"#FFFFFF",borderWidth:1,borderRadius:0,groupPadding:0.2,marker:null,pointPadding:0.1,minPointLength:0,states:{hover:{brightness:0.1,shadow:false},select:{color:"#C0C0C0",borderColor:"#000000",shadow:false}}});br.bar=F(br.column,{dataLabels:{align:"left",x:5,y:0}});br.pie=F(bl,{borderColor:"#FFFFFF",borderWidth:1,center:["50%","50%"],colorByPoint:true,dataLabels:{distance:30,enabled:true,formatter:function(){return this.point.name},y:5},legendType:"point",marker:null,size:"75%",showInLegend:false,slicedOffset:10,states:{hover:{brightness:0.1,shadow:false}}});aP();function aY(bs,L){var M=function(){};M.prototype=new bs();aH(M.prototype,L);return M}var E=function(M){var bu=[],L;function bw(bx){if((L=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(bx))){bu=[w(L[1]),w(L[2]),w(L[3]),parseFloat(L[4],10)]}else{if((L=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(bx))){bu=[w(L[1],16),w(L[2],16),w(L[3],16),1]}}}function bt(by){var bx;if(bu&&!isNaN(bu[0])){if(by=="rgb"){bx="rgb("+bu[0]+","+bu[1]+","+bu[2]+")"}else{if(by=="a"){bx=bu[3]}else{bx="rgba("+bu.join(",")+")"}}}else{bx=M}return bx}function bv(by){if(af(by)&&by!==0){var bx;for(bx=0;bx<3;bx++){bu[bx]+=w(by*255);if(bu[bx]<0){bu[bx]=0}if(bu[bx]>255){bu[bx]=255}}}return this}function bs(bx){bu[3]=bx;return this}bw(M);return{get:bt,brighten:bv,setOpacity:bs}};function l(bt,bs,bz,by){var L=aT.lang,M=bt,bx=isNaN(bs=bn(bs))?2:bs,bw=bz===undefined?L.decimalPoint:bz,bA=by===undefined?L.thousandsSep:by,bB=M<0?"-":"",bv=w(M=bn(+M||0).toFixed(bx))+"",bu=(bu=bv.length)>3?bu%3:0;return bB+(bu?bv.substr(0,bu)+bA:"")+bv.substr(bu).replace(/(\d{3})(?=\d)/g,"$1"+bA)+(bx?bw+bn(M-bv).toFixed(bx).slice(2):"")}aM=function(bB,bw,bu){function M(bF){return bF.toString().replace(/^([0-9])$/,"0$1")}if(!n(bw)||isNaN(bw)){return"Invalid date"}bB=c(bB,"%Y-%m-%d %H:%M:%S");var bs=new Date(bw*V),bA=bs[a0](),bx=bs[av](),bD=bs[bj](),bv=bs[a2](),bE=bs[ax](),L=aT.lang,bz=L.weekdays,by=L.months,bt={a:bz[bx].substr(0,3),A:bz[bx],d:M(bD),e:bD,b:by[bv].substr(0,3),B:by[bv],m:M(bv+1),y:bE.toString().substr(2,2),Y:bE,H:M(bA),I:M((bA%12)||12),l:(bA%12)||12,M:M(bs[U]()),p:bA<12?"AM":"PM",P:bA<12?"am":"pm",S:M(bs.getSeconds())};for(var bC in bt){bB=bB.replace("%"+bC,bt[bC])}return bu?bB.substr(0,1).toUpperCase()+bB.substr(1):bB};function z(L){var M={left:L.offsetLeft,top:L.offsetTop};while((L=L.offsetParent)){M.left+=L.offsetLeft;M.top+=L.offsetTop;if(L!=T.body&&L!=T.documentElement){M.left-=L.scrollLeft;M.top-=L.scrollTop}}return M}function j(){}j.prototype={init:function(L,M){this.element=T.createElementNS(ao,M);this.renderer=L},animate:function(bt,M,L){var bs=c(M,r,true);if(bs){bs=F(bs);if(L){bs.complete=L}ar(this,bt,bs)}else{this.attr(bt);if(L){L()}}},attr:function(bt,M){var bC,bB,bu,L,bv=this.element,bA=bv.nodeName,by=this.renderer,bz,bs=this.shadows,bx,bw=this;if(be(bt)&&n(M)){bC=bt;bt={};bt[bC]=M}if(be(bt)){bC=bt;if(bA=="circle"){bC={x:"cx",y:"cy"}[bC]||bC}else{if(bC=="strokeWidth"){bC="stroke-width"}}bw=al(bv,bC)||this[bC]||0;if(bC!="d"&&bC!="visibility"){bw=parseFloat(bw)}}else{for(bC in bt){bz=false;bB=bt[bC];if(bC=="d"){if(bB&&bB.join){bB=bB.join(" ")}if(/(NaN| {2}|^$)/.test(bB)){bB="M 0 0"}this.d=bB}else{if(bC=="x"&&bA=="text"){for(bu=0;bu<bv.childNodes.length;bu++){L=bv.childNodes[bu];if(al(L,"x")==al(bv,"x")){al(L,"x",bB)}}if(this.rotation){al(bv,"transform","rotate("+this.rotation+" "+bB+" "+w(bt.y||al(bv,"y"))+")")}}else{if(bC=="fill"){bB=by.color(bB,bv,bC)}else{if(bA=="circle"&&(bC=="x"||bC=="y")){bC={x:"cx",y:"cy"}[bC]||bC}else{if(bC=="translateX"||bC=="translateY"||bC=="rotation"||bC=="verticalAlign"){this[bC]=bB;this.updateTransform();bz=true}else{if(bC=="stroke"){bB=by.color(bB,bv,bC)}else{if(bC=="dashstyle"){bC="stroke-dasharray";if(bB){bB=bB.toLowerCase().replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");bu=bB.length;while(bu--){bB[bu]=w(bB[bu])*bt["stroke-width"]}bB=bB.join(",")}}else{if(bC=="isTracker"){this[bC]=bB}else{if(bC=="width"){bB=w(bB)}else{if(bC=="align"){bC="text-anchor";bB={left:"start",center:"middle",right:"end"}[bB]}}}}}}}}}}if(bC=="strokeWidth"){bC="stroke-width"}if(aK&&bC=="stroke-width"&&bB===0){bB=0.000001}if(this.symbolName&&/^(x|y|r|start|end|innerR)/.test(bC)){if(!bx){this.symbolAttr(bt);bx=true}bz=true}if(bs&&/^(width|height|visibility|x|y|d)$/.test(bC)){bu=bs.length;while(bu--){al(bs[bu],bC,bB)}}if(bC=="text"){this.textStr=bB;if(this.added){by.buildText(this)}}else{if(!bz){al(bv,bC,bB)}}}}return bw},symbolAttr:function(L){var M=this;M.x=c(L.x,M.x);M.y=c(L.y,M.y);M.r=c(L.r,M.r);M.start=c(L.start,M.start);M.end=c(L.end,M.end);M.width=c(L.width,M.width);M.height=c(L.height,M.height);M.innerR=c(L.innerR,M.innerR);M.attr({d:M.renderer.symbols[M.symbolName](M.x,M.y,M.r,{start:M.start,end:M.end,width:M.width,height:M.height,innerR:M.innerR})})},clip:function(L){return this.attr("clip-path","url("+this.renderer.url+"#"+L.id+")")},css:function(bs){var L=this,M=L.element,bt=bs&&bs.width&&M.nodeName=="text";if(bs&&bs.color){bs.fill=bs.color}bs=aH(L.styles,bs);L.styles=bs;if(bg&&!d){if(bt){delete bs.width}aI(L.element,bs)}else{L.attr({style:bb(bs)})}if(bt&&L.added){L.renderer.buildText(L)}return L},on:function(L,bs){var M=bs;if(bd&&L=="click"){L="touchstart";M=function(bt){bt.preventDefault();bs()}}this.element["on"+L]=M;return this},translate:function(L,M){return this.attr({translateX:L,translateY:M})},invert:function(){var L=this;L.inverted=true;L.updateTransform();return L},updateTransform:function(){var bv=this,bu=bv.translateX||0,bt=bv.translateY||0,L=bv.inverted,bs=bv.rotation,M=[];if(L){bu+=bv.attr("width");bt+=bv.attr("height")}if(bu||bt){M.push("translate("+bu+","+bt+")")}if(L){M.push("rotate(90) scale(-1,1)")}else{if(bs){M.push("rotate("+bs+" "+bv.x+" "+bv.y+")")}}if(M.length){al(bv.element,"transform",M.join(" "))}},toFront:function(){var L=this.element;L.parentNode.appendChild(L);return this},align:function(bt,M,bs){if(!bt){bt=this.alignOptions;M=this.alignByTranslate}else{this.alignOptions=bt;this.alignByTranslate=M;if(!bs){this.renderer.alignedObjects.push(this)}}bs=c(bs,this.renderer);var bx=bt.align,bw=bt.verticalAlign,L=(bs.x||0)+(bt.x||0),bv=(bs.y||0)+(bt.y||0),bu={};if(/^(right|center)$/.test(bx)){L+=(bs.width-(bt.width||0))/{right:1,center:2}[bx]}bu[M?"translateX":"x"]=L;if(/^(bottom|middle)$/.test(bw)){bv+=(bs.height-(bt.height||0))/({bottom:1,middle:2}[bw]||1)}bu[M?"translateY":"y"]=bv;this[this.placed?"animate":"attr"](bu);this.placed=true;return this},getBBox:function(){var bu,bt,M,bs=this.rotation,L=bs*bp;try{bu=aH({},this.element.getBBox())}catch(bv){bu={width:0,height:0}}bt=bu.width;M=bu.height;if(bs){bu.width=bn(M*N(L))+bn(bt*a6(L));bu.height=bn(M*a6(L))+bn(bt*N(L))}return bu},show:function(){return this.attr({visibility:ay})},hide:function(){return this.attr({visibility:aE})},add:function(bx){var bv=this.renderer,bu=bx||bv,bt=bu.element||bv.box,bz=bt.childNodes,bs=this.element,bw=al(bs,"zIndex"),by,L,M;this.parentInverted=bx&&bx.inverted;if(this.textStr!==undefined){bv.buildText(this)}if(bw){bu.handleZ=true;bw=w(bw)}if(bu.handleZ){for(M=0;M<bz.length;M++){by=bz[M];L=al(by,"zIndex");if(by!=bs&&(w(L)>bw||(!n(bw)&&n(L)))){bt.insertBefore(bs,by);return this}}}bt.appendChild(bs);this.added=true;return this},destroy:function(){var bu=this,bs=bu.element||{},bt=bu.shadows,L=bs.parentNode,M;bs.onclick=bs.onmouseout=bs.onmouseover=bs.onmousemove=null;a3(bu);if(L){L.removeChild(bs)}if(bt){bo(bt,function(bv){L=bv.parentNode;if(L){L.removeChild(bv)}})}aW(bu.renderer.alignedObjects,bu);for(M in bu){delete bu[M]}return null},empty:function(){var M=this.element,bs=M.childNodes,L=bs.length;while(L--){M.removeChild(bs[L])}},shadow:function(L){var bu=[],bt,bv,bs=this.element,M=this.parentInverted?"(-1,-1)":"(1,1)";if(L){for(bt=1;bt<=3;bt++){bv=bs.cloneNode(0);al(bv,{isShadow:"true",stroke:"rgb(0, 0, 0)","stroke-opacity":0.05*bt,"stroke-width":7-2*bt,transform:"translate"+M,fill:au});bs.parentNode.insertBefore(bv,bs);bu.push(bv)}this.shadows=bu}return this}};var x=function(){this.init.apply(this,arguments)};x.prototype={init:function(bs,bt,M,bv){var bu=this,bw=location,L;bu.Element=j;L=bu.createElement("svg").attr({xmlns:ao,version:"1.1"});bs.appendChild(L.element);bu.box=L.element;bu.boxWrapper=L;bu.alignedObjects=[];bu.url=bg?"":bw.href.replace(/#.*?$/,"");bu.defs=this.createElement("defs").add();bu.forExport=bv;bu.setSize(bt,M,false)},createElement:function(M){var L=new this.Element();L.init(this,M);return L},buildText:function(L){var bt=L.element,bD=c(L.textStr,"").toString().replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br[^>]?>/g),bA=bt.childNodes,bC=/style="([^"]+)"/,bs=/href="([^"]+)"/,bB=al(bt,"x"),bx=L.styles,bw=g&&bx&&bx.HcDirection=="rtl"&&!this.forExport,bv,M=bx&&w(bx.width),bz=bx&&bx.lineHeight,by,bu=bA.length;while(bu--){bt.removeChild(bA[bu])}if(M&&!L.added){this.box.appendChild(bt)}bo(bD,function(bE,bI){var bG,bF=0,bH;bE=bE.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");bG=bE.split("|||");bo(bG,function(bL){if(bL!==""||bG.length==1){var bJ={},bN=T.createElementNS(ao,"tspan");if(bC.test(bL)){al(bN,"style",bL.match(bC)[1].replace(/(;| |^)color([ :])/,"$1fill$2"))}if(bs.test(bL)){al(bN,"onclick",'location.href="'+bL.match(bs)[1]+'"');aI(bN,{cursor:"pointer"})}bL=bL.replace(/<(.|\n)*?>/g,"")||" ";if(bw){bv=[];bu=bL.length;while(bu--){bv.push(bL.charAt(bu))}bL=bv.join("")}bN.appendChild(T.createTextNode(bL));if(!bF){bJ.x=bB}else{bJ.dx=3}if(!bF){if(bI){bH=w(window.getComputedStyle(by,null).getPropertyValue("line-height"));if(isNaN(bH)){bH=bz||by.offsetHeight||18}al(bN,"dy",bH)}by=bN}al(bN,bJ);bt.appendChild(bN);bF++;if(M){var bO=bL.replace(/-/g,"- ").split(" "),bP,bM,bK=[];while(bO.length||bK.length){bM=bt.getBBox().width;bP=bM>M;if(!bP||bO.length==1){bO=bK;bK=[];if(bO.length){bN=T.createElementNS(ao,"tspan");al(bN,{x:bB,dy:bz||16});bt.appendChild(bN);if(bM>M){M=bM}}}else{bN.removeChild(bN.firstChild);bK.unshift(bO.pop())}bN.appendChild(T.createTextNode(bO.join(" ").replace(/- /g,"-")))}}}})})},crispLine:function(M,L){if(M[1]==M[4]){M[1]=M[4]=C(M[1])+(L%2/2)}if(M[2]==M[5]){M[2]=M[5]=C(M[2])+(L%2/2)}return M},path:function(L){return this.createElement("path").attr({d:L,fill:au})},circle:function(M,bt,bs){var L=Q(M)?M:{x:M,y:bt,r:bs};return this.createElement("circle").attr(L)},arc:function(L,bv,bt,bs,bu,M){if(Q(L)){bv=L.y;bt=L.r;bs=L.innerR;bu=L.start;M=L.end;L=L.x}return this.symbol("arc",L||0,bv||0,bt||0,{innerR:bs||0,start:bu||0,end:M||0})},rect:function(bs,bx,bt,M,bv,bw){if(arguments.length>1){var bu=(bw||0)%2/2;bs=C(bs||0)+bu;bx=C(bx||0)+bu;bt=C((bt||0)-2*bu);M=C((M||0)-2*bu)}var L=Q(bs)?bs:{x:bs,y:bx,width:aZ(bt,0),height:aZ(M,0)};return this.createElement("rect").attr(aH(L,{rx:bv||L.r,ry:bv||L.r,fill:au}))},setSize:function(bu,L,bs){var bv=this,M=bv.alignedObjects,bt=M.length;bv.width=bu;bv.height=L;bv.boxWrapper[c(bs,true)?"animate":"attr"]({width:bu,height:L});while(bt--){M[bt].align()}},g:function(L){return this.createElement("g").attr(n(L)&&{"class":I+L})},image:function(bv,M,bw,bt,L){var bu={preserveAspectRatio:au},bs;if(arguments.length>1){aH(bu,{x:M,y:bw,width:bt,height:L})}bs=this.createElement("image").attr(bu);bs.element.setAttributeNS("http://www.w3.org/1999/xlink","href",bv);return bs},symbol:function(M,bx,bv,bu,bz){var bt,L=this.symbols[M],by=L&&L(bx,bv,bu,bz),bs=/^url\((.*?)\)$/,bw;if(by){bt=this.path(by);aH(bt,{symbolName:M,x:bx,y:bv,r:bu});if(bz){aH(bt,bz)}}else{if(bs.test(M)){bw=M.match(bs)[1];bt=this.image(bw).attr({x:bx,y:bv});aD("img",{onload:function(){var bA=this,bB=aC[bA.src]||[bA.width,bA.height];bt.attr({width:bB[0],height:bB[1]}).translate(-C(bB[0]/2),-C(bB[1]/2))},src:bw})}else{bt=this.circle(bx,bv,bu)}}return bt},symbols:{square:function(bs,bt,M){var L=0.707*M;return[aF,bs-L,bt-L,aG,bs+L,bt-L,bs+L,bt+L,bs-L,bt+L,"Z"]},triangle:function(M,bs,L){return[aF,M,bs-1.33*L,aG,M+L,bs+0.67*L,M-L,bs+0.67*L,"Z"]},"triangle-down":function(M,bs,L){return[aF,M,bs+1.33*L,aG,M-L,bs-0.67*L,M+L,bs-0.67*L,"Z"]},diamond:function(M,bs,L){return[aF,M,bs-L,aG,M+L,bs,M,bs+L,M-L,bs,"Z"]},arc:function(bz,by,bw,bB){var bs=bB.start,bt=bB.end-0.000001,bx=bB.innerR,bv=a6(bs),L=N(bs),M=a6(bt),bA=N(bt),bu=bB.end-bs<u?0:1;return[aF,bz+bw*bv,by+bw*L,"A",bw,bw,0,bu,1,bz+bw*M,by+bw*bA,aG,bz+bx*M,by+bx*bA,"A",bx,bx,0,bu,0,bz+bx*bv,by+bx*L,"Z"]}},clipRect:function(M,bw,bs,L){var bv,bu=I+Y++,bt=this.createElement("clipPath").attr({id:bu}).add(this.defs);bv=this.rect(M,bw,bs,L,0).add(bt);bv.id=bu;return bv},color:function(bv,bu,M){var bB,bt=/^rgba/;if(bv&&bv.linearGradient){var bz=this,bw="linearGradient",bA=bv[bw],bs=I+Y++,L,by,bx;L=bz.createElement(bw).attr({id:bs,gradientUnits:"userSpaceOnUse",x1:bA[0],y1:bA[1],x2:bA[2],y2:bA[3]}).add(bz.defs);bo(bv.stops,function(bC){if(bt.test(bC[1])){bB=E(bC[1]);by=bB.get("rgb");bx=bB.get("a")}else{by=bC[1];bx=1}bz.createElement("stop").attr({offset:bC[0],"stop-color":by,"stop-opacity":bx}).add(L)});return"url("+this.url+"#"+bs+")"}else{if(bt.test(bv)){bB=E(bv);al(bu,M+"-opacity",bB.get("a"));return bB.get("rgb")}else{return bv}}},text:function(bs,L,bu){var M=aT.chart.style,bt;L=C(c(L,0));bu=C(c(bu,0));bt=this.createElement("text").attr({x:L,y:bu,text:bs}).css({"font-family":M.fontFamily,"font-size":M.fontSize});bt.x=L;bt.y=bu;return bt}};var bm;if(!d){var aV=aY(j,{init:function(bs,bt){var L=["<",bt,' filled="f" stroked="f"'],M=["position: ",bf,";"];if(bt=="shape"||bt==aA){M.push("left:0;top:0;width:10px;height:10px;")}if(a9){M.push("visibility: ",bt==aA?aE:ay)}L.push(' style="',M.join(""),'"/>');if(bt){L=bt==aA||bt=="span"||bt=="img"?L.join(""):bs.prepVML(L);this.element=aD(L)}this.renderer=bs},add:function(bt){var bw=this,bv=bw.renderer,bs=bw.element,bu=bv.box,M=bt&&bt.inverted,L=bt?bt.element||bt:bu;if(M){bv.invertChild(bs,L)}if(a9&&L.gVis==aE){aI(bs,{visibility:aE})}L.appendChild(bs);bw.added=true;if(bw.alignOnAdd){bw.updateTransform()}return bw},attr:function(bu,L){var bF,bE,bv,bw=this.element||{},M=bw.style,bD=bw.nodeName,bA=this.renderer,bt=this.symbolName,bG,bz,bs=this.shadows,bB,bx=this;if(be(bu)&&n(L)){bF=bu;bu={};bu[bF]=L}if(be(bu)){bF=bu;if(bF=="strokeWidth"||bF=="stroke-width"){bx=this.strokeweight}else{bx=this[bF]}}else{for(bF in bu){bE=bu[bF];bB=false;if(bt&&/^(x|y|r|start|end|width|height|innerR)/.test(bF)){if(!bz){this.symbolAttr(bu);bz=true}bB=true}else{if(bF=="d"){bE=bE||[];this.d=bE.join(" ");bv=bE.length;var by=[];while(bv--){if(af(bE[bv])){by[bv]=C(bE[bv]*10)-5}else{if(bE[bv]=="Z"){by[bv]="x"}else{by[bv]=bE[bv]}}}bE=by.join(" ")||"x";bw.path=bE;if(bs){bv=bs.length;while(bv--){bs[bv].path=bE}}bB=true}else{if(bF=="zIndex"||bF=="visibility"){if(a9&&bF=="visibility"&&bD=="DIV"){bw.gVis=bE;bG=bw.childNodes;bv=bG.length;while(bv--){aI(bG[bv],{visibility:bE})}if(bE==ay){bE=null}}if(bE){M[bF]=bE}bB=true}else{if(/^(width|height)$/.test(bF)){if(this.updateClipping){this[bF]=bE;this.updateClipping()}else{M[bF]=bE}bB=true}else{if(/^(x|y)$/.test(bF)){this[bF]=bE;if(bw.tagName=="SPAN"){this.updateTransform()}else{M[{x:"left",y:"top"}[bF]]=bE}}else{if(bF=="class"){bw.className=bE}else{if(bF=="stroke"){bE=bA.color(bE,bw,bF);bF="strokecolor"}else{if(bF=="stroke-width"||bF=="strokeWidth"){bw.stroked=bE?true:false;bF="strokeweight";this[bF]=bE;if(af(bE)){bE+=aw}}else{if(bF=="dashstyle"){var bC=bw.getElementsByTagName("stroke")[0]||aD(bA.prepVML(["<stroke/>"]),null,null,bw);bC[bF]=bE||"solid";this.dashstyle=bE;bB=true}else{if(bF=="fill"){if(bD=="SPAN"){M.color=bE}else{bw.filled=bE!=au?true:false;bE=bA.color(bE,bw,bF);bF="fillcolor"}}else{if(bF=="translateX"||bF=="translateY"||bF=="rotation"||bF=="align"){if(bF=="align"){bF="textAlign"}this[bF]=bE;this.updateTransform();bB=true}else{if(bF=="text"){bw.innerHTML=bE;bB=true}}}}}}}}}}}}if(bs&&bF=="visibility"){bv=bs.length;while(bv--){bs[bv].style[bF]=bE}}if(!bB){if(a9){bw[bF]=bE}else{al(bw,bF,bE)}}}}return bx},clip:function(L){var bs=this,M=L.members;M.push(bs);bs.destroyClip=function(){aW(M,bs)};return bs.css(L.getCSS(bs.inverted))},css:function(M){var bt=this,L=bt.element,bs=M&&L.tagName=="SPAN"&&M.width;if(bs){delete M.width;bt.textWidth=bs;bt.updateTransform()}bt.styles=aH(bt.styles,M);aI(bt.element,M);return bt},destroy:function(){var L=this;if(L.destroyClip){L.destroyClip()}j.prototype.destroy.apply(L)},empty:function(){var M=this.element,bt=M.childNodes,L=bt.length,bs;while(L--){bs=bt[L];bs.parentNode.removeChild(bs)}},getBBox:function(){var L=this.element;if(L.nodeName=="text"){L.style.position=bf}return{x:L.offsetLeft,y:L.offsetTop,width:L.offsetWidth,height:L.offsetHeight}},on:function(L,M){this.element["on"+L]=function(){var bs=aO.event;bs.target=bs.srcElement;M(bs)};return this},updateTransform:function(L){if(!this.added){this.alignOnAdd=true;return}var bu=this,bI=bu.element,bL=bu.translateX||0,bK=bu.translateY||0,bz=bu.x||0,bx=bu.y||0,bG=bu.textAlign||"left",bA={left:0,center:0.5,right:1}[bG],bv=bG&&bG!="left";if(bL||bK){bu.css({marginLeft:bL,marginTop:bK})}if(bu.inverted){bo(bI.childNodes,function(bM){bu.renderer.invertChild(bM,bI)})}if(bI.tagName=="SPAN"){var bE,bC,bF=bu.rotation,bs,bJ=0,bt=1,bB=0,by,M=w(bu.textWidth),bH=bu.xCorr||0,bw=bu.yCorr||0,bD=[bF,bG,bI.innerHTML,bu.textWidth].join(",");if(bD!=bu.cTT){if(n(bF)){bJ=bF*bp;bt=a6(bJ);bB=N(bJ);aI(bI,{filter:bF?["progid:DXImageTransform.Microsoft.Matrix(M11=",bt,", M12=",-bB,", M21=",bB,", M22=",bt,", sizingMethod='auto expand')"].join(""):au})}bE=bI.offsetWidth;bC=bI.offsetHeight;if(bE>M){aI(bI,{width:M+aw,display:"block",whiteSpace:"normal"});bE=M}bs=C(w(bI.style.fontSize||12)*1.2);bH=bt<0&&-bE;bw=bB<0&&-bC;by=bt*bB<0;bH+=bB*bs*(by?1-bA:bA);bw-=bt*bs*(bF?(by?bA:1-bA):1);if(bv){bH-=bE*bA*(bt<0?-1:1);if(bF){bw-=bC*bA*(bB<0?-1:1)}aI(bI,{textAlign:bG})}bu.xCorr=bH;bu.yCorr=bw}aI(bI,{left:bz+bH,top:bx+bw});bu.cTT=bD}},shadow:function(bw){var M=[],bs,bt=this.element,bu=this.renderer,bv,L=bt.style,bx,by=bt.path;if(""+bt.path===""){by="x"}if(bw){for(bs=1;bs<=3;bs++){bx=['<shape isShadow="true" strokeweight="',(7-2*bs),'" filled="false" path="',by,'" coordsize="100,100" style="',bt.style.cssText,'" />'];bv=aD(bu.prepVML(bx),null,{left:w(L.left)+1,top:w(L.top)+1});bx=['<stroke color="black" opacity="',(0.05*bs),'"/>'];aD(bu.prepVML(bx),null,null,bv);bt.parentNode.insertBefore(bv,bt);M.push(bv)}this.shadows=M}return this}});bm=function(){this.init.apply(this,arguments)};bm.prototype=F(x.prototype,{isIE8:f.indexOf("MSIE 8.0")>-1,init:function(bs,bt,M){var bu=this,L;bu.Element=aV;bu.alignedObjects=[];L=bu.createElement(aA);bs.appendChild(L.element);bu.box=L.element;bu.boxWrapper=L;bu.setSize(bt,M,false);if(!T.namespaces.hcv){T.namespaces.add("hcv","urn:schemas-microsoft-com:vml");T.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}},clipRect:function(M,bu,bt,L){var bs=this.createElement();return aH(bs,{members:[],left:M,top:bu,width:bt,height:L,getCSS:function(bw){var bz=this,bB=bz.top,bA=bz.left,by=bA+bz.width,bv=bB+bz.height,bx={clip:"rect("+C(bw?bA:bB)+"px,"+C(bw?bv:by)+"px,"+C(bw?by:bv)+"px,"+C(bw?bB:bA)+"px)"};if(!bw&&a9){aH(bx,{width:by+aw,height:bv+aw})}return bx},updateClipping:function(){bo(bs.members,function(bv){bv.css(bs.getCSS(bv.inverted))})}})},color:function(bu,bs,L){var bB,M=/^rgba/,bD;if(bu&&bu.linearGradient){var by,bx,bA=bu.linearGradient,bt,bC,bw,bz,bv;bo(bu.stops,function(bF,bE){if(M.test(bF[1])){bB=E(bF[1]);by=bB.get("rgb");bx=bB.get("a")}else{by=bF[1];bx=1}if(!bE){bC=by;bw=bx}else{bz=by;bv=bx}});bt=90-ag.atan((bA[3]-bA[1])/(bA[2]-bA[0]))*180/u;bD=["<",L,' colors="0% ',bC,",100% ",bz,'" angle="',bt,'" opacity="',bv,'" o:opacity2="',bw,'" type="gradient" focus="100%" />'];aD(this.prepVML(bD),null,null,bs)}else{if(M.test(bu)&&bs.tagName!="IMG"){bB=E(bu);bD=["<",L,' opacity="',bB.get("a"),'"/>'];aD(this.prepVML(bD),null,null,bs);return bB.get("rgb")}else{return bu}}},prepVML:function(L){var M="display:inline-block;behavior:url(#default#VML);",bs=this.isIE8;L=L.join("");if(bs){L=L.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />');if(L.indexOf('style="')==-1){L=L.replace("/>",' style="'+M+'" />')}else{L=L.replace('style="','style="'+M)}}else{L=L.replace("<","<hcv:")}return L},text:function(bs,L,bt){var M=aT.chart.style;return this.createElement("span").attr({text:bs,x:C(L),y:C(bt)}).css({whiteSpace:"nowrap",fontFamily:M.fontFamily,fontSize:M.fontSize})},path:function(L){return this.createElement("shape").attr({coordsize:"100 100",d:L})},circle:function(L,bs,M){return this.path(this.symbols.circle(L,bs,M))},g:function(L){var bs,M;if(L){M={className:I+L,"class":I+L}}bs=this.createElement(aA).attr(M);return bs},image:function(bu,M,bv,bs,L){var bt=this.createElement("img").attr({src:bu});if(arguments.length>1){bt.css({left:M,top:bv,width:bs,height:L})}return bt},rect:function(M,bw,bs,L,bu,bv){if(arguments.length>1){var bt=(bv||0)%2/2;M=C(M||0)+bt;bw=C(bw||0)+bt;bs=C((bs||0)-2*bt);L=C((L||0)-2*bt)}if(Q(M)){bw=M.y;bs=M.width;L=M.height;bu=M.r;M=M.x}return this.symbol("rect",M||0,bw||0,bu||0,{width:bs||0,height:L||0})},invertChild:function(M,L){var bs=L.style;aI(M,{flip:"x",left:w(bs.width)-10,top:w(bs.height)-10,rotation:-90})},symbols:{arc:function(bz,by,bw,bC){var bs=bC.start,bt=bC.end,bv=a6(bs),L=N(bs),M=a6(bt),bA=N(bt),bx=bC.innerR,bB=0.07/bw,bu=bx&&0.1/bx||0;if(bt-bs===0){return["x"]}else{if(2*u-bt+bs<bB){M=-bB}else{if(bt-bs<bu){M=a6(bs+bu)}}}return["wa",bz-bw,by-bw,bz+bw,by+bw,bz+bw*bv,by+bw*L,bz+bw*M,by+bw*bA,"at",bz-bx,by-bx,bz+bx,by+bx,bz+bx*M,by+bx*bA,bz+bx*bv,by+bx*L,"x","e"]},circle:function(L,bs,M){return["wa",L-M,bs-M,L+M,bs+M,L+M,bs,L+M,bs,"e"]},rect:function(bx,bw,bv,bs){var bu=bs.width,L=bs.height,bt=bx+bu,M=bw+L;bv=an(bv,bu,L);return[aF,bx+bv,bw,aG,bt-bv,bw,"wa",bt-2*bv,bw,bt,bw+2*bv,bt-bv,bw,bt,bw+bv,aG,bt,M-bv,"wa",bt-2*bv,M-2*bv,bt,M,bt,M-bv,bt-bv,M,aG,bx+bv,M,"wa",bx,M-2*bv,bx+2*bv,M,bx+bv,M,bx,M-bv,aG,bx,bw+bv,"wa",bx,bw,bx+2*bv,bw+2*bv,bx,bw+bv,bx+bv,bw,"x","e"]}}})}var aR=d?x:bm;function bh(cd,bR){az=F(az,aT.xAxis);a7=F(a7,aT.yAxis);aT.xAxis=aT.yAxis=null;cd=F(aT,cd);var bS=cd.chart,cq=bS.margin,cD=Q(cq)?cq:[cq,cq,cq,cq],bP=c(bS.marginTop,cD[0]),bN=c(bS.marginRight,cD[1]),b6=c(bS.marginBottom,cD[2]),b9=c(bS.marginLeft,cD[3]),cS=bS.spacingTop,bZ=bS.spacingRight,bU=bS.spacingBottom,cH=bS.spacingLeft,b7,ca,cr,cv,cB,b8,M,bF,bY,cw,cp,b2,cI,b5,cT,bK,bG,cb,bL,bx,cg,bB,cG=this,bX=bS.events,cU=bX&&!!bX.click,bO,bM,bD,bT,bu,cE,cR,bC,bs,L,cn,bW,cO,bI,bA,cj,cl=bS.showAxes,bQ=0,cx=[],bv,ch=[],bz,ce,ct,cm,bH,ck,cC,bE,cA,by,bw,b1;function bJ(dV,dw){var dY=dw.isX,dH=dw.opposite,cZ=bz?!dY:dY,dZ=cZ?(dH?0:2):(dH?1:3),du={};dw=F(dY?az:a7,[B,J,bi,at][dZ],dw);var c4=this,dW=dw.type=="datetime",c8=dw.offset||0,dA=dY?"x":"y",db,dC,dl,dB=cZ?M:b8,da,c3,df,dS,dU,dX,dc,dO,dr,dG,de=null,d0=null,dv,dL,c2=dw.minPadding,cW=dw.maxPadding,dd=n(dw.linkedTo),d3,dR,dI,dh=dw.events,dk,c5=[],c6,dD,dT,dQ,dM={},d5={},c7={},c1,d1,ds,d2,dK=dw.categories,dN=dw.labels.formatter||function(){var d8=this.value,d7;if(d2){d7=aM(d2,d8)}else{if(c6%1000000===0){d7=(d8/1000000)+"M"}else{if(c6%1000===0){d7=(d8/1000)+"k"}else{if(!dK&&d8>=1000){d7=l(d8,0)}else{d7=d8}}}}return d7},dy=cZ&&dw.labels.staggerLines,c0=dw.reversed,dg=(dK&&dw.tickmarkPlacement=="between")?0.5:0;function di(d9,d8){var d7=this;d7.pos=d9;d7.minor=d8;d7.isNew=true;if(!d8){d7.addLabel()}}di.prototype={addLabel:function(){var ed=this.pos,d7=dw.labels,ec,ea=!((ed==d0&&!c(dw.showFirstLabel,1))||(ed==de&&!c(dw.showLastLabel,0))),eb=dK&&cZ&&dK.length&&!d7.step&&!d7.staggerLines&&!d7.rotation&&bs/dK.length||!cZ&&bs/2,d9,d8=this.label;ec=dN.call({isFirst:ed==dQ[0],isLast:ed==dQ[dQ.length-1],dateTimeLabelFormat:d2,value:(dK&&dK[ed]?dK[ed]:ed)});d9=eb&&{width:(eb-2*(d7.padding||10))+aw};d9=aH(d9,d7.style);if(d8===aL){this.label=n(ec)&&ea&&d7.enabled?ce.text(ec,0,0).attr({align:d7.align,rotation:d7.rotation}).css(d9).add(df):null}else{if(d8){d8.attr({text:ec}).css(d9)}}},getLabelSize:function(){var d7=this.label;return d7?((this.labelBBox=d7.getBBox()))[cZ?"height":"width"]:0},render:function(ed,d8){var et=this,es=!et.minor,eg=et.label,ec=et.pos,eq=dw.labels,ee=et.gridLine,ep=es?dw.gridLineWidth:dw.minorGridLineWidth,er=es?dw.gridLineColor:dw.minorGridLineColor,ef=es?dw.gridLineDashStyle:dw.minorGridLineDashStyle,eu,ej=et.mark,d7,d9=es?dw.tickLength:dw.minorTickLength,eh=es?dw.tickWidth:(dw.minorTickWidth||0),em=es?dw.tickColor:dw.minorTickColor,en=es?dw.tickPosition:dw.minorTickPosition,eb=eq.step,ea=d8&&cb||bK,eo,ek,ei;ek=cZ?da(ec+dg,null,null,d8)+dB:M+c8+(dH?(d8&&bG||cT)-cB-M:0);ei=cZ?ea-b8+c8-(dH?bC:0):ea-da(ec+dg,null,null,d8)-dB;if(ep){eu=c3(ec+dg,ep,d8);if(ee===aL){eo={stroke:er,"stroke-width":ep};if(ef){eo.dashstyle=ef}et.gridLine=ee=ep?ce.path(eu).attr(eo).add(dS):null}if(ee&&eu){ee.animate({d:eu})}}if(eh){if(en=="inside"){d9=-d9}if(dH){d9=-d9}d7=ce.crispLine([aF,ek,ei,aG,ek+(cZ?0:-d9),ei+(cZ?d9:0)],eh);if(ej){ej.animate({d:d7})}else{et.mark=ce.path(d7).attr({stroke:em,"stroke-width":eh}).add(df)}}if(eg){ek=ek+eq.x-(dg&&cZ?dg*dC*(c0?-1:1):0);ei=ei+eq.y-(dg&&!cZ?dg*dC*(c0?1:-1):0);if(!n(eq.y)){ei+=parseInt(eg.styles.lineHeight)*0.9-eg.getBBox().height/2}if(dy){ei+=(ed%dy)*16}if(eb){eg[ed%eb?"hide":"show"]()}eg[et.isNew?"attr":"animate"]({x:ek,y:ei})}et.isNew=false},destroy:function(){var d7=this,d8;for(d8 in d7){if(d7[d8]&&d7[d8].destroy){d7[d8].destroy()}}}};function dF(d8){var d7=this;if(d8){d7.options=d8;d7.id=d8.id}return d7}dF.prototype={render:function(){var es=this,ea=es.options,d7=ea.label,ec=es.label,em=ea.width,d9=ea.to,ej,eq=ea.from,eb=ea.dashStyle,eo=es.svgElem,ek=[],en,eg,ed,er,ef,ee,ep=ea.color,ei=ea.zIndex,d8=ea.events,eh;if(em){ek=c3(ea.value,em);eh={stroke:ep,"stroke-width":em};if(eb){eh.dashstyle=eb}}else{if(n(eq)&&n(d9)){eq=aZ(eq,d0);d9=an(d9,de);ej=c3(d9);ek=c3(eq);if(ek&&ej){ek.push(ej[4],ej[5],ej[1],ej[2])}else{ek=null}eh={fill:ep}}else{return}}if(n(ei)){eh.zIndex=ei}if(eo){if(ek){eo.animate({d:ek},null,eo.onGetPath)}else{eo.hide();eo.onGetPath=function(){eo.show()}}}else{if(ek&&ek.length){es.svgElem=eo=ce.path(ek).attr(eh).add();if(d8){en=function(et){eo.on(et,function(eu){d8[et].apply(es,[eu])})};for(eg in d8){en(eg)}}}}if(d7&&n(d7.text)&&ek&&ek.length&&bs>0&&bC>0){d7=F({align:cZ&&ej&&"center",x:cZ?!ej&&4:10,verticalAlign:!cZ&&ej&&"middle",y:cZ?ej?16:10:ej?6:-4,rotation:cZ&&!ej&&90},d7);if(!ec){es.label=ec=ce.text(d7.text,0,0).attr({align:d7.textAlign||d7.align,rotation:d7.rotation,zIndex:ei}).css(d7.style).add()}ed=[ek[1],ek[4],ek[6]||ek[1]];er=[ek[2],ek[5],ek[7]||ek[2]];ef=an.apply(ag,ed);ee=an.apply(ag,er);ec.align(d7,false,{x:ef,y:ee,width:aZ.apply(ag,ed)-ef,height:aZ.apply(ag,er)-ee});ec.show()}else{if(ec){ec.hide()}}return es},destroy:function(){var d7=this,d8;for(d8 in d7){if(d7[d8]&&d7[d8].destroy){d7[d8].destroy()}delete d7[d8]}aW(c5,d7)}};function cY(){var d7=[],d8=[],d9;dX=dc=null;dO=[];bo(ch,function(ee){d9=false;bo(["xAxis","yAxis"],function(eg){if(ee.isCartesian&&(eg=="xAxis"&&dY||eg=="yAxis"&&!dY)&&((ee.options[eg]==dw.index)||(ee.options[eg]===aL&&dw.index===0))){ee[eg]=c4;dO.push(ee);d9=true}});if(!ee.visible&&bS.ignoreHiddenSeries){d9=false}if(d9){var ed,ef,ec,ea,eb;if(!dY){ed=ee.options.stacking;dI=ed=="percent";if(ed){ea=ee.type+c(ee.options.stack,"");eb="-"+ea;ee.stackKey=ea;ef=d7[ea]||[];d7[ea]=ef;ec=d8[eb]||[];d8[eb]=ec}if(dI){dX=0;dc=99}}if(ee.isCartesian){bo(ee.data,function(em,ek){var eg=em.x,ep=em.y,eh=ep<0,eo=eh?ec:ef,en=eh?eb:ea,ei,ej;if(dX===null){dX=dc=em[dA]}if(dY){if(eg>dc){dc=eg}else{if(eg<dX){dX=eg}}}else{if(n(ep)){if(ed){eo[eg]=n(eo[eg])?eo[eg]+ep:ep}ei=eo?eo[eg]:ep;ej=c(em.low,ei);if(!dI){if(ei>dc){dc=ei}else{if(ej<dX){dX=ej}}}if(ed){if(!du[en]){du[en]={}}du[en][eg]={total:ei,cum:ei}}}}});if(/(area|column|bar)/.test(ee.type)&&!dY){if(dX>=0){dX=0;d3=true}else{if(dc<0){dc=0;dR=true}}}}}})}da=function(d8,ed,ee,d9){var ea=1,ec=0,eb=d9?dl:dC,ef=d9?dv:d0,d7;if(!eb){eb=dC}if(ee){ea*=-1;ec=db}if(c0){ea*=-1;ec-=ea*db}if(ed){if(c0){d8=db-d8}d7=d8/eb+ef}else{d7=ea*(d8-ef)*eb+ec}return d7};c3=function(eg,ec,d9){var d8,ef,d7,ee,eb=da(eg,null,null,d9),ed=d9&&cb||bK,ea=d9&&bG||cT,eh;d8=d7=C(eb+dB);ef=ee=C(ed-eb-dB);if(isNaN(eb)){eh=true}else{if(cZ){ef=cv;ee=ed-b8;if(d8<M||d8>M+bs){eh=true}}else{d8=M;d7=ea-cB;if(ef<cv||ef>cv+bC){eh=true}}}return eh?null:ce.crispLine([aF,d8,ef,aG,d7,ee],ec||0)};function d4(d7,ea){var d9;dT=ea?1:ag.pow(10,aa(ag.log(d7)/ag.LN10));d9=d7/dT;if(!ea){ea=[1,2,2.5,5,10];if(dw.allowDecimals===false){if(dT==1){ea=[1,2,5,10]}else{if(dT<=0.1){ea=[1/dT]}}}}for(var d8=0;d8<ea.length;d8++){d7=ea[d8];if(d9<=(ea[d8]+(ea[d8+1]||ea[d8]))/2){break}}d7*=dT;return d7}function dJ(){dQ=[];var em,ee=aT.global.useUTC,eh=1000/V,eb=60000/V,d7=3600000/V,eg=24*3600000/V,ef=7*24*3600000/V,ep=30*24*3600000/V,ec=31556952000/V,ej=[["second",eh,[1,2,5,10,15,30]],["minute",eb,[1,2,5,10,15,30]],["hour",d7,[1,2,3,4,6,8,12]],["day",eg,[1,2]],["week",ef,[1,2]],["month",ep,[1,2,3,4,6]],["year",ec,null]],ed=ej[6],eq=ed[1],d8=ed[2];for(em=0;em<ej.length;em++){ed=ej[em];eq=ed[1];d8=ed[2];if(ej[em+1]){var ek=(eq*d8[d8.length-1]+ej[em+1][1])/2;if(c6<=ek){break}}}if(eq==ec&&c6<5*eq){d8=[1,2,5]}var eo=d4(c6/eq,d8),er,ea=new Date(d0*V);ea.setMilliseconds(0);if(eq>=eh){ea.setSeconds(eq>=eb?0:eo*aa(ea.getSeconds()/eo))}if(eq>=eb){ea[aS](eq>=d7?0:eo*aa(ea[U]()/eo))}if(eq>=d7){ea[R](eq>=eg?0:eo*aa(ea[a0]()/eo))}if(eq>=eg){ea[a5](eq>=ep?1:eo*aa(ea[bj]()/eo))}if(eq>=ep){ea[S](eq>=ec?0:eo*aa(ea[a2]()/eo));er=ea[ax]()}if(eq>=ec){er-=er%eo;ea[H](er)}if(eq==ef){ea[a5](ea[bj]()-ea[av]()+dw.startOfWeek)}em=1;er=ea[ax]();var d9=ea.getTime()/V,en=ea[a2](),ei=ea[bj]();while(d9<de&&em<bs){dQ.push(d9);if(eq==ec){d9=a8(er+em*eo,0)/V}else{if(eq==ep){d9=a8(er,en+em*eo)/V}else{if(!ee&&(eq==eg||eq==ef)){d9=a8(er,en,ei+em*eo*(eq==eg?1:7))}else{d9+=eq*eo}}}em++}dQ.push(d9);d2=dw.dateTimeLabelFormats[ed[0]]}function dt(d8){var d9,d7=d8;if(n(dT)){d9=(dT<1?C(1/dT):1)*10;d7=C(d8*d9)/d9}return d7}function dj(){var d8,d9=aa(d0/c6)*c6,d7=bq(de/c6)*c6;dQ=[];d8=dt(d9);while(d8<=d7){dQ.push(d8);d8=dt(d8+c6)}}function dq(ed){var d7,eh,d8,eb,ec=dw.tickInterval,ea=dw.tickPixelInterval,ee=dw.maxZoom||(dY?an(dV.smallestInterval*5,dc-dX):null),ef;db=cZ?bs:bC;if(dd){d8=dV[dY?"xAxis":"yAxis"][dw.linkedTo];eb=d8.getExtremes();d0=c(eb.min,eb.dataMin);de=c(eb.max,eb.dataMax)}else{d0=c(dr,dw.min,dX);de=c(dG,dw.max,dc)}if(de-d0<ee){ef=(ee-de+d0)/2;d0=aZ(d0-ef,c(dw.min,d0-ef),dX);de=an(d0+ee,c(dw.max,d0+ee),dc)}if(!dK&&!dI&&!dd&&n(d0)&&n(de)){d7=(de-d0)||1;if(!n(dw.min)&&!n(dr)&&c2&&(dX<0||!d3)){d0-=d7*c2}if(!n(dw.max)&&!n(dG)&&cW&&(dc>0||!dR)){de+=d7*cW}}if(d0==de){c6=1}else{if(dd&&!ec&&ea==d8.options.tickPixelInterval){c6=d8.tickInterval}else{c6=c(ec,dK?1:(de-d0)*ea/db)}}if(!dW&&!n(dw.tickInterval)){c6=d4(c6)}c4.tickInterval=c6;dD=dw.minorTickInterval==="auto"&&c6?c6/5:dw.minorTickInterval;if(dW){dJ()}else{dj()}if(!dd){if(dK||(dY&&dV.hasColumn)){eh=(dK?1:c6)*0.5;if(dK||!n(c(dw.min,dr))){d0-=eh}if(dK||!n(c(dw.max,dG))){de+=eh}}var d9=dQ[0],eg=dQ[dQ.length-1];if(dw.startOnTick){d0=d9}else{if(d0>d9){dQ.shift()}}if(dw.endOnTick){de=eg}else{if(de<eg){dQ.pop()}}if(!bv){bv={x:0,y:0}}if(!dW&&dQ.length>bv[dA]){bv[dA]=dQ.length}}}function d6(){if(bv&&!dW&&!dK&&!dd){var d8=c1,d7=dQ.length;c1=bv[dA];if(d7<c1){while(dQ.length<c1){dQ.push(dt(dQ[dQ.length-1]+c6))}dC*=(d7-1)/(c1-1);de=dQ[dQ.length-1]}if(n(d8)&&c1!=d8){c4.isDirty=true}}}function dx(){var d8,d7;dv=d0;dL=de;cY();dq();dl=dC;dC=db/((de-d0)||1);if(!dY){for(d8 in du){for(d7 in du[d8]){du[d8][d7].cum=du[d8][d7].total}}}if(!c4.isDirty){c4.isDirty=(d0!=dv||de!=dL)}}function dE(d9,d7,ea,d8){ea=c(ea,true);aX(c4,"setExtremes",{min:d9,max:d7},function(){dr=d9;dG=d7;if(ea){dV.redraw(d8)}})}function cX(){return{min:d0,max:de,dataMin:dX,dataMax:dc}}function dz(d7){if(d0>d7){d7=d0}else{if(de<d7){d7=de}}return da(d7,0,1)}function c9(d7){var d8=new dF(d7).render();c5.push(d8);return d8}function dP(){var d9=dO.length&&n(d0)&&n(de),ec=0,eb=0,ea=dw.title,d8=dw.labels,d7=[-1,1,1,-1][dZ];if(!df){df=ce.g("axis").attr({zIndex:7}).add();dS=ce.g("grid").attr({zIndex:1}).add()}d1=0;if(d9||dd){bo(dQ,function(ee){if(!dM[ee]){dM[ee]=new di(ee)}else{dM[ee].addLabel()}if(dZ===0||dZ==2||{1:"left",3:"right"}[dZ]==d8.align){d1=aZ(dM[ee].getLabelSize(),d1)}});if(dy){d1+=(dy-1)*16}}else{for(var ed in dM){dM[ed].destroy();delete dM[ed]}}if(ea&&ea.text){if(!c4.axisTitle){c4.axisTitle=ce.text(ea.text,0,0).attr({zIndex:7,rotation:ea.rotation||0,align:ea.textAlign||{low:"left",middle:"center",high:"right"}[ea.align]}).css(ea.style).add()}ec=c4.axisTitle.getBBox()[cZ?"height":"width"];eb=c(ea.margin,cZ?5:10)}c8=d7*(dw.offset||bF[dZ]);ds=d1+(dZ!=2&&d1&&d7*dw.labels[cZ?"y":"x"])+eb;bF[dZ]=aZ(bF[dZ],ds+ec+d7*c8)}function dp(){var eh=dw.title,ed=dw.alternateGridColor,eb=dw.lineWidth,d7,eg,ei,ec=dV.hasRendered,ef=ec&&n(dv)&&!isNaN(dv),ek=dO.length&&n(d0)&&n(de);db=cZ?bs:bC;dC=db/((de-d0)||1);dB=cZ?M:b8;if(ek||dd){if(dD&&!dK){var ee=d0+(dQ[0]-d0)%dD;for(ee;ee<=de;ee+=dD){if(!d5[ee]){d5[ee]=new di(ee,true)}if(ef&&d5[ee].isNew){d5[ee].render(null,true)}d5[ee].isActive=true;d5[ee].render()}}bo(dQ,function(en,em){if(!dd||(en>=d0&&en<=de)){if(ef&&dM[en].isNew){dM[en].render(em,true)}dM[en].isActive=true;dM[en].render(em)}});if(ed){bo(dQ,function(en,em){if(em%2===0&&en<de){if(!c7[en]){c7[en]=new dF()}c7[en].options={from:en,to:dQ[em+1]!==aL?dQ[em+1]:de,color:ed};c7[en].render();c7[en].isActive=true}})}if(!ec){bo((dw.plotLines||[]).concat(dw.plotBands||[]),function(em){c5.push(new dF(em).render())})}}bo([dM,d5,c7],function(em){for(var en in em){if(!em[en].isActive){em[en].destroy();delete em[en]}else{em[en].isActive=false}}});if(eb){d7=M+(dH?bs:0)+c8;eg=bK-b8-(dH?bC:0)+c8;ei=ce.crispLine([aF,cZ?M:d7,cZ?eg:cv,aG,cZ?cT-cB:d7,cZ?eg:bK-b8],eb);if(!dU){dU=ce.path(ei).attr({stroke:dw.lineColor,"stroke-width":eb,zIndex:7}).add()}else{dU.animate({d:ei})}}if(c4.axisTitle){var ea=cZ?M:cv,ej=w(eh.style.fontSize||12),d8={low:ea+(cZ?0:db),middle:ea+db/2,high:ea+(cZ?db:0)}[eh.align],d9=(cZ?cv+bC:M)+(cZ?1:-1)*(dH?-1:1)*ds+(dZ==2?ej:0);c4.axisTitle[ec?"animate":"attr"]({x:cZ?d8:d9+(dH?bs:0)+c8+(eh.x||0),y:cZ?d9-(dH?bC:0)+c8:d8+(eh.y||0)})}c4.isDirty=false}function cV(d8){for(var d7=0;d7<c5.length;d7++){if(c5[d7].id==d8){c5[d7].destroy()}}}function dn(){if(L.resetTracker){L.resetTracker()}dp();bo(c5,function(d7){d7.render()});bo(dO,function(d7){d7.isDirty=true})}function dm(d7,d8){c4.categories=dK=d7;bo(dO,function(d9){d9.translate();d9.setTooltipPoints(true)});c4.isDirty=true;if(c(d8,true)){dV.redraw()}}if(bz&&dY&&c0===aL){c0=true}aH(c4,{addPlotBand:c9,addPlotLine:c9,adjustTickAmount:d6,categories:dK,getExtremes:cX,getPlotLinePath:c3,getThreshold:dz,isXAxis:dY,options:dw,plotLinesAndBands:c5,getOffset:dP,render:dp,setCategories:dm,setExtremes:dE,setScale:dx,setTickPositions:dq,translate:da,redraw:dn,removePlotBand:cV,removePlotLine:cV,reversed:c0,stacks:du});for(dk in dh){am(c4,dk,dh[dk])}dx()}function cy(cW){var cX={};function cY(c3,c2,c1,c0){if(!cX[c3]){var cZ=ce.text(c2,0,0).css(cd.toolbar.itemStyle).align({align:"right",x:-cB-20,y:cv+30}).on("click",c0).attr({align:"right",zIndex:20}).add();cX[c3]=cZ}}function cV(cZ){ae(cX[cZ].element);cX[cZ]=null}return{add:cY,remove:cV}}function cJ(cX){var c6,df=cX.borderWidth,cV=cX.crosshairs,c8=[],de=cX.style,cW=cX.shared,c9=w(de.padding),da=df+c9,c7=true,c2,cZ,dd=0,dc=0;de.padding=0;var c0=ce.g("tooltip").attr({zIndex:8}).add(),c3=ce.rect(da,da,0,0,cX.borderRadius,df).attr({fill:cX.backgroundColor,"stroke-width":df}).add(c0).shadow(cX.shadow),c1=ce.text("",c9+da,w(de.fontSize)+c9+da).attr({zIndex:1}).css(de).add(c0);c0.hide();function c5(){var dn=this,dh=dn.points||aq(dn),dm=dh[0].series.xAxis,dg=dn.x,dl=dm&&dm.options.type=="datetime",dk=be(dg)||dl,di,dj;dj=dk?['<span style="font-size: 10px">',(dl?aM("%A, %b %e, %Y",dg):dg),"</span><br/>"]:[];bo(dh,function(dp){dj.push(dp.point.tooltipFormatter(dk))});return dj.join("")}function db(dh,dg){dd=c7?dh:(2*dd+dh)/3;dc=c7?dg:(dc+dg)/2;c0.translate(dd,dc);if(bn(dh-dd)>1||bn(dg-dc)>1){ct=function(){db(dh,dg)}}else{ct=null}}function c4(){if(!c7){var dg=cG.hoverPoints;c0.hide();bo(c8,function(dh){if(dh){dh.hide()}});if(dg){bo(dg,function(dh){dh.setState()})}cG.hoverPoints=null;c7=true}}function cY(du){var dp,dn,dA,dz,dy,dl,dj,di=0,dm={},dr,dk=[],dg=du.tooltipPos,dw=cX.formatter||c5,dq=cG.hoverPoints,dx=function(dB){return{series:dB.series,point:dB,x:dB.category,y:dB.y,percentage:dB.percentage,total:dB.total||dB.stackTotal}};if(cW){if(dq){bo(dq,function(dB){dB.setState()})}cG.hoverPoints=du;bo(du,function(dC,dB){dC.setState(ac);di+=dC.plotY;dk.push(dx(dC))});dj=du[0].plotX;di=C(di)/du.length;dm={x:du[0].category};dm.points=dk;du=du[0]}else{dm=dx(du)}dr=dw.call(dm);c6=du.series;dj=cW?dj:du.plotX;di=cW?di:du.plotY;dp=C(dg?dg[0]:(bz?bs-di:dj));dn=C(dg?dg[1]:(bz?bC-dj:di));dy=cW||!du.series.isCartesian||bM(dp,dn);if(dr===false||!dy){c4()}else{if(c7){c0.show();c7=false}c1.attr({text:dr});dl=c1.getBBox();c2=dl.width+2*c9;cZ=dl.height+2*c9;c3.attr({width:c2,height:cZ,stroke:cX.borderColor||du.color||c6.color||"#606060"});dA=dp-c2+M-25;dz=dn-cZ+cv+10;if(dA<7){dA=7;dz-=30}if(dz<5){dz=5}else{if(dz+cZ>bK){dz=bK-cZ-5}}db(C(dA-da),C(dz-da))}if(cV){cV=aq(cV);var dt,dv=cV.length,ds,dh;while(dv--){if(cV[dv]&&(dh=du.series[dv?"yAxis":"xAxis"])){dt=dh.getPlotLinePath(du[dv?"y":"x"],1);if(c8[dv]){c8[dv].attr({d:dt,visibility:ay})}else{ds={"stroke-width":cV[dv].width||1,stroke:cV[dv].color||"#C0C0C0",zIndex:2};if(cV[dv].dashStyle){ds.dashstyle=cV[dv].dashStyle}c8[dv]=ce.path(dt).attr(ds).add()}}}}}return{shared:cW,refresh:cY,hide:c4}}function cF(c4,db){var cW,cV,c2,c6,da=bS.zoomType,c8=/x/.test(da),c7=/y/.test(da),cZ=c8&&!bz||c7&&bz,c5=c7&&!bz||c8&&bz;function c9(dd){var dc;dd=dd||aO.event;if(!dd.target){dd.target=dd.srcElement}dc=dd.touches?dd.touches.item(0):dd;if(dd.type!="mousemove"||aO.opera){cj=z(cp)}if(bg){dd.chartX=dd.x;dd.chartY=dd.y}else{if(dc.layerX===aL){dd.chartX=dc.pageX-cj.left;dd.chartY=dc.pageY-cj.top}else{dd.chartX=dd.layerX;dd.chartY=dd.layerY}}return dd}function c1(dc){var dd={xAxis:[],yAxis:[]};bo(cx,function(df,de){var di=df.translate,dh=df.isXAxis,dg=bz?!dh:dh;dd[dh?"xAxis":"yAxis"].push({axis:df,value:di(dg?dc.chartX-M:bC-dc.chartY+cv,true)})});return dd}function c3(dh){var dj,dk,dc=c4.hoverPoint,di=c4.hoverSeries,df,de,dd=cT,dg=bz?dh.chartY:dh.chartX-M;if(bD&&db.shared){dk=[];df=ch.length;for(de=0;de<df;de++){if(ch[de].visible&&ch[de].tooltipPoints.length){dj=ch[de].tooltipPoints[dg];dj._dist=bn(dg-dj.plotX);dd=an(dd,dj._dist);dk.push(dj)}}df=dk.length;while(df--){if(dk[df]._dist>dd){dk.splice(df,1)}}if(dk.length&&(dk[0].plotX!=bH)){bD.refresh(dk);bH=dk[0].plotX}}if(di&&di.tracker){dj=di.tooltipPoints[dg];if(dj&&dj!=dc){dj.onMouseOver()}}}function cY(){var dd=c4.hoverSeries,dc=c4.hoverPoint;if(dc){dc.onMouseOut()}if(dd){dd.onMouseOut()}if(bD){bD.hide()}bH=null}function c0(){if(c6){var de={xAxis:[],yAxis:[]},dc=c6.getBBox(),df=dc.x-M,dd=dc.y-cv;if(c2){bo(cx,function(di,dh){var dm=di.translate,dl=di.isXAxis,dk=bz?!dl:dl,dg=dm(dk?df:bC-dd-dc.height,true),dj=dm(dk?df+dc.width:bC-dd,true);de[dl?"xAxis":"yAxis"].push({axis:di,min:an(dg,dj),max:aZ(dg,dj)})});aX(c4,"selection",de,bw)}c6=c6.destroy()}c4.mouseIsDown=bT=c2=false;ap(T,bd?"touchend":"mouseup",c0)}function cX(){var dd=true;cp.onmousedown=function(de){de=c9(de);c4.mouseIsDown=bT=true;cW=de.chartX;cV=de.chartY;am(T,bd?"touchend":"mouseup",c0)};var dc=function(di){if(di&&di.touches&&di.touches.length>1){return}di=c9(di);if(!bd){di.returnValue=false}var de=di.chartX,dj=di.chartY,dg=!bM(de-M,dj-cv);if(bd&&di.type=="touchstart"){if(al(di.target,"isTracker")){if(!c4.runTrackerClick){di.preventDefault()}}else{if(!cU&&!dg){di.preventDefault()}}}if(dg){if(!dd){cY()}if(de<M){de=M}else{if(de>M+bs){de=M+bs}}if(dj<cv){dj=cv}else{if(dj>cv+bC){dj=cv+bC}}}if(bT&&di.type!="touchstart"){if((c2=Math.sqrt(Math.pow(cW-de,2)+Math.pow(cV-dj,2))>10)){if(cl&&(c8||c7)&&bM(cW-M,cV-cv)){if(!c6){c6=ce.rect(M,cv,cZ?1:bs,c5?1:bC,0).attr({fill:"rgba(69,114,167,0.25)",zIndex:7}).add()}}if(c6&&cZ){var dh=de-cW;c6.attr({width:bn(dh),x:(dh>0?0:dh)+cW})}if(c6&&c5){var df=dj-cV;c6.attr({height:bn(df),y:(df>0?0:df)+cV})}}}else{if(!dg){c3(di)}}dd=dg;return dg||!cl};cp.onmousemove=dc;am(cp,"mouseleave",cY);cp.ontouchstart=function(de){if(c8||c7){cp.onmousedown(de)}dc(de)};cp.ontouchmove=dc;cp.ontouchend=function(){if(c2){cY()}};cp.onclick=function(dh){var df=c4.hoverPoint;dh=c9(dh);dh.cancelBubble=true;if(!c2){if(df&&al(dh.target,"isTracker")){var dg=df.plotX,de=df.plotY;aH(df,{pageX:cj.left+M+(bz?bs-de:dg),pageY:cj.top+cv+(bz?bC-dg:de)});aX(df.series,"click",aH(dh,{point:df}));df.firePointEvent("click",dh)}else{aH(dh,c1(dh));if(bM(dh.chartX-M,dh.chartY-cv)){aX(c4,"click",dh)}}}c2=false}}bW=function(){if(!cn){c4.trackerGroup=cn=ce.g("tracker").attr({zIndex:9}).add()}else{cn.translate(M,cv);if(bz){cn.attr({width:c4.plotWidth,height:c4.plotHeight}).invert()}}};bW();if(db.enabled){c4.tooltip=bD=cJ(db)}cX();cm=setInterval(function(){if(ct){ct()}},32);aH(this,{zoomX:c8,zoomY:c7,resetTracker:cY})}var cK=function(df){var c0=df.options.legend;if(!c0.enabled){return}var dn=c0.layout=="horizontal",dp=c0.symbolWidth,cV=c0.symbolPadding,de,dm=c0.style,c3=c0.itemStyle,c4=c0.itemHoverStyle,cX=c0.itemHiddenStyle,dd=w(dm.padding),dq=20,c7=18,dk=4+dd+dp+cV,cY,cW,dg,di=0,c9,dc=c0.borderWidth,c5=c0.backgroundColor,c1,dh,db=c0.width,c8=df.series,dj=c0.reversed;function dr(dw,dz){var ds=dw.legendItem,dx=dw.legendLine,dy=dw.legendSymbol,du=cX.color,dv=dz?c0.itemStyle.color:du,dt=dz?dw.color:du;if(ds){ds.css({fill:dv})}if(dx){dx.attr({stroke:dt})}if(dy){dy.attr({stroke:dt,fill:dt})}}function dl(du,dx,dt){var ds=du.legendItem,dw=du.legendLine,dy=du.legendSymbol,dv=du.checkbox;if(ds){ds.attr({x:dx,y:dt})}if(dw){dw.translate(dx,dt-4)}if(dy){dy.attr({x:dx+dy.xOff,y:dt+dy.yOff})}if(dv){dv.x=dx;dv.y=dt}}function c2(ds){var dt=ds.checkbox;bo(["legendItem","legendLine","legendSymbol"],function(du){if(ds[du]){ds[du].destroy()}});if(dt){ae(ds.checkbox)}}function c6(){bo(de,function(ds){var dt=ds.checkbox;if(dt){aI(dt,{left:(c1.attr("translateX")+ds.legendItemWidth+dt.x-40)+aw,top:(c1.attr("translateY")+dt.y-11)+aw})}})}function da(dB){var dC,dz,dt,dv,du,ds,dy,dA=dB.legendItem,dx=dB.series||dB,dw=de.length;if(!dA){dy=/^(bar|pie|area|column)$/.test(dx.type);dB.legendItem=dA=ce.text(c0.labelFormatter.call(dB),0,0).css(dB.visible?c3:cX).on("mouseover",function(){dB.setState(ac);dA.css(c4)}).on("mouseout",function(){dA.css(dB.visible?c3:cX);dB.setState()}).on("click",function(dF){var dG="legendItemClick",dE=function(){dB.setVisible()};if(dB.firePointEvent){dB.firePointEvent(dG,null,dE)}else{aX(dB,dG,null,dE)}}).attr({zIndex:2}).add(c1);if(!dy&&dB.options&&dB.options.lineWidth){var dD=dB.options;ds={"stroke-width":dD.lineWidth,zIndex:2};if(dD.dashStyle){ds.dashstyle=dD.dashStyle}dB.legendLine=ce.path([aF,-dp-cV,0,aG,-cV,0]).attr(ds).add(c1)}if(dy){dt=ce.rect((dv=-dp-cV),(du=-11),dp,12,2).attr({"stroke-width":0,zIndex:3}).add(c1)}else{if(dB.options&&dB.options.marker&&dB.options.marker.enabled){dt=ce.symbol(dB.symbol,(dv=-dp/2-cV),(du=-4),dB.options.marker.radius).attr(dB.pointAttr[ah]).attr({zIndex:3}).add(c1)}}if(dt){dt.xOff=dv;dt.yOff=du}dB.legendSymbol=dt;dr(dB,dB.visible);if(dB.options&&dB.options.showCheckbox){dB.checkbox=aD("input",{type:"checkbox",checked:dB.selected,defaultChecked:dB.selected},c0.itemCheckboxStyle,cp);am(dB.checkbox,"click",function(dE){var dF=dE.target;aX(dB,"checkboxClick",{checked:dF.checked},function(){dB.select()})})}}dC=dA.getBBox();dz=dB.legendItemWidth=c0.itemWidth||dp+cV+dC.width+dq;di=dC.height;if(dn&&cY-dk+dz>(db||(cT-2*dd-dk))){cY=dk;cW+=di}dg=cW;dl(dB,cY,cW);if(dn){cY+=dz}else{cW+=di}dh=db||aZ(dn?cY-dk:dz,dh);de.push(dB)}function cZ(){cY=dk;cW=c7;dh=0;dg=0;de=[];if(!c1){c1=ce.g("legend").attr({zIndex:7}).add()}if(dj){c8.reverse()}bo(c8,function(dw){if(!dw.options.showInLegend){return}var dv=(dw.options.legendType=="point")?dw.data:[dw];bo(dv,da)});if(dj){c8.reverse()}bI=db||dh;bA=dg-c7+di;if(dc||c5){bI+=2*dd;bA+=2*dd;if(!c9){c9=ce.rect(0,0,bI,bA,c0.borderRadius,dc||0).attr({stroke:c0.borderColor,"stroke-width":dc||0,fill:c5||au}).add(c1).shadow(c0.shadow)}else{if(bI>0&&bA>0){c9.animate({width:bI,height:bA})}}c9[de.length?"show":"hide"]()}var dt=["left","right","top","bottom"],du,ds=4;while(ds--){du=dt[ds];if(dm[du]&&dm[du]!="auto"){c0[ds<2?"align":"verticalAlign"]=du;c0[ds<2?"x":"y"]=w(dm[du])*(ds%2?-1:1)}}c1.align(aH(c0,{width:bI,height:bA}),true,b7);if(!bQ){c6()}}cZ();am(df,"endResize",c6);return{colorizeItem:dr,destroyItem:c2,renderLegend:cZ}};function cN(cV){var cW=cV.type||bS.type||bS.defaultSeriesType,cZ=bk[cW],cX,cY=cG.hasRendered;if(cY){if(bz&&cW=="column"){cZ=bk.bar}else{if(!bz&&cW=="bar"){cZ=bk.column}}}cX=new cZ();cX.init(cG,cV);if(!cY&&cX.inverted){bz=true}if(cX.isCartesian){cl=cX.isCartesian}ch.push(cX);return cX}function cM(cV,cY,cX){var cW;if(cV){aJ(cX,cG);cY=c(cY,true);aX(cG,"addSeries",{options:cV},function(){cW=cN(cV);cW.isDirty=true;cG.isDirtyLegend=true;if(cY){cG.redraw()}})}return cW}bM=function(cV,cW){return cV>=0&&cV<=bs&&cW>=0&&cW<=bC};function ci(){if(bS.alignTicks!==false){bo(cx,function(cV){cV.adjustTickAmount()})}bv=null}function b0(c2){var cX=cG.isDirtyLegend,cW,c1=cG.isDirtyBox,cV=ch.length,cZ=cV,cY=cG.clipRect,c0;aJ(c2,cG);while(cZ--){c0=ch[cZ];if(c0.isDirty&&c0.options.stacking){cW=true;break}}if(cW){cZ=cV;while(cZ--){c0=ch[cZ];if(c0.options.stacking){c0.isDirty=true}}}bo(ch,function(c3){if(c3.isDirty){c3.cleanData();c3.getSegments();if(c3.options.legendType=="point"){cX=true}}});if(cX&&cO.renderLegend){cO.renderLegend();cG.isDirtyLegend=false}if(cl){if(!bQ){bv=null;bo(cx,function(c3){c3.setScale()})}ci();cC();bo(cx,function(c3){if(c3.isDirty||c1){c3.redraw();c1=true}})}if(c1){ck();bW();if(cY){a3(cY);cY.animate({width:cG.plotSizeX,height:cG.plotSizeY})}}bo(ch,function(c3){if(c3.isDirty&&c3.visible&&(!c3.isCartesian||c3.xAxis)){c3.redraw()}});if(L&&L.resetTracker){L.resetTracker()}aX(cG,"redraw")}function bV(cW){var cV=cd.loading;if(!bu){bu=aD(aA,{className:"highcharts-loading"},aH(cV.style,{left:M+aw,top:cv+aw,width:bs+aw,height:bC+aw,zIndex:10,display:au}),cp);cE=aD("span",null,cV.labelStyle,bu)}cE.innerHTML=cW||cd.lang.loading;if(!cR){aI(bu,{opacity:0,display:""});ar(bu,{opacity:cV.style.opacity},{duration:cV.showDuration});cR=true}}function cL(){ar(bu,{opacity:0},{duration:cd.loading.hideDuration,complete:function(){aI(bu,{display:au})}});cR=false}function cu(cY){var cW,cV,cX;for(cW=0;cW<cx.length;cW++){if(cx[cW].options.id==cY){return cx[cW]}}for(cW=0;cW<ch.length;cW++){if(ch[cW].options.id==cY){return ch[cW]}}for(cW=0;cW<ch.length;cW++){cX=ch[cW].data;for(cV=0;cV<cX.length;cV++){if(cX[cV].id==cY){return cX[cV]}}}return null}function b4(){var cV=cd.xAxis||{},cX=cd.yAxis||{},cW;cV=aq(cV);bo(cV,function(cZ,cY){cZ.index=cY;cZ.isX=true});cX=aq(cX);bo(cX,function(cZ,cY){cZ.index=cY});cx=cV.concat(cX);cG.xAxis=[];cG.yAxis=[];cx=A(cx,function(cY){cW=new bJ(cG,cY);cG[cW.isXAxis?"xAxis":"yAxis"].push(cW);return cW});ci()}function cf(){var cV=[];bo(ch,function(cW){cV=cV.concat(v(cW.data,function(cX){return cX.selected}))});return cV}function cz(){return v(ch,function(cV){return cV.selected})}b1=function(){aX(cG,"selection",{resetSelection:true},bw);cG.toolbar.remove("zoom")};bw=function(cW){var cX=aT.lang,cV=cG.pointCount<100;cG.toolbar.add("zoom",cX.resetZoom,cX.resetZoomTitle,b1);if(!cW||cW.resetSelection){bo(cx,function(cY){cY.setExtremes(null,null,false,cV)})}else{bo(cW.xAxis.concat(cW.yAxis),function(cY){var cZ=cY.axis;if(cG.tracker[cZ.isXAxis?"zoomX":"zoomY"]){cZ.setExtremes(cY.min,cY.max,false,cV)}})}b0()};function cQ(cW,cV){ca=F(cd.title,cW);cr=F(cd.subtitle,cV);bo([["title",cW,ca],["subtitle",cV,cr]],function(cX){var cY=cX[0],c1=cG[cY],c0=cX[1],cZ=cX[2];if(c1&&c0){c1.destroy();c1=null}if(cZ&&cZ.text&&!c1){cG[cY]=ce.text(cZ.text,0,0).attr({align:cZ.align,"class":"highcharts-"+cY,zIndex:1}).css(cZ.style).add().align(cZ,false,b7)}})}function cP(){cI=(cw||bY).offsetWidth;b5=(cw||bY).offsetHeight;cG.chartWidth=cT=bS.width||cI||600;cG.chartHeight=bK=bS.height||(b5>19?b5:400)}function cc(){bY=bS.renderTo;b2=I+Y++;if(be(bY)){bY=T.getElementById(bY)}bY.innerHTML="";if(!bY.offsetWidth){cw=bY.cloneNode(0);aI(cw,{position:bf,top:"-9999px",display:""});T.body.appendChild(cw)}cP();cG.container=cp=aD(aA,{className:"highcharts-container"+(bS.className?" "+bS.className:""),id:b2},aH({position:q,overflow:aE,width:cT+aw,height:bK+aw,textAlign:"left"},bS.style),cw||bY);cG.renderer=ce=bS.forExport?new x(cp,cT,bK,true):new aR(cp,cT,bK);var cV,cW;if(g&&cp.getBoundingClientRect){cV=function(){aI(cp,{left:0,top:0});cW=cp.getBoundingClientRect();aI(cp,{left:(-cW.left%1)+aw,top:(-cW.top%1)+aw})};cV();am(aO,"resize",cV);am(cG,"destroy",function(){ap(aO,"resize",cV)})}}cC=function(){var cV=cd.legend,cZ=c(cV.margin,10),cX=cV.x,cW=cV.y,c1=cV.align,c0=cV.verticalAlign,cY;bE();if((cG.title||cG.subtitle)&&!n(bP)){cY=aZ(cG.title&&!ca.floating&&!ca.verticalAlign&&ca.y||0,cG.subtitle&&!cr.floating&&!cr.verticalAlign&&cr.y||0);if(cY){cv=aZ(cv,cY+c(ca.margin,15)+cS)}}if(cV.enabled&&!cV.floating){if(c1=="right"){if(!n(bN)){cB=aZ(cB,bI-cX+cZ+bZ)}}else{if(c1=="left"){if(!n(b9)){M=aZ(M,bI+cX+cZ+cH)}}else{if(c0=="top"){if(!n(bP)){cv=aZ(cv,bA+cW+cZ+cS)}}else{if(c0=="bottom"){if(!n(b6)){b8=aZ(b8,bA-cW+cZ+bU)}}}}}}if(cl){bo(cx,function(c2){c2.getOffset()})}if(!n(b9)){M+=bF[3]}if(!n(bP)){cv+=bF[0]}if(!n(b6)){b8+=bF[2]}if(!n(bN)){cB+=bF[1]}cA()};function cs(){var cW;function cV(){var cY=bS.width||bY.offsetWidth,cX=bS.height||bY.offsetHeight;if(cY&&cX){if(cY!=cI||cX!=b5){clearTimeout(cW);cW=setTimeout(function(){by(cY,cX,false)},100)}cI=cY;b5=cX}}am(window,"resize",cV);am(cG,"destroy",function(){ap(window,"resize",cV)})}by=function(cX,cV,cY){var cZ=cG.title,cW=cG.subtitle;bQ+=1;aJ(cY,cG);cb=bK;bG=cT;cT=C(cX);bK=C(cV);aI(cp,{width:cT+aw,height:bK+aw});ce.setSize(cT,bK,cY);bs=cT-M-cB;bC=bK-cv-b8;bv=null;bo(cx,function(c0){c0.isDirty=true;c0.setScale()});bo(ch,function(c0){c0.isDirty=true});cG.isDirtyLegend=true;cG.isDirtyBox=true;cC();if(cZ){cZ.align(null,null,b7)}if(cW){cW.align(null,null,b7)}b0(cY);cb=null;aX(cG,"resize");setTimeout(function(){aX(cG,"endResize",null,function(){bQ-=1})},r&&r.duration||500)};cA=function(){cG.plotLeft=M=C(M);cG.plotTop=cv=C(cv);cG.plotWidth=bs=C(cT-M-cB);cG.plotHeight=bC=C(bK-cv-b8);cG.plotSizeX=bz?bC:bs;cG.plotSizeY=bz?bs:bC;b7={x:cH,y:cS,width:cT-cH-bZ,height:bK-cS-bU}};bE=function(){cv=c(bP,cS);cB=c(bN,bZ);b8=c(b6,bU);M=c(b9,cH);bF=[0,0,0,0]};ck=function(){var cY=bS.borderWidth||0,cW=bS.backgroundColor,cX=bS.plotBackgroundColor,c0=bS.plotBackgroundImage,cV,cZ={x:M,y:cv,width:bs,height:bC};cV=cY+(bS.shadow?8:0);if(cY||cW){if(!bL){bL=ce.rect(cV/2,cV/2,cT-cV,bK-cV,bS.borderRadius,cY).attr({stroke:bS.borderColor,"stroke-width":cY,fill:cW||au}).add().shadow(bS.shadow)}else{bL.animate({width:cT-cV,height:bK-cV})}}if(cX){if(!bx){bx=ce.rect(M,cv,bs,bC,0).attr({fill:cX}).add().shadow(bS.plotShadow)}else{bx.animate(cZ)}}if(c0){if(!cg){cg=ce.image(c0,M,cv,bs,bC).add()}else{cg.animate(cZ)}}if(bS.plotBorderWidth){if(!bB){bB=ce.rect(M,cv,bs,bC,0,bS.plotBorderWidth).attr({stroke:bS.plotBorderColor,"stroke-width":bS.plotBorderWidth,zIndex:4}).add()}else{bB.animate(cZ)}}cG.isDirtyBox=false};function b3(){var cX=cd.labels,cV=cd.credits,cW;cQ();cO=cG.legend=new cK(cG);cC();bo(cx,function(cY){cY.setTickPositions(true)});ci();cC();ck();if(cl){bo(cx,function(cY){cY.render()})}if(!cG.seriesGroup){cG.seriesGroup=ce.g("series-group").attr({zIndex:3}).add()}bo(ch,function(cY){cY.translate();cY.setTooltipPoints();cY.render()});if(cX.items){bo(cX.items,function(){var cZ=aH(cX.style,this.style),cY=w(cZ.left)+M,c0=w(cZ.top)+cv+12;delete cZ.left;delete cZ.top;ce.text(this.html,cY,c0).attr({zIndex:2}).css(cZ).add()})}if(!cG.toolbar){cG.toolbar=cy(cG)}if(cV.enabled&&!cG.credits){cW=cV.href;ce.text(cV.text,0,0).on("click",function(){if(cW){location.href=cW}}).attr({align:cV.position.align,zIndex:8}).css(cV.style).add().align(cV.position)}bW();cG.hasRendered=true;if(cw){bY.appendChild(cp);ae(cw)}}function bt(){var cW=ch.length,cV=cp&&cp.parentNode;aX(cG,"destroy");ap(aO,"unload",bt);ap(cG);bo(cx,function(cX){ap(cX)});while(cW--){ch[cW].destroy()}if(n(cp)){cp.innerHTML="";ap(cp);if(cV){cV.removeChild(cp)}}cp=null;ce.alignedObjects=null;clearInterval(cm);for(cW in cG){delete cG[cW]}}function co(){var cV="onreadystatechange";if(!d&&!aO.parent&&T.readyState!="complete"){T.attachEvent(cV,function(){T.detachEvent(cV,co);co()});return}cc();bE();cA();bo(cd.series||[],function(cW){cN(cW)});cG.inverted=bz=c(bz,cd.chart.inverted);b4();cG.render=b3;cG.tracker=L=new cF(cG,cd.tooltip);b3();aX(cG,"load");if(bR){bR.apply(cG,[cG])}bo(cG.callbacks,function(cW){cW.apply(cG,[cG])})}ab=0;Z=0;am(aO,"unload",bt);if(bS.reflow!==false){am(cG,"load",cs)}if(bX){for(bO in bX){am(cG,bO,bX[bO])}}cG.options=cd;cG.series=ch;cG.addSeries=cM;cG.animation=c(bS.animation,true);cG.destroy=bt;cG.get=cu;cG.getSelectedPoints=cf;cG.getSelectedSeries=cz;cG.hideLoading=cL;cG.isInsidePlot=bM;cG.redraw=b0;cG.setSize=by;cG.setTitle=cQ;cG.showLoading=bV;cG.pointCount=0;co()}bh.prototype.callbacks=[];var h=function(){};h.prototype={init:function(bs,M){var L=this,bt;L.series=bs;L.applyOptions(M);L.pointAttr={};if(bs.options.colorByPoint){bt=bs.chart.options.colors;if(!L.options){L.options={}}L.color=L.options.color=L.color||bt[ab++];if(ab>=bt.length){ab=0}}bs.chart.pointCount++;return L},applyOptions:function(M){var L=this,bs=L.series;L.config=M;if(af(M)||M===null){L.y=M}else{if(Q(M)&&!af(M.length)){aH(L,M);L.options=M}else{if(be(M[0])){L.name=M[0];L.y=M[1]}else{if(af(M[0])){L.x=M[0];L.y=M[1]}}}}if(L.x===aL){L.x=bs.autoIncrement()}},destroy:function(){var L=this,M=L.series,bs;M.chart.pointCount--;if(L==M.chart.hoverPoint){L.onMouseOut()}M.chart.hoverPoints=null;ap(L);bo(["graphic","tracker","group","dataLabel","connector"],function(bt){if(L[bt]){L[bt].destroy()}});if(L.legendItem){L.series.chart.legend.destroyItem(L)}for(bs in L){L[bs]=null}},select:function(bu,M){var L=this,bs=L.series,bt=bs.chart;L.selected=bu=c(bu,!L.selected);L.firePointEvent(bu?"select":"unselect");L.setState(bu&&D);if(!M){bo(bt.getSelectedPoints(),function(bv){if(bv.selected&&bv!=L){bv.selected=false;bv.setState(ah);bv.firePointEvent("unselect")}})}},onMouseOver:function(){var L=this,bs=L.series.chart,bt=bs.tooltip,M=bs.hoverPoint;if(M&&M!=L){M.onMouseOut()}L.firePointEvent("mouseOver");if(bt&&!bt.shared){bt.refresh(L)}L.setState(ac);bs.hoverPoint=L},onMouseOut:function(){var L=this;L.firePointEvent("mouseOut");L.setState();L.series.chart.hoverPoint=null},tooltipFormatter:function(bs){var L=this,M=L.series;return['<span style="color:'+M.color+'">',(L.name||M.name),"</span>: ",(!bs?("<b>x = "+(L.name||L.x)+",</b> "):""),"<b>",(!bs?"y = ":""),L.y,"</b><br/>"].join("")},getDataLabelText:function(){var L=this;return this.series.options.dataLabels.formatter.call({x:L.x,y:L.y,series:L.series,point:L,percentage:L.percentage,total:L.total||L.stackTotal})},update:function(M,bw,bv){var L=this,bt=L.series,bs=L.dataLabel,bu=bt.chart;bw=c(bw,true);L.firePointEvent("update",{options:M},function(){L.applyOptions(M);if(bs){bs.attr({text:L.getDataLabelText()})}if(Q(M)){bt.getAttribs();L.graphic.attr(L.pointAttr[bt.state])}bt.isDirty=true;if(bw){bu.redraw(bv)}})},remove:function(bv,bu){var L=this,M=L.series,bs=M.chart,bt=M.data;aJ(bu,bs);bv=c(bv,true);L.firePointEvent("remove",null,function(){aW(bt,L);L.destroy();M.isDirty=true;if(bv){bs.redraw()}})},firePointEvent:function(bv,bt,M){var L=this,bu=this.series,bs=bu.options;if(bs.point.events[bv]||(L.options&&L.options.events&&L.options.events[bv])){this.importEvents()}if(bv=="click"&&bs.allowPointSelect){M=function(bw){L.select(null,bw.ctrlKey||bw.metaKey||bw.shiftKey)}}aX(this,bv,bt,M)},importEvents:function(){if(!this.hasImportedEvents){var L=this,M=F(L.series.options.point,L.options),bt=M.events,bs;L.events=bt;for(bs in bt){am(L,bs,bt[bs])}this.hasImportedEvents=true}},setState:function(M){var bz=this,bv=bz.series,bA=bv.options.states,bs=br[bv.type].marker&&bv.options.marker,bu=bs&&!bs.enabled,bt=bs&&bs.states[M],bw=bt&&bt.enabled===false,by=bv.stateMarkerGraphic,bx=bv.chart,L=bz.pointAttr;if(!M){M=ah}if(M==bz.state||(bz.selected&&M!=D)||(bA[M]&&bA[M].enabled===false)||(M&&(bw||bu&&!bt.enabled))){return}if(bz.graphic){bz.graphic.attr(L[M])}else{if(M){if(!by){bv.stateMarkerGraphic=by=bx.renderer.circle(0,0,L[M].r).attr(L[M]).add(bv.group)}by.translate(bz.plotX,bz.plotY)}if(by){by[M?"show":"hide"]()}}bz.state=M}};var aB=function(){};aB.prototype={isCartesian:true,type:"line",pointClass:h,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},init:function(bv,M){var bu=this,bt,bs,L=bv.series.length;bu.chart=bv;M=bu.setOptions(M);aH(bu,{index:L,options:M,name:M.name||"Series "+(L+1),state:ah,pointAttr:{},visible:M.visible!==false,selected:M.selected===true});bs=M.events;for(bt in bs){am(bu,bt,bs[bt])}if((bs&&bs.click)||(M.point&&M.point.events&&M.point.events.click)||M.allowPointSelect){bv.runTrackerClick=true}bu.getColor();bu.getSymbol();bu.setData(M.data,false)},autoIncrement:function(){var M=this,L=M.options,bs=M.xIncrement;bs=c(bs,L.pointStart,0);M.pointInterval=c(M.pointInterval,L.pointInterval,1);M.xIncrement=bs+M.pointInterval;return bs},cleanData:function(){var bt=this,bu=bt.chart,bv=bt.data,bx,bs,bw=bu.smallestInterval,L,M;bv.sort(function(bz,by){return(bz.x-by.x)});for(M=bv.length-1;M>=0;M--){if(bv[M-1]){if(bv[M-1].x==bv[M].x){bv.splice(M-1,1)}}}for(M=bv.length-1;M>=0;M--){if(bv[M-1]){L=bv[M].x-bv[M-1].x;if(bs===aL||L<bs){bs=L;bx=M}}}if(bw===aL||bs<bw){bu.smallestInterval=bs}bt.closestPoints=bx},getSegments:function(){var L=-1,M=[],bs=this.data;bo(bs,function(bt,bu){if(bt.y===null){if(bu>L+1){M.push(bs.slice(L+1,bu))}L=bu}else{if(bu==bs.length-1){M.push(bs.slice(L+1,bu+1))}}});this.segments=M},setOptions:function(bs){var L=this.chart.options.plotOptions,M=F(L[this.type],L.series,bs);return M},getColor:function(){var L=this.chart.options.colors;this.color=this.options.color||L[ab++]||"#0000ff";if(ab>=L.length){ab=0}},getSymbol:function(){var L=this.chart.options.symbols,M=this.options.marker.symbol||L[Z++];this.symbol=M;if(Z>=L.length){Z=0}},addPoint:function(bz,by,M,bs){var bu=this,bt=bu.data,bx=bu.graph,L=bu.area,bv=bu.chart,bw=(new bu.pointClass()).init(bu,bz);aJ(bs,bv);if(bx&&M){bx.shift=M}if(L){L.shift=M;L.isArea=true}by=c(by,true);bt.push(bw);if(M){bt[0].remove(false)}bu.isDirty=true;if(by){bv.redraw()}},setData:function(bu,bw){var M=this,bv=M.data,bt=M.initialColor,bs=M.chart,L=bv&&bv.length||0;M.xIncrement=null;if(n(bt)){ab=bt}bu=A(aq(bu||[]),function(bx){return(new M.pointClass()).init(M,bx)});while(L--){bv[L].destroy()}M.data=bu;M.cleanData();M.getSegments();M.isDirty=true;bs.isDirtyBox=true;if(c(bw,true)){bs.redraw(false)}},remove:function(bt,bs){var L=this,M=L.chart;bt=c(bt,true);if(!L.isRemoving){L.isRemoving=true;aX(L,"remove",null,function(){L.destroy();M.isDirtyLegend=M.isDirtyBox=true;if(bt){M.redraw(bs)}})}L.isRemoving=false},translate:function(){var bu=this,by=bu.chart,bx=bu.options.stacking,bw=bu.xAxis.categories,L=bu.yAxis,bt=bu.data,bv=bt.length;while(bv--){var bC=bt[bv],M=bC.x,bA=bC.y,bz=bC.low,bB=L.stacks[(bA<0?"-":"")+bu.stackKey],bD,bs;bC.plotX=bu.xAxis.translate(M);if(bx&&bu.visible&&bB[M]){bD=bB[M];bs=bD.total;bD.cum=bz=bD.cum-bA;bA=bz+bA;if(bx=="percent"){bz=bs?bz*100/bs:0;bA=bs?bA*100/bs:0}bC.percentage=bs?bC.y*100/bs:0;bC.stackTotal=bs}if(n(bz)){bC.yBottom=L.translate(bz,0,1)}if(bA!==null){bC.plotY=L.translate(bA,0,1)}bC.clientX=by.inverted?by.plotHeight-bC.plotX:bC.plotX;bC.category=bw&&bw[bC.x]!==aL?bw[bC.x]:bC.x}},setTooltipPoints:function(bt){var bv=this,bw=bv.chart,M=bw.inverted,bu=[],by=C((M?bw.plotTop:bw.plotLeft)+bw.plotSizeX),bx,bs,L=[];if(bt){bv.tooltipPoints=null}bo(bv.segments,function(bz){bu=bu.concat(bz)});if(bv.xAxis&&bv.xAxis.reversed){bu=bu.reverse()}bo(bu,function(bz,bA){bx=bu[bA-1]?bu[bA-1].high+1:0;bs=bz.high=bu[bA+1]?(aa((bz.plotX+(bu[bA+1]?bu[bA+1].plotX:by))/2)):by;while(bx<=bs){L[M?by-bx++:bx++]=bz}});bv.tooltipPoints=L},onMouseOver:function(){var M=this,bs=M.chart,L=bs.hoverSeries;if(!bd&&bs.mouseIsDown){return}if(L&&L!=M){L.onMouseOut()}if(M.options.events.mouseOver){aX(M,"mouseOver")}if(M.tracker){M.tracker.toFront()}M.setState(ac);bs.hoverSeries=M},onMouseOut:function(){var bs=this,M=bs.options,bt=bs.chart,bu=bt.tooltip,L=bt.hoverPoint;if(L){L.onMouseOut()}if(bs&&M.events.mouseOut){aX(bs,"mouseOut")}if(bu&&!M.stickyTracking){bu.hide()}bs.setState();bt.hoverSeries=null},animate:function(bu){var M=this,bs=M.chart,L=M.clipRect,bt=M.options.animation;if(bt&&!Q(bt)){bt={}}if(bu){if(!L.isAnimating){L.attr("width",0);L.isAnimating=true}}else{L.animate({width:bs.plotSizeX},bt);this.animate=null}},drawPoints:function(){var bu=this,L,bt=bu.data,bx=bu.chart,M,bz,bv,by,bw,bs;if(bu.options.marker.enabled){bv=bt.length;while(bv--){by=bt[bv];M=by.plotX;bz=by.plotY;bs=by.graphic;if(bz!==aL&&!isNaN(bz)){L=by.pointAttr[by.selected?D:ah];bw=L.r;if(bs){bs.animate({x:M,y:bz,r:bw})}else{by.graphic=bx.renderer.symbol(c(by.marker&&by.marker.symbol,bu.symbol),M,bz,bw).attr(L).add(bu.group)}}}}},convertAttribs:function(bs,M,bx,bw){var bu=this.pointAttrToOptions,L,bt,bv={};bs=bs||{};M=M||{};bx=bx||{};bw=bw||{};for(L in bu){bt=bu[L];bv[L]=c(bs[bt],M[L],bx[L],bw[L])}return bv},getAttribs:function(){var by=this,bs=br[by.type].marker?by.options.marker:by.options,bE=bs.states,M=bE[ac],bz,bt=by.color,bA={stroke:bt,fill:bt},bx=by.data,bw,bC,bv=[],L,bu=by.pointAttrToOptions,bB;if(by.options.marker){M.radius=M.radius||bs.radius+2;M.lineWidth=M.lineWidth||bs.lineWidth+1}else{M.color=M.color||E(M.color||bt).brighten(M.brightness).get()}bv[ah]=by.convertAttribs(bs,bA);bo([ac,D],function(bF){bv[bF]=by.convertAttribs(bE[bF],bv[ah])});by.pointAttr=bv;bw=bx.length;while(bw--){bC=bx[bw];bs=(bC.options&&bC.options.marker)||bC.options;if(bs&&bs.enabled===false){bs.radius=0}bB=false;if(bC.options){for(var bD in bu){if(n(bs[bu[bD]])){bB=true}}}if(bB){L=[];bE=bs.states||{};bz=bE[ac]=bE[ac]||{};if(!by.options.marker){bz.color=E(bz.color||bC.options.color).brighten(bz.brightness||M.brightness).get()}L[ah]=by.convertAttribs(bs,bv[ah]);L[ac]=by.convertAttribs(bE[ac],bv[ac],L[ah]);L[D]=by.convertAttribs(bE[D],bv[D],L[ah])}else{L=bv}bC.pointAttr=L}},destroy:function(){var bs=this,bt=bs.chart,M=bs.clipRect,bu=/\/5[0-9\.]+ Safari\//.test(f),L,bv;ap(bs);if(bs.legendItem){bs.chart.legend.destroyItem(bs)}bo(bs.data,function(bw){bw.destroy()});bo(["area","graph","dataLabelsGroup","group","tracker"],function(bw){if(bs[bw]){L=bu&&bw=="group"?"hide":"destroy";bs[bw][L]()}});if(bt.hoverSeries==bs){bt.hoverSeries=null}aW(bt.series,bs);for(bv in bs){delete bs[bv]}},drawDataLabels:function(){if(this.options.dataLabels.enabled){var bu=this,bz,by,bt=bu.data,bA=bu.options.dataLabels,bx,bv=bu.dataLabelsGroup,bw=bu.chart,L=bw.inverted,bs=bu.type,M;if(!bv){bv=bu.dataLabelsGroup=bw.renderer.g(I+"data-labels").attr({visibility:bu.visible?ay:aE,zIndex:5}).translate(bw.plotLeft,bw.plotTop).add()}M=bA.color;if(M=="auto"){M=null}bA.style.color=c(M,bu.color);bo(bt,function(bB,bF){var bG=bB.barX,bD=bG&&bG+bB.barW/2||bB.plotX||-999,bC=c(bB.plotY,-999),bE=bB.dataLabel,bH=bA.align;bx=bB.getDataLabelText();bz=(L?bw.plotWidth-bC:bD)+bA.x;by=(L?bw.plotHeight-bD:bC)+bA.y;if(bs=="column"){bz+={left:-1,right:1}[bH]*bB.barW/2||0}if(bE){bE.animate({x:bz,y:by})}else{if(n(bx)){bE=bB.dataLabel=bw.renderer.text(bx,bz,by).attr({align:bH,rotation:bA.rotation,zIndex:1}).css(bA.style).add(bv)}}if(L&&!bA.y){bE.attr({y:by+parseInt(bE.styles.lineHeight)*0.9-bE.getBBox().height/2})}})}},drawGraph:function(bv){var by=this,bs=by.options,bC=by.chart,M=by.graph,bz=[],bu,bH=by.area,bx=by.group,bG=bs.lineColor||by.color,L=bs.lineWidth,bw=bs.dashStyle,bt,bF=bC.renderer,bA=by.yAxis.getThreshold(bs.threshold||0),bI=/^area/.test(by.type),bD=[],bE=[],bB;bo(by.segments,function(bL){bt=[];bo(bL,function(bN,bO){if(by.getPointSpline){bt.push.apply(bt,by.getPointSpline(bL,bN,bO))}else{bt.push(bO?aG:aF);if(bO&&bs.step){var bP=bL[bO-1];bt.push(bN.plotX,bP.plotY)}bt.push(bN.plotX,bN.plotY)}});if(bL.length>1){bz=bz.concat(bt)}else{bD.push(bL[0])}if(bI){var bM=[],bK,bJ=bt.length;for(bK=0;bK<bJ;bK++){bM.push(bt[bK])}if(bJ==3){bM.push(aG,bt[1],bt[2])}if(bs.stacking&&by.type!="areaspline"){for(bK=bL.length-1;bK>=0;bK--){bM.push(bL[bK].plotX,bL[bK].yBottom)}}else{bM.push(aG,bL[bL.length-1].plotX,bA,aG,bL[0].plotX,bA)}bE=bE.concat(bM)}});by.graphPath=bz;by.singlePoints=bD;if(bI){bu=c(bs.fillColor,E(by.color).setOpacity(bs.fillOpacity||0.75).get());if(bH){bH.animate({d:bE})}else{by.area=by.chart.renderer.path(bE).attr({fill:bu}).add(bx)}}if(M){M.animate({d:bz})}else{if(L){bB={stroke:bG,"stroke-width":L};if(bw){bB.dashstyle=bw}by.graph=bF.path(bz).attr(bB).add(bx).shadow(bs.shadow)}}},render:function(){var bt=this,bv=bt.chart,bw,bx,bz=bt.options,M=bz.animation,by=M&&bt.animate,L=by?M&&M.duration||500:0,bs=bt.clipRect,bu=bv.renderer;if(!bs){bs=bt.clipRect=!bv.hasRendered&&bv.clipRect?bv.clipRect:bu.clipRect(0,0,bv.plotSizeX,bv.plotSizeY);if(!bv.clipRect){bv.clipRect=bs}}if(!bt.group){bw=bt.group=bu.g("series");if(bv.inverted){bx=function(){bw.attr({width:bv.plotWidth,height:bv.plotHeight}).invert()};bx();am(bv,"resize",bx)}bw.clip(bt.clipRect).attr({visibility:bt.visible?ay:aE,zIndex:bz.zIndex}).translate(bv.plotLeft,bv.plotTop).add(bv.seriesGroup)}bt.drawDataLabels();if(by){bt.animate(true)}bt.getAttribs();if(bt.drawGraph){bt.drawGraph()}bt.drawPoints();if(bt.options.enableMouseTracking!==false){bt.drawTracker()}if(by){bt.animate()}setTimeout(function(){bs.isAnimating=false;bw=bt.group;if(bw&&bs!=bv.clipRect&&bs.renderer){bw.clip((bt.clipRect=bv.clipRect));bs.destroy()}},L);bt.isDirty=false},redraw:function(){var M=this,bs=M.chart,L=M.clipRect,bt=M.group;if(bt){if(bs.inverted){bt.attr({width:bs.plotWidth,height:bs.plotHeight})}bt.animate({translateX:bs.plotLeft,translateY:bs.plotTop})}M.translate();M.setTooltipPoints(true);M.render()},setState:function(bu){var bs=this,M=bs.options,bt=bs.graph,bv=M.states,L=M.lineWidth;bu=bu||ah;if(bs.state!=bu){bs.state=bu;if(bv[bu]&&bv[bu].enabled===false){return}if(bu){L=bv[bu].lineWidth||L+1}if(bt&&!bt.dashstyle){bt.attr({"stroke-width":L},bu?0:500)}}},setVisible:function(M,bB){var bu=this,by=bu.chart,bx=bu.legendItem,bz=bu.group,bD=bu.tracker,bw=bu.dataLabelsGroup,L,bt,bs=bu.data,bA,bC=by.options.chart.ignoreHiddenSeries,bv=bu.visible;bu.visible=M=M===aL?!bv:M;L=M?"show":"hide";if(bz){bz[L]()}if(bD){bD[L]()}else{bt=bs.length;while(bt--){bA=bs[bt];if(bA.tracker){bA.tracker[L]()}}}if(bw){bw[L]()}if(bx){by.legend.colorizeItem(bu,M)}bu.isDirty=true;if(bu.options.stacking){bo(by.series,function(bE){if(bE.options.stacking&&bE.visible){bE.isDirty=true}})}if(bC){by.isDirtyBox=true}if(bB!==false){by.redraw()}aX(bu,L)},show:function(){this.setVisible(true)},hide:function(){this.setVisible(false)},select:function(M){var L=this;L.selected=M=(M===aL)?!L.selected:M;if(L.checkbox){L.checkbox.checked=M}aX(L,M?"select":"unselect")},drawTracker:function(){var bv=this,bB=bv.options,L=[].concat(bv.graphPath),by=L.length,bx=bv.chart,M=bx.options.tooltip.snap,bz=bv.tracker,bA=bB.cursor,bw=bA&&{cursor:bA},bu=bv.singlePoints,bs,bt;if(by){bt=by+1;while(bt--){if(L[bt]==aF){L.splice(bt+1,0,L[bt+1]-M,L[bt+2],aG)}if((bt&&L[bt]==aF)||bt==by){L.splice(bt,0,aG,L[bt-2]+M,L[bt-1])}}}for(bt=0;bt<bu.length;bt++){bs=bu[bt];L.push(aF,bs.plotX-M,bs.plotY,aG,bs.plotX+M,bs.plotY)}if(bz){bz.attr({d:L})}else{bv.tracker=bx.renderer.path(L).attr({isTracker:true,stroke:aQ,fill:au,"stroke-width":bB.lineWidth+2*M,visibility:bv.visible?ay:aE,zIndex:1}).on(bd?"touchstart":"mouseover",function(){if(bx.hoverSeries!=bv){bv.onMouseOver()}}).on("mouseout",function(){if(!bB.stickyTracking){bv.onMouseOut()}}).css(bw).add(bx.trackerGroup)}}};var W=aY(aB);bk.line=W;var y=aY(aB,{type:"area"});bk.area=y;var G=aY(aB,{type:"spline",getPointSpline:function(M,bD,bE){var bB=1.5,L=bB+1,bu=bD.plotX,bs=bD.plotY,bt=M[bE-1],bF=M[bE+1],by,bx,bA,bz,bI;if(bE&&bE<M.length-1){var bw=bt.plotX,bv=bt.plotY,bH=bF.plotX,bG=bF.plotY,bC;by=(bB*bu+bw)/L;bx=(bB*bs+bv)/L;bA=(bB*bu+bH)/L;bz=(bB*bs+bG)/L;bC=((bz-bx)*(bA-bu))/(bA-by)+bs-bz;bx+=bC;bz+=bC;if(bx>bv&&bx>bs){bx=aZ(bv,bs);bz=2*bs-bx}else{if(bx<bv&&bx<bs){bx=an(bv,bs);bz=2*bs-bx}}if(bz>bG&&bz>bs){bz=aZ(bG,bs);bx=2*bs-bz}else{if(bz<bG&&bz<bs){bz=an(bG,bs);bx=2*bs-bz}}bD.rightContX=bA;bD.rightContY=bz}if(!bE){bI=[aF,bu,bs]}else{bI=["C",bt.rightContX||bt.plotX,bt.rightContY||bt.plotY,by||bu,bx||bs,bu,bs];bt.rightContX=bt.rightContY=null}return bI}});bk.spline=G;var a=aY(G,{type:"areaspline"});bk.areaspline=a;var aU=aY(aB,{type:"column",pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",r:"borderRadius"},init:function(){aB.prototype.init.apply(this,arguments);var L=this,M=L.chart;M.hasColumn=true;if(M.hasRendered){bo(M.series,function(bs){if(bs.type==L.type){bs.isDirty=true}})}},translate:function(){var bz=this,bC=bz.chart,bK=0,L=bz.xAxis.reversed,bF=bz.xAxis.categories,bL={},M,bJ;aB.prototype.translate.apply(bz);bo(bC.series,function(bN){if(bN.type==bz.type){if(bN.options.stacking){M=bN.stackKey;if(bL[M]===aL){bL[M]=bK++}bJ=bL[M]}else{bJ=bK++}bN.columnIndex=bJ}});var bt=bz.options,bM=bz.data,bu=bz.closestPoints,bv=bn(bM[1]?bM[bu].plotX-bM[bu-1].plotX:bC.plotSizeX/(bF?bF.length:1)),bH=bv*bt.groupPadding,bA=bv-2*bH,bG=bA/bK,bE=bt.pointWidth,by=n(bE)?(bG-bE)/2:bG*bt.pointPadding,bw=aZ(c(bE,bG-2*by),1),bD=(L?bK-bz.columnIndex:bz.columnIndex)||0,bI=by+(bH+bD*bG-(bv/2))*(L?-1:1),bs=bt.threshold||0,bB=bz.yAxis.getThreshold(bs),bx=c(bt.minPointLength,5);bo(bM,function(bO){var bQ=bO.plotY,bN=bO.yBottom||bB,bT=bO.plotX+bI,bS=bq(an(bQ,bN)),bP=bq(aZ(bQ,bN)-bS),bR;if(bn(bP)<bx){if(bx){bP=bx;bS=bn(bS-bB)>bx?bN-bx:bB-(bQ<=bB?bx:0)}bR=bS-3}aH(bO,{barX:bT,barY:bS,barW:bw,barH:bP});bO.shapeType="rect";bO.shapeArgs={x:bT,y:bS,width:bw,height:bP,r:bt.borderRadius};bO.trackerArgs=n(bR)&&F(bO.shapeArgs,{height:aZ(6,bP+3),y:bR})})},getSymbol:function(){},drawGraph:function(){},drawPoints:function(){var bs=this,L=bs.options,bt=bs.chart.renderer,bu,M;bo(bs.data,function(bv){var bw=bv.plotY;if(bw!==aL&&!isNaN(bw)){bu=bv.graphic;M=bv.shapeArgs;if(bu){a3(bu);bu.animate(M)}else{bv.graphic=bt[bv.shapeType](M).attr(bv.pointAttr[bv.selected?D:ah]).add(bs.group).shadow(L.shadow)}}})},drawTracker:function(){var M=this,bv=M.chart,bu=bv.renderer,L,bw,bt=+new Date(),bx=M.options.cursor,bs=bx&&{cursor:bx},by;bo(M.data,function(bz){bw=bz.tracker;L=bz.trackerArgs||bz.shapeArgs;if(bz.y!==null){if(bw){bw.attr(L)}else{bz.tracker=bu[bz.shapeType](L).attr({isTracker:bt,fill:aQ,visibility:M.visible?ay:aE,zIndex:1}).on(bd?"touchstart":"mouseover",function(bA){by=bA.relatedTarget||bA.fromElement;if(bv.hoverSeries!=M&&al(by,"isTracker")!=bt){M.onMouseOver()}bz.onMouseOver()}).on("mouseout",function(bA){if(!M.options.stickyTracking){by=bA.relatedTarget||bA.toElement;if(al(by,"isTracker")!=bt){M.onMouseOut()}}}).css(bs).add(bv.trackerGroup)}}})},animate:function(bs){var L=this,M=L.data;if(!bs){bo(M,function(bt){var bu=bt.graphic;if(bu){bu.attr({height:0,y:L.yAxis.translate(0,0,1)});bu.animate({height:bt.barH,y:bt.barY},L.options.animation)}});L.animate=null}},remove:function(){var L=this,M=L.chart;if(M.hasRendered){bo(M.series,function(bs){if(bs.type==L.type){bs.isDirty=true}})}aB.prototype.remove.apply(L,arguments)}});bk.column=aU;var ak=aY(aU,{type:"bar",init:function(L){L.inverted=this.inverted=true;aU.prototype.init.apply(this,arguments)}});bk.bar=ak;var ad=aY(aB,{type:"scatter",translate:function(){var L=this;aB.prototype.translate.apply(L);bo(L.data,function(M){M.shapeType="circle";M.shapeArgs={x:M.plotX,y:M.plotY,r:L.chart.options.tooltip.snap}})},drawTracker:function(){var M=this,bs=M.options.cursor,L=bs&&{cursor:bs},bt;bo(M.data,function(bu){bt=bu.graphic;if(bt){bt.attr({isTracker:true}).on("mouseover",function(bv){M.onMouseOver();bu.onMouseOver()}).on("mouseout",function(bv){if(!M.options.stickyTracking){M.onMouseOut()}}).css(L)}})},cleanData:function(){}});bk.scatter=ad;var ai=aY(h,{init:function(){h.prototype.init.apply(this,arguments);var L=this,M;aH(L,{visible:L.visible!==false,name:c(L.name,"Slice")});M=function(){L.slice()};am(L,"select",M);am(L,"unselect",M);return L},setVisible:function(bv){var L=this,bt=L.series.chart,bu=L.tracker,bs=L.dataLabel,M=L.connector,bw;L.visible=bv=bv===aL?!L.visible:bv;bw=bv?"show":"hide";L.group[bw]();if(bu){bu[bw]()}if(bs){bs[bw]()}if(M){M[bw]()}if(L.legendItem){bt.legend.colorizeItem(L,bv)}},slice:function(bs,bw,bv){var L=this,bt=L.series,bu=bt.chart,M=L.slicedTranslation;aJ(bv,bu);bw=c(bw,true);bs=L.sliced=n(bs)?bs:!L.sliced;L.group.animate({translateX:(bs?M[0]:bu.plotLeft),translateY:(bs?M[1]:bu.plotTop)})}});var p=aY(aB,{type:"pie",isCartesian:false,pointClass:ai,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=ab},animate:function(bs){var L=this,M=L.data;bo(M,function(bu){var bw=bu.graphic,bv=bu.shapeArgs,bt=-u/2;if(bw){bw.attr({r:0,start:bt,end:bt});bw.animate({r:bv.r,start:bv.start,end:bv.end},L.options.animation)}});L.animate=null},translate:function(){var bL=0,bC=this,bF=-0.25,bI=1000,M=bC.options,bt=M.slicedOffset,bB=bt+M.borderWidth,bA=M.center,bE=bC.chart,bz=bE.plotWidth,bH=bE.plotHeight,bu,bs,bJ,bK=bC.data,bD=2*u,bx,bG=an(bz,bH),L,by,bw,bv=M.dataLabels.distance;bA.push(M.size,M.innerSize||0);bA=A(bA,function(bN,bM){L=/%$/.test(bN);return L?[bz,bH,bG,bG][bM]*w(bN)/100:bN});bC.getX=function(bN,bM){bJ=ag.asin((bN-bA[1])/(bA[2]/2+bv));return bA[0]+(bM?-1:1)*(a6(bJ)*(bA[2]/2+bv))};bC.center=bA;bo(bK,function(bM){bL+=bM.y});bo(bK,function(bM){bx=bL?bM.y/bL:0;bu=C(bF*bD*bI)/bI;bF+=bx;bs=C(bF*bD*bI)/bI;bM.shapeType="arc";bM.shapeArgs={x:bA[0],y:bA[1],r:bA[2]/2,innerR:bA[3]/2,start:bu,end:bs};bJ=(bs+bu)/2;bM.slicedTranslation=A([a6(bJ)*bt+bE.plotLeft,N(bJ)*bt+bE.plotTop],C);by=a6(bJ)*bA[2]/2;bw=N(bJ)*bA[2]/2;bM.tooltipPos=[bA[0]+by*0.7,bA[1]+bw*0.7];bM.labelPos=[bA[0]+by+a6(bJ)*bv,bA[1]+bw+N(bJ)*bv,bA[0]+by+a6(bJ)*bB,bA[1]+bw+N(bJ)*bB,bA[0]+by,bA[1]+bw,bv<0?"center":bJ<bD/4?"left":"right",bJ];bM.percentage=bx*100;bM.total=bL});this.setTooltipPoints()},render:function(){var L=this;L.getAttribs();this.drawPoints();if(L.options.enableMouseTracking!==false){L.drawTracker()}this.drawDataLabels();if(L.options.animation&&L.animate){L.animate()}L.isDirty=false},drawPoints:function(){var M=this,bs=M.chart,bt=bs.renderer,bw,bv,bu,L;bo(M.data,function(bx){bv=bx.graphic;L=bx.shapeArgs;bu=bx.group;if(!bu){bu=bx.group=bt.g("point").attr({zIndex:5}).add()}bw=bx.sliced?bx.slicedTranslation:[bs.plotLeft,bs.plotTop];bu.translate(bw[0],bw[1]);if(bv){bv.animate(L)}else{bx.graphic=bt.arc(L).attr(aH(bx.pointAttr[ah],{"stroke-linejoin":"round"})).add(bx.group)}if(bx.visible===false){bx.setVisible(false)}})},drawDataLabels:function(){var bB=this,bQ=bB.data,bF,bD=bB.chart,bw=bB.options.dataLabels,bJ=c(bw.connectorPadding,10),bP=c(bw.connectorWidth,1),M,bC,bN=bw.distance>0,L,bE,bu,bx,by=bB.center[1],bs=[[],[],[],[]],bA,bz,bI,bt,bv,bK,bO,bM,bL,bH=4,bG;aB.prototype.drawDataLabels.apply(bB);bo(bQ,function(bR){var bT=bR.labelPos[7],bS;if(bT<0){bS=0}else{if(bT<u/2){bS=1}else{if(bT<u){bS=2}else{bS=3}}}bs[bS].push(bR)});bs[1].reverse();bs[3].reverse();bL=function(bS,bR){return bS.y>bR.y};while(bH--){bt=0;bv=[].concat(bs[bH]);bv.sort(bL);bG=bv.length;while(bG--){bv[bG].rank=bG}for(bK=0;bK<2;bK++){bM=bH%3;bx=bM?9999:-9999;bO=bM?-1:1;for(bG=0;bG<bs[bH].length;bG++){bF=bs[bH][bG];if((L=bF.dataLabel)){bE=bF.labelPos;bI=ay;bA=bE[0];bz=bE[1];if(!bu){bu=L&&L.getBBox().height}if(bN){if(bK&&bF.rank<bt){bI=aE}else{if((!bM&&bz<bx+bu)||(bM&&bz>bx-bu)){bz=bx+bO*bu;bA=bB.getX(bz,bH>1);if((!bM&&bz+bu>by)||(bM&&bz-bu<by)){if(bK){bI=aE}else{bt++}}}}}if(bF.visible===false){bI=aE}if(bI==ay){bx=bz}if(bK){L.attr({visibility:bI,align:bE[6]})[L.moved?"animate":"attr"]({x:bA+bw.x+({left:bJ,right:-bJ}[bE[6]]||0),y:bz+bw.y});L.moved=true;if(bN&&bP){M=bF.connector;bC=[aF,bA+(bE[6]=="left"?5:-5),bz,aG,bA,bz,aG,bE[2],bE[3],aG,bE[4],bE[5]];if(M){M.animate({d:bC});M.attr("visibility",bI)}else{bF.connector=M=bB.chart.renderer.path(bC).attr({"stroke-width":bP,stroke:bw.connectorColor||"#606060",visibility:bI,zIndex:3}).translate(bD.plotLeft,bD.plotTop).add()}}}}}}}},drawTracker:aU.prototype.drawTracker,getSymbol:function(){}});bk.pie=p;aO.Highcharts={Chart:bh,dateFormat:aM,pathAnim:o,getOptions:P,numberFormat:l,Point:h,Color:E,Renderer:aR,seriesTypes:bk,setOptions:aN,Series:aB,addEvent:am,createElement:aD,discardElement:ae,css:aI,each:bo,extend:aH,map:A,merge:F,pick:c,extendClass:aY,version:"2.1.3"}})();
/*
* jquery.qtip. The jQuery tooltip plugin
*
* Copyright (c) 2009 Craig Thompson
* http://craigsworks.com
*
* Licensed under MIT
* http://www.opensource.org/licenses/mit-license.php
*
* Launch  : February 2009
* Version : 1.0.0-rc3
* Released: Tuesday 12th May, 2009 - 00:00
* Debug: jquery.qtip.debug.js
*/
"use strict";(function(f){f(document).ready(function(){var x;f(window).bind("resize scroll",function(z){for(x=0;x<f.fn.qtip.interfaces.length;x++){var y=f.fn.qtip.interfaces[x];if(y&&y.status&&y.status.rendered&&y.options.position.type!=="static"&&y.elements.tooltip.is(":visible")&&(y.options.position.adjust.scroll&&z.type==="scroll"||y.options.position.adjust.resize&&z.type==="resize")){y.updatePosition(z,true)}}});f(document).bind("mouseenter.qtip",function(z){if(f(z.target).parents("div.qtip").length===0){var A=f(".qtipSelector"),y=A.qtip("api");if(A.is(":visible")&&y&&y.status&&!y.status.disabled&&f(z.target).add(y.elements.target).length>1){y.hide(z)}}})});function r(x){if(!x){return false}this.x=String(x).replace(/middle/i,"center").match(/left|right|center/i)[0].toLowerCase();this.y=String(x).replace(/middle/i,"center").match(/top|bottom|center/i)[0].toLowerCase();this.offset={left:0,top:0};this.precedance=(x.charAt(0).search(/^(t|b)/)>-1)?"y":"x";this.string=function(){return(this.precedance==="y")?this.y+this.x:this.x+this.y}}function c(A,z,y){var x={bottomright:[[0,0],[z,y],[z,0]],bottomleft:[[0,0],[z,0],[0,y]],topright:[[0,y],[z,0],[z,y]],topleft:[[0,0],[0,y],[z,y]],topcenter:[[0,y],[z/2,0],[z,y]],bottomcenter:[[0,0],[z,0],[z/2,y]],rightcenter:[[0,0],[z,y/2],[0,y]],leftcenter:[[z,0],[z,y],[0,y/2]]};x.lefttop=x.bottomright;x.righttop=x.bottomleft;x.leftbottom=x.topright;x.rightbottom=x.topleft;return x[A]}function g(x){var y;if(f("<canvas />").get(0).getContext){y={topLeft:[x,x],topRight:[0,x],bottomLeft:[x,0],bottomRight:[0,0]}}else{if(f.browser.msie){y={topLeft:[-90,90,0],topRight:[-90,90,-x],bottomLeft:[90,270,0],bottomRight:[90,270,-x]}}}return y}function v(z,y){var A,x;A=f.extend(true,{},z);for(x in A){if(y===true&&(/(tip|classes)/i).test(x)){delete A[x]}else{if(!y&&(/(width|border|tip|title|classes|user)/i).test(x)){delete A[x]}}}return A}function e(x){if(typeof x.tip!=="object"){x.tip={corner:x.tip}}if(typeof x.tip.size!=="object"){x.tip.size={width:x.tip.size,height:x.tip.size}}if(typeof x.border!=="object"){x.border={width:x.border}}if(typeof x.width!=="object"){x.width={value:x.width}}if(typeof x.width.max==="string"){x.width.max=parseInt(x.width.max.replace(/([0-9]+)/i,"$1"),10)}if(typeof x.width.min==="string"){x.width.min=parseInt(x.width.min.replace(/([0-9]+)/i,"$1"),10)}if(typeof x.tip.size.x==="number"){x.tip.size.width=x.tip.size.x;delete x.tip.size.x}if(typeof x.tip.size.y==="number"){x.tip.size.height=x.tip.size.y;delete x.tip.size.y}return x}function a(){var x,y,z,C,A,B;x=this;z=[true,{}];for(y=0;y<arguments.length;y++){z.push(arguments[y])}C=[f.extend.apply(f,z)];while(typeof C[0].name==="string"){C.unshift(e(f.fn.qtip.styles[C[0].name]))}C.unshift(true,{classes:{tooltip:"qtip-"+(arguments[0].name||"defaults")}},f.fn.qtip.styles.defaults);A=f.extend.apply(f,C);B=(f.browser.msie)?1:0;A.tip.size.width+=B;A.tip.size.height+=B;if(A.tip.size.width%2>0){A.tip.size.width+=1}if(A.tip.size.height%2>0){A.tip.size.height+=1}if(A.tip.corner===true){if(x.options.position.corner.tooltip==="center"&&x.options.position.corner.target==="center"){A.tip.corner=false}else{A.tip.corner=x.options.position.corner.tooltip}}return A}function w(z,B,x,y){var A=z.get(0).getContext("2d");A.fillStyle=y;A.beginPath();A.arc(B[0],B[1],x,0,Math.PI*2,false);A.fill()}function o(){var K,E,y,G,C,J,z,L,I,D,B,H,F,x,A;K=this;K.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();y=K.options.style.border.width;G=K.options.style.border.radius;C=K.options.style.border.color||K.options.style.tip.color;J=g(G);z={};for(E in J){z[E]='<div rel="'+E+'" style="'+((/Left/).test(E)?"left":"right")+":0; position:absolute; height:"+G+"px; width:"+G+'px; overflow:hidden; line-height:0.1px; font-size:1px">';if(f("<canvas />").get(0).getContext){z[E]+='<canvas height="'+G+'" width="'+G+'" style="vertical-align: top"></canvas>'}else{if(f.browser.msie){L=G*2+3;z[E]+='<v:arc stroked="false" fillcolor="'+C+'" startangle="'+J[E][0]+'" endangle="'+J[E][1]+'" style="width:'+L+"px; height:"+L+"px; margin-top:"+((/bottom/).test(E)?-2:-1)+"px; margin-left:"+((/Right/).test(E)?J[E][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'}}z[E]+="</div>"}I=K.getDimensions().width-(Math.max(y,G)*2);D='<div class="qtip-betweenCorners" style="height:'+G+"px; width:"+I+"px; overflow:hidden; background-color:"+C+'; line-height:0.1px; font-size:1px;">';B='<div class="qtip-borderTop" dir="ltr" style="height:'+G+"px; margin-left:"+G+'px; line-height:0.1px; font-size:1px; padding:0;">'+z.topLeft+z.topRight+D;K.elements.wrapper.prepend(B);H='<div class="qtip-borderBottom" dir="ltr" style="height:'+G+"px; margin-left:"+G+'px; line-height:0.1px; font-size:1px; padding:0;">'+z.bottomLeft+z.bottomRight+D;K.elements.wrapper.append(H);if(f("<canvas />").get(0).getContext){K.elements.wrapper.find("canvas").each(function(){F=J[f(this).parent("[rel]:first").attr("rel")];w.call(K,f(this),F,G,C)})}else{if(f.browser.msie){K.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>')}}x=Math.max(G,(G+(y-G)));A=Math.max(y-G,0);K.elements.contentWrapper.css({border:"0px solid "+C,borderWidth:A+"px "+x+"px"})}function h(y,A,x){var z=y.get(0).getContext("2d");z.fillStyle=x;z.beginPath();z.moveTo(A[0][0],A[0][1]);z.lineTo(A[1][0],A[1][1]);z.lineTo(A[2][0],A[2][1]);z.fill()}function q(z){var y,B,D,x,C,A;y=this;if(y.options.style.tip.corner===false||!y.elements.tip){return}if(!z){z=new r(y.elements.tip.attr("rel"))}B=D=(f.browser.msie)?1:0;y.elements.tip.css(z[z.precedance],0);if(z.precedance==="y"){if(f.browser.msie){if(parseInt(f.browser.version.charAt(0),10)===6){D=z.y==="top"?-3:1}else{D=z.y==="top"?1:2}}if(z.x==="center"){y.elements.tip.css({left:"50%",marginLeft:-(y.options.style.tip.size.width/2)})}else{if(z.x==="left"){y.elements.tip.css({left:y.options.style.border.radius-B})}else{y.elements.tip.css({right:y.options.style.border.radius+B})}}if(z.y==="top"){y.elements.tip.css({top:-D})}else{y.elements.tip.css({bottom:D})}}else{if(f.browser.msie){D=(parseInt(f.browser.version.charAt(0),10)===6)?1:(z.x==="left"?1:2)}if(z.y==="center"){y.elements.tip.css({top:"50%",marginTop:-(y.options.style.tip.size.height/2)})}else{if(z.y==="top"){y.elements.tip.css({top:y.options.style.border.radius-B})}else{y.elements.tip.css({bottom:y.options.style.border.radius+B})}}if(z.x==="left"){y.elements.tip.css({left:-D})}else{y.elements.tip.css({right:D})}}x="padding-"+z[z.precedance];C=y.options.style.tip.size[z.precedance==="x"?"width":"height"];y.elements.tooltip.css("padding",0).css(x,C);if(f.browser.msie&&parseInt(f.browser.version.charAt(0),6)===6){A=parseInt(y.elements.tip.css("margin-top"),10)||0;A+=parseInt(y.elements.content.css("margin-top"),10)||0;y.elements.tip.css({marginTop:A})}}function d(A){var y,x,D,z,C,B;y=this;if(y.elements.tip!==null){y.elements.tip.remove()}x=y.options.style.tip.color||y.options.style.border.color;if(y.options.style.tip.corner===false){return}else{if(!A){A=new r(y.options.style.tip.corner)}}D=c(A.string(),y.options.style.tip.size.width,y.options.style.tip.size.height);y.elements.tip='<div class="'+y.options.style.classes.tip+'" dir="ltr" rel="'+A.string()+'" style="position:absolute; height:'+y.options.style.tip.size.height+"px; width:"+y.options.style.tip.size.width+'px; margin:0 auto; line-height:0.1px; font-size:1px;"></div>';y.elements.tooltip.prepend(y.elements.tip);if(f("<canvas />").get(0).getContext){B='<canvas height="'+y.options.style.tip.size.height+'" width="'+y.options.style.tip.size.width+'"></canvas>'}else{if(f.browser.msie){z=y.options.style.tip.size.width+","+y.options.style.tip.size.height;C="m"+D[0][0]+","+D[0][1];C+=" l"+D[1][0]+","+D[1][1];C+=" "+D[2][0]+","+D[2][1];C+=" xe";B='<v:shape fillcolor="'+x+'" stroked="false" filled="true" path="'+C+'" coordsize="'+z+'" style="width:'+y.options.style.tip.size.width+"px; height:"+y.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+(A.y==="top"?"bottom":"top")+'"></v:shape>';B+='<v:image style="behavior:url(#default#VML);"></v:image>';y.elements.contentWrapper.css("position","relative")}}y.elements.tip=y.elements.tooltip.find("."+y.options.style.classes.tip).eq(0);y.elements.tip.html(B);if(f("<canvas  />").get(0).getContext){h.call(y,y.elements.tip.find("canvas:first"),D,x)}if(A.y==="top"&&f.browser.msie&&parseInt(f.browser.version.charAt(0),10)===6){y.elements.tip.css({marginTop:-4})}q.call(y,A)}function j(){var x=this;if(x.elements.title!==null){x.elements.title.remove()}x.elements.tooltip.attr("aria-labelledby","qtip-"+x.id+"-title");x.elements.title=f('<div id="qtip-'+x.id+'-title" class="'+x.options.style.classes.title+'"></div>').css(v(x.options.style.title,true)).css({zoom:(f.browser.msie)?1:0}).prependTo(x.elements.contentWrapper);if(x.options.content.title.text){x.updateTitle.call(x,x.options.content.title.text)}if(x.options.content.title.button!==false&&typeof x.options.content.title.button==="string"){x.elements.button=f('<a class="'+x.options.style.classes.button+'" role="button" style="float:right; position: relative"></a>').css(v(x.options.style.button,true)).html(x.options.content.title.button).prependTo(x.elements.title).click(function(y){if(!x.status.disabled){x.hide(y)}})}}function n(){var y,A,z,x;y=this;A=y.options.show.when.target;z=y.options.hide.when.target;if(y.options.hide.fixed){z=z.add(y.elements.tooltip)}x=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter","mouseleave","mouseover"];function D(E){if(y.status.disabled===true){return}clearTimeout(y.timers.inactive);y.timers.inactive=setTimeout(function(){f(x).each(function(){z.unbind(this+".qtip-inactive");y.elements.content.unbind(this+".qtip-inactive")});y.hide(E)},y.options.hide.delay)}if(y.options.hide.fixed===true){y.elements.tooltip.bind("mouseover.qtip",function(){if(y.status.disabled===true){return}clearTimeout(y.timers.hide)})}function C(E){if(y.status.disabled===true){return}if(y.options.hide.when.event==="inactive"){f(x).each(function(){z.bind(this+".qtip-inactive",D);y.elements.content.bind(this+".qtip-inactive",D)});D()}clearTimeout(y.timers.show);clearTimeout(y.timers.hide);if(y.options.show.delay>0){y.timers.show=setTimeout(function(){y.show(E)},y.options.show.delay)}else{y.show(E)}}function B(E){if(y.status.disabled===true){return}if(y.options.hide.fixed===true&&(/mouse(out|leave)/i).test(y.options.hide.when.event)&&f(E.relatedTarget).parents('div.qtip[id^="qtip"]').length>0){E.stopPropagation();E.preventDefault();clearTimeout(y.timers.hide);return false}clearTimeout(y.timers.show);clearTimeout(y.timers.hide);y.elements.tooltip.stop(true,true);y.timers.hide=setTimeout(function(){y.hide(E)},y.options.hide.delay)}if(y.options.position.target==="mouse"&&y.options.position.type!=="static"){A.bind("mousemove.qtip",function(E){y.cache.mouse={left:E.pageX,top:E.pageY};if(y.status.disabled===false&&y.options.position.adjust.mouse===true&&y.options.position.type!=="static"&&y.elements.tooltip.css("display")!=="none"){y.updatePosition(E)}})}if((y.options.show.when.target.add(y.options.hide.when.target).length===1&&y.options.show.when.event===y.options.hide.when.event&&y.options.hide.when.event!=="inactive")||y.options.hide.when.event==="unfocus"){y.cache.toggle=0;A.bind(y.options.show.when.event+".qtip",function(E){if(y.cache.toggle===0){C(E)}else{B(E)}})}else{A.bind(y.options.show.when.event+".qtip",C);if(y.options.hide.when.event!=="inactive"){z.bind(y.options.hide.when.event+".qtip",B)}}if((/(fixed|absolute)/).test(y.options.position.type)){y.elements.tooltip.bind("mouseover.qtip",y.focus)}}function l(){var x,y,z;x=this;z=x.getDimensions();y='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:false" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=\'0\'); border: 1px solid red; height:'+z.height+"px; width:"+z.width+'px" />';x.elements.bgiframe=x.elements.wrapper.prepend(y).children(".qtip-bgiframe:first")}function u(){var x,z,y,A,B;x=this;x.beforeRender.call(x);x.status.rendered=2;x.elements.tooltip='<div qtip="'+x.id+'" id="qtip-'+x.id+'" role="tooltip" aria-describedby="qtip-'+x.id+'-content" class="qtip '+(x.options.style.classes.tooltip||x.options.style)+'" style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0; position:'+x.options.position.type+';">   <div class="qtip-wrapper" style="position:relative; overflow:hidden; text-align:left;">     <div class="qtip-contentWrapper" style="overflow:hidden;">        <div id="qtip-'+x.id+'-content" class="qtip-content '+x.options.style.classes.content+'"></div> </div></div></div>';x.elements.tooltip=f(x.elements.tooltip);x.elements.tooltip.appendTo(x.options.position.container);x.elements.tooltip.data("qtip",{current:0,interfaces:[x]});x.elements.wrapper=x.elements.tooltip.children("div:first");x.elements.contentWrapper=x.elements.wrapper.children("div:first");x.elements.content=x.elements.contentWrapper.children("div:first").css(v(x.options.style));if(f.browser.msie){x.elements.wrapper.add(x.elements.content).css({zoom:1})}if(x.options.hide.when.event==="unfocus"){x.elements.tooltip.attr("unfocus",true)}if(typeof x.options.style.width.value==="number"){x.updateWidth()}if(f("<canvas />").get(0).getContext||f.browser.msie){if(x.options.style.border.radius>0){o.call(x)}else{x.elements.contentWrapper.css({border:x.options.style.border.width+"px solid "+x.options.style.border.color})}if(x.options.style.tip.corner!==false){d.call(x)}}else{x.elements.contentWrapper.css({border:x.options.style.border.width+"px solid "+x.options.style.border.color});x.options.style.border.radius=0;x.options.style.tip.corner=false}if((typeof x.options.content.text==="string"&&x.options.content.text.length>0)||(x.options.content.text.jquery&&x.options.content.text.length>0)){z=x.options.content.text}else{z=" "}if(x.options.content.title.text!==false){j.call(x)}x.updateContent(z,false);n.call(x);if(x.options.show.ready===true){x.show()}if(x.options.content.url!==false){y=x.options.content.url;A=x.options.content.data;B=x.options.content.method||"get";x.loadContent(y,A,B)}x.status.rendered=true;x.onRender.call(x)}function p(z,y,A){var x=this;x.id=A;x.options=y;x.status={animated:false,rendered:false,disabled:false,focused:false};x.elements={target:z.addClass(x.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null};x.cache={attr:false,mouse:{},toggle:0,overflow:{left:false,top:false}};x.timers={};f.extend(x,x.options.api,{show:function(D){var C,E;if(!x.status.rendered){return false}if(x.elements.tooltip.css("display")!=="none"){return x}x.elements.tooltip.stop(true,false);C=x.beforeShow.call(x,D);if(C===false){return x}function B(){x.elements.tooltip.attr("aria-hidden",true);if(x.options.position.type!=="static"){x.focus()}x.onShow.call(x,D);if(f.browser.msie){var F=x.elements.tooltip.get(0).style;F.removeAttribute("filter");F.removeAttribute("opacity")}else{x.elements.tooltip.css({opacity:""})}}x.cache.toggle=1;if(x.options.position.type!=="static"){x.updatePosition(D,(x.options.show.effect.length>0&&x.rendered!==2))}if(typeof x.options.show.solo==="object"){E=f(x.options.show.solo)}else{if(x.options.show.solo===true){E=f("div.qtip").not(x.elements.tooltip)}}if(E){E.each(function(){if(f(this).qtip("api").status.rendered===true){f(this).qtip("api").hide()}})}if(typeof x.options.show.effect.type==="function"){x.options.show.effect.type.call(x.elements.tooltip,x.options.show.effect.length);x.elements.tooltip.queue(function(){B();f(this).dequeue()})}else{switch(x.options.show.effect.type.toLowerCase()){case"fade":x.elements.tooltip.fadeIn(x.options.show.effect.length,B);break;case"slide":x.elements.tooltip.slideDown(x.options.show.effect.length,function(){B();if(x.options.position.type!=="static"){x.updatePosition(D,true)}});break;case"grow":x.elements.tooltip.show(x.options.show.effect.length,B);break;default:x.elements.tooltip.show(null,B);break}x.elements.tooltip.addClass(x.options.style.classes.active)}return x},hide:function(D){var C;if(!x.status.rendered){return false}else{if(x.elements.tooltip.css("display")==="none"){return x}}clearTimeout(x.timers.show);x.elements.tooltip.stop(true,false);C=x.beforeHide.call(x,D);if(C===false){return x}function B(){x.elements.tooltip.attr("aria-hidden",true);if(f.browser.msie){x.elements.tooltip.get(0).style.removeAttribute("opacity")}else{x.elements.tooltip.css({opacity:""})}x.onHide.call(x,D)}x.cache.toggle=0;if(typeof x.options.hide.effect.type==="function"){x.options.hide.effect.type.call(x.elements.tooltip,x.options.hide.effect.length);x.elements.tooltip.queue(function(){B();f(this).dequeue()})}else{switch(x.options.hide.effect.type.toLowerCase()){case"fade":x.elements.tooltip.fadeOut(x.options.hide.effect.length,B);break;case"slide":x.elements.tooltip.slideUp(x.options.hide.effect.length,B);break;case"grow":x.elements.tooltip.hide(x.options.hide.effect.length,B);break;default:x.elements.tooltip.hide(null,B);break}x.elements.tooltip.removeClass(x.options.style.classes.active)}return x},toggle:function(B,C){var D=/boolean|number/.test(typeof C)?C:!x.elements.tooltip.is(":visible");x[D?"show":"hide"](B);return x},updatePosition:function(B,C){if(!x.status.rendered){return false}var R=y.position,N=f(R.target),G=x.elements.tooltip.outerWidth(),D=x.elements.tooltip.outerHeight(),O,K,J,Q=R.corner.tooltip,E=R.corner.target,F,P,H,M,I,L={left:function(){var W=f(window).scrollLeft(),U=f(window).width()+f(window).scrollLeft(),S=Q.x==="center"?G/2:G,T=Q.x==="center"?O/2:O,Z=(Q.x==="center"?1:2)*x.options.style.border.radius,X=-2*R.adjust.x,Y=J.left+G,V;if(Y>U){V=X-S-T+Z;if(J.left+V>W||W-(J.left+V)<Y-U){return{adjust:V,tip:"right"}}}if(J.left<W){V=X+S+T-Z;if(Y+V<U||Y+V-U<W-J.left){return{adjust:V,tip:"left"}}}return{adjust:0,tip:Q.x}},top:function(){var W=f(window).scrollTop(),U=f(window).height()+f(window).scrollTop(),S=Q.y==="center"?D/2:D,T=Q.y==="center"?K/2:K,Z=(Q.y==="center"?1:2)*x.options.style.border.radius,Y=-2*R.adjust.y,X=J.top+D,V;if(X>U){V=Y-S-T+Z;if(J.top+V>W||W-(J.top+V)<X-U){return{adjust:V,tip:"bottom"}}}if(J.top<W){V=Y+S+T-Z;if(X+V<U||X+V-U<W-J.top){return{adjust:V,tip:"top"}}}return{adjust:0,tip:Q.y}}};if(B&&y.position.target==="mouse"){E={x:"left",y:"top"};O=K=0;if(!B.pageX){J=x.cache.mouse}else{J={top:B.pageY,left:B.pageX}}}else{if(N[0]===document){O=N.width();K=N.height();J={top:0,left:0}}else{if(N[0]===window){O=N.width();K=N.height();J={top:N.scrollTop(),left:N.scrollLeft()}}else{if(N.is("area")){P=x.options.position.target.attr("coords").split(",");for(H=0;H<P.length;H++){P[H]=parseInt(P[H],10)}M=x.options.position.target.parent("map").attr("name");I=f('img[usemap="#'+M+'"]:first').offset();J={left:Math.floor(I.left+P[0]),top:Math.floor(I.top+P[1])};switch(x.options.position.target.attr("shape").toLowerCase()){case"rect":O=Math.ceil(Math.abs(P[2]-P[0]));K=Math.ceil(Math.abs(P[3]-P[1]));break;case"circle":O=P[2]+1;K=P[2]+1;break;case"poly":O=P[0];K=P[1];for(H=0;H<P.length;H++){if(H%2===0){if(P[H]>O){O=P[H]}if(P[H]<P[0]){J.left=Math.floor(I.left+P[H])}}else{if(P[H]>K){K=P[H]}if(P[H]<P[1]){J.top=Math.floor(I.top+P[H])}}}O=O-(J.left-I.left);K=K-(J.top-I.top);break}O-=2;K-=2}else{O=N.outerWidth();K=N.outerHeight();if(!x.elements.tooltip.is(":visible")){x.elements.tooltip.css({left:"-10000000em"}).show()}if(x.elements.tooltip.offsetParent()[0]===document.body){J=N.offset()}else{J=N.position();J.top+=N.offsetParent().scrollTop();J.left+=N.offsetParent().scrollLeft()}}}}J.left+=E.x==="right"?O:E.x==="center"?O/2:0;J.top+=E.y==="bottom"?K:E.y==="center"?K/2:0}J.left+=R.adjust.x+(Q.x==="right"?-G:Q.x==="center"?-G/2:0);J.top+=R.adjust.y+(Q.y==="bottom"?-D:Q.y==="center"?-D/2:0);if(x.options.style.border.radius>0){if(Q.x==="left"){J.left-=x.options.style.border.radius}else{if(Q.x==="right"){J.left+=x.options.style.border.radius}}if(Q.y==="top"){J.top-=x.options.style.border.radius}else{if(Q.y==="bottom"){J.top+=x.options.style.border.radius}}}if(R.adjust.screen){(function(){var T={x:0,y:0},S={x:L.left(),y:L.top()},U=new r(y.style.tip.corner);if(x.elements.tip&&U){if(S.y.adjust!==0){J.top+=S.y.adjust;U.y=T.y=S.y.tip}if(S.x.adjust!==0){J.left+=S.x.adjust;U.x=T.x=S.x.tip}x.cache.overflow={left:T.x===false,top:T.y===false};if(x.elements.tip.attr("rel")!==U.string()){d.call(x,U)}}}())}if(!x.elements.bgiframe&&f.browser.msie&&parseInt(f.browser.version.charAt(0),10)===6){l.call(x)}F=x.beforePositionUpdate.call(x,B);if(F===false){return x}if(y.position.target!=="mouse"&&C===true){x.status.animated=true;x.elements.tooltip.stop().animate(J,200,"swing",function(){x.status.animated=false})}else{x.elements.tooltip.css(J)}x.onPositionUpdate.call(x,B);return x},updateWidth:function(E){if(!x.status.rendered||(E&&typeof E!=="number")){return false}var G=x.elements.contentWrapper.siblings().add(x.elements.tip).add(x.elements.button),D=x.elements.wrapper.add(x.elements.contentWrapper.children()),F=x.elements.tooltip,B=x.options.style.width.max,C=x.options.style.width.min;if(!E){if(typeof x.options.style.width.value==="number"){E=x.options.style.width.value}else{x.elements.tooltip.css({width:"auto"});G.hide();F.width(E);if(f.browser.msie){D.css({zoom:""})}E=x.getDimensions().width;if(!x.options.style.width.value){E=Math.min(Math.max(E,C),B)}}}if(E%2){E+=1}x.elements.tooltip.width(E);G.show();if(x.options.style.border.radius){x.elements.tooltip.find(".qtip-betweenCorners").each(function(H){f(this).width(E-(x.options.style.border.radius*2))})}if(f.browser.msie){D.css({zoom:1});x.elements.wrapper.width(E);if(x.elements.bgiframe){x.elements.bgiframe.width(E).height(x.getDimensions.height)}}return x},updateStyle:function(B){var E,F,C,D,G;if(!x.status.rendered||typeof B!=="string"||!f.fn.qtip.styles[B]){return false}x.options.style=a.call(x,f.fn.qtip.styles[B],x.options.user.style);x.elements.content.css(v(x.options.style));if(x.options.content.title.text!==false){x.elements.title.css(v(x.options.style.title,true))}x.elements.contentWrapper.css({borderColor:x.options.style.border.color});if(x.options.style.tip.corner!==false){if(f("<canvas />").get(0).getContext){E=x.elements.tooltip.find(".qtip-tip canvas:first");C=E.get(0).getContext("2d");C.clearRect(0,0,300,300);D=E.parent("div[rel]:first").attr("rel");G=c(D,x.options.style.tip.size.width,x.options.style.tip.size.height);h.call(x,E,G,x.options.style.tip.color||x.options.style.border.color)}else{if(f.browser.msie){E=x.elements.tooltip.find('.qtip-tip [nodeName="shape"]');E.attr("fillcolor",x.options.style.tip.color||x.options.style.border.color)}}}if(x.options.style.border.radius>0){x.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:x.options.style.border.color});if(f("<canvas />").get(0).getContext){F=g(x.options.style.border.radius);x.elements.tooltip.find(".qtip-wrapper canvas").each(function(){C=f(this).get(0).getContext("2d");C.clearRect(0,0,300,300);D=f(this).parent("div[rel]:first").attr("rel");w.call(x,f(this),F[D],x.options.style.border.radius,x.options.style.border.color)})}else{if(f.browser.msie){x.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){f(this).attr("fillcolor",x.options.style.border.color)})}}}return x},updateContent:function(F,D){var E,C,B;function G(){x.updateWidth();if(D!==false){if(x.options.position.type!=="static"){x.updatePosition(x.elements.tooltip.is(":visible"),true)}if(x.options.style.tip.corner!==false){q.call(x)}}}if(!F){return false}E=x.beforeContentUpdate.call(x,F);if(typeof E==="string"){F=E}else{if(E===false){return}}if(x.status.rendered){if(f.browser.msie){x.elements.contentWrapper.children().css({zoom:"normal"})}if(F.jquery&&F.length>0){F.clone(true).appendTo(x.elements.content).show()}else{x.elements.content.html(F)}C=x.elements.content.find("img[complete=false]");if(C.length>0){B=0;C.each(function(H){f('<img src="'+f(this).attr("src")+'" />').load(function(){if(++B===C.length){G()}})})}else{G()}}else{x.options.content.text=F}x.onContentUpdate.call(x);return x},loadContent:function(B,E,F){var D;function C(G){x.onContentLoad.call(x);x.updateContent(G)}if(!x.status.rendered){return false}D=x.beforeContentLoad.call(x);if(D===false){return x}if(F==="post"){f.post(B,E,C)}else{f.get(B,E,C)}return x},updateTitle:function(C){var B;if(!x.status.rendered||!C){return false}B=x.beforeTitleUpdate.call(x);if(B===false){return x}if(x.elements.button){x.elements.button=x.elements.button.clone(true)}x.elements.title.html(C);if(x.elements.button){x.elements.title.prepend(x.elements.button)}x.onTitleUpdate.call(x);return x},focus:function(F){var D,C,B,E;if(!x.status.rendered||x.options.position.type==="static"){return false}D=parseInt(x.elements.tooltip.css("z-index"),10);C=15000+f('div.qtip[id^="qtip"]').length-1;if(!x.status.focused&&D!==C){E=x.beforeFocus.call(x,F);if(E===false){return x}f('div.qtip[id^="qtip"]').not(x.elements.tooltip).each(function(){if(f(this).qtip("api").status.rendered===true){B=parseInt(f(this).css("z-index"),10);if(typeof B==="number"&&B>-1){f(this).css({zIndex:parseInt(f(this).css("z-index"),10)-1})}f(this).qtip("api").status.focused=false}});x.elements.tooltip.css({zIndex:C});x.status.focused=true;x.onFocus.call(x,F)}return x},disable:function(B){x.status.disabled=B?true:false;return x},destroy:function(){var B,D,E,C=x.elements.target.data("old"+x.cache.attr[0]);D=x.beforeDestroy.call(x);if(D===false){return x}if(x.status.rendered){x.options.show.when.target.unbind("mousemove.qtip",x.updatePosition);x.options.show.when.target.unbind("mouseout.qtip",x.hide);x.options.show.when.target.unbind(x.options.show.when.event+".qtip");x.options.hide.when.target.unbind(x.options.hide.when.event+".qtip");x.elements.tooltip.unbind(x.options.hide.when.event+".qtip");x.elements.tooltip.unbind("mouseover.qtip",x.focus);x.elements.tooltip.remove()}else{x.options.show.when.target.unbind(x.options.show.when.event+".qtip-"+x.id+"-create")}if(typeof x.elements.target.data("qtip")==="object"){E=x.elements.target.data("qtip").interfaces;if(typeof E==="object"&&E.length>0){for(B=0;B<E.length-1;B++){if(E[B].id===x.id){E.splice(B,1)}}}}f.fn.qtip.interfaces.splice(x.id,1);if(typeof E==="object"&&E.length>0){x.elements.target.data("qtip").current=E.length-1}else{x.elements.target.removeData("qtip")}if(C){x.elements.target.attr(x.cache.attr[0],C)}x.onDestroy.call(x);return x.elements.target},getPosition:function(){var B,C;if(!x.status.rendered){return false}B=(x.elements.tooltip.css("display")!=="none")?false:true;if(B){x.elements.tooltip.css({visiblity:"hidden"}).show()}C=x.elements.tooltip.offset();if(B){x.elements.tooltip.css({visiblity:"visible"}).hide()}return C},getDimensions:function(){var B,C;if(!x.status.rendered){return false}B=(!x.elements.tooltip.is(":visible"))?true:false;if(B){x.elements.tooltip.css({visiblity:"hidden"}).show()}C={height:x.elements.tooltip.outerHeight(),width:x.elements.tooltip.outerWidth()};if(B){x.elements.tooltip.css({visiblity:"visible"}).hide()}return C}})}f.fn.qtip=function(G,z){var D,y,F,x,C,B,A,E;if(typeof G==="string"){if(f(this).data("qtip")){if(G==="api"){return f(this).data("qtip").interfaces[f(this).data("qtip").current]}else{if(G==="interfaces"){return f(this).data("qtip").interfaces}}}else{return f(this)}}else{if(!G){G={}}if(typeof G.content!=="object"||(G.content.jquery&&G.content.length>0)){G.content={text:G.content}}if(typeof G.content.title!=="object"){G.content.title={text:G.content.title}}if(typeof G.position!=="object"){G.position={corner:G.position}}if(typeof G.position.corner!=="object"){G.position.corner={target:G.position.corner,tooltip:G.position.corner}}if(typeof G.show!=="object"){G.show={when:G.show}}if(typeof G.show.when!=="object"){G.show.when={event:G.show.when}}if(typeof G.show.effect!=="object"){G.show.effect={type:G.show.effect}}if(typeof G.hide!=="object"){G.hide={when:G.hide}}if(typeof G.hide.when!=="object"){G.hide.when={event:G.hide.when}}if(typeof G.hide.effect!=="object"){G.hide.effect={type:G.hide.effect}}if(typeof G.style!=="object"){G.style={name:G.style}}G.style=e(G.style);x=f.extend(true,{},f.fn.qtip.defaults,G);x.style=a.call({options:x},x.style);x.user=f.extend(true,{},G)}return f(this).each(function(){var H=f(this),I=false;if(typeof G==="string"){B=G.toLowerCase();F=f(this).qtip("interfaces");if(typeof F==="object"){if(z===true&&B==="destroy"){for(D=F.length-1;D>-1;D--){if("object"===typeof F[D]){F[D].destroy()}}}else{if(z!==true){F=[f(this).qtip("api")]}for(D=0;D<F.length;D++){if(B==="destroy"){F[D].destroy()}else{if(F[D].status.rendered===true){if(B==="show"){F[D].show()}else{if(B==="hide"){F[D].hide()}else{if(B==="focus"){F[D].focus()}else{if(B==="disable"){F[D].disable(true)}else{if(B==="enable"){F[D].disable(false)}else{if(B==="update"){F[D].updatePosition()}}}}}}}}}}}}else{A=f.extend(true,{},x);A.hide.effect.length=x.hide.effect.length;A.show.effect.length=x.show.effect.length;if(A.position.container===false){A.position.container=f(document.body)}if(A.position.target===false){A.position.target=f(this)}if(A.show.when.target===false){A.show.when.target=f(this)}if(A.hide.when.target===false){A.hide.when.target=f(this)}A.position.corner.tooltip=new r(A.position.corner.tooltip);A.position.corner.target=new r(A.position.corner.target);if(!A.content.text.length){f(["title","alt"]).each(function(K,J){var L=H.attr(J);if(L&&L.length){I=[J,L];H.data("old"+J,L).removeAttr(J);A.content.text=L.replace(/\n/gi,"<br />");return false}})}y=f.fn.qtip.interfaces.length;for(D=0;D<y;D++){if(typeof f.fn.qtip.interfaces[D]==="undefined"){y=D;break}}C=new p(f(this),A,y);f.fn.qtip.interfaces[y]=C;C.cache.attr=I;if(typeof f(this).data("qtip")==="object"&&f(this).data("qtip")){if(typeof f(this).attr("qtip")==="undefined"){f(this).data("qtip").current=f(this).data("qtip").interfaces.length}f(this).data("qtip").interfaces.push(C)}else{f(this).data("qtip",{current:0,interfaces:[C]})}if(A.content.prerender===false&&A.show.when.event!==false&&A.show.ready!==true){A.show.when.target.bind(A.show.when.event+".qtip-"+y+"-create",{qtip:y},function(J){E=f.fn.qtip.interfaces[J.data.qtip];E.options.show.when.target.unbind(E.options.show.when.event+".qtip-"+J.data.qtip+"-create");E.cache.mouse={left:J.pageX,top:J.pageY};u.call(E);E.options.show.when.target.trigger(E.options.show.when.event)})}else{C.cache.mouse={left:A.show.when.target.offset().left,top:A.show.when.target.offset().top};u.call(C)}}})};f.fn.qtip.interfaces=[];f.fn.qtip.fn={attr:f.fn.attr};f.fn.attr=function(x){var y=f(this).qtip("api");return(arguments.length===1&&(/title|alt/i).test(x)&&y.status&&y.status.rendered===true)?f(this).data("old"+y.cache.attr[0]):f.fn.qtip.fn.attr.apply(this,arguments)};f.fn.qtip.defaults={content:{prerender:false,text:false,url:false,data:null,title:{text:false,button:false}},position:{target:false,corner:{target:"bottomRight",tooltip:"topLeft"},adjust:{x:0,y:0,mouse:true,screen:false,scroll:true,resize:true},type:"absolute",container:false},show:{when:{target:false,event:"mouseover"},effect:{type:"fade",length:100},delay:140,solo:false,ready:false},hide:{when:{target:false,event:"mouseout"},effect:{type:"fade",length:100},delay:0,fixed:false},api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},beforeHide:function(){},onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}};f.fn.qtip.styles={defaults:{background:"white",color:"#111",overflow:"hidden",textAlign:"left",width:{min:0,max:250},padding:"5px 9px",border:{width:1,radius:0,color:"#d3d3d3"},tip:{corner:false,color:false,size:{width:13,height:13},opacity:1},title:{background:"#e1e1e1",fontWeight:"bold",padding:"7px 12px"},button:{cursor:"pointer"},classes:{target:"",tip:"qtip-tip",title:"qtip-title",button:"qtip-button",content:"qtip-content",active:"qtip-active"}},cream:{border:{width:3,radius:0,color:"#F9E98E"},title:{background:"#F0DE7D",color:"#A27D35"},background:"#FBF7AA",color:"#A27D35",classes:{tooltip:"qtip-cream"}},light:{border:{width:3,radius:0,color:"#E2E2E2"},title:{background:"#f1f1f1",color:"#454545"},background:"white",color:"#454545",classes:{tooltip:"qtip-light"}},dark:{border:{width:3,radius:0,color:"#303030"},title:{background:"#404040",color:"#f3f3f3"},background:"#505050",color:"#f3f3f3",classes:{tooltip:"qtip-dark"}},red:{border:{width:3,radius:0,color:"#CE6F6F"},title:{background:"#f28279",color:"#9C2F2F"},background:"#F79992",color:"#9C2F2F",classes:{tooltip:"qtip-red"}},green:{border:{width:3,radius:0,color:"#A9DB66"},title:{background:"#b9db8c",color:"#58792E"},background:"#CDE6AC",color:"#58792E",classes:{tooltip:"qtip-green"}},blue:{border:{width:3,radius:0,color:"#ADD9ED"},title:{background:"#D0E9F5",color:"#5E99BD"},background:"#E5F6FE",color:"#4D9FBF",classes:{tooltip:"qtip-blue"}}}}(jQuery));jQuery.extend({__stringPrototype:{JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",specialChar:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\\":"\\\\"},blank:function(a){return/^\s*$/.test(this.s(a)||" ")},camelize:function(e){var c=this.s(e).split("-"),d;e=[c[0]];for(d=1;d<c.length;d++){e.push(c[d].charAt(0).toUpperCase()+c[d].substring(1))}e=e.join("");return this.r(arguments,0,e)},capitalize:function(a){a=this.s(a);a=a.charAt(0).toUpperCase()+a.substring(1).toLowerCase();return this.r(arguments,0,a)},dasherize:function(a){a=this.s(a).split("_").join("-");return this.r(arguments,0,a)},empty:function(a){return this.s(a)===""},endsWith:function(c,a){a=this.s(a);var e=a.length-c.length;return e>=0&&a.lastIndexOf(c)===e},escapeHTML:function(a){a=this.s(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return this.r(arguments,0,a)},evalJSON:function(sanitize,s){s=this.s(s);var json=this.unfilterJSON(false,s);try{if(!sanitize||this.isJSON(json)){return eval("("+json+")")}}catch(e){}throw new SyntaxError("Badly formed JSON string: "+s)},evalScripts:function(s){var scriptTags=this.extractScripts(this.s(s)),results=[];if(scriptTags.length>0){for(var i=0;i<scriptTags.length;i++){results.push(eval(scriptTags[i]))}}return results},extractScripts:function(d){var f=new RegExp(this.ScriptFragment,"img"),e=new RegExp(this.ScriptFragment,"im"),a=this.s(d).match(f)||[],g=[];if(a.length>0){for(var c=0;c<a.length;c++){g.push(a[c].match(e)[1]||"")}}return g},gsub:function(d,c,a){a=this.s(a);if(jQuery.isFunction(c)){a=this.sub(d,c,-1,a)}else{a=a.split(d).join(c)}return this.r(arguments,2,a)},include:function(c,a){return this.s(a).indexOf(c)>-1},inspect:function(c,d){d=this.s(d);var a;try{a=this.sub(/[\x00-\x1f\\]/,function(e){var g=jQuery.__stringPrototype.specialChar[e[0]];return g?g:"\\u00"+e[0].charCodeAt().toPaddedString(2,16)},-1,d)}catch(f){a=d}d=(c)?'"'+a.replace(/"/g,'\\"')+'"':"'"+a.replace(/'/g,"\\'")+"'";return this.r(arguments,1,d)},interpolate:function(g,f,d){d=this.s(d);if(!f){f=/(\#\{\s*(\w+)\s*\})/}var a=new RegExp(f.source,"g");var e=d.match(a),c;for(c=0;c<e.length;c++){d=d.replace(e[c],g[e[c].match(f)[2]])}return this.r(arguments,2,d)},isJSON:function(a){a=this.s(a);if(this.blank(a)){return false}a=a.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,"");return(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(a)},scan:function(d,c,a){a=this.s(a);this.sub(d,c,-1,a);return this.r(arguments,2,a)},startsWith:function(c,a){return this.s(a).indexOf(c)===0},strip:function(a){a=jQuery.trim(this.s(a));return this.r(arguments,0,a)},stripScripts:function(a){a=this.s(a).replace(new RegExp(this.ScriptFragment,"img"),"");return this.r(arguments,0,a)},stripTags:function(a){a=this.s(a).replace(/<\/?[^>]+>/gi,"");return this.r(arguments,0,a)},sub:function(j,e,f,d){d=this.s(d);if(j.source&&!j.global){var a=(j.ignoreCase)?"ig":"g";a+=(j.multiline)?"m":"";j=new RegExp(j.source,a)}var h=d.split(j),g=d.match(j);if(jQuery.browser.msie){if(d.indexOf(g[0])==0){h.unshift("")}if(d.lastIndexOf(g[g.length-1])==d.length-g[g.length-1].length){h.push("")}}f=(f<0)?(h.length-1):f||1;d=h[0];for(var c=1;c<h.length;c++){if(c<=f){if(jQuery.isFunction(e)){d+=e(g[c-1]||g)+h[c]}else{d+=e+h[c]}}else{d+=(g[c-1]||g)+h[c]}}return this.r(arguments,3,d)},succ:function(a){a=this.s(a);a=a.slice(0,a.length-1)+String.fromCharCode(a.charCodeAt(a.length-1)+1);return this.r(arguments,0,a)},times:function(e,d){d=this.s(d);var a="";for(var c=0;c<e;c++){a+=d}return this.r(arguments,1,a)},toJSON:function(a){return this.r(arguments,0,this.inspect(true,this.s(a)))},toQueryParams:function(g,d){d=this.s(d);var f=d.substring(d.indexOf("?")+1).split("#")[0].split(g||"&"),j={},c,a,e,h;for(c=0;c<f.length;c++){h=f[c].split("=");a=decodeURIComponent(h[0]);e=(h[1])?decodeURIComponent(h[1]):undefined;if(j[a]){if(typeof j[a]=="string"){j[a]=[j[a]]}j[a].push(e)}else{j[a]=e}}return j},truncate:function(d,a,c){c=this.s(c);d=d||30;a=(!a)?"...":a;c=(c.length>d)?c.slice(0,d-a.length)+a:String(c);return this.r(arguments,2,c)},underscore:function(a){a=this.sub(/[A-Z]/,function(d){return"_"+d.toLowerCase()},-1,this.s(a));if(a.charAt(0)=="_"){a=a.substring(1)}return this.r(arguments,0,a)},unescapeHTML:function(a){a=this.stripTags(this.s(a)).replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">");return this.r(arguments,0,a)},unfilterJSON:function(d,c){c=this.s(c);d=d||this.JSONFilter;var a=c.match(d);c=(a!==null)?a[1]:c;return this.r(arguments,1,jQuery.trim(c))},toString:function(){return this.str},r:function(a,c,d){if(a.length>c||this.str===undefined){return d}else{this.str=""+d;return this}},s:function(a){if(a===""||a){return a}if(this.str===""||this.str){return this.str}return this}},string:function(a){if(a===String.prototype){jQuery.extend(String.prototype,jQuery.__stringPrototype)}else{return jQuery.extend({str:a},jQuery.__stringPrototype)}}});jQuery.__stringPrototype.parseQuery=jQuery.__stringPrototype.toQueryParams;(function(a){a.fn.log=function(e,d,c){d=d||true;c=c||false;if(d){if(!c){if(window.console){console.log("%s: %o",e,this);return this}}}return this}})(jQuery);(function(a){a.fn.disable=function(c){return this.each(function(){var d=a(this);doDisable=(c==null)?true:c;d.attr("disabled",doDisable)})};a.fn.enable=function(c){return this.each(function(){var d=a(this);doDisable=(c==null)?false:c;d.attr("disabled",doDisable)})}})(jQuery);(function(a){a.fn.customFileInput=function(){return this.each(function(){var d=a('<div class="file" aria-hidden="true"></div>'),c=a('<span class="file-button">Browse</span>').appendTo(d).button(),h=a('<span class="file-feedback">No file selected...</span>').appendTo(d),g=function(l){var n=a(l).val().toString().replace(/\\/g,"/"),o=n.split("/").pop(),j="file-ext-"+o.split(".").pop().toLowerCase();if(o.length){h.text(o).removeClass(h.data("fileExt")||"").addClass(j).data("fileExt",j).addClass("file-feedback-populated");c.find("span").text("Change")}else{h.text("No file selected...").removeClass(h.data("fileExt")||"").removeClass("file-feedback-populated");c.find("span").text("Browse")}},e=a(this).addClass("file-input").mouseover(function(){d.addClass("file-hover")}).mouseout(function(){d.removeClass("file-hover")}).focus(function(){d.addClass("file-focus")}).blur(function(){d.removeClass("file-focus")}).change(function(j){g(this)}).width(100).css({"z-index":2,opacity:0}),f=a("#"+e.attr("id")+"-checkbox").change(function(){g(this)});e.parents("form").find("[type=submit]").click(function(){if(!e.val().length){e.disable()}});g(f);c.mouseover(function(){if(a.browser.msie!=true){e.appendTo("body")}}).mouseout(function(){if(a.browser.msie!=true){e.insertBefore(d)}}).mousemove(function(j){if(a.browser.msie!=true){e.css({top:j.pageY-25,left:j.pageX-e.outerWidth()+15})}}).click(function(j){e.click()});d.click(function(j){e.click()}).insertAfter(e)})}})(jQuery);(function(a){a.extend(a.fn,{validate:function(c){if(!this.length){c&&c.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var d=a.data(this[0],"validator");if(d){return d}d=new a.validator(c,this[0]);a.data(this[0],"validator",d);if(d.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){d.cancelSubmit=true});if(d.settings.submitHandler){this.find("input, button").filter(":submit").click(function(){d.submitButton=this})}this.submit(function(e){if(d.settings.debug){e.preventDefault()}function f(){if(d.settings.submitHandler){if(d.submitButton){var g=a("<input type='hidden'/>").attr("name",d.submitButton.name).val(d.submitButton.value).appendTo(d.currentForm)}d.settings.submitHandler.call(d,d.currentForm);if(d.submitButton){g.remove()}return false}return true}if(d.cancelSubmit){d.cancelSubmit=false;return f()}if(d.form()){if(d.pendingRequest){d.formSubmitted=true;return false}return f()}else{d.focusInvalid();return false}})}return d},valid:function(){if(a(this[0]).is("form")){return this.validate().form()}else{var d=true;var c=a(this[0].form).validate();this.each(function(){d&=c.element(this)});return d}},removeAttrs:function(e){var c={},d=this;a.each(e.split(/\s/),function(f,g){c[g]=d.attr(g);d.removeAttr(g)});return c},rules:function(f,c){var h=this[0];if(f){var e=a.data(h.form,"validator").settings;var l=e.rules;var n=a.validator.staticRules(h);switch(f){case"add":a.extend(n,a.validator.normalizeRule(c));l[h.name]=n;if(c.messages){e.messages[h.name]=a.extend(e.messages[h.name],c.messages)}break;case"remove":if(!c){delete l[h.name];return n}var j={};a.each(c.split(/\s/),function(o,p){j[p]=n[p];delete n[p]});return j}}var g=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(h),a.validator.classRules(h),a.validator.attributeRules(h),a.validator.staticRules(h)),h);if(g.required){var d=g.required;delete g.required;g=a.extend({required:d},g)}return g}});a.extend(a.expr[":"],{blank:function(c){return !a.trim(""+c.value)},filled:function(c){return !!a.trim(""+c.value)},unchecked:function(c){return !c.checked}});a.validator=function(c,d){this.settings=a.extend(true,{},a.validator.defaults,c);this.currentForm=d;this.init()};a.validator.format=function(c,d){if(arguments.length==1){return function(){var e=a.makeArray(arguments);e.unshift(c);return a.validator.format.apply(this,e)}}if(arguments.length>2&&d.constructor!=Array){d=a.makeArray(arguments).slice(1)}if(d.constructor!=Array){d=[d]}a.each(d,function(e,f){c=c.replace(new RegExp("\\{"+e+"\\}","g"),f)});return c};a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(c){this.lastActive=c;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,c,this.settings.errorClass,this.settings.validClass);this.addWrapper(this.errorsFor(c)).hide()}},onfocusout:function(c){if(!this.checkable(c)&&(c.name in this.submitted||!this.optional(c))){this.element(c)}},onkeyup:function(c){if(c.name in this.submitted||c==this.lastElement){this.element(c)}},onclick:function(c){if(c.name in this.submitted){this.element(c)}else{if(c.parentNode.name in this.submitted){this.element(c.parentNode)}}},highlight:function(e,c,d){if(e.type==="radio"){this.findByName(e.name).addClass(c).removeClass(d)}else{a(e).addClass(c).removeClass(d)}},unhighlight:function(e,c,d){if(e.type==="radio"){this.findByName(e.name).removeClass(c).addClass(d)}else{a(e).removeClass(c).addClass(d)}}},setDefaults:function(c){a.extend(a.validator.defaults,c)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=a(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm);this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var c=(this.groups={});a.each(this.settings.groups,function(f,g){a.each(g.split(/\s/),function(j,h){c[h]=f})});var e=this.settings.rules;a.each(e,function(f,g){e[f]=a.validator.normalizeRule(g)});function d(h){var g=a.data(this[0].form,"validator"),f="on"+h.type.replace(/^validate/,"");g.settings[f]&&g.settings[f].call(g,this[0])}a(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",d).validateDelegate(":radio, :checkbox, select, option","click",d);if(this.settings.invalidHandler){a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)}},form:function(){this.checkForm();a.extend(this.submitted,this.errorMap);this.invalid=a.extend({},this.errorMap);if(!this.valid()){a(this.currentForm).triggerHandler("invalid-form",[this])}this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var c=0,d=(this.currentElements=this.elements());d[c];c++){this.check(d[c])}return this.valid()},element:function(d){d=this.clean(d);this.lastElement=d;this.prepareElement(d);this.currentElements=a(d);var c=this.check(d);if(c){delete this.invalid[d.name]}else{this.invalid[d.name]=true}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)}this.showErrors();return c},showErrors:function(d){if(d){a.extend(this.errorMap,d);this.errorList=[];for(var c in d){this.errorList.push({message:d[c],element:this.findByName(c)[0]})}this.successList=a.grep(this.successList,function(e){return !(e.name in d)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){if(a.fn.resetForm){a(this.currentForm).resetForm()}this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var d=0;for(var c in e){d++}return d},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(c){}}},findLastActive:function(){var c=this.lastActive;return c&&a.grep(this.errorList,function(d){return d.element.name==c.name}).length==1&&c},elements:function(){var d=this,c={};return a(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&d.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in c||!d.objectLength(a(this).rules())){return false}c[this.name]=true;return true})},clean:function(c){return a(c)[0]},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=a([]);this.toHide=a([]);this.currentElements=a([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(c){this.reset();this.toHide=this.errorsFor(c)},check:function(d){d=this.clean(d);if(this.checkable(d)){d=this.findByName(d.name).not(this.settings.ignore)[0]}var j=a(d).rules();var f=false;for(var l in j){var h={method:l,parameters:j[l]};try{var c=a.validator.methods[l].call(this,d.value.replace(/\r/g,""),d,h.parameters);if(c=="dependency-mismatch"){f=true;continue}f=false;if(c=="pending"){this.toHide=this.toHide.not(this.errorsFor(d));return}if(!c){this.formatAndAdd(d,h);return false}}catch(g){this.settings.debug&&window.console&&console.log("exception occured when checking element "+d.id+", check the '"+h.method+"' method",g);throw g}}if(f){return}if(this.objectLength(j)){this.successList.push(d)}return true},customMetaMessage:function(c,e){if(!a.metadata){return}var d=this.settings.meta?a(c).metadata()[this.settings.meta]:a(c).metadata();return d&&d.messages&&d.messages[e]},customMessage:function(d,e){var c=this.settings.messages[d];return c&&(c.constructor==String?c:c[e])},findDefined:function(){for(var c=0;c<arguments.length;c++){if(arguments[c]!==undefined){return arguments[c]}}return undefined},defaultMessage:function(c,d){return this.findDefined(this.customMessage(c.name,d),this.customMetaMessage(c,d),!this.settings.ignoreTitle&&c.title||undefined,a.validator.messages[d],"<strong>Warning: No message defined for "+c.name+"</strong>")},formatAndAdd:function(d,f){var e=this.defaultMessage(d,f.method),c=/\$?\{(\d+)\}/g;if(typeof e=="function"){e=e.call(this,f.parameters,d)}else{if(c.test(e)){e=jQuery.format(e.replace(c,"{$1}"),f.parameters)}}this.errorList.push({message:e,element:d});this.errorMap[d.name]=e;this.submitted[d.name]=e},addWrapper:function(c){if(this.settings.wrapper){c=c.add(c.parent(this.settings.wrapper))}return c},defaultShowErrors:function(){for(var d=0;this.errorList[d];d++){var c=this.errorList[d];this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass);this.showLabel(c.element,c.message)}if(this.errorList.length){this.toShow=this.toShow.add(this.containers)}if(this.settings.success){for(var d=0;this.successList[d];d++){this.showLabel(this.successList[d])}}if(this.settings.unhighlight){for(var d=0,e=this.validElements();e[d];d++){this.settings.unhighlight.call(this,e[d],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(d,e){var c=this.errorsFor(d);if(c.length){c.removeClass().addClass(this.settings.errorClass);c.attr("generated")&&c.html(e)}else{c=a("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(d),generated:true}).addClass(this.settings.errorClass).html(e||"");if(this.settings.wrapper){c=c.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()}if(!this.labelContainer.append(c).length){this.settings.errorPlacement?this.settings.errorPlacement(c,a(d)):c.insertAfter(d)}}if(!e&&this.settings.success){c.text("");typeof this.settings.success=="string"?c.addClass(this.settings.success):this.settings.success(c)}this.toShow=this.toShow.add(c)},errorsFor:function(d){var c=this.idOrName(d);return this.errors().filter(function(){return a(this).attr("for")==c})},idOrName:function(c){return this.groups[c.name]||(this.checkable(c)?c.name:c.id||c.name)},checkable:function(c){return/radio|checkbox/i.test(c.type)},findByName:function(c){var d=this.currentForm;return a(document.getElementsByName(c)).map(function(e,f){return f.form==d&&f.name==c&&f||null})},getLength:function(d,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c)){return this.findByName(c.name).filter(":checked").length}}return d.length},depend:function(d,c){return this.dependTypes[typeof d]?this.dependTypes[typeof d](d,c):true},dependTypes:{"boolean":function(d,c){return d},string:function(d,c){return !!a(d,c.form).length},"function":function(d,c){return d(c)}},optional:function(c){return !a.validator.methods.required.call(this,a.trim(c.value),c)&&"dependency-mismatch"},startRequest:function(c){if(!this.pending[c.name]){this.pendingRequest++;this.pending[c.name]=true}},stopRequest:function(c,d){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0}delete this.pending[c.name];if(d&&this.pendingRequest==0&&this.formSubmitted&&this.form()){a(this.currentForm).submit();this.formSubmitted=false}else{if(!d&&this.pendingRequest==0&&this.formSubmitted){a(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false}}},previousValue:function(c){return a.data(c,"previousValue")||a.data(c,"previousValue",{old:null,valid:true,message:this.defaultMessage(c,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(c,d){c.constructor==String?this.classRuleSettings[c]=d:a.extend(this.classRuleSettings,c)},classRules:function(d){var e={};var c=a(d).attr("class");c&&a.each(c.split(" "),function(){if(this in a.validator.classRuleSettings){a.extend(e,a.validator.classRuleSettings[this])}});return e},attributeRules:function(d){var f={};var c=a(d);for(var g in a.validator.methods){var e=c.attr(g);if(e){f[g]=e}}if(f.maxlength&&/-1|2147483647|524288/.test(f.maxlength)){delete f.maxlength}return f},metadataRules:function(c){if(!a.metadata){return{}}var d=a.data(c.form,"validator").settings.meta;return d?a(c).metadata()[d]:a(c).metadata()},staticRules:function(d){var e={};var c=a.data(d.form,"validator");if(c.settings.rules){e=a.validator.normalizeRule(c.settings.rules[d.name])||{}}return e},normalizeRules:function(d,c){a.each(d,function(g,f){if(f===false){delete d[g];return}if(f.param||f.depends){var e=true;switch(typeof f.depends){case"string":e=!!a(f.depends,c.form).length;break;case"function":e=f.depends.call(c,c);break}if(e){d[g]=f.param!==undefined?f.param:true}else{delete d[g]}}});a.each(d,function(e,f){d[e]=a.isFunction(f)?f(c):f});a.each(["minlength","maxlength","min","max"],function(){if(d[this]){d[this]=Number(d[this])}});a.each(["rangelength","range"],function(){if(d[this]){d[this]=[Number(d[this][0]),Number(d[this][1])]}});if(a.validator.autoCreateRanges){if(d.min&&d.max){d.range=[d.min,d.max];delete d.min;delete d.max}if(d.minlength&&d.maxlength){d.rangelength=[d.minlength,d.maxlength];delete d.minlength;delete d.maxlength}}if(d.messages){delete d.messages}return d},normalizeRule:function(d){if(typeof d=="string"){var c={};a.each(d.split(/\s/),function(){c[this]=true});d=c}return d},addMethod:function(c,e,d){a.validator.methods[c]=e;a.validator.messages[c]=d!=undefined?d:a.validator.messages[c];if(e.length<3){a.validator.addClassRules(c,a.validator.normalizeRule(c))}},methods:{required:function(d,c,f){if(!this.depend(f,c)){return"dependency-mismatch"}switch(c.nodeName.toLowerCase()){case"select":var e=a(c).val();return e&&e.length>0;case"input":if(this.checkable(c)){return this.getLength(d,c)>0}default:return a.trim(d).length>0}},remote:function(g,d,h){if(this.optional(d)){return"dependency-mismatch"}var e=this.previousValue(d);if(!this.settings.messages[d.name]){this.settings.messages[d.name]={}}e.originalMessage=this.settings.messages[d.name].remote;this.settings.messages[d.name].remote=e.message;h=typeof h=="string"&&{url:h}||h;if(this.pending[d.name]){return"pending"}if(e.old===g){return e.valid}e.old=g;var c=this;this.startRequest(d);var f={};f[d.name]=g;a.ajax(a.extend(true,{url:h,mode:"abort",port:"validate"+d.name,dataType:"json",data:f,success:function(l){c.settings.messages[d.name].remote=e.originalMessage;var o=l===true;if(o){var j=c.formSubmitted;c.prepareElement(d);c.formSubmitted=j;c.successList.push(d);c.showErrors()}else{var p={};var n=l||c.defaultMessage(d,"remote");p[d.name]=e.message=a.isFunction(n)?n(g):n;c.showErrors(p)}e.valid=o;c.stopRequest(d,o)}},h));return"pending"},minlength:function(d,c,e){return this.optional(c)||this.getLength(a.trim(d),c)>=e},maxlength:function(d,c,e){return this.optional(c)||this.getLength(a.trim(d),c)<=e},rangelength:function(e,c,f){var d=this.getLength(a.trim(e),c);return this.optional(c)||(d>=f[0]&&d<=f[1])},min:function(d,c,e){return this.optional(c)||d>=e},max:function(d,c,e){return this.optional(c)||d<=e},range:function(d,c,e){return this.optional(c)||(d>=e[0]&&d<=e[1])},email:function(d,c){return this.optional(c)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(d)},url:function(d,c){return this.optional(c)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(d)},date:function(d,c){return this.optional(c)||!/Invalid|NaN/.test(new Date(d))},dateISO:function(d,c){return this.optional(c)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(d)},number:function(d,c){return this.optional(c)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(d)},digits:function(d,c){return this.optional(c)||/^\d+$/.test(d)},creditcard:function(g,d){if(this.optional(d)){return"dependency-mismatch"}if(/[^0-9-]+/.test(g)){return false}var h=0,f=0,c=false;g=g.replace(/\D/g,"");for(var j=g.length-1;j>=0;j--){var e=g.charAt(j);var f=parseInt(e,10);if(c){if((f*=2)>9){f-=9}}h+=f;c=!c}return(h%10)==0},accept:function(d,c,e){e=typeof e=="string"?e.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(c)||d.match(new RegExp(".("+e+")$","i"))},equalTo:function(d,c,f){var e=a(f).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(c).valid()});return d==e.val()}}});a.format=a.validator.format})(jQuery);(function(d){var a={};if(d.ajaxPrefilter){d.ajaxPrefilter(function(g,f,h){var e=g.port;if(g.mode=="abort"){if(a[e]){a[e].abort()}a[e]=h}})}else{var c=d.ajax;d.ajax=function(f){var g=("mode" in f?f:d.ajaxSettings).mode,e=("port" in f?f:d.ajaxSettings).port;if(g=="abort"){if(a[e]){a[e].abort()}return(a[e]=c.apply(this,arguments))}return c.apply(this,arguments)}}})(jQuery);(function(a){if(!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener){a.each({focus:"focusin",blur:"focusout"},function(d,c){a.event.special[c]={setup:function(){this.addEventListener(d,e,true)},teardown:function(){this.removeEventListener(d,e,true)},handler:function(f){arguments[0]=a.event.fix(f);arguments[0].type=c;return a.event.handle.apply(this,arguments)}};function e(f){f=a.event.fix(f);f.type=c;return a.event.handle.call(this,f)}})}a.extend(a.fn,{validateDelegate:function(e,d,c){return this.bind(d,function(f){var g=a(f.target);if(g.is(e)){return c.apply(g,arguments)}})}})})(jQuery);jQuery.validator.addMethod("creditcard2",function(r,c,g){var q=g;var e=new Array();e[0]={cardName:"Visa",lengths:"13,16",prefixes:"4",checkdigit:true};e[1]={cardName:"MasterCard",lengths:"16",prefixes:"51,52,53,54,55",checkdigit:true};e[2]={cardName:"DinersClub",lengths:"14,16",prefixes:"305,36,38,54,55",checkdigit:true};e[3]={cardName:"CarteBlanche",lengths:"14",prefixes:"300,301,302,303,304,305",checkdigit:true};e[4]={cardName:"AmEx",lengths:"15",prefixes:"34,37",checkdigit:true};e[5]={cardName:"Discover",lengths:"16",prefixes:"6011,622,64,65",checkdigit:true};e[6]={cardName:"JCB",lengths:"16",prefixes:"35",checkdigit:true};e[7]={cardName:"enRoute",lengths:"15",prefixes:"2014,2149",checkdigit:true};e[8]={cardName:"Solo",lengths:"16,18,19",prefixes:"6334, 6767",checkdigit:true};e[9]={cardName:"Switch",lengths:"16,18,19",prefixes:"4903,4905,4911,4936,564182,633110,6333,6759",checkdigit:true};e[10]={cardName:"Maestro",lengths:"12,13,14,15,16,18,19",prefixes:"5018,5020,5038,6304,6759,6761",checkdigit:true};e[11]={cardName:"VisaElectron",lengths:"16",prefixes:"417500,4917,4913,4508,4844",checkdigit:true};e[12]={cardName:"LaserCard",lengths:"16,17,18,19",prefixes:"6304,6706,6771,6709",checkdigit:true};var x=-1;for(var w=0;w<e.length;w++){if(q.toLowerCase()==e[w].cardName.toLowerCase()){x=w;break}}if(x==-1){return false}r=r.replace(/[\s-]/g,"");if(r.length==0){return false}var l=r;var o=/^[0-9]{13,19}$/;if(!o.exec(l)){return false}l=l.replace(/\D/g,"");if(e[x].checkdigit){var f=0;var y="";var v=1;var a;for(w=l.length-1;w>=0;w--){a=Number(l.charAt(w))*v;if(a>9){f=f+1;a=a-10}f=f+a;if(v==1){v=2}else{v=1}}if(f%10!=0){return false}}var p=false;var n=false;var u=new Array();var d=new Array();u=e[x].prefixes.split(",");for(w=0;w<u.length;w++){var h=new RegExp("^"+u[w]);if(h.test(l)){n=true}}if(!n){return false}d=e[x].lengths.split(",");for(v=0;v<d.length;v++){if(l.length==d[v]){p=true}}if(!p){return false}return true},jQuery.validator.messages.creditcard);
/* Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (MIT_LICENSE.txt)
 * and GPL Version 2 (GPL_LICENSE.txt) licenses.
 *
 * Version: 1.1.1
 * Requires jQuery 1.3+
 * Docs: http://docs.jquery.com/Plugins/livequery
 */
(function(a){a.extend(a.fn,{livequery:function(f,e,d){var c=this,g;if(a.isFunction(f)){d=e,e=f,f=undefined}a.each(a.livequery.queries,function(h,j){if(c.selector==j.selector&&c.context==j.context&&f==j.type&&(!e||e.$lqguid==j.fn.$lqguid)&&(!d||d.$lqguid==j.fn2.$lqguid)){return(g=j)&&false}});g=g||new a.livequery(this.selector,this.context,f,e,d);g.stopped=false;g.run();return this},expire:function(f,e,d){var c=this;if(a.isFunction(f)){d=e,e=f,f=undefined}a.each(a.livequery.queries,function(g,h){if(c.selector==h.selector&&c.context==h.context&&(!f||f==h.type)&&(!e||e.$lqguid==h.fn.$lqguid)&&(!d||d.$lqguid==h.fn2.$lqguid)&&!this.stopped){a.livequery.stop(h.id)}});return this}});a.livequery=function(c,e,g,f,d){this.selector=c;this.context=e;this.type=g;this.fn=f;this.fn2=d;this.elements=[];this.stopped=false;this.id=a.livequery.queries.push(this)-1;f.$lqguid=f.$lqguid||a.livequery.guid++;if(d){d.$lqguid=d.$lqguid||a.livequery.guid++}return this};a.livequery.prototype={stop:function(){var c=this;if(this.type){this.elements.unbind(this.type,this.fn)}else{if(this.fn2){this.elements.each(function(d,e){c.fn2.apply(e)})}}this.elements=[];this.stopped=true},run:function(){if(this.stopped){return}var e=this;var f=this.elements,d=a(this.selector,this.context),c=d.not(f);this.elements=d;if(this.type){c.bind(this.type,this.fn);if(f.length>0){a.each(f,function(g,h){if(a.inArray(h,d)<0){a.event.remove(h,e.type,e.fn)}})}}else{c.each(function(){e.fn.apply(this)});if(this.fn2&&f.length>0){a.each(f,function(g,h){if(a.inArray(h,d)<0){e.fn2.apply(h)}})}}}};a.extend(a.livequery,{guid:0,queries:[],queue:[],running:false,timeout:null,checkQueue:function(){if(a.livequery.running&&a.livequery.queue.length){var c=a.livequery.queue.length;while(c--){a.livequery.queries[a.livequery.queue.shift()].run()}}},pause:function(){a.livequery.running=false},play:function(){a.livequery.running=true;a.livequery.run()},registerPlugin:function(){a.each(arguments,function(d,e){if(!a.fn[e]){return}var c=a.fn[e];a.fn[e]=function(){var f=c.apply(this,arguments);a.livequery.run();return f}})},run:function(c){if(c!=undefined){if(a.inArray(c,a.livequery.queue)<0){a.livequery.queue.push(c)}}else{a.each(a.livequery.queries,function(d){if(a.inArray(d,a.livequery.queue)<0){a.livequery.queue.push(d)}})}if(a.livequery.timeout){clearTimeout(a.livequery.timeout)}a.livequery.timeout=setTimeout(a.livequery.checkQueue,20)},stop:function(c){if(c!=undefined){a.livequery.queries[c].stop()}else{a.each(a.livequery.queries,function(d){a.livequery.queries[d].stop()})}}});a.livequery.registerPlugin("append","prepend","after","before","wrap","attr","removeAttr","addClass","removeClass","toggleClass","empty","remove","html");a(function(){a.livequery.play()})})(jQuery);jQuery.fn.extend({everyTime:function(a,c,d,e){return this.each(function(){jQuery.timer.add(this,a,c,d,e)})},oneTime:function(a,c,d){return this.each(function(){jQuery.timer.add(this,a,c,d,1)})},stopTime:function(a,c){return this.each(function(){jQuery.timer.remove(this,a,c)})}});jQuery.extend({timer:{global:[],guid:1,dataKey:"jQuery.timer",regex:/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1000,das:10000,hs:100000,ks:1000000},timeParse:function(d){if(d==undefined||d==null){return null}var a=this.regex.exec(jQuery.trim(d.toString()));if(a[2]){var c=parseFloat(a[1]);var e=this.powers[a[2]]||1;return c*e}else{return d}},add:function(e,c,d,g,j){var a=0;if(jQuery.isFunction(d)){if(!j){j=g}g=d;d=c}c=jQuery.timer.timeParse(c);if(typeof c!="number"||isNaN(c)||c<0){return}if(typeof j!="number"||isNaN(j)||j<0){j=0}j=j||0;var h=jQuery.data(e,this.dataKey)||jQuery.data(e,this.dataKey,{});if(!h[d]){h[d]={}}g.timerID=g.timerID||this.guid++;var f=function(){if((++a>j&&j!==0)||g.call(e,a)===false){jQuery.timer.remove(e,d,g)}};f.timerID=g.timerID;if(!h[d][g.timerID]){h[d][g.timerID]=window.setInterval(f,c)}this.global.push(e)},remove:function(d,c,e){var f=jQuery.data(d,this.dataKey),a;if(f){if(!c){for(c in f){this.remove(d,c,e)}}else{if(f[c]){if(e){if(e.timerID){window.clearInterval(f[c][e.timerID]);delete f[c][e.timerID]}}else{for(var e in f[c]){window.clearInterval(f[c][e]);delete f[c][e]}}for(a in f[c]){break}if(!a){a=null;delete f[c]}}}for(a in f){break}if(!a){jQuery.removeData(d,this.dataKey)}}}}});jQuery(window).unload(function(){jQuery.each(jQuery.timer.global,function(a,c){jQuery.timer.remove(c)})});(function(a){a.address=(function(){var e=function(ar){a(a.address).trigger(a.extend(a.Event(ar),(function(){var aw={},av=a.address.parameterNames();for(var au=0,at=av.length;au<at;au++){aw[av[au]]=a.address.parameter(av[au])}return{value:a.address.value(),path:a.address.path(),pathNames:a.address.pathNames(),parameterNames:av,parameters:aw,queryString:a.address.queryString()}}).call(a.address)))},n=function(au,at,ar){a().bind.apply(a(a.address),Array.prototype.slice.call(arguments));return a.address},U=function(){return(ai.pushState&&L.state!==P)},O=function(){return("/"+ae.pathname.replace(new RegExp(L.state),"")+ae.search+(aa()?"#"+aa():"")).replace(W,"/")},aa=function(){var ar=ae.href.indexOf("#");return ar!=-1?K(ae.href.substr(ar+1),aj):""},G=function(){return U()?O():aa()},c=function(){try{return top.document!==P?top:window}catch(ar){return window}},p=function(){return"javascript"},ap=function(ar){ar=ar.toString();return(L.strict&&ar.substr(0,1)!="/"?"/":"")+ar},K=function(ar,at){if(L.crawlable&&at){return(ar!==""?"!":"")+ar}return ar.replace(/^\!/,"")},Z=function(ar,at){return parseInt(ar.css(at),10)},o=function(aw){var at,av;for(var au=0,ar=aw.childNodes.length;au<ar;au++){try{if("src" in aw.childNodes[au]&&aw.childNodes[au].src){at=String(aw.childNodes[au].src)}}catch(ax){}av=o(aw.childNodes[au]);if(av){at=av}}return at},ah=function(){if(!z){var at=G(),ar=ac!=at;if(ar){if(j&&w<7){ae.reload()}else{if(j&&w<8&&L.history){r(M,50)}ac=at;af(aj)}}}},af=function(ar){e(N);e(ar?h:ao);r(D,10)},D=function(){if(L.tracker!=="null"&&L.tracker!==null){var ar=a.isFunction(L.tracker)?L.tracker:X[L.tracker],at=(ae.pathname+ae.search+(a.address&&!U()?a.address.value():"")).replace(/\/\//,"/").replace(/^\/$/,"");if(a.isFunction(ar)){ar(at)}else{if(a.isFunction(X.urchinTracker)){X.urchinTracker(at)}else{if(X.pageTracker!==P&&a.isFunction(X.pageTracker._trackPageview)){X.pageTracker._trackPageview(at)}else{if(X._gaq!==P&&a.isFunction(X._gaq.push)){X._gaq.push(["_trackPageview",decodeURI(at)])}}}}}},M=function(){var ar=p()+":"+aj+";document.open();document.writeln('<html><head><title>"+am.title.replace("'","\\'")+"</title><script>var "+F+' = "'+encodeURIComponent(G())+(am.domain!=ae.hostname?'";document.domain="'+am.domain:"")+"\";<\/script></head></html>');document.close();";if(w<7){f.src=ar}else{f.contentWindow.location.replace(ar)}},ak=function(){if(l&&d!=-1){var at,ar=l.substr(d+1).split("&");for(i=0;i<ar.length;i++){at=ar[i].split("=");if(/^(autoUpdate|crawlable|history|strict|wrap)$/.test(at[0])){L[at[0]]=(isNaN(at[1])?/^(true|yes)$/i.test(at[1]):(parseInt(at[1],10)!==0))}if(/^(state|tracker)$/.test(at[0])){L[at[0]]=at[1]}}l=null}ac=G()},Y=function(){if(!ad){ad=J;ak();var au=function(){C.call(this);x.call(this)},at=a("body").ajaxComplete(au);au();if(L.wrap){var av=a("body > *").wrapAll('<div style="padding:'+(Z(at,"marginTop")+Z(at,"paddingTop"))+"px "+(Z(at,"marginRight")+Z(at,"paddingRight"))+"px "+(Z(at,"marginBottom")+Z(at,"paddingBottom"))+"px "+(Z(at,"marginLeft")+Z(at,"paddingLeft"))+'px;" />').parent().wrap('<div id="'+F+'" style="height:100%;overflow:auto;position:relative;'+(y&&!window.statusbar.visible?"resize:both;":"")+'" />');a("html, body").css({height:"100%",margin:0,padding:0,overflow:"hidden"});if(y){a('<style type="text/css" />').appendTo("head").text("#"+F+"::-webkit-resizer { background-color: #fff; }")}}if(j&&w<8){var ar=am.getElementsByTagName("frameset")[0];f=am.createElement((ar?"":"i")+"frame");if(ar){ar.insertAdjacentElement("beforeEnd",f);ar[ar.cols?"cols":"rows"]+=",0";f.noResize=J;f.frameBorder=f.frameSpacing=0}else{f.style.display="none";f.style.width=f.style.height=0;f.tabIndex=-1;am.body.insertAdjacentElement("afterBegin",f)}r(function(){a(f).bind("load",function(){var aw=f.contentWindow;ac=aw[F]!==P?aw[F]:"";if(ac!=G()){af(aj);ae.hash=K(ac,J)}});if(f.contentWindow[F]===P){M()}},50)}r(function(){e("init");af(aj)},1);if(!U()){if((j&&w>7)||(!j&&("on"+ab) in X)){if(X.addEventListener){X.addEventListener(ab,ah,aj)}else{if(X.attachEvent){X.attachEvent("on"+ab,ah)}}}else{A(ah,50)}}}},C=function(){var av,ax=a("a"),aw=ax.size(),at=1,ar=-1,au=function(){if(++ar!=aw){av=a(ax.get(ar));if(av.is('[rel*="address:"]')){av.address()}r(au,at)}};r(au,at)},v=function(){if(ac!=G()){ac=G();af(aj)}},u=function(){if(X.removeEventListener){X.removeEventListener(ab,ah,aj)}else{if(X.detachEvent){X.detachEvent("on"+ab,ah)}}},x=function(){if(L.crawlable){var at=ae.pathname.replace(/\/$/,""),ar="_escaped_fragment_";if(a("body").html().indexOf(ar)!=-1){a('a[href]:not([href^=http]), a[href*="'+document.domain+'"]').each(function(){var au=a(this).attr("href").replace(/^http:/,"").replace(new RegExp(at+"/?$"),"");if(au===""||au.indexOf(ar)!=-1){a(this).attr("href","#"+au.replace(new RegExp("/(.*)\\?"+ar+"=(.*)$"),"!$2"))}})}}},P,F="jQueryAddress",ag="string",ab="hashchange",q="init",N="change",h="internalChange",ao="externalChange",J=true,aj=false,L={autoUpdate:J,crawlable:aj,history:J,strict:J,wrap:aj},I=a.browser,w=parseFloat(a.browser.version),al=I.mozilla,j=I.msie,T=I.opera,y=I.webkit||I.safari,an=aj,X=c(),am=X.document,ai=X.history,ae=X.location,A=setInterval,r=setTimeout,W=/\/{2,9}/g,aq=navigator.userAgent,f,R,l=o(document),d=l?l.indexOf("?"):-1,Q=am.title,z=aj,ad=aj,V=J,S=J,E=aj,H={},ac=G();if(j){w=parseFloat(aq.substr(aq.indexOf("MSIE")+4));if(am.documentMode&&am.documentMode!=w){w=am.documentMode!=8?7:8}var B=am.onpropertychange;am.onpropertychange=function(){if(B){B.call(am)}if(am.title!=Q&&am.title.indexOf("#"+G())!=-1){am.title=Q}}}an=(al&&w>=1)||(j&&w>=6)||(T&&w>=9.5)||(y&&w>=523);if(an){if(T){history.navigationMode="compatible"}if(document.readyState=="complete"){var g=setInterval(function(){if(a.address){Y();clearInterval(g)}},50)}else{ak();a(Y)}a(window).bind("popstate",v).bind("unload",u)}else{if(!an&&aa()!==""){ae.replace(ae.href.substr(0,ae.href.indexOf("#")))}else{D()}}return{bind:function(at,au,ar){return n(at,au,ar)},init:function(ar){return n(q,ar)},change:function(ar){return n(N,ar)},internalChange:function(ar){return n(h,ar)},externalChange:function(ar){return n(ao,ar)},baseURL:function(){var ar=ae.href;if(ar.indexOf("#")!=-1){ar=ar.substr(0,ar.indexOf("#"))}if(/\/$/.test(ar)){ar=ar.substr(0,ar.length-1)}return ar},autoUpdate:function(ar){if(ar!==P){L.autoUpdate=ar;return this}return L.autoUpdate},crawlable:function(ar){if(ar!==P){L.crawlable=ar;return this}return L.crawlable},history:function(ar){if(ar!==P){L.history=ar;return this}return L.history},state:function(ar){if(ar!==P){L.state=ar;var at=O();if(L.state!==P){if(ai.pushState){if(at.substr(0,3)=="/#/"){ae.replace(L.state.replace(/^\/$/,"")+at.substr(2))}}else{if(at!="/"&&at.replace(/^\/#/,"")!=aa()){r(function(){ae.replace(L.state.replace(/^\/$/,"")+"/#"+at)},1)}}}return this}return L.state},strict:function(ar){if(ar!==P){L.strict=ar;return this}return L.strict},tracker:function(ar){if(ar!==P){L.tracker=ar;return this}return L.tracker},wrap:function(ar){if(ar!==P){L.wrap=ar;return this}return L.wrap},update:function(){E=J;this.value(ac);E=aj;return this},title:function(ar){if(ar!==P){r(function(){Q=am.title=ar;if(S&&f&&f.contentWindow&&f.contentWindow.document){f.contentWindow.document.title=ar;S=aj}if(!V&&al){ae.replace(ae.href.indexOf("#")!=-1?ae.href:ae.href+"#")}V=aj},50);return this}return am.title},value:function(ar){if(ar!==P){ar=ap(ar);if(ar=="/"){ar=""}if(ac==ar&&!E){return}V=J;ac=ar;if(L.autoUpdate||E){af(J);if(U()){ai[L.history?"pushState":"replaceState"]({},"",L.state.replace(/\/$/,"")+(ac===""?"/":ac))}else{z=J;if(y){if(L.history){ae.hash="#"+K(ac,J)}else{ae.replace("#"+K(ac,J))}}else{if(ac!=G()){if(L.history){ae.hash="#"+K(ac,J)}else{ae.replace("#"+K(ac,J))}}}if((j&&w<8)&&L.history){r(M,50)}if(y){r(function(){z=aj},1)}else{z=aj}}}return this}if(!an){return null}return ap(ac)},path:function(at){if(at!==P){var ar=this.queryString(),au=this.hash();this.value(at+(ar?"?"+ar:"")+(au?"#"+au:""));return this}return ap(ac).split("#")[0].split("?")[0]},pathNames:function(){var at=this.path(),ar=at.replace(W,"/").split("/");if(at.substr(0,1)=="/"||at.length===0){ar.splice(0,1)}if(at.substr(at.length-1,1)=="/"){ar.splice(ar.length-1,1)}return ar},queryString:function(at){if(at!==P){var au=this.hash();this.value(this.path()+(at?"?"+at:"")+(au?"#"+au:""));return this}var ar=ac.split("?");return ar.slice(1,ar.length).join("?").split("#")[0]},parameter:function(at,aB,av){var az,ax;if(aB!==P){var aA=this.parameterNames();ax=[];aB=aB?aB.toString():"";for(az=0;az<aA.length;az++){var aw=aA[az],aC=this.parameter(aw);if(typeof aC==ag){aC=[aC]}if(aw==at){aC=(aB===null||aB==="")?[]:(av?aC.concat([aB]):[aB])}for(var ay=0;ay<aC.length;ay++){ax.push(aw+"="+aC[ay])}}if(a.inArray(at,aA)==-1&&aB!==null&&aB!==""){ax.push(at+"="+aB)}this.queryString(ax.join("&"));return this}aB=this.queryString();if(aB){var ar=[];ax=aB.split("&");for(az=0;az<ax.length;az++){var au=ax[az].split("=");if(au[0]==at){ar.push(au.slice(1).join("="))}}if(ar.length!==0){return ar.length!=1?ar:ar[0]}}},parameterNames:function(){var ar=this.queryString(),av=[];if(ar&&ar.indexOf("=")!=-1){var aw=ar.split("&");for(var au=0;au<aw.length;au++){var at=aw[au].split("=")[0];if(a.inArray(at,av)==-1){av.push(at)}}}return av},hash:function(at){if(at!==P){this.value(ac.split("#")[0]+(at?"#"+at:""));return this}var ar=ac.split("#");return ar.slice(1,ar.length).join("#")}}})();a.fn.address=function(c){if(!a(this).attr("address")){var d=function(g){if(g.shiftKey||g.ctrlKey||g.metaKey){return true}if(a(this).is("a")){var f=c?c.call(this):/address:/.test(a(this).attr("rel"))?a(this).attr("rel").split("address:")[1].split(" ")[0]:a.address.state()!==undefined&&a.address.state()!="/"?a(this).attr("href").replace(new RegExp("^(.*"+a.address.state()+"|\\.)"),""):a(this).attr("href").replace(/^(#\!?|\.)/,"");a.address.value(f);g.preventDefault()}};a(this).click(d).live("click",d).live("submit",function(h){if(a(this).is("form")){var g=a(this).attr("action"),f=c?c.call(this):(g.indexOf("?")!=-1?g.replace(/&$/,""):g+"?")+a(this).serialize();a.address.value(f);h.preventDefault()}}).attr("address",true)}return this}})(jQuery);(function(a){a.fn.comments=function(c){var c=(c||false);var d=a([]);this.each(function(g,h){var f=h.firstChild;var e=a(this).attr("id");while(f){if(f.nodeType===8){d=d.add("<div rel='"+e+"'>"+f.nodeValue+"</div>")}else{if(c&&(f.nodeType===1)){d=d.add(a(f).comments(true))}}f=f.nextSibling}});return(d)}})(jQuery);(function(a){a.fn.alphanumeric=function(c){c=a.extend({ichars:"!@#$%^&*()+=[]\\';,/{}|\":<>?~`.- ",nchars:"",allow:""},c);return this.each(function(){var f=a(this);if(c.nocaps){c.nchars+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"}if(c.allcaps){c.nchars+="abcdefghijklmnopqrstuvwxyz"}s=c.allow.split("");for(i=0;i<s.length;i++){if(c.ichars.indexOf(s[i])!=-1){s[i]="\\"+s[i]}}c.allow=s.join("|");var e=new RegExp(c.allow,"gi");var d=c.ichars+c.nchars;d=d.replace(e,"");f.keypress(function(g){if(!g.charCode){k=String.fromCharCode(g.which)}else{k=String.fromCharCode(g.charCode)}if(d.indexOf(k)!=-1){g.preventDefault()}if(g.ctrlKey&&k=="v"){g.preventDefault()}});a("#Text1").bind("copy",function(g){alert("copying text!")});a("#Text1").bind("paste",function(g){alert("pasting text!")});a("#Text1").bind("cut",function(g){alert("cut text!")});f.bind("paste",function(g){g.preventDefault()});f.bind("contextmenu",function(){return false})})};a.fn.numeric=function(d){var c="abcdefghijklmnopqrstuvwxyz";c+=c.toUpperCase();d=a.extend({nchars:c},d);return this.each(function(){a(this).alphanumeric(d)})};a.fn.alpha=function(d){var c="1234567890";d=a.extend({nchars:c},d);return this.each(function(){a(this).alphanumeric(d)})}})(jQuery);(function(d){var a=(d.browser.msie?"paste":"input")+".mask";var c=(window.orientation!=undefined);d.mask={definitions:{"9":"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"}};d.fn.extend({caret:function(g,e){if(this.length==0){return}if(typeof g=="number"){e=(typeof e=="number")?e:g;return this.each(function(){if(this.setSelectionRange){this.focus();this.setSelectionRange(g,e)}else{if(this.createTextRange){var h=this.createTextRange();h.collapse(true);h.moveEnd("character",e);h.moveStart("character",g);h.select()}}})}else{if(this[0].setSelectionRange){g=this[0].selectionStart;e=this[0].selectionEnd}else{if(document.selection&&document.selection.createRange){var f=document.selection.createRange();g=0-f.duplicate().moveStart("character",-100000);e=g+f.text.length}}return{begin:g,end:e}}},unmask:function(){return this.trigger("unmask")},mask:function(g,n){if(!g&&this.length>0){var h=d(this[0]);var l=h.data("tests");return d.map(h.data("buffer"),function(q,p){return l[p]?q:null}).join("")}n=d.extend({placeholder:"_",completed:null},n);var f=d.mask.definitions;var l=[];var o=g.length;var j=null;var e=g.length;d.each(g.split(""),function(p,q){if(q=="?"){e--;o=p}else{if(f[q]){l.push(new RegExp(f[q]));if(j==null){j=l.length-1}}else{l.push(null)}}});return this.each(function(){var A=d(this);var v=d.map(g.split(""),function(E,D){if(E!="?"){return f[E]?n.placeholder:E}});var y=false;var C=A.val();A.data("buffer",v).data("tests",l);function z(D){while(++D<=e&&!l[D]){}return D}function u(F){while(!l[F]&&--F>=0){}for(var E=F;E<e;E++){if(l[E]){v[E]=n.placeholder;var D=z(E);if(D<e&&l[E].test(v[D])){v[E]=v[D]}else{break}}}x();A.caret(Math.max(j,F))}function p(H){for(var F=H,G=n.placeholder;F<e;F++){if(l[F]){var D=z(F);var E=v[F];v[F]=G;if(D<e&&l[D].test(E)){G=E}else{break}}}}function w(E){var F=d(this).caret();var D=E.keyCode;y=(D<16||(D>16&&D<32)||(D>32&&D<41));if((F.begin-F.end)!=0&&(!y||D==8||D==46)){q(F.begin,F.end)}if(D==8||D==46||(c&&D==127)){u(F.begin+(D==46?0:-1));return false}else{if(D==27){A.val(C);A.caret(0,r());return false}}}function B(G){if(y){y=false;return(G.keyCode==8)?false:null}G=G||window.event;var D=G.charCode||G.keyCode||G.which;var I=d(this).caret();if(G.ctrlKey||G.altKey||G.metaKey){return true}else{if((D>=32&&D<=125)||D>186){var F=z(I.begin-1);if(F<e){var H=String.fromCharCode(D);if(l[F].test(H)){p(F);v[F]=H;x();var E=z(F);d(this).caret(E);if(n.completed&&E==e){n.completed.call(A)}}}}}return false}function q(F,D){for(var E=F;E<D&&E<e;E++){if(l[E]){v[E]=n.placeholder}}}function x(){return A.val(v.join("")).val()}function r(E){var I=A.val();var H=-1;for(var D=0,G=0;D<e;D++){if(l[D]){v[D]=n.placeholder;while(G++<I.length){var F=I.charAt(G-1);if(l[D].test(F)){v[D]=F;H=D;break}}if(G>I.length){break}}else{if(v[D]==I[G]&&D!=o){G++;H=D}}}if(!E&&H+1<o){A.val("");q(0,e)}else{if(E||H+1>=o){x();if(!E){A.val(A.val().substring(0,H+1))}}}return(o?D:j)}if(!A.attr("readonly")){A.one("unmask",function(){A.unbind(".mask").removeData("buffer").removeData("tests")}).bind("focus.mask",function(){C=A.val();var D=r(true);x();setTimeout(function(){if(D==g.length){A.caret(0,D)}else{A.caret(D)}},0)}).bind("blur.mask",function(){r();if(A.val()!=C){A.change()}}).bind("keydown.mask",w).bind("keypress.mask",B).bind(a,function(){setTimeout(function(){A.caret(r(true))},0)})}r()})}})})(jQuery);jQuery.cookie=function(c,l,p){if(typeof l!="undefined"){p=p||{};if(l===null){l="";p.expires=-1}var f="";if(p.expires&&(typeof p.expires=="number"||p.expires.toUTCString)){var g;if(typeof p.expires=="number"){g=new Date();g.setTime(g.getTime()+(p.expires*24*60*60*1000))}else{g=p.expires}f="; expires="+g.toUTCString()}var o=p.path?"; path="+(p.path):"";var h=p.domain?"; domain="+(p.domain):"";var a=p.secure?"; secure":"";document.cookie=[c,"=",encodeURIComponent(l),f,o,h,a].join("")}else{var e=null;if(document.cookie&&document.cookie!=""){var n=document.cookie.split(";");for(var j=0;j<n.length;j++){var d=jQuery.trim(n[j]);if(d.substring(0,c.length+1)==(c+"=")){e=decodeURIComponent(d.substring(c.length+1));break}}}return e}};(function(c){var a=function(d){return(typeof d==="object")&&!(d instanceof Array)&&(d!==null)};c.extend({getJSONCookie:function(e){var d=c.cookie(e);return d?JSON.parse(d):{}},setJSONCookie:function(g,f,e){var d="";e=c.extend({expires:90,path:"/"},e);if(!a(f)){throw new Error("JSONCookie data must be an object")}d=JSON.stringify(f);return c.cookie(g,d,e)},removeJSONCookie:function(d){return c.cookie(d,null)},JSONCookie:function(f,e,d){if(e){c.setJSONCookie(f,e,d)}return c.getJSONCookie(f)}})})(jQuery);(function(d){var a=d.scrollTo=function(g,f,e){d(window).scrollTo(g,f,e)};a.defaults={axis:"xy",duration:parseFloat(d.fn.jquery)>=1.3?0:1};a.window=function(e){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var f=this,e=!f.nodeName||d.inArray(f.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!e){return f}var g=(f.contentWindow||f).document||f.ownerDocument||f;return d.browser.safari||g.compatMode=="BackCompat"?g.body:g.documentElement})};d.fn.scrollTo=function(g,f,e){if(typeof f=="object"){e=f;f=0}if(typeof e=="function"){e={onAfter:e}}if(g=="max"){g=9000000000}e=d.extend({},a.defaults,e);f=f||e.speed||e.duration;e.queue=e.queue&&e.axis.length>1;if(e.queue){f/=2}e.offset=c(e.offset);e.over=c(e.over);return this._scrollable().each(function(){var p=this,n=d(p),o=g,l,h={},q=n.is("html,body");switch(typeof o){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(o)){o=c(o);break}o=d(o,this);case"object":if(o.is||o.style){l=(o=d(o)).offset()}}d.each(e.axis.split(""),function(w,x){var y=x=="x"?"Left":"Top",A=y.toLowerCase(),v="scroll"+y,u=p[v],r=a.max(p,x);if(l){h[v]=l[A]+(q?0:u-n.offset()[A]);if(e.margin){h[v]-=parseInt(o.css("margin"+y))||0;h[v]-=parseInt(o.css("border"+y+"Width"))||0}h[v]+=e.offset[A]||0;if(e.over[A]){h[v]+=o[x=="x"?"width":"height"]()*e.over[A]}}else{var z=o[A];h[v]=z.slice&&z.slice(-1)=="%"?parseFloat(z)/100*r:z}if(/^\d+$/.test(h[v])){h[v]=h[v]<=0?0:Math.min(h[v],r)}if(!w&&e.queue){if(u!=h[v]){j(e.onAfterFirst)}delete h[v]}});j(e.onAfter);function j(r){n.animate(h,f,e.easing,r&&function(){r.call(this,g,e)})}}).end()};a.max=function(n,l){var j=l=="x"?"Width":"Height",f="scroll"+j;if(!d(n).is("html,body")){return n[f]-d(n)[j.toLowerCase()]()}var h="client"+j,g=n.ownerDocument.documentElement,e=n.ownerDocument.body;return Math.max(g[f],e[f])-Math.min(g[h],e[h])};function c(e){return typeof e=="object"?e:{top:e,left:e}}})(jQuery);(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata"}var data=$.data(elem,settings.single);if(data){return data}data="{}";var getData=function(data){if(typeof data!="string"){return data}if(data.indexOf("{")<0){data=eval("("+data+")")}};var getObject=function(data){if(typeof data!="string"){return data}data=eval("("+data+")");return data};if(settings.type=="html5"){var object={};$(elem.attributes).each(function(){var name=this.nodeName;if(name.match(/^data-/)){name=name.replace(/^data-/,"")}else{return true}object[name]=getObject(this.nodeValue)})}else{if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1]}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML)}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr}}}}object=getObject(data.indexOf("{")<0?"{"+data+"}":data)}$.data(elem,settings.single,object);return object}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);(function(c){c.fn.ajaxSubmit=function(x){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof x=="function"){x={success:x}}var f=c.trim(this.attr("action"));if(f){f=(f.match(/^([^#]+)/)||[])[1]}f=f||window.location.href||"";x=c.extend({url:f,type:this.attr("method")||"GET"},x||{});var z={};this.trigger("form-pre-serialize",[this,x,z]);if(z.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(x.beforeSerialize&&x.beforeSerialize(this,x)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var r=this.formToArray(x.semantic);if(x.data){x.extraData=x.data;for(var g in x.data){if(x.data[g] instanceof Array){for(var h in x.data[g]){r.push({name:g,value:x.data[g][h]})}}else{r.push({name:g,value:x.data[g]})}}}if(x.beforeSubmit&&x.beforeSubmit(r,this,x)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[r,this,x,z]);if(z.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var e=c.param(r);if(x.type.toUpperCase()=="GET"){x.url+=(x.url.indexOf("?")>=0?"&":"?")+e;x.data=null}else{x.data=e}var y=this,p=[];if(x.resetForm){p.push(function(){y.resetForm()})}if(x.clearForm){p.push(function(){y.clearForm()})}if(!x.dataType&&x.target){var v=x.success||function(){};p.push(function(j){c(x.target).html(j).each(v,arguments)})}else{if(x.success){p.push(x.success)}}x.success=function(A,n){for(var q=0,j=p.length;q<j;q++){p[q].apply(x,[A,n,y])}};var d=c("input:file",this).fieldValue();var w=false;for(var o=0;o<d.length;o++){if(d[o]){w=true}}var l=false;if(x.iframe||w||l){if(x.closeKeepAlive){c.get(x.closeKeepAlive,u)}else{u()}}else{c.ajax(x)}this.trigger("form-submit-notify",[this,x]);return this;function u(){var C=y[0];if(c(":input[name=submit]",C).length){alert('Error: Form elements must not be named "submit".');return}var A=c.extend({},c.ajaxSettings,x);var M=c.extend(true,{},c.extend(true,{},c.ajaxSettings),A);var B="jqFormIO"+(new Date().getTime());var I=c('<iframe id="'+B+'" name="'+B+'" src="about:blank" />');var K=I[0];I.css({position:"absolute",top:"-1000px",left:"-1000px"});var L={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;I.attr("src","about:blank")}};var J=A.global;if(J&&!c.active++){c.event.trigger("ajaxStart")}if(J){c.event.trigger("ajaxSend",[L,A])}if(M.beforeSend&&M.beforeSend(L,M)===false){M.global&&c.active--;return}if(L.aborted){return}var q=0;var E=0;var j=C.clk;if(j){var D=j.name;if(D&&!j.disabled){x.extraData=x.extraData||{};x.extraData[D]=j.value;if(j.type=="image"){x.extraData[name+".x"]=C.clk_x;x.extraData[name+".y"]=C.clk_y}}}setTimeout(function(){var P=y.attr("target"),N=y.attr("action");C.setAttribute("target",B);if(C.getAttribute("method")!="POST"){C.setAttribute("method","POST")}if(C.getAttribute("action")!=A.url){C.setAttribute("action",A.url)}if(!x.skipEncodingOverride){y.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(A.timeout){setTimeout(function(){E=true;F()},A.timeout)}var O=[];try{if(x.extraData){for(var Q in x.extraData){O.push(c('<input type="hidden" name="'+Q+'" value="'+x.extraData[Q]+'" />').appendTo(C)[0])}}I.appendTo("body");K.attachEvent?K.attachEvent("onload",F):K.addEventListener("load",F,false);C.submit()}finally{C.setAttribute("action",N);P?C.setAttribute("target",P):y.removeAttr("target");c(O).remove()}},10);var G=0;function F(){if(q++){return}K.detachEvent?K.detachEvent("onload",F):K.removeEventListener("load",F,false);var N=true;try{if(E){throw"timeout"}var O,Q;Q=K.contentWindow?K.contentWindow.document:K.contentDocument?K.contentDocument:K.document;if((Q.body==null||Q.body.innerHTML=="")&&!G){G=1;q--;setTimeout(F,100);return}L.responseText=Q.body?Q.body.innerHTML:null;L.responseXML=Q.XMLDocument?Q.XMLDocument:Q;L.getResponseHeader=function(S){var R={"content-type":A.dataType};return R[S]};if(A.dataType=="json"||A.dataType=="script"){var n=Q.getElementsByTagName("textarea")[0];L.responseText=n?n.value:L.responseText}else{if(A.dataType=="xml"&&!L.responseXML&&L.responseText!=null){L.responseXML=H(L.responseText)}}O=c.httpData(L,A.dataType)}catch(P){N=false;c.handleError(A,L,"error",P)}if(N){A.success(O,"success");if(J){c.event.trigger("ajaxSuccess",[L,A])}}if(J){c.event.trigger("ajaxComplete",[L,A])}if(J&&!--c.active){c.event.trigger("ajaxStop")}if(A.complete){A.complete(L,N?"success":"error")}setTimeout(function(){I.remove();L.responseXML=null},100)}function H(n,N){if(window.ActiveXObject){N=new ActiveXObject("Microsoft.XMLDOM");N.async="false";N.loadXML(n)}else{N=(new DOMParser()).parseFromString(n,"text/xml")}return(N&&N.documentElement&&N.documentElement.tagName!="parsererror")?N:null}}};c.fn.ajaxForm=function(d){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){c(this).ajaxSubmit(d);return false}).each(function(){c(":submit,input:image",this).bind("click.form-plugin",function(g){var f=this.form;f.clk=this;if(this.type=="image"){if(g.offsetX!=undefined){f.clk_x=g.offsetX;f.clk_y=g.offsetY}else{if(typeof c.fn.offset=="function"){var h=c(this).offset();f.clk_x=g.pageX-h.left;f.clk_y=g.pageY-h.top}else{f.clk_x=g.pageX-this.offsetLeft;f.clk_y=g.pageY-this.offsetTop}}}setTimeout(function(){f.clk=f.clk_x=f.clk_y=null},10)})})};c.fn.ajaxFormUnbind=function(){this.unbind("submit.form-plugin");return this.each(function(){c(":submit,input:image",this).unbind("click.form-plugin")})};c.fn.formToArray=function(w){var u=[];if(this.length==0){return u}var e=this[0];var l=w?e.getElementsByTagName("*"):e.elements;if(!l){return u}for(var o=0,q=l.length;o<q;o++){var f=l[o];var g=f.name;if(!g){continue}if(w&&e.clk&&f.type=="image"){if(!f.disabled&&e.clk==f){u.push({name:g,value:c(f).val()});u.push({name:g+".x",value:e.clk_x},{name:g+".y",value:e.clk_y})}continue}var x=c.fieldValue(f,true);if(x&&x.constructor==Array){for(var h=0,d=x.length;h<d;h++){u.push({name:g,value:x[h]})}}else{if(x!==null&&typeof x!="undefined"){u.push({name:g,value:x})}}}if(!w&&e.clk){var p=c(e.clk),r=p[0],g=r.name;if(g&&!r.disabled&&r.type=="image"){u.push({name:g,value:p.val()});u.push({name:g+".x",value:e.clk_x},{name:g+".y",value:e.clk_y})}}return u};c.fn.formSerialize=function(d){return c.param(this.formToArray(d))};c.fn.fieldSerialize=function(e){var d=[];this.each(function(){var j=this.name;if(!j){return}var g=c.fieldValue(this,e);if(g&&g.constructor==Array){for(var h=0,f=g.length;h<f;h++){d.push({name:j,value:g[h]})}}else{if(g!==null&&typeof g!="undefined"){d.push({name:this.name,value:g})}}});return c.param(d)};c.fn.fieldValue=function(j){for(var h=[],f=0,d=this.length;f<d;f++){var g=this[f];var e=c.fieldValue(g,j);if(e===null||typeof e=="undefined"||(e.constructor==Array&&!e.length)){continue}e.constructor==Array?c.merge(h,e):h.push(e)}return h};c.fieldValue=function(d,l){var f=d.name,u=d.type,w=d.tagName.toLowerCase();if(typeof l=="undefined"){l=true}if(l&&(!f||d.disabled||u=="reset"||u=="button"||(u=="checkbox"||u=="radio")&&!d.checked||(u=="submit"||u=="image")&&d.form&&d.form.clk!=d||w=="select"&&d.selectedIndex==-1)){return null}if(w=="select"){var o=d.selectedIndex;if(o<0){return null}var q=[],e=d.options;var h=(u=="select-one");var p=(h?o+1:e.length);for(var g=(h?o:0);g<p;g++){var j=e[g];if(j.selected){var r=j.value;if(!r){r=(j.attributes&&j.attributes.value&&!(j.attributes.value.specified))?j.text:j.value}if(h){return r}q.push(r)}}return q}return d.value};c.fn.clearForm=function(){return this.each(function(){c("input,select,textarea",this).clearFields()})};c.fn.clearFields=c.fn.clearInputs=function(){return this.each(function(){var e=this.type,d=this.tagName.toLowerCase();if(e=="text"||e=="password"||d=="textarea"){this.value=""}else{if(e=="checkbox"||e=="radio"){this.checked=false}else{if(d=="select"){this.selectedIndex=-1}}}})};c.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};c.fn.enable=function(d){if(d==undefined){d=true}return this.each(function(){this.disabled=!d})};c.fn.selected=function(d){if(d==undefined){d=true}return this.each(function(){var e=this.type;if(e=="checkbox"||e=="radio"){this.checked=d}else{if(this.tagName.toLowerCase()=="option"){var f=c(this).parent("select");if(d&&f[0]&&f[0].type=="select-one"){f.find("option").selected(false)}this.selected=d}}})};function a(){if(c.fn.ajaxSubmit.debug&&window.console&&window.console.log){window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}}})(jQuery);(function(M,o,aa){var N={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,fastIframe:true,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,returnFocus:true,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true,top:false,bottom:false,left:false,right:false,fixed:false,data:false},B="colorbox",W="cbox",v=W+"Element",Z=W+"_open",f=W+"_load",Y=W+"_complete",y=W+"_cleanup",af=W+"_closed",l=W+"_purge",z=M.browser.msie&&!M.support.opacity,ah=z&&M.browser.version<7,ae=W+"_IE6",U,ai,aj,e,K,u,c,T,d,ad,Q,n,j,r,x,ab,w,V,D,F,ag,ak,p,h,a,A,L,q,H,ac,P,J,E,O;function S(an,al,am){am=o.createElement("div");if(an){am.id=W+an}am.style.cssText=al||"";return M(am)}function R(al,am){return Math.round((/%/.test(al)?((am==="x"?ad.width():ad.height())/100):1)*parseInt(al,10))}function G(al){return ag.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(al)}function X(al){ag=M.extend({},M.data(A,B));for(al in ag){if(M.isFunction(ag[al])&&al.substring(0,2)!=="on"){ag[al]=ag[al].call(A)}}ag.rel=ag.rel||A.rel||"nofollow";ag.href=ag.href||M(A).attr("href");ag.title=ag.title||A.title;if(typeof ag.href==="string"){ag.href=M.trim(ag.href)}}function I(al,am){if(am){am.call(A)}M.event.trigger(al)}function C(){var am,ao=W+"Slideshow_",ap="click."+W,aq,an,al;if(ag.slideshow&&d[1]){aq=function(){ab.text(ag.slideshowStop).unbind(ap).bind(Y,function(){if(L<d.length-1||ag.loop){am=setTimeout(O.next,ag.slideshowSpeed)}}).bind(f,function(){clearTimeout(am)}).one(ap+" "+y,an);ai.removeClass(ao+"off").addClass(ao+"on");am=setTimeout(O.next,ag.slideshowSpeed)};an=function(){clearTimeout(am);ab.text(ag.slideshowStart).unbind([Y,f,y,ap].join(" ")).one(ap,aq);ai.removeClass(ao+"on").addClass(ao+"off")};if(ag.slideshowAuto){aq()}else{an()}}else{ai.removeClass(ao+"off "+ao+"on")}}function g(am){if(!P){A=am;X();d=M(A);L=0;if(ag.rel!=="nofollow"){d=M("."+v).filter(function(){var an=M.data(this,B).rel||this.rel;return(an===ag.rel)});L=d.index(A);if(L===-1){d=d.add(A);L=d.length-1}}if(!H){H=ac=true;ai.show();if(ag.returnFocus){try{A.blur();M(A).one(af,function(){try{this.focus()}catch(an){}})}catch(al){}}U.css({opacity:+ag.opacity,cursor:ag.overlayClose?"pointer":"auto"}).show();ag.w=R(ag.initialWidth,"x");ag.h=R(ag.initialHeight,"y");O.position();if(ah){ad.bind("resize."+ae+" scroll."+ae,function(){U.css({width:ad.width(),height:ad.height(),top:ad.scrollTop(),left:ad.scrollLeft()})}).trigger("resize."+ae)}I(Z,ag.onOpen);F.add(r).hide();D.html(ag.close).show()}O.load(true)}}O=M.fn[B]=M[B]=function(al,an){var am=this;al=al||{};if(!am[0]){if(am.selector){return am}am=M("<a/>");al.open=true}if(an){al.onComplete=an}am.each(function(){M.data(this,B,M.extend({},M.data(this,B)||N,al));M(this).addClass(v)});if((M.isFunction(al.open)&&al.open.call(am))||al.open){g(am[0])}return am};O.init=function(){ad=M(aa);ai=S().attr({id:B,"class":z?W+(ah?"IE6":"IE"):""});U=S("Overlay",ah?"position:absolute":"").hide();aj=S("Wrapper");e=S("Content").append(Q=S("LoadedContent","width:0; height:0; overflow:hidden"),j=S("LoadingOverlay").add(S("LoadingGraphic")),r=S("Title"),x=S("Current"),w=S("Next"),V=S("Previous"),ab=S("Slideshow").bind(Z,C),D=S("Close"));aj.append(S().append(S("TopLeft"),K=S("TopCenter"),S("TopRight")),S(false,"clear:left").append(u=S("MiddleLeft"),e,c=S("MiddleRight")),S(false,"clear:left").append(S("BottomLeft"),T=S("BottomCenter"),S("BottomRight"))).children().children().css({"float":"left"});n=S(false,"position:absolute; width:9999px; visibility:hidden; display:none");M("body").prepend(U,ai.append(aj,n));e.children().hover(function(){M(this).addClass("hover")},function(){M(this).removeClass("hover")}).addClass("hover");ak=K.height()+T.height()+e.outerHeight(true)-e.height();p=u.width()+c.width()+e.outerWidth(true)-e.width();h=Q.outerHeight(true);a=Q.outerWidth(true);ai.css({"padding-bottom":ak,"padding-right":p}).hide();w.click(function(){O.next()});V.click(function(){O.prev()});D.click(function(){O.close()});F=w.add(V).add(x).add(ab);e.children().removeClass("hover");U.click(function(){if(ag.overlayClose){O.close()}});M(o).bind("keydown."+W,function(am){var al=am.keyCode;if(H&&ag.escKey&&al===27){am.preventDefault();O.close()}if(H&&ag.arrowKey&&d[1]){if(al===37){am.preventDefault();V.click()}else{if(al===39){am.preventDefault();w.click()}}}})};O.remove=function(){ai.add(U).remove();M("."+v).removeData(B).removeClass(v)};O.position=function(am,al){var ao=0,an=0;ad.unbind("resize."+W);ai.hide();if(ag.fixed&&!ah){ai.css({position:"fixed"})}else{ao=ad.scrollTop();an=ad.scrollLeft();ai.css({position:"absolute"})}if(ag.right!==false){an+=Math.max(ad.width()-ag.w-a-p-R(ag.right,"x"),0)}else{if(ag.left!==false){an+=R(ag.left,"x")}else{an+=Math.round(Math.max(ad.width()-ag.w-a-p,0)/2)}}if(ag.bottom!==false){ao+=Math.max(o.documentElement.clientHeight-ag.h-h-ak-R(ag.bottom,"y"),0)}else{if(ag.top!==false){ao+=R(ag.top,"y")}else{ao+=Math.round(Math.max(o.documentElement.clientHeight-ag.h-h-ak,0)/2)}}ai.show();am=(ai.width()===ag.w+a&&ai.height()===ag.h+h)?0:am||0;aj[0].style.width=aj[0].style.height="9999px";function ap(aq){K[0].style.width=T[0].style.width=e[0].style.width=aq.style.width;j[0].style.height=j[1].style.height=e[0].style.height=u[0].style.height=c[0].style.height=aq.style.height}ai.dequeue().animate({width:ag.w+a,height:ag.h+h,top:ao,left:an},{duration:am,complete:function(){ap(this);ac=false;aj[0].style.width=(ag.w+a+p)+"px";aj[0].style.height=(ag.h+h+ak)+"px";if(al){al()}setTimeout(function(){ad.bind("resize."+W,O.position)},1)},step:function(){ap(this)}})};O.resize=function(al){if(H){al=al||{};if(al.width){ag.w=R(al.width,"x")-a-p}if(al.innerWidth){ag.w=R(al.innerWidth,"x")}Q.css({width:ag.w});if(al.height){ag.h=R(al.height,"y")-h-ak}if(al.innerHeight){ag.h=R(al.innerHeight,"y")}if(!al.innerHeight&&!al.height){var am=Q.wrapInner("<div style='overflow:auto'></div>").children();ag.h=am.height();am.replaceWith(am.children())}Q.css({height:ag.h});O.position(ag.transition==="none"?0:ag.speed)}};O.prep=function(am){if(!H){return}var ap,an=ag.transition==="none"?0:ag.speed;Q.remove();Q=S("LoadedContent").append(am);function al(){ag.w=ag.w||Q.width();ag.w=ag.mw&&ag.mw<ag.w?ag.mw:ag.w;return ag.w}function ao(){ag.h=ag.h||Q.height();ag.h=ag.mh&&ag.mh<ag.h?ag.mh:ag.h;return ag.h}Q.hide().appendTo(n.show()).css({width:al(),overflow:ag.scrolling?"auto":"hidden"}).css({height:ao()}).prependTo(e);n.hide();M(q).css({"float":"none"});if(ah){M("select").not(ai.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(y,function(){this.style.visibility="inherit"})}ap=function(){var aw,ay,au,at,av=d.length,ar,aq;if(!H){return}function ax(){if(z){ai[0].style.removeAttribute("filter")}}aq=function(){clearTimeout(E);j.hide();I(Y,ag.onComplete)};if(z){if(q){Q.fadeIn(100)}}r.html(ag.title).add(Q).show();if(av>1){if(typeof ag.current==="string"){x.html(ag.current.replace("{current}",L+1).replace("{total}",av)).show()}w[(ag.loop||L<av-1)?"show":"hide"]().html(ag.next);V[(ag.loop||L)?"show":"hide"]().html(ag.previous);aw=L?d[L-1]:d[av-1];au=L<av-1?d[L+1]:d[0];if(ag.slideshow){ab.show()}if(ag.preloading){at=M.data(au,B).href||au.href;ay=M.data(aw,B).href||aw.href;at=M.isFunction(at)?at.call(au):at;ay=M.isFunction(ay)?ay.call(aw):ay;if(G(at)){M("<img/>")[0].src=at}if(G(ay)){M("<img/>")[0].src=ay}}}else{F.hide()}if(ag.iframe){ar=M("<iframe/>").addClass(W+"Iframe")[0];if(ag.fastIframe){aq()}else{M(ar).one("load",aq)}ar.name=W+(+new Date());ar.src=ag.href;if(!ag.scrolling){ar.scrolling="no"}if(z){ar.frameBorder=0;ar.allowTransparency="true"}M(ar).appendTo(Q).one(l,function(){ar.src="//about:blank"})}else{aq()}if(ag.transition==="fade"){ai.fadeTo(an,1,ax)}else{ax()}};if(ag.transition==="fade"){ai.fadeTo(an,0,function(){O.position(0,ap)})}else{O.position(an,ap)}};O.load=function(an){var am,ao,al=O.prep;ac=true;q=false;A=d[L];if(!an){X()}I(l);I(f,ag.onLoad);ag.h=ag.height?R(ag.height,"y")-h-ak:ag.innerHeight&&R(ag.innerHeight,"y");ag.w=ag.width?R(ag.width,"x")-a-p:ag.innerWidth&&R(ag.innerWidth,"x");ag.mw=ag.w;ag.mh=ag.h;if(ag.maxWidth){ag.mw=R(ag.maxWidth,"x")-a-p;ag.mw=ag.w&&ag.w<ag.mw?ag.w:ag.mw}if(ag.maxHeight){ag.mh=R(ag.maxHeight,"y")-h-ak;ag.mh=ag.h&&ag.h<ag.mh?ag.h:ag.mh}am=ag.href;E=setTimeout(function(){j.show()},100);if(ag.inline){S().hide().insertBefore(M(am)[0]).one(l,function(){M(this).replaceWith(Q.children())});al(M(am))}else{if(ag.iframe){al(" ")}else{if(ag.html){al(ag.html)}else{if(G(am)){M(q=new Image()).addClass(W+"Photo").error(function(){ag.title=false;al(S("Error").text("This image could not be loaded"))}).load(function(){var ap;q.onload=null;if(ag.scalePhotos){ao=function(){q.height-=q.height*ap;q.width-=q.width*ap};if(ag.mw&&q.width>ag.mw){ap=(q.width-ag.mw)/q.width;ao()}if(ag.mh&&q.height>ag.mh){ap=(q.height-ag.mh)/q.height;ao()}}if(ag.h){q.style.marginTop=Math.max(ag.h-q.height,0)/2+"px"}if(d[1]&&(L<d.length-1||ag.loop)){q.style.cursor="pointer";q.onclick=function(){O.next()}}if(z){q.style.msInterpolationMode="bicubic"}setTimeout(function(){al(q)},1)});setTimeout(function(){q.src=am},1)}else{if(am){n.load(am,ag.data,function(aq,ap,ar){al(ap==="error"?S("Error").text("Request unsuccessful: "+ar.statusText):M(this).contents())})}}}}}};O.next=function(){if(!ac&&d[1]&&(L<d.length-1||ag.loop)){L=L<d.length-1?L+1:0;O.load()}};O.prev=function(){if(!ac&&d[1]&&(L||ag.loop)){L=L?L-1:d.length-1;O.load()}};O.close=function(){if(H&&!P){P=true;H=false;I(y,ag.onCleanup);ad.unbind("."+W+" ."+ae);U.fadeTo(200,0);ai.stop().fadeTo(300,0,function(){ai.add(U).css({opacity:1,cursor:"auto"}).hide();I(l);Q.remove();setTimeout(function(){P=false;I(af,ag.onClosed)},1)})}};O.element=function(){return M(A)};O.settings=N;J=function(al){if(!((al.button!==0&&typeof al.button!=="undefined")||al.ctrlKey||al.shiftKey||al.altKey)){al.preventDefault();g(this)}};if(M.fn.delegate){M(o).delegate("."+v,"click",J)}else{M("."+v).live("click",J)}M(O.init)}(jQuery,document,this));(function(a){a.fn.showPassword=function(e,c){var d=a(this);a.fn.showPassword.checker=function(g,f){a('input[id="'+g+'"]').click(function(){if(a(this).attr("checked")){a("input."+f).val(d.val()).attr("id",d.attr("id")).attr("name",d.attr("name"));a("input."+f).css("display","inline");d.css("display","none").removeAttr("id").removeAttr("name")}else{d.val(a("input."+f).val()).attr("id",a("input."+f).attr("id")).attr("name",a("input."+f).attr("name"));d.css("display","inline");a("input."+f).css("display","none").removeAttr("id").removeAttr("name")}})};return this.each(function(){var n={classname:"class",name:"password-input",text:"Show Password"};var h="spcb_"+parseInt(Math.random()*1000);var g=h.replace("spcb_","spin_");if(d.attr("class")!==""){var l=g+" "+d.attr("class")}else{var l=g}if(typeof e=="object"){a.extend(n,e)}if(typeof c=="object"){a.extend(n,c)}var f=n.name;if(n.classname==""){theclass=""}else{theclass=' class="'+n.clasname+'"'}a(this).before('<input type="text" value="" class="'+l+'" style="display: none;" />');var j="<label><input"+theclass+' type="checkbox" id="'+h+'" name="'+f+'" value="sp" />'+n.text+"</label>";if(e=="object"||typeof e=="undefined"){a(this).after(j)}else{a(e).html(j)}a.fn.showPassword.checker(h,g);return this})}})(jQuery);
/*
 * jQuery blockUI plugin
 * Version 2.33 (29-MAR-2010)
 * @requires jQuery v1.2.3 or later
 *
 * Examples at: http://malsup.com/jquery/block/
 * Copyright (c) 2007-2008 M. Alsup
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Thanks to Amir-Hossein Sobhi for some excellent contributions!
 */
(function(l){if(/1\.(0|1|2)\.(0|1|2)/.test(l.fn.jquery)||/^1.1/.test(l.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later!  You are using v"+l.fn.jquery);return}l.fn._fadeIn=l.fn.fadeIn;var d=function(){};var n=document.documentMode||0;var f=l.browser.msie&&((l.browser.version<8&&!n)||n<8);var g=l.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!n;l.blockUI=function(v){e(window,v)};l.unblockUI=function(v){j(window,v)};l.growlUI=function(z,x,y,v){var w=l('<div class="growlUI"></div>');if(z){w.append("<h1>"+z+"</h1>")}if(x){w.append("<h2>"+x+"</h2>")}if(y==undefined){y=3000}l.blockUI({message:w,fadeIn:700,fadeOut:1000,centerY:false,timeout:y,showOverlay:false,onUnblock:v,css:l.blockUI.defaults.growlCSS})};l.fn.block=function(v){return this.unblock({fadeOut:0}).each(function(){if(l.css(this,"position")=="static"){this.style.position="relative"}if(l.browser.msie){this.style.zoom=1}e(this,v)})};l.fn.unblock=function(v){return this.each(function(){j(this,v)})};l.blockUI.version=2.33;l.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:true,theme:false,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:0.6,cursor:"wait"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:0.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:false,baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,applyPlatformOpacityRules:true,onBlock:null,onUnblock:null,quirksmodeOffsetHack:4};var c=null;var h=[];function e(x,J){var E=(x==window);var B=J&&J.message!==undefined?J.message:undefined;J=l.extend({},l.blockUI.defaults,J||{});J.overlayCSS=l.extend({},l.blockUI.defaults.overlayCSS,J.overlayCSS||{});var G=l.extend({},l.blockUI.defaults.css,J.css||{});var R=l.extend({},l.blockUI.defaults.themedCSS,J.themedCSS||{});B=B===undefined?J.message:B;if(E&&c){j(window,{fadeOut:0})}if(B&&typeof B!="string"&&(B.parentNode||B.jquery)){var M=B.jquery?B[0]:B;var T={};l(x).data("blockUI.history",T);T.el=M;T.parent=M.parentNode;T.display=M.style.display;T.position=M.style.position;if(T.parent){T.parent.removeChild(M)}}var F=J.baseZ;var Q=(l.browser.msie||J.forceIframe)?l('<iframe class="blockUI" style="z-index:'+(F++)+';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+J.iframeSrc+'"></iframe>'):l('<div class="blockUI" style="display:none"></div>');var P=l('<div class="blockUI blockOverlay" style="z-index:'+(F++)+';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');var O,K;if(J.theme&&E){K='<div class="blockUI blockMsg blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+F+';display:none;position:fixed"><div class="ui-widget-header ui-dialog-titlebar blockTitle">'+(J.title||"&nbsp;")+'</div><div class="ui-widget-content ui-dialog-content"></div></div>'}else{if(J.theme){K='<div class="blockUI blockMsg blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+F+';display:none;position:absolute"><div class="ui-widget-header ui-dialog-titlebar blockTitle">'+(J.title||"&nbsp;")+'</div><div class="ui-widget-content ui-dialog-content"></div></div>'}else{if(E){K='<div class="blockUI blockMsg blockPage" style="z-index:'+F+';display:none;position:fixed"></div>'}else{K='<div class="blockUI blockMsg blockElement" style="z-index:'+F+';display:none;position:absolute"></div>'}}}O=l(K);if(B){if(J.theme){O.css(R);O.addClass("ui-widget-content")}else{O.css(G)}}if(!J.applyPlatformOpacityRules||!(l.browser.mozilla&&/Linux/.test(navigator.platform))){P.css(J.overlayCSS)}P.css("position",E?"fixed":"absolute");if(l.browser.msie||J.forceIframe){Q.css("opacity",0)}var D=[Q,P,O],S=E?l("body"):l(x);l.each(D,function(){this.appendTo(S)});if(J.theme&&J.draggable&&l.fn.draggable){O.draggable({handle:".ui-dialog-titlebar",cancel:"li"})}var A=f&&(!l.boxModel||l("object,embed",E?null:x).length>0);if(g||A){if(E&&J.allowBodyStretch&&l.boxModel){l("html,body").css("height","100%")}if((g||!l.boxModel)&&!E){var I=q(x,"borderTopWidth"),N=q(x,"borderLeftWidth");var C=I?"(0 - "+I+")":0;var H=N?"(0 - "+N+")":0}l.each([Q,P,O],function(z,X){var U=X[0].style;U.position="absolute";if(z<2){E?U.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+J.quirksmodeOffsetHack+') + "px"'):U.setExpression("height",'this.parentNode.offsetHeight + "px"');E?U.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):U.setExpression("width",'this.parentNode.offsetWidth + "px"');if(H){U.setExpression("left",H)}if(C){U.setExpression("top",C)}}else{if(J.centerY){if(E){U.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}U.marginTop=0}else{if(!J.centerY&&E){var V=(J.css&&J.css.top)?parseInt(J.css.top):0;var W="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+V+') + "px"';U.setExpression("top",W)}}}})}if(B){if(J.theme){O.find(".ui-widget-content").append(B)}else{O.append(B)}if(B.jquery||B.nodeType){l(B).show()}}if((l.browser.msie||J.forceIframe)&&J.showOverlay){Q.show()}if(J.fadeIn){var L=J.onBlock?J.onBlock:d;var w=(J.showOverlay&&!B)?L:d;var v=B?L:d;if(J.showOverlay){P._fadeIn(J.fadeIn,w)}if(B){O._fadeIn(J.fadeIn,v)}}else{if(J.showOverlay){P.show()}if(B){O.show()}if(J.onBlock){J.onBlock()}}p(1,x,J);if(E){c=O[0];h=l(":input:enabled:visible",c);if(J.focusInput){setTimeout(u,20)}}else{a(O[0],J.centerX,J.centerY)}if(J.timeout){var y=setTimeout(function(){E?l.unblockUI(J):l(x).unblock(J)},J.timeout);l(x).data("blockUI.timeout",y)}}function j(y,z){var x=(y==window);var w=l(y);var A=w.data("blockUI.history");var B=w.data("blockUI.timeout");if(B){clearTimeout(B);w.removeData("blockUI.timeout")}z=l.extend({},l.blockUI.defaults,z||{});p(0,y,z);var v;if(x){v=l("body").children().filter(".blockUI").add("body > .blockUI")}else{v=l(".blockUI",y)}if(x){c=h=null}if(z.fadeOut){v.fadeOut(z.fadeOut);setTimeout(function(){o(v,A,z,y)},z.fadeOut)}else{o(v,A,z,y)}}function o(v,y,x,w){v.each(function(z,A){if(this.parentNode){this.parentNode.removeChild(this)}});if(y&&y.el){y.el.style.display=y.display;y.el.style.position=y.position;if(y.parent){y.parent.appendChild(y.el)}l(w).removeData("blockUI.history")}if(typeof x.onUnblock=="function"){x.onUnblock(w,x)}}function p(v,z,A){var y=z==window,x=l(z);if(!v&&(y&&!c||!y&&!x.data("blockUI.isBlocked"))){return}if(!y){x.data("blockUI.isBlocked",v)}if(!A.bindEvents||(v&&!A.showOverlay)){return}var w="mousedown mouseup keydown keypress";v?l(document).bind(w,A,r):l(document).unbind(w,r)}function r(y){if(y.keyCode&&y.keyCode==9){if(c&&y.data.constrainTabKey){var x=h;var w=!y.shiftKey&&y.target==x[x.length-1];var v=y.shiftKey&&y.target==x[0];if(w||v){setTimeout(function(){u(v)},10);return false}}}if(l(y.target).parents("div.blockMsg").length>0){return true}return l(y.target).parents().children().filter("div.blockUI").length==0}function u(v){if(!h){return}var w=h[v===true?h.length-1:0];if(w){w.focus()}}function a(B,v,D){var C=B.parentNode,A=B.style;var w=((C.offsetWidth-B.offsetWidth)/2)-q(C,"borderLeftWidth");var z=((C.offsetHeight-B.offsetHeight)/2)-q(C,"borderTopWidth");if(v){A.left=w>0?(w+"px"):"0"}if(D){A.top=z>0?(z+"px"):"0"}}function q(v,w){return parseInt(l.css(v,w))||0}})(jQuery);(function(a){a.fn.tokenInput=function(d,c){var e=a.extend({url:d,hintText:"Type in a search term",noResultsText:"No results",searchingText:"Searching...",searchDelay:300,minChars:1,tokenLimit:null,jsonContainer:null,method:"GET",contentType:"json",queryParam:"q",onResult:null},c);e.classes=a.extend({tokenList:"token-input-list",token:"token-input-token",tokenDelete:"token-input-delete-token",selectedToken:"token-input-selected-token",highlightedToken:"token-input-highlighted-token",dropdown:"token-input-dropdown",dropdownItem:"token-input-dropdown-item",dropdownItem2:"token-input-dropdown-item2",selectedDropdownItem:"token-input-selected-dropdown-item",inputToken:"token-input-input-token"},c.classes);return this.each(function(){var f=new a.TokenList(this,e)})};a.TokenList=function(y,I){var A={BEFORE:0,AFTER:1,END:2};var d={BACKSPACE:8,TAB:9,RETURN:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,COMMA:188};var f=[];var n=0;var w;var E=a('<input type="text">').css({outline:"none"}).focus(function(){if(I.tokenLimit==null||I.tokenLimit!=n){L()}}).blur(function(){z()}).keydown(function(O){var Q;var N;switch(O.keyCode){case d.LEFT:case d.RIGHT:case d.UP:case d.DOWN:if(!a(this).val()){Q=v.prev();N=v.next();if((Q.length&&Q.get(0)===o)||(N.length&&N.get(0)===o)){if(O.keyCode==d.LEFT||O.keyCode==d.UP){K(a(o),A.BEFORE)}else{K(a(o),A.AFTER)}}else{if((O.keyCode==d.LEFT||O.keyCode==d.UP)&&Q.length){F(a(Q.get(0)))}else{if((O.keyCode==d.RIGHT||O.keyCode==d.DOWN)&&N.length){F(a(N.get(0)))}}}}else{var P=null;if(O.keyCode==d.DOWN||O.keyCode==d.RIGHT){P=a(e).next()}else{P=a(e).prev()}if(P.length){p(P)}return false}break;case d.BACKSPACE:Q=v.prev();if(!a(this).val().length){if(o){l(a(o))}else{if(Q.length){F(a(Q.get(0)))}}return false}else{if(a(this).val().length==1){z()}else{setTimeout(function(){H(false)},5)}}break;case d.TAB:case d.RETURN:case d.COMMA:if(e){c(a(e));return false}break;case d.ESC:z();return true;default:if(j(O.keyCode)){setTimeout(function(){H(false)},5)}break}});var M=a(y).hide().focus(function(){E.focus()}).blur(function(){E.blur()});var o=null;var e=null;var g=a("<ul />").addClass(I.classes.tokenList).insertAfter(M).click(function(O){var N=r(O,"li");if(N&&N.get(0)!=v.get(0)){q(N);return false}else{E.focus();if(o){K(a(o),A.END)}}}).mouseover(function(O){var N=r(O,"li");if(N&&o!==this){N.addClass(I.classes.highlightedToken)}}).mouseout(function(O){var N=r(O,"li");if(N&&o!==this){N.removeClass(I.classes.highlightedToken)}}).mousedown(function(O){var N=r(O,"li");if(N){return false}});var G=a("<div>").addClass(I.classes.dropdown).insertAfter(g).hide();var v=a("<li />").addClass(I.classes.inputToken).appendTo(g).append(E);J();function J(){li_data=I.prePopulate;if(li_data&&li_data.length){for(var N in li_data){var P=a("<li><p>"+li_data[N].name+"</p> </li>").addClass(I.classes.token).insertBefore(v);a("<span>x</span>").addClass(I.classes.tokenDelete).appendTo(P).click(function(){l(a(this).parent());return false});a.data(P.get(0),"tokeninput",{id:li_data[N].id,name:li_data[N].name});E.val("").focus();z();var O=li_data[N].id+",";M.val(M.val()+O)}}}function j(N){if((N>=48&&N<=90)||(N>=96&&N<=111)||(N>=186&&N<=192)||(N>=219&&N<=222)){return true}else{return false}}function r(O,Q){var P=a(O.target);var N=null;if(P.is(Q)){N=P}else{if(P.parent(Q).length){N=P.parent(Q+":first")}}return N}function C(P,N){var O=a("<li><p>"+N+"</p> </li>").addClass(I.classes.token).insertBefore(v);a("<span>x</span>").addClass(I.classes.tokenDelete).appendTo(O).click(function(){l(a(this).parent());return false});a.data(O.get(0),"tokeninput",{id:P,name:N});return O}function c(N){var Q=a.data(N.get(0),"tokeninput");var P=C(Q.id,Q.name);E.val("").focus();z();var O=Q.id+",";M.val(M.val()+O);n++;if(I.tokenLimit!=null&&I.tokenLimit>=n){E.hide();z()}}function F(N){N.addClass(I.classes.selectedToken);o=N.get(0);E.val("");z()}function K(O,N){O.removeClass(I.classes.selectedToken);o=null;if(N==A.BEFORE){v.insertBefore(O)}else{if(N==A.AFTER){v.insertAfter(O)}else{v.appendTo(g)}}E.focus()}function q(N){if(o==N.get(0)){K(N,A.END)}else{if(o){K(a(o),A.END)}F(N)}}function l(O){var P=a.data(O.get(0),"tokeninput");O.remove();o=null;E.focus();var Q=M.val();var R=Q.indexOf(P.id+",");var N=Q.indexOf(",",R)+1;if(N>=Q.length){M.val(Q.slice(0,R))}else{M.val(Q.slice(0,R)+Q.slice(N,Q.length))}n--;if(I.tokenLimit!=null){E.show().val("").focus()}}function z(){G.hide().empty();e=null}function h(){G.html("<p>"+I.searchingText+"</p>").show()}function L(){G.html("<p>"+I.hintText+"</p>").show()}function x(O,N){return O.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+N+")(?![^<>]*>)(?![^&;]+;)","gi"),"<b>$1</b>")}function D(Q,O){if(O.length){G.empty();var P=a("<ul>").appendTo(G).mouseover(function(S){p(r(S,"li"))}).mousedown(function(S){c(r(S,"li"));return false}).hide();for(var N in O){if(O.hasOwnProperty(N)){var R=a("<li>"+x(O[N].name,Q)+"</li>").appendTo(P);if(N%2){R.addClass(I.classes.dropdownItem)}else{R.addClass(I.classes.dropdownItem2)}if(N==0){p(R)}a.data(R.get(0),"tokeninput",{id:O[N].id,name:O[N].name})}}G.show();P.slideDown("fast")}else{G.html("<p>"+I.noResultsText+"</p>").show()}}function p(N){if(N){if(e){u(a(e))}N.addClass(I.classes.selectedDropdownItem);e=N.get(0)}}function u(N){N.removeClass(I.classes.selectedDropdownItem);e=null}function H(N){var O=E.val().toLowerCase();if(O&&O.length){if(o){K(a(o),A.AFTER)}if(O.length>=I.minChars){h();if(N){B(O)}else{clearTimeout(w);w=setTimeout(function(){B(O)},I.searchDelay)}}else{z()}}}function B(N){var P=I.url.indexOf("?")<0?"?":"&";var O=function(Q){if(a.isFunction(I.onResult)){Q=I.onResult.call(this,Q)}D(N,I.jsonContainer?Q[I.jsonContainer]:Q)};if(I.method=="POST"){a.post(I.url+P+I.queryParam+"="+N,{},O,I.contentType)}else{a.get(I.url+P+I.queryParam+"="+N,{},O,I.contentType)}}}})(jQuery);(function(c){c.fn.superfish=function(n){var g=c.fn.superfish,l=g.c,f=c(['<span class="',l.arrowClass,'"> &#187;</span>'].join("")),j=function(){var o=c(this),p=d(o);clearTimeout(p.sfTimer);o.showSuperfishUl().siblings().hideSuperfishUl()},e=function(){var p=c(this),r=d(p),q=g.op;clearTimeout(r.sfTimer);r.sfTimer=setTimeout(function(){q.retainPath=(c.inArray(p[0],q.$path)>-1);p.hideSuperfishUl();if(q.$path.length&&p.parents(["li.",q.hoverClass].join("")).length<1){j.call(q.$path)}},q.delay)},d=function(o){var p=o.parents(["ul.",l.menuClass,":first"].join(""))[0];g.op=g.o[p.serial];return p},h=function(o){o.addClass(l.anchorClass).append(f.clone())};return this.each(function(){var p=this.serial=g.o.length;var r=c.extend({},g.defaults,n);r.$path=c("li."+r.pathClass,this).slice(0,r.pathLevels).each(function(){c(this).addClass([r.hoverClass,l.bcClass].join(" ")).filter("li:has(ul)").removeClass(r.pathClass)});g.o[p]=g.op=r;c("li:has(ul)",this)[(c.fn.hoverIntent&&!r.disableHI)?"hoverIntent":"hover"](j,e).each(function(){if(r.autoArrows){h(c(">a:first-child",this))}}).not("."+l.bcClass).hideSuperfishUl();var q=c("a",this);q.each(function(o){var u=q.eq(o).parents("li");q.eq(o).focus(function(){j.call(u)}).blur(function(){e.call(u)})});r.onInit.call(this)}).each(function(){var o=[l.menuClass];if(g.op.dropShadows&&!(c.browser.msie&&c.browser.version<7)){o.push(l.shadowClass)}c(this).addClass(o.join(" "))})};var a=c.fn.superfish;a.o=[];a.op={};a.IE7fix=function(){var d=a.op;if(c.browser.msie&&c.browser.version>6&&d.dropShadows&&d.animation.opacity!=undefined){this.toggleClass(a.c.shadowClass+"-off")}};a.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};a.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};c.fn.extend({hideSuperfishUl:function(){var f=a.op,e=(f.retainPath===true)?f.$path:"";f.retainPath=false;var d=c(["li.",f.hoverClass].join(""),this).add(this).not(e).removeClass(f.hoverClass).find(">ul").hide().css("visibility","hidden");f.onHide.call(d);return this},showSuperfishUl:function(){var f=a.op,e=a.c.shadowClass+"-off",d=this.addClass(f.hoverClass).find(">ul:hidden").css("visibility","visible");a.IE7fix.call(d);f.onBeforeShow.call(d);d.animate(f.animation,f.speed,function(){a.IE7fix.call(d);f.onShow.call(d)});return this}})})(jQuery);(function(a){a.fn.extend({autocomplete:function(c,d){var e=typeof c=="string";d=a.extend({},a.Autocompleter.defaults,{url:e?c:null,data:e?null:c,delay:e?a.Autocompleter.defaults.delay:10,max:d&&!d.scroll?10:150},d);d.highlight=d.highlight||function(f){return f};d.formatMatch=d.formatMatch||d.formatItem;return this.each(function(){new a.Autocompleter(this,d)})},result:function(c){return this.bind("result",c)},search:function(c){return this.trigger("search",[c])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(c){return this.trigger("setOptions",[c])},unautocomplete:function(){return this.trigger("unautocomplete")}});a.Autocompleter=function(p,h){var d={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var c=a(p).attr("autocomplete","off").addClass(h.inputClass);var n;var v="";var q=a.Autocompleter.Cache(h);var f=0;var A;var D={mouseDownOnSelect:false};var x=a.Autocompleter.Select(h,p,e,D);var C;a.browser.opera&&a(p.form).bind("submit.autocomplete",function(){if(C){C=false;return false}});c.bind((a.browser.opera?"keypress":"keydown")+".autocomplete",function(E){A=E.keyCode;switch(E.keyCode){case d.UP:E.preventDefault();if(x.visible()){x.prev()}else{z(0,true)}break;case d.DOWN:E.preventDefault();if(x.visible()){x.next()}else{z(0,true)}break;case d.PAGEUP:E.preventDefault();if(x.visible()){x.pageUp()}else{z(0,true)}break;case d.PAGEDOWN:E.preventDefault();if(x.visible()){x.pageDown()}else{z(0,true)}break;case h.multiple&&a.trim(h.multipleSeparator)==","&&d.COMMA:case d.TAB:case d.RETURN:if(e()){E.preventDefault();C=true;return false}break;case d.ESC:x.hide();break;default:clearTimeout(n);n=setTimeout(z,h.delay);break}}).focus(function(){f++;if(f++>1&&!x.visible()){z(0,true)}}).blur(function(){f=0;if(!D.mouseDownOnSelect){y()}}).click(function(){if(f++>1&&!x.visible()){z(0,true)}}).bind("search",function(){var E=(arguments.length>1)?arguments[1]:null;function F(J,I){var G;if(I&&I.length){for(var H=0;H<I.length;H++){if(I[H].result.toLowerCase()==J.toLowerCase()){G=I[H];break}}}if(typeof E=="function"){E(G)}else{c.trigger("result",G&&[G.data,G.value])}}a.each(j(c.val()),function(G,H){g(H,F,F)})}).bind("flushCache",function(){q.flush()}).bind("setOptions",function(){a.extend(h,arguments[1]);if("data" in arguments[1]){q.populate()}}).bind("unautocomplete",function(){x.unbind();c.unbind();a(p.form).unbind(".autocomplete")});function e(){var F=x.selected();if(!F){return false}var E=F.result;v=E;if(h.multiple){var G=j(c.val());if(G.length>1){E=G.slice(0,G.length-1).join(h.multipleSeparator)+h.multipleSeparator+E}E+=h.multipleSeparator}c.val(E);B();c.trigger("result",[F.data,F.value]);return true}function z(G,F){if(A==d.DEL){x.hide();return}var E=c.val();if(!F&&E==v){return}v=E;E=l(E);if(E.length>=h.minChars){c.addClass(h.loadingClass);if(!h.matchCase){E=E.toLowerCase()}g(E,o,B)}else{r();x.hide()}}function j(F){if(!F){return[""]}var G=F.split(h.multipleSeparator);var E=[];a.each(G,function(H,I){if(a.trim(I)){E[H]=a.trim(I)}});return E}function l(E){if(!h.multiple){return E}var F=j(E);return F[F.length-1]}function w(E,F){if(h.autoFill&&(l(c.val()).toLowerCase()==E.toLowerCase())&&A!=d.BACKSPACE){c.val(c.val()+F.substring(l(v).length));a.Autocompleter.Selection(p,v.length,v.length+F.length)}}function y(){clearTimeout(n);n=setTimeout(B,200)}function B(){var E=x.visible();x.hide();clearTimeout(n);r();if(h.mustMatch){c.search(function(F){if(!F){if(h.multiple){var G=j(c.val()).slice(0,-1);c.val(G.join(h.multipleSeparator)+(G.length?h.multipleSeparator:""))}else{c.val("")}}})}if(E){a.Autocompleter.Selection(p,p.value.length,p.value.length)}}function o(F,E){if(E&&E.length&&f){r();x.display(E,F);w(F,E[0].value);x.show()}else{B()}}function g(F,H,E){if(!h.matchCase){F=F.toLowerCase()}var G=q.load(F);if(G&&G.length){H(F,G)}else{if((typeof h.url=="string")&&(h.url.length>0)){var I={timestamp:+new Date()};a.each(h.extraParams,function(J,K){I[J]=typeof K=="function"?K():K});a.ajax({mode:"abort",port:"autocomplete"+p.name,dataType:h.dataType,url:h.url,data:a.extend({q:l(F),limit:h.max},I),success:function(K){var J=h.parse&&h.parse(K)||u(K);q.add(F,J);H(F,J)}})}else{x.emptyList();E(F)}}}function u(H){var E=[];var G=H.split("\n");for(var F=0;F<G.length;F++){var I=a.trim(G[F]);if(I){I=I.split("|");E[E.length]={data:I,value:I[0],result:h.formatResult&&h.formatResult(I,I[0])||I[0]}}}return E}function r(){c.removeClass(h.loadingClass)}};a.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(c){return c[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(d,c){return d.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+c.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:true,scrollHeight:180};a.Autocompleter.Cache=function(d){var g={};var e=0;function j(o,n){if(!d.matchCase){o=o.toLowerCase()}var l=o.indexOf(n);if(l==-1){return false}return l==0||d.matchContains}function h(n,l){if(e>d.cacheLength){c()}if(!g[n]){e++}g[n]=l}function f(){if(!d.data){return false}var n={},l=0;if(!d.url){d.cacheLength=1}n[""]=[];for(var p=0,o=d.data.length;p<o;p++){var u=d.data[p];u=(typeof u=="string")?[u]:u;var r=d.formatMatch(u,p+1,d.data.length);if(r===false){continue}var q=r.charAt(0).toLowerCase();if(!n[q]){n[q]=[]}var v={value:r,data:u,result:d.formatResult&&d.formatResult(u)||r};n[q].push(v);if(l++<d.max){n[""].push(v)}}a.each(n,function(w,x){d.cacheLength++;h(w,x)})}setTimeout(f,25);function c(){g={};e=0}return{flush:c,add:h,populate:f,load:function(p){if(!d.cacheLength||!e){return null}if(!d.url&&d.matchContains){var o=[];for(var l in g){if(l.length>0){var r=g[l];a.each(r,function(u,q){if(j(q.value,p)){o.push(q)}})}}return o}else{if(g[p]){return g[p]}else{if(d.matchSubset){for(var n=p.length-1;n>=d.minChars;n--){var r=g[p.substr(0,n)];if(r){var o=[];a.each(r,function(u,q){if(j(q.value,p)){o[o.length]=q}});return o}}}}}return null}}};a.Autocompleter.Select=function(f,n,p,v){var l={ACTIVE:"ac_over"};var o,g=-1,x,q="",y=true,d,u;function r(){if(!y){return}d=a("<div/>").hide().addClass(f.resultsClass).css("position","absolute").appendTo(document.body);u=a("<ul/>").appendTo(d).mouseover(function(z){if(w(z).nodeName&&w(z).nodeName.toUpperCase()=="LI"){g=a("li",u).removeClass(l.ACTIVE).index(w(z));a(w(z)).addClass(l.ACTIVE)}}).click(function(z){a(w(z)).addClass(l.ACTIVE);p();n.focus();return false}).mousedown(function(){v.mouseDownOnSelect=true}).mouseup(function(){v.mouseDownOnSelect=false});if(f.width>0){d.css("width",f.width)}y=false}function w(A){var z=A.target;while(z&&z.tagName!="LI"){z=z.parentNode}if(!z){return[]}return z}function j(z){o.slice(g,g+1).removeClass(l.ACTIVE);h(z);var B=o.slice(g,g+1).addClass(l.ACTIVE);if(f.scroll){var A=0;o.slice(0,g).each(function(){A+=this.offsetHeight});if((A+B[0].offsetHeight-u.scrollTop())>u[0].clientHeight){u.scrollTop(A+B[0].offsetHeight-u.innerHeight())}else{if(A<u.scrollTop()){u.scrollTop(A)}}}}function h(z){g+=z;if(g<0){g=o.size()-1}else{if(g>=o.size()){g=0}}}function c(z){return f.max&&f.max<z?f.max:z}function e(){u.empty();var A=c(x.length);for(var B=0;B<A;B++){if(!x[B]){continue}var C=f.formatItem(x[B].data,B+1,A,x[B].value,q);if(C===false){continue}var z=a("<li/>").html(f.highlight(C,q)).addClass(B%2==0?"ac_even":"ac_odd").appendTo(u)[0];a.data(z,"ac_data",x[B])}o=u.find("li");if(f.selectFirst){o.slice(0,1).addClass(l.ACTIVE);g=0}if(a.fn.bgiframe){u.bgiframe()}}return{display:function(A,z){r();x=A;q=z;e()},next:function(){j(1)},prev:function(){j(-1)},pageUp:function(){if(g!=0&&g-8<0){j(-g)}else{j(-8)}},pageDown:function(){if(g!=o.size()-1&&g+8>o.size()){j(o.size()-1-g)}else{j(8)}},hide:function(){d&&d.hide();o&&o.removeClass(l.ACTIVE);g=-1},visible:function(){return d&&d.is(":visible")},current:function(){return this.visible()&&(o.filter("."+l.ACTIVE)[0]||f.selectFirst&&o[0])},show:function(){var B=a(n).offset();d.css({width:typeof f.width=="string"||f.width>0?f.width:a(n).width(),top:B.top+n.offsetHeight,left:B.left}).show();if(f.scroll){u.scrollTop(0);u.css({maxHeight:f.scrollHeight,overflow:"auto"});if(a.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var z=0;o.each(function(){z+=this.offsetHeight});var A=z>f.scrollHeight;u.css("height",A?f.scrollHeight:z);if(!A){o.width(u.width()-parseInt(o.css("padding-left"))-parseInt(o.css("padding-right")))}}}},selected:function(){var z=o&&o.filter("."+l.ACTIVE).removeClass(l.ACTIVE);return z&&z.length&&a.data(z[0],"ac_data")},emptyList:function(){u&&u.empty()},unbind:function(){d&&d.remove()}}};a.Autocompleter.Selection=function(e,f,d){if(e.createTextRange){var c=e.createTextRange();c.collapse(true);c.moveStart("character",f);c.moveEnd("character",d);c.select()}else{if(e.setSelectionRange){e.setSelectionRange(f,d)}else{if(e.selectionStart){e.selectionStart=f;e.selectionEnd=d}}}e.focus()}})(jQuery);(function(a){a.fn.select_autocomplete=function(c){c=c||{};var d={minChars:0,width:310,matchContains:true,autoFill:false,formatItem:function(g,f,e){return g.name},formatMatch:function(g,f,e){return g.name},formatResult:function(e){return e.name}};c=a.extend(d,c);return this.each(function(){var f=a(this),e=[],g=a('<input type="text" class="text ignore" />');if(this.tagName.toLowerCase()!="select"){return}f.children("option").each(function(){var h=a(this);if(h.val()!=""){e.push({name:h.html(),value:h.val()})}});f.after(g);c.data=e;g.val(f.find("option[selected]").text());g.autocomplete(e,c);g.result(function(j,h,l){a(f.find("option[value="+h.value+"]")[0]).attr("selected",true)});f.hide()})}})(jQuery);(function(a){a.fn.listbuilder=function(c){if(!a("body").is("[role]")){a("body").attr("role","application")}return this.each(function(){var x=a(this),o=this;var h=a.extend({delimChar:/[,\n]/,width:x.width(),completeChars:[188,13],userDirections:"To add an item to this list, type a name and press enter or comma.",labelReplacement:false,url:null,delay:0,sort:true},c);var z=a('<ul class="listbuilder"></ul>').width(h.width),A=a('<ul class="listbuilder-suggestions clearfix"></ul>').hide(),B=a('<span class="listbuilder-wrapper"/>'),u=false,e,r=false,D=[],w={position:0,tag:""};x.hide();function n(F,E){if(h.delay){if(o.timer){clearTimeout(o.timer)}o.timer=setTimeout(function(){j(F,E)},h.delay)}else{j(F,E)}}function j(I,H){var G,F="",E=a(I);e=[];w={position:currentTags.length-1,tag:E.val()};if(w.tag){if(h.url){a.ajax({url:h.url,dataType:"json",data:{tag:w.tag},success:function(J){e=J;v(I,e)}})}else{for(G=0;G<userTags.length;G++){if(userTags[G].indexOf(w.tag)===0){e.push(userTags[G])}}v(I,e)}}else{y()}}function v(H,J){var G,F="",I={},E=a(H);for(G=0;G<currentTags.length;G++){I[a.trim(currentTags[G].toLowerCase())]=true}J=a.grep(J,function(K,L){return !I[K.toString().toLowerCase()]});if(h.sort){J=J.sort()}for(G=0;G<J.length;G++){F+='<li class="listbuilder-suggestion"><span class="listbuilder-suggestion-text">'+J[G]+"</span></li>"}if(F.length){A.html(F).show();u=!!(J.length)}else{y()}}function y(){A.empty().hide();e=[];u=false}function l(){var E=x.val();if(E==x.attr("title")&&x.is(".hint")){E=""}currentTags=E.split(h.delimChar);y()}function d(G){r=false;var E=G.type;var F=false;switch(G.keyCode){case 37:case 38:case 39:case 40:y();return true;case 224:case 17:case 16:case 18:return true;case 8:if(this.value==""){y();l();return true}else{E="keyup";F=true;n(this)}break;case 9:case 13:if(u){f(e[0]);r=true;return false}else{return true}case 27:y();l();return true;case 32:l();return true}if(E=="keyup"){switch(G.charCode){case 9:case 13:return true}if(F){l()}n(this,G.charCode)}}function f(E){return a('<li class="listbuilder-entry"><span class="listbuilder-entry-text">'+E+'</span><a href="#" class="listbuilder-entry-remove" title="Remove '+E+' from the list." role="button"></a></li>').hover(function(){a(this).addClass("listbuilder-entry-hover")},function(){a(this).removeClass("listbuilder-entry-hover")}).attr("unselectable","on").css("MozUserSelect","none")}function C(){z.empty();a.each(x.val().split(h.delimChar),function(){if(this!=""){z.append(f(this))}});z.append('<li class="listbuilder-entry-add"><input type="text" class="ignore" value="" title="'+h.userDirections+'" /></li>')}x.keyup(C);function q(){var E=[];z.find("span.listbuilder-entry-text").each(function(){E.push(a(this).text())});E.push(z.find("input").val());x.val(E.join(h.delimChar))}C();l();z.find("input").keydown(function(G){var F=a(this);a.each(h.completeChars,function(){if(G.keyCode==this&&F.val()!=""&&F.val()!=h.delimChar){var H=F.val().split(h.delimChar)[0];F.parent().before(f(H));F.val("")}if(G.keyCode==this){G.preventDefault()}});var E=F.parent().prev();if(F.val()==""&&G.keyCode==8){G.stopPropagation();if(E.is(".listbuilder-entry-selected")){E.remove()}else{E.addClass("listbuilder-entry-selected")}}else{E.removeClass("listbuilder-entry-selected")}}).keyup(function(){q();var E=a('<span style="visibility: hidden; position: absolute; left: -9999px;">'+a(this).val()+"</span>").css("font-size",a(this).css("font-size")).appendTo("body");a(this).width(E.width()+20);E.remove()}).keypress(d).keyup(d).blur(function(){if(r==true||u){r=false;a(this).focus()}});a(document).click(function(){z.find(".listbuilder-entry-selected").removeClass("listbuilder-entry-selected");z.removeClass("listbuilder-focus");z.find("input").val("");q();y()}).keydown(function(E){if(E.keyCode==8){z.find(".listbuilder-entry-selected").remove();q()}});z.click(function(F){a(this).addClass("listbuilder-focus");var E=a(F.target);if(E.is("a.listbuilder-entry-remove")){E.parent().remove();q();return false}else{if(E.is("li.listbuilder-entry, span")){if(E.is("span")){E=E.parent()}if(!F.shiftKey&&!F.ctrlKey&&!F.metaKey){z.find(".listbuilder-entry-selected").removeClass("listbuilder-entry-selected")}if((F.shiftKey||F.ctrlKey||F.metaKey)&&E.is(".listbuilder-entry-selected")){E.removeClass("listbuilder-entry-selected")}else{E.addClass("listbuilder-entry-selected")}return false}else{a(this).find(".listbuilder-entry-selected").removeClass("listbuilder-entry-selected");z.find("input").eq(0).focus();return false}}});z.find("input").focus(function(){a(this).addClass("listbuilder-input-focus");z.addClass("listbuilder-focus")}).blur(function(){a(this).removeClass("listbuilder-input-focus");z.removeClass("listbuilder-focus")});A.click(function(E){if((E.target.nodeName=="LI"||E.target.nodeName=="SPAN")&&(a(E.target).is(".listbuilder-suggestion")||a(E.target).is(".listbuilder-suggestion-text"))){z.find("input").val("").parent().before(f(a(E.target).text()));q();y();l();z.find("input").focus();return false}});z.insertAfter(x).after(A);var p=a("label[for="+x.attr("id")+"]");if(p.length&&h.labelReplacement){var g=a(h.labelReplacement);p.replaceWith(g);g.text(p.html())}})}})(jQuery);$.extend({URLEncode:function(n){var l="";var e=0;n=n.toString();var g=/(^[a-zA-Z0-9_.]*)/;while(e<n.length){var a=g.exec(n.substr(e));if(a!=null&&a.length>1&&a[1]!=""){l+=a[1];e+=a[1].length}else{if(n[e]==" "){l+="+"}else{var j=n.charCodeAt(e);var f=j.toString(16);l+="%"+(f.length<2?"0":"")+f.toUpperCase()}e++}}return l},URLDecode:function(d){var f=d;var a,c;var e=/(%[^%]{2})/;while((m=e.exec(f))!=null&&m.length>1&&m[1]!=""){b=parseInt(m[1].substr(1),16);c=String.fromCharCode(b);f=f.replace(m[1],c)}return f}});(function(a){a.extend({DirtyForm:{debug:false,changedClass:"changed",addClassOn:new Function,hasFirebug:"console" in window&&"firebug" in window.console,logger:function(c){if(this.debug){c="DirtyForm: "+c;this.hasFirebug?console.log(c):alert(c)}},input_value:function(c){if(c.is(":radio,:checkbox")){return typeof(c.attr("checked"))=="undefined"?false:c.attr("checked")}else{return c.val()}},input_reset:function(c){if(c.is(":radio,:checkbox")){c.attr("checked",c.data("initial"))}else{c.val(c.data("initial"))}c.trigger("blur.dirty_form")},input_checker:function(g){var j=a(g.target),f=j.parents(".dirtyform"),d=j.data("initial"),h=a.DirtyForm.input_value(j),c=g.data.inputs,e=g.data.settings;if(d!=h){a.DirtyForm.logger("Form "+f.attr("class")+' is dirty. Changed from "'+d+'" to "'+h+'"');a.DirtyForm.logger("Class: "+e.changedClass);f.data("dirty",true).trigger("dirty",{target:j,from:d,to:h,preventDefault:function(){return false},stopPropagation:function(){return false},bubbles:true,cancelable:true});j.add(e.addClassOn.apply(j)).addClass(e.changedClass)}else{j.add(e.addClassOn.apply(j)).removeClass(e.changedClass)}if(!c.filter("."+e.changedClass).size()){f.data("dirty",false).trigger("clean",{target:j,preventDefault:function(){return false},stopPropagation:function(){return false},bubbles:true,cancelable:true})}}}});a.fn.clean_form=function(){return this.each(function(){var c=a(this);if(c.is("form")){c.reset().find(".changed:input").each(function(){a(this).trigger("blur.dirty_form")})}else{a(":input:not(:hidden,:submit,:password,:button)",c).each(function(){a.DirtyForm.input_reset(a(this))})}})};a.fn.dirty_form=function(){var d={changedClass:a.DirtyForm.changedClass,addClassOn:a.DirtyForm.addClassOn,dynamic:a.isFunction(a.livequery)};var c=a.extend(d,arguments.length!=0?arguments[0]:{});return this.each(function(){var f=a(this),e=a(":input:not(:hidden,:submit,:password,:button)",f);if(f.hasClass("dirtyform")){f.unbind("dirty").unbind("clean");e.unbind("blur.dirty_form")}else{a(this).addClass("dirtyform")}a.DirtyForm.logger("Storing initial data for form "+f.get(0));if(c.dynamic){e.livequery(function(){a(this).bind("blur.dirty_form",{inputs:e,settings:c},a.DirtyForm.input_checker).data("initial",a.DirtyForm.input_value(a(this)))})}else{e.each(function(){a(this).bind("blur.dirty_form",{inputs:e,settings:c},a.DirtyForm.input_checker).data("initial",a.DirtyForm.input_value(a(this)))})}})};a.fn.dirty_stopper=function(){var g={message:'<h3>Warning: Unsaved Changes!</h3><p>You have changed form data <strong>without saving</strong>.<br />All of your changes will be lost.</p><p>Are you sure you want to proceed?</p><div><button id="stay-on-page" class="button">Stay on Page</button>&nbsp;&nbsp;&nbsp;<button id="proceed-away" class="button">Continue</button></div>',css:{padding:"1.5em",width:"360px"},overlayCSS:{opacity:0.25}};var e=a.extend(true,g,arguments.length!=0?arguments[0]:{});var d=a(this);var f=a(this),c=a(this).attr("href");if(a(".dirtyform").isDirty()){event.preventDefault();a.blockUI(e);a("#proceed-away").live("click",function(){window.location.href=c;return false});a("#stay-on-page").live("click",function(){a.unblockUI();return false})}};a("a:not(.dirty-form-ignore)").live("click.dirty_form",function(){var g={message:'<h3>Warning: Unsaved Changes!</h3><p>You have changed form data <strong>without saving</strong>.<br />All of your changes will be lost.</p><p>Are you sure you want to proceed?</p><div><button id="stay-on-page" class="button">Stay on Page</button>&nbsp;&nbsp;&nbsp;<button id="proceed-away" class="button">Continue</button></div>',css:{padding:"1.5em",width:"360px"},overlayCSS:{opacity:0.25}};var e=a.extend(true,g,arguments.length!=0?arguments[0]:{});var d=a(this);var f=a(this),c=a(this).attr("href");if(a(".dirtyform").isDirty()){a.blockUI(e);a("#proceed-away").live("click",function(){window.location.href=c;return false});a("#stay-on-page").live("click",function(){a.unblockUI();return false});return false}});a("a.dirty-form-ignore,form :submit").live("click",function(){a(window).unbind("beforeunload.dirty_form")});a(window).bind("beforeunload.dirty_form",function(){var c="You have changed form data without saving.\nAll of your changes will be lost.\n\nAre you sure you want to proceed?";if(a(".dirtyform").isDirty()&&!a(".blockUI:visible").length){return c}});a.fn.isDirty=function(){var c=false;this.each(function(){if(a(this).data("dirty")){c=true}});return c};a.fn.dirty_checker=function(){a.DirtyForm.logger("Setting dirty checkers!");return this.each(function(){checker=a(this);checker.click(function(){if(a("form").isDirty()){alert("Dirty Form!!")}else{alert("Clean Form ...phew!")}})})};a.fn.extend({dirty:function(c){return this.bind("dirty",c)},clean:function(c){return this.bind("clean",c)}})})(jQuery);(function(a){a.fn.audioVideoInput=function(c){return this.each(function(){var n=$url=a(this),g=n.parent(),u=n.parents(".block"),o=a('<div class="options" />'),d,h,j,e,r=["width","height","auto-start","full-screen"],q,f,p,l;var v=a.extend({width:n.width()},c);g=n.wrap('<div class="audio-video"/>').parent().width(v.width);j=u.find("p.type").detach();e=j.find("select");e.find("option").each(function(x){var y=a(this),w=a('<span class="checkbox"><input type="radio" /><label></label></span>');w.find("input").attr("id",e.attr("id")+"-"+x).attr("name",e.attr("name")).attr("checked",y.is(":selected")).val(y.val()).end().find("label").attr("for",e.attr("id")+"-"+x).text(y.text()).end();n.before(w)});d=u.find(".replacement-fields").comments();g.append(d.html());u.find("input[type=radio]").change(function(){var w=a(this);if(w.is(":checked")){u.find("div.option").addClass("hide").find("input,textarea").disable();u.find("div."+w.val().toLowerCase()).removeClass("hide").find("input,textarea").disable(false)}});u.find("a.view-options").click(function(y){var x=a(this),w=u.find(".options");w.toggleClass("hide");x.blur();return false});for(h=0;h<r.length;h++){$width=a("<span/>").append(u.find("p."+r[h]+" label,p."+r[h]+" input").detach());u.find("div.options").append($width)}u.find("input:radio").each(function(){var w=a(this);if(w.is(":checked")){u.find("div."+w.val().toLowerCase()).removeClass("hide")}else{u.find("div."+w.val().toLowerCase()).find("input,textarea").disable()}});n.detach();n=$url=u.find("input.url")})}})(jQuery);(function(){window.com=window.com||{};liq=com.liquifusion=com.liquifusion||{};liq.Configuration={_debug:true,_effectSpeed:600,debug:function(){return this._debug},effectSpeed:function(){return this._effectSpeed}}})();(function(c){var a=com.liquifusion,d=a.Configuration;c.validator.addMethod("state",function(e){return/^([a-z]|[A-Z]){2}$/.test(e)},"Please enter a valid two-character state code.");c.validator.addMethod("phone",function(f,e,g){return this.optional(e)||/^[01]?[- .]?\(?[2-9]\d{2}\)?[- .]?\d{3}[- .]?\d{4}$/.test(f)},"Please enter a valid US or Canadian phone number.");c.validator.addClassRules({state:{required:true,state:true},creditcard:{required:true,creditcard2:true},postalCode:{required:true,postalCode:true},date:{required:false},url:{url:true}});c(document).ready(function(){c("form.validate [type=submit]").livequery(function(){var e=c(this);e.mousedown(function(g){var f;for(f in CKEDITOR.instances){CKEDITOR.instances[f].updateElement()}})});c("form :submit").livequery(function(){c(this).removeClass("disabled").prop("disabled",false)});c("form.validate").livequery(function(){var e=c(this);e.validate({debug:true,errorClass:"invalid",meta:"validate",ignore:".ignore",submitHandler:function(f){e.find(":submit").addClass("disabled");e.find(":submit").prop("disabled",true);f.submit()},errorPlacement:function(f,h){var g=h.next("span[id^=cke_]");if(g.length){f.insertAfter(g)}else{f.insertAfter(h)}}});return false},function(){c(this).unbind("submit")});c("form.ajax-validate").livequery(function(){var e=c(this);e.validate({debug:d.debug(),errorClass:"invalid",meta:"validate",ignore:".ignore",submitHandler:function(f){e.ajaxSubmit({target:e.metadata().target,clearForm:false})}});return false},function(){c(this).unbind("submit")})})})(jQuery);(function(c){var a={message:'<img src="/images/colorbox/loading.gif" />',css:{padding:"1.5em"},overlayCSS:{opacity:0.25}};c.blockUI.defaults.growlCSS={width:"400px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:0.85,cursor:"pointer",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"};c("#message-container div.success,#message-container div.error,#message-container div.notice").livequery(function(){var e=c(this),f=c.string(e.prop("class")).capitalize();c.growlUI(f.str,e.text(),4000);c("div.growlUI").addClass(f.str.toLowerCase()).click(function(g){g.preventDefault();c.unblockUI()})});c("#site-switcher").live("click",function(e){e.stopPropagation()});c("#site-switcher #open-close").live("click",function(f){var h=c(this),e=c("#site-switcher #list-holder"),g=c("body");f.preventDefault();if(h.hasClass("active")){e.hide()}else{e.show();g.click(function(){e.hide();h.removeClass("active");g.unbind("click");g.blur()})}h.toggleClass("active");h.blur()});var d=false;c.address.change(function(f){var e=f.value;if(f.value!="/"){d=true}if(e.indexOf("admin")==-1&&e.indexOf("system")==-1){e=window.location.pathname+"?"+e.replace(/\//g,"").replace(/\?/,"")}if(e.indexOf("?")==-1){e+="?_="+f.timeStamp}else{e+="&_="+f.timeStamp}if(d===true){c.get(e,null,function(g,h){c("#content").html(g)},"html")}d=true});c("#navigation>ul").livequery(function(){var e=c(this);e.superfish({pathClass:"active",pathLevels:1,delay:1000,autoArrows:false,dropShadows:false})});c(".content-quick-links a span").live("click",function(){var e=c(this);metadata=e.metadata();window.location=metadata.url;return false});c(".content-quick-links a span").live("mouseover mouseout",function(e){var f=c(this);if(e.type=="mouseover"){f.addClass("hover")}else{f.removeClass("hover")}});c('a[rel*="address:"]').livequery(function(){c(this).address()});c(document).ready(function(){c(".tool-tip.help").livequery(function(){var g=c(this),f=c("body"),e=g.find(".tip-text").comments();g.qtip({style:{name:"dark",tip:true,border:{width:2,radius:5},width:{max:240}},position:{corner:{target:"rightcenter",tooltip:"leftcenter"}},content:{text:e},show:{when:{event:"click"}},hide:{when:{event:"click"},effect:{type:"fade",length:500}}}).click(function(h){h.preventDefault();h.stopPropagation();f.click(function(){g.qtip("hide");f.unbind("click");f.blur()})})},function(){c(this).qtip("destroy").unbind()});c(".tool-tip.hover").livequery(function(){var e=c(this);e.qtip({style:{name:"dark",tip:true,border:{width:2,radius:5},width:{max:240}},position:{corner:{target:"bottomcenter",tooltip:"topcenter"}}})},function(){c(this).qtip("destroy").unbind()});c(document).ajaxStart(function(){var e=c("#cboxOverlay:visible,.blockOverlay:visible");if(!e.length){c(document).oneTime(300,"delay-block-ui",function(){c.blockUI(a)})}});c(document).ajaxComplete(function(g,h,f){if(h.status==278){window.location.href=h.getResponseHeader("Location").replace(/\?.*$/,"?next="+window.location.pathname)}});c(document).ajaxStop(function(){var e=c("#cboxOverlay:visible");if(!e.length){c(document).stopTime("delay-block-ui");c.unblockUI()}});c("#navigation ul li a.new").append("<h6>new</h6>")})})(jQuery);(function(a){a("a.login-attempt").live("click",function(d){a.fn.colorbox({href:a(this).prop("href"),opacity:0.25,maxHeight:"95%",width:"620px"});return false});a("a.action-sets").live("click",function(d){a.fn.colorbox({href:a(this).prop("href"),opacity:0.25,maxHeight:"95%",width:"620px"});return false});a("a.infusion-popup").live("click",function(d){d.preventDefault();window.open(a(this).prop("href"))});a("#list a.show-test-results").livequery(function(){a(this).colorbox({opacity:0.25,width:"600px"})});a("#actions-form .action-bar .action-tabs li a").live("click",function(j){var l=a(this),h=a.getJSONCookie("PARAMSAVE"),g=a("#action-bar-top"),d=g.prop("id"),e=a("body").prop("class").replace(/admin|system|enhanced|\s/g,""),f=l.parents("ul.action-tabs");j.preventDefault();f.find("a").removeClass("active");h[e][d]=l.prop("class");a.setJSONCookie("PARAMSAVE",h,{expires:null});l.blur();l.addClass("active");g.toggleClass("search");a("#select-options-top").toggleClass("hide");a("#search-options-top").toggleClass("hide")});a("#actions-form .select-all").live("click",function(d){var e=a(this);d.preventDefault();a("#actions-form input[name=id]:checkbox").prop("checked",true);e.blur()});a("#actions-form .select-none").live("click",function(d){var e=a(this);d.preventDefault();a("#actions-form input[name=id]:checkbox").prop("checked",false);e.blur()});a("#actions-form .delete-selected").live("click",function(f){var g=a(this),d=a("#actions-form"),e=d.find("input[name=id]:checkbox");if(!e.is(":checked")){alert(g.metadata().error);return}d.prop("action",g.metadata().action);if(confirm(g.metadata().confirm.replace(/{count}/,e.filter(":checked").length))){d.submit()}return false});a("#actions-form .search-bar").live("click",function(f){var g=a(this),d=a("#actions-form"),e=d.serialize();a.address.value(e);return false});a("#list li.holder,#list.nested li div.holder").live("click",function(e){var f=a(this),d=e.target.href;if(f.find("a.edit").length!=0){if(e.target.tagName.toLowerCase()!="a"&&e.target.tagName.toLowerCase()!="input"){e.preventDefault();window.location.href=a(this).find("a.edit").prop("href")}}});a("#list li.holder,#list.nested li div.holder").live("mouseover",function(){var d=a(this);if(d.find("a.edit").length!=0){d.addClass("hover")}});a("#list li.holder,#list.nested li div.holder").live("mouseout",function(){var d=a(this);if(d.find("a.edit").length!=0){d.removeClass("hover")}});var c=function(h){var g=h.parent(),f=a.getJSONCookie("PARAMSAVE"),j=h.prop("id").replace("ex-",""),d=a("body").prop("class").replace(/admin|system|enhanced|\s/g,""),e=d+"-list";if(f[d][e]==undefined){f[d][e]={}}if(f[d][e][j]==undefined){f[d][e][j]={}}f[d][e][j]=h.hasClass("expanded");a.setJSONCookie("PARAMSAVE",f,{expires:null})};a("#list.nested span.expand-collapse").live("click",function(e){var g=a(this),f=g.parent(),d=f.parent(),h=g.prop("id").replace("ex-","");e.preventDefault();if(f.children("ul").length){if(g.hasClass("expanded")){g.addClass("collapsed").removeClass("expanded");f.children("ul").slideUp()}else{g.addClass("expanded").removeClass("collapsed");f.children("ul").slideDown()}c(g)}else{a.ajax({cache:false,url:"/admin/cms/pages/expand/"+h.toString(),success:function(n,j,o){var l=a(n);f.replaceWith(l.first("li"));c(d.find("li."+f.prop("class")+" > span.expand-collapse"))}})}});a("#list.nested span.expand-collapse").live("mouseover",function(){var e=a(this),d=e.siblings("div.holder");if(d.find("a.edit").length!=0){d.addClass("hover")}});a("#list.nested span.expand-collapse").live("mouseout",function(){var e=a(this),d=e.siblings("div.holder");if(d.find("a.edit").length!=0){d.removeClass("hover")}});a("#list a.delete:not([class*=has-children])").live("click",function(d){var e=a(this);d.preventDefault();if(confirm(a.URLDecode(e.metadata().deleteMessage))){window.location=e.prop("href")}});a("#list.nested ul li a.up").live("click",function(j){var l=a(this),n=l.parents("li:first"),f=n.find("a.up:first"),h=n.find("a.down:first"),e=n.prev("li"),d=e.find("a.up:first"),g=e.find("a.down:first");j.preventDefault();j.stopPropagation();if(e.length==1){e.before(n);n.find(".holder").removeClass("hover");a.get(l.prop("href"),function(o){a("#list > ul").effect("highlight",{},1000,function(){})})}if(e.prev(":visible").length==0){d.addClass("hide")}else{d.removeClass("hide")}if(e.next(":visible").length==0){g.addClass("hide")}else{g.removeClass("hide")}if(n.prev(":visible").length==0){f.addClass("hide")}else{f.removeClass("hide")}if(n.next(":visible").length==0){h.addClass("hide")}else{h.removeClass("hide")}l.blur()});a("#list.nested ul li a.down").live("click",function(d){var e=a(this),f=e.parents("li:first");$next=f.next("li");d.preventDefault();d.stopPropagation();if($next.length==1){$next.after(f);f.find(".holder").removeClass("hover");a.get(e.prop("href"),function(g){a("#list > ul").effect("highlight",{},1000,function(){})})}if($next.prev(":visible").length==0){$next.find("a.up:first").addClass("hide")}else{$next.find("a.up:first").removeClass("hide")}if($next.next(":visible").length==0){$next.find("a.down:first").addClass("hide")}else{$next.find("a.down:first").removeClass("hide")}if(f.prev(":visible").length==0){f.find("a.up:first").addClass("hide")}else{f.find("a.up:first").removeClass("hide")}if(f.next(":visible").length==0){f.find("a.down:first").addClass("hide")}else{f.find("a.down:first").removeClass("hide")}e.blur()});a("#sidebar a.close,#sidebar a.open").live("click",function(g){var j=a(this),f=a.getJSONCookie("PARAMSAVE"),d=j.parent().prop("id"),h=j.hasClass("open"),e=a("body").prop("class").replace(/admin|system|enhanced|\s/g,"");g.preventDefault();f[e][d]=h;a.setJSONCookie("PARAMSAVE",f,{expires:null});j.parent().find("div.contents").slideToggle(function(){j.toggleClass("close");j.toggleClass("open")});j.blur()})})(jQuery);(function(a){a("#content-title,#category-title,#event-title,#eventCategory-title").live("keyup blur",function(){var d=a(this),c=d.metadata();if(c.action=="new"||c.action=="create"||c.action=="showTemplate"){a("#content-url,#category-url,#event-url,#eventCategory-url").val(d.val().replace(/[^a-zA-Z0-9 ]+/g,"").replace(/ /g,"-").replace(/-+/g,"-").toLowerCase())}});a("#restrict-groups").live("click",function(f){var g=a(this),d=a("#role-list input[type=checkbox][name*=groupables]"),e=a("#group-message"),h=a("#check-all-group-checkboxes"),c=a("#group-container");f.preventDefault();e.slideUp(function(){c.slideDown()});d.prop("checked",true);if(h.length){h.prop("checked",true)}});a("#check-all-group-checkboxes").live("click",function(d){var e=a(this),c=a("#group-checkboxes input:checkbox");if(e.is(":checked")){c.prop("checked",true)}else{c.prop("checked",false)}});a("#check-all-group-checkboxes").livequery(function(){var e=a(this),c=a("#group-checkboxes input:checked"),d=a("#group-checkboxes input:checkbox");if(c.length==d.length){e.prop("checked",true)}});a("#check-url").live("click",function(f){var g=a(this),h=g.parent().find("input.text"),c=g.prop("href"),d=a("#page-url,#content-url").val(),e=a("#page-parentPageId");f.preventDefault();if(e.length){d=d+"&parent="+e.val().toString()}g.blur();a.get(c+d,function(j){g.parents("p").find("label.success,label.invalid,label.error").remove();if(h.parents("span").length==1){h.parents("span").after(j).focus()}else{h.after(j).focus()}})});a(".mock-field").live("click",function(c){var d=a(this);if(c.target.tagName.toLowerCase()!="select"){d.find("input").focus()}});a("#accountSettings-navigationShowMemberToPublic").live("click",function(c){var e=a(this),f=a("#member-nav-settings"),d=a("#accountSettings-navigationShowGroupToMember");if(e.is(":checked")){f.slideUp();d.removeProp("checked")}else{f.slideDown()}})})(jQuery);$(document).ready(function(){$("#content-tagList").livequery(function(){var e=$(this);e.listbuilder({width:"75%",delimChar:", ",url:e.attr("rel"),delay:200,completeChars:[188,13,9]})});$(".form input.page-url").livequery(function(){var e=$(this);e.alpha({nocaps:true,allow:"-1234567890"})},function(){$(this).unbind()});$(".form select.auto-complete").livequery(function(){var f=$(this),e=f.metadata()||{};f.select_autocomplete(f.metadata())},function(){$(this).unbind()});$("#page-roleType,#content-roleType,#forum-roleType,#event-roleType").livequery(function(){var j=$(this),g=$("#role-list input[type=checkbox][name*=groupables]"),h=$("#group-message"),f=$("#group-container"),e=j.val().toLowerCase();if(e=="member"){if(g.is(":checked")){f.show();h.hide()}j.parents("#security").find("#role-list").slideDown()}j.change(function(){if(j.val().toLowerCase()=="public"){g.removeProp("checked");j.parents("#security").find("#role-list").slideUp(function(){f.hide();h.show()})}else{j.parents("#security").find("#role-list").slideDown()}})},function(){$(this).unbind("change");$("#restrict-groups").unbind("click")});$("#page-pagetypeid").livequery(function(){var e=$(this),g=e.find("option:selected").text()=="Redirect"?"Redirect":"Content",f=$("#"+g);$("#Content,#Redirect").find("input,select,textarea,button").addClass("ignore");f.slideDown();f.find("input,select,textarea,button").removeClass("ignore");e.change(function(){var j=e.find("option:selected").text()=="Redirect"?"Redirect":"Content",h=$("#"+j);if(f.prop("id")!=h.prop("id")){f.slideUp(function(){h.slideDown()});f.find("input,select,textarea,button").addClass("ignore");h.find("input,select,textarea,button").removeClass("ignore");f=h}})},function(){$(this).unbind("change")});$("#create-permission-area").colorbox({inline:true,height:"390px",href:"#dialog",opacity:0.25,scrollbars:false,width:"600px"});$("#add-permission-area").validate({errorClass:"invalid",meta:"validate",ignore:".ignore",submitHandler:function(e){var f=$(e);$.post(f.prop("action"),f.serialize(),function(g){$("#permission-permissionAreaId option:last").after(g)});$.fn.colorbox.close()}});var c=function(f){var e=false;f.parents("ul").find("input[type=radio]").each(function(h){var j=$(this),g=j.is(":checked");if(!e){j.parents("li").addClass("active")}else{j.parents("li").removeClass("active")}if(!e){e=g}})};$("#permission-areas .permission-area input[type=radio]").click(function(e){c($(this))});$("#permission-areas .permission-area li.active input[type=radio]").each(function(e){c($(this))});var a={};var d=function(g){var e=$("#account-crmIdentifier"),f=$("#account-crmApiKey");a[e.prop("id")]=e.val();a[f.prop("id")]=f.val();if(g.val()=="reservoir"){e.removeClass("required").val("").parent().hide();f.removeClass("required").val("").parent().hide()}else{e.addClass("required").val(a[e.prop("id")]).parent().show();f.addClass("required").val(a[f.prop("id")]).parent().show()}};$("#account-crmChoice").change(function(){d($(this))}).each(function(){d($(this))})});(function(a){a("#page-layoutId").live("change",function(e){var f=a(this),d=a("#page-id"),c=a("#layout-change-warning").comments().find("span");if(d.length){f.after(c)}});a("#show-navigation-text").live("click",function(e){var f=a(this),d,c=a.string(""),j=a("#page-url").val().split("-"),g=a("#navigation-text-container"),h=g.find("input");e.preventDefault();for(d=0;d<j.length;d++){c+=a.string(j[d]).capitalize();if(d!=j.length-1){c+=" "}}h.val(c);g.slideDown();f.remove();return false});a("#hide-navigation-text").live("click",function(e){var f=a(this),d=a("#in-navigation-link").comments().find("a"),h=a("#page-inNavigation"),c=h.parent().find("label"),g=a("#navigation-text-container");g.slideUp(function(){a(this).find("input").val("")});if(h.is(":checked")){c.append(d)}return false});a("#page-inNavigation").live("change",function(e){var f=a(this),d=a("#in-navigation-link").comments().find("a"),c=f.parent().find("label"),g=a("#navigation-text-container");if(f.is(":checked")){c.append(d)}else{g.slideUp(function(){a(this).find("input").val("")});c.find("a").remove()}})})(jQuery);(function(a){a("form input.url").live("focus",function(){var c=a(this);if(c.val()==""){c.val("http://")}});a("form input.url").live("blur",function(){var c=a(this);if(c.val()=="http://"){c.val("")}});a("form input.resource-url").live("focus",function(){var c=a(this);if(c.val()==""){c.val("/")}});a("form input.resource-url").live("blur",function(){var c=a(this);if(c.val()=="/"){c.val("")}});a("form.validate").livequery(function(){a(this).dirty_form()});a("#ui-datepicker-div a,#search-form,.cke_toolbox a,.cke_dialog_body a,#restrict-groups").livequery(function(){a(this).addClass("dirty-form-ignore")});a(".form a.view-image").livequery(function(){var c=a(this);c.colorbox({maxWidth:"85%",maxHeight:"85%",opacity:0.25})});a(".form a.clear-selection").live("click",function(){var e=a(this),d=a(e.attr("href")),c=a(e.attr("href")+"-checkbox");d.val("").trigger("change");c.val("");e.blur();return false});a(".form input[type=submit],button.button").livequery(function(){a(this).button().addClass("primary-button").hover(function(){a(this).toggleClass("primary-button")})});a("form input.mask").livequery(function(){var c=a(this);c.mask(c.metadata().mask)},function(){a(this).unbind()});a(".form input.numeric,.form input.integer").livequery(function(){var c=a(this);c.numeric()},function(){a(this).unbind()});a(".form input.date").livequery(function(){var c=a(this);c.mask(c.metadata().mask).datepicker({changeYear:true,dateFormat:c.metadata().format,showAnim:"slideDown",showOptions:{speed:100}})},function(){a(this).unbind()})})(jQuery);$(document).ready(function(){if($("#forum-moderatorList").length){var c=$("#forum-moderatorList").metadata(),a=$("#token-input-prepopulate").comments().find("option"),d=[];if(a.length){a.each(function(e){var f=$(this);d[e]={id:f.val(),name:f.text()}})}c.options.prePopulate=d;$("#forum-moderatorList").tokenInput(c.url,c.options)}$("#create-forum-grouping").colorbox({inline:true,height:"210px",href:"#dialog",opacity:0.25,scrollbars:false,width:"600px"});$("#add-forum-grouping").validate({errorClass:"invalid",meta:"validate",ignore:".ignore",submitHandler:function(e){var f=$(e);$.post(f.prop("action"),f.serialize(),function(g){$("#forum-forumGroupingId option:last").after(g)});$.fn.colorbox.close()}})});(function(c){c("#blockType-fieldType").live("change",function(){var e=c(this),d=c("#edit-model-method");if(e.val()=="selectBox"){d.slideDown()}else{d.slideUp()}});var a=function(){c("#configurationProperties").find("div.configuration-property").each(function(d){var e=c(this);var f=d+1;e.find("input,textarea,select").each(function(g){var h=c(this);h.prop("id",h.prop("id").replace(/\-(\d{1,7})\-/,"-"+f.toString()+"-"));h.prop("name",h.prop("name").replace(/\[(\d{1,7})\]/,"["+f.toString()+"]"))})})};c("#configurationProperties a.another").live("click",function(e){var g=c(this),h=g.parents("div.configuration-property"),d=h.clone(),f=c("#removeLink").comments();e.preventDefault();d.find("label").html("&nbsp;");d.find("input").val("");d.find("div.data-properties").addClass("hide");if(!d.find("a.remove").length){f.find("a").insertAfter(d.find("a.another"))}d.insertAfter(h);a();g.blur()});c("#configurationProperties a.remove").live("click",function(d){var e=c(this),f=e.parents("div.configuration-property");d.preventDefault();f.remove();a()});c("#configurationProperties select[id$=-type]").live("change",function(d){var e=c(this);$dataContainer=e.parents("div.configuration-property").find("div.data-properties");if(e.val()=="query"){$dataContainer.removeClass("hide")}else{$dataContainer.addClass("hide");$dataContainer.find("select").val("");$dataContainer.find("input").val("")}})})(jQuery);(function(a){a("#template-blocks .isEditable").live("change",function(){var c=a(this);$span=c.parents("p.checkbox").find("span");$span.toggleClass("hide");if(!c.is(":checked")){$span.find("input").prop("checked",false)}});a("#template-isActive").live("change",function(){var c=a(this);$quickLink=a("#template-hasQuickLinks");if(c.is(":checked")){a("#quick-links").slideDown()}else{a("#quick-links").slideUp();$quickLink.prop("checked",false)}});a("#template-isActive").live("change",function(){var c=a(this);$quickLink=a("#template-hasQuickLinks");if(c.is(":checked")){a("#quick-links").slideDown()}else{a("#quick-links").slideUp();$quickLink.prop("checked",false)}});a("#template-isStandAlone").live("change",function(){var c=a(this);if(c.is(":checked")){a("#template-blocks .sorting-order").removeClass("hide").find("select").val("")}else{a("#template-blocks .sorting-order").addClass("hide")}});a("").live("click",function(){var c=a(this)});a("#add-a-block button").livequery(function(){var c=a(this);c.colorbox({height:"65%",href:c.metadata().url,opacity:0.25,width:"85%"})},function(){a(this).unbind()});a("#template-blocks .sorting-order select").live("change",function(){var d=a(this),c=a("#template-blocks .sorting-order select");c.each(function(){var e=a(this);if(e.prop("id")!=d.prop("id")){e.val("")}})});a("#block-types a.add-block").live("click",function(c){var d=a(this);a.fn.colorbox.close();a.post(d.prop("href"),a("#template-block-types").serialize(),function(e){a("#content").html(e)});return false});a("#template-blocks a.delete").live("click",function(c){var e=a(this),d=e.parents("div.template-block");c.preventDefault();d.find("input[name*=_delete]").val(1);d.find("input,select,textarea").addClass("ignore");d.slideUp()});a("#template-blocks a.more-options").live("click",function(c){var d=a(this),e=d.parents(".template-block").find("div.more-options-container");c.preventDefault();if(e.is(":visible")){d.attr("title","More Options").text("More Options");e.css("display","none")}else{d.prop("title","Less Options").text("Less Options");e.css("display","block");e.find(":input:visible:first").focus()}d.blur()});a("#template-blocks .defaultPrepend a.show-item,#template-blocks .defaultAppend a.show-item").live("click",function(c){var e=a(this),d=e.parents(".defaultPrepend,.defaultAppend");c.preventDefault();d.find("div.hide").show();e.hide()})})(jQuery);$(document).ready(function(){$("#template-blocks").livequery(function(){var a=$(this);a.sortable({placeholder:"ui-state-highlight",handle:"a.drag-handle",stop:function(c,d){$("#template-blocks .template-block").each(function(e){var f=$(this);var g=e+1;f.find("input,textarea,select").each(function(l){var n=$(this),h=n.prop("name");n.prop("name",h.replace(/\[templateBlocks\]\[\d{1,7}\]/,"[templateBlocks]["+g.toString()+"]"))});f.find("input[name*=sortOrder]").each(function(h){$(this).val(g.toString())})})}});a.disableSelection()},function(){$(this).sortable("destroy")})});(function(d){d(".short-code-instructions").livequery(function(){var e=d(this);e.colorbox({opacity:0.25,maxHeight:"85%",maxWidth:"85%"})});d(".form input.audio-video-input").livequery(function(){d(this).audioVideoInput({width:"50%"})});d(".form input[type=file]").livequery(function(){if(!d(this).hasClass("file-input")){d(this).customFileInput()}});d(document).ready(function(){d("#content-templateId").livequery(function(){var e=d(this);e.change(function(){var j,f=d("#content-form"),g=d("#template"),h=e.metadata();if(e.val()){d.post(h.url,f.serialize(),function(p){var l=d(p),u=500,v=d("#tagging-module"),o=d("#category-module"),q=d("#title-instruction"),r=d("#content-title"),n=d("#content");l.find("#template").hide();l.find("#tagging-module").hide();l.find("#category-module").hide();l.find("#title-instruction").hide();if(g.is(":visible")){for(j in c){CKEDITOR.remove(c[j])}g.slideUp(u,function(){n.html(l);d("#content-url").val(r.val().replace(/[^a-zA-Z0-9 ]+/g,"").replace(/ /g,"-").toLowerCase());d("#template").slideDown(u);d("#tagging-module").slideDown(u);d("#category-module").slideDown(u);d("#title-instruction").slideDown(u)});q.slideUp(u);v.slideUp(u);o.slideUp(u)}else{n.html(l);d("#content-url").val(r.val().replace(/[^a-zA-Z0-9 ]+/g,"").replace(/ /g,"-").toLowerCase());d("#template").slideDown();d("#tagging-module").slideDown(u);d("#category-module").slideDown(u);d("#title-instruction").slideDown(u)}})}else{g.slideUp()}})},function(){d(this).unbind()})});var c={};d(".form textarea.richText").livequery(function(){var e=d(this);c[e.prop("id")]=CKEDITOR.replace(e.prop("id"),{filebrowserBrowseUrl:"/files/editors/filemanager/index.html",filebrowserWindowWidth:"1000",filebrowserWindowHeight:"700"})},function(){CKEDITOR.remove(c[d(this).prop("id")])});var a=null;d(document).bind("filemanager.selectItem",function(e,f){if(a===null){alert("The field id was not set.");return}d("#"+a+":enabled").val(f.Path).trigger("change");d.fn.colorbox.close();a=null});d(".form .file-field-display .select-file").live("click",function(){var e=d(this),f=e.parents(".file-field-display"),g=f.find('input[id$="-checkbox"]');a=g.prop("id");d.fn.colorbox({height:"95%",href:"/files/editors/filemanager/index.html?showSelect=true",iframe:true,opacity:0.25,width:"95%"});return false});d(".form .audio-video-container .upload .select-file").live("click",function(){var e=d(this),f=e.parents(".upload"),g=f.find('input[id$="-checkbox"]');a=g.prop("id");d.fn.colorbox({height:"95%",href:"/files/editors/filemanager/index.html?showSelect=true",iframe:true,opacity:0.25,width:"95%"});return false})})(jQuery);(function(a){a(document).ready(function(){a("#select-all-layouts,#select-all-templates,#select-all-pages,#select-all-contents").click(function(){var e=a(this),d=e.prop("id").split("-")[2],c=a("#"+d+"-checkboxes input:checkbox");if(e.is(":checked")){c.prop("checked",true)}else{c.prop("checked",false)}})})})(jQuery);(function(a){a("#publish-page").live("click",function(c){var d=a(this);c.preventDefault();a.get(d.prop("href"),function(e){a("#content").html(e);a("#publish-container").effect("highlight",{},1000,function(){})},"html")});a("#page-contents .remove-page-content").live("click",function(c){var d=a(this);c.preventDefault();a.get(d.prop("href"),function(e){a("#content").html(e);a("#sort-form").effect("highlight",{},1000,function(){})},"html")});a("#content-search a.region-selection").live("click",function(e){var g=a(this),c=g.prop("href"),f=a("#content-title").val(),d=c+"&region="+g.metadata().region+"&content[title]="+f;e.preventDefault();a.get(d,function(h){a("#content").html(h);a("#sort-form").effect("highlight",{},1000,function(){})},"html");a("#region-overlay").fadeOut(300);a("#search-results").find("a.add-content-item[href="+c+"]").parent().slideUp(300)});a("#content-search a.add-content-item").live("click",function(c){var d=a(this);c.preventDefault();a("#content-search a.region-selection").prop("href",d.prop("href"));a("#region-overlay").fadeIn(300)});a("#content-search a.close").live("click",function(c){var d=a(this);c.preventDefault();a("#region-overlay").fadeOut(300)});a("#page-contents li[class!=0]").live("mouseover",function(){var c=a(this);c.css("cursor","move").addClass("hover")});a("#page-contents li[class!=0]").live("mouseout",function(){var c=a(this);c.css("cursor","auto").removeClass("hover")})})(jQuery);$(document).ready(function(){$("#preview-page").livequery(function(){var a=$(this);a.colorbox({iframe:true,height:"95%",href:a.prop("href"),opacity:0.25,width:"95%"})},function(){$(this).unbind()});$("#page-contents ul").livequery(function(){var c=$(this),a=$("#empty-li").comments().find("li");c.sortable({placeholder:"ui-state-highlight",items:"li:not([class=0])",connectWith:".connected",containment:"#page-contents",helper:"original",cursor:"move",change:function(d,e){},stop:function(f,g){var h=[],d=$("#json"),e=$("#sort-form");$("#page-contents ul li:not([class=0])").each(function(l){var j=$(this),o=j.metadata().id,n=j.parent().prop("class").split(" ")[0].replace("region-","");h[l]={contentId:o,region:n}});d.val(JSON.stringify(h));$.post(e.prop("action"),e.serialize(),function(j){if(j.status=="success"){e.effect("highlight",{},1000,function(){})}else{alert("error: the sorting request was not completed successfully")}});$("#page-contents ul").each(function(l){var n=$(this),j=n.children("li").not("[class=0], .ui-state-highlight");if(j.length==0){if(n.children("li").length==0){n.append(a)}}else{n.children("li[class=0]").remove()}})}});c.disableSelection()},function(){$(this).sortable("destroy")})});$(document).ready(function(){var a=function(){var d=$(this),c=$("input:password.show-password"),e=$("input:text.show-password");if(d.is(":checked")){c.removeClass("required");e.addClass("required")}else{c.addClass("required");e.removeClass("required")}};$("#user-authenticationToken, #member-authenticationToken").livequery(function(){var d=$(this),c=$("#show-password");if(c.length){$showPasswordContainerContents=c.html()}else{$showPasswordContainerContents=""}if(!d.hasClass("show-password")){d.addClass("show-password")}console.log(c.length);console.log(!$showPasswordContainerContents.length);if(c.length&&!$showPasswordContainerContents.length){d.showPassword("#show-password")}});$("#show-password input:checkbox").live("click blur",a).livequery(a)});(function(a){a("#account-accountsetting-searchEnabled").live("click",function(c){var d=a(this),e=a("#enable-search-container");if(d.is(":checked")){e.slideDown()}else{e.slideUp().find("input:checkbox").prop("checked",false)}});a("#account-accountsetting-navigationSplitLevel").live("change",function(c){var d=a(this),e=a("#nav-repeat-split-level");if(d.val()===""||d.val()==="1"){e.slideUp().find("input:checkbox").prop("checked",false)}else{e.slideDown()}});a("#feed-settings input:checkbox").live("click",function(c){var d=a(this),e=d.parents(".feed-url").find(".syndiate-fields");if(d.is(":checked")){e.show()}else{e.hide()}e.find("input").val("")});a("#redirect-settings #add-redirect").live("click",function(f){var j=a(this),h=a("#redirect-settings .redirect"),d=h.last(),g=d.clone(),e=g.find("input"),c=g.find("label");e.each(function(n){var o=a(this),l=h.length+1;o.prop("name",o.prop("name").replace(/\[redirects\]\[\d{1,7}\]/,"[redirects]["+l.toString()+"]"));o.prop("id",o.prop("id").replace(/-redirects-\d{1,7}-/,"-redirects-"+l.toString()+"-"));o.val("")});c.each(function(o){var n=a(this),l=h.length+1;n.prop("for",n.prop("for").replace(/-redirects-\d{1,7}-/,"-redirects-"+l.toString()+"-"))});d.after(g);j.blur();return false});a("#redirect-settings .delete a").live("click",function(c){var e=a(this),d=e.parents("div.redirect");d.slideUp(350,function(){d.remove();a("#redirect-settings .redirect").each(function(l){var g=a(this),j=g.find("input"),h=g.find("label"),f=l+1;j.each(function(n){var o=a(this);o.prop("name",o.prop("name").replace(/\[redirects\]\[\d{1,7}\]/,"[redirects]["+f.toString()+"]"));o.prop("id",o.prop("id").replace(/-redirects-\d{1,7}-/,"-redirects-"+f.toString()+"-"))});h.each(function(o){var n=a(this);n.prop("for",n.prop("for").replace(/-redirects-\d{1,7}-/,"-redirects-"+f.toString()+"-"))})})});return false})})(jQuery);(function(e){var a={message:'<img src="/images/colorbox/loading.gif" />',css:{padding:"1.5em",width:"auto"},overlayCSS:{opacity:0.25}},c,g={chart:{renderTo:"visitors-graph",defaultSeriesType:"area",height:220,marginRight:20,marginBottom:15},credits:{enabled:false},title:{text:"Total Visitors",align:"left",color:"#111111"},xAxis:{categories:[],min:0,labels:{step:3}},yAxis:{title:{text:"Visitors"},plotLines:[{value:0,width:1,color:"#808080"}]},legend:{layout:"vertical",align:"right",x:-10,y:100,borderWidth:0},series:[],plotOptions:{area:{color:"#EC8E0C",fillOpacity:0.15,lineWidth:3,dataLabels:{align:"left"}}}};var d=function(j,h,o){var n=j.parent(),l=j.metadata().url;if(!h){h="last-30-days"}n.block(a);if(l.indexOf("?")==-1){l+="?date="+h+"&width="+(j.width()-20).toString()}else{l+="&date="+h+"&width="+(j.width()-20).toString()}if(o!==undefined){l+="&success="+o.toString()}e.ajax({url:l,type:"GET",cache:false,mode:"queue",port:"delayedContent",success:function(q){var p=e(q);p.find(".analytics").hide();j.html(p);n.unblock();j.find(".analytics").fadeIn(150)}})};var f=function(j,h,o){var n=j.parent(),l=j.metadata().url;if(!h){h="last-30-days"}n.block(a);if(l.indexOf("?")==-1){l+="?date="+h}else{l+="&date="+h}e.ajax({url:l,type:"GET",dataType:"json",cache:false,mode:"queue",port:"delayedContent",success:function(p){g.xAxis.categories=p.xAxis.categories;g.yAxis.max=p.yAxis.max;g.series=p.series;if(c){c.destroy()}c=new Highcharts.Chart(g);n.unblock()}})};e("#date-range-picker ul li a").live("click",function(o){var q=e(this),n=e("#date-range-picker ul"),l=e(".dashboard .widget"),h=e(".dashboard .graph-widget"),p=e("#date-range-picker .rerun"),j=q.prop("rel");o.preventDefault();p.val(j).find(".ui-button-text").text("Viewing "+q.text());h.each(function(){f(e(this),j)});l.each(function(){d(e(this),j)})});e(".dashboard .switch-logins").live("click",function(j){var n=e(this),p=n.parents("#analytics-logins"),o=p.metadata().success,q=n.parents(".widget"),l=e("#date-range-picker .rerun"),h=l.val();j.preventDefault();d(q,h,o)});e("#dismiss-message").live("click",function(h){var j=e(this),n=j.prop("href"),l=j.parents(".special-notice");h.preventDefault();l.slideUp(500,function(){window.location=n})});e(document).ready(function(){var h=null;var l=function(){var o=e(".widget.reload-on-resize"),p=e("#date-range-picker .rerun"),n=p.val();if(j!=e(window).width()){o.each(function(){d(e(this),n)});j=e(window).width()}};var j=e(window).width();e(window).resize(function(){if(h){clearTimeout(h)}h=setTimeout(l,200)});e("#date-range-picker .rerun").button().click(function(q){var p=e(".dashboard .widget"),n=e(".dashboard .graph-widget"),r=e("#date-range-picker .rerun"),o=r.val();n.each(function(){f(e(this),o)});p.each(function(){d(e(this),o)})}).next().button({text:false,icons:{primary:"ui-icon-triangle-1-s"}}).click(function(o){var n=e("#date-range-picker ul"),p=e("body");o.stopPropagation();if(n.is(":visible")){n.hide()}else{n.show();p.click(function(){n.hide();p.unbind("click");p.blur()})}}).parent().buttonset();e(".dashboard .graph-widget").each(function(){var n=e(this).wrap('<div class="delayed-content-wrapper"></div>');f(n,n.metadata().dateRange)});e(".dashboard .widget").each(function(){var n=e(this).wrap('<div class="delayed-content-wrapper"></div>');d(n,n.metadata().dateRange)})})})(jQuery);

