/*
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(aP,E){var a=function(a1,a2){return new a.fn.init(a1,a2)},o=aP.jQuery,U=aP.$,ae=aP.document,aa,S=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aZ=/^.[^:#\[\.,]*$/,aA=/\S/,O=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,e=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,b=navigator.userAgent,w,M=false,ag=[],aJ,aw=Object.prototype.toString,at=Object.prototype.hasOwnProperty,g=Array.prototype.push,H=Array.prototype.slice,u=Array.prototype.indexOf;a.fn=a.prototype={init:function(a1,a4){var a3,a5,a2,a6;if(!a1){return this}if(a1.nodeType){this.context=this[0]=a1;this.length=1;return this}if(a1==="body"&&!a4){this.context=ae;this[0]=ae.body;this.selector="body";this.length=1;return this}if(typeof a1==="string"){a3=S.exec(a1);if(a3&&(a3[1]||!a4)){if(a3[1]){a6=(a4?a4.ownerDocument||a4:ae);a2=e.exec(a1);if(a2){if(a.isPlainObject(a4)){a1=[ae.createElement(a2[1])];a.fn.attr.call(a1,a4,true)}else{a1=[a6.createElement(a2[1])]}}else{a2=L([a3[1]],[a6]);a1=(a2.cacheable?a2.fragment.cloneNode(true):a2.fragment).childNodes}return a.merge(this,a1)}else{a5=ae.getElementById(a3[2]);if(a5){if(a5.id!==a3[2]){return aa.find(a1)}this.length=1;this[0]=a5}this.context=ae;this.selector=a1;return this}}else{if(!a4&&/^\w+$/.test(a1)){this.selector=a1;this.context=ae;a1=ae.getElementsByTagName(a1);return a.merge(this,a1)}else{if(!a4||a4.jquery){return(a4||aa).find(a1)}else{return a(a4).find(a1)}}}}else{if(a.isFunction(a1)){return aa.ready(a1)}}if(a1.selector!==E){this.selector=a1.selector;this.context=a1.context}return a.makeArray(a1,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return H.call(this,0)},get:function(a1){return a1==null?this.toArray():(a1<0?this.slice(a1)[0]:this[a1])},pushStack:function(a2,a4,a1){var a3=a();if(a.isArray(a2)){g.apply(a3,a2)}else{a.merge(a3,a2)}a3.prevObject=this;a3.context=this.context;if(a4==="find"){a3.selector=this.selector+(this.selector?" ":"")+a1}else{if(a4){a3.selector=this.selector+"."+a4+"("+a1+")"}}return a3},each:function(a2,a1){return a.each(this,a2,a1)},ready:function(a1){a.bindReady();if(a.isReady){a1.call(ae,a)}else{if(ag){ag.push(a1)}}return this},eq:function(a1){return a1===-1?this.slice(a1):this.slice(a1,+a1+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(H.apply(this,arguments),"slice",H.call(arguments).join(","))},map:function(a1){return this.pushStack(a.map(this,function(a3,a2){return a1.call(a3,a2,a3)}))},end:function(){return this.prevObject||a(null)},push:g,sort:[].sort,splice:[].splice};a.fn.init.prototype=a.fn;a.extend=a.fn.extend=function(){var a6=arguments[0]||{},a5=1,a4=arguments.length,a8=false,a9,a3,a1,a2;if(typeof a6==="boolean"){a8=a6;a6=arguments[1]||{};a5=2}if(typeof a6!=="object"&&!a.isFunction(a6)){a6={}}if(a4===a5){a6=this;--a5}for(;a5<a4;a5++){if((a9=arguments[a5])!=null){for(a3 in a9){a1=a6[a3];a2=a9[a3];if(a6===a2){continue}if(a8&&a2&&(a.isPlainObject(a2)||a.isArray(a2))){var a7=a1&&(a.isPlainObject(a1)||a.isArray(a1))?a1:a.isArray(a2)?[]:{};a6[a3]=a.extend(a8,a7,a2)}else{if(a2!==E){a6[a3]=a2}}}}}return a6};a.extend({noConflict:function(a1){aP.$=U;if(a1){aP.jQuery=o}return a},isReady:false,ready:function(){if(!a.isReady){if(!ae.body){return setTimeout(a.ready,13)}a.isReady=true;if(ag){var a2,a1=0;while((a2=ag[a1++])){a2.call(ae,a)}ag=null}if(a.fn.triggerHandler){a(ae).triggerHandler("ready")}}},bindReady:function(){if(M){return}M=true;if(ae.readyState==="complete"){return a.ready()}if(ae.addEventListener){ae.addEventListener("DOMContentLoaded",aJ,false);aP.addEventListener("load",a.ready,false)}else{if(ae.attachEvent){ae.attachEvent("onreadystatechange",aJ);aP.attachEvent("onload",a.ready);var a1=false;try{a1=aP.frameElement==null}catch(a2){}if(ae.documentElement.doScroll&&a1){z()}}}},isFunction:function(a1){return aw.call(a1)==="[object Function]"},isArray:function(a1){return aw.call(a1)==="[object Array]"},isPlainObject:function(a2){if(!a2||aw.call(a2)!=="[object Object]"||a2.nodeType||a2.setInterval){return false}if(a2.constructor&&!at.call(a2,"constructor")&&!at.call(a2.constructor.prototype,"isPrototypeOf")){return false}var a1;for(a1 in a2){}return a1===E||at.call(a2,a1)},isEmptyObject:function(a2){for(var a1 in a2){return false}return true},error:function(a1){throw a1},parseJSON:function(a1){if(typeof a1!=="string"||!a1){return null}a1=a.trim(a1);if(/^[\],:{}\s]*$/.test(a1.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return aP.JSON&&aP.JSON.parse?aP.JSON.parse(a1):(new Function("return "+a1))()}else{a.error("Invalid JSON: "+a1)}},noop:function(){},globalEval:function(a3){if(a3&&aA.test(a3)){var a2=ae.getElementsByTagName("head")[0]||ae.documentElement,a1=ae.createElement("script");a1.type="text/javascript";if(a.support.scriptEval){a1.appendChild(ae.createTextNode(a3))}else{a1.text=a3}a2.insertBefore(a1,a2.firstChild);a2.removeChild(a1)}},nodeName:function(a2,a1){return a2.nodeName&&a2.nodeName.toUpperCase()===a1.toUpperCase()},each:function(a4,a8,a3){var a2,a5=0,a6=a4.length,a1=a6===E||a.isFunction(a4);if(a3){if(a1){for(a2 in a4){if(a8.apply(a4[a2],a3)===false){break}}}else{for(;a5<a6;){if(a8.apply(a4[a5++],a3)===false){break}}}}else{if(a1){for(a2 in a4){if(a8.call(a4[a2],a2,a4[a2])===false){break}}}else{for(var a7=a4[0];a5<a6&&a8.call(a7,a5,a7)!==false;a7=a4[++a5]){}}}return a4},trim:function(a1){return(a1||"").replace(O,"")},makeArray:function(a3,a2){var a1=a2||[];if(a3!=null){if(a3.length==null||typeof a3==="string"||a.isFunction(a3)||(typeof a3!=="function"&&a3.setInterval)){g.call(a1,a3)}else{a.merge(a1,a3)}}return a1},inArray:function(a3,a4){if(a4.indexOf){return a4.indexOf(a3)}for(var a1=0,a2=a4.length;a1<a2;a1++){if(a4[a1]===a3){return a1}}return -1},merge:function(a5,a3){var a4=a5.length,a2=0;if(typeof a3.length==="number"){for(var a1=a3.length;a2<a1;a2++){a5[a4++]=a3[a2]}}else{while(a3[a2]!==E){a5[a4++]=a3[a2++]}}a5.length=a4;return a5},grep:function(a2,a6,a1){var a3=[];for(var a4=0,a5=a2.length;a4<a5;a4++){if(!a1!==!a6(a2[a4],a4)){a3.push(a2[a4])}}return a3},map:function(a2,a7,a1){var a3=[],a6;for(var a4=0,a5=a2.length;a4<a5;a4++){a6=a7(a2[a4],a4,a1);if(a6!=null){a3[a3.length]=a6}}return a3.concat.apply([],a3)},guid:1,proxy:function(a3,a2,a1){if(arguments.length===2){if(typeof a2==="string"){a1=a3;a3=a1[a2];a2=E}else{if(a2&&!a.isFunction(a2)){a1=a2;a2=E}}}if(!a2&&a3){a2=function(){return a3.apply(a1||this,arguments)}}if(a3){a2.guid=a3.guid=a3.guid||a2.guid||a.guid++}return a2},uaMatch:function(a2){a2=a2.toLowerCase();var a1=/(webkit)[ \/]([\w.]+)/.exec(a2)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a2)||/(msie) ([\w.]+)/.exec(a2)||!/compatible/.test(a2)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a2)||[];return{browser:a1[1]||"",version:a1[2]||"0"}},browser:{}});w=a.uaMatch(b);if(w.browser){a.browser[w.browser]=true;a.browser.version=w.version}if(a.browser.webkit){a.browser.safari=true}if(u){a.inArray=function(a1,a2){return u.call(a2,a1)}}aa=a(ae);if(ae.addEventListener){aJ=function(){ae.removeEventListener("DOMContentLoaded",aJ,false);a.ready()}}else{if(ae.attachEvent){aJ=function(){if(ae.readyState==="complete"){ae.detachEvent("onreadystatechange",aJ);a.ready()}}}}function z(){if(a.isReady){return}try{ae.documentElement.doScroll("left")}catch(a1){setTimeout(z,1);return}a.ready()}function aY(a1,a2){if(a2.src){a.ajax({url:a2.src,async:false,dataType:"script"})}else{a.globalEval(a2.text||a2.textContent||a2.innerHTML||"")}if(a2.parentNode){a2.parentNode.removeChild(a2)}}function aq(a1,a9,a7,a3,a6,a8){var a2=a1.length;if(typeof a9==="object"){for(var a4 in a9){aq(a1,a4,a9[a4],a3,a6,a7)}return a1}if(a7!==E){a3=!a8&&a3&&a.isFunction(a7);for(var a5=0;a5<a2;a5++){a6(a1[a5],a9,a3?a7.call(a1[a5],a5,a6(a1[a5],a9)):a7,a8)}return a1}return a2?a6(a1[0],a9):E}function aS(){return(new Date).getTime()}(function(){a.support={};var a7=ae.documentElement,a6=ae.createElement("script"),a1=ae.createElement("div"),a2="script"+aS();a1.style.display="none";a1.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var a9=a1.getElementsByTagName("*"),a8=a1.getElementsByTagName("a")[0];if(!a9||!a9.length||!a8){return}a.support={leadingWhitespace:a1.firstChild.nodeType===3,tbody:!a1.getElementsByTagName("tbody").length,htmlSerialize:!!a1.getElementsByTagName("link").length,style:/red/.test(a8.getAttribute("style")),hrefNormalized:a8.getAttribute("href")==="/a",opacity:/^0.55$/.test(a8.style.opacity),cssFloat:!!a8.style.cssFloat,checkOn:a1.getElementsByTagName("input")[0].value==="on",optSelected:ae.createElement("select").appendChild(ae.createElement("option")).selected,parentNode:a1.removeChild(a1.appendChild(ae.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};a6.type="text/javascript";try{a6.appendChild(ae.createTextNode("window."+a2+"=1;"))}catch(a4){}a7.insertBefore(a6,a7.firstChild);if(aP[a2]){a.support.scriptEval=true;delete aP[a2]}try{delete a6.test}catch(a4){a.support.deleteExpando=false}a7.removeChild(a6);if(a1.attachEvent&&a1.fireEvent){a1.attachEvent("onclick",function ba(){a.support.noCloneEvent=false;a1.detachEvent("onclick",ba)});a1.cloneNode(true).fireEvent("onclick")}a1=ae.createElement("div");a1.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var a3=ae.createDocumentFragment();a3.appendChild(a1.firstChild);a.support.checkClone=a3.cloneNode(true).cloneNode(true).lastChild.checked;a(function(){var bb=ae.createElement("div");bb.style.width=bb.style.paddingLeft="1px";ae.body.appendChild(bb);a.boxModel=a.support.boxModel=bb.offsetWidth===2;ae.body.removeChild(bb).style.display="none";bb=null});var a5=function(bb){var bd=ae.createElement("div");bb="on"+bb;var bc=(bb in bd);if(!bc){bd.setAttribute(bb,"return;");bc=typeof bd[bb]==="function"}bd=null;return bc};a.support.submitBubbles=a5("submit");a.support.changeBubbles=a5("change");a7=a6=a1=a9=a8=null})();a.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var aL="jQuery"+aS(),aK=0,aW={};a.extend({cache:{},expando:aL,noData:{embed:true,object:true,applet:true},data:function(a3,a2,a5){if(a3.nodeName&&a.noData[a3.nodeName.toLowerCase()]){return}a3=a3==aP?aW:a3;var a6=a3[aL],a1=a.cache,a4;if(!a6&&typeof a2==="string"&&a5===E){return null}if(!a6){a6=++aK}if(typeof a2==="object"){a3[aL]=a6;a4=a1[a6]=a.extend(true,{},a2)}else{if(!a1[a6]){a3[aL]=a6;a1[a6]={}}}a4=a1[a6];if(a5!==E){a4[a2]=a5}return typeof a2==="string"?a4[a2]:a4},removeData:function(a3,a2){if(a3.nodeName&&a.noData[a3.nodeName.toLowerCase()]){return}a3=a3==aP?aW:a3;var a5=a3[aL],a1=a.cache,a4=a1[a5];if(a2){if(a4){delete a4[a2];if(a.isEmptyObject(a4)){a.removeData(a3)}}}else{if(a.support.deleteExpando){delete a3[a.expando]}else{if(a3.removeAttribute){a3.removeAttribute(a.expando)}}delete a1[a5]}}});a.fn.extend({data:function(a1,a3){if(typeof a1==="undefined"&&this.length){return a.data(this[0])}else{if(typeof a1==="object"){return this.each(function(){a.data(this,a1)})}}var a4=a1.split(".");a4[1]=a4[1]?"."+a4[1]:"";if(a3===E){var a2=this.triggerHandler("getData"+a4[1]+"!",[a4[0]]);if(a2===E&&this.length){a2=a.data(this[0],a1)}return a2===E&&a4[1]?this.data(a4[0]):a2}else{return this.trigger("setData"+a4[1]+"!",[a4[0],a3]).each(function(){a.data(this,a1,a3)})}},removeData:function(a1){return this.each(function(){a.removeData(this,a1)})}});a.extend({queue:function(a2,a1,a4){if(!a2){return}a1=(a1||"fx")+"queue";var a3=a.data(a2,a1);if(!a4){return a3||[]}if(!a3||a.isArray(a4)){a3=a.data(a2,a1,a.makeArray(a4))}else{a3.push(a4)}return a3},dequeue:function(a4,a3){a3=a3||"fx";var a1=a.queue(a4,a3),a2=a1.shift();if(a2==="inprogress"){a2=a1.shift()}if(a2){if(a3==="fx"){a1.unshift("inprogress")}a2.call(a4,function(){a.dequeue(a4,a3)})}}});a.fn.extend({queue:function(a1,a2){if(typeof a1!=="string"){a2=a1;a1="fx"}if(a2===E){return a.queue(this[0],a1)}return this.each(function(a4,a5){var a3=a.queue(this,a1,a2);if(a1==="fx"&&a3[0]!=="inprogress"){a.dequeue(this,a1)}})},dequeue:function(a1){return this.each(function(){a.dequeue(this,a1)})},delay:function(a2,a1){a2=a.fx?a.fx.speeds[a2]||a2:a2;a1=a1||"fx";return this.queue(a1,function(){var a3=this;setTimeout(function(){a.dequeue(a3,a1)},a2)})},clearQueue:function(a1){return this.queue(a1||"fx",[])}});var ar=/[\n\t]/g,V=/\s+/,ay=/\r/g,aT=/href|src|style/,d=/(button|input)/i,B=/(button|input|object|select|textarea)/i,k=/^(a|area)$/i,K=/radio|checkbox/;a.fn.extend({attr:function(a1,a2){return aq(this,a1,a2,true,a.attr)},removeAttr:function(a1,a2){return this.each(function(){a.attr(this,a1,"");if(this.nodeType===1){this.removeAttribute(a1)}})},addClass:function(a8){if(a.isFunction(a8)){return this.each(function(bb){var ba=a(this);ba.addClass(a8.call(this,bb,ba.attr("class")))})}if(a8&&typeof a8==="string"){var a1=(a8||"").split(V);for(var a4=0,a3=this.length;a4<a3;a4++){var a2=this[a4];if(a2.nodeType===1){if(!a2.className){a2.className=a8}else{var a5=" "+a2.className+" ",a7=a2.className;for(var a6=0,a9=a1.length;a6<a9;a6++){if(a5.indexOf(" "+a1[a6]+" ")<0){a7+=" "+a1[a6]}}a2.className=a.trim(a7)}}}}return this},removeClass:function(a6){if(a.isFunction(a6)){return this.each(function(ba){var a9=a(this);a9.removeClass(a6.call(this,ba,a9.attr("class")))})}if((a6&&typeof a6==="string")||a6===E){var a7=(a6||"").split(V);for(var a3=0,a2=this.length;a3<a2;a3++){var a5=this[a3];if(a5.nodeType===1&&a5.className){if(a6){var a4=(" "+a5.className+" ").replace(ar," ");for(var a8=0,a1=a7.length;a8<a1;a8++){a4=a4.replace(" "+a7[a8]+" "," ")}a5.className=a.trim(a4)}else{a5.className=""}}}}return this},toggleClass:function(a4,a2){var a3=typeof a4,a1=typeof a2==="boolean";if(a.isFunction(a4)){return this.each(function(a6){var a5=a(this);a5.toggleClass(a4.call(this,a6,a5.attr("class"),a2),a2)})}return this.each(function(){if(a3==="string"){var a7,a6=0,a5=a(this),a8=a2,a9=a4.split(V);while((a7=a9[a6++])){a8=a1?a8:!a5.hasClass(a7);a5[a8?"addClass":"removeClass"](a7)}}else{if(a3==="undefined"||a3==="boolean"){if(this.className){a.data(this,"__className__",this.className)}this.className=this.className||a4===false?"":a.data(this,"__className__")||""}}})},hasClass:function(a1){var a4=" "+a1+" ";for(var a3=0,a2=this.length;a3<a2;a3++){if((" "+this[a3].className+" ").replace(ar," ").indexOf(a4)>-1){return true}}return false},val:function(a8){if(a8===E){var a2=this[0];if(a2){if(a.nodeName(a2,"option")){return(a2.attributes.value||{}).specified?a2.value:a2.text}if(a.nodeName(a2,"select")){var a6=a2.selectedIndex,a9=[],ba=a2.options,a5=a2.type==="select-one";if(a6<0){return null}for(var a3=a5?a6:0,a7=a5?a6+1:ba.length;a3<a7;a3++){var a4=ba[a3];if(a4.selected){a8=a(a4).val();if(a5){return a8}a9.push(a8)}}return a9}if(K.test(a2.type)&&!a.support.checkOn){return a2.getAttribute("value")===null?"on":a2.value}return(a2.value||"").replace(ay,"")}return E}var a1=a.isFunction(a8);return this.each(function(bd){var bc=a(this),be=a8;if(this.nodeType!==1){return}if(a1){be=a8.call(this,bd,bc.val())}if(typeof be==="number"){be+=""}if(a.isArray(be)&&K.test(this.type)){this.checked=a.inArray(bc.val(),be)>=0}else{if(a.nodeName(this,"select")){var bb=a.makeArray(be);a("option",this).each(function(){this.selected=a.inArray(a(this).val(),bb)>=0});if(!bb.length){this.selectedIndex=-1}}else{this.value=be}}})}});a.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a2,a1,a7,ba){if(!a2||a2.nodeType===3||a2.nodeType===8){return E}if(ba&&a1 in a.attrFn){return a(a2)[a1](a7)}var a3=a2.nodeType!==1||!a.isXMLDoc(a2),a6=a7!==E;a1=a3&&a.props[a1]||a1;if(a2.nodeType===1){var a5=aT.test(a1);if(a1==="selected"&&!a.support.optSelected){var a8=a2.parentNode;if(a8){a8.selectedIndex;if(a8.parentNode){a8.parentNode.selectedIndex}}}if(a1 in a2&&a3&&!a5){if(a6){if(a1==="type"&&d.test(a2.nodeName)&&a2.parentNode){a.error("type property can't be changed")}a2[a1]=a7}if(a.nodeName(a2,"form")&&a2.getAttributeNode(a1)){return a2.getAttributeNode(a1).nodeValue}if(a1==="tabIndex"){var a9=a2.getAttributeNode("tabIndex");return a9&&a9.specified?a9.value:B.test(a2.nodeName)||k.test(a2.nodeName)&&a2.href?0:E}return a2[a1]}if(!a.support.style&&a3&&a1==="style"){if(a6){a2.style.cssText=""+a7}return a2.style.cssText}if(a6){a2.setAttribute(a1,""+a7)}var a4=!a.support.hrefNormalized&&a3&&a5?a2.getAttribute(a1,2):a2.getAttribute(a1);return a4===null?E:a4}return a.style(a2,a1,a7)}});var aF=/\.(.*)$/,C=function(a1){return a1.replace(/[^\w\s\.\|`]/g,function(a2){return"\\"+a2})};a.event={add:function(a4,a8,bd,a6){if(a4.nodeType===3||a4.nodeType===8){return}if(a4.setInterval&&(a4!==aP&&!a4.frameElement)){a4=aP}var a2,bc;if(bd.handler){a2=bd;bd=a2.handler}if(!bd.guid){bd.guid=a.guid++}var a9=a.data(a4);if(!a9){return}var be=a9.events=a9.events||{},a7=a9.handle,a7;if(!a7){a9.handle=a7=function(){return typeof a!=="undefined"&&!a.event.triggered?a.event.handle.apply(a7.elem,arguments):E}}a7.elem=a4;a8=a8.split(" ");var bb,a5=0,a1;while((bb=a8[a5++])){bc=a2?a.extend({},a2):{handler:bd,data:a6};if(bb.indexOf(".")>-1){a1=bb.split(".");bb=a1.shift();bc.namespace=a1.slice(0).sort().join(".")}else{a1=[];bc.namespace=""}bc.type=bb;bc.guid=bd.guid;var a3=be[bb],ba=a.event.special[bb]||{};if(!a3){a3=be[bb]=[];if(!ba.setup||ba.setup.call(a4,a6,a1,a7)===false){if(a4.addEventListener){a4.addEventListener(bb,a7,false)}else{if(a4.attachEvent){a4.attachEvent("on"+bb,a7)}}}}if(ba.add){ba.add.call(a4,bc);if(!bc.handler.guid){bc.handler.guid=bd.guid}}a3.push(bc);a.event.global[bb]=true}a4=null},global:{},remove:function(bg,bb,a2,a7){if(bg.nodeType===3||bg.nodeType===8){return}var bj,a6,a8,be=0,a4,a9,bc,a5,ba,a1,bi,bf=a.data(bg),a3=bf&&bf.events;if(!bf||!a3){return}if(bb&&bb.type){a2=bb.handler;bb=bb.type}if(!bb||typeof bb==="string"&&bb.charAt(0)==="."){bb=bb||"";for(a6 in a3){a.event.remove(bg,a6+bb)}return}bb=bb.split(" ");while((a6=bb[be++])){bi=a6;a1=null;a4=a6.indexOf(".")<0;a9=[];if(!a4){a9=a6.split(".");a6=a9.shift();bc=new RegExp("(^|\\.)"+a.map(a9.slice(0).sort(),C).join("\\.(?:.*\\.)?")+"(\\.|$)")}ba=a3[a6];if(!ba){continue}if(!a2){for(var bd=0;bd<ba.length;bd++){a1=ba[bd];if(a4||bc.test(a1.namespace)){a.event.remove(bg,bi,a1.handler,bd);ba.splice(bd--,1)}}continue}a5=a.event.special[a6]||{};for(var bd=a7||0;bd<ba.length;bd++){a1=ba[bd];if(a2.guid===a1.guid){if(a4||bc.test(a1.namespace)){if(a7==null){ba.splice(bd--,1)}if(a5.remove){a5.remove.call(bg,a1)}}if(a7!=null){break}}}if(ba.length===0||a7!=null&&ba.length===1){if(!a5.teardown||a5.teardown.call(bg,a9)===false){aj(bg,a6,bf.handle)}bj=null;delete a3[a6]}}if(a.isEmptyObject(a3)){var bh=bf.handle;if(bh){bh.elem=null}delete bf.events;delete bf.handle;if(a.isEmptyObject(bf)){a.removeData(bg)}}},trigger:function(a1,a5,a3){var ba=a1.type||a1,a4=arguments[3];if(!a4){a1=typeof a1==="object"?a1[aL]?a1:a.extend(a.Event(ba),a1):a.Event(ba);if(ba.indexOf("!")>=0){a1.type=ba=ba.slice(0,-1);a1.exclusive=true}if(!a3){a1.stopPropagation();if(a.event.global[ba]){a.each(a.cache,function(){if(this.events&&this.events[ba]){a.event.trigger(a1,a5,this.handle.elem)}})}}if(!a3||a3.nodeType===3||a3.nodeType===8){return E}a1.result=E;a1.target=a3;a5=a.makeArray(a5);a5.unshift(a1)}a1.currentTarget=a3;var a6=a.data(a3,"handle");if(a6){a6.apply(a3,a5)}var bb=a3.parentNode||a3.ownerDocument;try{if(!(a3&&a3.nodeName&&a.noData[a3.nodeName.toLowerCase()])){if(a3["on"+ba]&&a3["on"+ba].apply(a3,a5)===false){a1.result=false}}}catch(a8){}if(!a1.isPropagationStopped()&&bb){a.event.trigger(a1,a5,bb,true)}else{if(!a1.isDefaultPrevented()){var a7=a1.target,a2,bc=a.nodeName(a7,"a")&&ba==="click",a9=a.event.special[ba]||{};if((!a9._default||a9._default.call(a3,a1)===false)&&!bc&&!(a7&&a7.nodeName&&a.noData[a7.nodeName.toLowerCase()])){try{if(a7[ba]){a2=a7["on"+ba];if(a2){a7["on"+ba]=null}a.event.triggered=true;a7[ba]()}}catch(a8){}if(a2){a7["on"+ba]=a2}a.event.triggered=false}}}},handle:function(a1){var a9,a3,a2,a4,ba;a1=arguments[0]=a.event.fix(a1||aP.event);a1.currentTarget=this;a9=a1.type.indexOf(".")<0&&!a1.exclusive;if(!a9){a2=a1.type.split(".");a1.type=a2.shift();a4=new RegExp("(^|\\.)"+a2.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var ba=a.data(this,"events"),a3=ba[a1.type];if(ba&&a3){a3=a3.slice(0);for(var a6=0,a5=a3.length;a6<a5;a6++){var a8=a3[a6];if(a9||a4.test(a8.namespace)){a1.handler=a8.handler;a1.data=a8.data;a1.handleObj=a8;var a7=a8.handler.apply(this,arguments);if(a7!==E){a1.result=a7;if(a7===false){a1.preventDefault();a1.stopPropagation()}}if(a1.isImmediatePropagationStopped()){break}}}}return a1.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 originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a4){if(a4[aL]){return a4}var a2=a4;a4=a.Event(a2);for(var a3=this.props.length,a6;a3;){a6=this.props[--a3];a4[a6]=a2[a6]}if(!a4.target){a4.target=a4.srcElement||ae}if(a4.target.nodeType===3){a4.target=a4.target.parentNode}if(!a4.relatedTarget&&a4.fromElement){a4.relatedTarget=a4.fromElement===a4.target?a4.toElement:a4.fromElement}if(a4.pageX==null&&a4.clientX!=null){var a5=ae.documentElement,a1=ae.body;a4.pageX=a4.clientX+(a5&&a5.scrollLeft||a1&&a1.scrollLeft||0)-(a5&&a5.clientLeft||a1&&a1.clientLeft||0);a4.pageY=a4.clientY+(a5&&a5.scrollTop||a1&&a1.scrollTop||0)-(a5&&a5.clientTop||a1&&a1.clientTop||0)}if(!a4.which&&((a4.charCode||a4.charCode===0)?a4.charCode:a4.keyCode)){a4.which=a4.charCode||a4.keyCode}if(!a4.metaKey&&a4.ctrlKey){a4.metaKey=a4.ctrlKey}if(!a4.which&&a4.button!==E){a4.which=(a4.button&1?1:(a4.button&2?3:(a4.button&4?2:0)))}return a4},guid:100000000,proxy:a.proxy,special:{ready:{setup:a.bindReady,teardown:a.noop},live:{add:function(a1){a.event.add(this,a1.origType,a.extend({},a1,{handler:Y}))},remove:function(a2){var a1=true,a3=a2.origType.replace(aF,"");a.each(a.data(this,"events").live||[],function(){if(a3===this.origType.replace(aF,"")){a1=false;return false}});if(a1){a.event.remove(this,a2.origType,Y)}}},beforeunload:{setup:function(a3,a2,a1){if(this.setInterval){this.onbeforeunload=a1}return false},teardown:function(a2,a1){if(this.onbeforeunload===a1){this.onbeforeunload=null}}}}};var aj=ae.removeEventListener?function(a2,a1,a3){a2.removeEventListener(a1,a3,false)}:function(a2,a1,a3){a2.detachEvent("on"+a1,a3)};a.Event=function(a1){if(!this.preventDefault){return new a.Event(a1)}if(a1&&a1.type){this.originalEvent=a1;this.type=a1.type}else{this.type=a1}this.timeStamp=aS();this[aL]=true};function aU(){return false}function f(){return true}a.Event.prototype={preventDefault:function(){this.isDefaultPrevented=f;var a1=this.originalEvent;if(!a1){return}if(a1.preventDefault){a1.preventDefault()}a1.returnValue=false},stopPropagation:function(){this.isPropagationStopped=f;var a1=this.originalEvent;if(!a1){return}if(a1.stopPropagation){a1.stopPropagation()}a1.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=f;this.stopPropagation()},isDefaultPrevented:aU,isPropagationStopped:aU,isImmediatePropagationStopped:aU};var T=function(a2){var a1=a2.relatedTarget;try{while(a1&&a1!==this){a1=a1.parentNode}if(a1!==this){a2.type=a2.data;a.event.handle.apply(this,arguments)}}catch(a3){}},aB=function(a1){a1.type=a1.data;a.event.handle.apply(this,arguments)};a.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a2,a1){a.event.special[a2]={setup:function(a3){a.event.add(this,a1,a3&&a3.selector?aB:T,a2)},teardown:function(a3){a.event.remove(this,a1,a3&&a3.selector?aB:T)}}});if(!a.support.submitBubbles){a.event.special.submit={setup:function(a2,a1){if(this.nodeName.toLowerCase()!=="form"){a.event.add(this,"click.specialSubmit",function(a5){var a4=a5.target,a3=a4.type;if((a3==="submit"||a3==="image")&&a(a4).closest("form").length){return aD("submit",this,arguments)}});a.event.add(this,"keypress.specialSubmit",function(a5){var a4=a5.target,a3=a4.type;if((a3==="text"||a3==="password")&&a(a4).closest("form").length&&a5.keyCode===13){return aD("submit",this,arguments)}})}else{return false}},teardown:function(a1){a.event.remove(this,".specialSubmit")}}}if(!a.support.changeBubbles){var au=/textarea|input|select/i,aV,j=function(a2){var a1=a2.type,a3=a2.value;if(a1==="radio"||a1==="checkbox"){a3=a2.checked}else{if(a1==="select-multiple"){a3=a2.selectedIndex>-1?a.map(a2.options,function(a4){return a4.selected}).join("-"):""}else{if(a2.nodeName.toLowerCase()==="select"){a3=a2.selectedIndex}}}return a3},R=function R(a3){var a1=a3.target,a2,a4;if(!au.test(a1.nodeName)||a1.readOnly){return}a2=a.data(a1,"_change_data");a4=j(a1);if(a3.type!=="focusout"||a1.type!=="radio"){a.data(a1,"_change_data",a4)}if(a2===E||a4===a2){return}if(a2!=null||a4){a3.type="change";return a.event.trigger(a3,arguments[1],a1)}};a.event.special.change={filters:{focusout:R,click:function(a3){var a2=a3.target,a1=a2.type;if(a1==="radio"||a1==="checkbox"||a2.nodeName.toLowerCase()==="select"){return R.call(this,a3)}},keydown:function(a3){var a2=a3.target,a1=a2.type;if((a3.keyCode===13&&a2.nodeName.toLowerCase()!=="textarea")||(a3.keyCode===32&&(a1==="checkbox"||a1==="radio"))||a1==="select-multiple"){return R.call(this,a3)}},beforeactivate:function(a2){var a1=a2.target;a.data(a1,"_change_data",j(a1))}},setup:function(a3,a2){if(this.type==="file"){return false}for(var a1 in aV){a.event.add(this,a1+".specialChange",aV[a1])}return au.test(this.nodeName)},teardown:function(a1){a.event.remove(this,".specialChange");return au.test(this.nodeName)}};aV=a.event.special.change.filters}function aD(a2,a3,a1){a1[0].type=a2;return a.event.handle.apply(a3,a1)}if(ae.addEventListener){a.each({focus:"focusin",blur:"focusout"},function(a3,a1){a.event.special[a1]={setup:function(){this.addEventListener(a3,a2,true)},teardown:function(){this.removeEventListener(a3,a2,true)}};function a2(a4){a4=a.event.fix(a4);a4.type=a1;return a.event.handle.call(this,a4)}})}a.each(["bind","one"],function(a2,a1){a.fn[a1]=function(a8,a9,a7){if(typeof a8==="object"){for(var a5 in a8){this[a1](a5,a9,a8[a5],a7)}return this}if(a.isFunction(a9)){a7=a9;a9=E}var a6=a1==="one"?a.proxy(a7,function(ba){a(this).unbind(ba,a6);return a7.apply(this,arguments)}):a7;if(a8==="unload"&&a1!=="one"){this.one(a8,a9,a7)}else{for(var a4=0,a3=this.length;a4<a3;a4++){a.event.add(this[a4],a8,a6,a9)}}return this}});a.fn.extend({unbind:function(a5,a4){if(typeof a5==="object"&&!a5.preventDefault){for(var a3 in a5){this.unbind(a3,a5[a3])}}else{for(var a2=0,a1=this.length;a2<a1;a2++){a.event.remove(this[a2],a5,a4)}}return this},delegate:function(a1,a2,a4,a3){return this.live(a2,a4,a3,a1)},undelegate:function(a1,a2,a3){if(arguments.length===0){return this.unbind("live")}else{return this.die(a2,null,a3,a1)}},trigger:function(a1,a2){return this.each(function(){a.event.trigger(a1,a2,this)})},triggerHandler:function(a1,a3){if(this[0]){var a2=a.Event(a1);a2.preventDefault();a2.stopPropagation();a.event.trigger(a2,a3,this[0]);return a2.result}},toggle:function(a3){var a1=arguments,a2=1;while(a2<a1.length){a.proxy(a3,a1[a2++])}return this.click(a.proxy(a3,function(a4){var a5=(a.data(this,"lastToggle"+a3.guid)||0)%a2;a.data(this,"lastToggle"+a3.guid,a5+1);a4.preventDefault();return a1[a5].apply(this,arguments)||false}))},hover:function(a1,a2){return this.mouseenter(a1).mouseleave(a2||a1)}});var az={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};a.each(["live","die"],function(a2,a1){a.fn[a1]=function(ba,a7,bc,a5){var bb,a8=0,a9,a4,bd,a6=a5||this.selector,a3=a5?this:a(this.context);if(a.isFunction(a7)){bc=a7;a7=E}ba=(ba||"").split(" ");while((bb=ba[a8++])!=null){a9=aF.exec(bb);a4="";if(a9){a4=a9[0];bb=bb.replace(aF,"")}if(bb==="hover"){ba.push("mouseenter"+a4,"mouseleave"+a4);continue}bd=bb;if(bb==="focus"||bb==="blur"){ba.push(az[bb]+a4);bb=bb+a4}else{bb=(az[bb]||bb)+a4}if(a1==="live"){a3.each(function(){a.event.add(this,n(bb,a6),{data:a7,selector:a6,handler:bc,origType:bb,origHandler:bc,preType:bd})})}else{a3.unbind(n(bb,a6),bc)}}return this}});function Y(a1){var bb,a2=[],be=[],ba=arguments,bd,a9,bc,a4,a6,a8,a5,a7,bf=a.data(this,"events");if(a1.liveFired===this||!bf||!bf.live||a1.button&&a1.type==="click"){return}a1.liveFired=this;var a3=bf.live.slice(0);for(a6=0;a6<a3.length;a6++){bc=a3[a6];if(bc.origType.replace(aF,"")===a1.type){be.push(bc.selector)}else{a3.splice(a6--,1)}}a9=a(a1.target).closest(be,a1.currentTarget);for(a8=0,a5=a9.length;a8<a5;a8++){for(a6=0;a6<a3.length;a6++){bc=a3[a6];if(a9[a8].selector===bc.selector){a4=a9[a8].elem;bd=null;if(bc.preType==="mouseenter"||bc.preType==="mouseleave"){bd=a(a1.relatedTarget).closest(bc.selector)[0]}if(!bd||bd!==a4){a2.push({elem:a4,handleObj:bc})}}}}for(a8=0,a5=a2.length;a8<a5;a8++){a9=a2[a8];a1.currentTarget=a9.elem;a1.data=a9.handleObj.data;a1.handleObj=a9.handleObj;if(a9.handleObj.origHandler.apply(a9.elem,ba)===false){bb=false;break}}return bb}function n(a2,a1){return"live."+(a2&&a2!=="*"?a2+".":"")+a1.replace(/\./g,"`").replace(/ /g,"&")}a.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(a2,a1){a.fn[a1]=function(a3){return a3?this.bind(a1,a3):this.trigger(a1)};if(a.attrFn){a.attrFn[a1]=true}});if(aP.attachEvent&&!aP.addEventListener){aP.attachEvent("onunload",function(){for(var a2 in a.cache){if(a.cache[a2].handle){try{a.event.remove(a.cache[a2].handle.elem)}catch(a1){}}}});
/*
 * Sizzle CSS Selector Engine - v1.0
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
}(function(){var bc=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bd=0,bf=Object.prototype.toString,a7=false,a6=true;[0,0].sort(function(){a6=false;return 0});var a3=function(bo,bj,br,bs){br=br||[];var bu=bj=bj||ae;if(bj.nodeType!==1&&bj.nodeType!==9){return[]}if(!bo||typeof bo!=="string"){return br}var bp=[],bl,bw,bz,bk,bn=true,bm=a4(bj),bt=bo;while((bc.exec(""),bl=bc.exec(bt))!==null){bt=bl[3];bp.push(bl[1]);if(bl[2]){bk=bl[3];break}}if(bp.length>1&&a8.exec(bo)){if(bp.length===2&&a9.relative[bp[0]]){bw=bg(bp[0]+bp[1],bj)}else{bw=a9.relative[bp[0]]?[bj]:a3(bp.shift(),bj);while(bp.length){bo=bp.shift();if(a9.relative[bo]){bo+=bp.shift()}bw=bg(bo,bw)}}}else{if(!bs&&bp.length>1&&bj.nodeType===9&&!bm&&a9.match.ID.test(bp[0])&&!a9.match.ID.test(bp[bp.length-1])){var bv=a3.find(bp.shift(),bj,bm);bj=bv.expr?a3.filter(bv.expr,bv.set)[0]:bv.set[0]}if(bj){var bv=bs?{expr:bp.pop(),set:bb(bs)}:a3.find(bp.pop(),bp.length===1&&(bp[0]==="~"||bp[0]==="+")&&bj.parentNode?bj.parentNode:bj,bm);bw=bv.expr?a3.filter(bv.expr,bv.set):bv.set;if(bp.length>0){bz=bb(bw)}else{bn=false}while(bp.length){var by=bp.pop(),bx=by;if(!a9.relative[by]){by=""}else{bx=bp.pop()}if(bx==null){bx=bj}a9.relative[by](bz,bx,bm)}}else{bz=bp=[]}}if(!bz){bz=bw}if(!bz){a3.error(by||bo)}if(bf.call(bz)==="[object Array]"){if(!bn){br.push.apply(br,bz)}else{if(bj&&bj.nodeType===1){for(var bq=0;bz[bq]!=null;bq++){if(bz[bq]&&(bz[bq]===true||bz[bq].nodeType===1&&ba(bj,bz[bq]))){br.push(bw[bq])}}}else{for(var bq=0;bz[bq]!=null;bq++){if(bz[bq]&&bz[bq].nodeType===1){br.push(bw[bq])}}}}}else{bb(bz,br)}if(bk){a3(bk,bu,br,bs);a3.uniqueSort(br)}return br};a3.uniqueSort=function(bk){if(be){a7=a6;bk.sort(be);if(a7){for(var bj=1;bj<bk.length;bj++){if(bk[bj]===bk[bj-1]){bk.splice(bj--,1)}}}}return bk};a3.matches=function(bj,bk){return a3(bj,null,null,bk)};a3.find=function(bq,bj,br){var bp,bn;if(!bq){return[]}for(var bm=0,bl=a9.order.length;bm<bl;bm++){var bo=a9.order[bm],bn;if((bn=a9.leftMatch[bo].exec(bq))){var bk=bn[1];bn.splice(1,1);if(bk.substr(bk.length-1)!=="\\"){bn[1]=(bn[1]||"").replace(/\\/g,"");bp=a9.find[bo](bn,bj,br);if(bp!=null){bq=bq.replace(a9.match[bo],"");break}}}}if(!bp){bp=bj.getElementsByTagName("*")}return{set:bp,expr:bq}};a3.filter=function(bu,bt,bx,bn){var bl=bu,bz=[],br=bt,bp,bj,bq=bt&&bt[0]&&a4(bt[0]);while(bu&&bt.length){for(var bs in a9.filter){if((bp=a9.leftMatch[bs].exec(bu))!=null&&bp[2]){var bk=a9.filter[bs],by,bw,bm=bp[1];bj=false;bp.splice(1,1);if(bm.substr(bm.length-1)==="\\"){continue}if(br===bz){bz=[]}if(a9.preFilter[bs]){bp=a9.preFilter[bs](bp,br,bx,bz,bn,bq);if(!bp){bj=by=true}else{if(bp===true){continue}}}if(bp){for(var bo=0;(bw=br[bo])!=null;bo++){if(bw){by=bk(bw,bp,bo,br);var bv=bn^!!by;if(bx&&by!=null){if(bv){bj=true}else{br[bo]=false}}else{if(bv){bz.push(bw);bj=true}}}}}if(by!==E){if(!bx){br=bz}bu=bu.replace(a9.match[bs],"");if(!bj){return[]}break}}}if(bu===bl){if(bj==null){a3.error(bu)}else{break}}bl=bu}return br};a3.error=function(bj){throw"Syntax error, unrecognized expression: "+bj};var a9=a3.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(bj){return bj.getAttribute("href")}},relative:{"+":function(bp,bk){var bm=typeof bk==="string",bo=bm&&!/\W/.test(bk),bq=bm&&!bo;if(bo){bk=bk.toLowerCase()}for(var bl=0,bj=bp.length,bn;bl<bj;bl++){if((bn=bp[bl])){while((bn=bn.previousSibling)&&bn.nodeType!==1){}bp[bl]=bq||bn&&bn.nodeName.toLowerCase()===bk?bn||false:bn===bk}}if(bq){a3.filter(bk,bp,true)}},">":function(bp,bk){var bn=typeof bk==="string";if(bn&&!/\W/.test(bk)){bk=bk.toLowerCase();for(var bl=0,bj=bp.length;bl<bj;bl++){var bo=bp[bl];if(bo){var bm=bo.parentNode;bp[bl]=bm.nodeName.toLowerCase()===bk?bm:false}}}else{for(var bl=0,bj=bp.length;bl<bj;bl++){var bo=bp[bl];if(bo){bp[bl]=bn?bo.parentNode:bo.parentNode===bk}}if(bn){a3.filter(bk,bp,true)}}},"":function(bm,bk,bo){var bl=bd++,bj=bh;if(typeof bk==="string"&&!/\W/.test(bk)){var bn=bk=bk.toLowerCase();bj=a1}bj("parentNode",bk,bl,bm,bn,bo)},"~":function(bm,bk,bo){var bl=bd++,bj=bh;if(typeof bk==="string"&&!/\W/.test(bk)){var bn=bk=bk.toLowerCase();bj=a1}bj("previousSibling",bk,bl,bm,bn,bo)}},find:{ID:function(bk,bl,bm){if(typeof bl.getElementById!=="undefined"&&!bm){var bj=bl.getElementById(bk[1]);return bj?[bj]:[]}},NAME:function(bl,bo){if(typeof bo.getElementsByName!=="undefined"){var bk=[],bn=bo.getElementsByName(bl[1]);for(var bm=0,bj=bn.length;bm<bj;bm++){if(bn[bm].getAttribute("name")===bl[1]){bk.push(bn[bm])}}return bk.length===0?null:bk}},TAG:function(bj,bk){return bk.getElementsByTagName(bj[1])}},preFilter:{CLASS:function(bm,bk,bl,bj,bp,bq){bm=" "+bm[1].replace(/\\/g,"")+" ";if(bq){return bm}for(var bn=0,bo;(bo=bk[bn])!=null;bn++){if(bo){if(bp^(bo.className&&(" "+bo.className+" ").replace(/[\t\n]/g," ").indexOf(bm)>=0)){if(!bl){bj.push(bo)}}else{if(bl){bk[bn]=false}}}}return false},ID:function(bj){return bj[1].replace(/\\/g,"")},TAG:function(bk,bj){return bk[1].toLowerCase()},CHILD:function(bj){if(bj[1]==="nth"){var bk=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(bj[2]==="even"&&"2n"||bj[2]==="odd"&&"2n+1"||!/\D/.test(bj[2])&&"0n+"+bj[2]||bj[2]);bj[2]=(bk[1]+(bk[2]||1))-0;bj[3]=bk[3]-0}bj[0]=bd++;return bj},ATTR:function(bn,bk,bl,bj,bo,bp){var bm=bn[1].replace(/\\/g,"");if(!bp&&a9.attrMap[bm]){bn[1]=a9.attrMap[bm]}if(bn[2]==="~="){bn[4]=" "+bn[4]+" "}return bn},PSEUDO:function(bn,bk,bl,bj,bo){if(bn[1]==="not"){if((bc.exec(bn[3])||"").length>1||/^\w/.test(bn[3])){bn[3]=a3(bn[3],null,null,bk)}else{var bm=a3.filter(bn[3],bk,bl,true^bo);if(!bl){bj.push.apply(bj,bm)}return false}}else{if(a9.match.POS.test(bn[0])||a9.match.CHILD.test(bn[0])){return true}}return bn},POS:function(bj){bj.unshift(true);return bj}},filters:{enabled:function(bj){return bj.disabled===false&&bj.type!=="hidden"},disabled:function(bj){return bj.disabled===true},checked:function(bj){return bj.checked===true},selected:function(bj){bj.parentNode.selectedIndex;return bj.selected===true},parent:function(bj){return !!bj.firstChild},empty:function(bj){return !bj.firstChild},has:function(bl,bk,bj){return !!a3(bj[3],bl).length},header:function(bj){return/h\d/i.test(bj.nodeName)},text:function(bj){return"text"===bj.type},radio:function(bj){return"radio"===bj.type},checkbox:function(bj){return"checkbox"===bj.type},file:function(bj){return"file"===bj.type},password:function(bj){return"password"===bj.type},submit:function(bj){return"submit"===bj.type},image:function(bj){return"image"===bj.type},reset:function(bj){return"reset"===bj.type},button:function(bj){return"button"===bj.type||bj.nodeName.toLowerCase()==="button"},input:function(bj){return/input|select|textarea|button/i.test(bj.nodeName)}},setFilters:{first:function(bk,bj){return bj===0},last:function(bl,bk,bj,bm){return bk===bm.length-1},even:function(bk,bj){return bj%2===0},odd:function(bk,bj){return bj%2===1},lt:function(bl,bk,bj){return bk<bj[3]-0},gt:function(bl,bk,bj){return bk>bj[3]-0},nth:function(bl,bk,bj){return bj[3]-0===bk},eq:function(bl,bk,bj){return bj[3]-0===bk}},filter:{PSEUDO:function(bp,bl,bm,bq){var bk=bl[1],bn=a9.filters[bk];if(bn){return bn(bp,bm,bl,bq)}else{if(bk==="contains"){return(bp.textContent||bp.innerText||a2([bp])||"").indexOf(bl[3])>=0}else{if(bk==="not"){var bo=bl[3];for(var bm=0,bj=bo.length;bm<bj;bm++){if(bo[bm]===bp){return false}}return true}else{a3.error("Syntax error, unrecognized expression: "+bk)}}}},CHILD:function(bj,bm){var bp=bm[1],bk=bj;switch(bp){case"only":case"first":while((bk=bk.previousSibling)){if(bk.nodeType===1){return false}}if(bp==="first"){return true}bk=bj;case"last":while((bk=bk.nextSibling)){if(bk.nodeType===1){return false}}return true;case"nth":var bl=bm[2],bs=bm[3];if(bl===1&&bs===0){return true}var bo=bm[0],br=bj.parentNode;if(br&&(br.sizcache!==bo||!bj.nodeIndex)){var bn=0;for(bk=br.firstChild;bk;bk=bk.nextSibling){if(bk.nodeType===1){bk.nodeIndex=++bn}}br.sizcache=bo}var bq=bj.nodeIndex-bs;if(bl===0){return bq===0}else{return(bq%bl===0&&bq/bl>=0)}}},ID:function(bk,bj){return bk.nodeType===1&&bk.getAttribute("id")===bj},TAG:function(bk,bj){return(bj==="*"&&bk.nodeType===1)||bk.nodeName.toLowerCase()===bj},CLASS:function(bk,bj){return(" "+(bk.className||bk.getAttribute("class"))+" ").indexOf(bj)>-1},ATTR:function(bo,bm){var bl=bm[1],bj=a9.attrHandle[bl]?a9.attrHandle[bl](bo):bo[bl]!=null?bo[bl]:bo.getAttribute(bl),bp=bj+"",bn=bm[2],bk=bm[4];return bj==null?bn==="!=":bn==="="?bp===bk:bn==="*="?bp.indexOf(bk)>=0:bn==="~="?(" "+bp+" ").indexOf(bk)>=0:!bk?bp&&bj!==false:bn==="!="?bp!==bk:bn==="^="?bp.indexOf(bk)===0:bn==="$="?bp.substr(bp.length-bk.length)===bk:bn==="|="?bp===bk||bp.substr(0,bk.length+1)===bk+"-":false},POS:function(bn,bk,bl,bo){var bj=bk[2],bm=a9.setFilters[bj];if(bm){return bm(bn,bl,bk,bo)}}}};var a8=a9.match.POS;for(var a5 in a9.match){a9.match[a5]=new RegExp(a9.match[a5].source+/(?![^\[]*\])(?![^\(]*\))/.source);a9.leftMatch[a5]=new RegExp(/(^(?:.|\r|\n)*?)/.source+a9.match[a5].source.replace(/\\(\d+)/g,function(bk,bj){return"\\"+(bj-0+1)}))}var bb=function(bk,bj){bk=Array.prototype.slice.call(bk,0);if(bj){bj.push.apply(bj,bk);return bj}return bk};try{Array.prototype.slice.call(ae.documentElement.childNodes,0)[0].nodeType}catch(bi){bb=function(bn,bm){var bk=bm||[];if(bf.call(bn)==="[object Array]"){Array.prototype.push.apply(bk,bn)}else{if(typeof bn.length==="number"){for(var bl=0,bj=bn.length;bl<bj;bl++){bk.push(bn[bl])}}else{for(var bl=0;bn[bl];bl++){bk.push(bn[bl])}}}return bk}}var be;if(ae.documentElement.compareDocumentPosition){be=function(bk,bj){if(!bk.compareDocumentPosition||!bj.compareDocumentPosition){if(bk==bj){a7=true}return bk.compareDocumentPosition?-1:1}var bl=bk.compareDocumentPosition(bj)&4?-1:bk===bj?0:1;if(bl===0){a7=true}return bl}}else{if("sourceIndex" in ae.documentElement){be=function(bk,bj){if(!bk.sourceIndex||!bj.sourceIndex){if(bk==bj){a7=true}return bk.sourceIndex?-1:1}var bl=bk.sourceIndex-bj.sourceIndex;if(bl===0){a7=true}return bl}}else{if(ae.createRange){be=function(bm,bk){if(!bm.ownerDocument||!bk.ownerDocument){if(bm==bk){a7=true}return bm.ownerDocument?-1:1}var bl=bm.ownerDocument.createRange(),bj=bk.ownerDocument.createRange();bl.setStart(bm,0);bl.setEnd(bm,0);bj.setStart(bk,0);bj.setEnd(bk,0);var bn=bl.compareBoundaryPoints(Range.START_TO_END,bj);if(bn===0){a7=true}return bn}}}}function a2(bj){var bk="",bm;for(var bl=0;bj[bl];bl++){bm=bj[bl];if(bm.nodeType===3||bm.nodeType===4){bk+=bm.nodeValue}else{if(bm.nodeType!==8){bk+=a2(bm.childNodes)}}}return bk}(function(){var bk=ae.createElement("div"),bl="script"+(new Date).getTime();bk.innerHTML="<a name='"+bl+"'/>";var bj=ae.documentElement;bj.insertBefore(bk,bj.firstChild);if(ae.getElementById(bl)){a9.find.ID=function(bn,bo,bp){if(typeof bo.getElementById!=="undefined"&&!bp){var bm=bo.getElementById(bn[1]);return bm?bm.id===bn[1]||typeof bm.getAttributeNode!=="undefined"&&bm.getAttributeNode("id").nodeValue===bn[1]?[bm]:E:[]}};a9.filter.ID=function(bo,bm){var bn=typeof bo.getAttributeNode!=="undefined"&&bo.getAttributeNode("id");return bo.nodeType===1&&bn&&bn.nodeValue===bm}}bj.removeChild(bk);bj=bk=null})();(function(){var bj=ae.createElement("div");bj.appendChild(ae.createComment(""));if(bj.getElementsByTagName("*").length>0){a9.find.TAG=function(bk,bo){var bn=bo.getElementsByTagName(bk[1]);if(bk[1]==="*"){var bm=[];for(var bl=0;bn[bl];bl++){if(bn[bl].nodeType===1){bm.push(bn[bl])}}bn=bm}return bn}}bj.innerHTML="<a href='#'></a>";if(bj.firstChild&&typeof bj.firstChild.getAttribute!=="undefined"&&bj.firstChild.getAttribute("href")!=="#"){a9.attrHandle.href=function(bk){return bk.getAttribute("href",2)}}bj=null})();if(ae.querySelectorAll){(function(){var bj=a3,bl=ae.createElement("div");bl.innerHTML="<p class='TEST'></p>";if(bl.querySelectorAll&&bl.querySelectorAll(".TEST").length===0){return}a3=function(bp,bo,bm,bn){bo=bo||ae;if(!bn&&bo.nodeType===9&&!a4(bo)){try{return bb(bo.querySelectorAll(bp),bm)}catch(bq){}}return bj(bp,bo,bm,bn)};for(var bk in bj){a3[bk]=bj[bk]}bl=null})()}(function(){var bj=ae.createElement("div");bj.innerHTML="<div class='test e'></div><div class='test'></div>";if(!bj.getElementsByClassName||bj.getElementsByClassName("e").length===0){return}bj.lastChild.className="e";if(bj.getElementsByClassName("e").length===1){return}a9.order.splice(1,0,"CLASS");a9.find.CLASS=function(bk,bl,bm){if(typeof bl.getElementsByClassName!=="undefined"&&!bm){return bl.getElementsByClassName(bk[1])}};bj=null})();function a1(bk,bp,bo,bs,bq,br){for(var bm=0,bl=bs.length;bm<bl;bm++){var bj=bs[bm];if(bj){bj=bj[bk];var bn=false;while(bj){if(bj.sizcache===bo){bn=bs[bj.sizset];break}if(bj.nodeType===1&&!br){bj.sizcache=bo;bj.sizset=bm}if(bj.nodeName.toLowerCase()===bp){bn=bj;break}bj=bj[bk]}bs[bm]=bn}}}function bh(bk,bp,bo,bs,bq,br){for(var bm=0,bl=bs.length;bm<bl;bm++){var bj=bs[bm];if(bj){bj=bj[bk];var bn=false;while(bj){if(bj.sizcache===bo){bn=bs[bj.sizset];break}if(bj.nodeType===1){if(!br){bj.sizcache=bo;bj.sizset=bm}if(typeof bp!=="string"){if(bj===bp){bn=true;break}}else{if(a3.filter(bp,[bj]).length>0){bn=bj;break}}}bj=bj[bk]}bs[bm]=bn}}}var ba=ae.compareDocumentPosition?function(bk,bj){return !!(bk.compareDocumentPosition(bj)&16)}:function(bk,bj){return bk!==bj&&(bk.contains?bk.contains(bj):true)};var a4=function(bj){var bk=(bj?bj.ownerDocument||bj:0).documentElement;return bk?bk.nodeName!=="HTML":false};var bg=function(bj,bq){var bm=[],bn="",bo,bl=bq.nodeType?[bq]:bq;while((bo=a9.match.PSEUDO.exec(bj))){bn+=bo[0];bj=bj.replace(a9.match.PSEUDO,"")}bj=a9.relative[bj]?bj+"*":bj;for(var bp=0,bk=bl.length;bp<bk;bp++){a3(bj,bl[bp],bm)}return a3.filter(bn,bm)};a.find=a3;a.expr=a3.selectors;a.expr[":"]=a.expr.filters;a.unique=a3.uniqueSort;a.text=a2;a.isXMLDoc=a4;a.contains=ba;return;aP.Sizzle=a3})();var P=/Until$/,ab=/^(?:parents|prevUntil|prevAll)/,aO=/,/,H=Array.prototype.slice;var al=function(a4,a3,a1){if(a.isFunction(a3)){return a.grep(a4,function(a6,a5){return !!a3.call(a6,a5,a6)===a1})}else{if(a3.nodeType){return a.grep(a4,function(a6,a5){return(a6===a3)===a1})}else{if(typeof a3==="string"){var a2=a.grep(a4,function(a5){return a5.nodeType===1});if(aZ.test(a3)){return a.filter(a3,a2,!a1)}else{a3=a.filter(a3,a2)}}}}return a.grep(a4,function(a6,a5){return(a.inArray(a6,a3)>=0)===a1})};a.fn.extend({find:function(a1){var a3=this.pushStack("","find",a1),a6=0;for(var a4=0,a2=this.length;a4<a2;a4++){a6=a3.length;a.find(a1,this[a4],a3);if(a4>0){for(var a7=a6;a7<a3.length;a7++){for(var a5=0;a5<a6;a5++){if(a3[a5]===a3[a7]){a3.splice(a7--,1);break}}}}}return a3},has:function(a2){var a1=a(a2);return this.filter(function(){for(var a4=0,a3=a1.length;a4<a3;a4++){if(a.contains(this,a1[a4])){return true}}})},not:function(a1){return this.pushStack(al(this,a1,false),"not",a1)},filter:function(a1){return this.pushStack(al(this,a1,true),"filter",a1)},is:function(a1){return !!a1&&a.filter(a1,this).length>0},closest:function(ba,a1){if(a.isArray(ba)){var a7=[],a9=this[0],a6,a5={},a3;if(a9&&ba.length){for(var a4=0,a2=ba.length;a4<a2;a4++){a3=ba[a4];if(!a5[a3]){a5[a3]=a.expr.match.POS.test(a3)?a(a3,a1||this.context):a3}}while(a9&&a9.ownerDocument&&a9!==a1){for(a3 in a5){a6=a5[a3];if(a6.jquery?a6.index(a9)>-1:a(a9).is(a6)){a7.push({selector:a3,elem:a9});delete a5[a3]}}a9=a9.parentNode}}return a7}var a8=a.expr.match.POS.test(ba)?a(ba,a1||this.context):null;return this.map(function(bb,bc){while(bc&&bc.ownerDocument&&bc!==a1){if(a8?a8.index(bc)>-1:a(bc).is(ba)){return bc}bc=bc.parentNode}return null})},index:function(a1){if(!a1||typeof a1==="string"){return a.inArray(this[0],a1?a(a1):this.parent().children())}return a.inArray(a1.jquery?a1[0]:a1,this)},add:function(a1,a2){var a4=typeof a1==="string"?a(a1,a2||this.context):a.makeArray(a1),a3=a.merge(this.get(),a4);return this.pushStack(A(a4[0])||A(a3[0])?a3:a.unique(a3))},andSelf:function(){return this.add(this.prevObject)}});function A(a1){return !a1||!a1.parentNode||a1.parentNode.nodeType===11}a.each({parent:function(a2){var a1=a2.parentNode;return a1&&a1.nodeType!==11?a1:null},parents:function(a1){return a.dir(a1,"parentNode")},parentsUntil:function(a2,a1,a3){return a.dir(a2,"parentNode",a3)},next:function(a1){return a.nth(a1,2,"nextSibling")},prev:function(a1){return a.nth(a1,2,"previousSibling")},nextAll:function(a1){return a.dir(a1,"nextSibling")},prevAll:function(a1){return a.dir(a1,"previousSibling")},nextUntil:function(a2,a1,a3){return a.dir(a2,"nextSibling",a3)},prevUntil:function(a2,a1,a3){return a.dir(a2,"previousSibling",a3)},siblings:function(a1){return a.sibling(a1.parentNode.firstChild,a1)},children:function(a1){return a.sibling(a1.firstChild)},contents:function(a1){return a.nodeName(a1,"iframe")?a1.contentDocument||a1.contentWindow.document:a.makeArray(a1.childNodes)}},function(a1,a2){a.fn[a1]=function(a5,a3){var a4=a.map(this,a2,a5);if(!P.test(a1)){a3=a5}if(a3&&typeof a3==="string"){a4=a.filter(a3,a4)}a4=this.length>1?a.unique(a4):a4;if((this.length>1||aO.test(a3))&&ab.test(a1)){a4=a4.reverse()}return this.pushStack(a4,a1,H.call(arguments).join(","))}});a.extend({filter:function(a3,a1,a2){if(a2){a3=":not("+a3+")"}return a.find.matches(a3,a1)},dir:function(a3,a2,a5){var a1=[],a4=a3[a2];while(a4&&a4.nodeType!==9&&(a5===E||a4.nodeType!==1||!a(a4).is(a5))){if(a4.nodeType===1){a1.push(a4)}a4=a4[a2]}return a1},nth:function(a5,a1,a3,a4){a1=a1||1;var a2=0;for(;a5;a5=a5[a3]){if(a5.nodeType===1&&++a2===a1){break}}return a5},sibling:function(a3,a2){var a1=[];for(;a3;a3=a3.nextSibling){if(a3.nodeType===1&&a3!==a2){a1.push(a3)}}return a1}});var W=/ jQuery\d+="(?:\d+|null)"/g,ac=/^\s+/,J=/(<([\w:]+)[^>]*?)\/>/g,ao=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,c=/<([\w:]+)/,v=/<tbody/i,N=/<|&#?\w+;/,G=/<script|<object|<embed|<option|<style/i,m=/checked\s*(?:[^=]|=\s*.checked.)/i,q=function(a2,a3,a1){return ao.test(a1)?a2:a3+"></"+a1+">"},af={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,"",""]};af.optgroup=af.option;af.tbody=af.tfoot=af.colgroup=af.caption=af.thead;af.th=af.td;if(!a.support.htmlSerialize){af._default=[1,"div<div>","</div>"]}a.fn.extend({text:function(a1){if(a.isFunction(a1)){return this.each(function(a3){var a2=a(this);a2.text(a1.call(this,a3,a2.text()))})}if(typeof a1!=="object"&&a1!==E){return this.empty().append((this[0]&&this[0].ownerDocument||ae).createTextNode(a1))}return a.text(this)},wrapAll:function(a1){if(a.isFunction(a1)){return this.each(function(a3){a(this).wrapAll(a1.call(this,a3))})}if(this[0]){var a2=a(a1,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){a2.insertBefore(this[0])}a2.map(function(){var a3=this;while(a3.firstChild&&a3.firstChild.nodeType===1){a3=a3.firstChild}return a3}).append(this)}return this},wrapInner:function(a1){if(a.isFunction(a1)){return this.each(function(a2){a(this).wrapInner(a1.call(this,a2))})}return this.each(function(){var a2=a(this),a3=a2.contents();if(a3.length){a3.wrapAll(a1)}else{a2.append(a1)}})},wrap:function(a1){return this.each(function(){a(this).wrapAll(a1)})},unwrap:function(){return this.parent().each(function(){if(!a.nodeName(this,"body")){a(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(a1){if(this.nodeType===1){this.appendChild(a1)}})},prepend:function(){return this.domManip(arguments,true,function(a1){if(this.nodeType===1){this.insertBefore(a1,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(a2){this.parentNode.insertBefore(a2,this)})}else{if(arguments.length){var a1=a(arguments[0]);a1.push.apply(a1,this.toArray());return this.pushStack(a1,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(a2){this.parentNode.insertBefore(a2,this.nextSibling)})}else{if(arguments.length){var a1=this.pushStack(this,"after",arguments);a1.push.apply(a1,a(arguments[0]).toArray());return a1}}},remove:function(a1,a4){for(var a2=0,a3;(a3=this[a2])!=null;a2++){if(!a1||a.filter(a1,[a3]).length){if(!a4&&a3.nodeType===1){a.cleanData(a3.getElementsByTagName("*"));a.cleanData([a3])}if(a3.parentNode){a3.parentNode.removeChild(a3)}}}return this},empty:function(){for(var a1=0,a2;(a2=this[a1])!=null;a1++){if(a2.nodeType===1){a.cleanData(a2.getElementsByTagName("*"))}while(a2.firstChild){a2.removeChild(a2.firstChild)}}return this},clone:function(a2){var a1=this.map(function(){if(!a.support.noCloneEvent&&!a.isXMLDoc(this)){var a4=this.outerHTML,a3=this.ownerDocument;if(!a4){var a5=a3.createElement("div");a5.appendChild(this.cloneNode(true));a4=a5.innerHTML}return a.clean([a4.replace(W,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(ac,"")],a3)[0]}else{return this.cloneNode(true)}});if(a2===true){r(this,a1);r(this.find("*"),a1.find("*"))}return a1},html:function(a3){if(a3===E){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null}else{if(typeof a3==="string"&&!G.test(a3)&&(a.support.leadingWhitespace||!ac.test(a3))&&!af[(c.exec(a3)||["",""])[1].toLowerCase()]){a3=a3.replace(J,q);try{for(var a2=0,a1=this.length;a2<a1;a2++){if(this[a2].nodeType===1){a.cleanData(this[a2].getElementsByTagName("*"));this[a2].innerHTML=a3}}}catch(a4){this.empty().append(a3)}}else{if(a.isFunction(a3)){this.each(function(a7){var a6=a(this),a5=a6.html();a6.empty().append(function(){return a3.call(this,a7,a5)})})}else{this.empty().append(a3)}}}return this},replaceWith:function(a1){if(this[0]&&this[0].parentNode){if(a.isFunction(a1)){return this.each(function(a4){var a3=a(this),a2=a3.html();a3.replaceWith(a1.call(this,a4,a2))})}if(typeof a1!=="string"){a1=a(a1).detach()}return this.each(function(){var a3=this.nextSibling,a2=this.parentNode;a(this).remove();if(a3){a(a3).before(a1)}else{a(a2).append(a1)}})}else{return this.pushStack(a(a.isFunction(a1)?a1():a1),"replaceWith",a1)}},detach:function(a1){return this.remove(a1,true)},domManip:function(a7,bc,bb){var a4,a5,ba=a7[0],a2=[],a6,a9;if(!a.support.checkClone&&arguments.length===3&&typeof ba==="string"&&m.test(ba)){return this.each(function(){a(this).domManip(a7,bc,bb,true)})}if(a.isFunction(ba)){return this.each(function(be){var bd=a(this);a7[0]=ba.call(this,be,bc?bd.html():E);bd.domManip(a7,bc,bb)})}if(this[0]){a9=ba&&ba.parentNode;if(a.support.parentNode&&a9&&a9.nodeType===11&&a9.childNodes.length===this.length){a4={fragment:a9}}else{a4=L(a7,this,a2)}a6=a4.fragment;if(a6.childNodes.length===1){a5=a6=a6.firstChild}else{a5=a6.firstChild}if(a5){bc=bc&&a.nodeName(a5,"tr");for(var a3=0,a1=this.length;a3<a1;a3++){bb.call(bc?a8(this[a3],a5):this[a3],a3>0||a4.cacheable||this.length>1?a6.cloneNode(true):a6)}}if(a2.length){a.each(a2,aY)}}return this;function a8(bd,be){return a.nodeName(bd,"table")?(bd.getElementsByTagName("tbody")[0]||bd.appendChild(bd.ownerDocument.createElement("tbody"))):bd}}});function r(a3,a1){var a2=0;a1.each(function(){if(this.nodeName!==(a3[a2]&&a3[a2].nodeName)){return}var a8=a.data(a3[a2++]),a7=a.data(this,a8),a4=a8&&a8.events;if(a4){delete a7.handle;a7.events={};for(var a6 in a4){for(var a5 in a4[a6]){a.event.add(this,a6,a4[a6][a5],a4[a6][a5].data)}}}})}function L(a6,a4,a2){var a5,a1,a3,a7=(a4&&a4[0]?a4[0].ownerDocument||a4[0]:ae);if(a6.length===1&&typeof a6[0]==="string"&&a6[0].length<512&&a7===ae&&!G.test(a6[0])&&(a.support.checkClone||!m.test(a6[0]))){a1=true;a3=a.fragments[a6[0]];if(a3){if(a3!==1){a5=a3}}}if(!a5){a5=a7.createDocumentFragment();a.clean(a6,a7,a5,a2)}if(a1){a.fragments[a6[0]]=a3?a5:1}return{fragment:a5,cacheable:a1}}a.fragments={};a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a1,a2){a.fn[a1]=function(a3){var a6=[],a9=a(a3),a8=this.length===1&&this[0].parentNode;if(a8&&a8.nodeType===11&&a8.childNodes.length===1&&a9.length===1){a9[a2](this[0]);return this}else{for(var a7=0,a4=a9.length;a7<a4;a7++){var a5=(a7>0?this.clone(true):this).get();a.fn[a2].apply(a(a9[a7]),a5);a6=a6.concat(a5)}return this.pushStack(a6,a1,a9.selector)}}});a.extend({clean:function(a3,a5,bc,a7){a5=a5||ae;if(typeof a5.createElement==="undefined"){a5=a5.ownerDocument||a5[0]&&a5[0].ownerDocument||ae}var bd=[];for(var bb=0,a6;(a6=a3[bb])!=null;bb++){if(typeof a6==="number"){a6+=""}if(!a6){continue}if(typeof a6==="string"&&!N.test(a6)){a6=a5.createTextNode(a6)}else{if(typeof a6==="string"){a6=a6.replace(J,q);var be=(c.exec(a6)||["",""])[1].toLowerCase(),a4=af[be]||af._default,ba=a4[0],a2=a5.createElement("div");a2.innerHTML=a4[1]+a6+a4[2];while(ba--){a2=a2.lastChild}if(!a.support.tbody){var a1=v.test(a6),a9=be==="table"&&!a1?a2.firstChild&&a2.firstChild.childNodes:a4[1]==="<table>"&&!a1?a2.childNodes:[];for(var a8=a9.length-1;a8>=0;--a8){if(a.nodeName(a9[a8],"tbody")&&!a9[a8].childNodes.length){a9[a8].parentNode.removeChild(a9[a8])}}}if(!a.support.leadingWhitespace&&ac.test(a6)){a2.insertBefore(a5.createTextNode(ac.exec(a6)[0]),a2.firstChild)}a6=a2.childNodes}}if(a6.nodeType){bd.push(a6)}else{bd=a.merge(bd,a6)}}if(bc){for(var bb=0;bd[bb];bb++){if(a7&&a.nodeName(bd[bb],"script")&&(!bd[bb].type||bd[bb].type.toLowerCase()==="text/javascript")){a7.push(bd[bb].parentNode?bd[bb].parentNode.removeChild(bd[bb]):bd[bb])}else{if(bd[bb].nodeType===1){bd.splice.apply(bd,[bb+1,0].concat(a.makeArray(bd[bb].getElementsByTagName("script"))))}bc.appendChild(bd[bb])}}}return bd},cleanData:function(a2){var a5,a3,a1=a.cache,a8=a.event.special,a7=a.support.deleteExpando;for(var a6=0,a4;(a4=a2[a6])!=null;a6++){a3=a4[a.expando];if(a3){a5=a1[a3];if(a5.events){for(var a9 in a5.events){if(a8[a9]){a.event.remove(a4,a9)}else{aj(a4,a9,a5.handle)}}}if(a7){delete a4[a.expando]}else{if(a4.removeAttribute){a4.removeAttribute(a.expando)}}delete a1[a3]}}}});var av=/z-?index|font-?weight|opacity|zoom|line-?height/i,X=/alpha\([^)]*\)/,ad=/opacity=([^)]*)/,ak=/float/i,aC=/-([a-z])/ig,x=/([A-Z])/g,aR=/^-?\d+(?:px)?$/i,aX=/^-?\d/,aN={position:"absolute",visibility:"hidden",display:"block"},Z=["Left","Right"],aH=["Top","Bottom"],an=ae.defaultView&&ae.defaultView.getComputedStyle,aQ=a.support.cssFloat?"cssFloat":"styleFloat",l=function(a1,a2){return a2.toUpperCase()};a.fn.css=function(a1,a2){return aq(this,a1,a2,true,function(a4,a3,a5){if(a5===E){return a.curCSS(a4,a3)}if(typeof a5==="number"&&!av.test(a3)){a5+="px"}a.style(a4,a3,a5)})};a.extend({style:function(a5,a2,a6){if(!a5||a5.nodeType===3||a5.nodeType===8){return E}if((a2==="width"||a2==="height")&&parseFloat(a6)<0){a6=E}var a4=a5.style||a5,a7=a6!==E;if(!a.support.opacity&&a2==="opacity"){if(a7){a4.zoom=1;var a1=parseInt(a6,10)+""==="NaN"?"":"alpha(opacity="+a6*100+")";var a3=a4.filter||a.curCSS(a5,"filter")||"";a4.filter=X.test(a3)?a3.replace(X,a1):a1}return a4.filter&&a4.filter.indexOf("opacity=")>=0?(parseFloat(ad.exec(a4.filter)[1])/100)+"":""}if(ak.test(a2)){a2=aQ}a2=a2.replace(aC,l);if(a7){a4[a2]=a6}return a4[a2]},css:function(a4,a2,a6,a1){if(a2==="width"||a2==="height"){var a8,a3=aN,a7=a2==="width"?Z:aH;function a5(){a8=a2==="width"?a4.offsetWidth:a4.offsetHeight;if(a1==="border"){return}a.each(a7,function(){if(!a1){a8-=parseFloat(a.curCSS(a4,"padding"+this,true))||0}if(a1==="margin"){a8+=parseFloat(a.curCSS(a4,"margin"+this,true))||0}else{a8-=parseFloat(a.curCSS(a4,"border"+this+"Width",true))||0}})}if(a4.offsetWidth!==0){a5()}else{a.swap(a4,a3,a5)}return Math.max(0,Math.round(a8))}return a.curCSS(a4,a2,a6)},curCSS:function(a7,a2,a3){var ba,a1=a7.style,a4;if(!a.support.opacity&&a2==="opacity"&&a7.currentStyle){ba=ad.test(a7.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return ba===""?"1":ba}if(ak.test(a2)){a2=aQ}if(!a3&&a1&&a1[a2]){ba=a1[a2]}else{if(an){if(ak.test(a2)){a2="float"}a2=a2.replace(x,"-$1").toLowerCase();var a9=a7.ownerDocument.defaultView;if(!a9){return null}var bb=a9.getComputedStyle(a7,null);if(bb){ba=bb.getPropertyValue(a2)}if(a2==="opacity"&&ba===""){ba="1"}}else{if(a7.currentStyle){var a6=a2.replace(aC,l);ba=a7.currentStyle[a2]||a7.currentStyle[a6];if(!aR.test(ba)&&aX.test(ba)){var a5=a1.left,a8=a7.runtimeStyle.left;a7.runtimeStyle.left=a7.currentStyle.left;a1.left=a6==="fontSize"?"1em":(ba||0);ba=a1.pixelLeft+"px";a1.left=a5;a7.runtimeStyle.left=a8}}}}return ba},swap:function(a4,a3,a5){var a1={};for(var a2 in a3){a1[a2]=a4.style[a2];a4.style[a2]=a3[a2]}a5.call(a4);for(var a2 in a3){a4.style[a2]=a1[a2]}}});if(a.expr&&a.expr.filters){a.expr.filters.hidden=function(a4){var a2=a4.offsetWidth,a1=a4.offsetHeight,a3=a4.nodeName.toLowerCase()==="tr";return a2===0&&a1===0&&!a3?true:a2>0&&a1>0&&!a3?false:a.curCSS(a4,"display")==="none"};a.expr.filters.visible=function(a1){return !a.expr.filters.hidden(a1)}}var ai=aS(),aM=/<script(.|\s)*?\/script>/gi,p=/select|textarea/i,aE=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,s=/=\?(&|$)/,F=/\?/,a0=/(\?|&)_=.*?(&|$)/,D=/^(\w+:)?\/\/([^\/?#]+)/,h=/%20/g,y=a.fn.load;a.fn.extend({load:function(a3,a6,a7){if(typeof a3!=="string"){return y.call(this,a3)}else{if(!this.length){return this}}var a5=a3.indexOf(" ");if(a5>=0){var a1=a3.slice(a5,a3.length);a3=a3.slice(0,a5)}var a4="GET";if(a6){if(a.isFunction(a6)){a7=a6;a6=null}else{if(typeof a6==="object"){a6=a.param(a6,a.ajaxSettings.traditional);a4="POST"}}}var a2=this;a.ajax({url:a3,type:a4,dataType:"html",data:a6,complete:function(a9,a8){if(a8==="success"||a8==="notmodified"){a2.html(a1?a("<div />").append(a9.responseText.replace(aM,"")).find(a1):a9.responseText)}if(a7){a2.each(a7,[a9.responseText,a8,a9])}}});return this},serialize:function(){return a.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?a.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||p.test(this.nodeName)||aE.test(this.type))}).map(function(a1,a2){var a3=a(this).val();return a3==null?null:a.isArray(a3)?a.map(a3,function(a5,a4){return{name:a2.name,value:a5}}):{name:a2.name,value:a3}}).get()}});a.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a1,a2){a.fn[a2]=function(a3){return this.bind(a2,a3)}});a.extend({get:function(a1,a3,a4,a2){if(a.isFunction(a3)){a2=a2||a4;a4=a3;a3=null}return a.ajax({type:"GET",url:a1,data:a3,success:a4,dataType:a2})},getScript:function(a1,a2){return a.get(a1,null,a2,"script")},getJSON:function(a1,a2,a3){return a.get(a1,a2,a3,"json")},post:function(a1,a3,a4,a2){if(a.isFunction(a3)){a2=a2||a4;a4=a3;a3={}}return a.ajax({type:"POST",url:a1,data:a3,success:a4,dataType:a2})},ajaxSetup:function(a1){a.extend(a.ajaxSettings,a1)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:aP.XMLHttpRequest&&(aP.location.protocol!=="file:"||!aP.ActiveXObject)?function(){return new aP.XMLHttpRequest()}:function(){try{return new aP.ActiveXObject("Microsoft.XMLHTTP")}catch(a1){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(bg){var bb=a.extend(true,{},a.ajaxSettings,bg);var bl,bf,bk,bm=bg&&bg.context||bb,a3=bb.type.toUpperCase();if(bb.data&&bb.processData&&typeof bb.data!=="string"){bb.data=a.param(bb.data,bb.traditional)}if(bb.dataType==="jsonp"){if(a3==="GET"){if(!s.test(bb.url)){bb.url+=(F.test(bb.url)?"&":"?")+(bb.jsonp||"callback")+"=?"}}else{if(!bb.data||!s.test(bb.data)){bb.data=(bb.data?bb.data+"&":"")+(bb.jsonp||"callback")+"=?"}}bb.dataType="json"}if(bb.dataType==="json"&&(bb.data&&s.test(bb.data)||s.test(bb.url))){bl=bb.jsonpCallback||("jsonp"+ai++);if(bb.data){bb.data=(bb.data+"").replace(s,"="+bl+"$1")}bb.url=bb.url.replace(s,"="+bl+"$1");bb.dataType="script";aP[bl]=aP[bl]||function(bn){bk=bn;a6();a9();aP[bl]=E;try{delete aP[bl]}catch(bo){}if(a4){a4.removeChild(bi)}}}if(bb.dataType==="script"&&bb.cache===null){bb.cache=false}if(bb.cache===false&&a3==="GET"){var a1=aS();var bj=bb.url.replace(a0,"$1_="+a1+"$2");bb.url=bj+((bj===bb.url)?(F.test(bb.url)?"&":"?")+"_="+a1:"")}if(bb.data&&a3==="GET"){bb.url+=(F.test(bb.url)?"&":"?")+bb.data}if(bb.global&&!a.active++){a.event.trigger("ajaxStart")}var be=D.exec(bb.url),a5=be&&(be[1]&&be[1]!==location.protocol||be[2]!==location.host);if(bb.dataType==="script"&&a3==="GET"&&a5){var a4=ae.getElementsByTagName("head")[0]||ae.documentElement;var bi=ae.createElement("script");bi.src=bb.url;if(bb.scriptCharset){bi.charset=bb.scriptCharset}if(!bl){var bd=false;bi.onload=bi.onreadystatechange=function(){if(!bd&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){bd=true;a6();a9();bi.onload=bi.onreadystatechange=null;if(a4&&bi.parentNode){a4.removeChild(bi)}}}}a4.insertBefore(bi,a4.firstChild);return E}var a8=false;var a7=bb.xhr();if(!a7){return}if(bb.username){a7.open(a3,bb.url,bb.async,bb.username,bb.password)}else{a7.open(a3,bb.url,bb.async)}try{if(bb.data||bg&&bg.contentType){a7.setRequestHeader("Content-Type",bb.contentType)}if(bb.ifModified){if(a.lastModified[bb.url]){a7.setRequestHeader("If-Modified-Since",a.lastModified[bb.url])}if(a.etag[bb.url]){a7.setRequestHeader("If-None-Match",a.etag[bb.url])}}if(!a5){a7.setRequestHeader("X-Requested-With","XMLHttpRequest")}a7.setRequestHeader("Accept",bb.dataType&&bb.accepts[bb.dataType]?bb.accepts[bb.dataType]+", */*":bb.accepts._default)}catch(bh){}if(bb.beforeSend&&bb.beforeSend.call(bm,a7,bb)===false){if(bb.global&&!--a.active){a.event.trigger("ajaxStop")}a7.abort();return false}if(bb.global){bc("ajaxSend",[a7,bb])}var ba=a7.onreadystatechange=function(bn){if(!a7||a7.readyState===0||bn==="abort"){if(!a8){a9()}a8=true;if(a7){a7.onreadystatechange=a.noop}}else{if(!a8&&a7&&(a7.readyState===4||bn==="timeout")){a8=true;a7.onreadystatechange=a.noop;bf=bn==="timeout"?"timeout":!a.httpSuccess(a7)?"error":bb.ifModified&&a.httpNotModified(a7,bb.url)?"notmodified":"success";var bp;if(bf==="success"){try{bk=a.httpData(a7,bb.dataType,bb)}catch(bo){bf="parsererror";bp=bo}}if(bf==="success"||bf==="notmodified"){if(!bl){a6()}}else{a.handleError(bb,a7,bf,bp)}a9();if(bn==="timeout"){a7.abort()}if(bb.async){a7=null}}}};try{var a2=a7.abort;a7.abort=function(){if(a7){a2.call(a7)}ba("abort")}}catch(bh){}if(bb.async&&bb.timeout>0){setTimeout(function(){if(a7&&!a8){ba("timeout")}},bb.timeout)}try{a7.send(a3==="POST"||a3==="PUT"||a3==="DELETE"?bb.data:null)}catch(bh){a.handleError(bb,a7,null,bh);a9()}if(!bb.async){ba()}function a6(){if(bb.success){bb.success.call(bm,bk,bf,a7)}if(bb.global){bc("ajaxSuccess",[a7,bb])}}function a9(){if(bb.complete){bb.complete.call(bm,a7,bf)}if(bb.global){bc("ajaxComplete",[a7,bb])}if(bb.global&&!--a.active){a.event.trigger("ajaxStop")}}function bc(bo,bn){(bb.context?a(bb.context):a.event).trigger(bo,bn)}return a7},handleError:function(a2,a4,a1,a3){if(a2.error){a2.error.call(a2.context||a2,a4,a1,a3)}if(a2.global){(a2.context?a(a2.context):a.event).trigger("ajaxError",[a4,a2,a3])}},active:0,httpSuccess:function(a2){try{return !a2.status&&location.protocol==="file:"||(a2.status>=200&&a2.status<300)||a2.status===304||a2.status===1223||a2.status===0}catch(a1){}return false},httpNotModified:function(a4,a1){var a3=a4.getResponseHeader("Last-Modified"),a2=a4.getResponseHeader("Etag");if(a3){a.lastModified[a1]=a3}if(a2){a.etag[a1]=a2}return a4.status===304||a4.status===0},httpData:function(a6,a4,a3){var a2=a6.getResponseHeader("content-type")||"",a1=a4==="xml"||!a4&&a2.indexOf("xml")>=0,a5=a1?a6.responseXML:a6.responseText;if(a1&&a5.documentElement.nodeName==="parsererror"){a.error("parsererror")}if(a3&&a3.dataFilter){a5=a3.dataFilter(a5,a4)}if(typeof a5==="string"){if(a4==="json"||!a4&&a2.indexOf("json")>=0){a5=a.parseJSON(a5)}else{if(a4==="script"||!a4&&a2.indexOf("javascript")>=0){a.globalEval(a5)}}}return a5},param:function(a1,a4){var a2=[];if(a4===E){a4=a.ajaxSettings.traditional}if(a.isArray(a1)||a1.jquery){a.each(a1,function(){a6(this.name,this.value)})}else{for(var a5 in a1){a3(a5,a1[a5])}}return a2.join("&").replace(h,"+");function a3(a7,a8){if(a.isArray(a8)){a.each(a8,function(ba,a9){if(a4||/\[\]$/.test(a7)){a6(a7,a9)}else{a3(a7+"["+(typeof a9==="object"||a.isArray(a9)?ba:"")+"]",a9)}})}else{if(!a4&&a8!=null&&typeof a8==="object"){a.each(a8,function(ba,a9){a3(a7+"["+ba+"]",a9)})}else{a6(a7,a8)}}}function a6(a7,a8){a8=a.isFunction(a8)?a8():a8;a2[a2.length]=encodeURIComponent(a7)+"="+encodeURIComponent(a8)}}});var I={},ah=/toggle|show|hide/,ax=/^([+-]=)?([\d+-.]+)(.*)$/,aI,am=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];a.fn.extend({show:function(a2,ba){if(a2||a2===0){return this.animate(aG("show",3),a2,ba)}else{for(var a7=0,a4=this.length;a7<a4;a7++){var a1=a.data(this[a7],"olddisplay");this[a7].style.display=a1||"";if(a.css(this[a7],"display")==="none"){var a9=this[a7].nodeName,a8;if(I[a9]){a8=I[a9]}else{var a3=a("<"+a9+" />").appendTo("body");a8=a3.css("display");if(a8==="none"){a8="block"}a3.remove();I[a9]=a8}a.data(this[a7],"olddisplay",a8)}}for(var a6=0,a5=this.length;a6<a5;a6++){this[a6].style.display=a.data(this[a6],"olddisplay")||""}return this}},hide:function(a6,a7){if(a6||a6===0){return this.animate(aG("hide",3),a6,a7)}else{for(var a5=0,a2=this.length;a5<a2;a5++){var a1=a.data(this[a5],"olddisplay");if(!a1&&a1!=="none"){a.data(this[a5],"olddisplay",a.css(this[a5],"display"))}}for(var a4=0,a3=this.length;a4<a3;a4++){this[a4].style.display="none"}return this}},_toggle:a.fn.toggle,toggle:function(a3,a2){var a1=typeof a3==="boolean";if(a.isFunction(a3)&&a.isFunction(a2)){this._toggle.apply(this,arguments)}else{if(a3==null||a1){this.each(function(){var a4=a1?a3:a(this).is(":hidden");a(this)[a4?"show":"hide"]()})}else{this.animate(aG("toggle",3),a3,a2)}}return this},fadeTo:function(a1,a3,a2){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:a3},a1,a2)},animate:function(a5,a2,a4,a3){var a1=a.speed(a2,a4,a3);if(a.isEmptyObject(a5)){return this.each(a1.complete)}return this[a1.queue===false?"each":"queue"](function(){var a8=a.extend({},a1),ba,a9=this.nodeType===1&&a(this).is(":hidden"),a6=this;for(ba in a5){var a7=ba.replace(aC,l);if(ba!==a7){a5[a7]=a5[ba];delete a5[ba];ba=a7}if(a5[ba]==="hide"&&a9||a5[ba]==="show"&&!a9){return a8.complete.call(this)}if((ba==="height"||ba==="width")&&this.style){a8.display=a.css(this,"display");a8.overflow=this.style.overflow}if(a.isArray(a5[ba])){(a8.specialEasing=a8.specialEasing||{})[ba]=a5[ba][1];a5[ba]=a5[ba][0]}}if(a8.overflow!=null){this.style.overflow="hidden"}a8.curAnim=a.extend({},a5);a.each(a5,function(bc,bg){var bf=new a.fx(a6,a8,bc);if(ah.test(bg)){bf[bg==="toggle"?a9?"show":"hide":bg](a5)}else{var be=ax.exec(bg),bh=bf.cur(true)||0;if(be){var bb=parseFloat(be[2]),bd=be[3]||"px";if(bd!=="px"){a6.style[bc]=(bb||1)+bd;bh=((bb||1)/bf.cur(true))*bh;a6.style[bc]=bh+bd}if(be[1]){bb=((be[1]==="-="?-1:1)*bb)+bh}bf.custom(bh,bb,bd)}else{bf.custom(bh,bg,"")}}});return true})},stop:function(a2,a1){var a3=a.timers;if(a2){this.queue([])}this.each(function(){for(var a4=a3.length-1;a4>=0;a4--){if(a3[a4].elem===this){if(a1){a3[a4](true)}a3.splice(a4,1)}}});if(!a1){this.dequeue()}return this}});a.each({slideDown:aG("show",1),slideUp:aG("hide",1),slideToggle:aG("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a1,a2){a.fn[a1]=function(a3,a4){return this.animate(a2,a3,a4)}});a.extend({speed:function(a3,a4,a2){var a1=a3&&typeof a3==="object"?a3:{complete:a2||!a2&&a4||a.isFunction(a3)&&a3,duration:a3,easing:a2&&a4||a4&&!a.isFunction(a4)&&a4};a1.duration=a.fx.off?0:typeof a1.duration==="number"?a1.duration:a.fx.speeds[a1.duration]||a.fx.speeds._default;a1.old=a1.complete;a1.complete=function(){if(a1.queue!==false){a(this).dequeue()}if(a.isFunction(a1.old)){a1.old.call(this)}};return a1},easing:{linear:function(a3,a4,a1,a2){return a1+a2*a3},swing:function(a3,a4,a1,a2){return((-Math.cos(a3*Math.PI)/2)+0.5)*a2+a1}},timers:[],fx:function(a2,a1,a3){this.options=a1;this.elem=a2;this.prop=a3;if(!a1.orig){a1.orig={}}}});a.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(a.fx.step[this.prop]||a.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(a2){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var a1=parseFloat(a.css(this.elem,this.prop,a2));return a1&&a1>-10000?a1:parseFloat(a.curCSS(this.elem,this.prop))||0},custom:function(a5,a4,a3){this.startTime=aS();this.start=a5;this.end=a4;this.unit=a3||this.unit||"px";this.now=this.start;this.pos=this.state=0;var a1=this;function a2(a6){return a1.step(a6)}a2.elem=this.elem;if(a2()&&a.timers.push(a2)&&!aI){aI=setInterval(a.fx.tick,13)}},show:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());a(this.elem).show()},hide:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a4){var a9=aS(),a5=true;if(a4||a9>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var a6 in this.options.curAnim){if(this.options.curAnim[a6]!==true){a5=false}}if(a5){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;var a3=a.data(this.elem,"olddisplay");this.elem.style.display=a3?a3:this.options.display;if(a.css(this.elem,"display")==="none"){this.elem.style.display="block"}}if(this.options.hide){a(this.elem).hide()}if(this.options.hide||this.options.show){for(var a1 in this.options.curAnim){a.style(this.elem,a1,this.options.orig[a1])}}this.options.complete.call(this.elem)}return false}else{var a2=a9-this.startTime;this.state=a2/this.options.duration;var a7=this.options.specialEasing&&this.options.specialEasing[this.prop];var a8=this.options.easing||(a.easing.swing?"swing":"linear");this.pos=a.easing[a7||a8](this.state,a2,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};a.extend(a.fx,{tick:function(){var a2=a.timers;for(var a1=0;a1<a2.length;a1++){if(!a2[a1]()){a2.splice(a1--,1)}}if(!a2.length){a.fx.stop()}},stop:function(){clearInterval(aI);aI=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a1){a.style(a1.elem,"opacity",a1.now)},_default:function(a1){if(a1.elem.style&&a1.elem.style[a1.prop]!=null){a1.elem.style[a1.prop]=(a1.prop==="width"||a1.prop==="height"?Math.max(0,a1.now):a1.now)+a1.unit}else{a1.elem[a1.prop]=a1.now}}}});if(a.expr&&a.expr.filters){a.expr.filters.animated=function(a1){return a.grep(a.timers,function(a2){return a1===a2.elem}).length}}function aG(a2,a1){var a3={};a.each(am.concat.apply([],am.slice(0,a1)),function(){a3[this]=a2});return a3}if("getBoundingClientRect" in ae.documentElement){a.fn.offset=function(ba){var a3=this[0];if(ba){return this.each(function(bb){a.offset.setOffset(this,ba,bb)})}if(!a3||!a3.ownerDocument){return null}if(a3===a3.ownerDocument.body){return a.offset.bodyOffset(a3)}var a5=a3.getBoundingClientRect(),a9=a3.ownerDocument,a6=a9.body,a1=a9.documentElement,a4=a1.clientTop||a6.clientTop||0,a7=a1.clientLeft||a6.clientLeft||0,a8=a5.top+(self.pageYOffset||a.support.boxModel&&a1.scrollTop||a6.scrollTop)-a4,a2=a5.left+(self.pageXOffset||a.support.boxModel&&a1.scrollLeft||a6.scrollLeft)-a7;return{top:a8,left:a2}}}else{a.fn.offset=function(bc){var a6=this[0];if(bc){return this.each(function(bd){a.offset.setOffset(this,bc,bd)})}if(!a6||!a6.ownerDocument){return null}if(a6===a6.ownerDocument.body){return a.offset.bodyOffset(a6)}a.offset.initialize();var a3=a6.offsetParent,a2=a6,bb=a6.ownerDocument,a9,a4=bb.documentElement,a7=bb.body,a8=bb.defaultView,a1=a8?a8.getComputedStyle(a6,null):a6.currentStyle,ba=a6.offsetTop,a5=a6.offsetLeft;while((a6=a6.parentNode)&&a6!==a7&&a6!==a4){if(a.offset.supportsFixedPosition&&a1.position==="fixed"){break}a9=a8?a8.getComputedStyle(a6,null):a6.currentStyle;ba-=a6.scrollTop;a5-=a6.scrollLeft;if(a6===a3){ba+=a6.offsetTop;a5+=a6.offsetLeft;if(a.offset.doesNotAddBorder&&!(a.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(a6.nodeName))){ba+=parseFloat(a9.borderTopWidth)||0;a5+=parseFloat(a9.borderLeftWidth)||0}a2=a3,a3=a6.offsetParent}if(a.offset.subtractsBorderForOverflowNotVisible&&a9.overflow!=="visible"){ba+=parseFloat(a9.borderTopWidth)||0;a5+=parseFloat(a9.borderLeftWidth)||0}a1=a9}if(a1.position==="relative"||a1.position==="static"){ba+=a7.offsetTop;a5+=a7.offsetLeft}if(a.offset.supportsFixedPosition&&a1.position==="fixed"){ba+=Math.max(a4.scrollTop,a7.scrollTop);a5+=Math.max(a4.scrollLeft,a7.scrollLeft)}return{top:ba,left:a5}}}a.offset={initialize:function(){var a1=ae.body,a2=ae.createElement("div"),a5,a7,a6,a8,a3=parseFloat(a.curCSS(a1,"marginTop",true))||0,a4="<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>";a.extend(a2.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});a2.innerHTML=a4;a1.insertBefore(a2,a1.firstChild);a5=a2.firstChild;a7=a5.firstChild;a8=a5.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(a7.offsetTop!==5);this.doesAddBorderForTableAndCells=(a8.offsetTop===5);a7.style.position="fixed",a7.style.top="20px";this.supportsFixedPosition=(a7.offsetTop===20||a7.offsetTop===15);a7.style.position=a7.style.top="";a5.style.overflow="hidden",a5.style.position="relative";this.subtractsBorderForOverflowNotVisible=(a7.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(a1.offsetTop!==a3);a1.removeChild(a2);a1=a2=a5=a7=a6=a8=null;a.offset.initialize=a.noop},bodyOffset:function(a1){var a3=a1.offsetTop,a2=a1.offsetLeft;a.offset.initialize();if(a.offset.doesNotIncludeMarginInBodyOffset){a3+=parseFloat(a.curCSS(a1,"marginTop",true))||0;a2+=parseFloat(a.curCSS(a1,"marginLeft",true))||0}return{top:a3,left:a2}},setOffset:function(a6,a2,a3){if(/static/.test(a.curCSS(a6,"position"))){a6.style.position="relative"}var a5=a(a6),a8=a5.offset(),a1=parseInt(a.curCSS(a6,"top",true),10)||0,a7=parseInt(a.curCSS(a6,"left",true),10)||0;if(a.isFunction(a2)){a2=a2.call(a6,a3,a8)}var a4={top:(a2.top-a8.top)+a1,left:(a2.left-a8.left)+a7};if("using" in a2){a2.using.call(a6,a4)}else{a5.css(a4)}}};a.fn.extend({position:function(){if(!this[0]){return null}var a3=this[0],a2=this.offsetParent(),a4=this.offset(),a1=/^body|html$/i.test(a2[0].nodeName)?{top:0,left:0}:a2.offset();a4.top-=parseFloat(a.curCSS(a3,"marginTop",true))||0;a4.left-=parseFloat(a.curCSS(a3,"marginLeft",true))||0;a1.top+=parseFloat(a.curCSS(a2[0],"borderTopWidth",true))||0;a1.left+=parseFloat(a.curCSS(a2[0],"borderLeftWidth",true))||0;return{top:a4.top-a1.top,left:a4.left-a1.left}},offsetParent:function(){return this.map(function(){var a1=this.offsetParent||ae.body;while(a1&&(!/^body|html$/i.test(a1.nodeName)&&a.css(a1,"position")==="static")){a1=a1.offsetParent}return a1})}});a.each(["Left","Top"],function(a2,a1){var a3="scroll"+a1;a.fn[a3]=function(a6){var a4=this[0],a5;if(!a4){return null}if(a6!==E){return this.each(function(){a5=ap(this);if(a5){a5.scrollTo(!a2?a6:a(a5).scrollLeft(),a2?a6:a(a5).scrollTop())}else{this[a3]=a6}})}else{a5=ap(a4);return a5?("pageXOffset" in a5)?a5[a2?"pageYOffset":"pageXOffset"]:a.support.boxModel&&a5.document.documentElement[a3]||a5.document.body[a3]:a4[a3]}}});function ap(a1){return("scrollTo" in a1&&a1.document)?a1:a1.nodeType===9?a1.defaultView||a1.parentWindow:false}a.each(["Height","Width"],function(a2,a1){var a3=a1.toLowerCase();a.fn["inner"+a1]=function(){return this[0]?a.css(this[0],a3,false,"padding"):null};a.fn["outer"+a1]=function(a4){return this[0]?a.css(this[0],a3,false,a4?"margin":"border"):null};a.fn[a3]=function(a4){var a5=this[0];if(!a5){return a4==null?null:this}if(a.isFunction(a4)){return this.each(function(a7){var a6=a(this);a6[a3](a4.call(this,a7,a6[a3]()))})}return("scrollTo" in a5&&a5.document)?a5.document.compatMode==="CSS1Compat"&&a5.document.documentElement["client"+a1]||a5.document.body["client"+a1]:(a5.nodeType===9)?Math.max(a5.documentElement["client"+a1],a5.body["scroll"+a1],a5.documentElement["scroll"+a1],a5.body["offset"+a1],a5.documentElement["offset"+a1]):a4===E?a.css(a5,a3):this.css(a3,typeof a4==="string"?a4:a4+"px")}});aP.jQuery=aP.$=a})(window);
/*
 * jQuery Tipify
 *
 * Copyright (c) 2010 Garrett LeSage
 * Dual licensed under the MIT and GPL licenses.
 */
(function(a){var b=function(c){a(c||document).data("tipify",true);a(c||document).delegate(".tipified","mouseover focus",function(k){var j=a(this),m=j.offset(),h=j.data("tooltip"),g=h.delay||0,f=h.dir||"tc",l;l=a(['<div class="tooltip ',(h.hideStem===true)?"":f,'">',j.data("tooltip").text,"</div>"].join("")).appendTo("body");var d=function(n){var r={},x=12,o=m.left,v=m.top,u=j.outerWidth(),p=j.outerHeight(),q=l.outerWidth(),e=l.outerHeight();switch(n.substr(0,1)){case"t":r.top=v-e-x;break;case"b":r.top=v+p+x;break;case"l":r.left=o-q-x;break;case"r":r.left=o+u+x;break;default:break}switch(n.substr(1,1)){case"l":r.left=o-x;break;case"c":r.left=o+u/2-q/2;break;case"r":r.left=o-q+x+u;break;case"t":r.top=v+p/2-x*1.5;break;case"m":r.top=v+p/2-e/2;break;case"b":r.top=v+p/2-e+x*1.5;break;default:break}return r};if(h.css){l.css(h.css)}l.css({position:"absolute",zIndex:300}).css(d(f)).css(d(f));if(a("div.tooltip").length>1){a("div.tooltip").hide();l.show()}else{l.hide().delay(g).fadeIn(200)}j.bind("blur mouseout",function(n){if(l.is(":visible")){l.delay(300).fadeOut(400,function(){l.remove()})}else{l.remove()}a(this).unbind("blur mouseout")});l.bind("mouseover",function(n){j.unbind("mouseout");l.stop().fadeOut(300,function(){l.remove()})})})};a.fn.tipify=function(d){var f=a(this),e=f.attr("class"),c=e?e.match(/tipdir-([^ ]*)/):null;d=d||{};d.dir=d.dir||(c?c[1]:null);if(!a(d.bind||document).data("tipify")){b(d.bind)}a(this).data("tooltip",d).addClass("tipified");return this};a.tipify=function(c){a(c&&c.bind||document).delegate("[title]","mouseover focus",function(f){var d=a(this);if(d.hasClass("tipskip")){return}d.tipify({text:d.attr("title"),delay:d.parent().is(".delay")?1500:(c&&c.delay||0)}).attr("title","");d.trigger(f.type)});return this}}(jQuery));(function(d){d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){d.fx.step[e]=function(g){if(g.state==0){g.start=c(g.elem,e);g.end=b(g.end)}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}return a[d.trim(f).toLowerCase()]}function c(g,e){var f;do{f=d.curCSS(g,e);if(f!=""&&f!="transparent"||d.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}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]}})(jQuery);(function($){$.fn.ajaxSubmit=function(options){if(typeof options=="function"){options={success:options}}options=$.extend({url:this.attr("action")||window.location,type:this.attr("method")||"GET"},options||{});var veto={};$.event.trigger("form.pre.serialize",[this,options,veto]);if(veto.veto){return this}var a=this.formToArray(options.semantic);if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){return this}$.event.trigger("form.submit.validate",[a,this,options,veto]);if(veto.veto){return this}var q=$.param(a);if(options.type.toUpperCase()=="GET"){options.url+=(options.url.indexOf("?")>=0?"&":"?")+q;options.data=null}else{options.data=q}var $form=this,callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm()})}if(options.clearForm){callbacks.push(function(){$form.clearForm()})}if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data){if(this.evalScripts){$(options.target).attr("innerHTML",data).evalScripts().each(oldSuccess,arguments)}else{$(options.target).html(data).each(oldSuccess,arguments)}})}else{if(options.success){callbacks.push(options.success)}}options.success=function(data,status){for(var i=0,max=callbacks.length;i<max;i++){callbacks[i](data,status,$form)}};var files=$("input:file",this).fieldValue();var found=false;for(var j=0;j<files.length;j++){if(files[j]){found=true}}if(options.iframe||found){fileUpload()}else{$.ajax(options)}$.event.trigger("form.submit.notify",[this,options]);return this;function fileUpload(){var form=$form[0];var opts=$.extend({},$.ajaxSettings,options);var id="jqFormIO"+$.fn.ajaxSubmit.counter++;var $io=$('<iframe id="'+id+'" name="'+id+'" />');var io=$io[0];var op8=$.browser.opera&&window.opera.version()<9;if($.browser.msie||op8){io.src='javascript:false;document.write("");'}$io.css({position:"absolute",top:"-1000px",left:"-1000px"});var xhr={responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){}};var g=opts.global;if(g&&!$.active++){$.event.trigger("ajaxStart")}if(g){$.event.trigger("ajaxSend",[xhr,opts])}var cbInvoked=0;var timedOut=0;setTimeout(function(){$io.appendTo("body");io.attachEvent?io.attachEvent("onload",cb):io.addEventListener("load",cb,false);var encAttr=form.encoding?"encoding":"enctype";var t=$form.attr("target");$form.attr({target:id,method:"POST",encAttr:"multipart/form-data",action:opts.url});if(opts.timeout){setTimeout(function(){timedOut=true;cb()},opts.timeout)}form.submit();$form.attr("target",t)},10);function cb(){if(cbInvoked++){return}io.detachEvent?io.detachEvent("onload",cb):io.removeEventListener("load",cb,false);var ok=true;try{if(timedOut){throw"timeout"}var data,doc;doc=io.contentWindow?io.contentWindow.document:io.contentDocument?io.contentDocument:io.document;xhr.responseText=doc.body?doc.body.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(opts.dataType=="json"||opts.dataType=="script"){var ta=doc.getElementsByTagName("textarea")[0];data=ta?ta.value:xhr.responseText;if(opts.dataType=="json"){eval("data = "+data)}else{$.globalEval(data)}}else{if(opts.dataType=="xml"){data=xhr.responseXML;if(!data&&xhr.responseText!=null){data=toXml(xhr.responseText)}}else{data=xhr.responseText}}}catch(e){ok=false;$.handleError(opts,xhr,"error",e)}if(ok){opts.success(data,"success");if(g){$.event.trigger("ajaxSuccess",[xhr,opts])}}if(g){$.event.trigger("ajaxComplete",[xhr,opts])}if(g&&!--$.active){$.event.trigger("ajaxStop")}if(opts.complete){opts.complete(xhr,ok?"success":"error")}setTimeout(function(){$io.remove();xhr.responseXML=null},100)}function toXml(s,doc){if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(s)}else{doc=(new DOMParser()).parseFromString(s,"text/xml")}return(doc&&doc.documentElement&&doc.documentElement.tagName!="parsererror")?doc:null}}};$.fn.ajaxSubmit.counter=0;$.fn.ajaxForm=function(options){return this.ajaxFormUnbind().submit(submitHandler).each(function(){this.formPluginId=$.fn.ajaxForm.counter++;$.fn.ajaxForm.optionHash[this.formPluginId]=options;$(":submit,input:image",this).click(clickHandler)})};$.fn.ajaxForm.counter=1;$.fn.ajaxForm.optionHash={};function clickHandler(e){var $form=this.form;$form.clk=this;if(this.type=="image"){if(e.offsetX!=undefined){$form.clk_x=e.offsetX;$form.clk_y=e.offsetY}else{if(typeof $.fn.offset=="function"){var offset=$(this).offset();$form.clk_x=e.pageX-offset.left;$form.clk_y=e.pageY-offset.top}else{$form.clk_x=e.pageX-this.offsetLeft;$form.clk_y=e.pageY-this.offsetTop}}}setTimeout(function(){$form.clk=$form.clk_x=$form.clk_y=null},10)}function submitHandler(){var id=this.formPluginId;var options=$.fn.ajaxForm.optionHash[id];$(this).ajaxSubmit(options);return false}$.fn.ajaxFormUnbind=function(){this.unbind("submit",submitHandler);return this.each(function(){$(":submit,input:image",this).unbind("click",clickHandler)})};$.fn.formToArray=function(semantic){var a=[];if(this.length==0){return a}var form=this[0];var els=semantic?form.getElementsByTagName("*"):form.elements;if(!els){return a}for(var i=0,max=els.length;i<max;i++){var el=els[i];var n=el.name;if(!n){continue}if(semantic&&form.clk&&el.type=="image"){if(!el.disabled&&form.clk==el){a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y})}continue}var v=$.fieldValue(el,true);if(v&&v.constructor==Array){for(var j=0,jmax=v.length;j<jmax;j++){a.push({name:n,value:v[j]})}}else{if(v!==null&&typeof v!="undefined"){a.push({name:n,value:v})}}}if(!semantic&&form.clk){var inputs=form.getElementsByTagName("input");for(var i=0,max=inputs.length;i<max;i++){var input=inputs[i];var n=input.name;if(n&&!input.disabled&&input.type=="image"&&form.clk==input){a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y})}}}return a};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic))};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n){return}var v=$.fieldValue(this,successful);if(v&&v.constructor==Array){for(var i=0,max=v.length;i<max;i++){a.push({name:n,value:v[i]})}}else{if(v!==null&&typeof v!="undefined"){a.push({name:this.name,value:v})}}});return $.param(a)};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v=="undefined"||(v.constructor==Array&&!v.length)){continue}v.constructor==Array?$.merge(val,v):val.push(v)}return val};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(typeof successful=="undefined"){successful=true}if(successful&&(!n||el.disabled||t=="reset"||t=="button"||(t=="checkbox"||t=="radio")&&!el.checked||(t=="submit"||t=="image")&&el.form&&el.form.clk!=el||tag=="select"&&el.selectedIndex==-1)){return null}if(tag=="select"){var index=el.selectedIndex;if(index<0){return null}var a=[],ops=el.options;var one=(t=="select-one");var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected){var v=$.browser.msie&&!(op.attributes.value.specified)?op.text:op.value;if(one){return v}a.push(v)}}return a}return el.value};$.fn.clearForm=function(){return this.each(function(){$("input,select,textarea",this).clearFields()})};$.fn.clearFields=$.fn.clearInputs=function(){return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(t=="text"||t=="password"||tag=="textarea"){this.value=""}else{if(t=="checkbox"||t=="radio"){this.checked=false}else{if(tag=="select"){this.selectedIndex=-1}}}})};$.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})}})(jQuery);
/*
 * jQuery alphanum
 *
 * Copyright (c) 2009 Garrett LeSage
 * Dual licensed under the MIT and GPL licenses.
 *
 * Built from scratch to be a drop-in replacement of jquery.alphanumeric
 */
(function(b){var a=function(d,g,f){var e=[],c=[],h=[8,9,13,46,35,36,37,38,39,40];if(f&&f.allow){e=b.map(f.allow.split(""),function(j){return j.charCodeAt(0)})}if(f&&f.ichars){c=b.map(f.ichars.split(""),function(j){return j.charCodeAt(0)})}h="^("+h.join("|")+")$";e="^("+e.join("|")+")$";c="^("+c.join("|")+")$";b(d).bind("keypress.alphanum",function(j){var l=String.fromCharCode((j.which===undefined)?j.keyCode:j.which),k;if(j.which.toString().match(c)){k=false}else{k=l.match(g)||((j.keyCode===8||j.keyCode===13)||(j.which!==j.keyCode))&&j.keyCode.toString().match(h)||j.which.toString().match(e)||j.ctrlKey}return !!k})};b.fn.extend({alphanumeric:function(c){a(this,/[a-zA-Z0-9]/,c);return this},alpha:function(c){a(this,/[a-zA-Z]/,c);return this},numeric:function(c){a(this,/[0-9]/,c);return this}})})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e},easeOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return g*Math.pow(2,-10*h)*Math.sin((h*l-j)*(2*Math.PI)/k)+m+e},easeInOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l/2)==2){return e+m}if(!k){k=l*(0.3*1.5)}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k)*0.5+m+e},easeInBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return j/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return j/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});(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="{}";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 undefined}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}}}}if(data.indexOf("{")<0){data="{"+data+"}"}data=eval("("+data+")");$.data(elem,settings.single,data);return data}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);(function(a){a.address=(function(){var c=function(p){a(this).trigger(a.extend(a.Event(p),(function(){var ak={value:this.value(),path:this.path(),pathNames:this.pathNames(),parameterNames:this.parameterNames(),parameters:{},queryString:this.queryString()};for(var aj=0,ai=ak.parameterNames.length;aj<ai;aj++){ak.parameters[ak.parameterNames[aj]]=this.parameter(ak.parameterNames[aj])}return ak}).call(this)))};var X=function(){c.call(a.address,"init")};var o=function(){c.call(a.address,"change")};var R=function(){var p=W.href.indexOf("#");return p!=-1?ag(q(W.href.substr(p+1))):""};var h=function(){try{return top.document!=undefined?top:window}catch(p){return window}};var G=function(ai,p){if(D.strict){ai=p?(ai.substr(0,1)!="/"?"/"+ai:ai):(ai==""?"/":ai)}return ai};var r=function(p,ai){return(j&&W.protocol=="file:")?(ai?S.replace(/\?/,"%3F"):S.replace(/%253F/,"?")):p};var ah=function(ak){for(var ai=0,p=ak.childNodes.length,aj;ai<p;ai++){if(ak.childNodes[ai].src){l=String(ak.childNodes[ai].src)}if(aj=ah(ak.childNodes[ai])){return aj}}};var Z=function(){if(!u){var ai=R();var p=!(S==ai);if(v&&s<523){if(F!=aa.length){F=aa.length;if(typeof A[F-1]!=H){S=A[F-1]}V(false)}}else{if(j&&s<7&&p){W.reload()}else{if(p){S=ai;V(false)}}}}};var V=function(p){o();if(p){c.call(a.address,"internalChange")}else{c.call(a.address,"externalChange")}n(x,10)};var x=function(){var ai=(W.pathname+(/\/$/.test(W.pathname)?"":"/")+E.value()).replace(/\/\//,"/").replace(/^\/$/,"");var p=window[D.tracker];if(typeof p==g){p(ai)}else{if(typeof pageTracker!=H&&typeof pageTracker._trackPageview==g){pageTracker._trackPageview(ai)}else{if(typeof urchinTracker==g){urchinTracker(ai)}}}};var e=function(){var p=f.contentWindow.document;p.open();p.write("<html><head><title>"+ae.title+"</title><script>var "+y+' = "'+R()+'";<\/script></head></html>');p.close()};var O=function(){if(!U){U=C;if(j&&s<8){var p=ae.getElementsByTagName("frameset")[0];f=ae.createElement((p?"":"i")+"frame");if(p){p.insertAdjacentElement("beforeEnd",f);p[p.cols?"cols":"rows"]+=",0";f.src="javascript:false";f.noResize=true;f.frameBorder=f.frameSpacing=0}else{f.src="javascript:false";f.style.display="none";ae.body.insertAdjacentElement("afterBegin",f)}n(function(){a(f).bind("load",function(){var ai=f.contentWindow;var aj=ai.location.href;S=(typeof ai[y]!=H?ai[y]:"");if(S!=R()){V(false);W.hash=r(S,C)}});if(typeof f.contentWindow[y]==H){e()}},50)}else{if(v){if(s<418){a(ae.body).append('<form id="'+y+'" style="position:absolute;top:-9999px;" method="get"></form>');K=ae.getElementById(y)}if(typeof W[y]==H){W[y]={}}if(typeof W[y][W.pathname]!=H){A=W[y][W.pathname].split(",")}}}n(function(){X();V(false)},1);if(j&&s>=8){ae.body.onhashchange=Z}else{w(Z,50)}a("a[rel*=address:]").address()}};var E={baseURL:function(){var p=W.href;if(p.indexOf("#")!=-1){p=p.substr(0,p.indexOf("#"))}if(p.substr(p.length-1)=="/"){p=p.substr(0,p.length-1)}return p},strict:function(){return D.strict},history:function(){return D.history},tracker:function(){return D.tracker},title:function(){return ae.title},value:function(){if(!ad){return null}return q(G(r(S,ab),ab))},path:function(){var p=this.value();return(p.indexOf("?")!=-1)?p.split("?")[0]:p},pathNames:function(){var ai=this.path();var p=ai.split("/");if(ai.substr(0,1)=="/"||ai.length==0){p.splice(0,1)}if(ai.substr(ai.length-1,1)=="/"){p.splice(p.length-1,1)}return p},queryString:function(){var ai=this.value();var p=ai.indexOf("?");if(p!=-1&&p<ai.length){return ai.substr(p+1)}},parameter:function(ao){var al=this.value();var ai=al.indexOf("?");if(ai!=-1){al=al.substr(ai+1);var an=al.split("&");var am,aj=an.length,ak=[];while(aj--){am=an[aj].split("=");if(am[0]==ao){ak.push(am[1])}}if(ak.length!=0){return ak.length!=1?ak:ak[0]}}},parameterNames:function(){var aj=this.value();var p=aj.indexOf("?");var ak=[];if(p!=-1){aj=aj.substr(p+1);if(aj!=""&&aj.indexOf("=")!=-1){var al=aj.split("&");var ai=0;while(ai<al.length){ak.push(al[ai].split("=")[0]);ai++}}}return ak}};var I={strict:function(p){D.strict=p},history:function(p){D.history=p},tracker:function(p){D.tracker=p},title:function(p){p=q(p);n(function(){J=ae.title=p;if(L&&f&&f.contentWindow&&f.contentWindow.document){f.contentWindow.document.title=p;L=ab}if(!N&&ac){W.replace(W.href.indexOf("#")!=-1?W.href:W.href+"#")}N=ab},50)},value:function(aj){aj=ag(q(G(aj,C)));if(aj=="/"){aj=""}if(S==aj){return}N=C;S=aj;u=C;V(true);A[aa.length]=S;if(v){if(D.history){W[y][W.pathname]=A.toString();F=aa.length+1;if(s<418){if(W.search==""){K.action="#"+S;K.submit()}}else{if(s<523||S==""){var p=ae.createEvent("MouseEvents");p.initEvent("click",C,C);var ai=ae.createElement("a");ai.href="#"+S;ai.dispatchEvent(p)}else{W.hash="#"+S}}}else{W.replace("#"+S)}}else{if(S!=R()){if(D.history){W.hash="#"+r(S,C)}else{W.replace("#"+S)}}}if((j&&s<8)&&D.history){n(e,50)}if(v){n(function(){u=ab},1)}else{u=ab}}};var y="jQueryAddress",g="function",H="undefined",C=true,ab=false,B=a.browser,s=parseFloat(a.browser.version),ac=B.mozilla,j=B.msie,M=B.opera,v=B.safari,ad=ab,P=h(),ae=P.document,aa=P.history,W=P.location,w=setInterval,n=setTimeout,q=decodeURI,ag=encodeURI,af=navigator.userAgent,f,K,l,J=ae.title,F=aa.length,u=ab,U=ab,N=C,L=C,A=[],z={},S=R(),k={},D={history:C,strict:C};if(j){s=parseFloat(af.substr(af.indexOf("MSIE")+4));if(ae.documentMode&&ae.documentMode!=s){s=ae.documentMode!=8?7:8}}ad=(ac&&s>=1)||(j&&s>=6)||(M&&s>=9.5)||(v&&s>=312);if(ad){for(var Y=1;Y<F;Y++){A.push("")}A.push(R());if(j&&W.hash!=R()){W.hash="#"+r(R(),C)}if(M){history.navigationMode="compatible"}ah(document);var b=l.indexOf("?");if(l&&b>-1){var m,d=l.substr(b+1).split("&");for(var Y=0,T;T=d[Y];Y++){m=T.split("=");if(/^(history|strict)$/.test(m[0])){D[m[0]]=(isNaN(m[1])?/^(true|yes)$/i.test(m[1]):(parseInt(m[1])!=0))}if(/^tracker$/.test(m[0])){D[m[0]]=m[1]}}}a(O)}else{if((!ad&&W.href.indexOf("#")!=-1)||(v&&s<418&&W.href.indexOf("#")!=-1&&W.search!="")){ae.open();ae.write('<html><head><meta http-equiv="refresh" content="0;url='+W.href.substr(0,W.href.indexOf("#"))+'" /></head></html>');ae.close()}else{x()}}a.each(("init,change,internalChange,externalChange").split(","),function(ai,p){k[p]=function(ak,aj){a(a.address).bind(p,aj||ak,aj&&ak);return this}});a.each(("strict,history,tracker,title,value").split(","),function(ai,p){k[p]=function(aj){if(typeof aj!="undefined"){if(ad){I[p](aj)}return a.address}else{return E[p]()}}});a.each(("baseURL,path,pathNames,queryString,parameter,parameterNames").split(","),function(ai,p){k[p]=function(aj){return E[p](aj)}});return k})();a.fn.address=function(b){a(this).click(function(){var c=b?b.call(this):/address:/.test(a(this).attr("rel"))?a(this).attr("rel").split("address:")[1].split(" ")[0]:a(this).attr("href").replace(/^#/,"");a.address.value(c);return false})}}(jQuery));jQuery.fn.labelify=function(d){var a,c,e,f,b=$(this);if(typeof d==="string"&&d==="hasLabel"){return b.data("hasLabel")}d=jQuery.extend({text:"title",labeledClass:""},d);if(d.labelledClass){d.labeledClass=d.labelledClass}e={title:function(g){return $(g).attr("title")},label:function(g){return $("label[for="+g.id+"]").text()}};a=function(g){g.value=$(g).data("label");$(g).addClass(d.labeledClass).data("hasLabel",true)};c=function(g){g.value=g.defaultValue;$(g).removeClass(d.labeledClass).data("hasLabel",false)};return $(this).each(function(){var g=$(this),h;if(typeof d.text==="string"){f=e[d.text]}else{f=d.text}if(typeof f!=="function"||!f(this)){return}g.bind("focus.label",function(){if(this.value===$(this).data("label")){c(this)}}).bind("blur.label",function(){if(this.value===this.defaultValue){a(this)}}).data("label",f(this).replace(/\n/g,""));h=function(){b.each(function(){if(this.value===$(this).data("label")){c(this)}})};g.parents("form").submit(h);$(window).unload(h);if(this.value!==this.defaultValue){return}a(this)})};
/* jquery.swfobject.license.txt */
(function(a){a.flashPlayerVersion=function(){var d=navigator.plugins["Shockwave Flash"],b=null,j=false,h="ShockwaveFlash.ShockwaveFlash";if(!d&&typeof ActiveXObject!=="undefined"){try{b=new ActiveXObject(h+".7")}catch(g){try{b=new ActiveXObject(h+".6");d=[6,0,21];b.AllowScriptAccess="always"}catch(f){if(d&&d[0]===6){j=true}}if(!j){try{b=new ActiveXObject(h)}catch(e){d="X 0,0,0"}}}if(!j&&b){try{d=b.GetVariable("$version")}catch(c){}}}else{if(d){d=d.description}else{return[0,0,0]}}d=d.match(/^[A-Za-z\s]*?(\d+)(\.|,)(\d+)(\s+[rd]|,)(\d+)/);return[d[1]*1,d[3]*1,d[5]*1]}();a.flashExpressInstaller="expressInstall.swf";a.hasFlashPlayer=(a.flashPlayerVersion[0]!==0);a.hasFlashPlayerVersion=function(c){var b=a.flashPlayerVersion;c=(/string|integer/.test(typeof c))?c.toString().split("."):c;return(c)?(b[0]>=(c.major||c[0]||b[0])&&b[1]>=(c.minor||c[1]||b[1])&&b[2]>=(c.release||c[2]||b[2])):(b[0]!==0)};a.flash=function(q){if(!a.hasFlashPlayer){return false}var f=q.swf||"",o=q.params||{},h=document.createElement("body"),e,p,l,g,n,m,k,j;q.height=q.height||180;q.width=q.width||320;if(q.hasVersion&&!a.hasFlashPlayerVersion(q.hasVersion)){a.extend(q,{id:"SWFObjectExprInst",height:Math.max(q.height,137),width:Math.max(q.width,214)});f=q.expressInstaller||a.flashExpressInstaller;o={flashvars:{MMredirectURL:window.location.href,MMplayerType:(a.browser.msie&&a.browser.win)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}if(q.flashvars&&typeof o==="object"){a.extend(o,{flashvars:q.flashvars})}for(n in (m=["swf","expressInstall","hasVersion","params","flashvars"])){delete q[m[n]]}e=[];for(n in q){if(typeof q[n]==="object"){p=[];for(m in q[n]){p.push(m.replace(/([A-Z])/,"-$1").toLowerCase()+":"+q[n][m]+";")}q[n]=p.join("")}e.push(n+'="'+q[n]+'"')}q=e.join(" ");if(typeof o==="object"){e=[];for(n in o){if(typeof o[n]==="object"){p=[];for(m in o[n]){if(typeof o[n][m]==="object"){l=[];for(k in o[n][m]){if(typeof o[n][m][k]==="object"){g=[];for(j in o[n][m][k]){g.push(j.replace(/([A-Z])/,"-$1").toLowerCase()+":"+o[n][m][k][j]+";")}o[n][m][k]=g.join("")}l.push(k+"{"+o[n][m][k]+"}")}o[n][m]=l.join("")}p.push(window.escape(m)+"="+window.escape(o[n][m]))}o[n]=p.join("&amp;")}e.push('<PARAM NAME="'+n+'" VALUE="'+o[n]+'">')}o=e.join("")}if(!(/style=/.test(q))){q+=' style="vertical-align:text-top;"'}if(!(/style=(.*?)vertical-align/.test(q))){q=q.replace(/style="/,'style="vertical-align:text-top;')}if(a.browser.msie){q+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';o='<PARAM NAME="movie" VALUE="'+f+'">'+o}else{q+=' type="application/x-shockwave-flash" data="'+f+'"'}h.innerHTML="<OBJECT "+q+">"+o+"</OBJECT>";return a(h.firstChild)};a.fn.flash=function(c){if(!a.hasFlashPlayer){return this}var b=0,d;while((d=this.eq(b++))[0]){d.html(a.flash(a.extend({},c)));if(d[0].firstChild.getAttribute("id")==="SWFObjectExprInst"){b=this.length}}return this}}(jQuery));function humane_date(a){var g=[[1,"1 second"],[60,"seconds",1],[90,"1 minute"],[3600,"minutes",60],[5400,"1 hour"],[86400,"hours",3600],[129600,"1 day"],[604800,"days",86400],[907200,"1 week"],[2628000,"weeks",604800],[3942000,"1 month"],[31536000,"months",2628000],[47304000,"1 year"],[3153600000,"years",31536000],[4730400000,"1 century"],];var f=(""+a).replace(/-/g,"/").replace(/[TZ]/g," "),d=new Date,h=(a instanceof Date?(d-a):(d-new Date(f)+(d.getTimezoneOffset()*60000)))/1000,c=" ago",b=0,e;if(h<0){h=Math.abs(h);c=" from now"}while(e=g[b++]){if(h<e[0]){if(e.length==2){return e[1]+c}else{return Math.round(h/e[2])+" "+e[1]+c}}}if(h>4730400000){return Math.round(h/4730400000)+" Centuries"+c}return a}if(typeof jQuery!="undefined"){jQuery.fn.humane_dates=function(){return this.each(function(){var a=humane_date(this.title);if(a&&jQuery(this).text()!=a){jQuery(this).text(a)}})}}var log=log||function(){};var repr=repr||function(){};var jsontemplate=function(){var a={"{":"\\{","}":"\\}","{{":"\\{\\{","}}":"\\}\\}","[":"\\[","]":"\\]"};function b(q,r){return new RegExp("("+a[q]+".+?"+a[r]+"\n?)","g")}function m(q){return q.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;")}function c(q){return q.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function o(q){return q.toString()}var d={html:m,htmltag:c,"html-attr-value":c,str:o,raw:function(q){return q}};function f(s,r){var q=[{context:s,index:-1}];return{PushSection:function(u){log("PushSection "+u);if(u===undefined||u===null){return null}var v=q[q.length-1].context[u]||null;q.push({context:v,index:-1});return v},Pop:function(){q.pop()},next:function(){var u=q[q.length-1];if(u.index==-1){u={context:null,index:0};q.push(u)}var v=q[q.length-2].context;if(u.index==v.length){q.pop();log("next: null");return null}log("next: "+u.index);u.context=v[u.index++];log("next: true");return true},CursorValue:function(){return q[q.length-1].context},_Undefined:function(u){if(r===undefined){return""}else{return r}},_LookUpStack:function(u){var w=q.length-1;while(true){var v=q[w].context;log("context "+repr(v));if(typeof v!=="object"){w--}else{var x=v[u];if(x===undefined||x===null){w--}else{return x}}if(w<=-1){return this._Undefined(u)}}},Lookup:function(u){var x=u.split(".");var w=this._LookUpStack(x[0]);if(x.length>1){for(var v=1;v<x.length;v++){w=w[x[v]];if(w===undefined){return this._Undefined(x[v])}}}return w}}}function g(q){var s=[];var r={"default":s};return{section_name:q,Statements:function(u){u=u||"default";return r[u]||[]},NewClause:function(v){var u=[];r[v]=u;s=u},Append:function(u){s.push(u)}}}function e(q,u,w){var s;for(s=0;s<q.length;s++){statement=q[s];if(typeof(statement)=="string"){w(statement)}else{var v=statement[0];var r=statement[1];v(r,u,w)}}}function j(r,q,u){log("Substituting: "+r.name);var s;if(r.name=="@"){s=q.CursorValue()}else{s=q.Lookup(r.name)}for(i=0;i<r.formatters.length;i++){if(typeof r.formatters[i]==="function"){s=r.formatters[i](s,q)}}u(s)}function p(r,s,w){var v=r;var u=s.PushSection(v.section_name);var q=false;if(u){q=true}if(u&&u.length===0){q=false}if(q){e(v.Statements(),s,w);s.Pop()}else{s.Pop();e(v.Statements("or"),s,w)}}function h(y,q,z){var u=y;var s;if(u.section_name=="@"){items=q.CursorValue();s=false}else{items=q.PushSection(u.section_name);s=true}if(items&&items.length>0){var w=items.length-1;var x=u.Statements();var r=u.Statements("alternate");for(var v=0;q.next()!==null;v++){log("_DoRepeatedSection i: "+v);e(x,q,z);if(v!=w){log("ALTERNATE");e(r,q,z)}}}else{log("OR: "+u.Statements("or"));e(u.Statements("or"),q,z)}if(s){q.Pop()}}var n=/(repeated)?\s*(section)\s+(\S+)?/;function k(P,v){var T=v.more_formatters||function(V){return null};var I;if(v.default_formatter===undefined){I="str"}else{I=v.default_formatter}function G(W){var V=T(W)||d[W];if(V===undefined){throw {name:"BadFormatter",message:W+" is not a valid formatter"}}return V}var M=v.format_char||"|";if(M!=":"&&M!="|"){throw {name:"ConfigurationError",message:"Only format characters : and | are accepted"}}var C=v.meta||"{}";var F=C.length;if(F%2==1){throw {name:"ConfigurationError",message:C+" has an odd number of metacharacters"}}var q=C.substring(0,F/2);var y=C.substring(F/2,F);var L=b(q,y);var r=g();var x=[r];var O=q.length;var B;var E=0;while(true){B=L.exec(P);log("match:",B);if(B===null){break}else{var z=B[0]}log("last_index: "+E);log("token_match.index: "+B.index);if(B.index>E){var H=P.slice(E,B.index);r.Append(H);log('tok: "'+H+'"')}E=L.lastIndex;log('token0: "'+z+'"');var R=false;if(z.slice(-1)=="\n"){z=z.slice(null,-1);R=true}z=z.slice(O,-O);if(z.charAt(0)=="#"){continue}if(z.charAt(0)=="."){z=z.substring(1,z.length);var K={"meta-left":q,"meta-right":y,space:" ",tab:"\t",newline:"\n"}[z];if(K!==undefined){r.Append(K);continue}var s=z.match(n);if(s){var A=s[1];var N=s[3];var w=A?h:p;log("repeated "+A+" section_name "+N);var u=g(N);r.Append([w,u]);x.push(u);r=u;continue}if(z=="alternates with"){r.NewClause("alternate");continue}if(z=="or"){r.NewClause("or");continue}if(z=="end"){x.pop();if(x.length>0){r=x[x.length-1]}else{throw {name:"TemplateSyntaxError",message:"Got too many {end} statements"}}continue}}var D=z.split(M);var S;var U;if(D.length==1){if(I===null){throw {name:"MissingFormatter",message:"This template requires explicit formatters."}}S=[G(I)];U=z}else{S=[];for(var J=1;J<D.length;J++){S.push(G(D[J]))}U=D[0]}r.Append([j,{name:U,formatters:S}]);if(R){r.Append("\n")}}r.Append(P.slice(E));if(x.length!==1){throw {name:"TemplateSyntaxError",message:"Got too few {end} statements"}}return r}function l(q,r){if(!(this instanceof l)){return new l(q,r)}this._options=r||{};this._program=k(q,this._options)}l.prototype.render=function(q,s){var r=f(q,this._options.undefined_str);e(this._program.Statements(),r,s)};l.prototype.expand=function(q){var r=[];this.render(q,function(s){r.push(s)});return r.join("")};return{Template:l,HtmlEscape:m}}();
/*
 * jQuery UI 1.8
 *
 * 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",plugin:{add:function(c,d,f){var e=a.ui[c].prototype;for(var b in f){e.plugins[b]=e.plugins[b]||[];e.plugins[b].push([d,f[b]])}},call:function(b,d,c){var f=b.plugins[d];if(!f||!b.element[0].parentNode){return}for(var e=0;e<f.length;e++){if(b.options[f[e][0]]){f[e][1].apply(b.element,c)}}}},contains:function(d,c){return document.compareDocumentPosition?d.compareDocumentPosition(c)&16:d!==c&&d.contains(c)},hasScroll:function(e,c){if(a(e).css("overflow")=="hidden"){return false}var b=(c&&c=="left")?"scrollLeft":"scrollTop",d=false;if(e[b]>0){return true}e[b]=1;d=(e[b]>0);e[b]=0;return d},isOverAxis:function(c,b,d){return(c>b)&&(c<(b+d))},isOver:function(g,c,f,e,b,d){return a.ui.isOverAxis(g,f,b)&&a.ui.isOverAxis(c,e,d)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};a.fn.extend({_focus:a.fn.focus,focus:function(b,c){return typeof b==="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus();(c&&c.call(d))},b)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var b;if((a.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){b=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{b=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"))||!b.length?a(document):b},zIndex:function(e){if(e!==undefined){return this.css("zIndex",e)}if(this.length){var c=a(this[0]),b,d;while(c.length&&c[0]!==document){b=c.css("position");if(b=="absolute"||b=="relative"||b=="fixed"){d=parseInt(c.css("zIndex"));if(!isNaN(d)&&d!=0){return d}}c=c.parent()}}return 0}});a.extend(a.expr[":"],{data:function(d,c,b){return !!a.data(d,b[3])},focusable:function(c){var d=c.nodeName.toLowerCase(),b=a.attr(c,"tabindex");return(/input|select|textarea|button|object/.test(d)?!c.disabled:"a"==d||"area"==d?c.href||!isNaN(b):!isNaN(b))&&!a(c)["area"==d?"parents":"closest"](":hidden").length},tabbable:function(c){var b=a.attr(c,"tabindex");return(isNaN(b)||b>=0)&&a(c).is(":focusable")}})})(jQuery);
/*
 * jQuery UI Widget 1.8
 *
 * 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(b){var a=b.fn.remove;b.fn.remove=function(c,d){return this.each(function(){if(!d){if(!c||b.filter(c,[this]).length){b("*",this).add(this).each(function(){b(this).triggerHandler("remove")})}}return a.call(b(this),c,d)})};b.widget=function(d,f,c){var e=d.split(".")[0],h;d=d.split(".")[1];h=e+"-"+d;if(!c){c=f;f=b.Widget}b.expr[":"][h]=function(j){return !!b.data(j,d)};b[e]=b[e]||{};b[e][d]=function(j,k){if(arguments.length){this._createWidget(j,k)}};var g=new f();g.options=b.extend({},g.options);b[e][d].prototype=b.extend(true,g,{namespace:e,widgetName:d,widgetEventPrefix:b[e][d].prototype.widgetEventPrefix||d,widgetBaseClass:h},c);b.widget.bridge(d,b[e][d])};b.widget.bridge=function(d,c){b.fn[d]=function(g){var e=typeof g==="string",f=Array.prototype.slice.call(arguments,1),h=this;g=!e&&f.length?b.extend.apply(null,[true,g].concat(f)):g;if(e&&g.substring(0,1)==="_"){return h}if(e){this.each(function(){var j=b.data(this,d),k=j&&b.isFunction(j[g])?j[g].apply(j,f):j;if(k!==j&&k!==undefined){h=k;return false}})}else{this.each(function(){var j=b.data(this,d);if(j){if(g){j.option(g)}j._init()}else{b.data(this,d,new c(g,this))}})}return h}};b.Widget=function(c,d){if(arguments.length){this._createWidget(c,d)}};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(d,e){this.element=b(e).data(this.widgetName,this);this.options=b.extend(true,{},this.options,b.metadata&&b.metadata.get(e)[this.widgetName],d);var c=this;this.element.bind("remove."+this.widgetName,function(){c.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 "+this.namespace+"-state-disabled")},widget:function(){return this.element},option:function(e,f){var d=e,c=this;if(arguments.length===0){return b.extend({},c.options)}if(typeof e==="string"){if(f===undefined){return this.options[e]}d={};d[e]=f}b.each(d,function(g,h){c._setOption(g,h)});return c},_setOption:function(c,d){this.options[c]=d;if(c==="disabled"){this.widget()[d?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",d)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(d,e,f){var h=this.options[d];e=b.Event(e);e.type=(d===this.widgetEventPrefix?d:this.widgetEventPrefix+d).toLowerCase();f=f||{};if(e.originalEvent){for(var c=b.event.props.length,g;c;){g=b.event.props[--c];e[g]=e.originalEvent[g]}}this.element.trigger(e,f);return !(b.isFunction(h)&&h.call(this.element[0],e,f)===false||e.isDefaultPrevented())}}})(jQuery);(function(c){var b=0,a=0;c.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(d,e){if(d=="selected"){if(this.options.collapsible&&e==this.options.selected){return}this.select(e)}else{this.options[d]=e;this._tabify()}},_tabId:function(d){return d.title&&d.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+(++b)},_sanitizeSelector:function(d){return d.replace(/:/g,"\\:")},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+(++a));return c.cookie.apply(null,[d].concat(c.makeArray(arguments)))},_ui:function(e,d){return{tab:e,panel:d,index:this.anchors.index(e)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var d=c(this);d.html(d.data("label.tabs")).removeData("label.tabs")})},_tabify:function(q){this.list=this.element.find("ol,ul").eq(0);this.lis=c("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return c("a",this)[0]});this.panels=c([]);var r=this,f=this.options;var e=/^#.+/;this.anchors.each(function(u,o){var s=c(o).attr("href");var v=s.split("#")[0],w;if(v&&(v===location.toString().split("#")[0]||(w=c("base")[0])&&v===w.href)){s=o.hash;o.href=s}if(e.test(s)){r.panels=r.panels.add(r._sanitizeSelector(s))}else{if(s!="#"){c.data(o,"href.tabs",s);c.data(o,"load.tabs",s.replace(/#.*$/,""));var y=r._tabId(o);o.href="#"+y;var x=c("#"+y);if(!x.length){x=c(f.panelTemplate).attr("id",y).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(r.panels[u-1]||r.list);x.data("destroy.tabs",true)}r.panels=r.panels.add(x)}else{f.disabled.push(u)}}});if(q){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(f.selected===undefined){if(location.hash){this.anchors.each(function(s,o){if(o.hash==location.hash){f.selected=s;return false}})}if(typeof f.selected!="number"&&f.cookie){f.selected=parseInt(r._cookie(),10)}if(typeof f.selected!="number"&&this.lis.filter(".ui-tabs-selected").length){f.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}f.selected=f.selected||(this.lis.length?0:-1)}else{if(f.selected===null){f.selected=-1}}f.selected=((f.selected>=0&&this.anchors[f.selected])||f.selected<0)?f.selected:0;f.disabled=c.unique(f.disabled.concat(c.map(this.lis.filter(".ui-state-disabled"),function(s,o){return r.lis.index(s)}))).sort();if(c.inArray(f.selected,f.disabled)!=-1){f.disabled.splice(c.inArray(f.selected,f.disabled),1)}this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(f.selected>=0&&this.anchors.length){this.panels.eq(f.selected).removeClass("ui-tabs-hide");this.lis.eq(f.selected).addClass("ui-tabs-selected ui-state-active");r.element.queue("tabs",function(){r._trigger("show",null,r._ui(r.anchors[f.selected],r.panels[f.selected]))});this.load(f.selected)}c(window).bind("unload",function(){r.lis.add(r.anchors).unbind(".tabs");r.lis=r.anchors=r.panels=null})}else{f.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[f.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");if(f.cookie){this._cookie(f.selected,f.cookie)}for(var j=0,p;(p=this.lis[j]);j++){c(p)[c.inArray(j,f.disabled)!=-1&&!c(p).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}if(f.cache===false){this.anchors.removeData("cache.tabs")}this.lis.add(this.anchors).unbind(".tabs");if(f.event!="mouseover"){var h=function(s,o){if(o.is(":not(.ui-state-disabled)")){o.addClass("ui-state-"+s)}};var l=function(s,o){o.removeClass("ui-state-"+s)};this.lis.bind("mouseover.tabs",function(){h("hover",c(this))});this.lis.bind("mouseout.tabs",function(){l("hover",c(this))});this.anchors.bind("focus.tabs",function(){h("focus",c(this).closest("li"))});this.anchors.bind("blur.tabs",function(){l("focus",c(this).closest("li"))})}var d,k;if(f.fx){if(c.isArray(f.fx)){d=f.fx[0];k=f.fx[1]}else{d=k=f.fx}}function g(o,s){o.css({display:""});if(!c.support.opacity&&s.opacity){o[0].style.removeAttribute("filter")}}var m=k?function(o,s){c(o).closest("li").addClass("ui-tabs-selected ui-state-active");s.hide().removeClass("ui-tabs-hide").animate(k,k.duration||"normal",function(){g(s,k);r._trigger("show",null,r._ui(o,s[0]))})}:function(o,s){c(o).closest("li").addClass("ui-tabs-selected ui-state-active");s.removeClass("ui-tabs-hide");r._trigger("show",null,r._ui(o,s[0]))};var n=d?function(s,o){o.animate(d,d.duration||"normal",function(){r.lis.removeClass("ui-tabs-selected ui-state-active");o.addClass("ui-tabs-hide");g(o,d);r.element.dequeue("tabs")})}:function(s,o,u){r.lis.removeClass("ui-tabs-selected ui-state-active");o.addClass("ui-tabs-hide");r.element.dequeue("tabs")};this.anchors.bind(f.event+".tabs",function(){var s=this,v=c(this).closest("li"),o=r.panels.filter(":not(.ui-tabs-hide)"),u=c(r._sanitizeSelector(this.hash));if((v.hasClass("ui-tabs-selected")&&!f.collapsible)||v.hasClass("ui-state-disabled")||v.hasClass("ui-state-processing")||r._trigger("select",null,r._ui(this,u[0]))===false){this.blur();return false}f.selected=r.anchors.index(this);r.abort();if(f.collapsible){if(v.hasClass("ui-tabs-selected")){f.selected=-1;if(f.cookie){r._cookie(f.selected,f.cookie)}r.element.queue("tabs",function(){n(s,o)}).dequeue("tabs");this.blur();return false}else{if(!o.length){if(f.cookie){r._cookie(f.selected,f.cookie)}r.element.queue("tabs",function(){m(s,u)});r.load(r.anchors.index(this));this.blur();return false}}}if(f.cookie){r._cookie(f.selected,f.cookie)}if(u.length){if(o.length){r.element.queue("tabs",function(){n(s,o)})}r.element.queue("tabs",function(){m(s,u)});r.load(r.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(c.browser.msie){this.blur()}});this.anchors.bind("click.tabs",function(){return false})},destroy:function(){var d=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 e=c.data(this,"href.tabs");if(e){this.href=e}var f=c(this).unbind(".tabs");c.each(["href","load","cache"],function(g,h){f.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){if(c.data(this,"destroy.tabs")){c(this).remove()}else{c(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(d.cookie){this._cookie(null,d.cookie)}return this},add:function(g,f,e){if(e===undefined){e=this.anchors.length}var d=this,j=this.options,l=c(j.tabTemplate.replace(/#\{href\}/g,g).replace(/#\{label\}/g,f)),k=!g.indexOf("#")?g.replace("#",""):this._tabId(c("a",l)[0]);l.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var h=c("#"+k);if(!h.length){h=c(j.panelTemplate).attr("id",k).data("destroy.tabs",true)}h.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(e>=this.lis.length){l.appendTo(this.list);h.appendTo(this.list[0].parentNode)}else{l.insertBefore(this.lis[e]);h.insertBefore(this.panels[e])}j.disabled=c.map(j.disabled,function(o,m){return o>=e?++o:o});this._tabify();if(this.anchors.length==1){j.selected=0;l.addClass("ui-tabs-selected ui-state-active");h.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){d._trigger("show",null,d._ui(d.anchors[0],d.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[e],this.panels[e]));return this},remove:function(d){var f=this.options,g=this.lis.eq(d).remove(),e=this.panels.eq(d).remove();if(g.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(d+(d+1<this.anchors.length?1:-1))}f.disabled=c.map(c.grep(f.disabled,function(j,h){return j!=d}),function(j,h){return j>=d?--j:j});this._tabify();this._trigger("remove",null,this._ui(g.find("a")[0],e[0]));return this},enable:function(d){var e=this.options;if(c.inArray(d,e.disabled)==-1){return}this.lis.eq(d).removeClass("ui-state-disabled");e.disabled=c.grep(e.disabled,function(g,f){return g!=d});this._trigger("enable",null,this._ui(this.anchors[d],this.panels[d]));return this},disable:function(e){var d=this,f=this.options;if(e!=f.selected){this.lis.eq(e).addClass("ui-state-disabled");f.disabled.push(e);f.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[e],this.panels[e]))}return this},select:function(d){if(typeof d=="string"){d=this.anchors.index(this.anchors.filter("[href$="+d+"]"))}else{if(d===null){d=-1}}if(d==-1&&this.options.collapsible){d=this.options.selected}this.anchors.eq(d).trigger(this.options.event+".tabs");return this},load:function(g){var e=this,j=this.options,d=this.anchors.eq(g)[0],f=c.data(d,"load.tabs");this.abort();if(!f||this.element.queue("tabs").length!==0&&c.data(d,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(g).addClass("ui-state-processing");if(j.spinner){var h=c("span",d);h.data("label.tabs",h.html()).html(j.spinner)}this.xhr=c.ajax(c.extend({},j.ajaxOptions,{url:f,success:function(l,k){c(e._sanitizeSelector(d.hash)).html(l);e._cleanup();if(j.cache){c.data(d,"cache.tabs",true)}e._trigger("load",null,e._ui(e.anchors[g],e.panels[g]));try{j.ajaxOptions.success(l,k)}catch(m){}},error:function(m,k,l){e._cleanup();e._trigger("load",null,e._ui(e.anchors[g],e.panels[g]));try{j.ajaxOptions.error(m,k,g,d)}catch(l){}}}));e.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(e,d){this.anchors.eq(e).removeData("cache.tabs").data("load.tabs",d);return this},length:function(){return this.anchors.length}});c.extend(c.ui.tabs,{version:"1.8"});c.extend(c.ui.tabs.prototype,{rotation:null,rotate:function(f,h){var d=this,j=this.options;var e=d._rotate||(d._rotate=function(k){clearTimeout(d.rotation);d.rotation=setTimeout(function(){var l=j.selected;d.select(++l<d.anchors.length?l:0)},f);if(k){k.stopPropagation()}});var g=d._unrotate||(d._unrotate=!h?function(k){if(k.clientX){d.rotate(null)}}:function(k){t=j.selected;e()});if(f){this.element.bind("tabsshow",e);this.anchors.bind(j.event+".tabs",g);e()}else{clearTimeout(d.rotation);this.element.unbind("tabsshow",e);this.anchors.unbind(j.event+".tabs",g);delete this._rotate;delete this._unrotate}return this}})})(jQuery);jQuery.effects||(function(g){g.effects={};g.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(m,l){g.fx.step[l]=function(n){if(!n.colorInit){n.start=k(n.elem,l);n.end=j(n.end);n.colorInit=true}n.elem.style[l]="rgb("+Math.max(Math.min(parseInt((n.pos*(n.end[0]-n.start[0]))+n.start[0],10),255),0)+","+Math.max(Math.min(parseInt((n.pos*(n.end[1]-n.start[1]))+n.start[1],10),255),0)+","+Math.max(Math.min(parseInt((n.pos*(n.end[2]-n.start[2]))+n.start[2],10),255),0)+")"}});function j(m){var l;if(m&&m.constructor==Array&&m.length==3){return m}if(l=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(m)){return[parseInt(l[1],10),parseInt(l[2],10),parseInt(l[3],10)]}if(l=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(m)){return[parseFloat(l[1])*2.55,parseFloat(l[2])*2.55,parseFloat(l[3])*2.55]}if(l=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(m)){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}if(l=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(m)){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}if(l=/rgba\(0, 0, 0, 0\)/.exec(m)){return a.transparent}return a[g.trim(m).toLowerCase()]}function k(n,l){var m;do{m=g.curCSS(n,l);if(m!=""&&m!="transparent"||g.nodeName(n,"body")){break}l="backgroundColor"}while(n=n.parentNode);return j(m)}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 e=["add","remove","toggle"],c={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function f(){var o=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,p={},m,n;if(o&&o.length&&o[0]&&o[o[0]]){var l=o.length;while(l--){m=o[l];if(typeof o[m]=="string"){n=m.replace(/\-(\w)/g,function(q,r){return r.toUpperCase()});p[n]=o[m]}}}else{for(m in o){if(typeof o[m]==="string"){p[m]=o[m]}}}return p}function b(m){var l,n;for(l in m){n=m[l];if(n==null||g.isFunction(n)||l in c||(/scrollbar/).test(l)||(!(/color/i).test(l)&&isNaN(parseFloat(n)))){delete m[l]}}return m}function h(l,n){var o={_:0},m;for(m in n){if(l[m]!=n[m]){o[m]=n[m]}}return o}g.effects.animateClass=function(l,m,o,n){if(g.isFunction(o)){n=o;o=null}return this.each(function(){var s=g(this),p=s.attr("style")||" ",u=b(f.call(this)),r,q=s.attr("className");g.each(e,function(v,w){if(l[w]){s[w+"Class"](l[w])}});r=b(f.call(this));s.attr("className",q);s.animate(h(u,r),m,o,function(){g.each(e,function(v,w){if(l[w]){s[w+"Class"](l[w])}});if(typeof s.attr("style")=="object"){s.attr("style").cssText="";s.attr("style").cssText=p}else{s.attr("style",p)}if(n){n.apply(this,arguments)}})})};g.fn.extend({_addClass:g.fn.addClass,addClass:function(m,l,o,n){return l?g.effects.animateClass.apply(this,[{add:m},l,o,n]):this._addClass(m)},_removeClass:g.fn.removeClass,removeClass:function(m,l,o,n){return l?g.effects.animateClass.apply(this,[{remove:m},l,o,n]):this._removeClass(m)},_toggleClass:g.fn.toggleClass,toggleClass:function(n,m,l,p,o){if(typeof m=="boolean"||m===undefined){if(!l){return this._toggleClass(n,m)}else{return g.effects.animateClass.apply(this,[(m?{add:n}:{remove:n}),l,p,o])}}else{return g.effects.animateClass.apply(this,[{toggle:n},m,l,p])}},switchClass:function(l,n,m,p,o){return g.effects.animateClass.apply(this,[{add:n,remove:l},m,p,o])}});g.extend(g.effects,{version:"1.8",save:function(m,n){for(var l=0;l<n.length;l++){if(n[l]!==null){m.data("ec.storage."+n[l],m[0].style[n[l]])}}},restore:function(m,n){for(var l=0;l<n.length;l++){if(n[l]!==null){m.css(n[l],m.data("ec.storage."+n[l]))}}},setMode:function(l,m){if(m=="toggle"){m=l.is(":hidden")?"show":"hide"}return m},getBaseline:function(m,n){var o,l;switch(m[0]){case"top":o=0;break;case"middle":o=0.5;break;case"bottom":o=1;break;default:o=m[0]/n.height}switch(m[1]){case"left":l=0;break;case"center":l=0.5;break;case"right":l=1;break;default:l=m[1]/n.width}return{x:l,y:o}},createWrapper:function(l){if(l.parent().is(".ui-effects-wrapper")){return l.parent()}var m={width:l.outerWidth(true),height:l.outerHeight(true),"float":l.css("float")},n=g("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});l.wrap(n);n=l.parent();if(l.css("position")=="static"){n.css({position:"relative"});l.css({position:"relative"})}else{g.extend(m,{position:l.css("position"),zIndex:l.css("z-index")});g.each(["top","left","bottom","right"],function(o,p){m[p]=l.css(p);if(isNaN(parseInt(m[p],10))){m[p]="auto"}});l.css({position:"relative",top:0,left:0})}return n.css(m).show()},removeWrapper:function(l){if(l.parent().is(".ui-effects-wrapper")){return l.parent().replaceWith(l)}return l},setTransition:function(m,o,l,n){n=n||{};g.each(o,function(q,p){unit=m.cssUnit(p);if(unit[0]>0){n[p]=unit[0]*l+unit[1]}});return n}});function d(m,l,n,o){if(typeof m=="object"){o=l;n=null;l=m;m=l.effect}if(g.isFunction(l)){o=l;n=null;l={}}if(g.isFunction(n)){o=n;n=null}if(typeof l=="number"||g.fx.speeds[l]){o=n;n=l;l={}}l=l||{};n=n||l.duration;n=g.fx.off?0:typeof n=="number"?n:g.fx.speeds[n]||g.fx.speeds._default;o=o||l.complete;return[m,l,n,o]}g.fn.extend({effect:function(o,n,q,r){var m=d.apply(this,arguments),p={options:m[1],duration:m[2],callback:m[3]},l=g.effects[o];return l&&!g.fx.off?l.call(this,p):this},_show:g.fn.show,show:function(m){if(!m||typeof m=="number"||g.fx.speeds[m]){return this._show.apply(this,arguments)}else{var l=d.apply(this,arguments);l[1].mode="show";return this.effect.apply(this,l)}},_hide:g.fn.hide,hide:function(m){if(!m||typeof m=="number"||g.fx.speeds[m]){return this._hide.apply(this,arguments)}else{var l=d.apply(this,arguments);l[1].mode="hide";return this.effect.apply(this,l)}},__toggle:g.fn.toggle,toggle:function(m){if(!m||typeof m=="number"||g.fx.speeds[m]||typeof m=="boolean"||g.isFunction(m)){return this.__toggle.apply(this,arguments)}else{var l=d.apply(this,arguments);l[1].mode="toggle";return this.effect.apply(this,l)}},cssUnit:function(l){var m=this.css(l),n=[];g.each(["em","px","%","pt"],function(o,p){if(m.indexOf(p)>0){n=[parseFloat(m),p]}});return n}});g.easing.jswing=g.easing.swing;g.extend(g.easing,{def:"easeOutQuad",swing:function(m,n,l,p,o){return g.easing[g.easing.def](m,n,l,p,o)},easeInQuad:function(m,n,l,p,o){return p*(n/=o)*n+l},easeOutQuad:function(m,n,l,p,o){return -p*(n/=o)*(n-2)+l},easeInOutQuad:function(m,n,l,p,o){if((n/=o/2)<1){return p/2*n*n+l}return -p/2*((--n)*(n-2)-1)+l},easeInCubic:function(m,n,l,p,o){return p*(n/=o)*n*n+l},easeOutCubic:function(m,n,l,p,o){return p*((n=n/o-1)*n*n+1)+l},easeInOutCubic:function(m,n,l,p,o){if((n/=o/2)<1){return p/2*n*n*n+l}return p/2*((n-=2)*n*n+2)+l},easeInQuart:function(m,n,l,p,o){return p*(n/=o)*n*n*n+l},easeOutQuart:function(m,n,l,p,o){return -p*((n=n/o-1)*n*n*n-1)+l},easeInOutQuart:function(m,n,l,p,o){if((n/=o/2)<1){return p/2*n*n*n*n+l}return -p/2*((n-=2)*n*n*n-2)+l},easeInQuint:function(m,n,l,p,o){return p*(n/=o)*n*n*n*n+l},easeOutQuint:function(m,n,l,p,o){return p*((n=n/o-1)*n*n*n*n+1)+l},easeInOutQuint:function(m,n,l,p,o){if((n/=o/2)<1){return p/2*n*n*n*n*n+l}return p/2*((n-=2)*n*n*n*n+2)+l},easeInSine:function(m,n,l,p,o){return -p*Math.cos(n/o*(Math.PI/2))+p+l},easeOutSine:function(m,n,l,p,o){return p*Math.sin(n/o*(Math.PI/2))+l},easeInOutSine:function(m,n,l,p,o){return -p/2*(Math.cos(Math.PI*n/o)-1)+l},easeInExpo:function(m,n,l,p,o){return(n==0)?l:p*Math.pow(2,10*(n/o-1))+l},easeOutExpo:function(m,n,l,p,o){return(n==o)?l+p:p*(-Math.pow(2,-10*n/o)+1)+l},easeInOutExpo:function(m,n,l,p,o){if(n==0){return l}if(n==o){return l+p}if((n/=o/2)<1){return p/2*Math.pow(2,10*(n-1))+l}return p/2*(-Math.pow(2,-10*--n)+2)+l},easeInCirc:function(m,n,l,p,o){return -p*(Math.sqrt(1-(n/=o)*n)-1)+l},easeOutCirc:function(m,n,l,p,o){return p*Math.sqrt(1-(n=n/o-1)*n)+l},easeInOutCirc:function(m,n,l,p,o){if((n/=o/2)<1){return -p/2*(Math.sqrt(1-n*n)-1)+l}return p/2*(Math.sqrt(1-(n-=2)*n)+1)+l},easeInElastic:function(m,o,l,v,u){var q=1.70158;var r=0;var n=v;if(o==0){return l}if((o/=u)==1){return l+v}if(!r){r=u*0.3}if(n<Math.abs(v)){n=v;var q=r/4}else{var q=r/(2*Math.PI)*Math.asin(v/n)}return -(n*Math.pow(2,10*(o-=1))*Math.sin((o*u-q)*(2*Math.PI)/r))+l},easeOutElastic:function(m,o,l,v,u){var q=1.70158;var r=0;var n=v;if(o==0){return l}if((o/=u)==1){return l+v}if(!r){r=u*0.3}if(n<Math.abs(v)){n=v;var q=r/4}else{var q=r/(2*Math.PI)*Math.asin(v/n)}return n*Math.pow(2,-10*o)*Math.sin((o*u-q)*(2*Math.PI)/r)+v+l},easeInOutElastic:function(m,o,l,v,u){var q=1.70158;var r=0;var n=v;if(o==0){return l}if((o/=u/2)==2){return l+v}if(!r){r=u*(0.3*1.5)}if(n<Math.abs(v)){n=v;var q=r/4}else{var q=r/(2*Math.PI)*Math.asin(v/n)}if(o<1){return -0.5*(n*Math.pow(2,10*(o-=1))*Math.sin((o*u-q)*(2*Math.PI)/r))+l}return n*Math.pow(2,-10*(o-=1))*Math.sin((o*u-q)*(2*Math.PI)/r)*0.5+v+l},easeInBack:function(m,n,l,q,p,o){if(o==undefined){o=1.70158}return q*(n/=p)*n*((o+1)*n-o)+l},easeOutBack:function(m,n,l,q,p,o){if(o==undefined){o=1.70158}return q*((n=n/p-1)*n*((o+1)*n+o)+1)+l},easeInOutBack:function(m,n,l,q,p,o){if(o==undefined){o=1.70158}if((n/=p/2)<1){return q/2*(n*n*(((o*=(1.525))+1)*n-o))+l}return q/2*((n-=2)*n*(((o*=(1.525))+1)*n+o)+2)+l},easeInBounce:function(m,n,l,p,o){return p-g.easing.easeOutBounce(m,o-n,0,p,o)+l},easeOutBounce:function(m,n,l,p,o){if((n/=o)<(1/2.75)){return p*(7.5625*n*n)+l}else{if(n<(2/2.75)){return p*(7.5625*(n-=(1.5/2.75))*n+0.75)+l}else{if(n<(2.5/2.75)){return p*(7.5625*(n-=(2.25/2.75))*n+0.9375)+l}else{return p*(7.5625*(n-=(2.625/2.75))*n+0.984375)+l}}}},easeInOutBounce:function(m,n,l,p,o){if(n<o/2){return g.easing.easeInBounce(m,n*2,0,p,o)*0.5+l}return g.easing.easeOutBounce(m,n*2-o,0,p,o)*0.5+p*0.5+l}})})(jQuery);(function(a){a.effects.slide=function(b){return this.queue(function(){var e=a(this),d=["position","top","left"];var j=a.effects.setMode(e,b.options.mode||"show");var h=b.options.direction||"left";a.effects.save(e,d);e.show();a.effects.createWrapper(e).css({overflow:"hidden"});var f=(h=="up"||h=="down")?"top":"left";var c=(h=="up"||h=="left")?"pos":"neg";var k=b.options.distance||(f=="top"?e.outerHeight({margin:true}):e.outerWidth({margin:true}));if(j=="show"){e.css(f,c=="pos"?-k:k)}var g={};g[f]=(j=="show"?(c=="pos"?"+=":"-="):(c=="pos"?"-=":"+="))+k;e.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(j=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);sprintf=function(){if(!arguments||arguments.length<1||!RegExp){return}var l=arguments[0],j=/([^%]*)%('.|0|\x20)?(-)?(\d+)?(\.\d+)?(%|b|c|d|u|f|o|s|x|X)(.*)/m,v,s,c=0,g=0;v=s=[];while(!!(v=j.exec(l))){var k=v[1],q=v[2],w=v[3],p=v[4];var m=v[5],h=v[6],e=v[7];g++;if(h=="%"){d="%"}else{c++;if(c>=arguments.length){console.log("Error! Not enough function arguments ("+(arguments.length-1)+", excluding the string) for the number of substitution parameters in string ("+c+" so far).")}var f=arguments[c];var r="";if(q&&q.substr(0,1)=="'"){r=k.substr(1,1)}else{if(q){r=q}}var o=true;if(w&&w==="-"){o=false}var u=-1;if(p){u=parseInt(p)}var n=-1;if(m&&h=="f"){n=parseInt(m.substring(1))}var d=f;switch(h){case"b":d=parseInt(f).toString(2);break;case"c":d=String.fromCharCode(parseInt(f));break;case"d":d=parseInt(f)||0;break;case"u":d=Math.abs(f);break;case"f":d=(n>-1)?Math.round(parseFloat(f)*Math.pow(10,n))/Math.pow(10,n):parseFloat(f);break;case"o":d=parseInt(f).toString(8);break;case"s":d=f;break;case"x":d=(""+parseInt(f).toString(16)).toLowerCase();break;case"X":d=(""+parseInt(f).toString(16)).toUpperCase();break;default:break}}l=k+d+e}return l};zipper=function(b,a){var c,e=[],d=(b.length>a.length)?b.length:a.length;for(c=0;c<d;c++){if(b[c]){e[e.length]=b[c]}if(a[c]){e[e.length]=a[c]}}return e};ssprintf=function(){var a=Array.prototype.slice.call(arguments),b=a.shift();if($.isArray(b)){b=b.join("")}return zipper(b.split("%s"),a).join("")};initTypography=function(){};friendlyFilter=function(b,a){b=b||"";if(a){return b.replace(/ /g,"_").replace(/[^\w\.\-]/g,"")}else{return b.toLowerCase().replace(/\W/g,"")}};hidePwds=function(a){$(a).each(function(c,b){var d=$(this);d.after('<input type="text" class="'+this.className+' hidden">');d.focus(function(){var e=$(this);e.addClass("hidden");e.next().val(e.val()).removeClass("hidden").focus()});d.next().blur(function(f){var e=$(this);e.addClass("hidden");e.prev().val(e.val()).removeClass("hidden")}).click(function(){return false}).keypress(function(e){if(e.keyCode==13){d.blur();return false}return true})})};statusInfo=function(d,e){var a=$("#message-saving"),c=a.text(),f=false,g,b;b=function(){if(f){a.fadeOut(400,function(){a.html(c).removeAttr("class")});clearTimeout(g);f=false}};if(d.match(/wait|build/i)){if(e.match(/saving/i)){e="Saving&hellip;"}a.html(e).addClass("type-"+d).fadeIn(200);f=true;$(document).unbind("ajaxStop.saving").bindOnce("ajaxStop.saving",b);g=setTimeout(b,15000);return true}return false};popup_window=function(a,b,c){var d=window.open.apply(this,arguments);if(window.focus){d.focus()}return false};scroll_to_bottom=function(a){var b=document.getElementById(a);b.scrollTop=b.scrollHeight};getTime=function(){var b=new Date(),a={hrs:b.getHours(),mins:b.getMinutes(),secs:b.getSeconds()};if(a.hrs<10){a.hrs="0"+a.hrs}if(a.mins<10){a.mins="0"+a.mins}if(a.secs<10){a.secs="0"+a.secs}return a.hrs+":"+a.mins+":"+a.secs};formatTime=function(c){if(isNaN(c)){return""}var b=Math.floor(c/60);var a=Math.floor(b/60);c=Math.round(c%60);b=Math.round(b%60);if(c<10){c="0"+c}if(a>0){if(b<10){b="0"+b}return a+":"+b+":"+c}return b+":"+c};roundNumber=function(a,b){b=(typeof b==="undefined")?1:b;return Math.round(a*Math.pow(10,b))/Math.pow(10,b)};number_to_human_size=function(b,a){var e=Math.pow,d,c={kilobyte:1024,megabyte:e(1024,2),gigabyte:e(1024,3),terrabyte:e(1024,4)};a=(typeof a==="undefined")?1:a;switch(true){case (b==1):d="1 Byte";break;case (b<c.kilobyte):d=b+" Bytes";break;case (b<c.megabyte):d=roundNumber(b/c.kilobyte)+" KB";break;case (b<c.gigabyte):d=roundNumber(b/c.megabyte)+" MB";break;case (b<c.terrabyte):d=roundNumber(b/c.gigabyte)+" GB";break;default:d=roundNumber(b/c.terrabyte)+" TB";break}return d.replace(/ /,"&nbsp;")};var preloadImages=function(b){var a;if(typeof imagelist==="array"){$.each(imgPreloads,function(){a+='<img src="../images/'+this+'">'});$("body").append('<div id="image-preload">'+a+"</div>");setTimeout(function(){$("#image-preload").remove()},200)}};function createCookie(c,d,e){var a;if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));a="; expires="+b.toGMTString()}else{a=""}document.cookie=c+"="+d+a+"; path=/"}function readCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)===0){return f.substring(e.length,f.length)}}return null}function eraseCookie(a){createCookie(a,"",-1)}if(typeof Object.beget!=="function"){Object.beget=function(b){function a(){}a.prototype=b;return new a()}}if(typeof String.repeat!=="function"){String.prototype.repeat=function(a){return Array(a+1).join(this)}}function evalIfIsJavascript(b){var a=(b.getResponseHeader("content-type").indexOf("text/javascript")>=0);if(a){jQuery.globalEval(b.responseText)}return a}function randomNum(){return Math.floor(Math.random()*999999999)}String.prototype.toSentenceCase=function(){return this.substr(0,1).toUpperCase()+this.substr(1)};var smartJoin=function(c,a){if(!c){return false}var b;a=a||"and";if(c.length>2){b=c.pop();return c.join(", ")+", "+a+" "+b}else{return c.join(" "+a+" ")}};function escape_name(a){return a.replace(/\+/g,"--plus--").replace(/ /g,"--space--").replace(/\./g,"--dot--")}function hideList(b,a){b=$.extend({spinner:true,duration:40},b);if(b.spinner!==false){a.parent().addClass("busy big")}a.css("visibility","hidden")}function showList(b,a){b=$.extend({spinner:true,duration:5,html:null},b);if(b.html!==null){a.html(b.html)}a.parent().removeClass("busy big");a.css("visibility","visible")}function addAllCheck(b,c,a){if(b>a){alert("Too many packages (maximum is "+a+"), please refine your search.");return false}if(b>c){return confirm("You are about to add "+b+" to your package selection, are you sure about that?")}return true}var keysToArray=function(b){var a=[];if(!b){return undefined}$.each(b,function(c){a.push(c)});return a};objectLength=function(c){var b=0,a;for(a in c){if(c.hasOwnProperty(a)){b++}}return b};var addUrlParam=function(b,a,d){var e=a+"="+d,c="?"+e;if(!d){return b}if(b){c=b.replace(new RegExp("([?&])"+a+"[^&]*"),"$1"+e);if(c===b){c+="&"+e}}return c};function PrototypeCompat(){this.show=function(element){jQuery("#"+element).show()};this.hide=function(element){jQuery("#"+element).hide()};this.update=function(element,code){var json=null;if(code&&code[0]=="{"&&code[code.length-1]=="}"){try{eval("json = "+code)}catch(e){json=null}}if(code&&json&&json.is_json){json_partial(json,element)}else{jQuery("#"+element).html(code)}};this.replace=function(element,code){this.update(element,code)}}Element=new PrototypeCompat;function Insertion(){}Insertion.Bottom=function(a,b){jQuery("#"+a).append(b)};Insertion.After=function(a,b){jQuery("#"+a).after(b)};Insertion.Before=function(a,b){jQuery("#"+a).before(b)};Insertion.Top=function(a,b){jQuery("#"+a).prepend(b)};sprintf=function(){if(!arguments||arguments.length<1||!RegExp){return}var l=arguments[0],j=/([^%]*)%('.|0|\x20)?(-)?(\d+)?(\.\d+)?(%|b|c|d|u|f|o|s|x|X)(.*)/m,v,s,c=0,g=0;v=s=[];while(!!(v=j.exec(l))){var k=v[1],q=v[2],w=v[3],p=v[4];var m=v[5],h=v[6],e=v[7];g++;if(h=="%"){d="%"}else{c++;if(c>=arguments.length){console.log("Error! Not enough function arguments ("+(arguments.length-1)+", excluding the string) for the number of substitution parameters in string ("+c+" so far).")}var f=arguments[c];var r="";if(q&&q.substr(0,1)=="'"){r=k.substr(1,1)}else{if(q){r=q}}var o=true;if(w&&w==="-"){o=false}var u=-1;if(p){u=parseInt(p)}var n=-1;if(m&&h=="f"){n=parseInt(m.substring(1))}var d=f;switch(h){case"b":d=parseInt(f).toString(2);break;case"c":d=String.fromCharCode(parseInt(f));break;case"d":d=parseInt(f)||0;break;case"u":d=Math.abs(f);break;case"f":d=(n>-1)?Math.round(parseFloat(f)*Math.pow(10,n))/Math.pow(10,n):parseFloat(f);break;case"o":d=parseInt(f).toString(8);break;case"s":d=f;break;case"x":d=(""+parseInt(f).toString(16)).toLowerCase();break;case"X":d=(""+parseInt(f).toString(16)).toUpperCase();break;default:break}}l=k+d+e}return l};zipper=function(b,a){var c,e=[],d=(b.length>a.length)?b.length:a.length;for(c=0;c<d;c++){if(b[c]){e[e.length]=b[c]}if(a[c]){e[e.length]=a[c]}}return e};ssprintf=function(){var a=Array.prototype.slice.call(arguments),b=a.shift();if($.isArray(b)){b=b.join("")}return zipper(b.split("%s"),a).join("")};initTypography=function(){};friendlyFilter=function(b,a){b=b||"";if(a){return b.replace(/ /g,"_").replace(/[^\w\.\-]/g,"")}else{return b.toLowerCase().replace(/\W/g,"")}};hidePwds=function(a){$(a).each(function(c,b){var d=$(this);d.after('<input type="text" class="'+this.className+' hidden">');d.focus(function(){var e=$(this);e.addClass("hidden");e.next().val(e.val()).removeClass("hidden").focus()});d.next().blur(function(f){var e=$(this);e.addClass("hidden");e.prev().val(e.val()).removeClass("hidden")}).click(function(){return false}).keypress(function(e){if(e.keyCode==13){d.blur();return false}return true})})};statusInfo=function(d,e){var a=$("#message-saving"),c=a.text(),f=false,g,b;b=function(){if(f){a.fadeOut(400,function(){a.html(c).removeAttr("class")});clearTimeout(g);f=false}};if(d.match(/wait|build/i)){if(e.match(/saving/i)){e="Saving&hellip;"}a.html(e).addClass("type-"+d).fadeIn(200);f=true;$(document).unbind("ajaxStop.saving").bindOnce("ajaxStop.saving",b);g=setTimeout(b,15000);return true}return false};popup_window=function(a,b,c){var d=window.open.apply(this,arguments);if(window.focus){d.focus()}return false};scroll_to_bottom=function(a){var b=document.getElementById(a);b.scrollTop=b.scrollHeight};getTime=function(){var b=new Date(),a={hrs:b.getHours(),mins:b.getMinutes(),secs:b.getSeconds()};if(a.hrs<10){a.hrs="0"+a.hrs}if(a.mins<10){a.mins="0"+a.mins}if(a.secs<10){a.secs="0"+a.secs}return a.hrs+":"+a.mins+":"+a.secs};formatTime=function(c){if(isNaN(c)){return""}var b=Math.floor(c/60);var a=Math.floor(b/60);c=Math.round(c%60);b=Math.round(b%60);if(c<10){c="0"+c}if(a>0){if(b<10){b="0"+b}return a+":"+b+":"+c}return b+":"+c};roundNumber=function(a,b){b=(typeof b==="undefined")?1:b;return Math.round(a*Math.pow(10,b))/Math.pow(10,b)};number_to_human_size=function(b,a){var e=Math.pow,d,c={kilobyte:1024,megabyte:e(1024,2),gigabyte:e(1024,3),terrabyte:e(1024,4)};a=(typeof a==="undefined")?1:a;switch(true){case (b==1):d="1 Byte";break;case (b<c.kilobyte):d=b+" Bytes";break;case (b<c.megabyte):d=roundNumber(b/c.kilobyte)+" KB";break;case (b<c.gigabyte):d=roundNumber(b/c.megabyte)+" MB";break;case (b<c.terrabyte):d=roundNumber(b/c.gigabyte)+" GB";break;default:d=roundNumber(b/c.terrabyte)+" TB";break}return d.replace(/ /,"&nbsp;")};var preloadImages=function(b){var a;if(typeof imagelist==="array"){$.each(imgPreloads,function(){a+='<img src="../images/'+this+'">'});$("body").append('<div id="image-preload">'+a+"</div>");setTimeout(function(){$("#image-preload").remove()},200)}};function createCookie(c,d,e){var a;if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));a="; expires="+b.toGMTString()}else{a=""}document.cookie=c+"="+d+a+"; path=/"}function readCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)===0){return f.substring(e.length,f.length)}}return null}function eraseCookie(a){createCookie(a,"",-1)}if(typeof Object.beget!=="function"){Object.beget=function(b){function a(){}a.prototype=b;return new a()}}if(typeof String.repeat!=="function"){String.prototype.repeat=function(a){return Array(a+1).join(this)}}function evalIfIsJavascript(b){var a=(b.getResponseHeader("content-type").indexOf("text/javascript")>=0);if(a){jQuery.globalEval(b.responseText)}return a}function randomNum(){return Math.floor(Math.random()*999999999)}String.prototype.toSentenceCase=function(){return this.substr(0,1).toUpperCase()+this.substr(1)};var smartJoin=function(c,a){if(!c){return false}var b;a=a||"and";if(c.length>2){b=c.pop();return c.join(", ")+", "+a+" "+b}else{return c.join(" "+a+" ")}};function escape_name(a){return a.replace(/\+/g,"--plus--").replace(/ /g,"--space--").replace(/\./g,"--dot--")}function hideList(b,a){b=$.extend({spinner:true,duration:40},b);if(b.spinner!==false){a.parent().addClass("busy big")}a.css("visibility","hidden")}function showList(b,a){b=$.extend({spinner:true,duration:5,html:null},b);if(b.html!==null){a.html(b.html)}a.parent().removeClass("busy big");a.css("visibility","visible")}function addAllCheck(b,c,a){if(b>a){alert("Too many packages (maximum is "+a+"), please refine your search.");return false}if(b>c){return confirm("You are about to add "+b+" to your package selection, are you sure about that?")}return true}var keysToArray=function(b){var a=[];if(!b){return undefined}$.each(b,function(c){a.push(c)});return a};objectLength=function(c){var b=0,a;for(a in c){if(c.hasOwnProperty(a)){b++}}return b};var addUrlParam=function(b,a,d){var e=a+"="+d,c="?"+e;if(!d){return b}if(b){c=b.replace(new RegExp("([?&])"+a+"[^&]*"),"$1"+e);if(c===b){c+="&"+e}}return c};$.fn.enableCheckboxRangeSelection=function(a){var d=null,c=this,e;var b=function(){var f=function(g,h,k){if(!g.length){return}k=k||15;var j=function(l){l.slice(0,k)[(h?"add":"remove")+"Class"]("selected");if(l.length-k>0){setTimeout(function(){j(l.slice(k))},0)}};j(g)};f($(":checkbox:checked",c).closest("tr").not(".selected"),true);f($(":checkbox",c).not(":checked").closest("tr.selected"),false)};c.undelegate(".checkboxrange").delegate(a,"click.checkboxrange",function(j,h){var f=$(j.target);var g=function(l,k){var m=$(":checkbox");if(d!==null&&(k.shiftKey||(h&&h.shiftKey))){m.slice(Math.min(m.index(d),m.index(l)),Math.max(m.index(d),m.index(l))+1).attr({checked:d.checked?"checked":""}).change()}return d=l};if(f.is("input")){g(j.target,j);b()}else{if(f.is("td:not(.noselect)")){g($(":checkbox",f.parent()),j).trigger("click",[j]);b()}}}).unbind(".checkboxrange").bind("change.checkboxrange",function(f){if($(f.target).is("input")){clearTimeout(e);e=setTimeout(function(){b()},40)}}).bind("mousedown.checkboxrange",function(f){if(f.shiftKey){f.preventDefault()}});b();return c};$.fn.log=function(a){a=a||"";console.log("%s: %o",a,this);return this};$.fn.highlightFade=function(e,f,b){var c=this,d=c.bgColor(),a=c.get(0).style.backgroundColor,g=b||COLOR.highlight||"#ff9";e=e||3000;f=f||"linear";c.animate({backgroundColor:g},100).animate({backgroundColor:d},{duration:e,easing:f,complete:function(){if(a){c.bgColor(a)}else{c.css({backgroundColor:""})}}});return c};$.fn.alternateRows=function(a){a=a||"tbody tr";$(a+":odd",this).removeClass("even").addClass("odd");$(a+":even",this).removeClass("odd").addClass("even");return this};$.fn.formForms=function(){var b=this,c={},a=$(b).find("input,textarea,select,a.gui-button,button,.reveal").not("input.gui-button,button.gui-button,.gui-button-wrap,.form-text,.form-check,.form-check>input,.form-list,.form-dropdown,.form-button,.minibutton,input[type=hidden]");$("fieldset",b).balanceLabels();if(!a.length){return this}c.$text=a.filter("input:text, input:password, textarea").addClass("form-text");c.$list=a.filter("select[multiple]").addClass("form-list");c.$drop=a.filter("select").not(c.$list).addClass("form-dropdown");c.$button=a.filter("a.gui-button,input:submit,input:reset,input:button,button").addClass("form-button");c.$radio=a.filter("input:radio").parent("label").addClass("form-radio").filter("label");c.$check=a.filter("input:checkbox").parent("label").addClass("form-check").filter("label");c.$radioCheck=c.$radio.add(c.$check);if($.browser.msie===true&&$.browser.version<7){c.$radioCheck.hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")})}c.$radioCheck.children("input:checked").parent().addClass("checked");c.$radioCheck.children("input:not(:checked)").parent().siblings(".slidedown").hide();c.$check.children("input").bind("change",function(d){$this=$(this).parent("label");var f=$this.next(".slidedown");$this.addClass("checked").children(":radio").click();if(f.length){f[(!$this.children(":checked").length)?"slideUp":"slideDown"](300)}});c.$radio.unbind(".radios").bind("mouseup.radios",function(){var d=$(this),f=d.children("input").attr("name"),e=c.$radio.children("[name="+f+"]").parent("label"),g=d.next(".slidedown");e.removeClass("checked").siblings(".slidedown").hide();d.addClass("checked").children(":radio").click().end().change();if(g.length){g.slideDown(300)}});a.filter(".reveal").revealWidget();a.filter("input:text[title]").labelify({labeledClass:"greytext"});a.filter("input.edit").after('<a class="clear">clear</a>').next().prev().each(function(d,e){$(this).next().attr("id",$(this).attr("id")+"-clear")}).end().hide().click(function(){$(this).prev("input").focus().attr("value","").keydown();$(this).hide()}).prev().keyup(function(){if($(this).attr("value")===""){$(this).next("a.clear").hide()}else{if(!$(this).labelify("hasLabel")){$(this).next("a.clear").show()}}}).keypress(function(){$(this).keyup()});return this};$.fn.balanceLabels=function(a){a=a||".spacer";return this.each(function(){var b=$(a,this),c=0;b.each(function(){var f=$(this),d=f.parent().parent(),e=$(this).width();if(e>c){c=e}});if(c>0){b.css("min-width",c+"px")}})};$.fn.revealWidget=function(){var b=$(this);if(b.html()){var a=b.siblings(".slidedown:eq(0)");a.hide();b.bind("click",function(){var c;if(b.attr("class").match("active")){b.removeClass("active");c="easeInQuad";a.slideUp(300,c)}else{b.addClass("active");c="easeOutQuad";a.slideDown(300,c)}});return b}};$.fn.forceWrap=function(c){var a=/(\/|-|@|#|((\S){10}))/g,b;c=c||a;return this.each(function(){$before=$(this).html();$(this).html($before.replace(c,'$1<span class="softbreak"></span>'))})};$.fn.bgColor=function(a){if(!a){var b=$(this).css("background-color");if(b=="transparent"){b=""}$(this).parents().each(function(){var c=$(this).css("background-color");if(c!="transparent"&&!c.match(/rgba/)){b=c;return false}});b=b||"#fff";return b}else{return $(this).css("background-color",a)}};$.fn.flickrWidget=function(){var a=$(this).parent().bgColor();$(this).addClass("flickrWidget");$(this).click(function(){var b=$(this);var g=this.id;var e=b.text();var c='<input type="text" id="'+g+'"  value="'+e+'"  class="flickrWidgetEntry">';$(this).parent().html(c);var f=$("input#"+g);f.focus().select();f.blur(function(){d()});f.keypress(function(h){switch(h.keyCode){case 13:d();break;case 16:break;case 9:var k=$("*").index(this);var j=$("*:gt("+k+")").find(".flickrWidget");if(!j.eq(0)){j=$("*:gt("+k+")").find("input,textarea,select")}d();j.eq(0).focus();return false;break;default:break}});var d=function(){var h=f.attr("value");b.text(h);f.parent().html(b);b.removeClass("editable-hover");b.flickrWidget();$("#"+g).bgColor(COLOR.highlight).stop().animate({backgroundColor:a},1500,"easeOutQuad")}}).hover(function(){$(this).css("cursor","pointer");$(this).stop().animate({backgroundColor:COLOR.highlight},200)},function(){$(this).stop().animate({backgroundColor:a},500,"easeOutQuad")}).focus(function(){$(this).click()})};$.fn.classToggle=function(a){var b=$(this);if(b.attr("class").match(a)){b.removeClass(a)}else{b.addClass(a)}};$.fn.niceUpload=function(e,b,h,f,d,j,l,g){var n=$(this);var k=$('input[type="file"]',n);var m=$('iframe[name="'+n.attr("target")+'"]');var c=k.attr("alt");var a;k.wrap('<div class="form-uploadbutton form-button block"><div class="transparenter"></div></div>').parent().parent().append('<span class="button-label block">'+c+"</span>");k.change(function(){frames[n.attr("target")].document.body.textContent="";setTimeout(function(){return false},500);$(this).parent().parent().parent().children(".upload-button-error").remove();a=k.val();if(d){var o=a.match(d);if(!o){var q=d.split("|");message=j||"Your uploaded file, <strong><tt>"+a+"</tt></strong>, is not the correct format. Please select a file that ends with <strong><tt>"+smartJoin(q,"or")+"</tt></strong>";message=message.replace("|","").replace("(","").replace(")","").replace("$","");$(this).parent().parent().after("<div class='error-message clear wrap upload-button-error' style='display:block'>"+message+"</div>");statusInfo("error",_("Unsupported file type!"));return false}}n.submit();var r;var s=1;var p=function(x){var A=/##upload-complete##/,y=m.attr("id"),u=false,w=false,B,v;x=(x||0)+1;try{r=document.getElementById(y).contentWindow.document.body.innerHTML}catch(z){console.warn("Error selecting upload iframe!");r=null;u=true;w=true}if(r!==null&&r!==""){if(A.test(r)){if(g){B=r.lastIndexOf("\n");v=r.substring(0,B);$("#"+g).empty().append(v);if(h){h(a)}}u=true}else{if(r=="failed"){if(b){b()}u=true}}}if(u){if(e){e()}if(w){return false}else{frames[n.attr("target")].document.body.textContent="";return true}}else{if(f&&s){f(a);s=0}setTimeout(function(){p(x)},500)}};if(l){l()}p();k.val("")});return n};$.fn.removeRowInit=function(){var a=$(this).parents("table.list");$(this).click(function(){var c=this.id.replace(/remove-/,"");var b=$("#"+this.id.replace(/remove-/,"row-"));b.remove();if(a){a.alternateRows()}})};$.fn.typeDelay=function(b,a){a=a||500;return $(this).unbind(".typeDelay").bind("keyup.typeDelay",function(c){if(TIMER.typingDelay!=undefined){window.clearTimeout(TIMER.typingDelay)}TIMER.typingDelay=setTimeout(function(){if(!!b){b(c.target,c)}},a)}).bind("keydown.typeDelay",function(c){if(c.keyCode===13){clearTimeout(TIMER.typingDelay);b(c.target,c)}if(!$(this).val()&&!!b){b(c.target,c)}})};$.fn.delayed_input_observer=function(g,e){var d=(e.delay!==undefined)?e.delay:500,a=e.min_chars||0,f=this,c;var b=function(m,n,j,l){var k,h;if(INFO.loaded){h=l;if(c==46||(c>8&&c<32)){console.info("ignoring  [del] [shift] [capslock] key ... key code was "+c);return}k=$(m).attr("value")||"";if(k.length<j){console.info("not enough characters");return}if(!$(m).labelify("hasLabel")){n($(m))}}};$(this).keypress(function(h){if(h.keyCode===undefined){b(f,g,a,true)}else{c=h.keyCode;if(TIMER.input_observer!==undefined){window.clearTimeout(TIMER.input_observer)}if(h.keyCode===13){if(g&&typeof g==="function"){g($(f))}return true}TIMER.input_observer=setTimeout(function(){b(f,g,a)},d)}})};$.fn.onclick_inplace_spinner=function(a,b){a=a||"";b=b||"";$(this).hide().after('<div class="spinner-inplace icon busy" id="'+b+'">'+a+"</div>")};$.fn.remove_onclick_inplace_spinner=function(a){$(this).next().remove();if(a){$(this).show()}};$.fn.bindOnce=function(b,a){return $(this).unbind(b).bind(b,function(){a();$(this).unbind(b)})};$.fn.addHighlightRange=function(){return this.enableCheckboxRangeSelection()};$.fn.disable=function(){return this.attr("disabled","disabled").addClass("disabled")};$.fn.enable=function(){return this.removeAttr("disabled").removeClass("disabled")};$.fn.fadeUp=function(b,c){var a=this.not(":hidden");if(!a.length){return this}if(b===undefined){b=150}a.fadeTo(b,0,function(){setTimeout(function(){a.css({height:a.outerHeight(),padding:0,minHeight:0}).slideUp(b,c)},10)});return this};$.fn.fadeDown=function(b,c){var a=this.not(":visible");if(!a.length){return this}if(b===undefined){b=150}a.removeAttr("style").fadeTo(0,0).hide().slideDown(b,function(){setTimeout(function(){a.fadeTo(b,1,c)},10)});return this};var popup=function(b){var c={el:null,parent:null,shaded:false,shadeId:null,visible:false,opt:$.extend({id:null,className:"",classWrap:"popup-shadow",parent:"body",content:"",width:"auto",height:"auto",padding:24,position:null,x:null,y:null,center:true,shade:false,autoHide:true,closeCallback:null},b)};var a=function(){var d=" "+c.opt.classWrap,e='<div id="%s" class="popup-wrap%s"><div class="popup %s">%s</div></div>';if(c.opt.dialog){d+=" popup-dialog";c.opt.autoHide=false}return sprintf(e,c.opt.id,d,c.opt.className,c.opt.content)};c.html=function(e){if(typeof e==="object"&&e.join){e=e.join("")}c.el.children().eq(0).empty().append(e).wrapInner('<div class="popup-status"></div>');if(c.opt.closeLink){c.el.append($('<a class="minibutton close-link">'+_("Close")+"</a>").bind("click.close",function(){c.hide()}));c.opt.closeLink=undefined}try{c.el.formForms()}catch(d){}return c};c.append=function(f,d){try{f=f.formForms()}catch(e){}$(">div",c.el.children().eq(0)).append(f);return c};c.prepend=function(d){$(">div",c.el.children().eq(0)).prepend(d);return c};c.reparent=function(d){c.html($(d).show());return c};c.clone=function(d){c.html($(d).clone().show());return c};c.setClass=function(d){if(d){$(">div",c.el).attr("class","popup "+d)}return c};c.addClass=function(d){$(">div",c.el).addClass(d);return c};c.removeClass=function(d){$(">div",c.el).removeClass(d);return c};c.setClass=function(d){$(">div",c.el).attr("class","popup "+d)};c.addClass=function(d){$(">div",c.el).addClass(d)};c.removeClass=function(d){$(">div",c.el).removeClass(d)};c.hide=function(d,e){d=d||0;e=e||function(){};if(d!==0){c.el.fadeOut(d,function(){if(c.shaded){c.unshade()}e()})}else{c.el.hide();if(c.shaded){c.unshade()}e()}c.visible=false;$(document).unbind("mousedown.popup-"+c.opt.id);if(c.opt.closeCallback&&typeof c.opt.closeCallback=="function"){c.opt.closeCallback()}return c};c.show=function(e,f){e=e||0;f=f||function(){};var d=c.el.css("opacity");if(c.shaded){c.shade()}if(e!==0){c.el.slideDown(e,f())}else{c.el.css("opacity","0");c.el.show(0,f())}if(c.opt.x&&c.opt.y){c.position(c.opt.x,c.opt.y)}else{c.center()}c.el.css("opacity",d);c.visible=true;$(".default",c.el).focus().select();if(c.opt.autoHide===true){$(document).bind("mousedown.popup-"+c.opt.id,function(h){var g=$(h.target);if(g.is("a,span,html")&&!(g.parents().is("ul.ui-tabs-nav")||g.hasClass("gui-button"))){return}if(!g.parents().andSelf().hasClass("popup-wrap")){c.hide()}})}return c};c.destroy=function(){c.hide();c.el.remove();c=undefined;return c};c.fade=function(d,e){e=e||0;c.el.fadeTo(e,d)};_makeShade=function(){if(!c.shadeId){c.shadeId=c.el.attr("id")+"-shade";var d='<div id="'+c.shadeId+'" class="shade"></div>';if($("#page").length){$("#page").append(d)}else{c.parent.append(d)}}return c};c.shade=function(){_makeShade();$("#"+c.shadeId).show();return c};c.unshade=function(){$("#"+c.shadeId).hide();return c};c.position=function(d,h,g){var f="";var e={};g=g||function(){};c.opt.center=false;if((typeof d=="number")&&(typeof h=="number")){f="px"}switch(d){case"left":e.left="0";break;case"center":e.left="50%";e.marginLeft=-c.el.outerWidth()/2;break;case"right":e.right="0";break;default:break}switch(h){case"top":e.top="0";break;case"middle":e.top="50%";e.marginTop=-c.el.outerHeight()/2;break;case"middle-high":e.top="40%";e.marginTop=-c.el.outerHeight()/2;break;case"bottom":e.bottom="0";break;default:break}if(!!e.left||!!e.right){e=$.extend({left:"auto",top:"auto",right:"auto",bottom:"auto",marginTop:0,marginLeft:0},e);c.el.css(e)}else{c.el.css({left:d+f,top:h+f,marginTop:0,marginLeft:0})}c.opt.x=d+f;c.opt.y=h+f;g();return c};c.nudge=function(){var d=false,f=c.el.offset(),e=c.opt.padding;if(c.parent.height()-f.top<c.el.height()+e*2){f.top=c.parent.height()-c.el.height()-e;d=true}if(c.parent.width()-f.left<c.el.width()+e*2){f.left=c.parent.width()-c.el.width()-e;d=true}if(d){c.position(f.left,f.top)}c.pos=f;return c};c.width=function(d){var e;if(typeof d=="number"){e="px"}c.el.css("width",d+e);return c};c.height=function(d){var e;if(typeof d=="number"){e="px"}c.el.css("height",d+e);return c};c.center=function(e){var d=c.opt.center;if(e){c.position("center","middle")}else{c.position("center","middle-high")}c.opt.center=d;return c};(function(e){var d;if(!e.opt.id){e.opt.id="popup-"+(new Date()-0)}e.parent=$(e.opt.parent);if(!$("#"+e.opt.id,e.parent).length){e.parent.append(a())}e.el=$("#"+e.opt.id);d=e.parent.css("position");if(d===""||d=="static"){e.parent.css("position","relative")}e.hide(0);if(e.opt.width!="auto"){e.width(e.opt.width)}if(e.opt.height!="auto"){e.height(e.opt.height)}if(!!e.opt.shade){e.shaded=true;_makeShade()}$(window).keydown(function(f){if(e.visible&&f.keyCode==27){e.hide()}})})(c);return c};Progressbar=function(c){var b=this;b.el=null;b.elapsed={};b.time=new Date();b.startTime=null;b.percent=null;c||(c={});var a=function(f){var d,e={message:"",status:"",time:""};className="progressbar-container "+f.opt.className;if(f.opt.showPercent||f.opt.showMessage){e.message='<span class="progressbar-message"></span>'}if(f.opt.showInfo){if(f.opt.showStatus){e.status='<span class="progressbar-status"></span>'}if(f.opt.showTime){e.time='<div class="progressbar-time">&nbsp;</div>'}}d=['<div id="',f.opt.id,'" class="',className,'">','<div class="progressbar">',e.message,'<div class="slider">',e.message,"</div>","</div>",e.status,e.time,"</div>"].join("");return $(d).appendTo(f.opt.parent)};b.message=function(d){b.el.siblings("div.build-status").html(d);return b};b.status=function(d){b.opt.status=d;switch(d){case"active":break;case"stop":break;case"complete":b.update(100,300);break;case"error":break;default:break}$("div.progressbar",b.el).removeClass("active complete error stop").addClass(d);return b};b.hide=function(){b.el.hide();return b};b.show=function(){b.el.show();return b};b.stop=function(d){d=jQuery.extend({status:"stop",msg:"",resetTimer:true,setStatus:true},d);if(d.setStatus){b.status(d.status)}$("div.slider",b.el).stop();if(d.resetTimer){b.startTime=null}if(!!d.msg){$("div.statusbar-message",b.el).html(d.status)}return b};b.unknown=function(g){var h=$("div.slider",b.el);if(!h.is(":animated")){h.addClass("unknown");var d=h.parent().outerWidth();var e=h.outerWidth();var j=h.position();var f=b.opt.cylonFlip?0:(d-e);g=g||500;h.animate({left:f},{duration:g,complete:function(){b.opt.cylonFlip=!b.opt.cylonFlip;setTimeout(function(){b.unknown(g)},1)}})}return b};b.update=function(l,g,o){var m=$("div.slider",b.el),j=$("span.progressbar-message",b.el),p=$("span.progressbar-status",b.el),e=$("div.progressbar-time",b.el),d,h;g=g||2000;h=m.parent().outerWidth();if(l>100){if(o){console.warn("Percent requested via catchUp was "+l+".  Adjusting to 100%")}else{console.warn("Percent requested was "+l+".  Adjusting to 100%")}l=100}if(h===0){var k=$("div.progressbar",b.el);g=0}d=Math.floor(l*h/100);m.stop();if(!!o&&o>b.percent){b.update(o,500)}if(!b.startTime){b.time=new Date;b.startTime=b.time.getTime()}b.status("active");var f=0;var n=function(u){var r,v,q,s=_("Elapsed time:")+" ";f++;if(f>4){f=0;r=new Date;v=(r.getTime()-b.startTime)/1000;q={sec:b.elapsed.seconds,percent:b.percent};b.elapsed={minutes:Math.floor(v/60),seconds:Math.floor(v%60)};b.percent=Math.round(m.css("width").match(/[0-9\.]*/))||b.percent;if(b.elapsed.minutes===1){s+=b.elapsed.minutes+" minute "}else{if(b.elapsed.minutes>0){s+=b.elapsed.minutes+" minutes "}}if(b.elapsed.seconds===0){s+=b.elapsed.seconds+" second"}else{if(b.elapsed.seconds>0){s+=b.elapsed.seconds+" seconds"}}if(b.opt.showPercent&&b.percent!=q.percent){j.html(b.percent+"%")}if(b.opt.showTime){e.html(s)}}};if(d>0){m.show();j.fadeIn()}m.animate({width:l+"%"},{duration:g,step:function(){n(this)},complete:function(){n(this)}});return b};b.goTo=function(f,e,d){b.update(f,1000*(f-b.percent)/e,d);return b};b.complete=function(){b.status("complete");return b};b.init=function(d){b.opt=jQuery.extend({id:"progressbar",className:"",showPercent:true,showStatus:true,showTime:true,showInfo:true},d);b.el=a(b);return b};if(arguments.length){return new Progressbar().init(c)}};initColor=function(){var a;var b=["highlight","green","darkgreen","highlight","highlightText","selection","selectionText"];$("body").append('<p id="namedcolor"></p>');a=$("#namedcolor");a.hide();$(b).each(function(c,d){a.append('<b class="'+d+'">'+d+"</b>");COLOR[d]=a.children("."+d).css("color");if(COLOR[d]=="rgb(0, 0, 0)"){COLOR[d]=""}});a.remove()};sizeNotebook=function(f,g){if(f){var d=$(f);if(!!d.length){var a=$(window).height(),h=d.offset(),c=d.innerHeight()-d.height(),e=$("#footer").outerHeight(),b=a-h.top-c-e+(g||0);if(b<0){return false}INFO.notebookHeight=b;INFO.aboveNotebook=h.top;$(f).css("min-height",INFO.notebookHeight);return true}else{return false}}else{console.warn(_("No notebook content specified"));return false}};sizeStatus=function(a){var b=$("#page").offset()["left"],c={};c={left:b+$("#sidebar").width()+"px",right:b+"px"};$("#statusarea").css({left:c.left,right:c.right,bottom:"0px"})};fakeSave=function(a){if(a=="disable"){$("#savebutton").addClass("disabled")}else{$("#savebutton").removeClass("disabled")}};showLoading=function(a){$("#page-loading").show();$("#content>div").css({visibility:"hidden",opacity:0});if(a){$("#footer").hide()}};TIMER={};COLOR={};if(typeof INFO==="undefined"){INFO={}}if(INFO.kiosk){console.log(_("We're in KIOSK mode!"));$("html").addClass("kiosk")}var appcheck=function(a){if(a.length<4){$(".app_message").html(_("Your appliance name has to be more than 3 characters in length."));$(".create-appliance").addClass("disabled")}else{$(".app_message").html(_("This can be changed later"));$(".create-appliance").removeClass("disabled")}};var sizeIframes=function(){var b=$("iframe.content").css({opacity:0}),a;if(b.length){$("#content").addClass("busy big");b.bind("load.resize",function(c){a=b.contents().children().find("body").get(0).scrollHeight;console.log(a);if(a>10){b.height(a+($.browser.opera?5:0)+"px").css({opacity:1});$("#content").removeClass("busy big")}else{console.log("oops");setTimeout(function(){b.trigger("load.resize")},500)}})}};$(document).ready(function(){INFO.page=$("body").attr("className");jQuery("time.timeago").timeago();INFO.kiosk_mode_disabled_text=_("disabled in kiosk mode!");initColor();sizeIframes();if(typeof(navigator.onLine)!=="undefined"&&!navigator.onLine&&!$.browser.opera){$("#offline-mode-warning").show()}var e=0;var b=function(){$("#snowtiles").height(74-(e*6));if(e<15){e++;setTimeout(b,175)}else{$("#snowtiles").hide();$("body").not(".community_frontpage").find("#snowpiles").animate({height:0},10000);$("#snowfog").fadeOut(10000)}};$("#snowfog").bind("click.snow",function(f){b()});if(!$("body.onsite")[0]){var d=function(){switch(window.location.hostname){case"susestudio.com":var f={i:0,id:"UA-9465719-1"};break;case"susegallery.com":var f={i:0,id:"UA-9465719-5"};break;default:var f=false}if(f){f.run=function(){if(!f.i){var g=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");$('<script type="text/javascript" src="'+g+'google-analytics.com/ga.js"><\/script>').appendTo("body")}if(window._gat&&window._gat._getTracker.length){window._gat._getTracker(f.id)._trackPageview()}else{if(f.i<6){f.i++;setTimeout(f.run,500)}else{$(document).trigger("ajaxStop")}}};f.run()}}()}else{var c={};c.check=function(){Q.add({immediate:true,type:"GET",dataType:"json",url:"/admin/onsite/setup_progress",success:function(f){if(f.status=="success"){if($("#imagecontainer").css("display")=="none"){window.location.reload()}else{$("#onsite_setup_status").html(_("The repository and template setup was successfully completed.")).delay(5000).fadeUp()}}else{if(f.status=="running"){setTimeout(c.check,5000);$("#imagecontainer").fadeUp();$("#imagecontainer_waiting").fadeDown();$("#onsite_setup_status").html(_('<span class="pad-left-4">Importing repositories and templates...</span>')+'<div style="width: 300px;" class="progressbar active"><span class="slider" style="overflow-x: hidden; overflow-y: hidden; width: '+f.percent+'%; display: block;"></span></div>').fadeDown()}else{if(f.status=="failed"){if($("#imagecontainer").css("display")=="none"){window.location.reload()}else{$("#onsite_setup_status").addClass("error").html(_('The repository and template setup failed. You can find more information on the <a href="/admin/onsite/templates">Templates page</a>.')).fadeDown()}}}}},error:function(f){$("#onsite_setup_status").addClass("error").html(_("Could not get the setup status.")).fadeDown()}})};c.check()}var a=function(f){return !!INFO.page.match(f)};switch(true){case a("appliance_edit"):INFO.builderUI=true;tab.init();window.name="builderWin";break;case a(/appliance_(my_appliances|create_new)/):$("ul.templateslist a, ul.imageslist a:not(.deletebutton)").bind("click",function(f){if(f.button===0){showLoading()}});break;default:$("#content").formForms();break}});var showError=function(a){a=a||{};if(!console){return true}};$(window).bind("error",showError).ajaxError(function(){var a=arguments[1];showError({reason:a.status+" "+a.statusText});if(!console){return true}else{console.log("AJAX error!",a)}});$(".disabled").live("click.disabled",function(a){a.preventDefault()});if($.browser.msie){$(".minibutton,.form-button,.noselect").live("selectstart.buttonselect",function(a){return a.preventDefault()})}$.tipify();Q={queue:{},timer:500,objectsInQueue:0,unsentItems:0,doIssues:false,issuesDone:false,firstRun:true,callbacks:[],add:function(d){var e;d=jQuery.extend({id:null,request:null,data:null,complete:null,error:null},d);var c=false,b=0,a=99999,f;if(d.id===null){d.id=Math.floor(Math.random()*(a-b)+b)}f=function(){Q.queue[d.id]={sent:false,obj:d,xhr:null};Q.objectsInQueue++;Q.unsentItems++};if(d.url.match(/build\/start/)||c){Q.timer=0}f();clearTimeout(TIMER.queue);TIMER.queue=setTimeout(function(){Q.flush()},Q.timer);c=false;$.each(this.queue,function(g,h){if(h.obj.data&&typeof(h.obj.data)=="string"&&h.obj.data.match(/image_type/)){c=true}});if(d.url.match(/_software|filebrowser|toggle_release|resolve|dependencies/)||c||d.immediate){Q.flush()}if(d.url.match(/refresh_file_list/)){$(document).bind("ajaxStop.restrictEntry",function(){tab.Files.listUpdate();$(document).unbind("ajaxStop.restrictEntry")})}if(d.url.match(/add_by_search_string|ban_software|unban_software|add_software|change_repository_selection|remove_software|exclude_software|remove_exclusion|overlay|resolve|\/appliance\/update|modify_sw|remove_build/)){if(this.firstRun||!INFO.section.match(/personalize/)){this.doIssues=true;if(typeof d.data==="string"&&!d.data.match(/image_type/)){$("#build-button").addClass("disabled")}}}if(d.url.match(/modify_sw|add_software|remove_software|ban_software|unban_software/)){tab.Software.packages_changed=true}e=d.url.match(/\?/)?"&":"?";d.url=d.url+e+"_="+randomNum();return d.id},flush:function(d){var b=this;var c=3;var a=4;d=d||function(){};if(this.objectsInQueue>0){clearTimeout(TIMER.queue);if(this.unsentItems>2){console.warn(_("Concurrent connections are larger than the browser allows.  You should consider consolodating requests."))}this.log();$.each(this.queue,function(e,f){if(f){if(f.obj&&f.sent===false){f.xhr=$.ajax(f.obj);f.sent=true;b.unsentItems--}else{if(f.sent===true&&f.obj&&f.xhr&&f.xhr.readyState===a){delete (b.queue[f.obj.id]);b.objectsInQueue--}}}})}b.issuesDone=false;$(document).bindOnce("ajaxComplete.status",function(){if(!b.issuesDone&&b.doIssues){if(INFO.builderUI&&typeof sidebar.status==="function"){sidebar.status(function(){b.firstRun=false;b.issuesDone=true;b.doIssues=false})}}setTimeout(d,100)})},abort:function(b){if(b===null){return}var a=this.queue[b];if(a){if(a.xhr){a.xhr.abort()}delete (a)}},empty:function(){this.queue={};this.objectsInQueue=0;this.unsentItems=0;return},log:function(){var a=(this.objectsInQueue==1)?"":"s";return},remove:function(b){var a=this.queue[b];if(a){this.objectsInQueue--;if(a.sent===false){this.unsentItems--}}this.queue[b]=undefined;return},attachCallback:function(a,b){Q.callbacks.push({regex:a,callback:b})}};var Dialog=function(b){var a=(function(e){var c,d=e.content||"";e.noShow=e.noShow||"";if(!e.actions){e.actions={label:"Close"}}if(d&&!d.join&&e.contentWrap!==false){d="<p>"+d+"</p>"}e.dom=$(["<form>","<h2>",e.title,"</h2>",'<div class="popup-dialog-content">',d,"</div>",e.noShow,e.actions.length?'<div class="actions"></div>':"","</form>"].join(""));$.each(e.actions,function(){var f=this.defaultAction?' class="default"':"";if(this.value!==undefined){f+=' value="'+this.value+'"'}if(this.id!==undefined){f+=' id="'+this.id+'"'}if(!this.func){this.func=function(){}}$("<button "+f+">"+this.label+"</button>").bind("click.dialogAction",this.func).bind("click.preventDefault",function(){return false}).appendTo($("div.actions",e.dom))});$(e.dom).bind("keypress",function(f){if(f.keyCode===13){e.dom.find(".default").click()}});c=popup({id:e.id,dialog:true,shade:true});c.html(e.dom).setClass(e.className||"");if(e.init&&typeof e.init==="function"){e.init(c)}if(e.css){c.el.css(e.css)}c.el.delegate("button","click.dismiss",function(f){c.clicked=this.id;c.hide()});return c})(b);a.ask=function(d){var c=a.el.find("button");c.unbind("click.ask").bind("click.ask",function(f){if(typeof d==="function"){d(f.target,a)}});return a.show()};return a};Dialog.simple=function(b,a){if(!a){a={}}this.settings={className:(a.type===undefined)?"info":a.type,title:b,actions:[{label:"Close",defaultAction:true}]};$.extend(this.settings,a);return Dialog(this.settings).ask(function(d,c){if(a&&a.callback){a.callback(d,c)}c.destroy()})};Dialog.alert=function(b,a){return Dialog.simple(b,a)};Dialog.confirm=function(c,d,a){if(!a){a={}}var b=$.extend(a,{actions:[{label:a.buttonNo||"Cancel",defaultAction:a.reverseDefault},{label:a.buttonYes||"Okay",value:"yes",defaultAction:!a.reverseDefault}],callback:function(f,e){if(f&&f.value==="yes"){d(true,e)}else{d(false,e)}}});return Dialog.simple(c,b)};var Upload={PROGRESS_CHECK_INTERVAL:2000,startProgressChecker:function(a,c){function b(){Q.add({id:"upload-progress-"+a,url:"/upload-progress?X-Progress-ID="+a,dataType:"json",immediate:true,dataFilter:function(d){return d.replace(/^new Object\((.*)\)\s*$/,"$1").replace(/'/g,'"')},success:function(h){var f,k;switch(h.state){case"starting":f=_("Starting upload...");k=false;break;case"uploading":var e=Math.round((h.received/h.size)*100);var j=Math.round(h.received/1024);var d=Math.round(h.size/1024);var g=Math.round(h.speed/1024);f=_("Uploading: ")+e+_("% (received ")+j+_(" kB of ")+d+_(" kB at ")+g+_(" kB/s)");k=false;break;case"done":f=_("Upload finished, processing the file...");k=true;break;case"error":f=_("Error uploading file");k=true;break;default:console.error(_('Upload.progressChecker: Unknown upload state: "')+h.state+_('"'));f=null;k=true;break}if(f){c(f)}if(!k){setTimeout(b,Upload.PROGRESS_CHECK_INTERVAL)}},error:function(){c(_("Error uploading file"))}})}b()}};$(document).ready(function(){$("#appliances").delegate("a.deletebutton","click",function(h){var d=$(h.target).closest("li"),g=d.closest("ul"),c=g.prev("h4"),j=d.attr("data-id"),f=d.attr("data-name");Dialog.confirm(ssprintf(_("Do you really want to delete &lsquo;%s&rsquo;?"),f),function(e){if(e){if(g.find("li:visible").length<2){d.add(c).fadeUp()}else{d.fadeUp()}Q.add({immediate:true,error:function(){d.add(c).fadeDown();Dialog.alert(_("Ooops! There was an issue with the server. Please try again later."),{type:"error"})},success:function(){d.add(c).add(g).remove(":hidden")},type:"POST",url:"/appliance/delete",data:{authenticity_token:_token,appliance_id:j}})}},{type:"warning",buttonYes:_("Delete"),buttonNo:_("No thanks")});return false});$("#page").formForms();setTimeout(function(){$("#flash").fadeOut(500)},3000);$(".myappliances ul").delegate("dblclick","li,li>div,li>h3",function(d){var c;if($(this).is("li")){c=$(this)}else{c=$(this).parent()}showLoading(true);document.location=$("a.edit",c).attr("href")}).delegate("click","a.edit,a.clone",function(c){if(c.button===0){showLoading(true)}});var a="stop",b=$("#usage-bar").attr("data-percent");if(b>=90){a="error"}else{if(b>=75){a="warning"}}Progressbar({parent:"#usage-bar",id:"usage",showPercent:true,showInfo:false}).update(b,10).status(a);$("#send_invitation").click(function(){var c=$("#full_email").val();$("#full_email").addClass("disabled");$("#send_invitation").addClass("disabled");$("#invitation_sent").addClass("hidden");$("#invitation_busy").hide().removeClass("hidden").fadeIn(400);Q.add({type:"POST",dataType:"json",immediate:true,error:function(d){console.log(d);var e="";if(typeof(d.responseText)==="string"&&d.responseText.length>1){e=JSON.parse(d.responseText)}var f=(e&&e.error)?e.error:_("There was an issue with the server. Please try again later.");console.log(e);Dialog.alert(_("Ooops!<br>")+f,{type:"error"})},success:function(d){$("#sent_invitations").removeClass("hidden");$("#full_email").val("");if(d.invitations_left>0){$("#invitation_count").html(d.invitations_left)}else{$("#invitation_text").html(_("You have sent all your invitations."));$("#full_email").hide();$("#send_invitation").hide()}$("#invitation_busy").hide();$("#invitation_sent").hide().removeClass("hidden").fadeIn(400).delay(3000).fadeOut(400)},complete:function(){$("#full_email").removeClass("disabled");$("#send_invitation").removeClass("disabled");$("#invitation_busy").fadeOut(400)},type:"POST",url:"/user/send_invitation",data:{authenticity_token:_token,full_email:c}});return false})});function observe_form(a,b){$(a).delegate("input,textarea,button,select,label","change",function(){b()})}jQuery.timer=function(a,b){a=a||100;if(!b){return false}_timer=function(d,e){this.stop=function(){clearInterval(c.id)};this.internalCallback=function(){e(c)};this.reset=function(f){if(c.id){clearInterval(c.id)}f=f||100;this.id=setInterval(this.internalCallback,f)};this.interval=d;this.id=setInterval(this.internalCallback,this.interval);var c=this};return new _timer(a,b)};function is_js(a){var b=typeof a.getAllResponseHeaders!=="undefined"?a.getAllResponseHeaders():""||"";return b.match?!!b.match(/javascript/):false}function is_json(a){var b=typeof a.getAllResponseHeaders!=="undefined"?a.getAllResponseHeaders():""||"";return(b.match&&b.match(/json|javascript/))?a.responseText.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,"").match(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/):false}function fill_or_exec(b,f,c){var d=b,a="fill",e;if(b.responseText){d=b.responseText}if(is_js(b)){jQuery.globalEval(d);a="js"}else{if(is_json(b)){json_partial(d,c);a="json"}else{e=$("#"+c);if(f==="replace"){e.html(d)}else{if(f==="before"){e.before(d)}else{if(f==="after"){e.after(d)}else{if(f==="bottom"){e.append(d)}else{if(f==="top"){e.prepend(d)}else{true}}}}}}}}function json_partial(g,f){var e=[],d=g.template,c=new Array(g.collection.length);for(var b=0;b<g.collection.length;b++){var a=0;for(a=0;a<g.calling_order.length;a++){d[1+2*a]=g.collection[b][g.calling_order[a]]}c[b]=d.join("")}$("#"+f).html(c.join(""));c=null;if(INFO.debug){g=null}}(function(e){e.timeago=function(h){if(h instanceof Date){return b(h)}else{if(typeof h=="string"){return b(e.timeago.parse(h))}else{return b(e.timeago.datetime(h))}}};var g=e.timeago;e.extend(e.timeago,{settings:{refreshMillis:60000,allowFuture:false,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",ago:null,fromNow:null,seconds:"less than a minute",minute:"one minute",minutes:"%d minutes",hour:"one hour",hours:"%d hours",day:"one day",days:"%d days",month:"one month",months:"%d months",year:"one year",years:"%d years"}},inWords:function(m){var n=this.settings.strings;var j=n.prefixAgo;var r=n.suffixAgo||n.ago;if(this.settings.allowFuture){if(m<0){j=n.prefixFromNow;r=n.suffixFromNow||n.fromNow}m=Math.abs(m)}var p=m/1000;var h=p/60;var o=h/60;var q=o/24;var k=q/365;var l=p<45&&a(n.seconds,Math.round(p))||p<90&&a(n.minute,1)||h<45&&a(n.minutes,Math.round(h))||h<90&&a(n.hour,1)||o<24&&a(n.hours,Math.round(o))||o<48&&a(n.day,1)||q<30&&a(n.days,Math.floor(q))||q<60&&a(n.month,1)||q<365&&a(n.months,Math.floor(q/30))||k<2&&a(n.year,1)||a(n.years,Math.floor(k));return e.trim([j,l,r].join(" "))},parse:function(j){var h=e.trim(j);h=h.replace(/-/,"/").replace(/-/,"/");h=h.replace(/T/," ").replace(/Z/," UTC");h=h.replace(/([\+-]\d\d)\:?(\d\d)/," $1$2");return new Date(h)},datetime:function(j){var k=e(j).get(0).tagName.toLowerCase()=="time";var h=k?e(j).attr("datetime"):e(j).attr("title");return g.parse(h)}});e.fn.timeago=function(){var j=this;j.each(d);var h=g.settings;if(h.refreshMillis>0){setInterval(function(){j.each(d)},h.refreshMillis)}return j};function d(){var h=c(this);if(!isNaN(h.datetime)){e(this).text(b(h.datetime))}return this}function c(h){h=e(h);if(!h.data("timeago")){h.data("timeago",{datetime:g.datetime(h)});var j=e.trim(h.text());if(j.length>0){h.attr("title",j)}}return h.data("timeago")}function b(h){return g.inWords(f(h))}function f(h){return(new Date().getTime()-h.getTime())}function a(h,k){var j=e.isFunction(h)?h(k):h;return j.replace(/%d/i,k)}document.createElement("abbr");document.createElement("time")})(jQuery);
/*
 * jQuery UI Stars v2.1.1
 * http://plugins.jquery.com/project/Star_Rating_widget
 *
 * Copyright (c) 2009 Orkan (orkans@gmail.com)
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * $Rev: 114 $
 * $Date:: 2009-06-12 #$
 * $Build: 32 (2009-06-12)
 *
 * Depends:
 *  ui.core.js
 *
 */
(function(a){a.widget("ui.stars",{_create:function(){var b=this,e=this.options,f=0;e.isSelect=e.inputType=="select";this.$form=a(this.element).closest("form");this.$selec=e.isSelect?a("select",this.element):null;this.$rboxs=e.isSelect?a("option",this.$selec):a(":radio",this.element);this.$stars=this.$rboxs.map(function(j){var k={value:this.value,title:(e.isSelect?this.text:this.title)||this.value,isDefault:(e.isSelect&&this.defaultSelected)||this.defaultChecked};if(j==0){e.split=typeof e.split!="number"?0:e.split;e.val2id=[];e.id2val=[];e.id2title=[];e.name=e.isSelect?b.$selec.get(0).name:this.name;e.disabled=e.disabled||(e.isSelect?a(b.$selec).attr("disabled"):a(this).attr("disabled"))}if(k.value==e.cancelValue){e.cancelTitle=k.title;return null}e.val2id[k.value]=f;e.id2val[f]=k.value;e.id2title[f]=k.title;if(k.isDefault){e.checked=f;e.value=e.defaultValue=k.value;e.title=k.title}var h=a("<div/>").addClass(e.starClass);var l=a("<a/>").attr("title",e.showTitles?k.title:"").text(k.value);if(e.split){var g=(f%e.split);var m=Math.floor(e.starWidth/e.split);h.width(m);l.css("margin-left","-"+(g*m)+"px")}f++;return h.append(l).get(0)});e.items=f;e.isSelect?this.$selec.remove():this.$rboxs.remove();this.$cancel=a("<div/>").addClass(e.cancelClass).append(a("<a/>").attr("title",e.showTitles?e.cancelTitle:"").text(e.cancelValue));e.cancelShow&=!e.disabled&&!e.oneVoteOnly;e.cancelShow&&this.element.append(this.$cancel);this.element.append(this.$stars);if(e.checked===undefined){e.checked=-1;e.value=e.defaultValue=e.cancelValue;e.title=""}this.$value=a('<input type="hidden" name="'+e.name+'" value="'+e.value+'" />');this.element.append(this.$value);this.$stars.bind("click.stars",function(h){if(!e.forceSelect&&e.disabled){return false}var g=b.$stars.index(this);e.checked=g;e.value=e.id2val[g];e.title=e.id2title[g];b.$value.attr({disabled:e.disabled?"disabled":"",value:e.value});c(g,false);b._disableCancel();!e.forceSelect&&b.callback(h,"star")}).bind("mouseover.stars",function(){if(e.disabled){return false}var g=b.$stars.index(this);c(g,true)}).bind("mouseout.stars",function(){if(e.disabled){return false}c(b.options.checked,false)});this.$cancel.bind("click.stars",function(g){if(!e.forceSelect&&(e.disabled||e.value==e.cancelValue)){return false}e.checked=-1;e.value=e.cancelValue;e.title="";b.$value.val(e.value).attr({disabled:"disabled"});d();b._disableCancel();!e.forceSelect&&b.callback(g,"cancel")}).bind("mouseover.stars",function(){if(b._disableCancel()){return false}b.$cancel.addClass(e.cancelHoverClass);d();b._showCap(e.cancelTitle)}).bind("mouseout.stars",function(){if(b._disableCancel()){return false}b.$cancel.removeClass(e.cancelHoverClass);b.$stars.triggerHandler("mouseout.stars")});this.$form.bind("reset.stars",function(){!e.disabled&&b.select(e.defaultValue)});a(window).unload(function(){b.$cancel.unbind(".stars");b.$stars.unbind(".stars");b.$form.unbind(".stars");b.$selec=b.$rboxs=b.$stars=b.$value=b.$cancel=b.$form=null});function c(g,j){if(g!=-1){var k=j?e.starHoverClass:e.starOnClass;var h=j?e.starOnClass:e.starHoverClass;b.$stars.eq(g).prevAll("."+e.starClass).andSelf().removeClass(h).addClass(k);b.$stars.eq(g).nextAll("."+e.starClass).removeClass(e.starHoverClass+" "+e.starOnClass);b._showCap(e.id2title[g])}else{d()}}function d(){b.$stars.removeClass(e.starOnClass+" "+e.starHoverClass);b._showCap("")}this.select(e.value);e.disabled&&this.disable()},_disableCancel:function(){var c=this.options,b=c.disabled||c.oneVoteOnly||(c.value==c.cancelValue);if(b){this.$cancel.removeClass(c.cancelHoverClass).addClass(c.cancelDisabledClass)}else{this.$cancel.removeClass(c.cancelDisabledClass)}this.$cancel.css("opacity",b?0.5:1);return b},_disableAll:function(){var b=this.options;this._disableCancel();if(b.disabled){this.$stars.filter("div").addClass(b.starDisabledClass)}else{this.$stars.filter("div").removeClass(b.starDisabledClass)}},_showCap:function(b){var c=this.options;if(c.captionEl){c.captionEl.text(b)}},value:function(){return this.options.value},select:function(d){var c=this.options,b=(d==c.cancelValue)?this.$cancel:this.$stars.eq(c.val2id[d]);c.forceSelect=true;b.triggerHandler("click.stars");c.forceSelect=false},selectID:function(d){var c=this.options,b=(d==-1)?this.$cancel:this.$stars.eq(d);c.forceSelect=true;b.triggerHandler("click.stars");c.forceSelect=false},enable:function(){this.options.disabled=false;this._disableAll()},disable:function(){this.options.disabled=true;this._disableAll()},destroy:function(){this.options.isSelect?this.$selec.appendTo(this.element):this.$rboxs.appendTo(this.element);this.$form.unbind(".stars");this.$cancel.unbind(".stars").remove();this.$stars.unbind(".stars").remove();this.$value.remove();this.element.unbind(".stars").removeData("stars")},callback:function(c,b){var d=this.options;d.callback&&d.callback(this,b,d.value,c);d.oneVoteOnly&&!d.disabled&&this.disable()}});a.extend(a.ui.stars.prototype,{version:"2.1.1",options:{inputType:"radio",split:0,disabled:false,cancelTitle:"Cancel Rating",cancelValue:0,cancelShow:true,oneVoteOnly:false,showTitles:false,captionEl:null,callback:null,starWidth:16,cancelClass:"ui-stars-cancel",starClass:"ui-stars-star",starOnClass:"ui-stars-star-on",starHoverClass:"ui-stars-star-hover",starDisabledClass:"ui-stars-star-disabled",cancelHoverClass:"ui-stars-cancel-hover",cancelDisabledClass:"ui-stars-cancel-disabled"}})})(jQuery);function _(a){return(typeof i18n!=="undefined")&&i18n[a]||a}(function(a){a.fn.extend({_:function(b){return this.each(function(c,d){if(a(d).is("input")){d.value=_(b)}else{a(d).html(_(b))}})},_tr:function(){return this.each(function(b,c){if(a(c).is("input")){c.value=_(a.trim(c.value))}else{a(c)._(a.trim(a(c).text()))}})}})})(jQuery);