JS_APPLICATION_1="Statistik der Eintr&auml;ge";
JS_APPLICATION_3="Meilensteine";
JS_APPLICATION_4="Relationen";
JS_APPLICATION_5="Abonnement";
JS_WASTEBASKET="Papierkorb";
JS_APPLICATION_10="Bitte geben Sie Ihre E-Mail-Adresse und Ihr Passwort ein. Besitzen Sie noch kein Passwort klicken Sie auf 'Kennung beantragen'.";
JS_APPLICATION_11="Bitte warten...";
JS_APPLICATION_20="Zeile %% enthält noch kein Subjekt.\nBitte geben sie einen Wert oder eine Variable ein.";
JS_APPLICATION_21="Zeile %% enthält noch kein Objekt.\nBitte geben sie einen Wert oder eine Variable ein.";
JS_APPLICATION_22="Zeile %% enthält noch keine Eigenschaft. Bitte wählen sie eine aus.";
JS_APPLICATION_23="Bitte geben sie einen Wert oder einen Variablennamen ein.";
JS_APPLICATION_24="Zeile entfernen";
JS_APPLICATION_25="Bitte fügen sie mindestens eine Anfragezeile hinzu.";
JS_APPLICATION_30="Alle Untereinträge ausklappen";
JS_APPLICATION_31="Alle Untereinträge einklappen";
String_MenuLabel_Edit="Bearbeiten";
String_MenuLabel_New="Neu";
String_MenuLabel_User="Benutzer";
String_MenuLabel_Extras="Extras";
String_MenuLabel_Help="Hilfe";
String_Menu_Edit_Meta="Metadaten";
String_Menu_Edit_Access="Zugriffsrechte";
String_Menu_Edit_Contents="Inhalte";
String_Menu_Edit_Layout="Layout";
String_Menu_Edit_Copy="Kopieren";
String_Menu_Edit_Move="Verschieben";
String_Menu_Edit_Remove="L&ouml;schen";
String_Menu_Edit_Export="Export";
String_Menu_Edit_Import="Import";
String_Menu_Edit_Properties="Eigenschaften";
String_Menu_NewEntry="Neuer&nbsp;Eintrag";
String_Menu_Extras_Settings="Benutzereinstellungen";
String_Menu_Extras_Logout="Anmeldestatus";
String_Menu_Extras_Bookmark="Bookmark&nbsp;hinzuf&uuml;gen";
String_Menu_Extras_UserGroup="Benutzer&#45;&#47;Gruppen&uuml;bersicht";
String_Menu_Extras_Explorer="Explorer&#45;Ansicht&nbsp;ein&#45;&#47;ausschalten";
String_Menu_Extras_Info="Info";
String_Menu_Nav_OverviewEntry="&Uuml;bersicht&nbsp;zu&nbsp;Eintrag";
String_Menu_Nav_Overview="Gesamt&#45;&Uuml;bersicht";
String_Menu_Nav_Goto_Home="Zum&nbsp;Home&#45;Verzeichnis";
String_Menu_Search="Suche";
String_Menu_Search_New="Was&nbsp;ist&nbsp;neu?";
String_Menu_Search_Last="Zuletzt&nbsp;bearbeitete&nbsp;Eintr&auml;ge";
String_Menu_Help_Overview="&Uuml;bersicht";
String_Search_Brief="Bitte geben Sie einen oder mehrere Suchbegriffe ein.";
STRING_Command_deleteEntry1="Wollen Sie den Eintrag '%%' (ID %%)\nwirklich löschen?";
STRING_Command_deleteEntry2="Wollen Sie den Eintrag mit der ID '%%'\nwirklich löschen?";
STRING_Command_deleteAddress="Wollen Sie die Adresse mit der ID '%%'\nwirklich löschen?";
STRING_Edit_areYouSure="Wollen Sie wirklich die alternative Darstellung löschen ?";
STRING_Edit_validate_Name="Name";
STRING_Edit_validate_Title="Titel";
STRING_Edit_validate_Comment="Kurzbeschreibung";
STRING_Edit_validate_Abstract="Text";
STRING_Edit_validate_Descritors="Freie Schlagworte";
STRING_Edit_validate_Limit="Bitte geben Sie eine Zahl ein.";
STRING_Edit_checkLengthOn="Das Feld '%%' enthält %% Zeichen.\nEs sind jedoch leider nur %% Zeichen möglich.\nBitte kürzen Sie ihren Text.";
STRING_Edit_checkMinLengthOn="Das Feld '%%' enthält %% Zeichen.\nEs müssen jedoch mindestens %% Zeichen eingegeben werden.";
STRING_Edit_mustNotBeNull="Das Feld '%%' darf nicht leer sein.";
STRING_Edit_notOnlySpaces="Das Feld '%%' darf nicht nur Leerzeichen enthalten.";
STRING_Edit_mustNotContain="Das Feld '%%' darf keines der Zeichen '%%' enthalten.";
STRING_Edit_reportInvalidDateIn="Das Feld '%%' enthält keine gültige Datumsangabe.\nDas korrekte Format ist: ";
STRING_Edit_reportInvalidTimeIn="Das Feld '%%' enthält keine gültige Uhrzeit.\nDas korrekte Format ist: ";
STRING_Edit_granteeAlreadyAdded="Der Benutzer '%%' wurde bereits zur Zugriffsliste hinzugefügt.";
STRING_Edit_illegalChars="Das Feld '%%' enthält Zeichen die nicht aus dem Latin-1 Zeichensatz stammen\n(z.B. Gedankenstrich, Aufzählungszeichen oder typographische Anführungszeichen): '%%'\nDiese Zeichen verhindern die korrekte Übertragung Ihrer Eingaben an den Server.\nBitte ersetzen Sie diese Zeichen und versuchen Sie es erneut.";
STRING_Files_validateUpload1="Bitte wählen Sie die Datei aus die Sie hochladen wollen.";
STRING_Files_validateUpload2="Der Dateinamen (bzw. der Pfadnamen) darf keines der folgenden Zeichen enthalten: '+', '%', ',', '#', '`', '´' und '&'";
STRING_Files_doRemove1="Wählen Sie die zu löschenden Dateien aus der Liste.";
STRING_Files_doRemove2="Möchten Sie die Datei '%%' löschen?";
STRING_Files_doRemove3="Möchten Sie %% Dateien löschen?";
STRING_Files_doDownload="Es wird ein ZIP-Archiv mit den ausgewählten Dateien\nerstellt und auf Ihren Rechner übertragen.\nWollen Sie fortfahren?";
STRING_Files_doDownload2="Wählen Sie die Dateien die sie herunterladen wollen aus der Liste.";
STRING_Files_doDownload3="Es wird ein ZIP-Archiv mit den angezeigten Dateien\nerstellt und auf Ihren Rechner übertragen.\nWollen Sie fortfahren?";
STRING_Thesaurus_noForm="Es kann keine aktives Bearbeitungs- oder Suchformular gefunden werden. \nBitte schließen Sie das Thesaurus-Fenster und rufen Sie es erneut auf!";
STRING_Thesaurus_alreadyAssigned="Das Schlagwort '%%' ist bereits dem Eintrag zugewiesen.";
STRING_EditGrantee_Menu="Verwaltung";
STRING_EditGrantee_Edit="Bearbeiten";
STRING_EditGrantee_AddUser="Benutzer hinzuf&uuml;gen";
STRING_EditGrantee_AddGroup="Gruppe hinzuf&uuml;gen";
STRING_EditGrantee_Cut="Ausschneiden";
STRING_EditGrantee_Copy="Kopieren";
STRING_EditGrantee_Paste="Einfügen";
STRING_EditGrantee_Delete="Löschen";
STRING_Print="Druck";
LOADING_DATA="Daten werden geladen. Bitte warten.   ";
LOADING_BUSY="Bitte warten...";
var servletPath="/servlet/is/";
var addressWindow=null;
var editAddressWindow=null;
var navigatorWindow=null;
var thesaurusWindow=null;
var linkBrowserWindow=null;
var whatsNewWindow=null;
var searchResultsWindow=null;
var changePasswdWindow=null;
function onOff(C){var B=document.getElementById(C);
var A="block";
if(B.style.display==A){B.style.display="none";
}else{B.style.display=A;
}}var busyStyle="margin-top:20px;font-family:Arial,Helvetica,sans-serif;font-size:14px;width:100%;height:80%;text-align:center;cursor:wait;";
function setBusy(D){try{var E=top?top.location:window.location;
var C=E.protocol+"//"+E.host+"/";
var A=D.getElementsByTagName("body")[0];
if(A){A.innerHTML='<div style="'+busyStyle+'">'+LOADING_DATA+'<br/><img src="'+C+'Bitmaps/etc/Progress.gif"/></div>';
}}catch(B){}}function loadBusy(B,A){setBusy(B.document);
B.location.href=A;
}function makeWaitButton(A){A.value=LOADING_BUSY;
A.disabled=true;
A.style.cursor="wait";
}function getAbsolutePos(E){var A=0,D=0;
var C=/^div$/i.test(E.tagName);
if(C&&E.scrollLeft){A=E.scrollLeft;
}if(C&&E.scrollTop){D=E.scrollTop;
}var F={x:E.offsetLeft-A,y:E.offsetTop-D};
if(E.offsetParent){var B=getAbsolutePos(E.offsetParent);
F.x+=B.x;
F.y+=B.y;
}return F;
}function format(){if(arguments.length<=1){return arguments[0];
}var C=/(^[^%]*)%%(.*)/;
var B=arguments[0];
for(var A=1;
A<arguments.length;
++A){B=B.replace(C,"$1 "+arguments[A]+" $2");
}return B;
}function preloadImages(A,D){var B=new Image();
for(var C=0;
C<D.length;
++C){B.src=D[C]+".gif";
B.src=D[C]+"X.gif";
}A.imageNames=D;
}function hilite(A,C,B){A.images[C].src=A.imageNames[B]+"X.gif";
}function fade(A,C,B){A.images[C].src=A.imageNames[B]+".gif";
}function openUrlInNewWindow(A,B){A.open(B);
}function spawnWindow(E,B,G){var A="scrollbars,";
if(!B){B=400;
}if(!G){if(E.document.body){G=E.document.body.scrollHeight;
G+=70;
if((G+180)>screen.availHeight){G=screen.availHeight-180;
}else{A="";
}}else{G=600;
}}var C=E.document.location.protocol+"//"+E.document.location.hostname+E.document.location.pathname;
var D=E.document.location.search;
var H=D.indexOf("&spawned=");
if(H!=-1&&D.indexOf("&spawned=true")==-1){D=D.substring(0,H)+D.substring(H+9,D.length);
}C+=D;
C+=(C.charAt(C.length-1)=="/")?"?":"&";
C+="spawned=true"+E.document.location.hash;
var F=E.name;
F="Contents"+(parseInt(F[7],10)+1);
E.open(C,F,A+"resizable,status,width="+B+",height="+G);
}function tee(B,C,A){if(parent.MenuBar&&parent.MenuBar.linkOrMenu){return parent.MenuBar.linkOrMenu(B,C,A);
}return true;
}function displayAddress(B,A){addressWindow=executeObject("Address",B,"Display",addressWindow,400,400,100,100,A);
}function newAddress(A){editAddressWindow=executeObject("Address",null,"Edit",editAddressWindow,480,690,null,null,null,"/?addTo="+A);
}function editAddress(A){editAddressWindow=executeObject("Address",A,"Edit",editAddressWindow,480,690);
}function deleteAddress(C){if(window.confirm(format(STRING_Command_deleteAddress,C))){var A=servletPath+"Address."+C+".delete/";
var B=document.forms.addressSearchForm;
if(B.name&&B.name.value.length>0){A+="?search="+B.name.value;
}document.location.href=A;
}}function showLinkBrowser(C,B,A){if(A){B+="&part=content";
}linkBrowserWindow=executeObject("Entry",C,"LinkBrowser",linkBrowserWindow,A?470:840,600,0,0,null,"/?field="+B);
}function silentExecuteObject(E,A,B,D,I,C,G,F,H){executeObject(E,A,B,D,I,C,G,F,H);
}function executeObject(E,A,B,D,J,C,H,G,I,K){if(!J){J=400;
}if(!C){C=300;
}if(!H){H=100;
}if(!G){G=100;
}var F=fitToScreen(H,G,J,C);
H=F.x;
G=F.y;
J=F.w;
C=F.h;
D=popupSingleton(D,E+B,"scrollbars=yes,resizable=yes,width="+J+",height="+C+",top="+G+",left="+H);
if(A==null){A="";
}if(!I&&D){D.location.href=servletPath+E+"."+A+"."+B+(K?K:"");
}return D;
}function fitToScreen(A,D,B,C){if(A+B>screen.availWidth){A=screen.width-B-10;
}if(D+C>screen.availHeight){D=screen.height-C-34;
if(navigator.appVersion.indexOf("MSIE")!=-1){D-=32;
}D=Math.max(0,D);
}return{x:A,y:D,w:B,h:C};
}var thesaurus={fat:{url:"/Thesaurus/Start.html",width:715,height:500},slim:{url:"/Thesaurus/Start.html",width:250,height:500}};
thesaurus.defaults=thesaurus.fat;
function execSearch(){var A=servletPath+"Entry..Search/";
if(typeof (entry)!="undefined"){A+="?subTree="+entry.id;
}location.href=A;
}function popupThesaurusFor(C,A,D,B){if(!B){B=thesaurus.defaults.url;
}if(!A){A=thesaurus.defaults.width;
}if(!D){D=thesaurus.defaults.height;
}thesaurusWindow=popupSingleton(thesaurusWindow,"Thesaurus","scrollbars=yes,resizable=yes,width="+A+",height="+D);
thesaurusWindow.document.location.href=B;
}function popupNavigator(B,A){var C=1;
if(typeof (entry)!="undefined"){C=entry.id;
}else{if(typeof (Contents)!="undefined"&&typeof (Contents.entry)!="undefined"){C=Contents.entry.id;
}}popupNavigatorOn(C,B,420,500,A);
}function popupNavigatorOn(E,F,A,C,B){if(!F){F=2;
}if(!A){A=420;
}if(!C){C=500;
}navigatorWindow=popupSingleton(navigatorWindow,"Navigator","scrollbars=yes,resizable=yes,width="+A+",height="+C+",status=no,screenX=0,screenY=0,left=0,top=0");
var D=servletPath+E+"/?command=tree&maxLevel="+F;
if(B){D+="&template="+B;
}if(navigatorWindow){navigatorWindow.location.href=D;
}}function popupSearchResults(A){searchResultsWindow=popupSingleton(searchResultsWindow,"SearchResults","scrollbars=yes,resizable=yes,width=480,height=550,status,screenX=0,screenY=0,left=0,top=0");
if(A!=null){searchResultsWindow.document.location.href=A;
}}function popupWhatsNew(){whatsNewWindow=popupSingleton(whatsNewWindow,"News","scrollbars=yes,resizable=yes,width=550,height=550,status,screenX=0,screenY=0,left=0,top=0");
whatsNewWindow.document.location.href=servletPath+"Global..ShowNews/?daysBack=14";
}function changePasswd(A){changePasswdWindow=executeObject("Grantee",A,"ChangePasswd",changePasswdWindow,480,300);
}function popupSingleton(B,A,C){if(B&&!B.closed&&B.document){B.focus();
return B;
}var D=navigator.appName.indexOf("Opera")==-1?"":window.frames[0].location;
B=window.open(D,A,C);
if(B&&!B.closed&&B.document){B.focus();
}return B;
}function login(){var A=servletPath+"Grantee..login/?noNoAccessMessage=true";
if(typeof (entry)!="undefined"&&entry.id){A+="&destination="+entry.id;
}location.href=A;
}function openURL(A){var B=window.opener?window.opener:parent;
var C=B.location;
if(B.frames.length>1){C=B.Contents?B.Contents.location:B.frames[1].location;
}C.href=A;
}function doPrint(){var A=window.document.location;
A.href+=(A.search.length===0?"?print=true":"&print=true");
}function editProfile(){var A=servletPath+"Profile..Show/";
if(typeof (entry)!="undefined"){A+="?destination="+entry.id;
}location.href=A;
}function doDownload(B,A){if(window.confirm(STRING_Files_doDownload3)){document.location.href="/servlet/is/"+B+"/"+A+".zip?command=downloadContent";
}}
/*
 * jQuery JavaScript Library v1.8.3
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2012 jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
 */
(function(window,undefined){var rootjQuery,readyList,document=window.document,location=window.location,navigator=window.navigator,_jQuery=window.jQuery,_$=window.$,core_push=Array.prototype.push,core_slice=Array.prototype.slice,core_indexOf=Array.prototype.indexOf,core_toString=Object.prototype.toString,core_hasOwn=Object.prototype.hasOwnProperty,core_trim=String.prototype.trim,jQuery=function(selector,context){return new jQuery.fn.init(selector,context,rootjQuery);
},core_pnum=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,core_rnotwhite=/\S/,core_rspace=/\s+/,rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,rquickExpr=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,rvalidchars=/^[\],:{}\s]*$/,rvalidbraces=/(?:^|:|,)(?:\s*\[)+/g,rvalidescape=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,rvalidtokens=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,rmsPrefix=/^-ms-/,rdashAlpha=/-([\da-z])/gi,fcamelCase=function(all,letter){return(letter+"").toUpperCase();
},DOMContentLoaded=function(){if(document.addEventListener){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);
jQuery.ready();
}else{if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);
jQuery.ready();
}}},class2type={};
jQuery.fn=jQuery.prototype={constructor:jQuery,init:function(selector,context,rootjQuery){var match,elem,ret,doc;
if(!selector){return this;
}if(selector.nodeType){this.context=this[0]=selector;
this.length=1;
return this;
}if(typeof selector==="string"){if(selector.charAt(0)==="<"&&selector.charAt(selector.length-1)===">"&&selector.length>=3){match=[null,selector,null];
}else{match=rquickExpr.exec(selector);
}if(match&&(match[1]||!context)){if(match[1]){context=context instanceof jQuery?context[0]:context;
doc=(context&&context.nodeType?context.ownerDocument||context:document);
selector=jQuery.parseHTML(match[1],doc,true);
if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){this.attr.call(selector,context,true);
}return jQuery.merge(this,selector);
}else{elem=document.getElementById(match[2]);
if(elem&&elem.parentNode){if(elem.id!==match[2]){return rootjQuery.find(selector);
}this.length=1;
this[0]=elem;
}this.context=document;
this.selector=selector;
return this;
}}else{if(!context||context.jquery){return(context||rootjQuery).find(selector);
}else{return this.constructor(context).find(selector);
}}}else{if(jQuery.isFunction(selector)){return rootjQuery.ready(selector);
}}if(selector.selector!==undefined){this.selector=selector.selector;
this.context=selector.context;
}return jQuery.makeArray(selector,this);
},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length;
},toArray:function(){return core_slice.call(this);
},get:function(num){return num==null?this.toArray():(num<0?this[this.length+num]:this[num]);
},pushStack:function(elems,name,selector){var ret=jQuery.merge(this.constructor(),elems);
ret.prevObject=this;
ret.context=this.context;
if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector;
}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")";
}}return ret;
},each:function(callback,args){return jQuery.each(this,callback,args);
},ready:function(fn){jQuery.ready.promise().done(fn);
return this;
},eq:function(i){i=+i;
return i===-1?this.slice(i):this.slice(i,i+1);
},first:function(){return this.eq(0);
},last:function(){return this.eq(-1);
},slice:function(){return this.pushStack(core_slice.apply(this,arguments),"slice",core_slice.call(arguments).join(","));
},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);
}));
},end:function(){return this.prevObject||this.constructor(null);
},push:core_push,sort:[].sort,splice:[].splice};
jQuery.fn.init.prototype=jQuery.fn;
jQuery.extend=jQuery.fn.extend=function(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;
if(typeof target==="boolean"){deep=target;
target=arguments[1]||{};
i=2;
}if(typeof target!=="object"&&!jQuery.isFunction(target)){target={};
}if(length===i){target=this;
--i;
}for(;
i<length;
i++){if((options=arguments[i])!=null){for(name in options){src=target[name];
copy=options[name];
if(target===copy){continue;
}if(deep&&copy&&(jQuery.isPlainObject(copy)||(copyIsArray=jQuery.isArray(copy)))){if(copyIsArray){copyIsArray=false;
clone=src&&jQuery.isArray(src)?src:[];
}else{clone=src&&jQuery.isPlainObject(src)?src:{};
}target[name]=jQuery.extend(deep,clone,copy);
}else{if(copy!==undefined){target[name]=copy;
}}}}}return target;
};
jQuery.extend({noConflict:function(deep){if(window.$===jQuery){window.$=_$;
}if(deep&&window.jQuery===jQuery){window.jQuery=_jQuery;
}return jQuery;
},isReady:false,readyWait:1,holdReady:function(hold){if(hold){jQuery.readyWait++;
}else{jQuery.ready(true);
}},ready:function(wait){if(wait===true?--jQuery.readyWait:jQuery.isReady){return ;
}if(!document.body){return setTimeout(jQuery.ready,1);
}jQuery.isReady=true;
if(wait!==true&&--jQuery.readyWait>0){return ;
}readyList.resolveWith(document,[jQuery]);
if(jQuery.fn.trigger){jQuery(document).trigger("ready").off("ready");
}},isFunction:function(obj){return jQuery.type(obj)==="function";
},isArray:Array.isArray||function(obj){return jQuery.type(obj)==="array";
},isWindow:function(obj){return obj!=null&&obj==obj.window;
},isNumeric:function(obj){return !isNaN(parseFloat(obj))&&isFinite(obj);
},type:function(obj){return obj==null?String(obj):class2type[core_toString.call(obj)]||"object";
},isPlainObject:function(obj){if(!obj||jQuery.type(obj)!=="object"||obj.nodeType||jQuery.isWindow(obj)){return false;
}try{if(obj.constructor&&!core_hasOwn.call(obj,"constructor")&&!core_hasOwn.call(obj.constructor.prototype,"isPrototypeOf")){return false;
}}catch(e){return false;
}var key;
for(key in obj){}return key===undefined||core_hasOwn.call(obj,key);
},isEmptyObject:function(obj){var name;
for(name in obj){return false;
}return true;
},error:function(msg){throw new Error(msg);
},parseHTML:function(data,context,scripts){var parsed;
if(!data||typeof data!=="string"){return null;
}if(typeof context==="boolean"){scripts=context;
context=0;
}context=context||document;
if((parsed=rsingleTag.exec(data))){return[context.createElement(parsed[1])];
}parsed=jQuery.buildFragment([data],context,scripts?null:[]);
return jQuery.merge([],(parsed.cacheable?jQuery.clone(parsed.fragment):parsed.fragment).childNodes);
},parseJSON:function(data){if(!data||typeof data!=="string"){return null;
}data=jQuery.trim(data);
if(window.JSON&&window.JSON.parse){return window.JSON.parse(data);
}if(rvalidchars.test(data.replace(rvalidescape,"@").replace(rvalidtokens,"]").replace(rvalidbraces,""))){return(new Function("return "+data))();
}jQuery.error("Invalid JSON: "+data);
},parseXML:function(data){var xml,tmp;
if(!data||typeof data!=="string"){return null;
}try{if(window.DOMParser){tmp=new DOMParser();
xml=tmp.parseFromString(data,"text/xml");
}else{xml=new ActiveXObject("Microsoft.XMLDOM");
xml.async="false";
xml.loadXML(data);
}}catch(e){xml=undefined;
}if(!xml||!xml.documentElement||xml.getElementsByTagName("parsererror").length){jQuery.error("Invalid XML: "+data);
}return xml;
},noop:function(){},globalEval:function(data){if(data&&core_rnotwhite.test(data)){(window.execScript||function(data){window["eval"].call(window,data);
})(data);
}},camelCase:function(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase);
},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase();
},each:function(obj,callback,args){var name,i=0,length=obj.length,isObj=length===undefined||jQuery.isFunction(obj);
if(args){if(isObj){for(name in obj){if(callback.apply(obj[name],args)===false){break;
}}}else{for(;
i<length;
){if(callback.apply(obj[i++],args)===false){break;
}}}}else{if(isObj){for(name in obj){if(callback.call(obj[name],name,obj[name])===false){break;
}}}else{for(;
i<length;
){if(callback.call(obj[i],i,obj[i++])===false){break;
}}}}return obj;
},trim:core_trim&&!core_trim.call("\uFEFF\xA0")?function(text){return text==null?"":core_trim.call(text);
}:function(text){return text==null?"":(text+"").replace(rtrim,"");
},makeArray:function(arr,results){var type,ret=results||[];
if(arr!=null){type=jQuery.type(arr);
if(arr.length==null||type==="string"||type==="function"||type==="regexp"||jQuery.isWindow(arr)){core_push.call(ret,arr);
}else{jQuery.merge(ret,arr);
}}return ret;
},inArray:function(elem,arr,i){var len;
if(arr){if(core_indexOf){return core_indexOf.call(arr,elem,i);
}len=arr.length;
i=i?i<0?Math.max(0,len+i):i:0;
for(;
i<len;
i++){if(i in arr&&arr[i]===elem){return i;
}}}return -1;
},merge:function(first,second){var l=second.length,i=first.length,j=0;
if(typeof l==="number"){for(;
j<l;
j++){first[i++]=second[j];
}}else{while(second[j]!==undefined){first[i++]=second[j++];
}}first.length=i;
return first;
},grep:function(elems,callback,inv){var retVal,ret=[],i=0,length=elems.length;
inv=!!inv;
for(;
i<length;
i++){retVal=!!callback(elems[i],i);
if(inv!==retVal){ret.push(elems[i]);
}}return ret;
},map:function(elems,callback,arg){var value,key,ret=[],i=0,length=elems.length,isArray=elems instanceof jQuery||length!==undefined&&typeof length==="number"&&((length>0&&elems[0]&&elems[length-1])||length===0||jQuery.isArray(elems));
if(isArray){for(;
i<length;
i++){value=callback(elems[i],i,arg);
if(value!=null){ret[ret.length]=value;
}}}else{for(key in elems){value=callback(elems[key],key,arg);
if(value!=null){ret[ret.length]=value;
}}}return ret.concat.apply([],ret);
},guid:1,proxy:function(fn,context){var tmp,args,proxy;
if(typeof context==="string"){tmp=fn[context];
context=fn;
fn=tmp;
}if(!jQuery.isFunction(fn)){return undefined;
}args=core_slice.call(arguments,2);
proxy=function(){return fn.apply(context,args.concat(core_slice.call(arguments)));
};
proxy.guid=fn.guid=fn.guid||jQuery.guid++;
return proxy;
},access:function(elems,fn,key,value,chainable,emptyGet,pass){var exec,bulk=key==null,i=0,length=elems.length;
if(key&&typeof key==="object"){for(i in key){jQuery.access(elems,fn,i,key[i],1,emptyGet,value);
}chainable=1;
}else{if(value!==undefined){exec=pass===undefined&&jQuery.isFunction(value);
if(bulk){if(exec){exec=fn;
fn=function(elem,key,value){return exec.call(jQuery(elem),value);
};
}else{fn.call(elems,value);
fn=null;
}}if(fn){for(;
i<length;
i++){fn(elems[i],key,exec?value.call(elems[i],i,fn(elems[i],key)):value,pass);
}}chainable=1;
}}return chainable?elems:bulk?fn.call(elems):length?fn(elems[0],key):emptyGet;
},now:function(){return(new Date()).getTime();
}});
jQuery.ready.promise=function(obj){if(!readyList){readyList=jQuery.Deferred();
if(document.readyState==="complete"){setTimeout(jQuery.ready,1);
}else{if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false);
window.addEventListener("load",jQuery.ready,false);
}else{document.attachEvent("onreadystatechange",DOMContentLoaded);
window.attachEvent("onload",jQuery.ready);
var top=false;
try{top=window.frameElement==null&&document.documentElement;
}catch(e){}if(top&&top.doScroll){(function doScrollCheck(){if(!jQuery.isReady){try{top.doScroll("left");
}catch(e){return setTimeout(doScrollCheck,50);
}jQuery.ready();
}})();
}}}}return readyList.promise(obj);
};
jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(i,name){class2type["[object "+name+"]"]=name.toLowerCase();
});
rootjQuery=jQuery(document);
var optionsCache={};
function createOptions(options){var object=optionsCache[options]={};
jQuery.each(options.split(core_rspace),function(_,flag){object[flag]=true;
});
return object;
}jQuery.Callbacks=function(options){options=typeof options==="string"?(optionsCache[options]||createOptions(options)):jQuery.extend({},options);
var memory,fired,firing,firingStart,firingLength,firingIndex,list=[],stack=!options.once&&[],fire=function(data){memory=options.memory&&data;
fired=true;
firingIndex=firingStart||0;
firingStart=0;
firingLength=list.length;
firing=true;
for(;
list&&firingIndex<firingLength;
firingIndex++){if(list[firingIndex].apply(data[0],data[1])===false&&options.stopOnFalse){memory=false;
break;
}}firing=false;
if(list){if(stack){if(stack.length){fire(stack.shift());
}}else{if(memory){list=[];
}else{self.disable();
}}}},self={add:function(){if(list){var start=list.length;
(function add(args){jQuery.each(args,function(_,arg){var type=jQuery.type(arg);
if(type==="function"){if(!options.unique||!self.has(arg)){list.push(arg);
}}else{if(arg&&arg.length&&type!=="string"){add(arg);
}}});
})(arguments);
if(firing){firingLength=list.length;
}else{if(memory){firingStart=start;
fire(memory);
}}}return this;
},remove:function(){if(list){jQuery.each(arguments,function(_,arg){var index;
while((index=jQuery.inArray(arg,list,index))>-1){list.splice(index,1);
if(firing){if(index<=firingLength){firingLength--;
}if(index<=firingIndex){firingIndex--;
}}}});
}return this;
},has:function(fn){return jQuery.inArray(fn,list)>-1;
},empty:function(){list=[];
return this;
},disable:function(){list=stack=memory=undefined;
return this;
},disabled:function(){return !list;
},lock:function(){stack=undefined;
if(!memory){self.disable();
}return this;
},locked:function(){return !stack;
},fireWith:function(context,args){args=args||[];
args=[context,args.slice?args.slice():args];
if(list&&(!fired||stack)){if(firing){stack.push(args);
}else{fire(args);
}}return this;
},fire:function(){self.fireWith(this,arguments);
return this;
},fired:function(){return !!fired;
}};
return self;
};
jQuery.extend({Deferred:function(func){var tuples=[["resolve","done",jQuery.Callbacks("once memory"),"resolved"],["reject","fail",jQuery.Callbacks("once memory"),"rejected"],["notify","progress",jQuery.Callbacks("memory")]],state="pending",promise={state:function(){return state;
},always:function(){deferred.done(arguments).fail(arguments);
return this;
},then:function(){var fns=arguments;
return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(i,tuple){var action=tuple[0],fn=fns[i];
deferred[tuple[1]](jQuery.isFunction(fn)?function(){var returned=fn.apply(this,arguments);
if(returned&&jQuery.isFunction(returned.promise)){returned.promise().done(newDefer.resolve).fail(newDefer.reject).progress(newDefer.notify);
}else{newDefer[action+"With"](this===deferred?newDefer:this,[returned]);
}}:newDefer[action]);
});
fns=null;
}).promise();
},promise:function(obj){return obj!=null?jQuery.extend(obj,promise):promise;
}},deferred={};
promise.pipe=promise.then;
jQuery.each(tuples,function(i,tuple){var list=tuple[2],stateString=tuple[3];
promise[tuple[1]]=list.add;
if(stateString){list.add(function(){state=stateString;
},tuples[i^1][2].disable,tuples[2][2].lock);
}deferred[tuple[0]]=list.fire;
deferred[tuple[0]+"With"]=list.fireWith;
});
promise.promise(deferred);
if(func){func.call(deferred,deferred);
}return deferred;
},when:function(subordinate){var i=0,resolveValues=core_slice.call(arguments),length=resolveValues.length,remaining=length!==1||(subordinate&&jQuery.isFunction(subordinate.promise))?length:0,deferred=remaining===1?subordinate:jQuery.Deferred(),updateFunc=function(i,contexts,values){return function(value){contexts[i]=this;
values[i]=arguments.length>1?core_slice.call(arguments):value;
if(values===progressValues){deferred.notifyWith(contexts,values);
}else{if(!(--remaining)){deferred.resolveWith(contexts,values);
}}};
},progressValues,progressContexts,resolveContexts;
if(length>1){progressValues=new Array(length);
progressContexts=new Array(length);
resolveContexts=new Array(length);
for(;
i<length;
i++){if(resolveValues[i]&&jQuery.isFunction(resolveValues[i].promise)){resolveValues[i].promise().done(updateFunc(i,resolveContexts,resolveValues)).fail(deferred.reject).progress(updateFunc(i,progressContexts,progressValues));
}else{--remaining;
}}}if(!remaining){deferred.resolveWith(resolveContexts,resolveValues);
}return deferred.promise();
}});
jQuery.support=(function(){var support,all,a,select,opt,input,fragment,eventName,i,isSupported,clickFn,div=document.createElement("div");
div.setAttribute("className","t");
div.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
all=div.getElementsByTagName("*");
a=div.getElementsByTagName("a")[0];
if(!all||!a||!all.length){return{};
}select=document.createElement("select");
opt=select.appendChild(document.createElement("option"));
input=div.getElementsByTagName("input")[0];
a.style.cssText="top:1px;float:left;opacity:.5";
support={leadingWhitespace:(div.firstChild.nodeType===3),tbody:!div.getElementsByTagName("tbody").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/top/.test(a.getAttribute("style")),hrefNormalized:(a.getAttribute("href")==="/a"),opacity:/^0.5/.test(a.style.opacity),cssFloat:!!a.style.cssFloat,checkOn:(input.value==="on"),optSelected:opt.selected,getSetAttribute:div.className!=="t",enctype:!!document.createElement("form").enctype,html5Clone:document.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",boxModel:(document.compatMode==="CSS1Compat"),submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true,boxSizingReliable:true,pixelPosition:false};
input.checked=true;
support.noCloneChecked=input.cloneNode(true).checked;
select.disabled=true;
support.optDisabled=!opt.disabled;
try{delete div.test;
}catch(e){support.deleteExpando=false;
}if(!div.addEventListener&&div.attachEvent&&div.fireEvent){div.attachEvent("onclick",clickFn=function(){support.noCloneEvent=false;
});
div.cloneNode(true).fireEvent("onclick");
div.detachEvent("onclick",clickFn);
}input=document.createElement("input");
input.value="t";
input.setAttribute("type","radio");
support.radioValue=input.value==="t";
input.setAttribute("checked","checked");
input.setAttribute("name","t");
div.appendChild(input);
fragment=document.createDocumentFragment();
fragment.appendChild(div.lastChild);
support.checkClone=fragment.cloneNode(true).cloneNode(true).lastChild.checked;
support.appendChecked=input.checked;
fragment.removeChild(input);
fragment.appendChild(div);
if(div.attachEvent){for(i in {submit:true,change:true,focusin:true}){eventName="on"+i;
isSupported=(eventName in div);
if(!isSupported){div.setAttribute(eventName,"return;");
isSupported=(typeof div[eventName]==="function");
}support[i+"Bubbles"]=isSupported;
}}jQuery(function(){var container,div,tds,marginDiv,divReset="padding:0;margin:0;border:0;display:block;overflow:hidden;",body=document.getElementsByTagName("body")[0];
if(!body){return ;
}container=document.createElement("div");
container.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";
body.insertBefore(container,body.firstChild);
div=document.createElement("div");
container.appendChild(div);
div.innerHTML="<table><tr><td></td><td>t</td></tr></table>";
tds=div.getElementsByTagName("td");
tds[0].style.cssText="padding:0;margin:0;border:0;display:none";
isSupported=(tds[0].offsetHeight===0);
tds[0].style.display="";
tds[1].style.display="none";
support.reliableHiddenOffsets=isSupported&&(tds[0].offsetHeight===0);
div.innerHTML="";
div.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";
support.boxSizing=(div.offsetWidth===4);
support.doesNotIncludeMarginInBodyOffset=(body.offsetTop!==1);
if(window.getComputedStyle){support.pixelPosition=(window.getComputedStyle(div,null)||{}).top!=="1%";
support.boxSizingReliable=(window.getComputedStyle(div,null)||{width:"4px"}).width==="4px";
marginDiv=document.createElement("div");
marginDiv.style.cssText=div.style.cssText=divReset;
marginDiv.style.marginRight=marginDiv.style.width="0";
div.style.width="1px";
div.appendChild(marginDiv);
support.reliableMarginRight=!parseFloat((window.getComputedStyle(marginDiv,null)||{}).marginRight);
}if(typeof div.style.zoom!=="undefined"){div.innerHTML="";
div.style.cssText=divReset+"width:1px;padding:1px;display:inline;zoom:1";
support.inlineBlockNeedsLayout=(div.offsetWidth===3);
div.style.display="block";
div.style.overflow="visible";
div.innerHTML="<div></div>";
div.firstChild.style.width="5px";
support.shrinkWrapBlocks=(div.offsetWidth!==3);
container.style.zoom=1;
}body.removeChild(container);
container=div=tds=marginDiv=null;
});
fragment.removeChild(div);
all=a=select=opt=input=fragment=div=null;
return support;
})();
var rbrace=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,rmultiDash=/([A-Z])/g;
jQuery.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(jQuery.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(elem){elem=elem.nodeType?jQuery.cache[elem[jQuery.expando]]:elem[jQuery.expando];
return !!elem&&!isEmptyDataObject(elem);
},data:function(elem,name,data,pvt){if(!jQuery.acceptData(elem)){return ;
}var thisCache,ret,internalKey=jQuery.expando,getByName=typeof name==="string",isNode=elem.nodeType,cache=isNode?jQuery.cache:elem,id=isNode?elem[internalKey]:elem[internalKey]&&internalKey;
if((!id||!cache[id]||(!pvt&&!cache[id].data))&&getByName&&data===undefined){return ;
}if(!id){if(isNode){elem[internalKey]=id=jQuery.deletedIds.pop()||jQuery.guid++;
}else{id=internalKey;
}}if(!cache[id]){cache[id]={};
if(!isNode){cache[id].toJSON=jQuery.noop;
}}if(typeof name==="object"||typeof name==="function"){if(pvt){cache[id]=jQuery.extend(cache[id],name);
}else{cache[id].data=jQuery.extend(cache[id].data,name);
}}thisCache=cache[id];
if(!pvt){if(!thisCache.data){thisCache.data={};
}thisCache=thisCache.data;
}if(data!==undefined){thisCache[jQuery.camelCase(name)]=data;
}if(getByName){ret=thisCache[name];
if(ret==null){ret=thisCache[jQuery.camelCase(name)];
}}else{ret=thisCache;
}return ret;
},removeData:function(elem,name,pvt){if(!jQuery.acceptData(elem)){return ;
}var thisCache,i,l,isNode=elem.nodeType,cache=isNode?jQuery.cache:elem,id=isNode?elem[jQuery.expando]:jQuery.expando;
if(!cache[id]){return ;
}if(name){thisCache=pvt?cache[id]:cache[id].data;
if(thisCache){if(!jQuery.isArray(name)){if(name in thisCache){name=[name];
}else{name=jQuery.camelCase(name);
if(name in thisCache){name=[name];
}else{name=name.split(" ");
}}}for(i=0,l=name.length;
i<l;
i++){delete thisCache[name[i]];
}if(!(pvt?isEmptyDataObject:jQuery.isEmptyObject)(thisCache)){return ;
}}}if(!pvt){delete cache[id].data;
if(!isEmptyDataObject(cache[id])){return ;
}}if(isNode){jQuery.cleanData([elem],true);
}else{if(jQuery.support.deleteExpando||cache!=cache.window){delete cache[id];
}else{cache[id]=null;
}}},_data:function(elem,name,data){return jQuery.data(elem,name,data,true);
},acceptData:function(elem){var noData=elem.nodeName&&jQuery.noData[elem.nodeName.toLowerCase()];
return !noData||noData!==true&&elem.getAttribute("classid")===noData;
}});
jQuery.fn.extend({data:function(key,value){var parts,part,attr,name,l,elem=this[0],i=0,data=null;
if(key===undefined){if(this.length){data=jQuery.data(elem);
if(elem.nodeType===1&&!jQuery._data(elem,"parsedAttrs")){attr=elem.attributes;
for(l=attr.length;
i<l;
i++){name=attr[i].name;
if(!name.indexOf("data-")){name=jQuery.camelCase(name.substring(5));
dataAttr(elem,name,data[name]);
}}jQuery._data(elem,"parsedAttrs",true);
}}return data;
}if(typeof key==="object"){return this.each(function(){jQuery.data(this,key);
});
}parts=key.split(".",2);
parts[1]=parts[1]?"."+parts[1]:"";
part=parts[1]+"!";
return jQuery.access(this,function(value){if(value===undefined){data=this.triggerHandler("getData"+part,[parts[0]]);
if(data===undefined&&elem){data=jQuery.data(elem,key);
data=dataAttr(elem,key,data);
}return data===undefined&&parts[1]?this.data(parts[0]):data;
}parts[1]=value;
this.each(function(){var self=jQuery(this);
self.triggerHandler("setData"+part,parts);
jQuery.data(this,key,value);
self.triggerHandler("changeData"+part,parts);
});
},null,value,arguments.length>1,null,false);
},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);
});
}});
function dataAttr(elem,key,data){if(data===undefined&&elem.nodeType===1){var name="data-"+key.replace(rmultiDash,"-$1").toLowerCase();
data=elem.getAttribute(name);
if(typeof data==="string"){try{data=data==="true"?true:data==="false"?false:data==="null"?null:+data+""===data?+data:rbrace.test(data)?jQuery.parseJSON(data):data;
}catch(e){}jQuery.data(elem,key,data);
}else{data=undefined;
}}return data;
}function isEmptyDataObject(obj){var name;
for(name in obj){if(name==="data"&&jQuery.isEmptyObject(obj[name])){continue;
}if(name!=="toJSON"){return false;
}}return true;
}jQuery.extend({queue:function(elem,type,data){var queue;
if(elem){type=(type||"fx")+"queue";
queue=jQuery._data(elem,type);
if(data){if(!queue||jQuery.isArray(data)){queue=jQuery._data(elem,type,jQuery.makeArray(data));
}else{queue.push(data);
}}return queue||[];
}},dequeue:function(elem,type){type=type||"fx";
var queue=jQuery.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=jQuery._queueHooks(elem,type),next=function(){jQuery.dequeue(elem,type);
};
if(fn==="inprogress"){fn=queue.shift();
startLength--;
}if(fn){if(type==="fx"){queue.unshift("inprogress");
}delete hooks.stop;
fn.call(elem,next,hooks);
}if(!startLength&&hooks){hooks.empty.fire();
}},_queueHooks:function(elem,type){var key=type+"queueHooks";
return jQuery._data(elem,key)||jQuery._data(elem,key,{empty:jQuery.Callbacks("once memory").add(function(){jQuery.removeData(elem,type+"queue",true);
jQuery.removeData(elem,key,true);
})});
}});
jQuery.fn.extend({queue:function(type,data){var setter=2;
if(typeof type!=="string"){data=type;
type="fx";
setter--;
}if(arguments.length<setter){return jQuery.queue(this[0],type);
}return data===undefined?this:this.each(function(){var queue=jQuery.queue(this,type,data);
jQuery._queueHooks(this,type);
if(type==="fx"&&queue[0]!=="inprogress"){jQuery.dequeue(this,type);
}});
},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type);
});
},delay:function(time,type){time=jQuery.fx?jQuery.fx.speeds[time]||time:time;
type=type||"fx";
return this.queue(type,function(next,hooks){var timeout=setTimeout(next,time);
hooks.stop=function(){clearTimeout(timeout);
};
});
},clearQueue:function(type){return this.queue(type||"fx",[]);
},promise:function(type,obj){var tmp,count=1,defer=jQuery.Deferred(),elements=this,i=this.length,resolve=function(){if(!(--count)){defer.resolveWith(elements,[elements]);
}};
if(typeof type!=="string"){obj=type;
type=undefined;
}type=type||"fx";
while(i--){tmp=jQuery._data(elements[i],type+"queueHooks");
if(tmp&&tmp.empty){count++;
tmp.empty.add(resolve);
}}resolve();
return defer.promise(obj);
}});
var nodeHook,boolHook,fixSpecified,rclass=/[\t\r\n]/g,rreturn=/\r/g,rtype=/^(?:button|input)$/i,rfocusable=/^(?:button|input|object|select|textarea)$/i,rclickable=/^a(?:rea|)$/i,rboolean=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,getSetAttribute=jQuery.support.getSetAttribute;
jQuery.fn.extend({attr:function(name,value){return jQuery.access(this,jQuery.attr,name,value,arguments.length>1);
},removeAttr:function(name){return this.each(function(){jQuery.removeAttr(this,name);
});
},prop:function(name,value){return jQuery.access(this,jQuery.prop,name,value,arguments.length>1);
},removeProp:function(name){name=jQuery.propFix[name]||name;
return this.each(function(){try{this[name]=undefined;
delete this[name];
}catch(e){}});
},addClass:function(value){var classNames,i,l,elem,setClass,c,cl;
if(jQuery.isFunction(value)){return this.each(function(j){jQuery(this).addClass(value.call(this,j,this.className));
});
}if(value&&typeof value==="string"){classNames=value.split(core_rspace);
for(i=0,l=this.length;
i<l;
i++){elem=this[i];
if(elem.nodeType===1){if(!elem.className&&classNames.length===1){elem.className=value;
}else{setClass=" "+elem.className+" ";
for(c=0,cl=classNames.length;
c<cl;
c++){if(setClass.indexOf(" "+classNames[c]+" ")<0){setClass+=classNames[c]+" ";
}}elem.className=jQuery.trim(setClass);
}}}}return this;
},removeClass:function(value){var removes,className,elem,c,cl,i,l;
if(jQuery.isFunction(value)){return this.each(function(j){jQuery(this).removeClass(value.call(this,j,this.className));
});
}if((value&&typeof value==="string")||value===undefined){removes=(value||"").split(core_rspace);
for(i=0,l=this.length;
i<l;
i++){elem=this[i];
if(elem.nodeType===1&&elem.className){className=(" "+elem.className+" ").replace(rclass," ");
for(c=0,cl=removes.length;
c<cl;
c++){while(className.indexOf(" "+removes[c]+" ")>=0){className=className.replace(" "+removes[c]+" "," ");
}}elem.className=value?jQuery.trim(className):"";
}}}return this;
},toggleClass:function(value,stateVal){var type=typeof value,isBool=typeof stateVal==="boolean";
if(jQuery.isFunction(value)){return this.each(function(i){jQuery(this).toggleClass(value.call(this,i,this.className,stateVal),stateVal);
});
}return this.each(function(){if(type==="string"){var className,i=0,self=jQuery(this),state=stateVal,classNames=value.split(core_rspace);
while((className=classNames[i++])){state=isBool?state:!self.hasClass(className);
self[state?"addClass":"removeClass"](className);
}}else{if(type==="undefined"||type==="boolean"){if(this.className){jQuery._data(this,"__className__",this.className);
}this.className=this.className||value===false?"":jQuery._data(this,"__className__")||"";
}}});
},hasClass:function(selector){var className=" "+selector+" ",i=0,l=this.length;
for(;
i<l;
i++){if(this[i].nodeType===1&&(" "+this[i].className+" ").replace(rclass," ").indexOf(className)>=0){return true;
}}return false;
},val:function(value){var hooks,ret,isFunction,elem=this[0];
if(!arguments.length){if(elem){hooks=jQuery.valHooks[elem.type]||jQuery.valHooks[elem.nodeName.toLowerCase()];
if(hooks&&"get" in hooks&&(ret=hooks.get(elem,"value"))!==undefined){return ret;
}ret=elem.value;
return typeof ret==="string"?ret.replace(rreturn,""):ret==null?"":ret;
}return ;
}isFunction=jQuery.isFunction(value);
return this.each(function(i){var val,self=jQuery(this);
if(this.nodeType!==1){return ;
}if(isFunction){val=value.call(this,i,self.val());
}else{val=value;
}if(val==null){val="";
}else{if(typeof val==="number"){val+="";
}else{if(jQuery.isArray(val)){val=jQuery.map(val,function(value){return value==null?"":value+"";
});
}}}hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()];
if(!hooks||!("set" in hooks)||hooks.set(this,val,"value")===undefined){this.value=val;
}});
}});
jQuery.extend({valHooks:{option:{get:function(elem){var val=elem.attributes.value;
return !val||val.specified?elem.value:elem.text;
}},select:{get:function(elem){var value,option,options=elem.options,index=elem.selectedIndex,one=elem.type==="select-one"||index<0,values=one?null:[],max=one?index+1:options.length,i=index<0?max:one?index:0;
for(;
i<max;
i++){option=options[i];
if((option.selected||i===index)&&(jQuery.support.optDisabled?!option.disabled:option.getAttribute("disabled")===null)&&(!option.parentNode.disabled||!jQuery.nodeName(option.parentNode,"optgroup"))){value=jQuery(option).val();
if(one){return value;
}values.push(value);
}}return values;
},set:function(elem,value){var values=jQuery.makeArray(value);
jQuery(elem).find("option").each(function(){this.selected=jQuery.inArray(jQuery(this).val(),values)>=0;
});
if(!values.length){elem.selectedIndex=-1;
}return values;
}}},attrFn:{},attr:function(elem,name,value,pass){var ret,hooks,notxml,nType=elem.nodeType;
if(!elem||nType===3||nType===8||nType===2){return ;
}if(pass&&jQuery.isFunction(jQuery.fn[name])){return jQuery(elem)[name](value);
}if(typeof elem.getAttribute==="undefined"){return jQuery.prop(elem,name,value);
}notxml=nType!==1||!jQuery.isXMLDoc(elem);
if(notxml){name=name.toLowerCase();
hooks=jQuery.attrHooks[name]||(rboolean.test(name)?boolHook:nodeHook);
}if(value!==undefined){if(value===null){jQuery.removeAttr(elem,name);
return ;
}else{if(hooks&&"set" in hooks&&notxml&&(ret=hooks.set(elem,value,name))!==undefined){return ret;
}else{elem.setAttribute(name,value+"");
return value;
}}}else{if(hooks&&"get" in hooks&&notxml&&(ret=hooks.get(elem,name))!==null){return ret;
}else{ret=elem.getAttribute(name);
return ret===null?undefined:ret;
}}},removeAttr:function(elem,value){var propName,attrNames,name,isBool,i=0;
if(value&&elem.nodeType===1){attrNames=value.split(core_rspace);
for(;
i<attrNames.length;
i++){name=attrNames[i];
if(name){propName=jQuery.propFix[name]||name;
isBool=rboolean.test(name);
if(!isBool){jQuery.attr(elem,name,"");
}elem.removeAttribute(getSetAttribute?name:propName);
if(isBool&&propName in elem){elem[propName]=false;
}}}}},attrHooks:{type:{set:function(elem,value){if(rtype.test(elem.nodeName)&&elem.parentNode){jQuery.error("type property can't be changed");
}else{if(!jQuery.support.radioValue&&value==="radio"&&jQuery.nodeName(elem,"input")){var val=elem.value;
elem.setAttribute("type",value);
if(val){elem.value=val;
}return value;
}}}},value:{get:function(elem,name){if(nodeHook&&jQuery.nodeName(elem,"button")){return nodeHook.get(elem,name);
}return name in elem?elem.value:null;
},set:function(elem,value,name){if(nodeHook&&jQuery.nodeName(elem,"button")){return nodeHook.set(elem,value,name);
}elem.value=value;
}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(elem,name,value){var ret,hooks,notxml,nType=elem.nodeType;
if(!elem||nType===3||nType===8||nType===2){return ;
}notxml=nType!==1||!jQuery.isXMLDoc(elem);
if(notxml){name=jQuery.propFix[name]||name;
hooks=jQuery.propHooks[name];
}if(value!==undefined){if(hooks&&"set" in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret;
}else{return(elem[name]=value);
}}else{if(hooks&&"get" in hooks&&(ret=hooks.get(elem,name))!==null){return ret;
}else{return elem[name];
}}},propHooks:{tabIndex:{get:function(elem){var attributeNode=elem.getAttributeNode("tabindex");
return attributeNode&&attributeNode.specified?parseInt(attributeNode.value,10):rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?0:undefined;
}}}});
boolHook={get:function(elem,name){var attrNode,property=jQuery.prop(elem,name);
return property===true||typeof property!=="boolean"&&(attrNode=elem.getAttributeNode(name))&&attrNode.nodeValue!==false?name.toLowerCase():undefined;
},set:function(elem,value,name){var propName;
if(value===false){jQuery.removeAttr(elem,name);
}else{propName=jQuery.propFix[name]||name;
if(propName in elem){elem[propName]=true;
}elem.setAttribute(name,name.toLowerCase());
}return name;
}};
if(!getSetAttribute){fixSpecified={name:true,id:true,coords:true};
nodeHook=jQuery.valHooks.button={get:function(elem,name){var ret;
ret=elem.getAttributeNode(name);
return ret&&(fixSpecified[name]?ret.value!=="":ret.specified)?ret.value:undefined;
},set:function(elem,value,name){var ret=elem.getAttributeNode(name);
if(!ret){ret=document.createAttribute(name);
elem.setAttributeNode(ret);
}return(ret.value=value+"");
}};
jQuery.each(["width","height"],function(i,name){jQuery.attrHooks[name]=jQuery.extend(jQuery.attrHooks[name],{set:function(elem,value){if(value===""){elem.setAttribute(name,"auto");
return value;
}}});
});
jQuery.attrHooks.contenteditable={get:nodeHook.get,set:function(elem,value,name){if(value===""){value="false";
}nodeHook.set(elem,value,name);
}};
}if(!jQuery.support.hrefNormalized){jQuery.each(["href","src","width","height"],function(i,name){jQuery.attrHooks[name]=jQuery.extend(jQuery.attrHooks[name],{get:function(elem){var ret=elem.getAttribute(name,2);
return ret===null?undefined:ret;
}});
});
}if(!jQuery.support.style){jQuery.attrHooks.style={get:function(elem){return elem.style.cssText.toLowerCase()||undefined;
},set:function(elem,value){return(elem.style.cssText=value+"");
}};
}if(!jQuery.support.optSelected){jQuery.propHooks.selected=jQuery.extend(jQuery.propHooks.selected,{get:function(elem){var parent=elem.parentNode;
if(parent){parent.selectedIndex;
if(parent.parentNode){parent.parentNode.selectedIndex;
}}return null;
}});
}if(!jQuery.support.enctype){jQuery.propFix.enctype="encoding";
}if(!jQuery.support.checkOn){jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]={get:function(elem){return elem.getAttribute("value")===null?"on":elem.value;
}};
});
}jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]=jQuery.extend(jQuery.valHooks[this],{set:function(elem,value){if(jQuery.isArray(value)){return(elem.checked=jQuery.inArray(jQuery(elem).val(),value)>=0);
}}});
});
var rformElems=/^(?:textarea|input|select)$/i,rtypenamespace=/^([^\.]*|)(?:\.(.+)|)$/,rhoverHack=/(?:^|\s)hover(\.\S+|)\b/,rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|contextmenu)|click/,rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,hoverHack=function(events){return jQuery.event.special.hover?events:events.replace(rhoverHack,"mouseenter$1 mouseleave$1");
};
jQuery.event={add:function(elem,types,handler,data,selector){var elemData,eventHandle,events,t,tns,type,namespaces,handleObj,handleObjIn,handlers,special;
if(elem.nodeType===3||elem.nodeType===8||!types||!handler||!(elemData=jQuery._data(elem))){return ;
}if(handler.handler){handleObjIn=handler;
handler=handleObjIn.handler;
selector=handleObjIn.selector;
}if(!handler.guid){handler.guid=jQuery.guid++;
}events=elemData.events;
if(!events){elemData.events=events={};
}eventHandle=elemData.handle;
if(!eventHandle){elemData.handle=eventHandle=function(e){return typeof jQuery!=="undefined"&&(!e||jQuery.event.triggered!==e.type)?jQuery.event.dispatch.apply(eventHandle.elem,arguments):undefined;
};
eventHandle.elem=elem;
}types=jQuery.trim(hoverHack(types)).split(" ");
for(t=0;
t<types.length;
t++){tns=rtypenamespace.exec(types[t])||[];
type=tns[1];
namespaces=(tns[2]||"").split(".").sort();
special=jQuery.event.special[type]||{};
type=(selector?special.delegateType:special.bindType)||type;
special=jQuery.event.special[type]||{};
handleObj=jQuery.extend({type:type,origType:tns[1],data:data,handler:handler,guid:handler.guid,selector:selector,needsContext:selector&&jQuery.expr.match.needsContext.test(selector),namespace:namespaces.join(".")},handleObjIn);
handlers=events[type];
if(!handlers){handlers=events[type]=[];
handlers.delegateCount=0;
if(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){if(elem.addEventListener){elem.addEventListener(type,eventHandle,false);
}else{if(elem.attachEvent){elem.attachEvent("on"+type,eventHandle);
}}}}if(special.add){special.add.call(elem,handleObj);
if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid;
}}if(selector){handlers.splice(handlers.delegateCount++,0,handleObj);
}else{handlers.push(handleObj);
}jQuery.event.global[type]=true;
}elem=null;
},global:{},remove:function(elem,types,handler,selector,mappedTypes){var t,tns,type,origType,namespaces,origCount,j,events,special,eventType,handleObj,elemData=jQuery.hasData(elem)&&jQuery._data(elem);
if(!elemData||!(events=elemData.events)){return ;
}types=jQuery.trim(hoverHack(types||"")).split(" ");
for(t=0;
t<types.length;
t++){tns=rtypenamespace.exec(types[t])||[];
type=origType=tns[1];
namespaces=tns[2];
if(!type){for(type in events){jQuery.event.remove(elem,type+types[t],handler,selector,true);
}continue;
}special=jQuery.event.special[type]||{};
type=(selector?special.delegateType:special.bindType)||type;
eventType=events[type]||[];
origCount=eventType.length;
namespaces=namespaces?new RegExp("(^|\\.)"+namespaces.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;
for(j=0;
j<eventType.length;
j++){handleObj=eventType[j];
if((mappedTypes||origType===handleObj.origType)&&(!handler||handler.guid===handleObj.guid)&&(!namespaces||namespaces.test(handleObj.namespace))&&(!selector||selector===handleObj.selector||selector==="**"&&handleObj.selector)){eventType.splice(j--,1);
if(handleObj.selector){eventType.delegateCount--;
}if(special.remove){special.remove.call(elem,handleObj);
}}}if(eventType.length===0&&origCount!==eventType.length){if(!special.teardown||special.teardown.call(elem,namespaces,elemData.handle)===false){jQuery.removeEvent(elem,type,elemData.handle);
}delete events[type];
}}if(jQuery.isEmptyObject(events)){delete elemData.handle;
jQuery.removeData(elem,"events",true);
}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(event,data,elem,onlyHandlers){if(elem&&(elem.nodeType===3||elem.nodeType===8)){return ;
}var cache,exclusive,i,cur,old,ontype,special,handle,eventPath,bubbleType,type=event.type||event,namespaces=[];
if(rfocusMorph.test(type+jQuery.event.triggered)){return ;
}if(type.indexOf("!")>=0){type=type.slice(0,-1);
exclusive=true;
}if(type.indexOf(".")>=0){namespaces=type.split(".");
type=namespaces.shift();
namespaces.sort();
}if((!elem||jQuery.event.customEvent[type])&&!jQuery.event.global[type]){return ;
}event=typeof event==="object"?event[jQuery.expando]?event:new jQuery.Event(type,event):new jQuery.Event(type);
event.type=type;
event.isTrigger=true;
event.exclusive=exclusive;
event.namespace=namespaces.join(".");
event.namespace_re=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;
ontype=type.indexOf(":")<0?"on"+type:"";
if(!elem){cache=jQuery.cache;
for(i in cache){if(cache[i].events&&cache[i].events[type]){jQuery.event.trigger(event,data,cache[i].handle.elem,true);
}}return ;
}event.result=undefined;
if(!event.target){event.target=elem;
}data=data!=null?jQuery.makeArray(data):[];
data.unshift(event);
special=jQuery.event.special[type]||{};
if(special.trigger&&special.trigger.apply(elem,data)===false){return ;
}eventPath=[[elem,special.bindType||type]];
if(!onlyHandlers&&!special.noBubble&&!jQuery.isWindow(elem)){bubbleType=special.delegateType||type;
cur=rfocusMorph.test(bubbleType+type)?elem:elem.parentNode;
for(old=elem;
cur;
cur=cur.parentNode){eventPath.push([cur,bubbleType]);
old=cur;
}if(old===(elem.ownerDocument||document)){eventPath.push([old.defaultView||old.parentWindow||window,bubbleType]);
}}for(i=0;
i<eventPath.length&&!event.isPropagationStopped();
i++){cur=eventPath[i][0];
event.type=eventPath[i][1];
handle=(jQuery._data(cur,"events")||{})[event.type]&&jQuery._data(cur,"handle");
if(handle){handle.apply(cur,data);
}handle=ontype&&cur[ontype];
if(handle&&jQuery.acceptData(cur)&&handle.apply&&handle.apply(cur,data)===false){event.preventDefault();
}}event.type=type;
if(!onlyHandlers&&!event.isDefaultPrevented()){if((!special._default||special._default.apply(elem.ownerDocument,data)===false)&&!(type==="click"&&jQuery.nodeName(elem,"a"))&&jQuery.acceptData(elem)){if(ontype&&elem[type]&&((type!=="focus"&&type!=="blur")||event.target.offsetWidth!==0)&&!jQuery.isWindow(elem)){old=elem[ontype];
if(old){elem[ontype]=null;
}jQuery.event.triggered=type;
elem[type]();
jQuery.event.triggered=undefined;
if(old){elem[ontype]=old;
}}}}return event.result;
},dispatch:function(event){event=jQuery.event.fix(event||window.event);
var i,j,cur,ret,selMatch,matched,matches,handleObj,sel,related,handlers=((jQuery._data(this,"events")||{})[event.type]||[]),delegateCount=handlers.delegateCount,args=core_slice.call(arguments),run_all=!event.exclusive&&!event.namespace,special=jQuery.event.special[event.type]||{},handlerQueue=[];
args[0]=event;
event.delegateTarget=this;
if(special.preDispatch&&special.preDispatch.call(this,event)===false){return ;
}if(delegateCount&&!(event.button&&event.type==="click")){for(cur=event.target;
cur!=this;
cur=cur.parentNode||this){if(cur.disabled!==true||event.type!=="click"){selMatch={};
matches=[];
for(i=0;
i<delegateCount;
i++){handleObj=handlers[i];
sel=handleObj.selector;
if(selMatch[sel]===undefined){selMatch[sel]=handleObj.needsContext?jQuery(sel,this).index(cur)>=0:jQuery.find(sel,this,null,[cur]).length;
}if(selMatch[sel]){matches.push(handleObj);
}}if(matches.length){handlerQueue.push({elem:cur,matches:matches});
}}}}if(handlers.length>delegateCount){handlerQueue.push({elem:this,matches:handlers.slice(delegateCount)});
}for(i=0;
i<handlerQueue.length&&!event.isPropagationStopped();
i++){matched=handlerQueue[i];
event.currentTarget=matched.elem;
for(j=0;
j<matched.matches.length&&!event.isImmediatePropagationStopped();
j++){handleObj=matched.matches[j];
if(run_all||(!event.namespace&&!handleObj.namespace)||event.namespace_re&&event.namespace_re.test(handleObj.namespace)){event.data=handleObj.data;
event.handleObj=handleObj;
ret=((jQuery.event.special[handleObj.origType]||{}).handle||handleObj.handler).apply(matched.elem,args);
if(ret!==undefined){event.result=ret;
if(ret===false){event.preventDefault();
event.stopPropagation();
}}}}}if(special.postDispatch){special.postDispatch.call(this,event);
}return event.result;
},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(event,original){if(event.which==null){event.which=original.charCode!=null?original.charCode:original.keyCode;
}return event;
}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(event,original){var eventDoc,doc,body,button=original.button,fromElement=original.fromElement;
if(event.pageX==null&&original.clientX!=null){eventDoc=event.target.ownerDocument||document;
doc=eventDoc.documentElement;
body=eventDoc.body;
event.pageX=original.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc&&doc.clientLeft||body&&body.clientLeft||0);
event.pageY=original.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc&&doc.clientTop||body&&body.clientTop||0);
}if(!event.relatedTarget&&fromElement){event.relatedTarget=fromElement===event.target?original.toElement:fromElement;
}if(!event.which&&button!==undefined){event.which=(button&1?1:(button&2?3:(button&4?2:0)));
}return event;
}},fix:function(event){if(event[jQuery.expando]){return event;
}var i,prop,originalEvent=event,fixHook=jQuery.event.fixHooks[event.type]||{},copy=fixHook.props?this.props.concat(fixHook.props):this.props;
event=jQuery.Event(originalEvent);
for(i=copy.length;
i;
){prop=copy[--i];
event[prop]=originalEvent[prop];
}if(!event.target){event.target=originalEvent.srcElement||document;
}if(event.target.nodeType===3){event.target=event.target.parentNode;
}event.metaKey=!!event.metaKey;
return fixHook.filter?fixHook.filter(event,originalEvent):event;
},special:{load:{noBubble:true},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(data,namespaces,eventHandle){if(jQuery.isWindow(this)){this.onbeforeunload=eventHandle;
}},teardown:function(namespaces,eventHandle){if(this.onbeforeunload===eventHandle){this.onbeforeunload=null;
}}}},simulate:function(type,elem,event,bubble){var e=jQuery.extend(new jQuery.Event(),event,{type:type,isSimulated:true,originalEvent:{}});
if(bubble){jQuery.event.trigger(e,null,elem);
}else{jQuery.event.dispatch.call(elem,e);
}if(e.isDefaultPrevented()){event.preventDefault();
}}};
jQuery.event.handle=jQuery.event.dispatch;
jQuery.removeEvent=document.removeEventListener?function(elem,type,handle){if(elem.removeEventListener){elem.removeEventListener(type,handle,false);
}}:function(elem,type,handle){var name="on"+type;
if(elem.detachEvent){if(typeof elem[name]==="undefined"){elem[name]=null;
}elem.detachEvent(name,handle);
}};
jQuery.Event=function(src,props){if(!(this instanceof jQuery.Event)){return new jQuery.Event(src,props);
}if(src&&src.type){this.originalEvent=src;
this.type=src.type;
this.isDefaultPrevented=(src.defaultPrevented||src.returnValue===false||src.getPreventDefault&&src.getPreventDefault())?returnTrue:returnFalse;
}else{this.type=src;
}if(props){jQuery.extend(this,props);
}this.timeStamp=src&&src.timeStamp||jQuery.now();
this[jQuery.expando]=true;
};
function returnFalse(){return false;
}function returnTrue(){return true;
}jQuery.Event.prototype={preventDefault:function(){this.isDefaultPrevented=returnTrue;
var e=this.originalEvent;
if(!e){return ;
}if(e.preventDefault){e.preventDefault();
}else{e.returnValue=false;
}},stopPropagation:function(){this.isPropagationStopped=returnTrue;
var e=this.originalEvent;
if(!e){return ;
}if(e.stopPropagation){e.stopPropagation();
}e.cancelBubble=true;
},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=returnTrue;
this.stopPropagation();
},isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse};
jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(orig,fix){jQuery.event.special[orig]={delegateType:fix,bindType:fix,handle:function(event){var ret,target=this,related=event.relatedTarget,handleObj=event.handleObj,selector=handleObj.selector;
if(!related||(related!==target&&!jQuery.contains(target,related))){event.type=handleObj.origType;
ret=handleObj.handler.apply(this,arguments);
event.type=fix;
}return ret;
}};
});
if(!jQuery.support.submitBubbles){jQuery.event.special.submit={setup:function(){if(jQuery.nodeName(this,"form")){return false;
}jQuery.event.add(this,"click._submit keypress._submit",function(e){var elem=e.target,form=jQuery.nodeName(elem,"input")||jQuery.nodeName(elem,"button")?elem.form:undefined;
if(form&&!jQuery._data(form,"_submit_attached")){jQuery.event.add(form,"submit._submit",function(event){event._submit_bubble=true;
});
jQuery._data(form,"_submit_attached",true);
}});
},postDispatch:function(event){if(event._submit_bubble){delete event._submit_bubble;
if(this.parentNode&&!event.isTrigger){jQuery.event.simulate("submit",this.parentNode,event,true);
}}},teardown:function(){if(jQuery.nodeName(this,"form")){return false;
}jQuery.event.remove(this,"._submit");
}};
}if(!jQuery.support.changeBubbles){jQuery.event.special.change={setup:function(){if(rformElems.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){jQuery.event.add(this,"propertychange._change",function(event){if(event.originalEvent.propertyName==="checked"){this._just_changed=true;
}});
jQuery.event.add(this,"click._change",function(event){if(this._just_changed&&!event.isTrigger){this._just_changed=false;
}jQuery.event.simulate("change",this,event,true);
});
}return false;
}jQuery.event.add(this,"beforeactivate._change",function(e){var elem=e.target;
if(rformElems.test(elem.nodeName)&&!jQuery._data(elem,"_change_attached")){jQuery.event.add(elem,"change._change",function(event){if(this.parentNode&&!event.isSimulated&&!event.isTrigger){jQuery.event.simulate("change",this.parentNode,event,true);
}});
jQuery._data(elem,"_change_attached",true);
}});
},handle:function(event){var elem=event.target;
if(this!==elem||event.isSimulated||event.isTrigger||(elem.type!=="radio"&&elem.type!=="checkbox")){return event.handleObj.handler.apply(this,arguments);
}},teardown:function(){jQuery.event.remove(this,"._change");
return !rformElems.test(this.nodeName);
}};
}if(!jQuery.support.focusinBubbles){jQuery.each({focus:"focusin",blur:"focusout"},function(orig,fix){var attaches=0,handler=function(event){jQuery.event.simulate(fix,event.target,jQuery.event.fix(event),true);
};
jQuery.event.special[fix]={setup:function(){if(attaches++===0){document.addEventListener(orig,handler,true);
}},teardown:function(){if(--attaches===0){document.removeEventListener(orig,handler,true);
}}};
});
}jQuery.fn.extend({on:function(types,selector,data,fn,one){var origFn,type;
if(typeof types==="object"){if(typeof selector!=="string"){data=data||selector;
selector=undefined;
}for(type in types){this.on(type,selector,data,types[type],one);
}return this;
}if(data==null&&fn==null){fn=selector;
data=selector=undefined;
}else{if(fn==null){if(typeof selector==="string"){fn=data;
data=undefined;
}else{fn=data;
data=selector;
selector=undefined;
}}}if(fn===false){fn=returnFalse;
}else{if(!fn){return this;
}}if(one===1){origFn=fn;
fn=function(event){jQuery().off(event);
return origFn.apply(this,arguments);
};
fn.guid=origFn.guid||(origFn.guid=jQuery.guid++);
}return this.each(function(){jQuery.event.add(this,types,fn,data,selector);
});
},one:function(types,selector,data,fn){return this.on(types,selector,data,fn,1);
},off:function(types,selector,fn){var handleObj,type;
if(types&&types.preventDefault&&types.handleObj){handleObj=types.handleObj;
jQuery(types.delegateTarget).off(handleObj.namespace?handleObj.origType+"."+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler);
return this;
}if(typeof types==="object"){for(type in types){this.off(type,selector,types[type]);
}return this;
}if(selector===false||typeof selector==="function"){fn=selector;
selector=undefined;
}if(fn===false){fn=returnFalse;
}return this.each(function(){jQuery.event.remove(this,types,fn,selector);
});
},bind:function(types,data,fn){return this.on(types,null,data,fn);
},unbind:function(types,fn){return this.off(types,null,fn);
},live:function(types,data,fn){jQuery(this.context).on(types,this.selector,data,fn);
return this;
},die:function(types,fn){jQuery(this.context).off(types,this.selector||"**",fn);
return this;
},delegate:function(selector,types,data,fn){return this.on(types,selector,data,fn);
},undelegate:function(selector,types,fn){return arguments.length===1?this.off(selector,"**"):this.off(types,selector||"**",fn);
},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this);
});
},triggerHandler:function(type,data){if(this[0]){return jQuery.event.trigger(type,data,this[0],true);
}},toggle:function(fn){var args=arguments,guid=fn.guid||jQuery.guid++,i=0,toggler=function(event){var lastToggle=(jQuery._data(this,"lastToggle"+fn.guid)||0)%i;
jQuery._data(this,"lastToggle"+fn.guid,lastToggle+1);
event.preventDefault();
return args[lastToggle].apply(this,arguments)||false;
};
toggler.guid=guid;
while(i<args.length){args[i++].guid=guid;
}return this.click(toggler);
},hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver);
}});
jQuery.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 contextmenu").split(" "),function(i,name){jQuery.fn[name]=function(data,fn){if(fn==null){fn=data;
data=null;
}return arguments.length>0?this.on(name,null,data,fn):this.trigger(name);
};
if(rkeyEvent.test(name)){jQuery.event.fixHooks[name]=jQuery.event.keyHooks;
}if(rmouseEvent.test(name)){jQuery.event.fixHooks[name]=jQuery.event.mouseHooks;
}});
/*
 * Sizzle CSS Selector Engine
 * Copyright 2012 jQuery Foundation and other contributors
 * Released under the MIT license
 * http://sizzlejs.com/
 */
(function(window,undefined){var cachedruns,assertGetIdNotName,Expr,getText,isXML,contains,compile,sortOrder,hasDuplicate,outermostContext,baseHasDuplicate=true,strundefined="undefined",expando=("sizcache"+Math.random()).replace(".",""),Token=String,document=window.document,docElem=document.documentElement,dirruns=0,done=0,pop=[].pop,push=[].push,slice=[].slice,indexOf=[].indexOf||function(elem){var i=0,len=this.length;
for(;
i<len;
i++){if(this[i]===elem){return i;
}}return -1;
},markFunction=function(fn,value){fn[expando]=value==null||value;
return fn;
},createCache=function(){var cache={},keys=[];
return markFunction(function(key,value){if(keys.push(key)>Expr.cacheLength){delete cache[keys.shift()];
}return(cache[key+" "]=value);
},cache);
},classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),whitespace="[\\x20\\t\\r\\n\\f]",characterEncoding="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",identifier=characterEncoding.replace("w","w#"),operators="([*^$|!~]?=)",attributes="\\["+whitespace+"*("+characterEncoding+")"+whitespace+"*(?:"+operators+whitespace+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+identifier+")|)|)"+whitespace+"*\\]",pseudos=":("+characterEncoding+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+attributes+")|[^:]|\\\\.)*|.*))\\)|)",pos=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)",rtrim=new RegExp("^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$","g"),rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),rcombinators=new RegExp("^"+whitespace+"*([\\x20\\t\\r\\n\\f>+~])"+whitespace+"*"),rpseudo=new RegExp(pseudos),rquickExpr=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,rnot=/^:not/,rsibling=/[\x20\t\r\n\f]*[+~]/,rendsWithNot=/:not\($/,rheader=/h\d/i,rinputs=/input|select|textarea|button/i,rbackslash=/\\(?!\\)/g,matchExpr={ID:new RegExp("^#("+characterEncoding+")"),CLASS:new RegExp("^\\.("+characterEncoding+")"),NAME:new RegExp("^\\[name=['\"]?("+characterEncoding+")['\"]?\\]"),TAG:new RegExp("^("+characterEncoding.replace("w","w*")+")"),ATTR:new RegExp("^"+attributes),PSEUDO:new RegExp("^"+pseudos),POS:new RegExp(pos,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),needsContext:new RegExp("^"+whitespace+"*[>+~]|"+pos,"i")},assert=function(fn){var div=document.createElement("div");
try{return fn(div);
}catch(e){return false;
}finally{div=null;
}},assertTagNameNoComments=assert(function(div){div.appendChild(document.createComment(""));
return !div.getElementsByTagName("*").length;
}),assertHrefNotNormalized=assert(function(div){div.innerHTML="<a href='#'></a>";
return div.firstChild&&typeof div.firstChild.getAttribute!==strundefined&&div.firstChild.getAttribute("href")==="#";
}),assertAttributes=assert(function(div){div.innerHTML="<select></select>";
var type=typeof div.lastChild.getAttribute("multiple");
return type!=="boolean"&&type!=="string";
}),assertUsableClassName=assert(function(div){div.innerHTML="<div class='hidden e'></div><div class='hidden'></div>";
if(!div.getElementsByClassName||!div.getElementsByClassName("e").length){return false;
}div.lastChild.className="e";
return div.getElementsByClassName("e").length===2;
}),assertUsableName=assert(function(div){div.id=expando+0;
div.innerHTML="<a name='"+expando+"'></a><div name='"+expando+"'></div>";
docElem.insertBefore(div,docElem.firstChild);
var pass=document.getElementsByName&&document.getElementsByName(expando).length===2+document.getElementsByName(expando+0).length;
assertGetIdNotName=!document.getElementById(expando);
docElem.removeChild(div);
return pass;
});
try{slice.call(docElem.childNodes,0)[0].nodeType;
}catch(e){slice=function(i){var elem,results=[];
for(;
(elem=this[i]);
i++){results.push(elem);
}return results;
};
}function Sizzle(selector,context,results,seed){results=results||[];
context=context||document;
var match,elem,xml,m,nodeType=context.nodeType;
if(!selector||typeof selector!=="string"){return results;
}if(nodeType!==1&&nodeType!==9){return[];
}xml=isXML(context);
if(!xml&&!seed){if((match=rquickExpr.exec(selector))){if((m=match[1])){if(nodeType===9){elem=context.getElementById(m);
if(elem&&elem.parentNode){if(elem.id===m){results.push(elem);
return results;
}}else{return results;
}}else{if(context.ownerDocument&&(elem=context.ownerDocument.getElementById(m))&&contains(context,elem)&&elem.id===m){results.push(elem);
return results;
}}}else{if(match[2]){push.apply(results,slice.call(context.getElementsByTagName(selector),0));
return results;
}else{if((m=match[3])&&assertUsableClassName&&context.getElementsByClassName){push.apply(results,slice.call(context.getElementsByClassName(m),0));
return results;
}}}}}return select(selector.replace(rtrim,"$1"),context,results,seed,xml);
}Sizzle.matches=function(expr,elements){return Sizzle(expr,null,null,elements);
};
Sizzle.matchesSelector=function(elem,expr){return Sizzle(expr,null,null,[elem]).length>0;
};
function createInputPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();
return name==="input"&&elem.type===type;
};
}function createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();
return(name==="input"||name==="button")&&elem.type===type;
};
}function createPositionalPseudo(fn){return markFunction(function(argument){argument=+argument;
return markFunction(function(seed,matches){var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;
while(i--){if(seed[(j=matchIndexes[i])]){seed[j]=!(matches[j]=seed[j]);
}}});
});
}getText=Sizzle.getText=function(elem){var node,ret="",i=0,nodeType=elem.nodeType;
if(nodeType){if(nodeType===1||nodeType===9||nodeType===11){if(typeof elem.textContent==="string"){return elem.textContent;
}else{for(elem=elem.firstChild;
elem;
elem=elem.nextSibling){ret+=getText(elem);
}}}else{if(nodeType===3||nodeType===4){return elem.nodeValue;
}}}else{for(;
(node=elem[i]);
i++){ret+=getText(node);
}}return ret;
};
isXML=Sizzle.isXML=function(elem){var documentElement=elem&&(elem.ownerDocument||elem).documentElement;
return documentElement?documentElement.nodeName!=="HTML":false;
};
contains=Sizzle.contains=docElem.contains?function(a,b){var adown=a.nodeType===9?a.documentElement:a,bup=b&&b.parentNode;
return a===bup||!!(bup&&bup.nodeType===1&&adown.contains&&adown.contains(bup));
}:docElem.compareDocumentPosition?function(a,b){return b&&!!(a.compareDocumentPosition(b)&16);
}:function(a,b){while((b=b.parentNode)){if(b===a){return true;
}}return false;
};
Sizzle.attr=function(elem,name){var val,xml=isXML(elem);
if(!xml){name=name.toLowerCase();
}if((val=Expr.attrHandle[name])){return val(elem);
}if(xml||assertAttributes){return elem.getAttribute(name);
}val=elem.getAttributeNode(name);
return val?typeof elem[name]==="boolean"?elem[name]?name:null:val.specified?val.value:null:null;
};
Expr=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:assertHrefNotNormalized?{}:{href:function(elem){return elem.getAttribute("href",2);
},type:function(elem){return elem.getAttribute("type");
}},find:{ID:assertGetIdNotName?function(id,context,xml){if(typeof context.getElementById!==strundefined&&!xml){var m=context.getElementById(id);
return m&&m.parentNode?[m]:[];
}}:function(id,context,xml){if(typeof context.getElementById!==strundefined&&!xml){var m=context.getElementById(id);
return m?m.id===id||typeof m.getAttributeNode!==strundefined&&m.getAttributeNode("id").value===id?[m]:undefined:[];
}},TAG:assertTagNameNoComments?function(tag,context){if(typeof context.getElementsByTagName!==strundefined){return context.getElementsByTagName(tag);
}}:function(tag,context){var results=context.getElementsByTagName(tag);
if(tag==="*"){var elem,tmp=[],i=0;
for(;
(elem=results[i]);
i++){if(elem.nodeType===1){tmp.push(elem);
}}return tmp;
}return results;
},NAME:assertUsableName&&function(tag,context){if(typeof context.getElementsByName!==strundefined){return context.getElementsByName(name);
}},CLASS:assertUsableClassName&&function(className,context,xml){if(typeof context.getElementsByClassName!==strundefined&&!xml){return context.getElementsByClassName(className);
}}},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(match){match[1]=match[1].replace(rbackslash,"");
match[3]=(match[4]||match[5]||"").replace(rbackslash,"");
if(match[2]==="~="){match[3]=" "+match[3]+" ";
}return match.slice(0,4);
},CHILD:function(match){match[1]=match[1].toLowerCase();
if(match[1]==="nth"){if(!match[2]){Sizzle.error(match[0]);
}match[3]=+(match[3]?match[4]+(match[5]||1):2*(match[2]==="even"||match[2]==="odd"));
match[4]=+((match[6]+match[7])||match[2]==="odd");
}else{if(match[2]){Sizzle.error(match[0]);
}}return match;
},PSEUDO:function(match){var unquoted,excess;
if(matchExpr.CHILD.test(match[0])){return null;
}if(match[3]){match[2]=match[3];
}else{if((unquoted=match[4])){if(rpseudo.test(unquoted)&&(excess=tokenize(unquoted,true))&&(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){unquoted=unquoted.slice(0,excess);
match[0]=match[0].slice(0,excess);
}match[2]=unquoted;
}}return match.slice(0,3);
}},filter:{ID:assertGetIdNotName?function(id){id=id.replace(rbackslash,"");
return function(elem){return elem.getAttribute("id")===id;
};
}:function(id){id=id.replace(rbackslash,"");
return function(elem){var node=typeof elem.getAttributeNode!==strundefined&&elem.getAttributeNode("id");
return node&&node.value===id;
};
},TAG:function(nodeName){if(nodeName==="*"){return function(){return true;
};
}nodeName=nodeName.replace(rbackslash,"").toLowerCase();
return function(elem){return elem.nodeName&&elem.nodeName.toLowerCase()===nodeName;
};
},CLASS:function(className){var pattern=classCache[expando][className+" "];
return pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"|$)"))&&classCache(className,function(elem){return pattern.test(elem.className||(typeof elem.getAttribute!==strundefined&&elem.getAttribute("class"))||"");
});
},ATTR:function(name,operator,check){return function(elem,context){var result=Sizzle.attr(elem,name);
if(result==null){return operator==="!=";
}if(!operator){return true;
}result+="";
return operator==="="?result===check:operator==="!="?result!==check:operator==="^="?check&&result.indexOf(check)===0:operator==="*="?check&&result.indexOf(check)>-1:operator==="$="?check&&result.substr(result.length-check.length)===check:operator==="~="?(" "+result+" ").indexOf(check)>-1:operator==="|="?result===check||result.substr(0,check.length+1)===check+"-":false;
};
},CHILD:function(type,argument,first,last){if(type==="nth"){return function(elem){var node,diff,parent=elem.parentNode;
if(first===1&&last===0){return true;
}if(parent){diff=0;
for(node=parent.firstChild;
node;
node=node.nextSibling){if(node.nodeType===1){diff++;
if(elem===node){break;
}}}}diff-=last;
return diff===first||(diff%first===0&&diff/first>=0);
};
}return function(elem){var node=elem;
switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return false;
}}if(type==="first"){return true;
}node=elem;
case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false;
}}return true;
}};
},PSEUDO:function(pseudo,argument){var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||Sizzle.error("unsupported pseudo: "+pseudo);
if(fn[expando]){return fn(argument);
}if(fn.length>1){args=[pseudo,pseudo,"",argument];
return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction(function(seed,matches){var idx,matched=fn(seed,argument),i=matched.length;
while(i--){idx=indexOf.call(seed,matched[i]);
seed[idx]=!(matches[idx]=matched[i]);
}}):function(elem){return fn(elem,0,args);
};
}return fn;
}},pseudos:{not:markFunction(function(selector){var input=[],results=[],matcher=compile(selector.replace(rtrim,"$1"));
return matcher[expando]?markFunction(function(seed,matches,context,xml){var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;
while(i--){if((elem=unmatched[i])){seed[i]=!(matches[i]=elem);
}}}):function(elem,context,xml){input[0]=elem;
matcher(input,null,xml,results);
return !results.pop();
};
}),has:markFunction(function(selector){return function(elem){return Sizzle(selector,elem).length>0;
};
}),contains:markFunction(function(text){return function(elem){return(elem.textContent||elem.innerText||getText(elem)).indexOf(text)>-1;
};
}),enabled:function(elem){return elem.disabled===false;
},disabled:function(elem){return elem.disabled===true;
},checked:function(elem){var nodeName=elem.nodeName.toLowerCase();
return(nodeName==="input"&&!!elem.checked)||(nodeName==="option"&&!!elem.selected);
},selected:function(elem){if(elem.parentNode){elem.parentNode.selectedIndex;
}return elem.selected===true;
},parent:function(elem){return !Expr.pseudos.empty(elem);
},empty:function(elem){var nodeType;
elem=elem.firstChild;
while(elem){if(elem.nodeName>"@"||(nodeType=elem.nodeType)===3||nodeType===4){return false;
}elem=elem.nextSibling;
}return true;
},header:function(elem){return rheader.test(elem.nodeName);
},text:function(elem){var type,attr;
return elem.nodeName.toLowerCase()==="input"&&(type=elem.type)==="text"&&((attr=elem.getAttribute("type"))==null||attr.toLowerCase()===type);
},radio:createInputPseudo("radio"),checkbox:createInputPseudo("checkbox"),file:createInputPseudo("file"),password:createInputPseudo("password"),image:createInputPseudo("image"),submit:createButtonPseudo("submit"),reset:createButtonPseudo("reset"),button:function(elem){var name=elem.nodeName.toLowerCase();
return name==="input"&&elem.type==="button"||name==="button";
},input:function(elem){return rinputs.test(elem.nodeName);
},focus:function(elem){var doc=elem.ownerDocument;
return elem===doc.activeElement&&(!doc.hasFocus||doc.hasFocus())&&!!(elem.type||elem.href||~elem.tabIndex);
},active:function(elem){return elem===elem.ownerDocument.activeElement;
},first:createPositionalPseudo(function(){return[0];
}),last:createPositionalPseudo(function(matchIndexes,length){return[length-1];
}),eq:createPositionalPseudo(function(matchIndexes,length,argument){return[argument<0?argument+length:argument];
}),even:createPositionalPseudo(function(matchIndexes,length){for(var i=0;
i<length;
i+=2){matchIndexes.push(i);
}return matchIndexes;
}),odd:createPositionalPseudo(function(matchIndexes,length){for(var i=1;
i<length;
i+=2){matchIndexes.push(i);
}return matchIndexes;
}),lt:createPositionalPseudo(function(matchIndexes,length,argument){for(var i=argument<0?argument+length:argument;
--i>=0;
){matchIndexes.push(i);
}return matchIndexes;
}),gt:createPositionalPseudo(function(matchIndexes,length,argument){for(var i=argument<0?argument+length:argument;
++i<length;
){matchIndexes.push(i);
}return matchIndexes;
})}};
function siblingCheck(a,b,ret){if(a===b){return ret;
}var cur=a.nextSibling;
while(cur){if(cur===b){return -1;
}cur=cur.nextSibling;
}return 1;
}sortOrder=docElem.compareDocumentPosition?function(a,b){if(a===b){hasDuplicate=true;
return 0;
}return(!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition:a.compareDocumentPosition(b)&4)?-1:1;
}:function(a,b){if(a===b){hasDuplicate=true;
return 0;
}else{if(a.sourceIndex&&b.sourceIndex){return a.sourceIndex-b.sourceIndex;
}}var al,bl,ap=[],bp=[],aup=a.parentNode,bup=b.parentNode,cur=aup;
if(aup===bup){return siblingCheck(a,b);
}else{if(!aup){return -1;
}else{if(!bup){return 1;
}}}while(cur){ap.unshift(cur);
cur=cur.parentNode;
}cur=bup;
while(cur){bp.unshift(cur);
cur=cur.parentNode;
}al=ap.length;
bl=bp.length;
for(var i=0;
i<al&&i<bl;
i++){if(ap[i]!==bp[i]){return siblingCheck(ap[i],bp[i]);
}}return i===al?siblingCheck(a,bp[i],-1):siblingCheck(ap[i],b,1);
};
[0,0].sort(sortOrder);
baseHasDuplicate=!hasDuplicate;
Sizzle.uniqueSort=function(results){var elem,duplicates=[],i=1,j=0;
hasDuplicate=baseHasDuplicate;
results.sort(sortOrder);
if(hasDuplicate){for(;
(elem=results[i]);
i++){if(elem===results[i-1]){j=duplicates.push(i);
}}while(j--){results.splice(duplicates[j],1);
}}return results;
};
Sizzle.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg);
};
function tokenize(selector,parseOnly){var matched,match,tokens,type,soFar,groups,preFilters,cached=tokenCache[expando][selector+" "];
if(cached){return parseOnly?0:cached.slice(0);
}soFar=selector;
groups=[];
preFilters=Expr.preFilter;
while(soFar){if(!matched||(match=rcomma.exec(soFar))){if(match){soFar=soFar.slice(match[0].length)||soFar;
}groups.push(tokens=[]);
}matched=false;
if((match=rcombinators.exec(soFar))){tokens.push(matched=new Token(match.shift()));
soFar=soFar.slice(matched.length);
matched.type=match[0].replace(rtrim," ");
}for(type in Expr.filter){if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]||(match=preFilters[type](match)))){tokens.push(matched=new Token(match.shift()));
soFar=soFar.slice(matched.length);
matched.type=type;
matched.matches=match;
}}if(!matched){break;
}}return parseOnly?soFar.length:soFar?Sizzle.error(selector):tokenCache(selector,groups).slice(0);
}function addCombinator(matcher,combinator,base){var dir=combinator.dir,checkNonElements=base&&combinator.dir==="parentNode",doneName=done++;
return combinator.first?function(elem,context,xml){while((elem=elem[dir])){if(checkNonElements||elem.nodeType===1){return matcher(elem,context,xml);
}}}:function(elem,context,xml){if(!xml){var cache,dirkey=dirruns+" "+doneName+" ",cachedkey=dirkey+cachedruns;
while((elem=elem[dir])){if(checkNonElements||elem.nodeType===1){if((cache=elem[expando])===cachedkey){return elem.sizset;
}else{if(typeof cache==="string"&&cache.indexOf(dirkey)===0){if(elem.sizset){return elem;
}}else{elem[expando]=cachedkey;
if(matcher(elem,context,xml)){elem.sizset=true;
return elem;
}elem.sizset=false;
}}}}}else{while((elem=elem[dir])){if(checkNonElements||elem.nodeType===1){if(matcher(elem,context,xml)){return elem;
}}}}};
}function elementMatcher(matchers){return matchers.length>1?function(elem,context,xml){var i=matchers.length;
while(i--){if(!matchers[i](elem,context,xml)){return false;
}}return true;
}:matchers[0];
}function condense(unmatched,map,filter,context,xml){var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=map!=null;
for(;
i<len;
i++){if((elem=unmatched[i])){if(!filter||filter(elem,context,xml)){newUnmatched.push(elem);
if(mapped){map.push(i);
}}}}return newUnmatched;
}function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){if(postFilter&&!postFilter[expando]){postFilter=setMatcher(postFilter);
}if(postFinder&&!postFinder[expando]){postFinder=setMatcher(postFinder,postSelector);
}return markFunction(function(seed,results,context,xml){var temp,i,elem,preMap=[],postMap=[],preexisting=results.length,elems=seed||multipleContexts(selector||"*",context.nodeType?[context]:context,[]),matcherIn=preFilter&&(seed||!selector)?condense(elems,preMap,preFilter,context,xml):elems,matcherOut=matcher?postFinder||(seed?preFilter:preexisting||postFilter)?[]:results:matcherIn;
if(matcher){matcher(matcherIn,matcherOut,context,xml);
}if(postFilter){temp=condense(matcherOut,postMap);
postFilter(temp,[],context,xml);
i=temp.length;
while(i--){if((elem=temp[i])){matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem);
}}}if(seed){if(postFinder||preFilter){if(postFinder){temp=[];
i=matcherOut.length;
while(i--){if((elem=matcherOut[i])){temp.push((matcherIn[i]=elem));
}}postFinder(null,(matcherOut=[]),temp,xml);
}i=matcherOut.length;
while(i--){if((elem=matcherOut[i])&&(temp=postFinder?indexOf.call(seed,elem):preMap[i])>-1){seed[temp]=!(results[temp]=elem);
}}}}else{matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut);
if(postFinder){postFinder(null,results,matcherOut,xml);
}else{push.apply(results,matcherOut);
}}});
}function matcherFromTokens(tokens){var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,matchContext=addCombinator(function(elem){return elem===checkContext;
},implicitRelative,true),matchAnyContext=addCombinator(function(elem){return indexOf.call(checkContext,elem)>-1;
},implicitRelative,true),matchers=[function(elem,context,xml){return(!leadingRelative&&(xml||context!==outermostContext))||((checkContext=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,context,xml));
}];
for(;
i<len;
i++){if((matcher=Expr.relative[tokens[i].type])){matchers=[addCombinator(elementMatcher(matchers),matcher)];
}else{matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches);
if(matcher[expando]){j=++i;
for(;
j<len;
j++){if(Expr.relative[tokens[j].type]){break;
}}return setMatcher(i>1&&elementMatcher(matchers),i>1&&tokens.slice(0,i-1).join("").replace(rtrim,"$1"),matcher,i<j&&matcherFromTokens(tokens.slice(i,j)),j<len&&matcherFromTokens((tokens=tokens.slice(j))),j<len&&tokens.join(""));
}matchers.push(matcher);
}}return elementMatcher(matchers);
}function matcherFromGroupMatchers(elementMatchers,setMatchers){var bySet=setMatchers.length>0,byElement=elementMatchers.length>0,superMatcher=function(seed,context,xml,results,expandContext){var elem,j,matcher,setMatched=[],matchedCount=0,i="0",unmatched=seed&&[],outermost=expandContext!=null,contextBackup=outermostContext,elems=seed||byElement&&Expr.find.TAG("*",expandContext&&context.parentNode||context),dirrunsUnique=(dirruns+=contextBackup==null?1:Math.E);
if(outermost){outermostContext=context!==document&&context;
cachedruns=superMatcher.el;
}for(;
(elem=elems[i])!=null;
i++){if(byElement&&elem){for(j=0;
(matcher=elementMatchers[j]);
j++){if(matcher(elem,context,xml)){results.push(elem);
break;
}}if(outermost){dirruns=dirrunsUnique;
cachedruns=++superMatcher.el;
}}if(bySet){if((elem=!matcher&&elem)){matchedCount--;
}if(seed){unmatched.push(elem);
}}}matchedCount+=i;
if(bySet&&i!==matchedCount){for(j=0;
(matcher=setMatchers[j]);
j++){matcher(unmatched,setMatched,context,xml);
}if(seed){if(matchedCount>0){while(i--){if(!(unmatched[i]||setMatched[i])){setMatched[i]=pop.call(results);
}}}setMatched=condense(setMatched);
}push.apply(results,setMatched);
if(outermost&&!seed&&setMatched.length>0&&(matchedCount+setMatchers.length)>1){Sizzle.uniqueSort(results);
}}if(outermost){dirruns=dirrunsUnique;
outermostContext=contextBackup;
}return unmatched;
};
superMatcher.el=0;
return bySet?markFunction(superMatcher):superMatcher;
}compile=Sizzle.compile=function(selector,group){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[expando][selector+" "];
if(!cached){if(!group){group=tokenize(selector);
}i=group.length;
while(i--){cached=matcherFromTokens(group[i]);
if(cached[expando]){setMatchers.push(cached);
}else{elementMatchers.push(cached);
}}cached=compilerCache(selector,matcherFromGroupMatchers(elementMatchers,setMatchers));
}return cached;
};
function multipleContexts(selector,contexts,results){var i=0,len=contexts.length;
for(;
i<len;
i++){Sizzle(selector,contexts[i],results);
}return results;
}function select(selector,context,results,seed,xml){var i,tokens,token,type,find,match=tokenize(selector),j=match.length;
if(!seed){if(match.length===1){tokens=match[0]=match[0].slice(0);
if(tokens.length>2&&(token=tokens[0]).type==="ID"&&context.nodeType===9&&!xml&&Expr.relative[tokens[1].type]){context=Expr.find.ID(token.matches[0].replace(rbackslash,""),context,xml)[0];
if(!context){return results;
}selector=selector.slice(tokens.shift().length);
}for(i=matchExpr.POS.test(selector)?-1:tokens.length-1;
i>=0;
i--){token=tokens[i];
if(Expr.relative[(type=token.type)]){break;
}if((find=Expr.find[type])){if((seed=find(token.matches[0].replace(rbackslash,""),rsibling.test(tokens[0].type)&&context.parentNode||context,xml))){tokens.splice(i,1);
selector=seed.length&&tokens.join("");
if(!selector){push.apply(results,slice.call(seed,0));
return results;
}break;
}}}}}compile(selector,match)(seed,context,xml,results,rsibling.test(selector));
return results;
}if(document.querySelectorAll){(function(){var disconnectedMatch,oldSelect=select,rescape=/'|\\/g,rattributeQuotes=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,rbuggyQSA=[":focus"],rbuggyMatches=[":active"],matches=docElem.matchesSelector||docElem.mozMatchesSelector||docElem.webkitMatchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector;
assert(function(div){div.innerHTML="<select><option selected=''></option></select>";
if(!div.querySelectorAll("[selected]").length){rbuggyQSA.push("\\["+whitespace+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)");
}if(!div.querySelectorAll(":checked").length){rbuggyQSA.push(":checked");
}});
assert(function(div){div.innerHTML="<p test=''></p>";
if(div.querySelectorAll("[test^='']").length){rbuggyQSA.push("[*^$]="+whitespace+"*(?:\"\"|'')");
}div.innerHTML="<input type='hidden'/>";
if(!div.querySelectorAll(":enabled").length){rbuggyQSA.push(":enabled",":disabled");
}});
rbuggyQSA=new RegExp(rbuggyQSA.join("|"));
select=function(selector,context,results,seed,xml){if(!seed&&!xml&&!rbuggyQSA.test(selector)){var groups,i,old=true,nid=expando,newContext=context,newSelector=context.nodeType===9&&selector;
if(context.nodeType===1&&context.nodeName.toLowerCase()!=="object"){groups=tokenize(selector);
if((old=context.getAttribute("id"))){nid=old.replace(rescape,"\\$&");
}else{context.setAttribute("id",nid);
}nid="[id='"+nid+"'] ";
i=groups.length;
while(i--){groups[i]=nid+groups[i].join("");
}newContext=rsibling.test(selector)&&context.parentNode||context;
newSelector=groups.join(",");
}if(newSelector){try{push.apply(results,slice.call(newContext.querySelectorAll(newSelector),0));
return results;
}catch(qsaError){}finally{if(!old){context.removeAttribute("id");
}}}}return oldSelect(selector,context,results,seed,xml);
};
if(matches){assert(function(div){disconnectedMatch=matches.call(div,"div");
try{matches.call(div,"[test!='']:sizzle");
rbuggyMatches.push("!=",pseudos);
}catch(e){}});
rbuggyMatches=new RegExp(rbuggyMatches.join("|"));
Sizzle.matchesSelector=function(elem,expr){expr=expr.replace(rattributeQuotes,"='$1']");
if(!isXML(elem)&&!rbuggyMatches.test(expr)&&!rbuggyQSA.test(expr)){try{var ret=matches.call(elem,expr);
if(ret||disconnectedMatch||elem.document&&elem.document.nodeType!==11){return ret;
}}catch(e){}}return Sizzle(expr,null,null,[elem]).length>0;
};
}})();
}Expr.pseudos.nth=Expr.pseudos.eq;
function setFilters(){}Expr.filters=setFilters.prototype=Expr.pseudos;
Expr.setFilters=new setFilters();
Sizzle.attr=jQuery.attr;
jQuery.find=Sizzle;
jQuery.expr=Sizzle.selectors;
jQuery.expr[":"]=jQuery.expr.pseudos;
jQuery.unique=Sizzle.uniqueSort;
jQuery.text=Sizzle.getText;
jQuery.isXMLDoc=Sizzle.isXML;
jQuery.contains=Sizzle.contains;
})(window);
var runtil=/Until$/,rparentsprev=/^(?:parents|prev(?:Until|All))/,isSimple=/^.[^:#\[\.,]*$/,rneedsContext=jQuery.expr.match.needsContext,guaranteedUnique={children:true,contents:true,next:true,prev:true};
jQuery.fn.extend({find:function(selector){var i,l,length,n,r,ret,self=this;
if(typeof selector!=="string"){return jQuery(selector).filter(function(){for(i=0,l=self.length;
i<l;
i++){if(jQuery.contains(self[i],this)){return true;
}}});
}ret=this.pushStack("","find",selector);
for(i=0,l=this.length;
i<l;
i++){length=ret.length;
jQuery.find(selector,this[i],ret);
if(i>0){for(n=length;
n<ret.length;
n++){for(r=0;
r<length;
r++){if(ret[r]===ret[n]){ret.splice(n--,1);
break;
}}}}}return ret;
},has:function(target){var i,targets=jQuery(target,this),len=targets.length;
return this.filter(function(){for(i=0;
i<len;
i++){if(jQuery.contains(this,targets[i])){return true;
}}});
},not:function(selector){return this.pushStack(winnow(this,selector,false),"not",selector);
},filter:function(selector){return this.pushStack(winnow(this,selector,true),"filter",selector);
},is:function(selector){return !!selector&&(typeof selector==="string"?rneedsContext.test(selector)?jQuery(selector,this.context).index(this[0])>=0:jQuery.filter(selector,this).length>0:this.filter(selector).length>0);
},closest:function(selectors,context){var cur,i=0,l=this.length,ret=[],pos=rneedsContext.test(selectors)||typeof selectors!=="string"?jQuery(selectors,context||this.context):0;
for(;
i<l;
i++){cur=this[i];
while(cur&&cur.ownerDocument&&cur!==context&&cur.nodeType!==11){if(pos?pos.index(cur)>-1:jQuery.find.matchesSelector(cur,selectors)){ret.push(cur);
break;
}cur=cur.parentNode;
}}ret=ret.length>1?jQuery.unique(ret):ret;
return this.pushStack(ret,"closest",selectors);
},index:function(elem){if(!elem){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1;
}if(typeof elem==="string"){return jQuery.inArray(this[0],jQuery(elem));
}return jQuery.inArray(elem.jquery?elem[0]:elem,this);
},add:function(selector,context){var set=typeof selector==="string"?jQuery(selector,context):jQuery.makeArray(selector&&selector.nodeType?[selector]:selector),all=jQuery.merge(this.get(),set);
return this.pushStack(isDisconnected(set[0])||isDisconnected(all[0])?all:jQuery.unique(all));
},addBack:function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector));
}});
jQuery.fn.andSelf=jQuery.fn.addBack;
function isDisconnected(node){return !node||!node.parentNode||node.parentNode.nodeType===11;
}function sibling(cur,dir){do{cur=cur[dir];
}while(cur&&cur.nodeType!==1);
return cur;
}jQuery.each({parent:function(elem){var parent=elem.parentNode;
return parent&&parent.nodeType!==11?parent:null;
},parents:function(elem){return jQuery.dir(elem,"parentNode");
},parentsUntil:function(elem,i,until){return jQuery.dir(elem,"parentNode",until);
},next:function(elem){return sibling(elem,"nextSibling");
},prev:function(elem){return sibling(elem,"previousSibling");
},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");
},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");
},nextUntil:function(elem,i,until){return jQuery.dir(elem,"nextSibling",until);
},prevUntil:function(elem,i,until){return jQuery.dir(elem,"previousSibling",until);
},siblings:function(elem){return jQuery.sibling((elem.parentNode||{}).firstChild,elem);
},children:function(elem){return jQuery.sibling(elem.firstChild);
},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.merge([],elem.childNodes);
}},function(name,fn){jQuery.fn[name]=function(until,selector){var ret=jQuery.map(this,fn,until);
if(!runtil.test(name)){selector=until;
}if(selector&&typeof selector==="string"){ret=jQuery.filter(selector,ret);
}ret=this.length>1&&!guaranteedUnique[name]?jQuery.unique(ret):ret;
if(this.length>1&&rparentsprev.test(name)){ret=ret.reverse();
}return this.pushStack(ret,name,core_slice.call(arguments).join(","));
};
});
jQuery.extend({filter:function(expr,elems,not){if(not){expr=":not("+expr+")";
}return elems.length===1?jQuery.find.matchesSelector(elems[0],expr)?[elems[0]]:[]:jQuery.find.matches(expr,elems);
},dir:function(elem,dir,until){var matched=[],cur=elem[dir];
while(cur&&cur.nodeType!==9&&(until===undefined||cur.nodeType!==1||!jQuery(cur).is(until))){if(cur.nodeType===1){matched.push(cur);
}cur=cur[dir];
}return matched;
},sibling:function(n,elem){var r=[];
for(;
n;
n=n.nextSibling){if(n.nodeType===1&&n!==elem){r.push(n);
}}return r;
}});
function winnow(elements,qualifier,keep){qualifier=qualifier||0;
if(jQuery.isFunction(qualifier)){return jQuery.grep(elements,function(elem,i){var retVal=!!qualifier.call(elem,i,elem);
return retVal===keep;
});
}else{if(qualifier.nodeType){return jQuery.grep(elements,function(elem,i){return(elem===qualifier)===keep;
});
}else{if(typeof qualifier==="string"){var filtered=jQuery.grep(elements,function(elem){return elem.nodeType===1;
});
if(isSimple.test(qualifier)){return jQuery.filter(qualifier,filtered,!keep);
}else{qualifier=jQuery.filter(qualifier,filtered);
}}}}return jQuery.grep(elements,function(elem,i){return(jQuery.inArray(elem,qualifier)>=0)===keep;
});
}function createSafeFragment(document){var list=nodeNames.split("|"),safeFrag=document.createDocumentFragment();
if(safeFrag.createElement){while(list.length){safeFrag.createElement(list.pop());
}}return safeFrag;
}var nodeNames="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",rinlinejQuery=/ jQuery\d+="(?:null|\d+)"/g,rleadingWhitespace=/^\s+/,rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,rtagName=/<([\w:]+)/,rtbody=/<tbody/i,rhtml=/<|&#?\w+;/,rnoInnerhtml=/<(?:script|style|link)/i,rnocache=/<(?:script|object|embed|option|style)/i,rnoshimcache=new RegExp("<(?:"+nodeNames+")[\\s/>]","i"),rcheckableType=/^(?:checkbox|radio)$/,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rscriptType=/\/(java|ecma)script/i,rcleanScript=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,wrapMap={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,"",""]},safeFragment=createSafeFragment(document),fragmentDiv=safeFragment.appendChild(document.createElement("div"));
wrapMap.optgroup=wrapMap.option;
wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;
wrapMap.th=wrapMap.td;
if(!jQuery.support.htmlSerialize){wrapMap._default=[1,"X<div>","</div>"];
}jQuery.fn.extend({text:function(value){return jQuery.access(this,function(value){return value===undefined?jQuery.text(this):this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(value));
},null,value,arguments.length);
},wrapAll:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapAll(html.call(this,i));
});
}if(this[0]){var wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);
if(this[0].parentNode){wrap.insertBefore(this[0]);
}wrap.map(function(){var elem=this;
while(elem.firstChild&&elem.firstChild.nodeType===1){elem=elem.firstChild;
}return elem;
}).append(this);
}return this;
},wrapInner:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapInner(html.call(this,i));
});
}return this.each(function(){var self=jQuery(this),contents=self.contents();
if(contents.length){contents.wrapAll(html);
}else{self.append(html);
}});
},wrap:function(html){var isFunction=jQuery.isFunction(html);
return this.each(function(i){jQuery(this).wrapAll(isFunction?html.call(this,i):html);
});
},unwrap:function(){return this.parent().each(function(){if(!jQuery.nodeName(this,"body")){jQuery(this).replaceWith(this.childNodes);
}}).end();
},append:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1||this.nodeType===11){this.appendChild(elem);
}});
},prepend:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1||this.nodeType===11){this.insertBefore(elem,this.firstChild);
}});
},before:function(){if(!isDisconnected(this[0])){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this);
});
}if(arguments.length){var set=jQuery.clean(arguments);
return this.pushStack(jQuery.merge(set,this),"before",this.selector);
}},after:function(){if(!isDisconnected(this[0])){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);
});
}if(arguments.length){var set=jQuery.clean(arguments);
return this.pushStack(jQuery.merge(this,set),"after",this.selector);
}},remove:function(selector,keepData){var elem,i=0;
for(;
(elem=this[i])!=null;
i++){if(!selector||jQuery.filter(selector,[elem]).length){if(!keepData&&elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"));
jQuery.cleanData([elem]);
}if(elem.parentNode){elem.parentNode.removeChild(elem);
}}}return this;
},empty:function(){var elem,i=0;
for(;
(elem=this[i])!=null;
i++){if(elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"));
}while(elem.firstChild){elem.removeChild(elem.firstChild);
}}return this;
},clone:function(dataAndEvents,deepDataAndEvents){dataAndEvents=dataAndEvents==null?false:dataAndEvents;
deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;
return this.map(function(){return jQuery.clone(this,dataAndEvents,deepDataAndEvents);
});
},html:function(value){return jQuery.access(this,function(value){var elem=this[0]||{},i=0,l=this.length;
if(value===undefined){return elem.nodeType===1?elem.innerHTML.replace(rinlinejQuery,""):undefined;
}if(typeof value==="string"&&!rnoInnerhtml.test(value)&&(jQuery.support.htmlSerialize||!rnoshimcache.test(value))&&(jQuery.support.leadingWhitespace||!rleadingWhitespace.test(value))&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=value.replace(rxhtmlTag,"<$1></$2>");
try{for(;
i<l;
i++){elem=this[i]||{};
if(elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"));
elem.innerHTML=value;
}}elem=0;
}catch(e){}}if(elem){this.empty().append(value);
}},null,value,arguments.length);
},replaceWith:function(value){if(!isDisconnected(this[0])){if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this),old=self.html();
self.replaceWith(value.call(this,i,old));
});
}if(typeof value!=="string"){value=jQuery(value).detach();
}return this.each(function(){var next=this.nextSibling,parent=this.parentNode;
jQuery(this).remove();
if(next){jQuery(next).before(value);
}else{jQuery(parent).append(value);
}});
}return this.length?this.pushStack(jQuery(jQuery.isFunction(value)?value():value),"replaceWith",value):this;
},detach:function(selector){return this.remove(selector,true);
},domManip:function(args,table,callback){args=[].concat.apply([],args);
var results,first,fragment,iNoClone,i=0,value=args[0],scripts=[],l=this.length;
if(!jQuery.support.checkClone&&l>1&&typeof value==="string"&&rchecked.test(value)){return this.each(function(){jQuery(this).domManip(args,table,callback);
});
}if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);
args[0]=value.call(this,i,table?self.html():undefined);
self.domManip(args,table,callback);
});
}if(this[0]){results=jQuery.buildFragment(args,this,scripts);
fragment=results.fragment;
first=fragment.firstChild;
if(fragment.childNodes.length===1){fragment=first;
}if(first){table=table&&jQuery.nodeName(first,"tr");
for(iNoClone=results.cacheable||l-1;
i<l;
i++){callback.call(table&&jQuery.nodeName(this[i],"table")?findOrAppend(this[i],"tbody"):this[i],i===iNoClone?fragment:jQuery.clone(fragment,true,true));
}}fragment=first=null;
if(scripts.length){jQuery.each(scripts,function(i,elem){if(elem.src){if(jQuery.ajax){jQuery.ajax({url:elem.src,type:"GET",dataType:"script",async:false,global:false,"throws":true});
}else{jQuery.error("no ajax");
}}else{jQuery.globalEval((elem.text||elem.textContent||elem.innerHTML||"").replace(rcleanScript,""));
}if(elem.parentNode){elem.parentNode.removeChild(elem);
}});
}}return this;
}});
function findOrAppend(elem,tag){return elem.getElementsByTagName(tag)[0]||elem.appendChild(elem.ownerDocument.createElement(tag));
}function cloneCopyEvent(src,dest){if(dest.nodeType!==1||!jQuery.hasData(src)){return ;
}var type,i,l,oldData=jQuery._data(src),curData=jQuery._data(dest,oldData),events=oldData.events;
if(events){delete curData.handle;
curData.events={};
for(type in events){for(i=0,l=events[type].length;
i<l;
i++){jQuery.event.add(dest,type,events[type][i]);
}}}if(curData.data){curData.data=jQuery.extend({},curData.data);
}}function cloneFixAttributes(src,dest){var nodeName;
if(dest.nodeType!==1){return ;
}if(dest.clearAttributes){dest.clearAttributes();
}if(dest.mergeAttributes){dest.mergeAttributes(src);
}nodeName=dest.nodeName.toLowerCase();
if(nodeName==="object"){if(dest.parentNode){dest.outerHTML=src.outerHTML;
}if(jQuery.support.html5Clone&&(src.innerHTML&&!jQuery.trim(dest.innerHTML))){dest.innerHTML=src.innerHTML;
}}else{if(nodeName==="input"&&rcheckableType.test(src.type)){dest.defaultChecked=dest.checked=src.checked;
if(dest.value!==src.value){dest.value=src.value;
}}else{if(nodeName==="option"){dest.selected=src.defaultSelected;
}else{if(nodeName==="input"||nodeName==="textarea"){dest.defaultValue=src.defaultValue;
}else{if(nodeName==="script"&&dest.text!==src.text){dest.text=src.text;
}}}}}dest.removeAttribute(jQuery.expando);
}jQuery.buildFragment=function(args,context,scripts){var fragment,cacheable,cachehit,first=args[0];
context=context||document;
context=!context.nodeType&&context[0]||context;
context=context.ownerDocument||context;
if(args.length===1&&typeof first==="string"&&first.length<512&&context===document&&first.charAt(0)==="<"&&!rnocache.test(first)&&(jQuery.support.checkClone||!rchecked.test(first))&&(jQuery.support.html5Clone||!rnoshimcache.test(first))){cacheable=true;
fragment=jQuery.fragments[first];
cachehit=fragment!==undefined;
}if(!fragment){fragment=context.createDocumentFragment();
jQuery.clean(args,context,fragment,scripts);
if(cacheable){jQuery.fragments[first]=cachehit&&fragment;
}}return{fragment:fragment,cacheable:cacheable};
};
jQuery.fragments={};
jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){var elems,i=0,ret=[],insert=jQuery(selector),l=insert.length,parent=this.length===1&&this[0].parentNode;
if((parent==null||parent&&parent.nodeType===11&&parent.childNodes.length===1)&&l===1){insert[original](this[0]);
return this;
}else{for(;
i<l;
i++){elems=(i>0?this.clone(true):this).get();
jQuery(insert[i])[original](elems);
ret=ret.concat(elems);
}return this.pushStack(ret,name,insert.selector);
}};
});
function getAll(elem){if(typeof elem.getElementsByTagName!=="undefined"){return elem.getElementsByTagName("*");
}else{if(typeof elem.querySelectorAll!=="undefined"){return elem.querySelectorAll("*");
}else{return[];
}}}function fixDefaultChecked(elem){if(rcheckableType.test(elem.type)){elem.defaultChecked=elem.checked;
}}jQuery.extend({clone:function(elem,dataAndEvents,deepDataAndEvents){var srcElements,destElements,i,clone;
if(jQuery.support.html5Clone||jQuery.isXMLDoc(elem)||!rnoshimcache.test("<"+elem.nodeName+">")){clone=elem.cloneNode(true);
}else{fragmentDiv.innerHTML=elem.outerHTML;
fragmentDiv.removeChild(clone=fragmentDiv.firstChild);
}if((!jQuery.support.noCloneEvent||!jQuery.support.noCloneChecked)&&(elem.nodeType===1||elem.nodeType===11)&&!jQuery.isXMLDoc(elem)){cloneFixAttributes(elem,clone);
srcElements=getAll(elem);
destElements=getAll(clone);
for(i=0;
srcElements[i];
++i){if(destElements[i]){cloneFixAttributes(srcElements[i],destElements[i]);
}}}if(dataAndEvents){cloneCopyEvent(elem,clone);
if(deepDataAndEvents){srcElements=getAll(elem);
destElements=getAll(clone);
for(i=0;
srcElements[i];
++i){cloneCopyEvent(srcElements[i],destElements[i]);
}}}srcElements=destElements=null;
return clone;
},clean:function(elems,context,fragment,scripts){var i,j,elem,tag,wrap,depth,div,hasBody,tbody,len,handleScript,jsTags,safe=context===document&&safeFragment,ret=[];
if(!context||typeof context.createDocumentFragment==="undefined"){context=document;
}for(i=0;
(elem=elems[i])!=null;
i++){if(typeof elem==="number"){elem+="";
}if(!elem){continue;
}if(typeof elem==="string"){if(!rhtml.test(elem)){elem=context.createTextNode(elem);
}else{safe=safe||createSafeFragment(context);
div=context.createElement("div");
safe.appendChild(div);
elem=elem.replace(rxhtmlTag,"<$1></$2>");
tag=(rtagName.exec(elem)||["",""])[1].toLowerCase();
wrap=wrapMap[tag]||wrapMap._default;
depth=wrap[0];
div.innerHTML=wrap[1]+elem+wrap[2];
while(depth--){div=div.lastChild;
}if(!jQuery.support.tbody){hasBody=rtbody.test(elem);
tbody=tag==="table"&&!hasBody?div.firstChild&&div.firstChild.childNodes:wrap[1]==="<table>"&&!hasBody?div.childNodes:[];
for(j=tbody.length-1;
j>=0;
--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j]);
}}}if(!jQuery.support.leadingWhitespace&&rleadingWhitespace.test(elem)){div.insertBefore(context.createTextNode(rleadingWhitespace.exec(elem)[0]),div.firstChild);
}elem=div.childNodes;
div.parentNode.removeChild(div);
}}if(elem.nodeType){ret.push(elem);
}else{jQuery.merge(ret,elem);
}}if(div){elem=div=safe=null;
}if(!jQuery.support.appendChecked){for(i=0;
(elem=ret[i])!=null;
i++){if(jQuery.nodeName(elem,"input")){fixDefaultChecked(elem);
}else{if(typeof elem.getElementsByTagName!=="undefined"){jQuery.grep(elem.getElementsByTagName("input"),fixDefaultChecked);
}}}}if(fragment){handleScript=function(elem){if(!elem.type||rscriptType.test(elem.type)){return scripts?scripts.push(elem.parentNode?elem.parentNode.removeChild(elem):elem):fragment.appendChild(elem);
}};
for(i=0;
(elem=ret[i])!=null;
i++){if(!(jQuery.nodeName(elem,"script")&&handleScript(elem))){fragment.appendChild(elem);
if(typeof elem.getElementsByTagName!=="undefined"){jsTags=jQuery.grep(jQuery.merge([],elem.getElementsByTagName("script")),handleScript);
ret.splice.apply(ret,[i+1,0].concat(jsTags));
i+=jsTags.length;
}}}}return ret;
},cleanData:function(elems,acceptData){var data,id,elem,type,i=0,internalKey=jQuery.expando,cache=jQuery.cache,deleteExpando=jQuery.support.deleteExpando,special=jQuery.event.special;
for(;
(elem=elems[i])!=null;
i++){if(acceptData||jQuery.acceptData(elem)){id=elem[internalKey];
data=id&&cache[id];
if(data){if(data.events){for(type in data.events){if(special[type]){jQuery.event.remove(elem,type);
}else{jQuery.removeEvent(elem,type,data.handle);
}}}if(cache[id]){delete cache[id];
if(deleteExpando){delete elem[internalKey];
}else{if(elem.removeAttribute){elem.removeAttribute(internalKey);
}else{elem[internalKey]=null;
}}jQuery.deletedIds.push(id);
}}}}}});
(function(){var matched,browser;
jQuery.uaMatch=function(ua){ua=ua.toLowerCase();
var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||[];
return{browser:match[1]||"",version:match[2]||"0"};
};
matched=jQuery.uaMatch(navigator.userAgent);
browser={};
if(matched.browser){browser[matched.browser]=true;
browser.version=matched.version;
}if(browser.chrome){browser.webkit=true;
}else{if(browser.webkit){browser.safari=true;
}}jQuery.browser=browser;
jQuery.sub=function(){function jQuerySub(selector,context){return new jQuerySub.fn.init(selector,context);
}jQuery.extend(true,jQuerySub,this);
jQuerySub.superclass=this;
jQuerySub.fn=jQuerySub.prototype=this();
jQuerySub.fn.constructor=jQuerySub;
jQuerySub.sub=this.sub;
jQuerySub.fn.init=function init(selector,context){if(context&&context instanceof jQuery&&!(context instanceof jQuerySub)){context=jQuerySub(context);
}return jQuery.fn.init.call(this,selector,context,rootjQuerySub);
};
jQuerySub.fn.init.prototype=jQuerySub.fn;
var rootjQuerySub=jQuerySub(document);
return jQuerySub;
};
})();
var curCSS,iframe,iframeDoc,ralpha=/alpha\([^)]*\)/i,ropacity=/opacity=([^)]*)/,rposition=/^(top|right|bottom|left)$/,rdisplayswap=/^(none|table(?!-c[ea]).+)/,rmargin=/^margin/,rnumsplit=new RegExp("^("+core_pnum+")(.*)$","i"),rnumnonpx=new RegExp("^("+core_pnum+")(?!px)[a-z%]+$","i"),rrelNum=new RegExp("^([-+])=("+core_pnum+")","i"),elemdisplay={BODY:"block"},cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:0,fontWeight:400},cssExpand=["Top","Right","Bottom","Left"],cssPrefixes=["Webkit","O","Moz","ms"],eventsToggle=jQuery.fn.toggle;
function vendorPropName(style,name){if(name in style){return name;
}var capName=name.charAt(0).toUpperCase()+name.slice(1),origName=name,i=cssPrefixes.length;
while(i--){name=cssPrefixes[i]+capName;
if(name in style){return name;
}}return origName;
}function isHidden(elem,el){elem=el||elem;
return jQuery.css(elem,"display")==="none"||!jQuery.contains(elem.ownerDocument,elem);
}function showHide(elements,show){var elem,display,values=[],index=0,length=elements.length;
for(;
index<length;
index++){elem=elements[index];
if(!elem.style){continue;
}values[index]=jQuery._data(elem,"olddisplay");
if(show){if(!values[index]&&elem.style.display==="none"){elem.style.display="";
}if(elem.style.display===""&&isHidden(elem)){values[index]=jQuery._data(elem,"olddisplay",css_defaultDisplay(elem.nodeName));
}}else{display=curCSS(elem,"display");
if(!values[index]&&display!=="none"){jQuery._data(elem,"olddisplay",display);
}}}for(index=0;
index<length;
index++){elem=elements[index];
if(!elem.style){continue;
}if(!show||elem.style.display==="none"||elem.style.display===""){elem.style.display=show?values[index]||"":"none";
}}return elements;
}jQuery.fn.extend({css:function(name,value){return jQuery.access(this,function(elem,name,value){return value!==undefined?jQuery.style(elem,name,value):jQuery.css(elem,name);
},name,value,arguments.length>1);
},show:function(){return showHide(this,true);
},hide:function(){return showHide(this);
},toggle:function(state,fn2){var bool=typeof state==="boolean";
if(jQuery.isFunction(state)&&jQuery.isFunction(fn2)){return eventsToggle.apply(this,arguments);
}return this.each(function(){if(bool?state:isHidden(this)){jQuery(this).show();
}else{jQuery(this).hide();
}});
}});
jQuery.extend({cssHooks:{opacity:{get:function(elem,computed){if(computed){var ret=curCSS(elem,"opacity");
return ret===""?"1":ret;
}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":jQuery.support.cssFloat?"cssFloat":"styleFloat"},style:function(elem,name,value,extra){if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){return ;
}var ret,type,hooks,origName=jQuery.camelCase(name),style=elem.style;
name=jQuery.cssProps[origName]||(jQuery.cssProps[origName]=vendorPropName(style,origName));
hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];
if(value!==undefined){type=typeof value;
if(type==="string"&&(ret=rrelNum.exec(value))){value=(ret[1]+1)*ret[2]+parseFloat(jQuery.css(elem,name));
type="number";
}if(value==null||type==="number"&&isNaN(value)){return ;
}if(type==="number"&&!jQuery.cssNumber[origName]){value+="px";
}if(!hooks||!("set" in hooks)||(value=hooks.set(elem,value,extra))!==undefined){try{style[name]=value;
}catch(e){}}}else{if(hooks&&"get" in hooks&&(ret=hooks.get(elem,false,extra))!==undefined){return ret;
}return style[name];
}},css:function(elem,name,numeric,extra){var val,num,hooks,origName=jQuery.camelCase(name);
name=jQuery.cssProps[origName]||(jQuery.cssProps[origName]=vendorPropName(elem.style,origName));
hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];
if(hooks&&"get" in hooks){val=hooks.get(elem,true,extra);
}if(val===undefined){val=curCSS(elem,name);
}if(val==="normal"&&name in cssNormalTransform){val=cssNormalTransform[name];
}if(numeric||extra!==undefined){num=parseFloat(val);
return numeric||jQuery.isNumeric(num)?num||0:val;
}return val;
},swap:function(elem,options,callback){var ret,name,old={};
for(name in options){old[name]=elem.style[name];
elem.style[name]=options[name];
}ret=callback.call(elem);
for(name in options){elem.style[name]=old[name];
}return ret;
}});
if(window.getComputedStyle){curCSS=function(elem,name){var ret,width,minWidth,maxWidth,computed=window.getComputedStyle(elem,null),style=elem.style;
if(computed){ret=computed.getPropertyValue(name)||computed[name];
if(ret===""&&!jQuery.contains(elem.ownerDocument,elem)){ret=jQuery.style(elem,name);
}if(rnumnonpx.test(ret)&&rmargin.test(name)){width=style.width;
minWidth=style.minWidth;
maxWidth=style.maxWidth;
style.minWidth=style.maxWidth=style.width=ret;
ret=computed.width;
style.width=width;
style.minWidth=minWidth;
style.maxWidth=maxWidth;
}}return ret;
};
}else{if(document.documentElement.currentStyle){curCSS=function(elem,name){var left,rsLeft,ret=elem.currentStyle&&elem.currentStyle[name],style=elem.style;
if(ret==null&&style&&style[name]){ret=style[name];
}if(rnumnonpx.test(ret)&&!rposition.test(name)){left=style.left;
rsLeft=elem.runtimeStyle&&elem.runtimeStyle.left;
if(rsLeft){elem.runtimeStyle.left=elem.currentStyle.left;
}style.left=name==="fontSize"?"1em":ret;
ret=style.pixelLeft+"px";
style.left=left;
if(rsLeft){elem.runtimeStyle.left=rsLeft;
}}return ret===""?"auto":ret;
};
}}function setPositiveNumber(elem,value,subtract){var matches=rnumsplit.exec(value);
return matches?Math.max(0,matches[1]-(subtract||0))+(matches[2]||"px"):value;
}function augmentWidthOrHeight(elem,name,extra,isBorderBox){var i=extra===(isBorderBox?"border":"content")?4:name==="width"?1:0,val=0;
for(;
i<4;
i+=2){if(extra==="margin"){val+=jQuery.css(elem,extra+cssExpand[i],true);
}if(isBorderBox){if(extra==="content"){val-=parseFloat(curCSS(elem,"padding"+cssExpand[i]))||0;
}if(extra!=="margin"){val-=parseFloat(curCSS(elem,"border"+cssExpand[i]+"Width"))||0;
}}else{val+=parseFloat(curCSS(elem,"padding"+cssExpand[i]))||0;
if(extra!=="padding"){val+=parseFloat(curCSS(elem,"border"+cssExpand[i]+"Width"))||0;
}}}return val;
}function getWidthOrHeight(elem,name,extra){var val=name==="width"?elem.offsetWidth:elem.offsetHeight,valueIsBorderBox=true,isBorderBox=jQuery.support.boxSizing&&jQuery.css(elem,"boxSizing")==="border-box";
if(val<=0||val==null){val=curCSS(elem,name);
if(val<0||val==null){val=elem.style[name];
}if(rnumnonpx.test(val)){return val;
}valueIsBorderBox=isBorderBox&&(jQuery.support.boxSizingReliable||val===elem.style[name]);
val=parseFloat(val)||0;
}return(val+augmentWidthOrHeight(elem,name,extra||(isBorderBox?"border":"content"),valueIsBorderBox))+"px";
}function css_defaultDisplay(nodeName){if(elemdisplay[nodeName]){return elemdisplay[nodeName];
}var elem=jQuery("<"+nodeName+">").appendTo(document.body),display=elem.css("display");
elem.remove();
if(display==="none"||display===""){iframe=document.body.appendChild(iframe||jQuery.extend(document.createElement("iframe"),{frameBorder:0,width:0,height:0}));
if(!iframeDoc||!iframe.createElement){iframeDoc=(iframe.contentWindow||iframe.contentDocument).document;
iframeDoc.write("<!doctype html><html><body>");
iframeDoc.close();
}elem=iframeDoc.body.appendChild(iframeDoc.createElement(nodeName));
display=curCSS(elem,"display");
document.body.removeChild(iframe);
}elemdisplay[nodeName]=display;
return display;
}jQuery.each(["height","width"],function(i,name){jQuery.cssHooks[name]={get:function(elem,computed,extra){if(computed){if(elem.offsetWidth===0&&rdisplayswap.test(curCSS(elem,"display"))){return jQuery.swap(elem,cssShow,function(){return getWidthOrHeight(elem,name,extra);
});
}else{return getWidthOrHeight(elem,name,extra);
}}},set:function(elem,value,extra){return setPositiveNumber(elem,value,extra?augmentWidthOrHeight(elem,name,extra,jQuery.support.boxSizing&&jQuery.css(elem,"boxSizing")==="border-box"):0);
}};
});
if(!jQuery.support.opacity){jQuery.cssHooks.opacity={get:function(elem,computed){return ropacity.test((computed&&elem.currentStyle?elem.currentStyle.filter:elem.style.filter)||"")?(0.01*parseFloat(RegExp.$1))+"":computed?"1":"";
},set:function(elem,value){var style=elem.style,currentStyle=elem.currentStyle,opacity=jQuery.isNumeric(value)?"alpha(opacity="+value*100+")":"",filter=currentStyle&&currentStyle.filter||style.filter||"";
style.zoom=1;
if(value>=1&&jQuery.trim(filter.replace(ralpha,""))===""&&style.removeAttribute){style.removeAttribute("filter");
if(currentStyle&&!currentStyle.filter){return ;
}}style.filter=ralpha.test(filter)?filter.replace(ralpha,opacity):filter+" "+opacity;
}};
}jQuery(function(){if(!jQuery.support.reliableMarginRight){jQuery.cssHooks.marginRight={get:function(elem,computed){return jQuery.swap(elem,{display:"inline-block"},function(){if(computed){return curCSS(elem,"marginRight");
}});
}};
}if(!jQuery.support.pixelPosition&&jQuery.fn.position){jQuery.each(["top","left"],function(i,prop){jQuery.cssHooks[prop]={get:function(elem,computed){if(computed){var ret=curCSS(elem,prop);
return rnumnonpx.test(ret)?jQuery(elem).position()[prop]+"px":ret;
}}};
});
}});
if(jQuery.expr&&jQuery.expr.filters){jQuery.expr.filters.hidden=function(elem){return(elem.offsetWidth===0&&elem.offsetHeight===0)||(!jQuery.support.reliableHiddenOffsets&&((elem.style&&elem.style.display)||curCSS(elem,"display"))==="none");
};
jQuery.expr.filters.visible=function(elem){return !jQuery.expr.filters.hidden(elem);
};
}jQuery.each({margin:"",padding:"",border:"Width"},function(prefix,suffix){jQuery.cssHooks[prefix+suffix]={expand:function(value){var i,parts=typeof value==="string"?value.split(" "):[value],expanded={};
for(i=0;
i<4;
i++){expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0];
}return expanded;
}};
if(!rmargin.test(prefix)){jQuery.cssHooks[prefix+suffix].set=setPositiveNumber;
}});
var r20=/%20/g,rbracket=/\[\]$/,rCRLF=/\r?\n/g,rinput=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,rselectTextarea=/^(?:select|textarea)/i;
jQuery.fn.extend({serialize:function(){return jQuery.param(this.serializeArray());
},serializeArray:function(){return this.map(function(){return this.elements?jQuery.makeArray(this.elements):this;
}).filter(function(){return this.name&&!this.disabled&&(this.checked||rselectTextarea.test(this.nodeName)||rinput.test(this.type));
}).map(function(i,elem){var val=jQuery(this).val();
return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val,i){return{name:elem.name,value:val.replace(rCRLF,"\r\n")};
}):{name:elem.name,value:val.replace(rCRLF,"\r\n")};
}).get();
}});
jQuery.param=function(a,traditional){var prefix,s=[],add=function(key,value){value=jQuery.isFunction(value)?value():(value==null?"":value);
s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value);
};
if(traditional===undefined){traditional=jQuery.ajaxSettings&&jQuery.ajaxSettings.traditional;
}if(jQuery.isArray(a)||(a.jquery&&!jQuery.isPlainObject(a))){jQuery.each(a,function(){add(this.name,this.value);
});
}else{for(prefix in a){buildParams(prefix,a[prefix],traditional,add);
}}return s.join("&").replace(r20,"+");
};
function buildParams(prefix,obj,traditional,add){var name;
if(jQuery.isArray(obj)){jQuery.each(obj,function(i,v){if(traditional||rbracket.test(prefix)){add(prefix,v);
}else{buildParams(prefix+"["+(typeof v==="object"?i:"")+"]",v,traditional,add);
}});
}else{if(!traditional&&jQuery.type(obj)==="object"){for(name in obj){buildParams(prefix+"["+name+"]",obj[name],traditional,add);
}}else{add(prefix,obj);
}}}var ajaxLocParts,ajaxLocation,rhash=/#.*$/,rheaders=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,rlocalProtocol=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,rquery=/\?/,rscript=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,rts=/([?&])_=[^&]*/,rurl=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,_load=jQuery.fn.load,prefilters={},transports={},allTypes=["*/"]+["*"];
try{ajaxLocation=location.href;
}catch(e){ajaxLocation=document.createElement("a");
ajaxLocation.href="";
ajaxLocation=ajaxLocation.href;
}ajaxLocParts=rurl.exec(ajaxLocation.toLowerCase())||[];
function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){if(typeof dataTypeExpression!=="string"){func=dataTypeExpression;
dataTypeExpression="*";
}var dataType,list,placeBefore,dataTypes=dataTypeExpression.toLowerCase().split(core_rspace),i=0,length=dataTypes.length;
if(jQuery.isFunction(func)){for(;
i<length;
i++){dataType=dataTypes[i];
placeBefore=/^\+/.test(dataType);
if(placeBefore){dataType=dataType.substr(1)||"*";
}list=structure[dataType]=structure[dataType]||[];
list[placeBefore?"unshift":"push"](func);
}}};
}function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR,dataType,inspected){dataType=dataType||options.dataTypes[0];
inspected=inspected||{};
inspected[dataType]=true;
var selection,list=structure[dataType],i=0,length=list?list.length:0,executeOnly=(structure===prefilters);
for(;
i<length&&(executeOnly||!selection);
i++){selection=list[i](options,originalOptions,jqXHR);
if(typeof selection==="string"){if(!executeOnly||inspected[selection]){selection=undefined;
}else{options.dataTypes.unshift(selection);
selection=inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR,selection,inspected);
}}}if((executeOnly||!selection)&&!inspected["*"]){selection=inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR,"*",inspected);
}return selection;
}function ajaxExtend(target,src){var key,deep,flatOptions=jQuery.ajaxSettings.flatOptions||{};
for(key in src){if(src[key]!==undefined){(flatOptions[key]?target:(deep||(deep={})))[key]=src[key];
}}if(deep){jQuery.extend(true,target,deep);
}}jQuery.fn.load=function(url,params,callback){if(typeof url!=="string"&&_load){return _load.apply(this,arguments);
}if(!this.length){return this;
}var selector,type,response,self=this,off=url.indexOf(" ");
if(off>=0){selector=url.slice(off,url.length);
url=url.slice(0,off);
}if(jQuery.isFunction(params)){callback=params;
params=undefined;
}else{if(params&&typeof params==="object"){type="POST";
}}jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(jqXHR,status){if(callback){self.each(callback,response||[jqXHR.responseText,status,jqXHR]);
}}}).done(function(responseText){response=arguments;
self.html(selector?jQuery("<div>").append(responseText.replace(rscript,"")).find(selector):responseText);
});
return this;
};
jQuery.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(i,o){jQuery.fn[o]=function(f){return this.on(o,f);
};
});
jQuery.each(["get","post"],function(i,method){jQuery[method]=function(url,data,callback,type){if(jQuery.isFunction(data)){type=type||callback;
callback=data;
data=undefined;
}return jQuery.ajax({type:method,url:url,data:data,success:callback,dataType:type});
};
});
jQuery.extend({getScript:function(url,callback){return jQuery.get(url,undefined,callback,"script");
},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");
},ajaxSetup:function(target,settings){if(settings){ajaxExtend(target,jQuery.ajaxSettings);
}else{settings=target;
target=jQuery.ajaxSettings;
}ajaxExtend(target,settings);
return target;
},ajaxSettings:{url:ajaxLocation,isLocal:rlocalProtocol.test(ajaxLocParts[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":allTypes},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":window.String,"text html":true,"text json":jQuery.parseJSON,"text xml":jQuery.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){if(typeof url==="object"){options=url;
url=undefined;
}options=options||{};
var ifModifiedKey,responseHeadersString,responseHeaders,transport,timeoutTimer,parts,fireGlobals,i,s=jQuery.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=callbackContext!==s&&(callbackContext.nodeType||callbackContext instanceof jQuery)?jQuery(callbackContext):jQuery.event,deferred=jQuery.Deferred(),completeDeferred=jQuery.Callbacks("once memory"),statusCode=s.statusCode||{},requestHeaders={},requestHeadersNames={},state=0,strAbort="canceled",jqXHR={readyState:0,setRequestHeader:function(name,value){if(!state){var lname=name.toLowerCase();
name=requestHeadersNames[lname]=requestHeadersNames[lname]||name;
requestHeaders[name]=value;
}return this;
},getAllResponseHeaders:function(){return state===2?responseHeadersString:null;
},getResponseHeader:function(key){var match;
if(state===2){if(!responseHeaders){responseHeaders={};
while((match=rheaders.exec(responseHeadersString))){responseHeaders[match[1].toLowerCase()]=match[2];
}}match=responseHeaders[key.toLowerCase()];
}return match===undefined?null:match;
},overrideMimeType:function(type){if(!state){s.mimeType=type;
}return this;
},abort:function(statusText){statusText=statusText||strAbort;
if(transport){transport.abort(statusText);
}done(0,statusText);
return this;
}};
function done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;
if(state===2){return ;
}state=2;
if(timeoutTimer){clearTimeout(timeoutTimer);
}transport=undefined;
responseHeadersString=headers||"";
jqXHR.readyState=status>0?4:0;
if(responses){response=ajaxHandleResponses(s,jqXHR,responses);
}if(status>=200&&status<300||status===304){if(s.ifModified){modified=jqXHR.getResponseHeader("Last-Modified");
if(modified){jQuery.lastModified[ifModifiedKey]=modified;
}modified=jqXHR.getResponseHeader("Etag");
if(modified){jQuery.etag[ifModifiedKey]=modified;
}}if(status===304){statusText="notmodified";
isSuccess=true;
}else{isSuccess=ajaxConvert(s,response);
statusText=isSuccess.state;
success=isSuccess.data;
error=isSuccess.error;
isSuccess=!error;
}}else{error=statusText;
if(!statusText||status){statusText="error";
if(status<0){status=0;
}}}jqXHR.status=status;
jqXHR.statusText=(nativeStatusText||statusText)+"";
if(isSuccess){deferred.resolveWith(callbackContext,[success,statusText,jqXHR]);
}else{deferred.rejectWith(callbackContext,[jqXHR,statusText,error]);
}jqXHR.statusCode(statusCode);
statusCode=undefined;
if(fireGlobals){globalEventContext.trigger("ajax"+(isSuccess?"Success":"Error"),[jqXHR,s,isSuccess?success:error]);
}completeDeferred.fireWith(callbackContext,[jqXHR,statusText]);
if(fireGlobals){globalEventContext.trigger("ajaxComplete",[jqXHR,s]);
if(!(--jQuery.active)){jQuery.event.trigger("ajaxStop");
}}}deferred.promise(jqXHR);
jqXHR.success=jqXHR.done;
jqXHR.error=jqXHR.fail;
jqXHR.complete=completeDeferred.add;
jqXHR.statusCode=function(map){if(map){var tmp;
if(state<2){for(tmp in map){statusCode[tmp]=[statusCode[tmp],map[tmp]];
}}else{tmp=map[jqXHR.status];
jqXHR.always(tmp);
}}return this;
};
s.url=((url||s.url)+"").replace(rhash,"").replace(rprotocol,ajaxLocParts[1]+"//");
s.dataTypes=jQuery.trim(s.dataType||"*").toLowerCase().split(core_rspace);
if(s.crossDomain==null){parts=rurl.exec(s.url.toLowerCase());
s.crossDomain=!!(parts&&(parts[1]!==ajaxLocParts[1]||parts[2]!==ajaxLocParts[2]||(parts[3]||(parts[1]==="http:"?80:443))!=(ajaxLocParts[3]||(ajaxLocParts[1]==="http:"?80:443))));
}if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data,s.traditional);
}inspectPrefiltersOrTransports(prefilters,s,options,jqXHR);
if(state===2){return jqXHR;
}fireGlobals=s.global;
s.type=s.type.toUpperCase();
s.hasContent=!rnoContent.test(s.type);
if(fireGlobals&&jQuery.active++===0){jQuery.event.trigger("ajaxStart");
}if(!s.hasContent){if(s.data){s.url+=(rquery.test(s.url)?"&":"?")+s.data;
delete s.data;
}ifModifiedKey=s.url;
if(s.cache===false){var ts=jQuery.now(),ret=s.url.replace(rts,"$1_="+ts);
s.url=ret+((ret===s.url)?(rquery.test(s.url)?"&":"?")+"_="+ts:"");
}}if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){jqXHR.setRequestHeader("Content-Type",s.contentType);
}if(s.ifModified){ifModifiedKey=ifModifiedKey||s.url;
if(jQuery.lastModified[ifModifiedKey]){jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[ifModifiedKey]);
}if(jQuery.etag[ifModifiedKey]){jqXHR.setRequestHeader("If-None-Match",jQuery.etag[ifModifiedKey]);
}}jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):s.accepts["*"]);
for(i in s.headers){jqXHR.setRequestHeader(i,s.headers[i]);
}if(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===false||state===2)){return jqXHR.abort();
}strAbort="abort";
for(i in {success:1,error:1,complete:1}){jqXHR[i](s[i]);
}transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);
if(!transport){done(-1,"No Transport");
}else{jqXHR.readyState=1;
if(fireGlobals){globalEventContext.trigger("ajaxSend",[jqXHR,s]);
}if(s.async&&s.timeout>0){timeoutTimer=setTimeout(function(){jqXHR.abort("timeout");
},s.timeout);
}try{state=1;
transport.send(requestHeaders,done);
}catch(e){if(state<2){done(-1,e);
}else{throw e;
}}}return jqXHR;
},active:0,lastModified:{},etag:{}});
function ajaxHandleResponses(s,jqXHR,responses){var ct,type,finalDataType,firstDataType,contents=s.contents,dataTypes=s.dataTypes,responseFields=s.responseFields;
for(type in responseFields){if(type in responses){jqXHR[responseFields[type]]=responses[type];
}}while(dataTypes[0]==="*"){dataTypes.shift();
if(ct===undefined){ct=s.mimeType||jqXHR.getResponseHeader("content-type");
}}if(ct){for(type in contents){if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);
break;
}}}if(dataTypes[0] in responses){finalDataType=dataTypes[0];
}else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;
break;
}if(!firstDataType){firstDataType=type;
}}finalDataType=finalDataType||firstDataType;
}if(finalDataType){if(finalDataType!==dataTypes[0]){dataTypes.unshift(finalDataType);
}return responses[finalDataType];
}}function ajaxConvert(s,response){var conv,conv2,current,tmp,dataTypes=s.dataTypes.slice(),prev=dataTypes[0],converters={},i=0;
if(s.dataFilter){response=s.dataFilter(response,s.dataType);
}if(dataTypes[1]){for(conv in s.converters){converters[conv.toLowerCase()]=s.converters[conv];
}}for(;
(current=dataTypes[++i]);
){if(current!=="*"){if(prev!=="*"&&prev!==current){conv=converters[prev+" "+current]||converters["* "+current];
if(!conv){for(conv2 in converters){tmp=conv2.split(" ");
if(tmp[1]===current){conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]];
if(conv){if(conv===true){conv=converters[conv2];
}else{if(converters[conv2]!==true){current=tmp[0];
dataTypes.splice(i--,0,current);
}}break;
}}}}if(conv!==true){if(conv&&s["throws"]){response=conv(response);
}else{try{response=conv(response);
}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current};
}}}}prev=current;
}}return{state:"success",data:response};
}var oldCallbacks=[],rquestion=/\?/,rjsonp=/(=)\?(?=&|$)|\?\?/,nonce=jQuery.now();
jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var callback=oldCallbacks.pop()||(jQuery.expando+"_"+(nonce++));
this[callback]=true;
return callback;
}});
jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,data=s.data,url=s.url,hasCallback=s.jsonp!==false,replaceInUrl=hasCallback&&rjsonp.test(url),replaceInData=hasCallback&&!replaceInUrl&&typeof data==="string"&&!(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&rjsonp.test(data);
if(s.dataTypes[0]==="jsonp"||replaceInUrl||replaceInData){callbackName=s.jsonpCallback=jQuery.isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback;
overwritten=window[callbackName];
if(replaceInUrl){s.url=url.replace(rjsonp,"$1"+callbackName);
}else{if(replaceInData){s.data=data.replace(rjsonp,"$1"+callbackName);
}else{if(hasCallback){s.url+=(rquestion.test(url)?"&":"?")+s.jsonp+"="+callbackName;
}}}s.converters["script json"]=function(){if(!responseContainer){jQuery.error(callbackName+" was not called");
}return responseContainer[0];
};
s.dataTypes[0]="json";
window[callbackName]=function(){responseContainer=arguments;
};
jqXHR.always(function(){window[callbackName]=overwritten;
if(s[callbackName]){s.jsonpCallback=originalSettings.jsonpCallback;
oldCallbacks.push(callbackName);
}if(responseContainer&&jQuery.isFunction(overwritten)){overwritten(responseContainer[0]);
}responseContainer=overwritten=undefined;
});
return"script";
}});
jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(text){jQuery.globalEval(text);
return text;
}}});
jQuery.ajaxPrefilter("script",function(s){if(s.cache===undefined){s.cache=false;
}if(s.crossDomain){s.type="GET";
s.global=false;
}});
jQuery.ajaxTransport("script",function(s){if(s.crossDomain){var script,head=document.head||document.getElementsByTagName("head")[0]||document.documentElement;
return{send:function(_,callback){script=document.createElement("script");
script.async="async";
if(s.scriptCharset){script.charset=s.scriptCharset;
}script.src=s.url;
script.onload=script.onreadystatechange=function(_,isAbort){if(isAbort||!script.readyState||/loaded|complete/.test(script.readyState)){script.onload=script.onreadystatechange=null;
if(head&&script.parentNode){head.removeChild(script);
}script=undefined;
if(!isAbort){callback(200,"success");
}}};
head.insertBefore(script,head.firstChild);
},abort:function(){if(script){script.onload(0,1);
}}};
}});
var xhrCallbacks,xhrOnUnloadAbort=window.ActiveXObject?function(){for(var key in xhrCallbacks){xhrCallbacks[key](0,1);
}}:false,xhrId=0;
function createStandardXHR(){try{return new window.XMLHttpRequest();
}catch(e){}}function createActiveXHR(){try{return new window.ActiveXObject("Microsoft.XMLHTTP");
}catch(e){}}jQuery.ajaxSettings.xhr=window.ActiveXObject?function(){return !this.isLocal&&createStandardXHR()||createActiveXHR();
}:createStandardXHR;
(function(xhr){jQuery.extend(jQuery.support,{ajax:!!xhr,cors:!!xhr&&("withCredentials" in xhr)});
})(jQuery.ajaxSettings.xhr());
if(jQuery.support.ajax){jQuery.ajaxTransport(function(s){if(!s.crossDomain||jQuery.support.cors){var callback;
return{send:function(headers,complete){var handle,i,xhr=s.xhr();
if(s.username){xhr.open(s.type,s.url,s.async,s.username,s.password);
}else{xhr.open(s.type,s.url,s.async);
}if(s.xhrFields){for(i in s.xhrFields){xhr[i]=s.xhrFields[i];
}}if(s.mimeType&&xhr.overrideMimeType){xhr.overrideMimeType(s.mimeType);
}if(!s.crossDomain&&!headers["X-Requested-With"]){headers["X-Requested-With"]="XMLHttpRequest";
}try{for(i in headers){xhr.setRequestHeader(i,headers[i]);
}}catch(_){}xhr.send((s.hasContent&&s.data)||null);
callback=function(_,isAbort){var status,statusText,responseHeaders,responses,xml;
try{if(callback&&(isAbort||xhr.readyState===4)){callback=undefined;
if(handle){xhr.onreadystatechange=jQuery.noop;
if(xhrOnUnloadAbort){delete xhrCallbacks[handle];
}}if(isAbort){if(xhr.readyState!==4){xhr.abort();
}}else{status=xhr.status;
responseHeaders=xhr.getAllResponseHeaders();
responses={};
xml=xhr.responseXML;
if(xml&&xml.documentElement){responses.xml=xml;
}try{responses.text=xhr.responseText;
}catch(e){}try{statusText=xhr.statusText;
}catch(e){statusText="";
}if(!status&&s.isLocal&&!s.crossDomain){status=responses.text?200:404;
}else{if(status===1223){status=204;
}}}}}catch(firefoxAccessException){if(!isAbort){complete(-1,firefoxAccessException);
}}if(responses){complete(status,statusText,responses,responseHeaders);
}};
if(!s.async){callback();
}else{if(xhr.readyState===4){setTimeout(callback,0);
}else{handle=++xhrId;
if(xhrOnUnloadAbort){if(!xhrCallbacks){xhrCallbacks={};
jQuery(window).unload(xhrOnUnloadAbort);
}xhrCallbacks[handle]=callback;
}xhr.onreadystatechange=callback;
}}},abort:function(){if(callback){callback(0,1);
}}};
}});
}var fxNow,timerId,rfxtypes=/^(?:toggle|show|hide)$/,rfxnum=new RegExp("^(?:([-+])=|)("+core_pnum+")([a-z%]*)$","i"),rrun=/queueHooks$/,animationPrefilters=[defaultPrefilter],tweeners={"*":[function(prop,value){var end,unit,tween=this.createTween(prop,value),parts=rfxnum.exec(value),target=tween.cur(),start=+target||0,scale=1,maxIterations=20;
if(parts){end=+parts[2];
unit=parts[3]||(jQuery.cssNumber[prop]?"":"px");
if(unit!=="px"&&start){start=jQuery.css(tween.elem,prop,true)||end||1;
do{scale=scale||".5";
start=start/scale;
jQuery.style(tween.elem,prop,start+unit);
}while(scale!==(scale=tween.cur()/target)&&scale!==1&&--maxIterations);
}tween.unit=unit;
tween.start=start;
tween.end=parts[1]?start+(parts[1]+1)*end:end;
}return tween;
}]};
function createFxNow(){setTimeout(function(){fxNow=undefined;
},0);
return(fxNow=jQuery.now());
}function createTweens(animation,props){jQuery.each(props,function(prop,value){var collection=(tweeners[prop]||[]).concat(tweeners["*"]),index=0,length=collection.length;
for(;
index<length;
index++){if(collection[index].call(animation,prop,value)){return ;
}}});
}function Animation(elem,properties,options){var result,index=0,tweenerIndex=0,length=animationPrefilters.length,deferred=jQuery.Deferred().always(function(){delete tick.elem;
}),tick=function(){var currentTime=fxNow||createFxNow(),remaining=Math.max(0,animation.startTime+animation.duration-currentTime),temp=remaining/animation.duration||0,percent=1-temp,index=0,length=animation.tweens.length;
for(;
index<length;
index++){animation.tweens[index].run(percent);
}deferred.notifyWith(elem,[animation,percent,remaining]);
if(percent<1&&length){return remaining;
}else{deferred.resolveWith(elem,[animation]);
return false;
}},animation=deferred.promise({elem:elem,props:jQuery.extend({},properties),opts:jQuery.extend(true,{specialEasing:{}},options),originalProperties:properties,originalOptions:options,startTime:fxNow||createFxNow(),duration:options.duration,tweens:[],createTween:function(prop,end,easing){var tween=jQuery.Tween(elem,animation.opts,prop,end,animation.opts.specialEasing[prop]||animation.opts.easing);
animation.tweens.push(tween);
return tween;
},stop:function(gotoEnd){var index=0,length=gotoEnd?animation.tweens.length:0;
for(;
index<length;
index++){animation.tweens[index].run(1);
}if(gotoEnd){deferred.resolveWith(elem,[animation,gotoEnd]);
}else{deferred.rejectWith(elem,[animation,gotoEnd]);
}return this;
}}),props=animation.props;
propFilter(props,animation.opts.specialEasing);
for(;
index<length;
index++){result=animationPrefilters[index].call(animation,elem,props,animation.opts);
if(result){return result;
}}createTweens(animation,props);
if(jQuery.isFunction(animation.opts.start)){animation.opts.start.call(elem,animation);
}jQuery.fx.timer(jQuery.extend(tick,{anim:animation,queue:animation.opts.queue,elem:elem}));
return animation.progress(animation.opts.progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always);
}function propFilter(props,specialEasing){var index,name,easing,value,hooks;
for(index in props){name=jQuery.camelCase(index);
easing=specialEasing[name];
value=props[index];
if(jQuery.isArray(value)){easing=value[1];
value=props[index]=value[0];
}if(index!==name){props[name]=value;
delete props[index];
}hooks=jQuery.cssHooks[name];
if(hooks&&"expand" in hooks){value=hooks.expand(value);
delete props[name];
for(index in value){if(!(index in props)){props[index]=value[index];
specialEasing[index]=easing;
}}}else{specialEasing[name]=easing;
}}}jQuery.Animation=jQuery.extend(Animation,{tweener:function(props,callback){if(jQuery.isFunction(props)){callback=props;
props=["*"];
}else{props=props.split(" ");
}var prop,index=0,length=props.length;
for(;
index<length;
index++){prop=props[index];
tweeners[prop]=tweeners[prop]||[];
tweeners[prop].unshift(callback);
}},prefilter:function(callback,prepend){if(prepend){animationPrefilters.unshift(callback);
}else{animationPrefilters.push(callback);
}}});
function defaultPrefilter(elem,props,opts){var index,prop,value,length,dataShow,toggle,tween,hooks,oldfire,anim=this,style=elem.style,orig={},handled=[],hidden=elem.nodeType&&isHidden(elem);
if(!opts.queue){hooks=jQuery._queueHooks(elem,"fx");
if(hooks.unqueued==null){hooks.unqueued=0;
oldfire=hooks.empty.fire;
hooks.empty.fire=function(){if(!hooks.unqueued){oldfire();
}};
}hooks.unqueued++;
anim.always(function(){anim.always(function(){hooks.unqueued--;
if(!jQuery.queue(elem,"fx").length){hooks.empty.fire();
}});
});
}if(elem.nodeType===1&&("height" in props||"width" in props)){opts.overflow=[style.overflow,style.overflowX,style.overflowY];
if(jQuery.css(elem,"display")==="inline"&&jQuery.css(elem,"float")==="none"){if(!jQuery.support.inlineBlockNeedsLayout||css_defaultDisplay(elem.nodeName)==="inline"){style.display="inline-block";
}else{style.zoom=1;
}}}if(opts.overflow){style.overflow="hidden";
if(!jQuery.support.shrinkWrapBlocks){anim.done(function(){style.overflow=opts.overflow[0];
style.overflowX=opts.overflow[1];
style.overflowY=opts.overflow[2];
});
}}for(index in props){value=props[index];
if(rfxtypes.exec(value)){delete props[index];
toggle=toggle||value==="toggle";
if(value===(hidden?"hide":"show")){continue;
}handled.push(index);
}}length=handled.length;
if(length){dataShow=jQuery._data(elem,"fxshow")||jQuery._data(elem,"fxshow",{});
if("hidden" in dataShow){hidden=dataShow.hidden;
}if(toggle){dataShow.hidden=!hidden;
}if(hidden){jQuery(elem).show();
}else{anim.done(function(){jQuery(elem).hide();
});
}anim.done(function(){var prop;
jQuery.removeData(elem,"fxshow",true);
for(prop in orig){jQuery.style(elem,prop,orig[prop]);
}});
for(index=0;
index<length;
index++){prop=handled[index];
tween=anim.createTween(prop,hidden?dataShow[prop]:0);
orig[prop]=dataShow[prop]||jQuery.style(elem,prop);
if(!(prop in dataShow)){dataShow[prop]=tween.start;
if(hidden){tween.end=tween.start;
tween.start=prop==="width"||prop==="height"?1:0;
}}}}}function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing);
}jQuery.Tween=Tween;
Tween.prototype={constructor:Tween,init:function(elem,options,prop,end,easing,unit){this.elem=elem;
this.prop=prop;
this.easing=easing||"swing";
this.options=options;
this.start=this.now=this.cur();
this.end=end;
this.unit=unit||(jQuery.cssNumber[prop]?"":"px");
},cur:function(){var hooks=Tween.propHooks[this.prop];
return hooks&&hooks.get?hooks.get(this):Tween.propHooks._default.get(this);
},run:function(percent){var eased,hooks=Tween.propHooks[this.prop];
if(this.options.duration){this.pos=eased=jQuery.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration);
}else{this.pos=eased=percent;
}this.now=(this.end-this.start)*eased+this.start;
if(this.options.step){this.options.step.call(this.elem,this.now,this);
}if(hooks&&hooks.set){hooks.set(this);
}else{Tween.propHooks._default.set(this);
}return this;
}};
Tween.prototype.init.prototype=Tween.prototype;
Tween.propHooks={_default:{get:function(tween){var result;
if(tween.elem[tween.prop]!=null&&(!tween.elem.style||tween.elem.style[tween.prop]==null)){return tween.elem[tween.prop];
}result=jQuery.css(tween.elem,tween.prop,false,"");
return !result||result==="auto"?0:result;
},set:function(tween){if(jQuery.fx.step[tween.prop]){jQuery.fx.step[tween.prop](tween);
}else{if(tween.elem.style&&(tween.elem.style[jQuery.cssProps[tween.prop]]!=null||jQuery.cssHooks[tween.prop])){jQuery.style(tween.elem,tween.prop,tween.now+tween.unit);
}else{tween.elem[tween.prop]=tween.now;
}}}}};
Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(tween){if(tween.elem.nodeType&&tween.elem.parentNode){tween.elem[tween.prop]=tween.now;
}}};
jQuery.each(["toggle","show","hide"],function(i,name){var cssFn=jQuery.fn[name];
jQuery.fn[name]=function(speed,easing,callback){return speed==null||typeof speed==="boolean"||(!i&&jQuery.isFunction(speed)&&jQuery.isFunction(easing))?cssFn.apply(this,arguments):this.animate(genFx(name,true),speed,easing,callback);
};
});
jQuery.fn.extend({fadeTo:function(speed,to,easing,callback){return this.filter(isHidden).css("opacity",0).show().end().animate({opacity:to},speed,easing,callback);
},animate:function(prop,speed,easing,callback){var empty=jQuery.isEmptyObject(prop),optall=jQuery.speed(speed,easing,callback),doAnimation=function(){var anim=Animation(this,jQuery.extend({},prop),optall);
if(empty){anim.stop(true);
}};
return empty||optall.queue===false?this.each(doAnimation):this.queue(optall.queue,doAnimation);
},stop:function(type,clearQueue,gotoEnd){var stopQueue=function(hooks){var stop=hooks.stop;
delete hooks.stop;
stop(gotoEnd);
};
if(typeof type!=="string"){gotoEnd=clearQueue;
clearQueue=type;
type=undefined;
}if(clearQueue&&type!==false){this.queue(type||"fx",[]);
}return this.each(function(){var dequeue=true,index=type!=null&&type+"queueHooks",timers=jQuery.timers,data=jQuery._data(this);
if(index){if(data[index]&&data[index].stop){stopQueue(data[index]);
}}else{for(index in data){if(data[index]&&data[index].stop&&rrun.test(index)){stopQueue(data[index]);
}}}for(index=timers.length;
index--;
){if(timers[index].elem===this&&(type==null||timers[index].queue===type)){timers[index].anim.stop(gotoEnd);
dequeue=false;
timers.splice(index,1);
}}if(dequeue||!gotoEnd){jQuery.dequeue(this,type);
}});
}});
function genFx(type,includeWidth){var which,attrs={height:type},i=0;
includeWidth=includeWidth?1:0;
for(;
i<4;
i+=2-includeWidth){which=cssExpand[i];
attrs["margin"+which]=attrs["padding"+which]=type;
}if(includeWidth){attrs.opacity=attrs.width=type;
}return attrs;
}jQuery.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(name,props){jQuery.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback);
};
});
jQuery.speed=function(speed,easing,fn){var opt=speed&&typeof speed==="object"?jQuery.extend({},speed):{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!jQuery.isFunction(easing)&&easing};
opt.duration=jQuery.fx.off?0:typeof opt.duration==="number"?opt.duration:opt.duration in jQuery.fx.speeds?jQuery.fx.speeds[opt.duration]:jQuery.fx.speeds._default;
if(opt.queue==null||opt.queue===true){opt.queue="fx";
}opt.old=opt.complete;
opt.complete=function(){if(jQuery.isFunction(opt.old)){opt.old.call(this);
}if(opt.queue){jQuery.dequeue(this,opt.queue);
}};
return opt;
};
jQuery.easing={linear:function(p){return p;
},swing:function(p){return 0.5-Math.cos(p*Math.PI)/2;
}};
jQuery.timers=[];
jQuery.fx=Tween.prototype.init;
jQuery.fx.tick=function(){var timer,timers=jQuery.timers,i=0;
fxNow=jQuery.now();
for(;
i<timers.length;
i++){timer=timers[i];
if(!timer()&&timers[i]===timer){timers.splice(i--,1);
}}if(!timers.length){jQuery.fx.stop();
}fxNow=undefined;
};
jQuery.fx.timer=function(timer){if(timer()&&jQuery.timers.push(timer)&&!timerId){timerId=setInterval(jQuery.fx.tick,jQuery.fx.interval);
}};
jQuery.fx.interval=13;
jQuery.fx.stop=function(){clearInterval(timerId);
timerId=null;
};
jQuery.fx.speeds={slow:600,fast:200,_default:400};
jQuery.fx.step={};
if(jQuery.expr&&jQuery.expr.filters){jQuery.expr.filters.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem;
}).length;
};
}var rroot=/^(?:body|html)$/i;
jQuery.fn.offset=function(options){if(arguments.length){return options===undefined?this:this.each(function(i){jQuery.offset.setOffset(this,options,i);
});
}var docElem,body,win,clientTop,clientLeft,scrollTop,scrollLeft,box={top:0,left:0},elem=this[0],doc=elem&&elem.ownerDocument;
if(!doc){return ;
}if((body=doc.body)===elem){return jQuery.offset.bodyOffset(elem);
}docElem=doc.documentElement;
if(!jQuery.contains(docElem,elem)){return box;
}if(typeof elem.getBoundingClientRect!=="undefined"){box=elem.getBoundingClientRect();
}win=getWindow(doc);
clientTop=docElem.clientTop||body.clientTop||0;
clientLeft=docElem.clientLeft||body.clientLeft||0;
scrollTop=win.pageYOffset||docElem.scrollTop;
scrollLeft=win.pageXOffset||docElem.scrollLeft;
return{top:box.top+scrollTop-clientTop,left:box.left+scrollLeft-clientLeft};
};
jQuery.offset={bodyOffset:function(body){var top=body.offsetTop,left=body.offsetLeft;
if(jQuery.support.doesNotIncludeMarginInBodyOffset){top+=parseFloat(jQuery.css(body,"marginTop"))||0;
left+=parseFloat(jQuery.css(body,"marginLeft"))||0;
}return{top:top,left:left};
},setOffset:function(elem,options,i){var position=jQuery.css(elem,"position");
if(position==="static"){elem.style.position="relative";
}var curElem=jQuery(elem),curOffset=curElem.offset(),curCSSTop=jQuery.css(elem,"top"),curCSSLeft=jQuery.css(elem,"left"),calculatePosition=(position==="absolute"||position==="fixed")&&jQuery.inArray("auto",[curCSSTop,curCSSLeft])>-1,props={},curPosition={},curTop,curLeft;
if(calculatePosition){curPosition=curElem.position();
curTop=curPosition.top;
curLeft=curPosition.left;
}else{curTop=parseFloat(curCSSTop)||0;
curLeft=parseFloat(curCSSLeft)||0;
}if(jQuery.isFunction(options)){options=options.call(elem,i,curOffset);
}if(options.top!=null){props.top=(options.top-curOffset.top)+curTop;
}if(options.left!=null){props.left=(options.left-curOffset.left)+curLeft;
}if("using" in options){options.using.call(elem,props);
}else{curElem.css(props);
}}};
jQuery.fn.extend({position:function(){if(!this[0]){return ;
}var elem=this[0],offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=rroot.test(offsetParent[0].nodeName)?{top:0,left:0}:offsetParent.offset();
offset.top-=parseFloat(jQuery.css(elem,"marginTop"))||0;
offset.left-=parseFloat(jQuery.css(elem,"marginLeft"))||0;
parentOffset.top+=parseFloat(jQuery.css(offsetParent[0],"borderTopWidth"))||0;
parentOffset.left+=parseFloat(jQuery.css(offsetParent[0],"borderLeftWidth"))||0;
return{top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};
},offsetParent:function(){return this.map(function(){var offsetParent=this.offsetParent||document.body;
while(offsetParent&&(!rroot.test(offsetParent.nodeName)&&jQuery.css(offsetParent,"position")==="static")){offsetParent=offsetParent.offsetParent;
}return offsetParent||document.body;
});
}});
jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){var top=/Y/.test(prop);
jQuery.fn[method]=function(val){return jQuery.access(this,function(elem,method,val){var win=getWindow(elem);
if(val===undefined){return win?(prop in win)?win[prop]:win.document.documentElement[method]:elem[method];
}if(win){win.scrollTo(!top?val:jQuery(win).scrollLeft(),top?val:jQuery(win).scrollTop());
}else{elem[method]=val;
}},method,val,arguments.length,null);
};
});
function getWindow(elem){return jQuery.isWindow(elem)?elem:elem.nodeType===9?elem.defaultView||elem.parentWindow:false;
}jQuery.each({Height:"height",Width:"width"},function(name,type){jQuery.each({padding:"inner"+name,content:type,"":"outer"+name},function(defaultExtra,funcName){jQuery.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"),extra=defaultExtra||(margin===true||value===true?"margin":"border");
return jQuery.access(this,function(elem,type,value){var doc;
if(jQuery.isWindow(elem)){return elem.document.documentElement["client"+name];
}if(elem.nodeType===9){doc=elem.documentElement;
return Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name]);
}return value===undefined?jQuery.css(elem,type,value,extra):jQuery.style(elem,type,value,extra);
},type,chainable?margin:undefined,chainable,null);
};
});
});
window.jQuery=window.$=jQuery;
if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return jQuery;
});
}})(window);
/* jQuery UI - v1.9.2 - 2013-03-22
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.menu.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js, jquery.ui.effect.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js
* Copyright 2013 jQuery Foundation and other contributors Licensed MIT */
(function(B,F){var A=0,E=/^ui-id-\d+$/;
B.ui=B.ui||{};
if(B.ui.version){return ;
}B.extend(B.ui,{version:"1.9.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,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,SPACE:32,TAB:9,UP:38}});
B.fn.extend({_focus:B.fn.focus,focus:function(G,H){return typeof G==="number"?this.each(function(){var I=this;
setTimeout(function(){B(I).focus();
if(H){H.call(I);
}},G);
}):this._focus.apply(this,arguments);
},scrollParent:function(){var G;
if((B.ui.ie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){G=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(B.css(this,"position"))&&(/(auto|scroll)/).test(B.css(this,"overflow")+B.css(this,"overflow-y")+B.css(this,"overflow-x"));
}).eq(0);
}else{G=this.parents().filter(function(){return(/(auto|scroll)/).test(B.css(this,"overflow")+B.css(this,"overflow-y")+B.css(this,"overflow-x"));
}).eq(0);
}return(/fixed/).test(this.css("position"))||!G.length?B(document):G;
},zIndex:function(J){if(J!==F){return this.css("zIndex",J);
}if(this.length){var H=B(this[0]),G,I;
while(H.length&&H[0]!==document){G=H.css("position");
if(G==="absolute"||G==="relative"||G==="fixed"){I=parseInt(H.css("zIndex"),10);
if(!isNaN(I)&&I!==0){return I;
}}H=H.parent();
}}return 0;
},uniqueId:function(){return this.each(function(){if(!this.id){this.id="ui-id-"+(++A);
}});
},removeUniqueId:function(){return this.each(function(){if(E.test(this.id)){B(this).removeAttr("id");
}});
}});
function D(I,G){var K,J,H,L=I.nodeName.toLowerCase();
if("area"===L){K=I.parentNode;
J=K.name;
if(!I.href||!J||K.nodeName.toLowerCase()!=="map"){return false;
}H=B("img[usemap=#"+J+"]")[0];
return !!H&&C(H);
}return(/input|select|textarea|button|object/.test(L)?!I.disabled:"a"===L?I.href||G:G)&&C(I);
}function C(G){return B.expr.filters.visible(G)&&!B(G).parents().andSelf().filter(function(){return B.css(this,"visibility")==="hidden";
}).length;
}B.extend(B.expr[":"],{data:B.expr.createPseudo?B.expr.createPseudo(function(G){return function(H){return !!B.data(H,G);
};
}):function(I,H,G){return !!B.data(I,G[3]);
},focusable:function(G){return D(G,!isNaN(B.attr(G,"tabindex")));
},tabbable:function(I){var G=B.attr(I,"tabindex"),H=isNaN(G);
return(H||G>=0)&&D(I,!H);
}});
B(function(){var G=document.body,H=G.appendChild(H=document.createElement("div"));
H.offsetHeight;
B.extend(H.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});
B.support.minHeight=H.offsetHeight===100;
B.support.selectstart="onselectstart" in H;
G.removeChild(H).style.display="none";
});
if(!B("<a>").outerWidth(1).jquery){B.each(["Width","Height"],function(I,G){var H=G==="Width"?["Left","Right"]:["Top","Bottom"],J=G.toLowerCase(),L={innerWidth:B.fn.innerWidth,innerHeight:B.fn.innerHeight,outerWidth:B.fn.outerWidth,outerHeight:B.fn.outerHeight};
function K(O,N,M,P){B.each(H,function(){N-=parseFloat(B.css(O,"padding"+this))||0;
if(M){N-=parseFloat(B.css(O,"border"+this+"Width"))||0;
}if(P){N-=parseFloat(B.css(O,"margin"+this))||0;
}});
return N;
}B.fn["inner"+G]=function(M){if(M===F){return L["inner"+G].call(this);
}return this.each(function(){B(this).css(J,K(this,M)+"px");
});
};
B.fn["outer"+G]=function(M,N){if(typeof M!=="number"){return L["outer"+G].call(this,M);
}return this.each(function(){B(this).css(J,K(this,M,true,N)+"px");
});
};
});
}if(B("<a>").data("a-b","a").removeData("a-b").data("a-b")){B.fn.removeData=(function(G){return function(H){if(arguments.length){return G.call(this,B.camelCase(H));
}else{return G.call(this);
}};
})(B.fn.removeData);
}(function(){var G=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];
B.ui.ie=G.length?true:false;
B.ui.ie6=parseFloat(G[1],10)===6;
})();
B.fn.extend({disableSelection:function(){return this.bind((B.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(G){G.preventDefault();
});
},enableSelection:function(){return this.unbind(".ui-disableSelection");
}});
B.extend(B.ui,{plugin:{add:function(H,I,K){var G,J=B.ui[H].prototype;
for(G in K){J.plugins[G]=J.plugins[G]||[];
J.plugins[G].push([I,K[G]]);
}},call:function(G,I,H){var J,K=G.plugins[I];
if(!K||!G.element[0].parentNode||G.element[0].parentNode.nodeType===11){return ;
}for(J=0;
J<K.length;
J++){if(G.options[K[J][0]]){K[J][1].apply(G.element,H);
}}}},contains:B.contains,hasScroll:function(J,H){if(B(J).css("overflow")==="hidden"){return false;
}var G=(H&&H==="left")?"scrollLeft":"scrollTop",I=false;
if(J[G]>0){return true;
}J[G]=1;
I=(J[G]>0);
J[G]=0;
return I;
},isOverAxis:function(H,G,I){return(H>G)&&(H<(G+I));
},isOver:function(L,H,K,J,G,I){return B.ui.isOverAxis(L,K,G)&&B.ui.isOverAxis(H,J,I);
}});
})(jQuery);
(function(B,E){var A=0,D=Array.prototype.slice,C=B.cleanData;
B.cleanData=function(F){for(var G=0,H;
(H=F[G])!=null;
G++){try{B(H).triggerHandler("remove");
}catch(I){}}C(F);
};
B.widget=function(G,J,F){var M,L,I,K,H=G.split(".")[0];
G=G.split(".")[1];
M=H+"-"+G;
if(!F){F=J;
J=B.Widget;
}B.expr[":"][M.toLowerCase()]=function(N){return !!B.data(N,M);
};
B[H]=B[H]||{};
L=B[H][G];
I=B[H][G]=function(N,O){if(!this._createWidget){return new I(N,O);
}if(arguments.length){this._createWidget(N,O);
}};
B.extend(I,L,{version:F.version,_proto:B.extend({},F),_childConstructors:[]});
K=new J();
K.options=B.widget.extend({},K.options);
B.each(F,function(O,N){if(B.isFunction(N)){F[O]=(function(){var P=function(){return J.prototype[O].apply(this,arguments);
},Q=function(R){return J.prototype[O].apply(this,R);
};
return function(){var T=this._super,R=this._superApply,S;
this._super=P;
this._superApply=Q;
S=N.apply(this,arguments);
this._super=T;
this._superApply=R;
return S;
};
})();
}});
I.prototype=B.widget.extend(K,{widgetEventPrefix:L?K.widgetEventPrefix:G},F,{constructor:I,namespace:H,widgetName:G,widgetBaseClass:M,widgetFullName:M});
if(L){B.each(L._childConstructors,function(O,P){var N=P.prototype;
B.widget(N.namespace+"."+N.widgetName,I,P._proto);
});
delete L._childConstructors;
}else{J._childConstructors.push(I);
}B.widget.bridge(G,I);
};
B.widget.extend=function(K){var G=D.call(arguments,1),J=0,F=G.length,H,I;
for(;
J<F;
J++){for(H in G[J]){I=G[J][H];
if(G[J].hasOwnProperty(H)&&I!==E){if(B.isPlainObject(I)){K[H]=B.isPlainObject(K[H])?B.widget.extend({},K[H],I):B.widget.extend({},I);
}else{K[H]=I;
}}}}return K;
};
B.widget.bridge=function(G,F){var H=F.prototype.widgetFullName||G;
B.fn[G]=function(K){var I=typeof K==="string",J=D.call(arguments,1),L=this;
K=!I&&J.length?B.widget.extend.apply(null,[K].concat(J)):K;
if(I){this.each(function(){var N,M=B.data(this,H);
if(!M){return B.error("cannot call methods on "+G+" prior to initialization; attempted to call method '"+K+"'");
}if(!B.isFunction(M[K])||K.charAt(0)==="_"){return B.error("no such method '"+K+"' for "+G+" widget instance");
}N=M[K].apply(M,J);
if(N!==M&&N!==E){L=N&&N.jquery?L.pushStack(N.get()):N;
return false;
}});
}else{this.each(function(){var M=B.data(this,H);
if(M){M.option(K||{})._init();
}else{B.data(this,H,new F(K,this));
}});
}return L;
};
};
B.Widget=function(){};
B.Widget._childConstructors=[];
B.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:false,create:null},_createWidget:function(F,G){G=B(G||this.defaultElement||this)[0];
this.element=B(G);
this.uuid=A++;
this.eventNamespace="."+this.widgetName+this.uuid;
this.options=B.widget.extend({},this.options,this._getCreateOptions(),F);
this.bindings=B();
this.hoverable=B();
this.focusable=B();
if(G!==this){B.data(G,this.widgetName,this);
B.data(G,this.widgetFullName,this);
this._on(true,this.element,{remove:function(H){if(H.target===G){this.destroy();
}}});
this.document=B(G.style?G.ownerDocument:G.document||G);
this.window=B(this.document[0].defaultView||this.document[0].parentWindow);
}this._create();
this._trigger("create",null,this._getCreateEventData());
this._init();
},_getCreateOptions:B.noop,_getCreateEventData:B.noop,_create:B.noop,_init:B.noop,destroy:function(){this._destroy();
this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(B.camelCase(this.widgetFullName));
this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");
this.bindings.unbind(this.eventNamespace);
this.hoverable.removeClass("ui-state-hover");
this.focusable.removeClass("ui-state-focus");
},_destroy:B.noop,widget:function(){return this.element;
},option:function(I,J){var F=I,K,H,G;
if(arguments.length===0){return B.widget.extend({},this.options);
}if(typeof I==="string"){F={};
K=I.split(".");
I=K.shift();
if(K.length){H=F[I]=B.widget.extend({},this.options[I]);
for(G=0;
G<K.length-1;
G++){H[K[G]]=H[K[G]]||{};
H=H[K[G]];
}I=K.pop();
if(J===E){return H[I]===E?null:H[I];
}H[I]=J;
}else{if(J===E){return this.options[I]===E?null:this.options[I];
}F[I]=J;
}}this._setOptions(F);
return this;
},_setOptions:function(F){var G;
for(G in F){this._setOption(G,F[G]);
}return this;
},_setOption:function(F,G){this.options[F]=G;
if(F==="disabled"){this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!G).attr("aria-disabled",G);
this.hoverable.removeClass("ui-state-hover");
this.focusable.removeClass("ui-state-focus");
}return this;
},enable:function(){return this._setOption("disabled",false);
},disable:function(){return this._setOption("disabled",true);
},_on:function(I,H,G){var J,F=this;
if(typeof I!=="boolean"){G=H;
H=I;
I=false;
}if(!G){G=H;
H=this.element;
J=this.widget();
}else{H=J=B(H);
this.bindings=this.bindings.add(H);
}B.each(G,function(P,O){function M(){if(!I&&(F.options.disabled===true||B(this).hasClass("ui-state-disabled"))){return ;
}return(typeof O==="string"?F[O]:O).apply(F,arguments);
}if(typeof O!=="string"){M.guid=O.guid=O.guid||M.guid||B.guid++;
}var N=P.match(/^(\w+)\s*(.*)$/),L=N[1]+F.eventNamespace,K=N[2];
if(K){J.delegate(K,L,M);
}else{H.bind(L,M);
}});
},_off:function(G,F){F=(F||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;
G.unbind(F).undelegate(F);
},_delay:function(I,H){function G(){return(typeof I==="string"?F[I]:I).apply(F,arguments);
}var F=this;
return setTimeout(G,H||0);
},_hoverable:function(F){this.hoverable=this.hoverable.add(F);
this._on(F,{mouseenter:function(G){B(G.currentTarget).addClass("ui-state-hover");
},mouseleave:function(G){B(G.currentTarget).removeClass("ui-state-hover");
}});
},_focusable:function(F){this.focusable=this.focusable.add(F);
this._on(F,{focusin:function(G){B(G.currentTarget).addClass("ui-state-focus");
},focusout:function(G){B(G.currentTarget).removeClass("ui-state-focus");
}});
},_trigger:function(F,G,H){var K,J,I=this.options[F];
H=H||{};
G=B.Event(G);
G.type=(F===this.widgetEventPrefix?F:this.widgetEventPrefix+F).toLowerCase();
G.target=this.element[0];
J=G.originalEvent;
if(J){for(K in J){if(!(K in G)){G[K]=J[K];
}}}this.element.trigger(G,H);
return !(B.isFunction(I)&&I.apply(this.element[0],[G].concat(H))===false||G.isDefaultPrevented());
}};
B.each({show:"fadeIn",hide:"fadeOut"},function(G,F){B.Widget.prototype["_"+G]=function(J,I,L){if(typeof I==="string"){I={effect:I};
}var K,H=!I?G:I===true||typeof I==="number"?F:I.effect||F;
I=I||{};
if(typeof I==="number"){I={duration:I};
}K=!B.isEmptyObject(I);
I.complete=L;
if(I.delay){J.delay(I.delay);
}if(K&&B.effects&&(B.effects.effect[H]||B.uiBackCompat!==false&&B.effects[H])){J[G](I);
}else{if(H!==G&&J[H]){J[H](I.duration,I.easing,L);
}else{J.queue(function(M){B(this)[G]();
if(L){L.call(J[0]);
}M();
});
}}};
});
if(B.uiBackCompat!==false){B.Widget.prototype._getCreateOptions=function(){return B.metadata&&B.metadata.get(this.element[0])[this.widgetName];
};
}})(jQuery);
(function(B,C){var A=false;
B(document).mouseup(function(D){A=false;
});
B.widget("ui.mouse",{version:"1.9.2",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var D=this;
this.element.bind("mousedown."+this.widgetName,function(E){return D._mouseDown(E);
}).bind("click."+this.widgetName,function(E){if(true===B.data(E.target,D.widgetName+".preventClickEvent")){B.removeData(E.target,D.widgetName+".preventClickEvent");
E.stopImmediatePropagation();
return false;
}});
this.started=false;
},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);
if(this._mouseMoveDelegate){B(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);
}},_mouseDown:function(F){if(A){return ;
}(this._mouseStarted&&this._mouseUp(F));
this._mouseDownEvent=F;
var E=this,G=(F.which===1),D=(typeof this.options.cancel==="string"&&F.target.nodeName?B(F.target).closest(this.options.cancel).length:false);
if(!G||D||!this._mouseCapture(F)){return true;
}this.mouseDelayMet=!this.options.delay;
if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){E.mouseDelayMet=true;
},this.options.delay);
}if(this._mouseDistanceMet(F)&&this._mouseDelayMet(F)){this._mouseStarted=(this._mouseStart(F)!==false);
if(!this._mouseStarted){F.preventDefault();
return true;
}}if(true===B.data(F.target,this.widgetName+".preventClickEvent")){B.removeData(F.target,this.widgetName+".preventClickEvent");
}this._mouseMoveDelegate=function(H){return E._mouseMove(H);
};
this._mouseUpDelegate=function(H){return E._mouseUp(H);
};
B(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);
F.preventDefault();
A=true;
return true;
},_mouseMove:function(D){if(B.ui.ie&&!(document.documentMode>=9)&&!D.button){return this._mouseUp(D);
}if(this._mouseStarted){this._mouseDrag(D);
return D.preventDefault();
}if(this._mouseDistanceMet(D)&&this._mouseDelayMet(D)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,D)!==false);
(this._mouseStarted?this._mouseDrag(D):this._mouseUp(D));
}return !this._mouseStarted;
},_mouseUp:function(D){B(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);
if(this._mouseStarted){this._mouseStarted=false;
if(D.target===this._mouseDownEvent.target){B.data(D.target,this.widgetName+".preventClickEvent",true);
}this._mouseStop(D);
}return false;
},_mouseDistanceMet:function(D){return(Math.max(Math.abs(this._mouseDownEvent.pageX-D.pageX),Math.abs(this._mouseDownEvent.pageY-D.pageY))>=this.options.distance);
},_mouseDelayMet:function(D){return this.mouseDelayMet;
},_mouseStart:function(D){},_mouseDrag:function(D){},_mouseStop:function(D){},_mouseCapture:function(D){return true;
}});
})(jQuery);
(function(E,C){E.ui=E.ui||{};
var I,J=Math.max,N=Math.abs,L=Math.round,D=/left|center|right/,G=/top|center|bottom/,A=/[\+\-]\d+%?/,K=/^\w+/,B=/%$/,F=E.fn.position;
function M(Q,P,O){return[parseInt(Q[0],10)*(B.test(Q[0])?P/100:1),parseInt(Q[1],10)*(B.test(Q[1])?O/100:1)];
}function H(O,P){return parseInt(E.css(O,P),10)||0;
}E.position={scrollbarWidth:function(){if(I!==C){return I;
}var P,O,R=E("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),Q=R.children()[0];
E("body").append(R);
P=Q.offsetWidth;
R.css("overflow","scroll");
O=Q.offsetWidth;
if(P===O){O=R[0].clientWidth;
}R.remove();
return(I=P-O);
},getScrollInfo:function(S){var R=S.isWindow?"":S.element.css("overflow-x"),Q=S.isWindow?"":S.element.css("overflow-y"),P=R==="scroll"||(R==="auto"&&S.width<S.element[0].scrollWidth),O=Q==="scroll"||(Q==="auto"&&S.height<S.element[0].scrollHeight);
return{width:P?E.position.scrollbarWidth():0,height:O?E.position.scrollbarWidth():0};
},getWithinInfo:function(P){var Q=E(P||window),O=E.isWindow(Q[0]);
return{element:Q,isWindow:O,offset:Q.offset()||{left:0,top:0},scrollLeft:Q.scrollLeft(),scrollTop:Q.scrollTop(),width:O?Q.width():Q.outerWidth(),height:O?Q.height():Q.outerHeight()};
}};
E.fn.position=function(Y){if(!Y||!Y.of){return F.apply(this,arguments);
}Y=E.extend({},Y);
var Z,V,S,X,R,U=E(Y.of),Q=E.position.getWithinInfo(Y.within),O=E.position.getScrollInfo(Q),T=U[0],W=(Y.collision||"flip").split(" "),P={};
if(T.nodeType===9){V=U.width();
S=U.height();
X={top:0,left:0};
}else{if(E.isWindow(T)){V=U.width();
S=U.height();
X={top:U.scrollTop(),left:U.scrollLeft()};
}else{if(T.preventDefault){Y.at="left top";
V=S=0;
X={top:T.pageY,left:T.pageX};
}else{V=U.outerWidth();
S=U.outerHeight();
X=U.offset();
}}}R=E.extend({},X);
E.each(["my","at"],function(){var c=(Y[this]||"").split(" "),b,a;
if(c.length===1){c=D.test(c[0])?c.concat(["center"]):G.test(c[0])?["center"].concat(c):["center","center"];
}c[0]=D.test(c[0])?c[0]:"center";
c[1]=G.test(c[1])?c[1]:"center";
b=A.exec(c[0]);
a=A.exec(c[1]);
P[this]=[b?b[0]:0,a?a[0]:0];
Y[this]=[K.exec(c[0])[0],K.exec(c[1])[0]];
});
if(W.length===1){W[1]=W[0];
}if(Y.at[0]==="right"){R.left+=V;
}else{if(Y.at[0]==="center"){R.left+=V/2;
}}if(Y.at[1]==="bottom"){R.top+=S;
}else{if(Y.at[1]==="center"){R.top+=S/2;
}}Z=M(P.at,V,S);
R.left+=Z[0];
R.top+=Z[1];
return this.each(function(){var b,k,d=E(this),f=d.outerWidth(),c=d.outerHeight(),e=H(this,"marginLeft"),a=H(this,"marginTop"),j=f+e+H(this,"marginRight")+O.width,i=c+a+H(this,"marginBottom")+O.height,g=E.extend({},R),h=M(P.my,d.outerWidth(),d.outerHeight());
if(Y.my[0]==="right"){g.left-=f;
}else{if(Y.my[0]==="center"){g.left-=f/2;
}}if(Y.my[1]==="bottom"){g.top-=c;
}else{if(Y.my[1]==="center"){g.top-=c/2;
}}g.left+=h[0];
g.top+=h[1];
if(!E.support.offsetFractions){g.left=L(g.left);
g.top=L(g.top);
}b={marginLeft:e,marginTop:a};
E.each(["left","top"],function(m,l){if(E.ui.position[W[m]]){E.ui.position[W[m]][l](g,{targetWidth:V,targetHeight:S,elemWidth:f,elemHeight:c,collisionPosition:b,collisionWidth:j,collisionHeight:i,offset:[Z[0]+h[0],Z[1]+h[1]],my:Y.my,at:Y.at,within:Q,elem:d});
}});
if(E.fn.bgiframe){d.bgiframe();
}if(Y.using){k=function(o){var q=X.left-g.left,n=q+V-f,p=X.top-g.top,m=p+S-c,l={target:{element:U,left:X.left,top:X.top,width:V,height:S},element:{element:d,left:g.left,top:g.top,width:f,height:c},horizontal:n<0?"left":q>0?"right":"center",vertical:m<0?"top":p>0?"bottom":"middle"};
if(V<f&&N(q+n)<V){l.horizontal="center";
}if(S<c&&N(p+m)<S){l.vertical="middle";
}if(J(N(q),N(n))>J(N(p),N(m))){l.important="horizontal";
}else{l.important="vertical";
}Y.using.call(this,o,l);
};
}d.offset(E.extend(g,{using:k}));
});
};
E.ui.position={fit:{left:function(S,R){var Q=R.within,U=Q.isWindow?Q.scrollLeft:Q.offset.left,W=Q.width,T=S.left-R.collisionPosition.marginLeft,V=U-T,P=T+R.collisionWidth-W-U,O;
if(R.collisionWidth>W){if(V>0&&P<=0){O=S.left+V+R.collisionWidth-W-U;
S.left+=V-O;
}else{if(P>0&&V<=0){S.left=U;
}else{if(V>P){S.left=U+W-R.collisionWidth;
}else{S.left=U;
}}}}else{if(V>0){S.left+=V;
}else{if(P>0){S.left-=P;
}else{S.left=J(S.left-T,S.left);
}}}},top:function(R,Q){var P=Q.within,V=P.isWindow?P.scrollTop:P.offset.top,W=Q.within.height,T=R.top-Q.collisionPosition.marginTop,U=V-T,S=T+Q.collisionHeight-W-V,O;
if(Q.collisionHeight>W){if(U>0&&S<=0){O=R.top+U+Q.collisionHeight-W-V;
R.top+=U-O;
}else{if(S>0&&U<=0){R.top=V;
}else{if(U>S){R.top=V+W-Q.collisionHeight;
}else{R.top=V;
}}}}else{if(U>0){R.top+=U;
}else{if(S>0){R.top-=S;
}else{R.top=J(R.top-T,R.top);
}}}}},flip:{left:function(U,T){var S=T.within,Y=S.offset.left+S.scrollLeft,b=S.width,Q=S.isWindow?S.scrollLeft:S.offset.left,V=U.left-T.collisionPosition.marginLeft,Z=V-Q,P=V+T.collisionWidth-b-Q,X=T.my[0]==="left"?-T.elemWidth:T.my[0]==="right"?T.elemWidth:0,a=T.at[0]==="left"?T.targetWidth:T.at[0]==="right"?-T.targetWidth:0,R=-2*T.offset[0],O,W;
if(Z<0){O=U.left+X+a+R+T.collisionWidth-b-Y;
if(O<0||O<N(Z)){U.left+=X+a+R;
}}else{if(P>0){W=U.left-T.collisionPosition.marginLeft+X+a+R-Q;
if(W>0||N(W)<P){U.left+=X+a+R;
}}}},top:function(T,S){var R=S.within,a=R.offset.top+R.scrollTop,b=R.height,O=R.isWindow?R.scrollTop:R.offset.top,V=T.top-S.collisionPosition.marginTop,X=V-O,U=V+S.collisionHeight-b-O,Y=S.my[1]==="top",W=Y?-S.elemHeight:S.my[1]==="bottom"?S.elemHeight:0,c=S.at[1]==="top"?S.targetHeight:S.at[1]==="bottom"?-S.targetHeight:0,Q=-2*S.offset[1],Z,P;
if(X<0){P=T.top+W+c+Q+S.collisionHeight-b-a;
if((T.top+W+c+Q)>X&&(P<0||P<N(X))){T.top+=W+c+Q;
}}else{if(U>0){Z=T.top-S.collisionPosition.marginTop+W+c+Q-O;
if((T.top+W+c+Q)>U&&(Z>0||N(Z)<U)){T.top+=W+c+Q;
}}}}},flipfit:{left:function(){E.ui.position.flip.left.apply(this,arguments);
E.ui.position.fit.left.apply(this,arguments);
},top:function(){E.ui.position.flip.top.apply(this,arguments);
E.ui.position.fit.top.apply(this,arguments);
}}};
(function(){var S,U,P,R,Q,O=document.getElementsByTagName("body")[0],T=document.createElement("div");
S=document.createElement(O?"div":"body");
P={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};
if(O){E.extend(P,{position:"absolute",left:"-1000px",top:"-1000px"});
}for(Q in P){S.style[Q]=P[Q];
}S.appendChild(T);
U=O||document.documentElement;
U.insertBefore(S,U.firstChild);
T.style.cssText="position: absolute; left: 10.7432222px;";
R=E(T).offset().left;
E.support.offsetFractions=R>10&&R<11;
S.innerHTML="";
U.removeChild(S);
})();
if(E.uiBackCompat!==false){(function(P){var O=P.fn.position;
P.fn.position=function(R){if(!R||!R.offset){return O.call(this,R);
}var S=R.offset.split(" "),Q=R.at.split(" ");
if(S.length===1){S[1]=S[0];
}if(/^\d/.test(S[0])){S[0]="+"+S[0];
}if(/^\d/.test(S[1])){S[1]="+"+S[1];
}if(Q.length===1){if(/left|center|right/.test(Q[0])){Q[1]="center";
}else{Q[1]=Q[0];
Q[0]="center";
}}return O.call(this,P.extend(R,{at:Q[0]+S[0]+" "+Q[1]+S[1],offset:C}));
};
}(jQuery));
}}(jQuery));
(function(A,B){A.widget("ui.draggable",A.ui.mouse,{version:"1.9.2",widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative";
}(this.options.addClasses&&this.element.addClass("ui-draggable"));
(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));
this._mouseInit();
},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");
this._mouseDestroy();
},_mouseCapture:function(C){var D=this.options;
if(this.helper||D.disabled||A(C.target).is(".ui-resizable-handle")){return false;
}this.handle=this._getHandle(C);
if(!this.handle){return false;
}A(D.iframeFix===true?"iframe":D.iframeFix).each(function(){A('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(A(this).offset()).appendTo("body");
});
return true;
},_mouseStart:function(C){var D=this.options;
this.helper=this._createHelper(C);
this.helper.addClass("ui-draggable-dragging");
this._cacheHelperProportions();
if(A.ui.ddmanager){A.ui.ddmanager.current=this;
}this._cacheMargins();
this.cssPosition=this.helper.css("position");
this.scrollParent=this.helper.scrollParent();
this.offset=this.positionAbs=this.element.offset();
this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};
A.extend(this.offset,{click:{left:C.pageX-this.offset.left,top:C.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
this.originalPosition=this.position=this._generatePosition(C);
this.originalPageX=C.pageX;
this.originalPageY=C.pageY;
(D.cursorAt&&this._adjustOffsetFromHelper(D.cursorAt));
if(D.containment){this._setContainment();
}if(this._trigger("start",C)===false){this._clear();
return false;
}this._cacheHelperProportions();
if(A.ui.ddmanager&&!D.dropBehaviour){A.ui.ddmanager.prepareOffsets(this,C);
}this._mouseDrag(C,true);
if(A.ui.ddmanager){A.ui.ddmanager.dragStart(this,C);
}return true;
},_mouseDrag:function(C,E){this.position=this._generatePosition(C);
this.positionAbs=this._convertPositionTo("absolute");
if(!E){var D=this._uiHash();
if(this._trigger("drag",C,D)===false){this._mouseUp({});
return false;
}this.position=D.position;
}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px";
}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px";
}if(A.ui.ddmanager){A.ui.ddmanager.drag(this,C);
}return false;
},_mouseStop:function(E){var G=false;
if(A.ui.ddmanager&&!this.options.dropBehaviour){G=A.ui.ddmanager.drop(this,E);
}if(this.dropped){G=this.dropped;
this.dropped=false;
}var C=this.element[0],F=false;
while(C&&(C=C.parentNode)){if(C==document){F=true;
}}if(!F&&this.options.helper==="original"){return false;
}if((this.options.revert=="invalid"&&!G)||(this.options.revert=="valid"&&G)||this.options.revert===true||(A.isFunction(this.options.revert)&&this.options.revert.call(this.element,G))){var D=this;
A(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(D._trigger("stop",E)!==false){D._clear();
}});
}else{if(this._trigger("stop",E)!==false){this._clear();
}}return false;
},_mouseUp:function(C){A("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this);
});
if(A.ui.ddmanager){A.ui.ddmanager.dragStop(this,C);
}return A.ui.mouse.prototype._mouseUp.call(this,C);
},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({});
}else{this._clear();
}return this;
},_getHandle:function(C){var D=!this.options.handle||!A(this.options.handle,this.element).length?true:false;
A(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==C.target){D=true;
}});
return D;
},_createHelper:function(D){var E=this.options;
var C=A.isFunction(E.helper)?A(E.helper.apply(this.element[0],[D])):(E.helper=="clone"?this.element.clone().removeAttr("id"):this.element);
if(!C.parents("body").length){C.appendTo((E.appendTo=="parent"?this.element[0].parentNode:E.appendTo));
}if(C[0]!=this.element[0]&&!(/(fixed|absolute)/).test(C.css("position"))){C.css("position","absolute");
}return C;
},_adjustOffsetFromHelper:function(C){if(typeof C=="string"){C=C.split(" ");
}if(A.isArray(C)){C={left:+C[0],top:+C[1]||0};
}if("left" in C){this.offset.click.left=C.left+this.margins.left;
}if("right" in C){this.offset.click.left=this.helperProportions.width-C.right+this.margins.left;
}if("top" in C){this.offset.click.top=C.top+this.margins.top;
}if("bottom" in C){this.offset.click.top=this.helperProportions.height-C.bottom+this.margins.top;
}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();
var C=this.offsetParent.offset();
if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&A.contains(this.scrollParent[0],this.offsetParent[0])){C.left+=this.scrollParent.scrollLeft();
C.top+=this.scrollParent.scrollTop();
}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&A.ui.ie)){C={top:0,left:0};
}return{top:C.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:C.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};
},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var C=this.element.position();
return{top:C.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:C.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()};
}else{return{top:0,left:0};
}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0),right:(parseInt(this.element.css("marginRight"),10)||0),bottom:(parseInt(this.element.css("marginBottom"),10)||0)};
},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};
},_setContainment:function(){var F=this.options;
if(F.containment=="parent"){F.containment=this.helper[0].parentNode;
}if(F.containment=="document"||F.containment=="window"){this.containment=[F.containment=="document"?0:A(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,F.containment=="document"?0:A(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(F.containment=="document"?0:A(window).scrollLeft())+A(F.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(F.containment=="document"?0:A(window).scrollTop())+(A(F.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];
}if(!(/^(document|window|parent)$/).test(F.containment)&&F.containment.constructor!=Array){var G=A(F.containment);
var D=G[0];
if(!D){return ;
}var E=G.offset();
var C=(A(D).css("overflow")!="hidden");
this.containment=[(parseInt(A(D).css("borderLeftWidth"),10)||0)+(parseInt(A(D).css("paddingLeft"),10)||0),(parseInt(A(D).css("borderTopWidth"),10)||0)+(parseInt(A(D).css("paddingTop"),10)||0),(C?Math.max(D.scrollWidth,D.offsetWidth):D.offsetWidth)-(parseInt(A(D).css("borderLeftWidth"),10)||0)-(parseInt(A(D).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(C?Math.max(D.scrollHeight,D.offsetHeight):D.offsetHeight)-(parseInt(A(D).css("borderTopWidth"),10)||0)-(parseInt(A(D).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];
this.relative_container=G;
}else{if(F.containment.constructor==Array){this.containment=F.containment;
}}},_convertPositionTo:function(F,H){if(!H){H=this.position;
}var D=F=="absolute"?1:-1;
var E=this.options,C=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,G=(/(html|body)/i).test(C[0].tagName);
return{top:(H.top+this.offset.relative.top*D+this.offset.parent.top*D-((this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(G?0:C.scrollTop()))*D)),left:(H.left+this.offset.relative.left*D+this.offset.parent.left*D-((this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():G?0:C.scrollLeft())*D))};
},_generatePosition:function(D){var E=this.options,L=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,I=(/(html|body)/i).test(L[0].tagName);
var H=D.pageX;
var G=D.pageY;
if(this.originalPosition){var C;
if(this.containment){if(this.relative_container){var K=this.relative_container.offset();
C=[this.containment[0]+K.left,this.containment[1]+K.top,this.containment[2]+K.left,this.containment[3]+K.top];
}else{C=this.containment;
}if(D.pageX-this.offset.click.left<C[0]){H=C[0]+this.offset.click.left;
}if(D.pageY-this.offset.click.top<C[1]){G=C[1]+this.offset.click.top;
}if(D.pageX-this.offset.click.left>C[2]){H=C[2]+this.offset.click.left;
}if(D.pageY-this.offset.click.top>C[3]){G=C[3]+this.offset.click.top;
}}if(E.grid){var J=E.grid[1]?this.originalPageY+Math.round((G-this.originalPageY)/E.grid[1])*E.grid[1]:this.originalPageY;
G=C?(!(J-this.offset.click.top<C[1]||J-this.offset.click.top>C[3])?J:(!(J-this.offset.click.top<C[1])?J-E.grid[1]:J+E.grid[1])):J;
var F=E.grid[0]?this.originalPageX+Math.round((H-this.originalPageX)/E.grid[0])*E.grid[0]:this.originalPageX;
H=C?(!(F-this.offset.click.left<C[0]||F-this.offset.click.left>C[2])?F:(!(F-this.offset.click.left<C[0])?F-E.grid[0]:F+E.grid[0])):F;
}}return{top:(G-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+((this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(I?0:L.scrollTop())))),left:(H-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+((this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():I?0:L.scrollLeft())))};
},_clear:function(){this.helper.removeClass("ui-draggable-dragging");
if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove();
}this.helper=null;
this.cancelHelperRemoval=false;
},_trigger:function(C,D,E){E=E||this._uiHash();
A.ui.plugin.call(this,C,[D,E]);
if(C=="drag"){this.positionAbs=this._convertPositionTo("absolute");
}return A.Widget.prototype._trigger.call(this,C,D,E);
},plugins:{},_uiHash:function(C){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs};
}});
A.ui.plugin.add("draggable","connectToSortable",{start:function(D,F){var E=A(this).data("draggable"),G=E.options,C=A.extend({},F,{item:E.element});
E.sortables=[];
A(G.connectToSortable).each(function(){var H=A.data(this,"sortable");
if(H&&!H.options.disabled){E.sortables.push({instance:H,shouldRevert:H.options.revert});
H.refreshPositions();
H._trigger("activate",D,C);
}});
},stop:function(D,F){var E=A(this).data("draggable"),C=A.extend({},F,{item:E.element});
A.each(E.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;
E.cancelHelperRemoval=true;
this.instance.cancelHelperRemoval=false;
if(this.shouldRevert){this.instance.options.revert=true;
}this.instance._mouseStop(D);
this.instance.options.helper=this.instance.options._helper;
if(E.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"});
}}else{this.instance.cancelHelperRemoval=false;
this.instance._trigger("deactivate",D,C);
}});
},drag:function(D,G){var F=A(this).data("draggable"),C=this;
var E=function(J){var O=this.offset.click.top,N=this.offset.click.left;
var H=this.positionAbs.top,L=this.positionAbs.left;
var K=J.height,M=J.width;
var P=J.top,I=J.left;
return A.ui.isOver(H+O,L+N,P,I,K,M);
};
A.each(F.sortables,function(I){var H=false;
var J=this;
this.instance.positionAbs=F.positionAbs;
this.instance.helperProportions=F.helperProportions;
this.instance.offset.click=F.offset.click;
if(this.instance._intersectsWith(this.instance.containerCache)){H=true;
A.each(F.sortables,function(){this.instance.positionAbs=F.positionAbs;
this.instance.helperProportions=F.helperProportions;
this.instance.offset.click=F.offset.click;
if(this!=J&&this.instance._intersectsWith(this.instance.containerCache)&&A.ui.contains(J.instance.element[0],this.instance.element[0])){H=false;
}return H;
});
}if(H){if(!this.instance.isOver){this.instance.isOver=1;
this.instance.currentItem=A(C).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);
this.instance.options._helper=this.instance.options.helper;
this.instance.options.helper=function(){return G.helper[0];
};
D.target=this.instance.currentItem[0];
this.instance._mouseCapture(D,true);
this.instance._mouseStart(D,true,true);
this.instance.offset.click.top=F.offset.click.top;
this.instance.offset.click.left=F.offset.click.left;
this.instance.offset.parent.left-=F.offset.parent.left-this.instance.offset.parent.left;
this.instance.offset.parent.top-=F.offset.parent.top-this.instance.offset.parent.top;
F._trigger("toSortable",D);
F.dropped=this.instance.element;
F.currentItem=F.element;
this.instance.fromOutside=F;
}if(this.instance.currentItem){this.instance._mouseDrag(D);
}}else{if(this.instance.isOver){this.instance.isOver=0;
this.instance.cancelHelperRemoval=true;
this.instance.options.revert=false;
this.instance._trigger("out",D,this.instance._uiHash(this.instance));
this.instance._mouseStop(D,true);
this.instance.options.helper=this.instance.options._helper;
this.instance.currentItem.remove();
if(this.instance.placeholder){this.instance.placeholder.remove();
}F._trigger("fromSortable",D);
F.dropped=false;
}}});
}});
A.ui.plugin.add("draggable","cursor",{start:function(D,E){var C=A("body"),F=A(this).data("draggable").options;
if(C.css("cursor")){F._cursor=C.css("cursor");
}C.css("cursor",F.cursor);
},stop:function(C,D){var E=A(this).data("draggable").options;
if(E._cursor){A("body").css("cursor",E._cursor);
}}});
A.ui.plugin.add("draggable","opacity",{start:function(D,E){var C=A(E.helper),F=A(this).data("draggable").options;
if(C.css("opacity")){F._opacity=C.css("opacity");
}C.css("opacity",F.opacity);
},stop:function(C,D){var E=A(this).data("draggable").options;
if(E._opacity){A(D.helper).css("opacity",E._opacity);
}}});
A.ui.plugin.add("draggable","scroll",{start:function(D,E){var C=A(this).data("draggable");
if(C.scrollParent[0]!=document&&C.scrollParent[0].tagName!="HTML"){C.overflowOffset=C.scrollParent.offset();
}},drag:function(E,F){var D=A(this).data("draggable"),G=D.options,C=false;
if(D.scrollParent[0]!=document&&D.scrollParent[0].tagName!="HTML"){if(!G.axis||G.axis!="x"){if((D.overflowOffset.top+D.scrollParent[0].offsetHeight)-E.pageY<G.scrollSensitivity){D.scrollParent[0].scrollTop=C=D.scrollParent[0].scrollTop+G.scrollSpeed;
}else{if(E.pageY-D.overflowOffset.top<G.scrollSensitivity){D.scrollParent[0].scrollTop=C=D.scrollParent[0].scrollTop-G.scrollSpeed;
}}}if(!G.axis||G.axis!="y"){if((D.overflowOffset.left+D.scrollParent[0].offsetWidth)-E.pageX<G.scrollSensitivity){D.scrollParent[0].scrollLeft=C=D.scrollParent[0].scrollLeft+G.scrollSpeed;
}else{if(E.pageX-D.overflowOffset.left<G.scrollSensitivity){D.scrollParent[0].scrollLeft=C=D.scrollParent[0].scrollLeft-G.scrollSpeed;
}}}}else{if(!G.axis||G.axis!="x"){if(E.pageY-A(document).scrollTop()<G.scrollSensitivity){C=A(document).scrollTop(A(document).scrollTop()-G.scrollSpeed);
}else{if(A(window).height()-(E.pageY-A(document).scrollTop())<G.scrollSensitivity){C=A(document).scrollTop(A(document).scrollTop()+G.scrollSpeed);
}}}if(!G.axis||G.axis!="y"){if(E.pageX-A(document).scrollLeft()<G.scrollSensitivity){C=A(document).scrollLeft(A(document).scrollLeft()-G.scrollSpeed);
}else{if(A(window).width()-(E.pageX-A(document).scrollLeft())<G.scrollSensitivity){C=A(document).scrollLeft(A(document).scrollLeft()+G.scrollSpeed);
}}}}if(C!==false&&A.ui.ddmanager&&!G.dropBehaviour){A.ui.ddmanager.prepareOffsets(D,E);
}}});
A.ui.plugin.add("draggable","snap",{start:function(D,E){var C=A(this).data("draggable"),F=C.options;
C.snapElements=[];
A(F.snap.constructor!=String?(F.snap.items||":data(draggable)"):F.snap).each(function(){var H=A(this);
var G=H.offset();
if(this!=C.element[0]){C.snapElements.push({item:this,width:H.outerWidth(),height:H.outerHeight(),top:G.top,left:G.left});
}});
},drag:function(O,L){var F=A(this).data("draggable"),M=F.options;
var S=M.snapTolerance;
var R=L.offset.left,Q=R+F.helperProportions.width,E=L.offset.top,D=E+F.helperProportions.height;
for(var P=F.snapElements.length-1;
P>=0;
P--){var N=F.snapElements[P].left,K=N+F.snapElements[P].width,J=F.snapElements[P].top,U=J+F.snapElements[P].height;
if(!((N-S<R&&R<K+S&&J-S<E&&E<U+S)||(N-S<R&&R<K+S&&J-S<D&&D<U+S)||(N-S<Q&&Q<K+S&&J-S<E&&E<U+S)||(N-S<Q&&Q<K+S&&J-S<D&&D<U+S))){if(F.snapElements[P].snapping){(F.options.snap.release&&F.options.snap.release.call(F.element,O,A.extend(F._uiHash(),{snapItem:F.snapElements[P].item})));
}F.snapElements[P].snapping=false;
continue;
}if(M.snapMode!="inner"){var C=Math.abs(J-D)<=S;
var T=Math.abs(U-E)<=S;
var H=Math.abs(N-Q)<=S;
var I=Math.abs(K-R)<=S;
if(C){L.position.top=F._convertPositionTo("relative",{top:J-F.helperProportions.height,left:0}).top-F.margins.top;
}if(T){L.position.top=F._convertPositionTo("relative",{top:U,left:0}).top-F.margins.top;
}if(H){L.position.left=F._convertPositionTo("relative",{top:0,left:N-F.helperProportions.width}).left-F.margins.left;
}if(I){L.position.left=F._convertPositionTo("relative",{top:0,left:K}).left-F.margins.left;
}}var G=(C||T||H||I);
if(M.snapMode!="outer"){var C=Math.abs(J-E)<=S;
var T=Math.abs(U-D)<=S;
var H=Math.abs(N-R)<=S;
var I=Math.abs(K-Q)<=S;
if(C){L.position.top=F._convertPositionTo("relative",{top:J,left:0}).top-F.margins.top;
}if(T){L.position.top=F._convertPositionTo("relative",{top:U-F.helperProportions.height,left:0}).top-F.margins.top;
}if(H){L.position.left=F._convertPositionTo("relative",{top:0,left:N}).left-F.margins.left;
}if(I){L.position.left=F._convertPositionTo("relative",{top:0,left:K-F.helperProportions.width}).left-F.margins.left;
}}if(!F.snapElements[P].snapping&&(C||T||H||I||G)){(F.options.snap.snap&&F.options.snap.snap.call(F.element,O,A.extend(F._uiHash(),{snapItem:F.snapElements[P].item})));
}F.snapElements[P].snapping=(C||T||H||I||G);
}}});
A.ui.plugin.add("draggable","stack",{start:function(D,E){var G=A(this).data("draggable").options;
var F=A.makeArray(A(G.stack)).sort(function(I,H){return(parseInt(A(I).css("zIndex"),10)||0)-(parseInt(A(H).css("zIndex"),10)||0);
});
if(!F.length){return ;
}var C=parseInt(F[0].style.zIndex)||0;
A(F).each(function(H){this.style.zIndex=C+H;
});
this[0].style.zIndex=C+F.length;
}});
A.ui.plugin.add("draggable","zIndex",{start:function(D,E){var C=A(E.helper),F=A(this).data("draggable").options;
if(C.css("zIndex")){F._zIndex=C.css("zIndex");
}C.css("zIndex",F.zIndex);
},stop:function(C,D){var E=A(this).data("draggable").options;
if(E._zIndex){A(D.helper).css("zIndex",E._zIndex);
}}});
})(jQuery);
(function(A,B){A.widget("ui.droppable",{version:"1.9.2",widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var D=this.options,C=D.accept;
this.isover=0;
this.isout=1;
this.accept=A.isFunction(C)?C:function(E){return E.is(C);
};
this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};
A.ui.ddmanager.droppables[D.scope]=A.ui.ddmanager.droppables[D.scope]||[];
A.ui.ddmanager.droppables[D.scope].push(this);
(D.addClasses&&this.element.addClass("ui-droppable"));
},_destroy:function(){var C=A.ui.ddmanager.droppables[this.options.scope];
for(var D=0;
D<C.length;
D++){if(C[D]==this){C.splice(D,1);
}}this.element.removeClass("ui-droppable ui-droppable-disabled");
},_setOption:function(C,D){if(C=="accept"){this.accept=A.isFunction(D)?D:function(E){return E.is(D);
};
}A.Widget.prototype._setOption.apply(this,arguments);
},_activate:function(D){var C=A.ui.ddmanager.current;
if(this.options.activeClass){this.element.addClass(this.options.activeClass);
}(C&&this._trigger("activate",D,this.ui(C)));
},_deactivate:function(D){var C=A.ui.ddmanager.current;
if(this.options.activeClass){this.element.removeClass(this.options.activeClass);
}(C&&this._trigger("deactivate",D,this.ui(C)));
},_over:function(D){var C=A.ui.ddmanager.current;
if(!C||(C.currentItem||C.element)[0]==this.element[0]){return ;
}if(this.accept.call(this.element[0],(C.currentItem||C.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass);
}this._trigger("over",D,this.ui(C));
}},_out:function(D){var C=A.ui.ddmanager.current;
if(!C||(C.currentItem||C.element)[0]==this.element[0]){return ;
}if(this.accept.call(this.element[0],(C.currentItem||C.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass);
}this._trigger("out",D,this.ui(C));
}},_drop:function(D,E){var C=E||A.ui.ddmanager.current;
if(!C||(C.currentItem||C.element)[0]==this.element[0]){return false;
}var F=false;
this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var G=A.data(this,"droppable");
if(G.options.greedy&&!G.options.disabled&&G.options.scope==C.options.scope&&G.accept.call(G.element[0],(C.currentItem||C.element))&&A.ui.intersect(C,A.extend(G,{offset:G.element.offset()}),G.options.tolerance)){F=true;
return false;
}});
if(F){return false;
}if(this.accept.call(this.element[0],(C.currentItem||C.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass);
}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass);
}this._trigger("drop",D,this.ui(C));
return this.element;
}return false;
},ui:function(C){return{draggable:(C.currentItem||C.element),helper:C.helper,position:C.position,offset:C.positionAbs};
}});
A.ui.intersect=function(P,J,N){if(!J.offset){return false;
}var E=(P.positionAbs||P.position.absolute).left,D=E+P.helperProportions.width,M=(P.positionAbs||P.position.absolute).top,L=M+P.helperProportions.height;
var G=J.offset.left,C=G+J.proportions.width,O=J.offset.top,K=O+J.proportions.height;
switch(N){case"fit":return(G<=E&&D<=C&&O<=M&&L<=K);
break;
case"intersect":return(G<E+(P.helperProportions.width/2)&&D-(P.helperProportions.width/2)<C&&O<M+(P.helperProportions.height/2)&&L-(P.helperProportions.height/2)<K);
break;
case"pointer":var H=((P.positionAbs||P.position.absolute).left+(P.clickOffset||P.offset.click).left),I=((P.positionAbs||P.position.absolute).top+(P.clickOffset||P.offset.click).top),F=A.ui.isOver(I,H,O,G,J.proportions.height,J.proportions.width);
return F;
break;
case"touch":return((M>=O&&M<=K)||(L>=O&&L<=K)||(M<O&&L>K))&&((E>=G&&E<=C)||(D>=G&&D<=C)||(E<G&&D>C));
break;
default:return false;
break;
}};
A.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(F,H){var C=A.ui.ddmanager.droppables[F.options.scope]||[];
var G=H?H.type:null;
var I=(F.currentItem||F.element).find(":data(droppable)").andSelf();
droppablesLoop:for(var E=0;
E<C.length;
E++){if(C[E].options.disabled||(F&&!C[E].accept.call(C[E].element[0],(F.currentItem||F.element)))){continue;
}for(var D=0;
D<I.length;
D++){if(I[D]==C[E].element[0]){C[E].proportions.height=0;
continue droppablesLoop;
}}C[E].visible=C[E].element.css("display")!="none";
if(!C[E].visible){continue;
}if(G=="mousedown"){C[E]._activate.call(C[E],H);
}C[E].offset=C[E].element.offset();
C[E].proportions={width:C[E].element[0].offsetWidth,height:C[E].element[0].offsetHeight};
}},drop:function(C,D){var E=false;
A.each(A.ui.ddmanager.droppables[C.options.scope]||[],function(){if(!this.options){return ;
}if(!this.options.disabled&&this.visible&&A.ui.intersect(C,this,this.options.tolerance)){E=this._drop.call(this,D)||E;
}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],(C.currentItem||C.element))){this.isout=1;
this.isover=0;
this._deactivate.call(this,D);
}});
return E;
},dragStart:function(C,D){C.element.parentsUntil("body").bind("scroll.droppable",function(){if(!C.options.refreshPositions){A.ui.ddmanager.prepareOffsets(C,D);
}});
},drag:function(C,D){if(C.options.refreshPositions){A.ui.ddmanager.prepareOffsets(C,D);
}A.each(A.ui.ddmanager.droppables[C.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible){return ;
}var G=A.ui.intersect(C,this,this.options.tolerance);
var I=!G&&this.isover==1?"isout":(G&&this.isover==0?"isover":null);
if(!I){return ;
}var H;
if(this.options.greedy){var F=this.options.scope;
var E=this.element.parents(":data(droppable)").filter(function(){return A.data(this,"droppable").options.scope===F;
});
if(E.length){H=A.data(E[0],"droppable");
H.greedyChild=(I=="isover"?1:0);
}}if(H&&I=="isover"){H.isover=0;
H.isout=1;
H._out.call(H,D);
}this[I]=1;
this[I=="isout"?"isover":"isout"]=0;
this[I=="isover"?"_over":"_out"].call(this,D);
if(H&&I=="isout"){H.isout=0;
H.isover=1;
H._over.call(H,D);
}});
},dragStop:function(C,D){C.element.parentsUntil("body").unbind("scroll.droppable");
if(!C.options.refreshPositions){A.ui.ddmanager.prepareOffsets(C,D);
}}};
})(jQuery);
(function(C,D){C.widget("ui.resizable",C.ui.mouse,{version:"1.9.2",widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000},_create:function(){var H=this,J=this.options;
this.element.addClass("ui-resizable");
C.extend(this,{_aspectRatio:!!(J.aspectRatio),aspectRatio:J.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:J.helper||J.ghost||J.animate?J.helper||"ui-resizable-helper":null});
if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){this.element.wrap(C('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));
this.element=this.element.parent().data("resizable",this.element.data("resizable"));
this.elementIsWrapper=true;
this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});
this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});
this.originalResizeStyle=this.originalElement.css("resize");
this.originalElement.css("resize","none");
this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));
this.originalElement.css({margin:this.originalElement.css("margin")});
this._proportionallyResize();
}this.handles=J.handles||(!C(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});
if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw";
}var K=this.handles.split(",");
this.handles={};
for(var F=0;
F<K.length;
F++){var I=C.trim(K[F]),E="ui-resizable-"+I;
var G=C('<div class="ui-resizable-handle '+E+'"></div>');
G.css({zIndex:J.zIndex});
if("se"==I){G.addClass("ui-icon ui-icon-gripsmall-diagonal-se");
}this.handles[I]=".ui-resizable-"+I;
this.element.append(G);
}}this._renderAxis=function(P){P=P||this.element;
for(var M in this.handles){if(this.handles[M].constructor==String){this.handles[M]=C(this.handles[M],this.element).show();
}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var N=C(this.handles[M],this.element),O=0;
O=/sw|ne|nw|se|n|s/.test(M)?N.outerHeight():N.outerWidth();
var L=["padding",/ne|nw|n/.test(M)?"Top":/se|sw|s/.test(M)?"Bottom":/^e$/.test(M)?"Right":"Left"].join("");
P.css(L,O);
this._proportionallyResize();
}if(!C(this.handles[M]).length){continue;
}}};
this._renderAxis(this.element);
this._handles=C(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!H.resizing){if(this.className){var L=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);
}H.axis=L&&L[1]?L[1]:"se";
}});
if(J.autoHide){this._handles.hide();
C(this.element).addClass("ui-resizable-autohide").mouseenter(function(){if(J.disabled){return ;
}C(this).removeClass("ui-resizable-autohide");
H._handles.show();
}).mouseleave(function(){if(J.disabled){return ;
}if(!H.resizing){C(this).addClass("ui-resizable-autohide");
H._handles.hide();
}});
}this._mouseInit();
},_destroy:function(){this._mouseDestroy();
var E=function(G){C(G).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove();
};
if(this.elementIsWrapper){E(this.element);
var F=this.element;
this.originalElement.css({position:F.css("position"),width:F.outerWidth(),height:F.outerHeight(),top:F.css("top"),left:F.css("left")}).insertAfter(F);
F.remove();
}this.originalElement.css("resize",this.originalResizeStyle);
E(this.originalElement);
return this;
},_mouseCapture:function(F){var G=false;
for(var E in this.handles){if(C(this.handles[E])[0]==F.target){G=true;
}}return !this.options.disabled&&G;
},_mouseStart:function(G){var J=this.options,F=this.element.position(),E=this.element;
this.resizing=true;
this.documentScroll={top:C(document).scrollTop(),left:C(document).scrollLeft()};
if(E.is(".ui-draggable")||(/absolute/).test(E.css("position"))){E.css({position:"absolute",top:F.top,left:F.left});
}this._renderProxy();
var K=B(this.helper.css("left")),H=B(this.helper.css("top"));
if(J.containment){K+=C(J.containment).scrollLeft()||0;
H+=C(J.containment).scrollTop()||0;
}this.offset=this.helper.offset();
this.position={left:K,top:H};
this.size=this._helper?{width:E.outerWidth(),height:E.outerHeight()}:{width:E.width(),height:E.height()};
this.originalSize=this._helper?{width:E.outerWidth(),height:E.outerHeight()}:{width:E.width(),height:E.height()};
this.originalPosition={left:K,top:H};
this.sizeDiff={width:E.outerWidth()-E.width(),height:E.outerHeight()-E.height()};
this.originalMousePosition={left:G.pageX,top:G.pageY};
this.aspectRatio=(typeof J.aspectRatio=="number")?J.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);
var I=C(".ui-resizable-"+this.axis).css("cursor");
C("body").css("cursor",I=="auto"?this.axis+"-resize":I);
E.addClass("ui-resizable-resizing");
this._propagate("start",G);
return true;
},_mouseDrag:function(E){var G=this.helper,F=this.options,L={},K=this,I=this.originalMousePosition,M=this.axis;
var O=(E.pageX-I.left)||0,N=(E.pageY-I.top)||0;
var H=this._change[M];
if(!H){return false;
}var J=H.apply(this,[E,O,N]);
this._updateVirtualBoundaries(E.shiftKey);
if(this._aspectRatio||E.shiftKey){J=this._updateRatio(J,E);
}J=this._respectSize(J,E);
this._propagate("resize",E);
G.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});
if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize();
}this._updateCache(J);
this._trigger("resize",E,this.ui());
return false;
},_mouseStop:function(H){this.resizing=false;
var I=this.options,L=this;
if(this._helper){var G=this._proportionallyResizeElements,E=G.length&&(/textarea/i).test(G[0].nodeName),F=E&&C.ui.hasScroll(G[0],"left")?0:L.sizeDiff.height,K=E?0:L.sizeDiff.width;
var N={width:(L.helper.width()-K),height:(L.helper.height()-F)},J=(parseInt(L.element.css("left"),10)+(L.position.left-L.originalPosition.left))||null,M=(parseInt(L.element.css("top"),10)+(L.position.top-L.originalPosition.top))||null;
if(!I.animate){this.element.css(C.extend(N,{top:M,left:J}));
}L.helper.height(L.size.height);
L.helper.width(L.size.width);
if(this._helper&&!I.animate){this._proportionallyResize();
}}C("body").css("cursor","auto");
this.element.removeClass("ui-resizable-resizing");
this._propagate("stop",H);
if(this._helper){this.helper.remove();
}return false;
},_updateVirtualBoundaries:function(G){var J=this.options,I,H,F,K,E;
E={minWidth:A(J.minWidth)?J.minWidth:0,maxWidth:A(J.maxWidth)?J.maxWidth:Infinity,minHeight:A(J.minHeight)?J.minHeight:0,maxHeight:A(J.maxHeight)?J.maxHeight:Infinity};
if(this._aspectRatio||G){I=E.minHeight*this.aspectRatio;
F=E.minWidth/this.aspectRatio;
H=E.maxHeight*this.aspectRatio;
K=E.maxWidth/this.aspectRatio;
if(I>E.minWidth){E.minWidth=I;
}if(F>E.minHeight){E.minHeight=F;
}if(H<E.maxWidth){E.maxWidth=H;
}if(K<E.maxHeight){E.maxHeight=K;
}}this._vBoundaries=E;
},_updateCache:function(E){var F=this.options;
this.offset=this.helper.offset();
if(A(E.left)){this.position.left=E.left;
}if(A(E.top)){this.position.top=E.top;
}if(A(E.height)){this.size.height=E.height;
}if(A(E.width)){this.size.width=E.width;
}},_updateRatio:function(H,G){var I=this.options,J=this.position,F=this.size,E=this.axis;
if(A(H.height)){H.width=(H.height*this.aspectRatio);
}else{if(A(H.width)){H.height=(H.width/this.aspectRatio);
}}if(E=="sw"){H.left=J.left+(F.width-H.width);
H.top=null;
}if(E=="nw"){H.top=J.top+(F.height-H.height);
H.left=J.left+(F.width-H.width);
}return H;
},_respectSize:function(L,G){var J=this.helper,I=this._vBoundaries,Q=this._aspectRatio||G.shiftKey,P=this.axis,S=A(L.width)&&I.maxWidth&&(I.maxWidth<L.width),M=A(L.height)&&I.maxHeight&&(I.maxHeight<L.height),H=A(L.width)&&I.minWidth&&(I.minWidth>L.width),R=A(L.height)&&I.minHeight&&(I.minHeight>L.height);
if(H){L.width=I.minWidth;
}if(R){L.height=I.minHeight;
}if(S){L.width=I.maxWidth;
}if(M){L.height=I.maxHeight;
}var F=this.originalPosition.left+this.originalSize.width,O=this.position.top+this.size.height;
var K=/sw|nw|w/.test(P),E=/nw|ne|n/.test(P);
if(H&&K){L.left=F-I.minWidth;
}if(S&&K){L.left=F-I.maxWidth;
}if(R&&E){L.top=O-I.minHeight;
}if(M&&E){L.top=O-I.maxHeight;
}var N=!L.width&&!L.height;
if(N&&!L.left&&L.top){L.top=null;
}else{if(N&&!L.top&&L.left){L.left=null;
}}return L;
},_proportionallyResize:function(){var J=this.options;
if(!this._proportionallyResizeElements.length){return ;
}var G=this.helper||this.element;
for(var F=0;
F<this._proportionallyResizeElements.length;
F++){var H=this._proportionallyResizeElements[F];
if(!this.borderDif){var E=[H.css("borderTopWidth"),H.css("borderRightWidth"),H.css("borderBottomWidth"),H.css("borderLeftWidth")],I=[H.css("paddingTop"),H.css("paddingRight"),H.css("paddingBottom"),H.css("paddingLeft")];
this.borderDif=C.map(E,function(K,M){var L=parseInt(K,10)||0,N=parseInt(I[M],10)||0;
return L+N;
});
}H.css({height:(G.height()-this.borderDif[0]-this.borderDif[2])||0,width:(G.width()-this.borderDif[1]-this.borderDif[3])||0});
}},_renderProxy:function(){var E=this.element,H=this.options;
this.elementOffset=E.offset();
if(this._helper){this.helper=this.helper||C('<div style="overflow:hidden;"></div>');
var F=(C.ui.ie6?1:0),G=(C.ui.ie6?2:-1);
this.helper.addClass(this._helper).css({width:this.element.outerWidth()+G,height:this.element.outerHeight()+G,position:"absolute",left:this.elementOffset.left-F+"px",top:this.elementOffset.top-F+"px",zIndex:++H.zIndex});
this.helper.appendTo("body").disableSelection();
}else{this.helper=this.element;
}},_change:{e:function(G,F,E){return{width:this.originalSize.width+F};
},w:function(H,F,E){var J=this.options,G=this.originalSize,I=this.originalPosition;
return{left:I.left+F,width:G.width-F};
},n:function(H,F,E){var J=this.options,G=this.originalSize,I=this.originalPosition;
return{top:I.top+E,height:G.height-E};
},s:function(G,F,E){return{height:this.originalSize.height+E};
},se:function(G,F,E){return C.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[G,F,E]));
},sw:function(G,F,E){return C.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[G,F,E]));
},ne:function(G,F,E){return C.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[G,F,E]));
},nw:function(G,F,E){return C.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[G,F,E]));
}},_propagate:function(F,E){C.ui.plugin.call(this,F,[E,this.ui()]);
(F!="resize"&&this._trigger(F,E,this.ui()));
},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition};
}});
C.ui.plugin.add("resizable","alsoResize",{start:function(F,G){var E=C(this).data("resizable"),I=E.options;
var H=function(J){C(J).each(function(){var K=C(this);
K.data("resizable-alsoresize",{width:parseInt(K.width(),10),height:parseInt(K.height(),10),left:parseInt(K.css("left"),10),top:parseInt(K.css("top"),10)});
});
};
if(typeof (I.alsoResize)=="object"&&!I.alsoResize.parentNode){if(I.alsoResize.length){I.alsoResize=I.alsoResize[0];
H(I.alsoResize);
}else{C.each(I.alsoResize,function(J){H(J);
});
}}else{H(I.alsoResize);
}},resize:function(G,I){var F=C(this).data("resizable"),J=F.options,H=F.originalSize,L=F.originalPosition;
var K={height:(F.size.height-H.height)||0,width:(F.size.width-H.width)||0,top:(F.position.top-L.top)||0,left:(F.position.left-L.left)||0},E=function(M,N){C(M).each(function(){var Q=C(this),R=C(this).data("resizable-alsoresize"),P={},O=N&&N.length?N:Q.parents(I.originalElement[0]).length?["width","height"]:["width","height","top","left"];
C.each(O,function(S,U){var T=(R[U]||0)+(K[U]||0);
if(T&&T>=0){P[U]=T||null;
}});
Q.css(P);
});
};
if(typeof (J.alsoResize)=="object"&&!J.alsoResize.nodeType){C.each(J.alsoResize,function(M,N){E(M,N);
});
}else{E(J.alsoResize);
}},stop:function(E,F){C(this).removeData("resizable-alsoresize");
}});
C.ui.plugin.add("resizable","animate",{stop:function(I,O){var M=C(this).data("resizable"),J=M.options;
var H=M._proportionallyResizeElements,E=H.length&&(/textarea/i).test(H[0].nodeName),F=E&&C.ui.hasScroll(H[0],"left")?0:M.sizeDiff.height,L=E?0:M.sizeDiff.width;
var G={width:(M.size.width-L),height:(M.size.height-F)},K=(parseInt(M.element.css("left"),10)+(M.position.left-M.originalPosition.left))||null,N=(parseInt(M.element.css("top"),10)+(M.position.top-M.originalPosition.top))||null;
M.element.animate(C.extend(G,N&&K?{top:N,left:K}:{}),{duration:J.animateDuration,easing:J.animateEasing,step:function(){var P={width:parseInt(M.element.css("width"),10),height:parseInt(M.element.css("height"),10),top:parseInt(M.element.css("top"),10),left:parseInt(M.element.css("left"),10)};
if(H&&H.length){C(H[0]).css({width:P.width,height:P.height});
}M._updateCache(P);
M._propagate("resize",I);
}});
}});
C.ui.plugin.add("resizable","containment",{start:function(F,Q){var O=C(this).data("resizable"),J=O.options,L=O.element;
var G=J.containment,K=(G instanceof C)?G.get(0):(/parent/.test(G))?L.parent().get(0):G;
if(!K){return ;
}O.containerElement=C(K);
if(/document/.test(G)||G==document){O.containerOffset={left:0,top:0};
O.containerPosition={left:0,top:0};
O.parentData={element:C(document),left:0,top:0,width:C(document).width(),height:C(document).height()||document.body.parentNode.scrollHeight};
}else{var N=C(K),I=[];
C(["Top","Right","Left","Bottom"]).each(function(T,S){I[T]=B(N.css("padding"+S));
});
O.containerOffset=N.offset();
O.containerPosition=N.position();
O.containerSize={height:(N.innerHeight()-I[3]),width:(N.innerWidth()-I[1])};
var P=O.containerOffset,E=O.containerSize.height,M=O.containerSize.width,H=(C.ui.hasScroll(K,"left")?K.scrollWidth:M),R=(C.ui.hasScroll(K)?K.scrollHeight:E);
O.parentData={element:K,left:P.left,top:P.top,width:H,height:R};
}},resize:function(G,Q){var M=C(this).data("resizable"),I=M.options,F=M.containerSize,P=M.containerOffset,N=M.size,O=M.position,R=M._aspectRatio||G.shiftKey,E={top:0,left:0},H=M.containerElement;
if(H[0]!=document&&(/static/).test(H.css("position"))){E=P;
}if(O.left<(M._helper?P.left:0)){M.size.width=M.size.width+(M._helper?(M.position.left-P.left):(M.position.left-E.left));
if(R){M.size.height=M.size.width/M.aspectRatio;
}M.position.left=I.helper?P.left:0;
}if(O.top<(M._helper?P.top:0)){M.size.height=M.size.height+(M._helper?(M.position.top-P.top):M.position.top);
if(R){M.size.width=M.size.height*M.aspectRatio;
}M.position.top=M._helper?P.top:0;
}M.offset.left=M.parentData.left+M.position.left;
M.offset.top=M.parentData.top+M.position.top;
var L=Math.abs((M._helper?M.offset.left-E.left:(M.offset.left-E.left))+M.sizeDiff.width),S=Math.abs((M._helper?M.offset.top-E.top:(M.offset.top-P.top))+M.sizeDiff.height);
var K=M.containerElement.get(0)==M.element.parent().get(0),J=/relative|absolute/.test(M.containerElement.css("position"));
if(K&&J){L-=M.parentData.left;
}if(L+M.size.width>=M.parentData.width){M.size.width=M.parentData.width-L;
if(R){M.size.height=M.size.width/M.aspectRatio;
}}if(S+M.size.height>=M.parentData.height){M.size.height=M.parentData.height-S;
if(R){M.size.width=M.size.height*M.aspectRatio;
}}},stop:function(F,N){var K=C(this).data("resizable"),G=K.options,L=K.position,M=K.containerOffset,E=K.containerPosition,H=K.containerElement;
var I=C(K.helper),P=I.offset(),O=I.outerWidth()-K.sizeDiff.width,J=I.outerHeight()-K.sizeDiff.height;
if(K._helper&&!G.animate&&(/relative/).test(H.css("position"))){C(this).css({left:P.left-E.left-M.left,width:O,height:J});
}if(K._helper&&!G.animate&&(/static/).test(H.css("position"))){C(this).css({left:P.left-E.left-M.left,width:O,height:J});
}}});
C.ui.plugin.add("resizable","ghost",{start:function(G,H){var F=C(this).data("resizable"),I=F.options,E=F.size;
F.ghost=F.originalElement.clone();
F.ghost.css({opacity:0.25,display:"block",position:"relative",height:E.height,width:E.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof I.ghost=="string"?I.ghost:"");
F.ghost.appendTo(F.helper);
},resize:function(F,G){var E=C(this).data("resizable"),H=E.options;
if(E.ghost){E.ghost.css({position:"relative",height:E.size.height,width:E.size.width});
}},stop:function(F,G){var E=C(this).data("resizable"),H=E.options;
if(E.ghost&&E.helper){E.helper.get(0).removeChild(E.ghost.get(0));
}}});
C.ui.plugin.add("resizable","grid",{resize:function(E,N){var K=C(this).data("resizable"),H=K.options,L=K.size,I=K.originalSize,J=K.originalPosition,O=K.axis,M=H._aspectRatio||E.shiftKey;
H.grid=typeof H.grid=="number"?[H.grid,H.grid]:H.grid;
var G=Math.round((L.width-I.width)/(H.grid[0]||1))*(H.grid[0]||1),F=Math.round((L.height-I.height)/(H.grid[1]||1))*(H.grid[1]||1);
if(/^(se|s|e)$/.test(O)){K.size.width=I.width+G;
K.size.height=I.height+F;
}else{if(/^(ne)$/.test(O)){K.size.width=I.width+G;
K.size.height=I.height+F;
K.position.top=J.top-F;
}else{if(/^(sw)$/.test(O)){K.size.width=I.width+G;
K.size.height=I.height+F;
K.position.left=J.left-G;
}else{K.size.width=I.width+G;
K.size.height=I.height+F;
K.position.top=J.top-F;
K.position.left=J.left-G;
}}}}});
var B=function(E){return parseInt(E,10)||0;
};
var A=function(E){return !isNaN(parseInt(E,10));
};
})(jQuery);
(function(A,B){A.widget("ui.selectable",A.ui.mouse,{version:"1.9.2",options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var C=this;
this.element.addClass("ui-selectable");
this.dragged=false;
var D;
this.refresh=function(){D=A(C.options.filter,C.element[0]);
D.addClass("ui-selectee");
D.each(function(){var E=A(this);
var F=E.offset();
A.data(this,"selectable-item",{element:this,$element:E,left:F.left,top:F.top,right:F.left+E.outerWidth(),bottom:F.top+E.outerHeight(),startselected:false,selected:E.hasClass("ui-selected"),selecting:E.hasClass("ui-selecting"),unselecting:E.hasClass("ui-unselecting")});
});
};
this.refresh();
this.selectees=D.addClass("ui-selectee");
this._mouseInit();
this.helper=A("<div class='ui-selectable-helper'></div>");
},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");
this.element.removeClass("ui-selectable ui-selectable-disabled");
this._mouseDestroy();
},_mouseStart:function(E){var D=this;
this.opos=[E.pageX,E.pageY];
if(this.options.disabled){return ;
}var C=this.options;
this.selectees=A(C.filter,this.element[0]);
this._trigger("start",E);
A(C.appendTo).append(this.helper);
this.helper.css({left:E.clientX,top:E.clientY,width:0,height:0});
if(C.autoRefresh){this.refresh();
}this.selectees.filter(".ui-selected").each(function(){var F=A.data(this,"selectable-item");
F.startselected=true;
if(!E.metaKey&&!E.ctrlKey){F.$element.removeClass("ui-selected");
F.selected=false;
F.$element.addClass("ui-unselecting");
F.unselecting=true;
D._trigger("unselecting",E,{unselecting:F.element});
}});
A(E.target).parents().andSelf().each(function(){var G=A.data(this,"selectable-item");
if(G){var F=(!E.metaKey&&!E.ctrlKey)||!G.$element.hasClass("ui-selected");
G.$element.removeClass(F?"ui-unselecting":"ui-selected").addClass(F?"ui-selecting":"ui-unselecting");
G.unselecting=!F;
G.selecting=F;
G.selected=F;
if(F){D._trigger("selecting",E,{selecting:G.element});
}else{D._trigger("unselecting",E,{unselecting:G.element});
}return false;
}});
},_mouseDrag:function(J){var I=this;
this.dragged=true;
if(this.options.disabled){return ;
}var E=this.options;
var D=this.opos[0],H=this.opos[1],C=J.pageX,G=J.pageY;
if(D>C){var F=C;
C=D;
D=F;
}if(H>G){var F=G;
G=H;
H=F;
}this.helper.css({left:D,top:H,width:C-D,height:G-H});
this.selectees.each(function(){var K=A.data(this,"selectable-item");
if(!K||K.element==I.element[0]){return ;
}var L=false;
if(E.tolerance=="touch"){L=(!(K.left>C||K.right<D||K.top>G||K.bottom<H));
}else{if(E.tolerance=="fit"){L=(K.left>D&&K.right<C&&K.top>H&&K.bottom<G);
}}if(L){if(K.selected){K.$element.removeClass("ui-selected");
K.selected=false;
}if(K.unselecting){K.$element.removeClass("ui-unselecting");
K.unselecting=false;
}if(!K.selecting){K.$element.addClass("ui-selecting");
K.selecting=true;
I._trigger("selecting",J,{selecting:K.element});
}}else{if(K.selecting){if((J.metaKey||J.ctrlKey)&&K.startselected){K.$element.removeClass("ui-selecting");
K.selecting=false;
K.$element.addClass("ui-selected");
K.selected=true;
}else{K.$element.removeClass("ui-selecting");
K.selecting=false;
if(K.startselected){K.$element.addClass("ui-unselecting");
K.unselecting=true;
}I._trigger("unselecting",J,{unselecting:K.element});
}}if(K.selected){if(!J.metaKey&&!J.ctrlKey&&!K.startselected){K.$element.removeClass("ui-selected");
K.selected=false;
K.$element.addClass("ui-unselecting");
K.unselecting=true;
I._trigger("unselecting",J,{unselecting:K.element});
}}}});
return false;
},_mouseStop:function(E){var D=this;
this.dragged=false;
var C=this.options;
A(".ui-unselecting",this.element[0]).each(function(){var F=A.data(this,"selectable-item");
F.$element.removeClass("ui-unselecting");
F.unselecting=false;
F.startselected=false;
D._trigger("unselected",E,{unselected:F.element});
});
A(".ui-selecting",this.element[0]).each(function(){var F=A.data(this,"selectable-item");
F.$element.removeClass("ui-selecting").addClass("ui-selected");
F.selecting=false;
F.selected=true;
F.startselected=true;
D._trigger("selected",E,{selected:F.element});
});
this._trigger("stop",E);
this.helper.remove();
return false;
}});
})(jQuery);
(function(A,B){A.widget("ui.sortable",A.ui.mouse,{version:"1.9.2",widgetEventPrefix:"sort",ready:false,options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000},_create:function(){var C=this.options;
this.containerCache={};
this.element.addClass("ui-sortable");
this.refresh();
this.floating=this.items.length?C.axis==="x"||(/left|right/).test(this.items[0].item.css("float"))||(/inline|table-cell/).test(this.items[0].item.css("display")):false;
this.offset=this.element.offset();
this._mouseInit();
this.ready=true;
},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled");
this._mouseDestroy();
for(var C=this.items.length-1;
C>=0;
C--){this.items[C].item.removeData(this.widgetName+"-item");
}return this;
},_setOption:function(C,D){if(C==="disabled"){this.options[C]=D;
this.widget().toggleClass("ui-sortable-disabled",!!D);
}else{A.Widget.prototype._setOption.apply(this,arguments);
}},_mouseCapture:function(F,G){var E=this;
if(this.reverting){return false;
}if(this.options.disabled||this.options.type=="static"){return false;
}this._refreshItems(F);
var D=null,C=A(F.target).parents().each(function(){if(A.data(this,E.widgetName+"-item")==E){D=A(this);
return false;
}});
if(A.data(F.target,E.widgetName+"-item")==E){D=A(F.target);
}if(!D){return false;
}if(this.options.handle&&!G){var H=false;
A(this.options.handle,D).find("*").andSelf().each(function(){if(this==F.target){H=true;
}});
if(!H){return false;
}}this.currentItem=D;
this._removeCurrentsFromItems();
return true;
},_mouseStart:function(E,F,C){var G=this.options;
this.currentContainer=this;
this.refreshPositions();
this.helper=this._createHelper(E);
this._cacheHelperProportions();
this._cacheMargins();
this.scrollParent=this.helper.scrollParent();
this.offset=this.currentItem.offset();
this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};
A.extend(this.offset,{click:{left:E.pageX-this.offset.left,top:E.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
this.helper.css("position","absolute");
this.cssPosition=this.helper.css("position");
this.originalPosition=this._generatePosition(E);
this.originalPageX=E.pageX;
this.originalPageY=E.pageY;
(G.cursorAt&&this._adjustOffsetFromHelper(G.cursorAt));
this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};
if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide();
}this._createPlaceholder();
if(G.containment){this._setContainment();
}if(G.cursor){if(A("body").css("cursor")){this._storedCursor=A("body").css("cursor");
}A("body").css("cursor",G.cursor);
}if(G.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity");
}this.helper.css("opacity",G.opacity);
}if(G.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex");
}this.helper.css("zIndex",G.zIndex);
}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset();
}this._trigger("start",E,this._uiHash());
if(!this._preserveHelperProportions){this._cacheHelperProportions();
}if(!C){for(var D=this.containers.length-1;
D>=0;
D--){this.containers[D]._trigger("activate",E,this._uiHash(this));
}}if(A.ui.ddmanager){A.ui.ddmanager.current=this;
}if(A.ui.ddmanager&&!G.dropBehaviour){A.ui.ddmanager.prepareOffsets(this,E);
}this.dragging=true;
this.helper.addClass("ui-sortable-helper");
this._mouseDrag(E);
return true;
},_mouseDrag:function(G){this.position=this._generatePosition(G);
this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs;
}if(this.options.scroll){var H=this.options,C=false;
if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-G.pageY<H.scrollSensitivity){this.scrollParent[0].scrollTop=C=this.scrollParent[0].scrollTop+H.scrollSpeed;
}else{if(G.pageY-this.overflowOffset.top<H.scrollSensitivity){this.scrollParent[0].scrollTop=C=this.scrollParent[0].scrollTop-H.scrollSpeed;
}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-G.pageX<H.scrollSensitivity){this.scrollParent[0].scrollLeft=C=this.scrollParent[0].scrollLeft+H.scrollSpeed;
}else{if(G.pageX-this.overflowOffset.left<H.scrollSensitivity){this.scrollParent[0].scrollLeft=C=this.scrollParent[0].scrollLeft-H.scrollSpeed;
}}}else{if(G.pageY-A(document).scrollTop()<H.scrollSensitivity){C=A(document).scrollTop(A(document).scrollTop()-H.scrollSpeed);
}else{if(A(window).height()-(G.pageY-A(document).scrollTop())<H.scrollSensitivity){C=A(document).scrollTop(A(document).scrollTop()+H.scrollSpeed);
}}if(G.pageX-A(document).scrollLeft()<H.scrollSensitivity){C=A(document).scrollLeft(A(document).scrollLeft()-H.scrollSpeed);
}else{if(A(window).width()-(G.pageX-A(document).scrollLeft())<H.scrollSensitivity){C=A(document).scrollLeft(A(document).scrollLeft()+H.scrollSpeed);
}}}if(C!==false&&A.ui.ddmanager&&!H.dropBehaviour){A.ui.ddmanager.prepareOffsets(this,G);
}}this.positionAbs=this._convertPositionTo("absolute");
if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px";
}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px";
}for(var E=this.items.length-1;
E>=0;
E--){var F=this.items[E],D=F.item[0],I=this._intersectsWithPointer(F);
if(!I){continue;
}if(F.instance!==this.currentContainer){continue;
}if(D!=this.currentItem[0]&&this.placeholder[I==1?"next":"prev"]()[0]!=D&&!A.contains(this.placeholder[0],D)&&(this.options.type=="semi-dynamic"?!A.contains(this.element[0],D):true)){this.direction=I==1?"down":"up";
if(this.options.tolerance=="pointer"||this._intersectsWithSides(F)){this._rearrange(G,F);
}else{break;
}this._trigger("change",G,this._uiHash());
break;
}}this._contactContainers(G);
if(A.ui.ddmanager){A.ui.ddmanager.drag(this,G);
}this._trigger("sort",G,this._uiHash());
this.lastPositionAbs=this.positionAbs;
return false;
},_mouseStop:function(D,E){if(!D){return ;
}if(A.ui.ddmanager&&!this.options.dropBehaviour){A.ui.ddmanager.drop(this,D);
}if(this.options.revert){var C=this;
var F=this.placeholder.offset();
this.reverting=true;
A(this.helper).animate({left:F.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:F.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){C._clear(D);
});
}else{this._clear(D,E);
}return false;
},cancel:function(){if(this.dragging){this._mouseUp({target:null});
if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");
}else{this.currentItem.show();
}for(var C=this.containers.length-1;
C>=0;
C--){this.containers[C]._trigger("deactivate",null,this._uiHash(this));
if(this.containers[C].containerCache.over){this.containers[C]._trigger("out",null,this._uiHash(this));
this.containers[C].containerCache.over=0;
}}}if(this.placeholder){if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove();
}A.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});
if(this.domPosition.prev){A(this.domPosition.prev).after(this.currentItem);
}else{A(this.domPosition.parent).prepend(this.currentItem);
}}return this;
},serialize:function(E){var C=this._getItemsAsjQuery(E&&E.connected);
var D=[];
E=E||{};
A(C).each(function(){var F=(A(E.item||this).attr(E.attribute||"id")||"").match(E.expression||(/(.+)[-=_](.+)/));
if(F){D.push((E.key||F[1]+"[]")+"="+(E.key&&E.expression?F[1]:F[2]));
}});
if(!D.length&&E.key){D.push(E.key+"=");
}return D.join("&");
},toArray:function(E){var C=this._getItemsAsjQuery(E&&E.connected);
var D=[];
E=E||{};
C.each(function(){D.push(A(E.item||this).attr(E.attribute||"id")||"");
});
return D;
},_intersectsWith:function(L){var E=this.positionAbs.left,D=E+this.helperProportions.width,K=this.positionAbs.top,J=K+this.helperProportions.height;
var F=L.left,C=F+L.width,M=L.top,I=M+L.height;
var N=this.offset.click.top,H=this.offset.click.left;
var G=(K+N)>M&&(K+N)<I&&(E+H)>F&&(E+H)<C;
if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>L[this.floating?"width":"height"])){return G;
}else{return(F<E+(this.helperProportions.width/2)&&D-(this.helperProportions.width/2)<C&&M<K+(this.helperProportions.height/2)&&J-(this.helperProportions.height/2)<I);
}},_intersectsWithPointer:function(E){var F=(this.options.axis==="x")||A.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,E.top,E.height),D=(this.options.axis==="y")||A.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,E.left,E.width),H=F&&D,C=this._getDragVerticalDirection(),G=this._getDragHorizontalDirection();
if(!H){return false;
}return this.floating?(((G&&G=="right")||C=="down")?2:1):(C&&(C=="down"?2:1));
},_intersectsWithSides:function(F){var D=A.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,F.top+(F.height/2),F.height),E=A.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,F.left+(F.width/2),F.width),C=this._getDragVerticalDirection(),G=this._getDragHorizontalDirection();
if(this.floating&&G){return((G=="right"&&E)||(G=="left"&&!E));
}else{return C&&((C=="down"&&D)||(C=="up"&&!D));
}},_getDragVerticalDirection:function(){var C=this.positionAbs.top-this.lastPositionAbs.top;
return C!=0&&(C>0?"down":"up");
},_getDragHorizontalDirection:function(){var C=this.positionAbs.left-this.lastPositionAbs.left;
return C!=0&&(C>0?"right":"left");
},refresh:function(C){this._refreshItems(C);
this.refreshPositions();
return this;
},_connectWith:function(){var C=this.options;
return C.connectWith.constructor==String?[C.connectWith]:C.connectWith;
},_getItemsAsjQuery:function(H){var C=[];
var E=[];
var G=this._connectWith();
if(G&&H){for(var F=G.length-1;
F>=0;
F--){var J=A(G[F]);
for(var D=J.length-1;
D>=0;
D--){var I=A.data(J[D],this.widgetName);
if(I&&I!=this&&!I.options.disabled){E.push([A.isFunction(I.options.items)?I.options.items.call(I.element):A(I.options.items,I.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),I]);
}}}}E.push([A.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):A(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);
for(var F=E.length-1;
F>=0;
F--){E[F][0].each(function(){C.push(this);
});
}return A(C);
},_removeCurrentsFromItems:function(){var C=this.currentItem.find(":data("+this.widgetName+"-item)");
this.items=A.grep(this.items,function(E){for(var D=0;
D<C.length;
D++){if(C[D]==E.item[0]){return false;
}}return true;
});
},_refreshItems:function(C){this.items=[];
this.containers=[this];
var I=this.items;
var G=[[A.isFunction(this.options.items)?this.options.items.call(this.element[0],C,{item:this.currentItem}):A(this.options.items,this.element),this]];
var K=this._connectWith();
if(K&&this.ready){for(var F=K.length-1;
F>=0;
F--){var L=A(K[F]);
for(var E=L.length-1;
E>=0;
E--){var H=A.data(L[E],this.widgetName);
if(H&&H!=this&&!H.options.disabled){G.push([A.isFunction(H.options.items)?H.options.items.call(H.element[0],C,{item:this.currentItem}):A(H.options.items,H.element),H]);
this.containers.push(H);
}}}}for(var F=G.length-1;
F>=0;
F--){var J=G[F][1];
var D=G[F][0];
for(var E=0,M=D.length;
E<M;
E++){var N=A(D[E]);
N.data(this.widgetName+"-item",J);
I.push({item:N,instance:J,width:0,height:0,left:0,top:0});
}}},refreshPositions:function(C){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset();
}for(var E=this.items.length-1;
E>=0;
E--){var F=this.items[E];
if(F.instance!=this.currentContainer&&this.currentContainer&&F.item[0]!=this.currentItem[0]){continue;
}var D=this.options.toleranceElement?A(this.options.toleranceElement,F.item):F.item;
if(!C){F.width=D.outerWidth();
F.height=D.outerHeight();
}var G=D.offset();
F.left=G.left;
F.top=G.top;
}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this);
}else{for(var E=this.containers.length-1;
E>=0;
E--){var G=this.containers[E].element.offset();
this.containers[E].containerCache.left=G.left;
this.containers[E].containerCache.top=G.top;
this.containers[E].containerCache.width=this.containers[E].element.outerWidth();
this.containers[E].containerCache.height=this.containers[E].element.outerHeight();
}}return this;
},_createPlaceholder:function(D){D=D||this;
var E=D.options;
if(!E.placeholder||E.placeholder.constructor==String){var C=E.placeholder;
E.placeholder={element:function(){var F=A(document.createElement(D.currentItem[0].nodeName)).addClass(C||D.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];
if(!C){F.style.visibility="hidden";
}return F;
},update:function(F,G){if(C&&!E.forcePlaceholderSize){return ;
}if(!G.height()){G.height(D.currentItem.innerHeight()-parseInt(D.currentItem.css("paddingTop")||0,10)-parseInt(D.currentItem.css("paddingBottom")||0,10));
}if(!G.width()){G.width(D.currentItem.innerWidth()-parseInt(D.currentItem.css("paddingLeft")||0,10)-parseInt(D.currentItem.css("paddingRight")||0,10));
}}};
}D.placeholder=A(E.placeholder.element.call(D.element,D.currentItem));
D.currentItem.after(D.placeholder);
E.placeholder.update(D,D.placeholder);
},_contactContainers:function(C){var E=null,L=null;
for(var H=this.containers.length-1;
H>=0;
H--){if(A.contains(this.currentItem[0],this.containers[H].element[0])){continue;
}if(this._intersectsWith(this.containers[H].containerCache)){if(E&&A.contains(this.containers[H].element[0],E.element[0])){continue;
}E=this.containers[H];
L=H;
}else{if(this.containers[H].containerCache.over){this.containers[H]._trigger("out",C,this._uiHash(this));
this.containers[H].containerCache.over=0;
}}}if(!E){return ;
}if(this.containers.length===1){this.containers[L]._trigger("over",C,this._uiHash(this));
this.containers[L].containerCache.over=1;
}else{var K=10000;
var I=null;
var J=this.containers[L].floating?"left":"top";
var M=this.containers[L].floating?"width":"height";
var D=this.positionAbs[J]+this.offset.click[J];
for(var F=this.items.length-1;
F>=0;
F--){if(!A.contains(this.containers[L].element[0],this.items[F].item[0])){continue;
}if(this.items[F].item[0]==this.currentItem[0]){continue;
}var N=this.items[F].item.offset()[J];
var G=false;
if(Math.abs(N-D)>Math.abs(N+this.items[F][M]-D)){G=true;
N+=this.items[F][M];
}if(Math.abs(N-D)<K){K=Math.abs(N-D);
I=this.items[F];
this.direction=G?"up":"down";
}}if(!I&&!this.options.dropOnEmpty){return ;
}this.currentContainer=this.containers[L];
I?this._rearrange(C,I,null,true):this._rearrange(C,null,this.containers[L].element,true);
this._trigger("change",C,this._uiHash());
this.containers[L]._trigger("change",C,this._uiHash(this));
this.options.placeholder.update(this.currentContainer,this.placeholder);
this.containers[L]._trigger("over",C,this._uiHash(this));
this.containers[L].containerCache.over=1;
}},_createHelper:function(D){var E=this.options;
var C=A.isFunction(E.helper)?A(E.helper.apply(this.element[0],[D,this.currentItem])):(E.helper=="clone"?this.currentItem.clone():this.currentItem);
if(!C.parents("body").length){A(E.appendTo!="parent"?E.appendTo:this.currentItem[0].parentNode)[0].appendChild(C[0]);
}if(C[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};
}if(C[0].style.width==""||E.forceHelperSize){C.width(this.currentItem.width());
}if(C[0].style.height==""||E.forceHelperSize){C.height(this.currentItem.height());
}return C;
},_adjustOffsetFromHelper:function(C){if(typeof C=="string"){C=C.split(" ");
}if(A.isArray(C)){C={left:+C[0],top:+C[1]||0};
}if("left" in C){this.offset.click.left=C.left+this.margins.left;
}if("right" in C){this.offset.click.left=this.helperProportions.width-C.right+this.margins.left;
}if("top" in C){this.offset.click.top=C.top+this.margins.top;
}if("bottom" in C){this.offset.click.top=this.helperProportions.height-C.bottom+this.margins.top;
}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();
var C=this.offsetParent.offset();
if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&A.contains(this.scrollParent[0],this.offsetParent[0])){C.left+=this.scrollParent.scrollLeft();
C.top+=this.scrollParent.scrollTop();
}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&A.ui.ie)){C={top:0,left:0};
}return{top:C.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:C.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};
},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var C=this.currentItem.position();
return{top:C.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:C.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()};
}else{return{top:0,left:0};
}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)};
},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};
},_setContainment:function(){var F=this.options;
if(F.containment=="parent"){F.containment=this.helper[0].parentNode;
}if(F.containment=="document"||F.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,A(F.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(A(F.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];
}if(!(/^(document|window|parent)$/).test(F.containment)){var D=A(F.containment)[0];
var E=A(F.containment).offset();
var C=(A(D).css("overflow")!="hidden");
this.containment=[E.left+(parseInt(A(D).css("borderLeftWidth"),10)||0)+(parseInt(A(D).css("paddingLeft"),10)||0)-this.margins.left,E.top+(parseInt(A(D).css("borderTopWidth"),10)||0)+(parseInt(A(D).css("paddingTop"),10)||0)-this.margins.top,E.left+(C?Math.max(D.scrollWidth,D.offsetWidth):D.offsetWidth)-(parseInt(A(D).css("borderLeftWidth"),10)||0)-(parseInt(A(D).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,E.top+(C?Math.max(D.scrollHeight,D.offsetHeight):D.offsetHeight)-(parseInt(A(D).css("borderTopWidth"),10)||0)-(parseInt(A(D).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top];
}},_convertPositionTo:function(F,H){if(!H){H=this.position;
}var D=F=="absolute"?1:-1;
var E=this.options,C=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,G=(/(html|body)/i).test(C[0].tagName);
return{top:(H.top+this.offset.relative.top*D+this.offset.parent.top*D-((this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(G?0:C.scrollTop()))*D)),left:(H.left+this.offset.relative.left*D+this.offset.parent.left*D-((this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():G?0:C.scrollLeft())*D))};
},_generatePosition:function(F){var I=this.options,C=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,J=(/(html|body)/i).test(C[0].tagName);
if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset();
}var E=F.pageX;
var D=F.pageY;
if(this.originalPosition){if(this.containment){if(F.pageX-this.offset.click.left<this.containment[0]){E=this.containment[0]+this.offset.click.left;
}if(F.pageY-this.offset.click.top<this.containment[1]){D=this.containment[1]+this.offset.click.top;
}if(F.pageX-this.offset.click.left>this.containment[2]){E=this.containment[2]+this.offset.click.left;
}if(F.pageY-this.offset.click.top>this.containment[3]){D=this.containment[3]+this.offset.click.top;
}}if(I.grid){var H=this.originalPageY+Math.round((D-this.originalPageY)/I.grid[1])*I.grid[1];
D=this.containment?(!(H-this.offset.click.top<this.containment[1]||H-this.offset.click.top>this.containment[3])?H:(!(H-this.offset.click.top<this.containment[1])?H-I.grid[1]:H+I.grid[1])):H;
var G=this.originalPageX+Math.round((E-this.originalPageX)/I.grid[0])*I.grid[0];
E=this.containment?(!(G-this.offset.click.left<this.containment[0]||G-this.offset.click.left>this.containment[2])?G:(!(G-this.offset.click.left<this.containment[0])?G-I.grid[0]:G+I.grid[0])):G;
}}return{top:(D-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+((this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(J?0:C.scrollTop())))),left:(E-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+((this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():J?0:C.scrollLeft())))};
},_rearrange:function(G,F,D,E){D?D[0].appendChild(this.placeholder[0]):F.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=="down"?F.item[0]:F.item[0].nextSibling));
this.counter=this.counter?++this.counter:1;
var C=this.counter;
this._delay(function(){if(C==this.counter){this.refreshPositions(!E);
}});
},_clear:function(D,E){this.reverting=false;
var F=[];
if(!this._noFinalSort&&this.currentItem.parent().length){this.placeholder.before(this.currentItem);
}this._noFinalSort=null;
if(this.helper[0]==this.currentItem[0]){for(var C in this._storedCSS){if(this._storedCSS[C]=="auto"||this._storedCSS[C]=="static"){this._storedCSS[C]="";
}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");
}else{this.currentItem.show();
}if(this.fromOutside&&!E){F.push(function(G){this._trigger("receive",G,this._uiHash(this.fromOutside));
});
}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!E){F.push(function(G){this._trigger("update",G,this._uiHash());
});
}if(this!==this.currentContainer){if(!E){F.push(function(G){this._trigger("remove",G,this._uiHash());
});
F.push((function(G){return function(H){G._trigger("receive",H,this._uiHash(this));
};
}).call(this,this.currentContainer));
F.push((function(G){return function(H){G._trigger("update",H,this._uiHash(this));
};
}).call(this,this.currentContainer));
}}for(var C=this.containers.length-1;
C>=0;
C--){if(!E){F.push((function(G){return function(H){G._trigger("deactivate",H,this._uiHash(this));
};
}).call(this,this.containers[C]));
}if(this.containers[C].containerCache.over){F.push((function(G){return function(H){G._trigger("out",H,this._uiHash(this));
};
}).call(this,this.containers[C]));
this.containers[C].containerCache.over=0;
}}if(this._storedCursor){A("body").css("cursor",this._storedCursor);
}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity);
}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);
}this.dragging=false;
if(this.cancelHelperRemoval){if(!E){this._trigger("beforeStop",D,this._uiHash());
for(var C=0;
C<F.length;
C++){F[C].call(this,D);
}this._trigger("stop",D,this._uiHash());
}this.fromOutside=false;
return false;
}if(!E){this._trigger("beforeStop",D,this._uiHash());
}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
if(this.helper[0]!=this.currentItem[0]){this.helper.remove();
}this.helper=null;
if(!E){for(var C=0;
C<F.length;
C++){F[C].call(this,D);
}this._trigger("stop",D,this._uiHash());
}this.fromOutside=false;
return true;
},_trigger:function(){if(A.Widget.prototype._trigger.apply(this,arguments)===false){this.cancel();
}},_uiHash:function(C){var D=C||this;
return{helper:D.helper,placeholder:D.placeholder||A([]),position:D.position,originalPosition:D.originalPosition,offset:D.positionAbs,item:D.currentItem,sender:C?C.element:null};
}});
})(jQuery);
(function(D,E){var B=0,C={},A={};
C.height=C.paddingTop=C.paddingBottom=C.borderTopWidth=C.borderBottomWidth="hide";
A.height=A.paddingTop=A.paddingBottom=A.borderTopWidth=A.borderBottomWidth="show";
D.widget("ui.accordion",{version:"1.9.2",options:{active:0,animate:{},collapsible:false,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var G=this.accordionId="ui-accordion-"+(this.element.attr("id")||++B),F=this.options;
this.prevShow=this.prevHide=D();
this.element.addClass("ui-accordion ui-widget ui-helper-reset");
this.headers=this.element.find(F.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all");
this._hoverable(this.headers);
this._focusable(this.headers);
this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").hide();
if(!F.collapsible&&(F.active===false||F.active==null)){F.active=0;
}if(F.active<0){F.active+=this.headers.length;
}this.active=this._findActive(F.active).addClass("ui-accordion-header-active ui-state-active").toggleClass("ui-corner-all ui-corner-top");
this.active.next().addClass("ui-accordion-content-active").show();
this._createIcons();
this.refresh();
this.element.attr("role","tablist");
this.headers.attr("role","tab").each(function(K){var L=D(this),J=L.attr("id"),H=L.next(),I=H.attr("id");
if(!J){J=G+"-header-"+K;
L.attr("id",J);
}if(!I){I=G+"-panel-"+K;
H.attr("id",I);
}L.attr("aria-controls",I);
H.attr("aria-labelledby",J);
}).next().attr("role","tabpanel");
this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide();
if(!this.active.length){this.headers.eq(0).attr("tabIndex",0);
}else{this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"});
}this._on(this.headers,{keydown:"_keydown"});
this._on(this.headers.next(),{keydown:"_panelKeyDown"});
this._setupEvents(F.event);
},_getCreateEventData:function(){return{header:this.active,content:!this.active.length?D():this.active.next()};
},_createIcons:function(){var F=this.options.icons;
if(F){D("<span>").addClass("ui-accordion-header-icon ui-icon "+F.header).prependTo(this.headers);
this.active.children(".ui-accordion-header-icon").removeClass(F.header).addClass(F.activeHeader);
this.headers.addClass("ui-accordion-icons");
}},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove();
},_destroy:function(){var F;
this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");
this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){if(/^ui-accordion/.test(this.id)){this.removeAttribute("id");
}});
this._destroyIcons();
F=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){if(/^ui-accordion/.test(this.id)){this.removeAttribute("id");
}});
if(this.options.heightStyle!=="content"){F.css("height","");
}},_setOption:function(F,G){if(F==="active"){this._activate(G);
return ;
}if(F==="event"){if(this.options.event){this._off(this.headers,this.options.event);
}this._setupEvents(G);
}this._super(F,G);
if(F==="collapsible"&&!G&&this.options.active===false){this._activate(0);
}if(F==="icons"){this._destroyIcons();
if(G){this._createIcons();
}}if(F==="disabled"){this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!G);
}},_keydown:function(I){if(I.altKey||I.ctrlKey){return ;
}var J=D.ui.keyCode,H=this.headers.length,F=this.headers.index(I.target),G=false;
switch(I.keyCode){case J.RIGHT:case J.DOWN:G=this.headers[(F+1)%H];
break;
case J.LEFT:case J.UP:G=this.headers[(F-1+H)%H];
break;
case J.SPACE:case J.ENTER:this._eventHandler(I);
break;
case J.HOME:G=this.headers[0];
break;
case J.END:G=this.headers[H-1];
break;
}if(G){D(I.target).attr("tabIndex",-1);
D(G).attr("tabIndex",0);
G.focus();
I.preventDefault();
}},_panelKeyDown:function(F){if(F.keyCode===D.ui.keyCode.UP&&F.ctrlKey){D(F.currentTarget).prev().focus();
}},refresh:function(){var H,I,F=this.options.heightStyle,G=this.element.parent();
if(F==="fill"){if(!D.support.minHeight){I=G.css("overflow");
G.css("overflow","hidden");
}H=G.height();
this.element.siblings(":visible").each(function(){var K=D(this),J=K.css("position");
if(J==="absolute"||J==="fixed"){return ;
}H-=K.outerHeight(true);
});
if(I){G.css("overflow",I);
}this.headers.each(function(){H-=D(this).outerHeight(true);
});
this.headers.next().each(function(){D(this).height(Math.max(0,H-D(this).innerHeight()+D(this).height()));
}).css("overflow","auto");
}else{if(F==="auto"){H=0;
this.headers.next().each(function(){H=Math.max(H,D(this).css("height","").height());
}).height(H);
}}},_activate:function(F){var G=this._findActive(F)[0];
if(G===this.active[0]){return ;
}G=G||this.active[0];
this._eventHandler({target:G,currentTarget:G,preventDefault:D.noop});
},_findActive:function(F){return typeof F==="number"?this.headers.eq(F):D();
},_setupEvents:function(G){var F={};
if(!G){return ;
}D.each(G.split(" "),function(I,H){F[H]="_eventHandler";
});
this._on(this.headers,F);
},_eventHandler:function(F){var N=this.options,I=this.active,J=D(F.currentTarget),L=J[0]===I[0],G=L&&N.collapsible,H=G?D():J.next(),K=I.next(),M={oldHeader:I,oldPanel:K,newHeader:G?D():J,newPanel:H};
F.preventDefault();
if((L&&!N.collapsible)||(this._trigger("beforeActivate",F,M)===false)){return ;
}N.active=G?false:this.headers.index(J);
this.active=L?D():J;
this._toggle(M);
I.removeClass("ui-accordion-header-active ui-state-active");
if(N.icons){I.children(".ui-accordion-header-icon").removeClass(N.icons.activeHeader).addClass(N.icons.header);
}if(!L){J.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top");
if(N.icons){J.children(".ui-accordion-header-icon").removeClass(N.icons.header).addClass(N.icons.activeHeader);
}J.next().addClass("ui-accordion-content-active");
}},_toggle:function(H){var F=H.newPanel,G=this.prevShow.length?this.prevShow:H.oldPanel;
this.prevShow.add(this.prevHide).stop(true,true);
this.prevShow=F;
this.prevHide=G;
if(this.options.animate){this._animate(F,G,H);
}else{G.hide();
F.show();
this._toggleComplete(H);
}G.attr({"aria-expanded":"false","aria-hidden":"true"});
G.prev().attr("aria-selected","false");
if(F.length&&G.length){G.prev().attr("tabIndex",-1);
}else{if(F.length){this.headers.filter(function(){return D(this).attr("tabIndex")===0;
}).attr("tabIndex",-1);
}}F.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0});
},_animate:function(F,N,J){var M,L,I,K=this,O=0,P=F.length&&(!N.length||(F.index()<N.index())),H=this.options.animate||{},Q=P&&H.down||H,G=function(){K._toggleComplete(J);
};
if(typeof Q==="number"){I=Q;
}if(typeof Q==="string"){L=Q;
}L=L||Q.easing||H.easing;
I=I||Q.duration||H.duration;
if(!N.length){return F.animate(A,I,L,G);
}if(!F.length){return N.animate(C,I,L,G);
}M=F.show().outerHeight();
N.animate(C,{duration:I,easing:L,step:function(R,S){S.now=Math.round(R);
}});
F.hide().animate(A,{duration:I,easing:L,complete:G,step:function(R,S){S.now=Math.round(R);
if(S.prop!=="height"){O+=S.now;
}else{if(K.options.heightStyle!=="content"){S.now=Math.round(M-N.outerHeight()-O);
O=0;
}}}});
},_toggleComplete:function(G){var F=G.oldPanel;
F.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all");
if(F.length){F.parent()[0].className=F.parent()[0].className;
}this._trigger("activate",null,G);
}});
if(D.uiBackCompat!==false){(function(G,F){G.extend(F.options,{navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase();
}});
var H=F._create;
F._create=function(){if(this.options.navigation){var J=this,L=this.element.find(this.options.header),I=L.next(),K=L.add(I).find("a").filter(this.options.navigationFilter)[0];
if(K){L.add(I).each(function(M){if(G.contains(this,K)){J.options.active=Math.floor(M/2);
return false;
}});
}}H.call(this);
};
}(jQuery,jQuery.ui.accordion.prototype));
(function(H,F){H.extend(F.options,{heightStyle:null,autoHeight:true,clearStyle:false,fillSpace:false});
var I=F._create,G=F._setOption;
H.extend(F,{_create:function(){this.options.heightStyle=this.options.heightStyle||this._mergeHeightStyle();
I.call(this);
},_setOption:function(J){if(J==="autoHeight"||J==="clearStyle"||J==="fillSpace"){this.options.heightStyle=this._mergeHeightStyle();
}G.apply(this,arguments);
},_mergeHeightStyle:function(){var J=this.options;
if(J.fillSpace){return"fill";
}if(J.clearStyle){return"content";
}if(J.autoHeight){return"auto";
}}});
}(jQuery,jQuery.ui.accordion.prototype));
(function(H,G){H.extend(G.options.icons,{activeHeader:null,headerSelected:"ui-icon-triangle-1-s"});
var F=G._createIcons;
G._createIcons=function(){if(this.options.icons){this.options.icons.activeHeader=this.options.icons.activeHeader||this.options.icons.headerSelected;
}F.call(this);
};
}(jQuery,jQuery.ui.accordion.prototype));
(function(H,G){G.activate=G._activate;
var F=G._findActive;
G._findActive=function(I){if(I===-1){I=false;
}if(I&&typeof I!=="number"){I=this.headers.index(this.headers.filter(I));
if(I===-1){I=false;
}}return F.call(this,I);
};
}(jQuery,jQuery.ui.accordion.prototype));
jQuery.ui.accordion.prototype.resize=jQuery.ui.accordion.prototype.refresh;
(function(H,G){H.extend(G.options,{change:null,changestart:null});
var F=G._trigger;
G._trigger=function(J,K,L){var I=F.apply(this,arguments);
if(!I){return false;
}if(J==="beforeActivate"){I=F.call(this,"changestart",K,{oldHeader:L.oldHeader,oldContent:L.oldPanel,newHeader:L.newHeader,newContent:L.newPanel});
}else{if(J==="activate"){I=F.call(this,"change",K,{oldHeader:L.oldHeader,oldContent:L.oldPanel,newHeader:L.newHeader,newContent:L.newPanel});
}}return I;
};
}(jQuery,jQuery.ui.accordion.prototype));
(function(G,F){G.extend(F.options,{animate:null,animated:"slide"});
var H=F._create;
F._create=function(){var I=this.options;
if(I.animate===null){if(!I.animated){I.animate=false;
}else{if(I.animated==="slide"){I.animate=300;
}else{if(I.animated==="bounceslide"){I.animate={duration:200,down:{easing:"easeOutBounce",duration:1000}};
}else{I.animate=I.animated;
}}}}H.call(this);
};
}(jQuery,jQuery.ui.accordion.prototype));
}})(jQuery);
(function(A,B){var C=0;
A.widget("ui.autocomplete",{version:"1.9.2",defaultElement:"<input>",options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var E,D,F;
this.isMultiLine=this._isMultiLine();
this.valueMethod=this.element[this.element.is("input,textarea")?"val":"text"];
this.isNewMenu=true;
this.element.addClass("ui-autocomplete-input").attr("autocomplete","off");
this._on(this.element,{keydown:function(G){if(this.element.prop("readOnly")){E=true;
F=true;
D=true;
return ;
}E=false;
F=false;
D=false;
var H=A.ui.keyCode;
switch(G.keyCode){case H.PAGE_UP:E=true;
this._move("previousPage",G);
break;
case H.PAGE_DOWN:E=true;
this._move("nextPage",G);
break;
case H.UP:E=true;
this._keyEvent("previous",G);
break;
case H.DOWN:E=true;
this._keyEvent("next",G);
break;
case H.ENTER:case H.NUMPAD_ENTER:if(this.menu.active){E=true;
G.preventDefault();
this.menu.select(G);
}break;
case H.TAB:if(this.menu.active){this.menu.select(G);
}break;
case H.ESCAPE:if(this.menu.element.is(":visible")){this._value(this.term);
this.close(G);
G.preventDefault();
}break;
default:D=true;
this._searchTimeout(G);
break;
}},keypress:function(G){if(E){E=false;
G.preventDefault();
return ;
}if(D){return ;
}var H=A.ui.keyCode;
switch(G.keyCode){case H.PAGE_UP:this._move("previousPage",G);
break;
case H.PAGE_DOWN:this._move("nextPage",G);
break;
case H.UP:this._keyEvent("previous",G);
break;
case H.DOWN:this._keyEvent("next",G);
break;
}},input:function(G){if(F){F=false;
G.preventDefault();
return ;
}this._searchTimeout(G);
},focus:function(){this.selectedItem=null;
this.previous=this._value();
},blur:function(G){if(this.cancelBlur){delete this.cancelBlur;
return ;
}clearTimeout(this.searching);
this.close(G);
this._change(G);
}});
this._initSource();
this.menu=A("<ul>").addClass("ui-autocomplete").appendTo(this.document.find(this.options.appendTo||"body")[0]).menu({input:A(),role:null}).zIndex(this.element.zIndex()+1).hide().data("menu");
this._on(this.menu.element,{mousedown:function(G){G.preventDefault();
this.cancelBlur=true;
this._delay(function(){delete this.cancelBlur;
});
var H=this.menu.element[0];
if(!A(G.target).closest(".ui-menu-item").length){this._delay(function(){var I=this;
this.document.one("mousedown",function(J){if(J.target!==I.element[0]&&J.target!==H&&!A.contains(H,J.target)){I.close();
}});
});
}},menufocus:function(H,I){if(this.isNewMenu){this.isNewMenu=false;
if(H.originalEvent&&/^mouse/.test(H.originalEvent.type)){this.menu.blur();
this.document.one("mousemove",function(){A(H.target).trigger(H.originalEvent);
});
return ;
}}var G=I.item.data("ui-autocomplete-item")||I.item.data("item.autocomplete");
if(false!==this._trigger("focus",H,{item:G})){if(H.originalEvent&&/^key/.test(H.originalEvent.type)){this._value(G.value);
}}else{this.liveRegion.text(G.value);
}},menuselect:function(I,J){var H=J.item.data("ui-autocomplete-item")||J.item.data("item.autocomplete"),G=this.previous;
if(this.element[0]!==this.document[0].activeElement){this.element.focus();
this.previous=G;
this._delay(function(){this.previous=G;
this.selectedItem=H;
});
}if(false!==this._trigger("select",I,{item:H})){this._value(H.value);
}this.term=this._value();
this.close(I);
this.selectedItem=H;
}});
this.liveRegion=A("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertAfter(this.element);
if(A.fn.bgiframe){this.menu.element.bgiframe();
}this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete");
}});
},_destroy:function(){clearTimeout(this.searching);
this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete");
this.menu.element.remove();
this.liveRegion.remove();
},_setOption:function(D,E){this._super(D,E);
if(D==="source"){this._initSource();
}if(D==="appendTo"){this.menu.element.appendTo(this.document.find(E||"body")[0]);
}if(D==="disabled"&&E&&this.xhr){this.xhr.abort();
}},_isMultiLine:function(){if(this.element.is("textarea")){return true;
}if(this.element.is("input")){return false;
}return this.element.prop("isContentEditable");
},_initSource:function(){var F,D,E=this;
if(A.isArray(this.options.source)){F=this.options.source;
this.source=function(H,G){G(A.ui.autocomplete.filter(F,H.term));
};
}else{if(typeof this.options.source==="string"){D=this.options.source;
this.source=function(H,G){if(E.xhr){E.xhr.abort();
}E.xhr=A.ajax({url:D,data:H,dataType:"json",success:function(I){G(I);
},error:function(){G([]);
}});
};
}else{this.source=this.options.source;
}}},_searchTimeout:function(D){clearTimeout(this.searching);
this.searching=this._delay(function(){if(this.term!==this._value()){this.selectedItem=null;
this.search(null,D);
}},this.options.delay);
},search:function(E,D){E=E!=null?E:this._value();
this.term=this._value();
if(E.length<this.options.minLength){return this.close(D);
}if(this._trigger("search",D)===false){return ;
}return this._search(E);
},_search:function(D){this.pending++;
this.element.addClass("ui-autocomplete-loading");
this.cancelSearch=false;
this.source({term:D},this._response());
},_response:function(){var E=this,D=++C;
return function(F){if(D===C){E.__response(F);
}E.pending--;
if(!E.pending){E.element.removeClass("ui-autocomplete-loading");
}};
},__response:function(D){if(D){D=this._normalize(D);
}this._trigger("response",null,{content:D});
if(!this.options.disabled&&D&&D.length&&!this.cancelSearch){this._suggest(D);
this._trigger("open");
}else{this._close();
}},close:function(D){this.cancelSearch=true;
this._close(D);
},_close:function(D){if(this.menu.element.is(":visible")){this.menu.element.hide();
this.menu.blur();
this.isNewMenu=true;
this._trigger("close",D);
}},_change:function(D){if(this.previous!==this._value()){this._trigger("change",D,{item:this.selectedItem});
}},_normalize:function(D){if(D.length&&D[0].label&&D[0].value){return D;
}return A.map(D,function(E){if(typeof E==="string"){return{label:E,value:E};
}return A.extend({label:E.label||E.value,value:E.value||E.label},E);
});
},_suggest:function(D){var E=this.menu.element.empty().zIndex(this.element.zIndex()+1);
this._renderMenu(E,D);
this.menu.refresh();
E.show();
this._resizeMenu();
E.position(A.extend({of:this.element},this.options.position));
if(this.options.autoFocus){this.menu.next();
}},_resizeMenu:function(){var D=this.menu.element;
D.outerWidth(Math.max(D.width("").outerWidth()+1,this.element.outerWidth()));
},_renderMenu:function(E,D){var F=this;
A.each(D,function(G,H){F._renderItemData(E,H);
});
},_renderItemData:function(D,E){return this._renderItem(D,E).data("ui-autocomplete-item",E);
},_renderItem:function(D,E){return A("<li>").append(A("<a>").text(E.label)).appendTo(D);
},_move:function(E,D){if(!this.menu.element.is(":visible")){this.search(null,D);
return ;
}if(this.menu.isFirstItem()&&/^previous/.test(E)||this.menu.isLastItem()&&/^next/.test(E)){this._value(this.term);
this.menu.blur();
return ;
}this.menu[E](D);
},widget:function(){return this.menu.element;
},_value:function(){return this.valueMethod.apply(this.element,arguments);
},_keyEvent:function(E,D){if(!this.isMultiLine||this.menu.element.is(":visible")){this._move(E,D);
D.preventDefault();
}}});
A.extend(A.ui.autocomplete,{escapeRegex:function(D){return D.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");
},filter:function(F,D){var E=new RegExp(A.ui.autocomplete.escapeRegex(D),"i");
return A.grep(F,function(G){return E.test(G.label||G.value||G);
});
}});
A.widget("ui.autocomplete",A.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(D){return D+(D>1?" results are":" result is")+" available, use up and down arrow keys to navigate.";
}}},__response:function(E){var D;
this._superApply(arguments);
if(this.options.disabled||this.cancelSearch){return ;
}if(E&&E.length){D=this.options.messages.results(E.length);
}else{D=this.options.messages.noResults;
}this.liveRegion.text(D);
}});
}(jQuery));
(function(F,B){var K,E,A,H,I="ui-button ui-widget ui-state-default ui-corner-all",C="ui-state-hover ui-state-active ",G="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",J=function(){var L=F(this).find(":ui-button");
setTimeout(function(){L.button("refresh");
},1);
},D=function(M){var L=M.name,N=M.form,O=F([]);
if(L){if(N){O=F(N).find("[name='"+L+"']");
}else{O=F("[name='"+L+"']",M.ownerDocument).filter(function(){return !this.form;
});
}}return O;
};
F.widget("ui.button",{version:"1.9.2",defaultElement:"<button>",options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,J);
if(typeof this.options.disabled!=="boolean"){this.options.disabled=!!this.element.prop("disabled");
}else{this.element.prop("disabled",this.options.disabled);
}this._determineButtonType();
this.hasTitle=!!this.buttonElement.attr("title");
var O=this,M=this.options,P=this.type==="checkbox"||this.type==="radio",N=!P?"ui-state-active":"",L="ui-state-focus";
if(M.label===null){M.label=(this.type==="input"?this.buttonElement.val():this.buttonElement.html());
}this._hoverable(this.buttonElement);
this.buttonElement.addClass(I).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){if(M.disabled){return ;
}if(this===K){F(this).addClass("ui-state-active");
}}).bind("mouseleave"+this.eventNamespace,function(){if(M.disabled){return ;
}F(this).removeClass(N);
}).bind("click"+this.eventNamespace,function(Q){if(M.disabled){Q.preventDefault();
Q.stopImmediatePropagation();
}});
this.element.bind("focus"+this.eventNamespace,function(){O.buttonElement.addClass(L);
}).bind("blur"+this.eventNamespace,function(){O.buttonElement.removeClass(L);
});
if(P){this.element.bind("change"+this.eventNamespace,function(){if(H){return ;
}O.refresh();
});
this.buttonElement.bind("mousedown"+this.eventNamespace,function(Q){if(M.disabled){return ;
}H=false;
E=Q.pageX;
A=Q.pageY;
}).bind("mouseup"+this.eventNamespace,function(Q){if(M.disabled){return ;
}if(E!==Q.pageX||A!==Q.pageY){H=true;
}});
}if(this.type==="checkbox"){this.buttonElement.bind("click"+this.eventNamespace,function(){if(M.disabled||H){return false;
}F(this).toggleClass("ui-state-active");
O.buttonElement.attr("aria-pressed",O.element[0].checked);
});
}else{if(this.type==="radio"){this.buttonElement.bind("click"+this.eventNamespace,function(){if(M.disabled||H){return false;
}F(this).addClass("ui-state-active");
O.buttonElement.attr("aria-pressed","true");
var Q=O.element[0];
D(Q).not(Q).map(function(){return F(this).button("widget")[0];
}).removeClass("ui-state-active").attr("aria-pressed","false");
});
}else{this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(M.disabled){return false;
}F(this).addClass("ui-state-active");
K=this;
O.document.one("mouseup",function(){K=null;
});
}).bind("mouseup"+this.eventNamespace,function(){if(M.disabled){return false;
}F(this).removeClass("ui-state-active");
}).bind("keydown"+this.eventNamespace,function(Q){if(M.disabled){return false;
}if(Q.keyCode===F.ui.keyCode.SPACE||Q.keyCode===F.ui.keyCode.ENTER){F(this).addClass("ui-state-active");
}}).bind("keyup"+this.eventNamespace,function(){F(this).removeClass("ui-state-active");
});
if(this.buttonElement.is("a")){this.buttonElement.keyup(function(Q){if(Q.keyCode===F.ui.keyCode.SPACE){F(this).click();
}});
}}}this._setOption("disabled",M.disabled);
this._resetButton();
},_determineButtonType:function(){var L,N,M;
if(this.element.is("[type=checkbox]")){this.type="checkbox";
}else{if(this.element.is("[type=radio]")){this.type="radio";
}else{if(this.element.is("input")){this.type="input";
}else{this.type="button";
}}}if(this.type==="checkbox"||this.type==="radio"){L=this.element.parents().last();
N="label[for='"+this.element.attr("id")+"']";
this.buttonElement=L.find(N);
if(!this.buttonElement.length){L=L.length?L.siblings():this.element.siblings();
this.buttonElement=L.filter(N);
if(!this.buttonElement.length){this.buttonElement=L.find(N);
}}this.element.addClass("ui-helper-hidden-accessible");
M=this.element.is(":checked");
if(M){this.buttonElement.addClass("ui-state-active");
}this.buttonElement.prop("aria-pressed",M);
}else{this.buttonElement=this.element;
}},widget:function(){return this.buttonElement;
},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");
this.buttonElement.removeClass(I+" "+C+" "+G).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
if(!this.hasTitle){this.buttonElement.removeAttr("title");
}},_setOption:function(L,M){this._super(L,M);
if(L==="disabled"){if(M){this.element.prop("disabled",true);
}else{this.element.prop("disabled",false);
}return ;
}this._resetButton();
},refresh:function(){var L=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");
if(L!==this.options.disabled){this._setOption("disabled",L);
}if(this.type==="radio"){D(this.element[0]).each(function(){if(F(this).is(":checked")){F(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true");
}else{F(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false");
}});
}else{if(this.type==="checkbox"){if(this.element.is(":checked")){this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true");
}else{this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false");
}}}},_resetButton:function(){if(this.type==="input"){if(this.options.label){this.element.val(this.options.label);
}return ;
}var P=this.buttonElement.removeClass(G),N=F("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(P.empty()).text(),M=this.options.icons,L=M.primary&&M.secondary,O=[];
if(M.primary||M.secondary){if(this.options.text){O.push("ui-button-text-icon"+(L?"s":(M.primary?"-primary":"-secondary")));
}if(M.primary){P.prepend("<span class='ui-button-icon-primary ui-icon "+M.primary+"'></span>");
}if(M.secondary){P.append("<span class='ui-button-icon-secondary ui-icon "+M.secondary+"'></span>");
}if(!this.options.text){O.push(L?"ui-button-icons-only":"ui-button-icon-only");
if(!this.hasTitle){P.attr("title",F.trim(N));
}}}else{O.push("ui-button-text-only");
}P.addClass(O.join(" "));
}});
F.widget("ui.buttonset",{version:"1.9.2",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset");
},_init:function(){this.refresh();
},_setOption:function(L,M){if(L==="disabled"){this.buttons.button("option",L,M);
}this._super(L,M);
},refresh:function(){var L=this.element.css("direction")==="rtl";
this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return F(this).button("widget")[0];
}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(L?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(L?"ui-corner-left":"ui-corner-right").end().end();
},_destroy:function(){this.element.removeClass("ui-buttonset");
this.buttons.map(function(){return F(this).button("widget")[0];
}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");
}});
}(jQuery));
(function($,undefined){$.extend($.ui,{datepicker:{version:"1.9.2"}});
var PROP_NAME="datepicker";
var dpuuid=new Date().getTime();
var instActive;
function Datepicker(){this.debug=false;
this._curInst=null;
this._keyEvent=false;
this._disabledInputs=[];
this._datepickerShowing=false;
this._inDialog=false;
this._mainDivId="ui-datepicker-div";
this._inlineClass="ui-datepicker-inline";
this._appendClass="ui-datepicker-append";
this._triggerClass="ui-datepicker-trigger";
this._dialogClass="ui-datepicker-dialog";
this._disableClass="ui-datepicker-disabled";
this._unselectableClass="ui-datepicker-unselectable";
this._currentClass="ui-datepicker-current-day";
this._dayOverClass="ui-datepicker-days-cell-over";
this.regional=[];
this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};
this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};
$.extend(this._defaults,this.regional[""]);
this.dpDiv=bindHover($('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'));
}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){if(this.debug){console.log.apply("",arguments);
}},_widgetDatepicker:function(){return this.dpDiv;
},setDefaults:function(settings){extendRemove(this._defaults,settings||{});
return this;
},_attachDatepicker:function(target,settings){var inlineSettings=null;
for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);
if(attrValue){inlineSettings=inlineSettings||{};
try{inlineSettings[attrName]=eval(attrValue);
}catch(err){inlineSettings[attrName]=attrValue;
}}}var nodeName=target.nodeName.toLowerCase();
var inline=(nodeName=="div"||nodeName=="span");
if(!target.id){this.uuid+=1;
target.id="dp"+this.uuid;
}var inst=this._newInst($(target),inline);
inst.settings=$.extend({},settings||{},inlineSettings||{});
if(nodeName=="input"){this._connectDatepicker(target,inst);
}else{if(inline){this._inlineDatepicker(target,inst);
}}},_newInst:function(target,inline){var id=target[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");
return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:bindHover($('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')))};
},_connectDatepicker:function(target,inst){var input=$(target);
inst.append=$([]);
inst.trigger=$([]);
if(input.hasClass(this.markerClassName)){return ;
}this._attachments(input,inst);
input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value;
}).bind("getData.datepicker",function(event,key){return this._get(inst,key);
});
this._autoSize(inst);
$.data(target,PROP_NAME,inst);
if(inst.settings.disabled){this._disableDatepicker(target);
}},_attachments:function(input,inst){var appendText=this._get(inst,"appendText");
var isRTL=this._get(inst,"isRTL");
if(inst.append){inst.append.remove();
}if(appendText){inst.append=$('<span class="'+this._appendClass+'">'+appendText+"</span>");
input[isRTL?"before":"after"](inst.append);
}input.unbind("focus",this._showDatepicker);
if(inst.trigger){inst.trigger.remove();
}var showOn=this._get(inst,"showOn");
if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker);
}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");
var buttonImage=this._get(inst,"buttonImage");
inst.trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));
input[isRTL?"before":"after"](inst.trigger);
inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==input[0]){$.datepicker._hideDatepicker();
}else{if($.datepicker._datepickerShowing&&$.datepicker._lastInput!=input[0]){$.datepicker._hideDatepicker();
$.datepicker._showDatepicker(input[0]);
}else{$.datepicker._showDatepicker(input[0]);
}}return false;
});
}},_autoSize:function(inst){if(this._get(inst,"autoSize")&&!inst.inline){var date=new Date(2009,12-1,20);
var dateFormat=this._get(inst,"dateFormat");
if(dateFormat.match(/[DM]/)){var findMax=function(names){var max=0;
var maxI=0;
for(var i=0;
i<names.length;
i++){if(names[i].length>max){max=names[i].length;
maxI=i;
}}return maxI;
};
date.setMonth(findMax(this._get(inst,(dateFormat.match(/MM/)?"monthNames":"monthNamesShort"))));
date.setDate(findMax(this._get(inst,(dateFormat.match(/DD/)?"dayNames":"dayNamesShort")))+20-date.getDay());
}inst.input.attr("size",this._formatDate(inst,date).length);
}},_inlineDatepicker:function(target,inst){var divSpan=$(target);
if(divSpan.hasClass(this.markerClassName)){return ;
}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value;
}).bind("getData.datepicker",function(event,key){return this._get(inst,key);
});
$.data(target,PROP_NAME,inst);
this._setDate(inst,this._getDefaultDate(inst),true);
this._updateDatepicker(inst);
this._updateAlternate(inst);
if(inst.settings.disabled){this._disableDatepicker(target);
}inst.dpDiv.css("display","block");
},_dialogDatepicker:function(input,date,onSelect,settings,pos){var inst=this._dialogInst;
if(!inst){this.uuid+=1;
var id="dp"+this.uuid;
this._dialogInput=$('<input type="text" id="'+id+'" style="position: absolute; top: -100px; width: 0px;"/>');
this._dialogInput.keydown(this._doKeyDown);
$("body").append(this._dialogInput);
inst=this._dialogInst=this._newInst(this._dialogInput,false);
inst.settings={};
$.data(this._dialogInput[0],PROP_NAME,inst);
}extendRemove(inst.settings,settings||{});
date=(date&&date.constructor==Date?this._formatDate(inst,date):date);
this._dialogInput.val(date);
this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);
if(!this._pos){var browserWidth=document.documentElement.clientWidth;
var browserHeight=document.documentElement.clientHeight;
var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;
var scrollY=document.documentElement.scrollTop||document.body.scrollTop;
this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY];
}this._dialogInput.css("left",(this._pos[0]+20)+"px").css("top",this._pos[1]+"px");
inst.settings.onSelect=onSelect;
this._inDialog=true;
this.dpDiv.addClass(this._dialogClass);
this._showDatepicker(this._dialogInput[0]);
if($.blockUI){$.blockUI(this.dpDiv);
}$.data(this._dialogInput[0],PROP_NAME,inst);
return this;
},_destroyDatepicker:function(target){var $target=$(target);
var inst=$.data(target,PROP_NAME);
if(!$target.hasClass(this.markerClassName)){return ;
}var nodeName=target.nodeName.toLowerCase();
$.removeData(target,PROP_NAME);
if(nodeName=="input"){inst.append.remove();
inst.trigger.remove();
$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp);
}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty();
}}},_enableDatepicker:function(target){var $target=$(target);
var inst=$.data(target,PROP_NAME);
if(!$target.hasClass(this.markerClassName)){return ;
}var nodeName=target.nodeName.toLowerCase();
if(nodeName=="input"){target.disabled=false;
inst.trigger.filter("button").each(function(){this.disabled=false;
}).end().filter("img").css({opacity:"1.0",cursor:""});
}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);
inline.children().removeClass("ui-state-disabled");
inline.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",false);
}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value);
});
},_disableDatepicker:function(target){var $target=$(target);
var inst=$.data(target,PROP_NAME);
if(!$target.hasClass(this.markerClassName)){return ;
}var nodeName=target.nodeName.toLowerCase();
if(nodeName=="input"){target.disabled=true;
inst.trigger.filter("button").each(function(){this.disabled=true;
}).end().filter("img").css({opacity:"0.5",cursor:"default"});
}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);
inline.children().addClass("ui-state-disabled");
inline.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",true);
}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value);
});
this._disabledInputs[this._disabledInputs.length]=target;
},_isDisabledDatepicker:function(target){if(!target){return false;
}for(var i=0;
i<this._disabledInputs.length;
i++){if(this._disabledInputs[i]==target){return true;
}}return false;
},_getInst:function(target){try{return $.data(target,PROP_NAME);
}catch(err){throw"Missing instance data for this datepicker";
}},_optionDatepicker:function(target,name,value){var inst=this._getInst(target);
if(arguments.length==2&&typeof name=="string"){return(name=="defaults"?$.extend({},$.datepicker._defaults):(inst?(name=="all"?$.extend({},inst.settings):this._get(inst,name)):null));
}var settings=name||{};
if(typeof name=="string"){settings={};
settings[name]=value;
}if(inst){if(this._curInst==inst){this._hideDatepicker();
}var date=this._getDateDatepicker(target,true);
var minDate=this._getMinMaxDate(inst,"min");
var maxDate=this._getMinMaxDate(inst,"max");
extendRemove(inst.settings,settings);
if(minDate!==null&&settings.dateFormat!==undefined&&settings.minDate===undefined){inst.settings.minDate=this._formatDate(inst,minDate);
}if(maxDate!==null&&settings.dateFormat!==undefined&&settings.maxDate===undefined){inst.settings.maxDate=this._formatDate(inst,maxDate);
}this._attachments($(target),inst);
this._autoSize(inst);
this._setDate(inst,date);
this._updateAlternate(inst);
this._updateDatepicker(inst);
}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value);
},_refreshDatepicker:function(target){var inst=this._getInst(target);
if(inst){this._updateDatepicker(inst);
}},_setDateDatepicker:function(target,date){var inst=this._getInst(target);
if(inst){this._setDate(inst,date);
this._updateDatepicker(inst);
this._updateAlternate(inst);
}},_getDateDatepicker:function(target,noDefault){var inst=this._getInst(target);
if(inst&&!inst.inline){this._setDateFromField(inst,noDefault);
}return(inst?this._getDate(inst):null);
},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);
var handled=true;
var isRTL=inst.dpDiv.is(".ui-datepicker-rtl");
inst._keyEvent=true;
if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker();
handled=false;
break;
case 13:var sel=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",inst.dpDiv);
if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0]);
}var onSelect=$.datepicker._get(inst,"onSelect");
if(onSelect){var dateStr=$.datepicker._formatDate(inst);
onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst]);
}else{$.datepicker._hideDatepicker();
}return false;
break;
case 27:$.datepicker._hideDatepicker();
break;
case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");
break;
case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");
break;
case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target);
}handled=event.ctrlKey||event.metaKey;
break;
case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target);
}handled=event.ctrlKey||event.metaKey;
break;
case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D");
}handled=event.ctrlKey||event.metaKey;
if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");
}break;
case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,"D");
}handled=event.ctrlKey||event.metaKey;
break;
case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D");
}handled=event.ctrlKey||event.metaKey;
if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");
}break;
case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,"D");
}handled=event.ctrlKey||event.metaKey;
break;
default:handled=false;
}}else{if(event.keyCode==36&&event.ctrlKey){$.datepicker._showDatepicker(this);
}else{handled=false;
}}if(handled){event.preventDefault();
event.stopPropagation();
}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);
if($.datepicker._get(inst,"constrainInput")){var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));
var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);
return event.ctrlKey||event.metaKey||(chr<" "||!chars||chars.indexOf(chr)>-1);
}},_doKeyUp:function(event){var inst=$.datepicker._getInst(event.target);
if(inst.input.val()!=inst.lastVal){try{var date=$.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),(inst.input?inst.input.val():null),$.datepicker._getFormatConfig(inst));
if(date){$.datepicker._setDateFromField(inst);
$.datepicker._updateAlternate(inst);
$.datepicker._updateDatepicker(inst);
}}catch(err){$.datepicker.log(err);
}}return true;
},_showDatepicker:function(input){input=input.target||input;
if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0];
}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return ;
}var inst=$.datepicker._getInst(input);
if($.datepicker._curInst&&$.datepicker._curInst!=inst){$.datepicker._curInst.dpDiv.stop(true,true);
if(inst&&$.datepicker._datepickerShowing){$.datepicker._hideDatepicker($.datepicker._curInst.input[0]);
}}var beforeShow=$.datepicker._get(inst,"beforeShow");
var beforeShowSettings=beforeShow?beforeShow.apply(input,[input,inst]):{};
if(beforeShowSettings===false){return ;
}extendRemove(inst.settings,beforeShowSettings);
inst.lastVal=null;
$.datepicker._lastInput=input;
$.datepicker._setDateFromField(inst);
if($.datepicker._inDialog){input.value="";
}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);
$.datepicker._pos[1]+=input.offsetHeight;
}var isFixed=false;
$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";
return !isFixed;
});
var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};
$.datepicker._pos=null;
inst.dpDiv.empty();
inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});
$.datepicker._updateDatepicker(inst);
offset=$.datepicker._checkOffset(inst,offset,isFixed);
inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});
if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim");
var duration=$.datepicker._get(inst,"duration");
var postProcess=function(){var cover=inst.dpDiv.find("iframe.ui-datepicker-cover");
if(!!cover.length){var borders=$.datepicker._getBorders(inst.dpDiv);
cover.css({left:-borders[0],top:-borders[1],width:inst.dpDiv.outerWidth(),height:inst.dpDiv.outerHeight()});
}};
inst.dpDiv.zIndex($(input).zIndex()+1);
$.datepicker._datepickerShowing=true;
if($.effects&&($.effects.effect[showAnim]||$.effects[showAnim])){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess);
}else{inst.dpDiv[showAnim||"show"]((showAnim?duration:null),postProcess);
}if(!showAnim||!duration){postProcess();
}if(inst.input.is(":visible")&&!inst.input.is(":disabled")){inst.input.focus();
}$.datepicker._curInst=inst;
}},_updateDatepicker:function(inst){this.maxRows=4;
var borders=$.datepicker._getBorders(inst.dpDiv);
instActive=inst;
inst.dpDiv.empty().append(this._generateHTML(inst));
this._attachHandlers(inst);
var cover=inst.dpDiv.find("iframe.ui-datepicker-cover");
if(!!cover.length){cover.css({left:-borders[0],top:-borders[1],width:inst.dpDiv.outerWidth(),height:inst.dpDiv.outerHeight()});
}inst.dpDiv.find("."+this._dayOverClass+" a").mouseover();
var numMonths=this._getNumberOfMonths(inst);
var cols=numMonths[1];
var width=17;
inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");
if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em");
}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");
inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");
if(inst==$.datepicker._curInst&&$.datepicker._datepickerShowing&&inst.input&&inst.input.is(":visible")&&!inst.input.is(":disabled")&&inst.input[0]!=document.activeElement){inst.input.focus();
}if(inst.yearshtml){var origyearshtml=inst.yearshtml;
setTimeout(function(){if(origyearshtml===inst.yearshtml&&inst.yearshtml){inst.dpDiv.find("select.ui-datepicker-year:first").replaceWith(inst.yearshtml);
}origyearshtml=inst.yearshtml=null;
},0);
}},_getBorders:function(elem){var convert=function(value){return{thin:1,medium:2,thick:3}[value]||value;
};
return[parseFloat(convert(elem.css("border-left-width"))),parseFloat(convert(elem.css("border-top-width")))];
},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();
var dpHeight=inst.dpDiv.outerHeight();
var inputWidth=inst.input?inst.input.outerWidth():0;
var inputHeight=inst.input?inst.input.outerHeight():0;
var viewWidth=document.documentElement.clientWidth+(isFixed?0:$(document).scrollLeft());
var viewHeight=document.documentElement.clientHeight+(isFixed?0:$(document).scrollTop());
offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);
offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;
offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;
offset.left-=Math.min(offset.left,(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0);
offset.top-=Math.min(offset.top,(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(dpHeight+inputHeight):0);
return offset;
},_findPos:function(obj){var inst=this._getInst(obj);
var isRTL=this._get(inst,"isRTL");
while(obj&&(obj.type=="hidden"||obj.nodeType!=1||$.expr.filters.hidden(obj))){obj=obj[isRTL?"previousSibling":"nextSibling"];
}var position=$(obj).offset();
return[position.left,position.top];
},_hideDatepicker:function(input){var inst=this._curInst;
if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return ;
}if(this._datepickerShowing){var showAnim=this._get(inst,"showAnim");
var duration=this._get(inst,"duration");
var postProcess=function(){$.datepicker._tidyDialog(inst);
};
if($.effects&&($.effects.effect[showAnim]||$.effects[showAnim])){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess);
}else{inst.dpDiv[(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide"))]((showAnim?duration:null),postProcess);
}if(!showAnim){postProcess();
}this._datepickerShowing=false;
var onClose=this._get(inst,"onClose");
if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst]);
}this._lastInput=null;
if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});
if($.blockUI){$.unblockUI();
$("body").append(this.dpDiv);
}}this._inDialog=false;
}},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar");
},_checkExternalClick:function(event){if(!$.datepicker._curInst){return ;
}var $target=$(event.target),inst=$.datepicker._getInst($target[0]);
if((($target[0].id!=$.datepicker._mainDivId&&$target.parents("#"+$.datepicker._mainDivId).length==0&&!$target.hasClass($.datepicker.markerClassName)&&!$target.closest("."+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)))||($target.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!=inst)){$.datepicker._hideDatepicker();
}},_adjustDate:function(id,offset,period){var target=$(id);
var inst=this._getInst(target[0]);
if(this._isDisabledDatepicker(target[0])){return ;
}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);
this._updateDatepicker(inst);
},_gotoToday:function(id){var target=$(id);
var inst=this._getInst(target[0]);
if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;
inst.drawMonth=inst.selectedMonth=inst.currentMonth;
inst.drawYear=inst.selectedYear=inst.currentYear;
}else{var date=new Date();
inst.selectedDay=date.getDate();
inst.drawMonth=inst.selectedMonth=date.getMonth();
inst.drawYear=inst.selectedYear=date.getFullYear();
}this._notifyChange(inst);
this._adjustDate(target);
},_selectMonthYear:function(id,select,period){var target=$(id);
var inst=this._getInst(target[0]);
inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);
this._notifyChange(inst);
this._adjustDate(target);
},_selectDay:function(id,month,year,td){var target=$(id);
if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return ;
}var inst=this._getInst(target[0]);
inst.selectedDay=inst.currentDay=$("a",td).html();
inst.selectedMonth=inst.currentMonth=month;
inst.selectedYear=inst.currentYear=year;
this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));
},_clearDate:function(id){var target=$(id);
var inst=this._getInst(target[0]);
this._selectDate(target,"");
},_selectDate:function(id,dateStr){var target=$(id);
var inst=this._getInst(target[0]);
dateStr=(dateStr!=null?dateStr:this._formatDate(inst));
if(inst.input){inst.input.val(dateStr);
}this._updateAlternate(inst);
var onSelect=this._get(inst,"onSelect");
if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst]);
}else{if(inst.input){inst.input.trigger("change");
}}if(inst.inline){this._updateDatepicker(inst);
}else{this._hideDatepicker();
this._lastInput=inst.input[0];
if(typeof (inst.input[0])!="object"){inst.input.focus();
}this._lastInput=null;
}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");
if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");
var date=this._getDate(inst);
var dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));
$(altField).each(function(){$(this).val(dateStr);
});
}},noWeekends:function(date){var day=date.getDay();
return[(day>0&&day<6),""];
},iso8601Week:function(date){var checkDate=new Date(date.getTime());
checkDate.setDate(checkDate.getDate()+4-(checkDate.getDay()||7));
var time=checkDate.getTime();
checkDate.setMonth(0);
checkDate.setDate(1);
return Math.floor(Math.round((time-checkDate)/86400000)/7)+1;
},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments";
}value=(typeof value=="object"?value.toString():value+"");
if(value==""){return null;
}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;
shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));
var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;
var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;
var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;
var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;
var year=-1;
var month=-1;
var day=-1;
var doy=-1;
var literal=false;
var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);
if(matches){iFormat++;
}return matches;
};
var getNumber=function(match){var isDoubled=lookAhead(match);
var size=(match=="@"?14:(match=="!"?20:(match=="y"&&isDoubled?4:(match=="o"?3:2))));
var digits=new RegExp("^\\d{1,"+size+"}");
var num=value.substring(iValue).match(digits);
if(!num){throw"Missing number at position "+iValue;
}iValue+=num[0].length;
return parseInt(num[0],10);
};
var getName=function(match,shortNames,longNames){var names=$.map(lookAhead(match)?longNames:shortNames,function(v,k){return[[k,v]];
}).sort(function(a,b){return -(a[1].length-b[1].length);
});
var index=-1;
$.each(names,function(i,pair){var name=pair[1];
if(value.substr(iValue,name.length).toLowerCase()==name.toLowerCase()){index=pair[0];
iValue+=name.length;
return false;
}});
if(index!=-1){return index+1;
}else{throw"Unknown name at position "+iValue;
}};
var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue;
}iValue++;
};
var iValue=0;
for(var iFormat=0;
iFormat<format.length;
iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false;
}else{checkLiteral();
}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");
break;
case"D":getName("D",dayNamesShort,dayNames);
break;
case"o":doy=getNumber("o");
break;
case"m":month=getNumber("m");
break;
case"M":month=getName("M",monthNamesShort,monthNames);
break;
case"y":year=getNumber("y");
break;
case"@":var date=new Date(getNumber("@"));
year=date.getFullYear();
month=date.getMonth()+1;
day=date.getDate();
break;
case"!":var date=new Date((getNumber("!")-this._ticksTo1970)/10000);
year=date.getFullYear();
month=date.getMonth()+1;
day=date.getDate();
break;
case"'":if(lookAhead("'")){checkLiteral();
}else{literal=true;
}break;
default:checkLiteral();
}}}if(iValue<value.length){var extra=value.substr(iValue);
if(!/^\s+/.test(extra)){throw"Extra/unparsed characters found in date: "+extra;
}}if(year==-1){year=new Date().getFullYear();
}else{if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100);
}}if(doy>-1){month=1;
day=doy;
do{var dim=this._getDaysInMonth(year,month-1);
if(day<=dim){break;
}month++;
day-=dim;
}while(true);
}var date=this._daylightSavingAdjust(new Date(year,month-1,day));
if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date";
}return date;
},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*10000000),formatDate:function(format,date,settings){if(!date){return"";
}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;
var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;
var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;
var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;
var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);
if(matches){iFormat++;
}return matches;
};
var formatNumber=function(match,value,len){var num=""+value;
if(lookAhead(match)){while(num.length<len){num="0"+num;
}}return num;
};
var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value]);
};
var output="";
var literal=false;
if(date){for(var iFormat=0;
iFormat<format.length;
iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false;
}else{output+=format.charAt(iFormat);
}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);
break;
case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);
break;
case"o":output+=formatNumber("o",Math.round((new Date(date.getFullYear(),date.getMonth(),date.getDate()).getTime()-new Date(date.getFullYear(),0,0).getTime())/86400000),3);
break;
case"m":output+=formatNumber("m",date.getMonth()+1,2);
break;
case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);
break;
case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);
break;
case"@":output+=date.getTime();
break;
case"!":output+=date.getTime()*10000+this._ticksTo1970;
break;
case"'":if(lookAhead("'")){output+="'";
}else{literal=true;
}break;
default:output+=format.charAt(iFormat);
}}}}return output;
},_possibleChars:function(format){var chars="";
var literal=false;
var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);
if(matches){iFormat++;
}return matches;
};
for(var iFormat=0;
iFormat<format.length;
iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false;
}else{chars+=format.charAt(iFormat);
}}else{switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";
break;
case"D":case"M":return null;
case"'":if(lookAhead("'")){chars+="'";
}else{literal=true;
}break;
default:chars+=format.charAt(iFormat);
}}}return chars;
},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name];
},_setDateFromField:function(inst,noDefault){if(inst.input.val()==inst.lastVal){return ;
}var dateFormat=this._get(inst,"dateFormat");
var dates=inst.lastVal=inst.input?inst.input.val():null;
var date,defaultDate;
date=defaultDate=this._getDefaultDate(inst);
var settings=this._getFormatConfig(inst);
try{date=this.parseDate(dateFormat,dates,settings)||defaultDate;
}catch(event){this.log(event);
dates=(noDefault?"":dates);
}inst.selectedDay=date.getDate();
inst.drawMonth=inst.selectedMonth=date.getMonth();
inst.drawYear=inst.selectedYear=date.getFullYear();
inst.currentDay=(dates?date.getDate():0);
inst.currentMonth=(dates?date.getMonth():0);
inst.currentYear=(dates?date.getFullYear():0);
this._adjustInstDate(inst);
},_getDefaultDate:function(inst){return this._restrictMinMax(inst,this._determineDate(inst,this._get(inst,"defaultDate"),new Date()));
},_determineDate:function(inst,date,defaultDate){var offsetNumeric=function(offset){var date=new Date();
date.setDate(date.getDate()+offset);
return date;
};
var offsetString=function(offset){try{return $.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),offset,$.datepicker._getFormatConfig(inst));
}catch(e){}var date=(offset.toLowerCase().match(/^c/)?$.datepicker._getDate(inst):null)||new Date();
var year=date.getFullYear();
var month=date.getMonth();
var day=date.getDate();
var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;
var matches=pattern.exec(offset);
while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);
break;
case"w":case"W":day+=parseInt(matches[1],10)*7;
break;
case"m":case"M":month+=parseInt(matches[1],10);
day=Math.min(day,$.datepicker._getDaysInMonth(year,month));
break;
case"y":case"Y":year+=parseInt(matches[1],10);
day=Math.min(day,$.datepicker._getDaysInMonth(year,month));
break;
}matches=pattern.exec(offset);
}return new Date(year,month,day);
};
var newDate=(date==null||date===""?defaultDate:(typeof date=="string"?offsetString(date):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):new Date(date.getTime()))));
newDate=(newDate&&newDate.toString()=="Invalid Date"?defaultDate:newDate);
if(newDate){newDate.setHours(0);
newDate.setMinutes(0);
newDate.setSeconds(0);
newDate.setMilliseconds(0);
}return this._daylightSavingAdjust(newDate);
},_daylightSavingAdjust:function(date){if(!date){return null;
}date.setHours(date.getHours()>12?date.getHours()+2:0);
return date;
},_setDate:function(inst,date,noChange){var clear=!date;
var origMonth=inst.selectedMonth;
var origYear=inst.selectedYear;
var newDate=this._restrictMinMax(inst,this._determineDate(inst,date,new Date()));
inst.selectedDay=inst.currentDay=newDate.getDate();
inst.drawMonth=inst.selectedMonth=inst.currentMonth=newDate.getMonth();
inst.drawYear=inst.selectedYear=inst.currentYear=newDate.getFullYear();
if((origMonth!=inst.selectedMonth||origYear!=inst.selectedYear)&&!noChange){this._notifyChange(inst);
}this._adjustInstDate(inst);
if(inst.input){inst.input.val(clear?"":this._formatDate(inst));
}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));
return startDate;
},_attachHandlers:function(inst){var stepMonths=this._get(inst,"stepMonths");
var id="#"+inst.id.replace(/\\\\/g,"\\");
inst.dpDiv.find("[data-handler]").map(function(){var handler={prev:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(id,-stepMonths,"M");
},next:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(id,+stepMonths,"M");
},hide:function(){window["DP_jQuery_"+dpuuid].datepicker._hideDatepicker();
},today:function(){window["DP_jQuery_"+dpuuid].datepicker._gotoToday(id);
},selectDay:function(){window["DP_jQuery_"+dpuuid].datepicker._selectDay(id,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this);
return false;
},selectMonth:function(){window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(id,this,"M");
return false;
},selectYear:function(){window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(id,this,"Y");
return false;
}};
$(this).bind(this.getAttribute("data-event"),handler[this.getAttribute("data-handler")]);
});
},_generateHTML:function(inst){var today=new Date();
today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));
var isRTL=this._get(inst,"isRTL");
var showButtonPanel=this._get(inst,"showButtonPanel");
var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");
var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");
var numMonths=this._getNumberOfMonths(inst);
var showCurrentAtPos=this._get(inst,"showCurrentAtPos");
var stepMonths=this._get(inst,"stepMonths");
var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);
var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));
var minDate=this._getMinMaxDate(inst,"min");
var maxDate=this._getMinMaxDate(inst,"max");
var drawMonth=inst.drawMonth-showCurrentAtPos;
var drawYear=inst.drawYear;
if(drawMonth<0){drawMonth+=12;
drawYear--;
}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-(numMonths[0]*numMonths[1])+1,maxDate.getDate()));
maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);
while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;
if(drawMonth<0){drawMonth=11;
drawYear--;
}}}inst.drawMonth=drawMonth;
inst.drawYear=drawYear;
var prevText=this._get(inst,"prevText");
prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));
var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" data-handler="prev" data-event="click" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>"));
var nextText=this._get(inst,"nextText");
nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));
var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" data-handler="next" data-event="click" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>"));
var currentText=this._get(inst,"currentText");
var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);
currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));
var controls=(!inst.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" data-handler="hide" data-event="click">'+this._get(inst,"closeText")+"</button>":"");
var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" data-handler="today" data-event="click">'+currentText+"</button>":"")+(isRTL?"":controls)+"</div>":"";
var firstDay=parseInt(this._get(inst,"firstDay"),10);
firstDay=(isNaN(firstDay)?0:firstDay);
var showWeek=this._get(inst,"showWeek");
var dayNames=this._get(inst,"dayNames");
var dayNamesShort=this._get(inst,"dayNamesShort");
var dayNamesMin=this._get(inst,"dayNamesMin");
var monthNames=this._get(inst,"monthNames");
var monthNamesShort=this._get(inst,"monthNamesShort");
var beforeShowDay=this._get(inst,"beforeShowDay");
var showOtherMonths=this._get(inst,"showOtherMonths");
var selectOtherMonths=this._get(inst,"selectOtherMonths");
var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;
var defaultDate=this._getDefaultDate(inst);
var html="";
for(var row=0;
row<numMonths[0];
row++){var group="";
this.maxRows=4;
for(var col=0;
col<numMonths[1];
col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));
var cornerClass=" ui-corner-all";
var calender="";
if(isMultiMonth){calender+='<div class="ui-datepicker-group';
if(numMonths[1]>1){switch(col){case 0:calender+=" ui-datepicker-group-first";
cornerClass=" ui-corner-"+(isRTL?"right":"left");
break;
case numMonths[1]-1:calender+=" ui-datepicker-group-last";
cornerClass=" ui-corner-"+(isRTL?"left":"right");
break;
default:calender+=" ui-datepicker-group-middle";
cornerClass="";
break;
}}calender+='">';
}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead><tr>';
var thead=(showWeek?'<th class="ui-datepicker-week-col">'+this._get(inst,"weekHeader")+"</th>":"");
for(var dow=0;
dow<7;
dow++){var day=(dow+firstDay)%7;
thead+="<th"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+dayNames[day]+'">'+dayNamesMin[day]+"</span></th>";
}calender+=thead+"</tr></thead><tbody>";
var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);
if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth);
}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;
var curRows=Math.ceil((leadDays+daysInMonth)/7);
var numRows=(isMultiMonth?this.maxRows>curRows?this.maxRows:curRows:curRows);
this.maxRows=numRows;
var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));
for(var dRow=0;
dRow<numRows;
dRow++){calender+="<tr>";
var tbody=(!showWeek?"":'<td class="ui-datepicker-week-col">'+this._get(inst,"calculateWeek")(printDate)+"</td>");
for(var dow=0;
dow<7;
dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);
var otherMonth=(printDate.getMonth()!=drawMonth);
var unselectable=(otherMonth&&!selectOtherMonths)||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);
tbody+='<td class="'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()==currentDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":' data-handler="selectDay" data-event="click" data-month="'+printDate.getMonth()+'" data-year="'+printDate.getFullYear()+'"')+">"+(otherMonth&&!showOtherMonths?"&#xa0;":(unselectable?'<span class="ui-state-default">'+printDate.getDate()+"</span>":'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?" ui-state-highlight":"")+(printDate.getTime()==currentDate.getTime()?" ui-state-active":"")+(otherMonth?" ui-priority-secondary":"")+'" href="#">'+printDate.getDate()+"</a>"))+"</td>";
printDate.setDate(printDate.getDate()+1);
printDate=this._daylightSavingAdjust(printDate);
}calender+=tbody+"</tr>";
}drawMonth++;
if(drawMonth>11){drawMonth=0;
drawYear++;
}calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col==numMonths[1]-1)?'<div class="ui-datepicker-row-break"></div>':""):"");
group+=calender;
}html+=group;
}html+=buttonPanel+($.ui.ie6&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");
inst._keyEvent=false;
return html;
},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,secondary,monthNames,monthNamesShort){var changeMonth=this._get(inst,"changeMonth");
var changeYear=this._get(inst,"changeYear");
var showMonthAfterYear=this._get(inst,"showMonthAfterYear");
var html='<div class="ui-datepicker-title">';
var monthHtml="";
if(secondary||!changeMonth){monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+"</span>";
}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);
var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);
monthHtml+='<select class="ui-datepicker-month" data-handler="selectMonth" data-event="change">';
for(var month=0;
month<12;
month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNamesShort[month]+"</option>";
}}monthHtml+="</select>";
}if(!showMonthAfterYear){html+=monthHtml+(secondary||!(changeMonth&&changeYear)?"&#xa0;":"");
}if(!inst.yearshtml){inst.yearshtml="";
if(secondary||!changeYear){html+='<span class="ui-datepicker-year">'+drawYear+"</span>";
}else{var years=this._get(inst,"yearRange").split(":");
var thisYear=new Date().getFullYear();
var determineYear=function(value){var year=(value.match(/c[+-].*/)?drawYear+parseInt(value.substring(1),10):(value.match(/[+-].*/)?thisYear+parseInt(value,10):parseInt(value,10)));
return(isNaN(year)?thisYear:year);
};
var year=determineYear(years[0]);
var endYear=Math.max(year,determineYear(years[1]||""));
year=(minDate?Math.max(year,minDate.getFullYear()):year);
endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);
inst.yearshtml+='<select class="ui-datepicker-year" data-handler="selectYear" data-event="change">';
for(;
year<=endYear;
year++){inst.yearshtml+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>";
}inst.yearshtml+="</select>";
html+=inst.yearshtml;
inst.yearshtml=null;
}}html+=this._get(inst,"yearSuffix");
if(showMonthAfterYear){html+=(secondary||!(changeMonth&&changeYear)?"&#xa0;":"")+monthHtml;
}html+="</div>";
return html;
},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);
var month=inst.drawMonth+(period=="M"?offset:0);
var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);
var date=this._restrictMinMax(inst,this._daylightSavingAdjust(new Date(year,month,day)));
inst.selectedDay=date.getDate();
inst.drawMonth=inst.selectedMonth=date.getMonth();
inst.drawYear=inst.selectedYear=date.getFullYear();
if(period=="M"||period=="Y"){this._notifyChange(inst);
}},_restrictMinMax:function(inst,date){var minDate=this._getMinMaxDate(inst,"min");
var maxDate=this._getMinMaxDate(inst,"max");
var newDate=(minDate&&date<minDate?minDate:date);
newDate=(maxDate&&newDate>maxDate?maxDate:newDate);
return newDate;
},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");
if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst]);
}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");
return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths));
},_getMinMaxDate:function(inst,minMax){return this._determineDate(inst,this._get(inst,minMax+"Date"),null);
},_getDaysInMonth:function(year,month){return 32-this._daylightSavingAdjust(new Date(year,month,32)).getDate();
},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay();
},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);
var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[0]*numMonths[1]),1));
if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()));
}return this._isInRange(inst,date);
},_isInRange:function(inst,date){var minDate=this._getMinMaxDate(inst,"min");
var maxDate=this._getMinMaxDate(inst,"max");
return((!minDate||date.getTime()>=minDate.getTime())&&(!maxDate||date.getTime()<=maxDate.getTime()));
},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");
shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));
return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")};
},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;
inst.currentMonth=inst.selectedMonth;
inst.currentYear=inst.selectedYear;
}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));
return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst));
}});
function bindHover(dpDiv){var selector="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
return dpDiv.delegate(selector,"mouseout",function(){$(this).removeClass("ui-state-hover");
if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).removeClass("ui-datepicker-prev-hover");
}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).removeClass("ui-datepicker-next-hover");
}}).delegate(selector,"mouseover",function(){if(!$.datepicker._isDisabledDatepicker(instActive.inline?dpDiv.parent()[0]:instActive.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
$(this).addClass("ui-state-hover");
if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).addClass("ui-datepicker-prev-hover");
}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).addClass("ui-datepicker-next-hover");
}}});
}function extendRemove(target,props){$.extend(target,props);
for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name];
}}return target;
}$.fn.datepicker=function(options){if(!this.length){return this;
}if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find(document.body).append($.datepicker.dpDiv);
$.datepicker.initialized=true;
}var otherArgs=Array.prototype.slice.call(arguments,1);
if(typeof options=="string"&&(options=="isDisabled"||options=="getDate"||options=="widget")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs));
}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs));
}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options);
});
};
$.datepicker=new Datepicker();
$.datepicker.initialized=false;
$.datepicker.uuid=new Date().getTime();
$.datepicker.version="1.9.2";
window["DP_jQuery_"+dpuuid]=$;
})(jQuery);
(function(D,E){var B="ui-dialog ui-widget ui-widget-content ui-corner-all ",A={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},C={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};
D.widget("ui.dialog",{version:"1.9.2",options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(G){var F=D(this).css(G).offset().top;
if(F<0){D(this).css("top",G.top-F);
}}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},_create:function(){this.originalTitle=this.element.attr("title");
if(typeof this.originalTitle!=="string"){this.originalTitle="";
}this.oldPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};
this.options.title=this.options.title||this.originalTitle;
var K=this,J=this.options,M=J.title||"&#160;",H,L,F,I,G;
H=(this.uiDialog=D("<div>")).addClass(B+J.dialogClass).css({display:"none",outline:0,zIndex:J.zIndex}).attr("tabIndex",-1).keydown(function(N){if(J.closeOnEscape&&!N.isDefaultPrevented()&&N.keyCode&&N.keyCode===D.ui.keyCode.ESCAPE){K.close(N);
N.preventDefault();
}}).mousedown(function(N){K.moveToTop(false,N);
}).appendTo("body");
this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(H);
L=(this.uiDialogTitlebar=D("<div>")).addClass("ui-dialog-titlebar  ui-widget-header  ui-corner-all  ui-helper-clearfix").bind("mousedown",function(){H.focus();
}).prependTo(H);
F=D("<a href='#'></a>").addClass("ui-dialog-titlebar-close  ui-corner-all").attr("role","button").click(function(N){N.preventDefault();
K.close(N);
}).appendTo(L);
(this.uiDialogTitlebarCloseText=D("<span>")).addClass("ui-icon ui-icon-closethick").text(J.closeText).appendTo(F);
I=D("<span>").uniqueId().addClass("ui-dialog-title").html(M).prependTo(L);
G=(this.uiDialogButtonPane=D("<div>")).addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");
(this.uiButtonSet=D("<div>")).addClass("ui-dialog-buttonset").appendTo(G);
H.attr({role:"dialog","aria-labelledby":I.attr("id")});
L.find("*").add(L).disableSelection();
this._hoverable(F);
this._focusable(F);
if(J.draggable&&D.fn.draggable){this._makeDraggable();
}if(J.resizable&&D.fn.resizable){this._makeResizable();
}this._createButtons(J.buttons);
this._isOpen=false;
if(D.fn.bgiframe){H.bgiframe();
}this._on(H,{keydown:function(P){if(!J.modal||P.keyCode!==D.ui.keyCode.TAB){return ;
}var O=D(":tabbable",H),Q=O.filter(":first"),N=O.filter(":last");
if(P.target===N[0]&&!P.shiftKey){Q.focus(1);
return false;
}else{if(P.target===Q[0]&&P.shiftKey){N.focus(1);
return false;
}}}});
},_init:function(){if(this.options.autoOpen){this.open();
}},_destroy:function(){var G,F=this.oldPosition;
if(this.overlay){this.overlay.destroy();
}this.uiDialog.hide();
this.element.removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
this.uiDialog.remove();
if(this.originalTitle){this.element.attr("title",this.originalTitle);
}G=F.parent.children().eq(F.index);
if(G.length&&G[0]!==this.element[0]){G.before(this.element);
}else{F.parent.append(this.element);
}},widget:function(){return this.uiDialog;
},close:function(I){var H=this,G,F;
if(!this._isOpen){return ;
}if(false===this._trigger("beforeClose",I)){return ;
}this._isOpen=false;
if(this.overlay){this.overlay.destroy();
}if(this.options.hide){this._hide(this.uiDialog,this.options.hide,function(){H._trigger("close",I);
});
}else{this.uiDialog.hide();
this._trigger("close",I);
}D.ui.dialog.overlay.resize();
if(this.options.modal){G=0;
D(".ui-dialog").each(function(){if(this!==H.uiDialog[0]){F=D(this).css("z-index");
if(!isNaN(F)){G=Math.max(G,F);
}}});
D.ui.dialog.maxZ=G;
}return this;
},isOpen:function(){return this._isOpen;
},moveToTop:function(I,H){var G=this.options,F;
if((G.modal&&!I)||(!G.stack&&!G.modal)){return this._trigger("focus",H);
}if(G.zIndex>D.ui.dialog.maxZ){D.ui.dialog.maxZ=G.zIndex;
}if(this.overlay){D.ui.dialog.maxZ+=1;
D.ui.dialog.overlay.maxZ=D.ui.dialog.maxZ;
this.overlay.$el.css("z-index",D.ui.dialog.overlay.maxZ);
}F={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()};
D.ui.dialog.maxZ+=1;
this.uiDialog.css("z-index",D.ui.dialog.maxZ);
this.element.attr(F);
this._trigger("focus",H);
return this;
},open:function(){if(this._isOpen){return ;
}var H,G=this.options,F=this.uiDialog;
this._size();
this._position(G.position);
F.show(G.show);
this.overlay=G.modal?new D.ui.dialog.overlay(this):null;
this.moveToTop(true);
H=this.element.find(":tabbable");
if(!H.length){H=this.uiDialogButtonPane.find(":tabbable");
if(!H.length){H=F;
}}H.eq(0).focus();
this._isOpen=true;
this._trigger("open");
return this;
},_createButtons:function(H){var G=this,F=false;
this.uiDialogButtonPane.remove();
this.uiButtonSet.empty();
if(typeof H==="object"&&H!==null){D.each(H,function(){return !(F=true);
});
}if(F){D.each(H,function(I,K){var J,L;
K=D.isFunction(K)?{click:K,text:I}:K;
K=D.extend({type:"button"},K);
L=K.click;
K.click=function(){L.apply(G.element[0],arguments);
};
J=D("<button></button>",K).appendTo(G.uiButtonSet);
if(D.fn.button){J.button();
}});
this.uiDialog.addClass("ui-dialog-buttons");
this.uiDialogButtonPane.appendTo(this.uiDialog);
}else{this.uiDialog.removeClass("ui-dialog-buttons");
}},_makeDraggable:function(){var H=this,G=this.options;
function F(I){return{position:I.position,offset:I.offset};
}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(I,J){D(this).addClass("ui-dialog-dragging");
H._trigger("dragStart",I,F(J));
},drag:function(I,J){H._trigger("drag",I,F(J));
},stop:function(I,J){G.position=[J.position.left-H.document.scrollLeft(),J.position.top-H.document.scrollTop()];
D(this).removeClass("ui-dialog-dragging");
H._trigger("dragStop",I,F(J));
D.ui.dialog.overlay.resize();
}});
},_makeResizable:function(J){J=(J===E?this.options.resizable:J);
var K=this,I=this.options,F=this.uiDialog.css("position"),H=typeof J==="string"?J:"n,e,s,w,se,sw,ne,nw";
function G(L){return{originalPosition:L.originalPosition,originalSize:L.originalSize,position:L.position,size:L.size};
}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:I.maxWidth,maxHeight:I.maxHeight,minWidth:I.minWidth,minHeight:this._minHeight(),handles:H,start:function(L,M){D(this).addClass("ui-dialog-resizing");
K._trigger("resizeStart",L,G(M));
},resize:function(L,M){K._trigger("resize",L,G(M));
},stop:function(L,M){D(this).removeClass("ui-dialog-resizing");
I.height=D(this).height();
I.width=D(this).width();
K._trigger("resizeStop",L,G(M));
D.ui.dialog.overlay.resize();
}}).css("position",F).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se");
},_minHeight:function(){var F=this.options;
if(F.height==="auto"){return F.minHeight;
}else{return Math.min(F.minHeight,F.height);
}},_position:function(G){var H=[],I=[0,0],F;
if(G){if(typeof G==="string"||(typeof G==="object"&&"0" in G)){H=G.split?G.split(" "):[G[0],G[1]];
if(H.length===1){H[1]=H[0];
}D.each(["left","top"],function(K,J){if(+H[K]===H[K]){I[K]=H[K];
H[K]=J;
}});
G={my:H[0]+(I[0]<0?I[0]:"+"+I[0])+" "+H[1]+(I[1]<0?I[1]:"+"+I[1]),at:H.join(" ")};
}G=D.extend({},D.ui.dialog.prototype.options.position,G);
}else{G=D.ui.dialog.prototype.options.position;
}F=this.uiDialog.is(":visible");
if(!F){this.uiDialog.show();
}this.uiDialog.position(G);
if(!F){this.uiDialog.hide();
}},_setOptions:function(H){var I=this,F={},G=false;
D.each(H,function(J,K){I._setOption(J,K);
if(J in A){G=true;
}if(J in C){F[J]=K;
}});
if(G){this._size();
}if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option",F);
}},_setOption:function(H,I){var G,J,F=this.uiDialog;
switch(H){case"buttons":this._createButtons(I);
break;
case"closeText":this.uiDialogTitlebarCloseText.text(""+I);
break;
case"dialogClass":F.removeClass(this.options.dialogClass).addClass(B+I);
break;
case"disabled":if(I){F.addClass("ui-dialog-disabled");
}else{F.removeClass("ui-dialog-disabled");
}break;
case"draggable":G=F.is(":data(draggable)");
if(G&&!I){F.draggable("destroy");
}if(!G&&I){this._makeDraggable();
}break;
case"position":this._position(I);
break;
case"resizable":J=F.is(":data(resizable)");
if(J&&!I){F.resizable("destroy");
}if(J&&typeof I==="string"){F.resizable("option","handles",I);
}if(!J&&I!==false){this._makeResizable(I);
}break;
case"title":D(".ui-dialog-title",this.uiDialogTitlebar).html(""+(I||"&#160;"));
break;
}this._super(H,I);
},_size:function(){var G,J,I,H=this.options,F=this.uiDialog.is(":visible");
this.element.show().css({width:"auto",minHeight:0,height:0});
if(H.minWidth>H.width){H.width=H.minWidth;
}G=this.uiDialog.css({height:"auto",width:H.width}).outerHeight();
J=Math.max(0,H.minHeight-G);
if(H.height==="auto"){if(D.support.minHeight){this.element.css({minHeight:J,height:"auto"});
}else{this.uiDialog.show();
I=this.element.css("height","auto").height();
if(!F){this.uiDialog.hide();
}this.element.height(Math.max(I,J));
}}else{this.element.height(Math.max(H.height-G,0));
}if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight());
}}});
D.extend(D.ui.dialog,{uuid:0,maxZ:0,getTitleId:function(F){var G=F.attr("id");
if(!G){this.uuid+=1;
G=this.uuid;
}return"ui-dialog-title-"+G;
},overlay:function(F){this.$el=D.ui.dialog.overlay.create(F);
}});
D.extend(D.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:D.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(F){return F+".dialog-overlay";
}).join(" "),create:function(G){if(this.instances.length===0){setTimeout(function(){if(D.ui.dialog.overlay.instances.length){D(document).bind(D.ui.dialog.overlay.events,function(H){if(D(H.target).zIndex()<D.ui.dialog.overlay.maxZ){return false;
}});
}},1);
D(window).bind("resize.dialog-overlay",D.ui.dialog.overlay.resize);
}var F=(this.oldInstances.pop()||D("<div>").addClass("ui-widget-overlay"));
D(document).bind("keydown.dialog-overlay",function(H){var I=D.ui.dialog.overlay.instances;
if(I.length!==0&&I[I.length-1]===F&&G.options.closeOnEscape&&!H.isDefaultPrevented()&&H.keyCode&&H.keyCode===D.ui.keyCode.ESCAPE){G.close(H);
H.preventDefault();
}});
F.appendTo(document.body).css({width:this.width(),height:this.height()});
if(D.fn.bgiframe){F.bgiframe();
}this.instances.push(F);
return F;
},destroy:function(F){var G=D.inArray(F,this.instances),H=0;
if(G!==-1){this.oldInstances.push(this.instances.splice(G,1)[0]);
}if(this.instances.length===0){D([document,window]).unbind(".dialog-overlay");
}F.height(0).width(0).remove();
D.each(this.instances,function(){H=Math.max(H,this.css("z-index"));
});
this.maxZ=H;
},height:function(){var G,F;
if(D.ui.ie){G=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);
F=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);
if(G<F){return D(window).height()+"px";
}else{return G+"px";
}}else{return D(document).height()+"px";
}},width:function(){var F,G;
if(D.ui.ie){F=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);
G=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);
if(F<G){return D(window).width()+"px";
}else{return F+"px";
}}else{return D(document).width()+"px";
}},resize:function(){var F=D([]);
D.each(D.ui.dialog.overlay.instances,function(){F=F.add(this);
});
F.css({width:0,height:0}).css({width:D.ui.dialog.overlay.width(),height:D.ui.dialog.overlay.height()});
}});
D.extend(D.ui.dialog.overlay.prototype,{destroy:function(){D.ui.dialog.overlay.destroy(this.$el);
}});
}(jQuery));
(function(B,C){var A=false;
B.widget("ui.menu",{version:"1.9.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;
this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,B.proxy(function(D){if(this.options.disabled){D.preventDefault();
}},this));
if(this.options.disabled){this.element.addClass("ui-state-disabled").attr("aria-disabled","true");
}this._on({"mousedown .ui-menu-item > a":function(D){D.preventDefault();
},"click .ui-state-disabled > a":function(D){D.preventDefault();
},"click .ui-menu-item:has(a)":function(D){var E=B(D.target).closest(".ui-menu-item");
if(!A&&E.not(".ui-state-disabled").length){A=true;
this.select(D);
if(E.has(".ui-menu").length){this.expand(D);
}else{if(!this.element.is(":focus")){this.element.trigger("focus",[true]);
if(this.active&&this.active.parents(".ui-menu").length===1){clearTimeout(this.timer);
}}}}},"mouseenter .ui-menu-item":function(D){var E=B(D.currentTarget);
E.siblings().children(".ui-state-active").removeClass("ui-state-active");
this.focus(D,E);
},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(F,D){var E=this.active||this.element.children(".ui-menu-item").eq(0);
if(!D){this.focus(F,E);
}},blur:function(D){this._delay(function(){if(!B.contains(this.element[0],this.document[0].activeElement)){this.collapseAll(D);
}});
},keydown:"_keydown"});
this.refresh();
this._on(this.document,{click:function(D){if(!B(D.target).closest(".ui-menu").length){this.collapseAll(D);
}A=false;
}});
},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();
this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var D=B(this);
if(D.data("ui-menu-submenu-carat")){D.remove();
}});
this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content");
},_keydown:function(J){var E,I,K,H,G,D=true;
function F(L){return L.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");
}switch(J.keyCode){case B.ui.keyCode.PAGE_UP:this.previousPage(J);
break;
case B.ui.keyCode.PAGE_DOWN:this.nextPage(J);
break;
case B.ui.keyCode.HOME:this._move("first","first",J);
break;
case B.ui.keyCode.END:this._move("last","last",J);
break;
case B.ui.keyCode.UP:this.previous(J);
break;
case B.ui.keyCode.DOWN:this.next(J);
break;
case B.ui.keyCode.LEFT:this.collapse(J);
break;
case B.ui.keyCode.RIGHT:if(this.active&&!this.active.is(".ui-state-disabled")){this.expand(J);
}break;
case B.ui.keyCode.ENTER:case B.ui.keyCode.SPACE:this._activate(J);
break;
case B.ui.keyCode.ESCAPE:this.collapse(J);
break;
default:D=false;
I=this.previousFilter||"";
K=String.fromCharCode(J.keyCode);
H=false;
clearTimeout(this.filterTimer);
if(K===I){H=true;
}else{K=I+K;
}G=new RegExp("^"+F(K),"i");
E=this.activeMenu.children(".ui-menu-item").filter(function(){return G.test(B(this).children("a").text());
});
E=H&&E.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):E;
if(!E.length){K=String.fromCharCode(J.keyCode);
G=new RegExp("^"+F(K),"i");
E=this.activeMenu.children(".ui-menu-item").filter(function(){return G.test(B(this).children("a").text());
});
}if(E.length){this.focus(J,E);
if(E.length>1){this.previousFilter=K;
this.filterTimer=this._delay(function(){delete this.previousFilter;
},1000);
}else{delete this.previousFilter;
}}else{delete this.previousFilter;
}}if(D){J.preventDefault();
}},_activate:function(D){if(!this.active.is(".ui-state-disabled")){if(this.active.children("a[aria-haspopup='true']").length){this.expand(D);
}else{this.select(D);
}}},refresh:function(){var F,E=this.options.icons.submenu,D=this.element.find(this.options.menus);
D.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var I=B(this),H=I.prev("a"),G=B("<span>").addClass("ui-menu-icon ui-icon "+E).data("ui-menu-submenu-carat",true);
H.attr("aria-haspopup","true").prepend(G);
I.attr("aria-labelledby",H.attr("id"));
});
F=D.add(this.element);
F.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()});
F.children(":not(.ui-menu-item)").each(function(){var G=B(this);
if(!/[^\-—–\s]/.test(G.text())){G.addClass("ui-widget-content ui-menu-divider");
}});
F.children(".ui-state-disabled").attr("aria-disabled","true");
if(this.active&&!B.contains(this.element[0],this.active[0])){this.blur();
}},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role];
},focus:function(E,D){var G,F;
this.blur(E,E&&E.type==="focus");
this._scrollIntoView(D);
this.active=D.first();
F=this.active.children("a").addClass("ui-state-focus");
if(this.options.role){this.element.attr("aria-activedescendant",F.attr("id"));
}this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");
if(E&&E.type==="keydown"){this._close();
}else{this.timer=this._delay(function(){this._close();
},this.delay);
}G=D.children(".ui-menu");
if(G.length&&(/^mouse/.test(E.type))){this._startOpening(G);
}this.activeMenu=D.parent();
this._trigger("focus",E,{item:D});
},_scrollIntoView:function(G){var J,F,H,D,E,I;
if(this._hasScroll()){J=parseFloat(B.css(this.activeMenu[0],"borderTopWidth"))||0;
F=parseFloat(B.css(this.activeMenu[0],"paddingTop"))||0;
H=G.offset().top-this.activeMenu.offset().top-J-F;
D=this.activeMenu.scrollTop();
E=this.activeMenu.height();
I=G.height();
if(H<0){this.activeMenu.scrollTop(D+H);
}else{if(H+I>E){this.activeMenu.scrollTop(D+H-E+I);
}}}},blur:function(E,D){if(!D){clearTimeout(this.timer);
}if(!this.active){return ;
}this.active.children("a").removeClass("ui-state-focus");
this.active=null;
this._trigger("blur",E,{item:this.active});
},_startOpening:function(D){clearTimeout(this.timer);
if(D.attr("aria-hidden")!=="true"){return ;
}this.timer=this._delay(function(){this._close();
this._open(D);
},this.delay);
},_open:function(E){var D=B.extend({of:this.active},this.options.position);
clearTimeout(this.timer);
this.element.find(".ui-menu").not(E.parents(".ui-menu")).hide().attr("aria-hidden","true");
E.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(D);
},collapseAll:function(E,D){clearTimeout(this.timer);
this.timer=this._delay(function(){var F=D?this.element:B(E&&E.target).closest(this.element.find(".ui-menu"));
if(!F.length){F=this.element;
}this._close(F);
this.blur(E);
this.activeMenu=F;
},this.delay);
},_close:function(D){if(!D){D=this.active?this.active.parent():this.element;
}D.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active");
},collapse:function(E){var D=this.active&&this.active.parent().closest(".ui-menu-item",this.element);
if(D&&D.length){this._close();
this.focus(E,D);
}},expand:function(E){var D=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();
if(D&&D.length){this._open(D.parent());
this._delay(function(){this.focus(E,D);
});
}},next:function(D){this._move("next","first",D);
},previous:function(D){this._move("prev","last",D);
},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length;
},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length;
},_move:function(G,E,F){var D;
if(this.active){if(G==="first"||G==="last"){D=this.active[G==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1);
}else{D=this.active[G+"All"](".ui-menu-item").eq(0);
}}if(!D||!D.length||!this.active){D=this.activeMenu.children(".ui-menu-item")[E]();
}this.focus(F,D);
},nextPage:function(F){var E,G,D;
if(!this.active){this.next(F);
return ;
}if(this.isLastItem()){return ;
}if(this._hasScroll()){G=this.active.offset().top;
D=this.element.height();
this.active.nextAll(".ui-menu-item").each(function(){E=B(this);
return E.offset().top-G-D<0;
});
this.focus(F,E);
}else{this.focus(F,this.activeMenu.children(".ui-menu-item")[!this.active?"first":"last"]());
}},previousPage:function(F){var E,G,D;
if(!this.active){this.next(F);
return ;
}if(this.isFirstItem()){return ;
}if(this._hasScroll()){G=this.active.offset().top;
D=this.element.height();
this.active.prevAll(".ui-menu-item").each(function(){E=B(this);
return E.offset().top-G+D>0;
});
this.focus(F,E);
}else{this.focus(F,this.activeMenu.children(".ui-menu-item").first());
}},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight");
},select:function(D){this.active=this.active||B(D.target).closest(".ui-menu-item");
var E={item:this.active};
if(!this.active.has(".ui-menu").length){this.collapseAll(D,true);
}this._trigger("select",D,E);
}});
}(jQuery));
(function(A,B){A.widget("ui.progressbar",{version:"1.9.2",options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});
this.valueDiv=A("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);
this.oldValue=this._value();
this._refreshValue();
},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
this.valueDiv.remove();
},value:function(C){if(C===B){return this._value();
}this._setOption("value",C);
return this;
},_setOption:function(C,D){if(C==="value"){this.options.value=D;
this._refreshValue();
if(this._value()===this.options.max){this._trigger("complete");
}}this._super(C,D);
},_value:function(){var C=this.options.value;
if(typeof C!=="number"){C=0;
}return Math.min(this.options.max,Math.max(this.min,C));
},_percentage:function(){return 100*this._value()/this.options.max;
},_refreshValue:function(){var D=this.value(),C=this._percentage();
if(this.oldValue!==D){this.oldValue=D;
this._trigger("change");
}this.valueDiv.toggle(D>this.min).toggleClass("ui-corner-right",D===this.options.max).width(C.toFixed(0)+"%");
this.element.attr("aria-valuenow",D);
}});
})(jQuery);
(function(B,C){var A=5;
B.widget("ui.slider",B.ui.mouse,{version:"1.9.2",widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var F,D,I=this.options,H=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),G="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",E=[];
this._keySliding=false;
this._mouseSliding=false;
this._animateOff=true;
this._handleIndex=null;
this._detectOrientation();
this._mouseInit();
this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(I.disabled?" ui-slider-disabled ui-disabled":""));
this.range=B([]);
if(I.range){if(I.range===true){if(!I.values){I.values=[this._valueMin(),this._valueMin()];
}if(I.values.length&&I.values.length!==2){I.values=[I.values[0],I.values[0]];
}}this.range=B("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+((I.range==="min"||I.range==="max")?" ui-slider-range-"+I.range:""));
}D=(I.values&&I.values.length)||1;
for(F=H.length;
F<D;
F++){E.push(G);
}this.handles=H.add(B(E.join("")).appendTo(this.element));
this.handle=this.handles.eq(0);
this.handles.add(this.range).filter("a").click(function(J){J.preventDefault();
}).mouseenter(function(){if(!I.disabled){B(this).addClass("ui-state-hover");
}}).mouseleave(function(){B(this).removeClass("ui-state-hover");
}).focus(function(){if(!I.disabled){B(".ui-slider .ui-state-focus").removeClass("ui-state-focus");
B(this).addClass("ui-state-focus");
}else{B(this).blur();
}}).blur(function(){B(this).removeClass("ui-state-focus");
});
this.handles.each(function(J){B(this).data("ui-slider-handle-index",J);
});
this._on(this.handles,{keydown:function(N){var O,L,K,M,J=B(N.target).data("ui-slider-handle-index");
switch(N.keyCode){case B.ui.keyCode.HOME:case B.ui.keyCode.END:case B.ui.keyCode.PAGE_UP:case B.ui.keyCode.PAGE_DOWN:case B.ui.keyCode.UP:case B.ui.keyCode.RIGHT:case B.ui.keyCode.DOWN:case B.ui.keyCode.LEFT:N.preventDefault();
if(!this._keySliding){this._keySliding=true;
B(N.target).addClass("ui-state-active");
O=this._start(N,J);
if(O===false){return ;
}}break;
}M=this.options.step;
if(this.options.values&&this.options.values.length){L=K=this.values(J);
}else{L=K=this.value();
}switch(N.keyCode){case B.ui.keyCode.HOME:K=this._valueMin();
break;
case B.ui.keyCode.END:K=this._valueMax();
break;
case B.ui.keyCode.PAGE_UP:K=this._trimAlignValue(L+((this._valueMax()-this._valueMin())/A));
break;
case B.ui.keyCode.PAGE_DOWN:K=this._trimAlignValue(L-((this._valueMax()-this._valueMin())/A));
break;
case B.ui.keyCode.UP:case B.ui.keyCode.RIGHT:if(L===this._valueMax()){return ;
}K=this._trimAlignValue(L+M);
break;
case B.ui.keyCode.DOWN:case B.ui.keyCode.LEFT:if(L===this._valueMin()){return ;
}K=this._trimAlignValue(L-M);
break;
}this._slide(N,J,K);
},keyup:function(K){var J=B(K.target).data("ui-slider-handle-index");
if(this._keySliding){this._keySliding=false;
this._stop(K,J);
this._change(K,J);
B(K.target).removeClass("ui-state-active");
}}});
this._refreshValue();
this._animateOff=false;
},_destroy:function(){this.handles.remove();
this.range.remove();
this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all");
this._mouseDestroy();
},_mouseCapture:function(F){var J,M,E,H,L,N,I,D,K=this,G=this.options;
if(G.disabled){return false;
}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};
this.elementOffset=this.element.offset();
J={x:F.pageX,y:F.pageY};
M=this._normValueFromMouse(J);
E=this._valueMax()-this._valueMin()+1;
this.handles.each(function(O){var P=Math.abs(M-K.values(O));
if(E>P){E=P;
H=B(this);
L=O;
}});
if(G.range===true&&this.values(1)===G.min){L+=1;
H=B(this.handles[L]);
}N=this._start(F,L);
if(N===false){return false;
}this._mouseSliding=true;
this._handleIndex=L;
H.addClass("ui-state-active").focus();
I=H.offset();
D=!B(F.target).parents().andSelf().is(".ui-slider-handle");
this._clickOffset=D?{left:0,top:0}:{left:F.pageX-I.left-(H.width()/2),top:F.pageY-I.top-(H.height()/2)-(parseInt(H.css("borderTopWidth"),10)||0)-(parseInt(H.css("borderBottomWidth"),10)||0)+(parseInt(H.css("marginTop"),10)||0)};
if(!this.handles.hasClass("ui-state-hover")){this._slide(F,L,M);
}this._animateOff=true;
return true;
},_mouseStart:function(){return true;
},_mouseDrag:function(F){var D={x:F.pageX,y:F.pageY},E=this._normValueFromMouse(D);
this._slide(F,this._handleIndex,E);
return false;
},_mouseStop:function(D){this.handles.removeClass("ui-state-active");
this._mouseSliding=false;
this._stop(D,this._handleIndex);
this._change(D,this._handleIndex);
this._handleIndex=null;
this._clickOffset=null;
this._animateOff=false;
return false;
},_detectOrientation:function(){this.orientation=(this.options.orientation==="vertical")?"vertical":"horizontal";
},_normValueFromMouse:function(E){var D,H,G,F,I;
if(this.orientation==="horizontal"){D=this.elementSize.width;
H=E.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0);
}else{D=this.elementSize.height;
H=E.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0);
}G=(H/D);
if(G>1){G=1;
}if(G<0){G=0;
}if(this.orientation==="vertical"){G=1-G;
}F=this._valueMax()-this._valueMin();
I=this._valueMin()+G*F;
return this._trimAlignValue(I);
},_start:function(F,E){var D={handle:this.handles[E],value:this.value()};
if(this.options.values&&this.options.values.length){D.value=this.values(E);
D.values=this.values();
}return this._trigger("start",F,D);
},_slide:function(H,G,F){var D,E,I;
if(this.options.values&&this.options.values.length){D=this.values(G?0:1);
if((this.options.values.length===2&&this.options.range===true)&&((G===0&&F>D)||(G===1&&F<D))){F=D;
}if(F!==this.values(G)){E=this.values();
E[G]=F;
I=this._trigger("slide",H,{handle:this.handles[G],value:F,values:E});
D=this.values(G?0:1);
if(I!==false){this.values(G,F,true);
}}}else{if(F!==this.value()){I=this._trigger("slide",H,{handle:this.handles[G],value:F});
if(I!==false){this.value(F);
}}}},_stop:function(F,E){var D={handle:this.handles[E],value:this.value()};
if(this.options.values&&this.options.values.length){D.value=this.values(E);
D.values=this.values();
}this._trigger("stop",F,D);
},_change:function(F,E){if(!this._keySliding&&!this._mouseSliding){var D={handle:this.handles[E],value:this.value()};
if(this.options.values&&this.options.values.length){D.value=this.values(E);
D.values=this.values();
}this._trigger("change",F,D);
}},value:function(D){if(arguments.length){this.options.value=this._trimAlignValue(D);
this._refreshValue();
this._change(null,0);
return ;
}return this._value();
},values:function(E,H){var G,D,F;
if(arguments.length>1){this.options.values[E]=this._trimAlignValue(H);
this._refreshValue();
this._change(null,E);
return ;
}if(arguments.length){if(B.isArray(arguments[0])){G=this.options.values;
D=arguments[0];
for(F=0;
F<G.length;
F+=1){G[F]=this._trimAlignValue(D[F]);
this._change(null,F);
}this._refreshValue();
}else{if(this.options.values&&this.options.values.length){return this._values(E);
}else{return this.value();
}}}else{return this._values();
}},_setOption:function(E,F){var D,G=0;
if(B.isArray(this.options.values)){G=this.options.values.length;
}B.Widget.prototype._setOption.apply(this,arguments);
switch(E){case"disabled":if(F){this.handles.filter(".ui-state-focus").blur();
this.handles.removeClass("ui-state-hover");
this.handles.prop("disabled",true);
this.element.addClass("ui-disabled");
}else{this.handles.prop("disabled",false);
this.element.removeClass("ui-disabled");
}break;
case"orientation":this._detectOrientation();
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);
this._refreshValue();
break;
case"value":this._animateOff=true;
this._refreshValue();
this._change(null,0);
this._animateOff=false;
break;
case"values":this._animateOff=true;
this._refreshValue();
for(D=0;
D<G;
D+=1){this._change(null,D);
}this._animateOff=false;
break;
case"min":case"max":this._animateOff=true;
this._refreshValue();
this._animateOff=false;
break;
}},_value:function(){var D=this.options.value;
D=this._trimAlignValue(D);
return D;
},_values:function(D){var G,F,E;
if(arguments.length){G=this.options.values[D];
G=this._trimAlignValue(G);
return G;
}else{F=this.options.values.slice();
for(E=0;
E<F.length;
E+=1){F[E]=this._trimAlignValue(F[E]);
}return F;
}},_trimAlignValue:function(G){if(G<=this._valueMin()){return this._valueMin();
}if(G>=this._valueMax()){return this._valueMax();
}var D=(this.options.step>0)?this.options.step:1,F=(G-this._valueMin())%D,E=G-F;
if(Math.abs(F)*2>=D){E+=(F>0)?D:(-D);
}return parseFloat(E.toFixed(5));
},_valueMin:function(){return this.options.min;
},_valueMax:function(){return this.options.max;
},_refreshValue:function(){var I,H,L,J,M,G=this.options.range,F=this.options,K=this,E=(!this._animateOff)?F.animate:false,D={};
if(this.options.values&&this.options.values.length){this.handles.each(function(N){H=(K.values(N)-K._valueMin())/(K._valueMax()-K._valueMin())*100;
D[K.orientation==="horizontal"?"left":"bottom"]=H+"%";
B(this).stop(1,1)[E?"animate":"css"](D,F.animate);
if(K.options.range===true){if(K.orientation==="horizontal"){if(N===0){K.range.stop(1,1)[E?"animate":"css"]({left:H+"%"},F.animate);
}if(N===1){K.range[E?"animate":"css"]({width:(H-I)+"%"},{queue:false,duration:F.animate});
}}else{if(N===0){K.range.stop(1,1)[E?"animate":"css"]({bottom:(H)+"%"},F.animate);
}if(N===1){K.range[E?"animate":"css"]({height:(H-I)+"%"},{queue:false,duration:F.animate});
}}}I=H;
});
}else{L=this.value();
J=this._valueMin();
M=this._valueMax();
H=(M!==J)?(L-J)/(M-J)*100:0;
D[this.orientation==="horizontal"?"left":"bottom"]=H+"%";
this.handle.stop(1,1)[E?"animate":"css"](D,F.animate);
if(G==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[E?"animate":"css"]({width:H+"%"},F.animate);
}if(G==="max"&&this.orientation==="horizontal"){this.range[E?"animate":"css"]({width:(100-H)+"%"},{queue:false,duration:F.animate});
}if(G==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[E?"animate":"css"]({height:H+"%"},F.animate);
}if(G==="max"&&this.orientation==="vertical"){this.range[E?"animate":"css"]({height:(100-H)+"%"},{queue:false,duration:F.animate});
}}}});
}(jQuery));
(function(B){function A(C){return function(){var D=this.element.val();
C.apply(this,arguments);
this._refresh();
if(D!==this.element.val()){this._trigger("change");
}};
}B.widget("ui.spinner",{version:"1.9.2",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:true,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);
this._setOption("min",this.options.min);
this._setOption("step",this.options.step);
this._value(this.element.val(),true);
this._draw();
this._on(this._events);
this._refresh();
this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete");
}});
},_getCreateOptions:function(){var C={},D=this.element;
B.each(["min","max","step"],function(E,F){var G=D.attr(F);
if(G!==undefined&&G.length){C[F]=G;
}});
return C;
},_events:{keydown:function(C){if(this._start(C)&&this._keydown(C)){C.preventDefault();
}},keyup:"_stop",focus:function(){this.previous=this.element.val();
},blur:function(C){if(this.cancelBlur){delete this.cancelBlur;
return ;
}this._refresh();
if(this.previous!==this.element.val()){this._trigger("change",C);
}},mousewheel:function(C,D){if(!D){return ;
}if(!this.spinning&&!this._start(C)){return false;
}this._spin((D>0?1:-1)*this.options.step,C);
clearTimeout(this.mousewheelTimer);
this.mousewheelTimer=this._delay(function(){if(this.spinning){this._stop(C);
}},100);
C.preventDefault();
},"mousedown .ui-spinner-button":function(D){var C;
C=this.element[0]===this.document[0].activeElement?this.previous:this.element.val();
function E(){var F=this.element[0]===this.document[0].activeElement;
if(!F){this.element.focus();
this.previous=C;
this._delay(function(){this.previous=C;
});
}}D.preventDefault();
E.call(this);
this.cancelBlur=true;
this._delay(function(){delete this.cancelBlur;
E.call(this);
});
if(this._start(D)===false){return ;
}this._repeat(null,B(D.currentTarget).hasClass("ui-spinner-up")?1:-1,D);
},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(C){if(!B(C.currentTarget).hasClass("ui-state-active")){return ;
}if(this._start(C)===false){return false;
}this._repeat(null,B(C.currentTarget).hasClass("ui-spinner-up")?1:-1,C);
},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var C=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());
this.element.attr("role","spinbutton");
this.buttons=C.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all");
if(this.buttons.height()>Math.ceil(C.height()*0.5)&&C.height()>0){C.height(C.height());
}if(this.options.disabled){this.disable();
}},_keydown:function(D){var C=this.options,E=B.ui.keyCode;
switch(D.keyCode){case E.UP:this._repeat(null,1,D);
return true;
case E.DOWN:this._repeat(null,-1,D);
return true;
case E.PAGE_UP:this._repeat(null,C.page,D);
return true;
case E.PAGE_DOWN:this._repeat(null,-C.page,D);
return true;
}return false;
},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>";
},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>";
},_start:function(C){if(!this.spinning&&this._trigger("start",C)===false){return false;
}if(!this.counter){this.counter=1;
}this.spinning=true;
return true;
},_repeat:function(D,C,E){D=D||500;
clearTimeout(this.timer);
this.timer=this._delay(function(){this._repeat(40,C,E);
},D);
this._spin(C*this.options.step,E);
},_spin:function(D,C){var E=this.value()||0;
if(!this.counter){this.counter=1;
}E=this._adjustValue(E+D*this._increment(this.counter));
if(!this.spinning||this._trigger("spin",C,{value:E})!==false){this._value(E);
this.counter++;
}},_increment:function(C){var D=this.options.incremental;
if(D){return B.isFunction(D)?D(C):Math.floor(C*C*C/50000-C*C/500+17*C/200+1);
}return 1;
},_precision:function(){var C=this._precisionOf(this.options.step);
if(this.options.min!==null){C=Math.max(C,this._precisionOf(this.options.min));
}return C;
},_precisionOf:function(D){var E=D.toString(),C=E.indexOf(".");
return C===-1?0:E.length-C-1;
},_adjustValue:function(E){var D,F,C=this.options;
D=C.min!==null?C.min:0;
F=E-D;
F=Math.round(F/C.step)*C.step;
E=D+F;
E=parseFloat(E.toFixed(this._precision()));
if(C.max!==null&&E>C.max){return C.max;
}if(C.min!==null&&E<C.min){return C.min;
}return E;
},_stop:function(C){if(!this.spinning){return ;
}clearTimeout(this.timer);
clearTimeout(this.mousewheelTimer);
this.counter=0;
this.spinning=false;
this._trigger("stop",C);
},_setOption:function(C,D){if(C==="culture"||C==="numberFormat"){var E=this._parse(this.element.val());
this.options[C]=D;
this.element.val(this._format(E));
return ;
}if(C==="max"||C==="min"||C==="step"){if(typeof D==="string"){D=this._parse(D);
}}this._super(C,D);
if(C==="disabled"){if(D){this.element.prop("disabled",true);
this.buttons.button("disable");
}else{this.element.prop("disabled",false);
this.buttons.button("enable");
}}},_setOptions:A(function(C){this._super(C);
this._value(this.element.val());
}),_parse:function(C){if(typeof C==="string"&&C!==""){C=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(C,10,this.options.culture):+C;
}return C===""||isNaN(C)?null:C;
},_format:function(C){if(C===""){return"";
}return window.Globalize&&this.options.numberFormat?Globalize.format(C,this.options.numberFormat,this.options.culture):C;
},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())});
},_value:function(E,C){var D;
if(E!==""){D=this._parse(E);
if(D!==null){if(!C){D=this._adjustValue(D);
}E=this._format(D);
}}this.element.val(E);
this._refresh();
},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",false).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
this.uiSpinner.replaceWith(this.element);
},stepUp:A(function(C){this._stepUp(C);
}),_stepUp:function(C){this._spin((C||1)*this.options.step);
},stepDown:A(function(C){this._stepDown(C);
}),_stepDown:function(C){this._spin((C||1)*-this.options.step);
},pageUp:A(function(C){this._stepUp((C||1)*this.options.page);
}),pageDown:A(function(C){this._stepDown((C||1)*this.options.page);
}),value:function(C){if(!arguments.length){return this._parse(this.element.val());
}A(this._value).call(this,C);
},widget:function(){return this.uiSpinner;
}});
}(jQuery));
(function(C,E){var A=0,F=/#.*$/;
function D(){return ++A;
}function B(G){return G.hash.length>1&&G.href.replace(F,"")===location.href.replace(F,"").replace(/\s/g,"%20");
}C.widget("ui.tabs",{version:"1.9.2",delay:300,options:{active:null,collapsible:false,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var H=this,G=this.options,I=G.active,J=location.hash.substring(1);
this.running=false;
this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",G.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(K){if(C(this).is(".ui-state-disabled")){K.preventDefault();
}}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){if(C(this).closest("li").is(".ui-state-disabled")){this.blur();
}});
this._processTabs();
if(I===null){if(J){this.tabs.each(function(K,L){if(C(L).attr("aria-controls")===J){I=K;
return false;
}});
}if(I===null){I=this.tabs.index(this.tabs.filter(".ui-tabs-active"));
}if(I===null||I===-1){I=this.tabs.length?0:false;
}}if(I!==false){I=this.tabs.index(this.tabs.eq(I));
if(I===-1){I=G.collapsible?false:0;
}}G.active=I;
if(!G.collapsible&&G.active===false&&this.anchors.length){G.active=0;
}if(C.isArray(G.disabled)){G.disabled=C.unique(G.disabled.concat(C.map(this.tabs.filter(".ui-state-disabled"),function(K){return H.tabs.index(K);
}))).sort();
}if(this.options.active!==false&&this.anchors.length){this.active=this._findActive(this.options.active);
}else{this.active=C();
}this._refresh();
if(this.active.length){this.load(G.active);
}},_getCreateEventData:function(){return{tab:this.active,panel:!this.active.length?C():this._getPanelForTab(this.active)};
},_tabKeydown:function(I){var H=C(this.document[0].activeElement).closest("li"),G=this.tabs.index(H),J=true;
if(this._handlePageNav(I)){return ;
}switch(I.keyCode){case C.ui.keyCode.RIGHT:case C.ui.keyCode.DOWN:G++;
break;
case C.ui.keyCode.UP:case C.ui.keyCode.LEFT:J=false;
G--;
break;
case C.ui.keyCode.END:G=this.anchors.length-1;
break;
case C.ui.keyCode.HOME:G=0;
break;
case C.ui.keyCode.SPACE:I.preventDefault();
clearTimeout(this.activating);
this._activate(G);
return ;
case C.ui.keyCode.ENTER:I.preventDefault();
clearTimeout(this.activating);
this._activate(G===this.options.active?false:G);
return ;
default:return ;
}I.preventDefault();
clearTimeout(this.activating);
G=this._focusNextTab(G,J);
if(!I.ctrlKey){H.attr("aria-selected","false");
this.tabs.eq(G).attr("aria-selected","true");
this.activating=this._delay(function(){this.option("active",G);
},this.delay);
}},_panelKeydown:function(G){if(this._handlePageNav(G)){return ;
}if(G.ctrlKey&&G.keyCode===C.ui.keyCode.UP){G.preventDefault();
this.active.focus();
}},_handlePageNav:function(G){if(G.altKey&&G.keyCode===C.ui.keyCode.PAGE_UP){this._activate(this._focusNextTab(this.options.active-1,false));
return true;
}if(G.altKey&&G.keyCode===C.ui.keyCode.PAGE_DOWN){this._activate(this._focusNextTab(this.options.active+1,true));
return true;
}},_findNextTab:function(H,I){var G=this.tabs.length-1;
function J(){if(H>G){H=0;
}if(H<0){H=G;
}return H;
}while(C.inArray(J(),this.options.disabled)!==-1){H=I?H+1:H-1;
}return H;
},_focusNextTab:function(G,H){G=this._findNextTab(G,H);
this.tabs.eq(G).focus();
return G;
},_setOption:function(G,H){if(G==="active"){this._activate(H);
return ;
}if(G==="disabled"){this._setupDisabled(H);
return ;
}this._super(G,H);
if(G==="collapsible"){this.element.toggleClass("ui-tabs-collapsible",H);
if(!H&&this.options.active===false){this._activate(0);
}}if(G==="event"){this._setupEvents(H);
}if(G==="heightStyle"){this._setupHeightStyle(H);
}},_tabId:function(G){return G.attr("aria-controls")||"ui-tabs-"+D();
},_sanitizeSelector:function(G){return G?G.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):"";
},refresh:function(){var H=this.options,G=this.tablist.children(":has(a[href])");
H.disabled=C.map(G.filter(".ui-state-disabled"),function(I){return G.index(I);
});
this._processTabs();
if(H.active===false||!this.anchors.length){H.active=false;
this.active=C();
}else{if(this.active.length&&!C.contains(this.tablist[0],this.active[0])){if(this.tabs.length===H.disabled.length){H.active=false;
this.active=C();
}else{this._activate(this._findNextTab(Math.max(0,H.active-1),false));
}}else{H.active=this.tabs.index(this.active);
}}this._refresh();
},_refresh:function(){this._setupDisabled(this.options.disabled);
this._setupEvents(this.options.event);
this._setupHeightStyle(this.options.heightStyle);
this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1});
this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"});
if(!this.active.length){this.tabs.eq(0).attr("tabIndex",0);
}else{this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0});
this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"});
}},_processTabs:function(){var G=this;
this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist");
this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1});
this.anchors=this.tabs.map(function(){return C("a",this)[0];
}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1});
this.panels=C();
this.anchors.each(function(M,K){var H,I,L,J=C(K).uniqueId().attr("id"),N=C(K).closest("li"),O=N.attr("aria-controls");
if(B(K)){H=K.hash;
I=G.element.find(G._sanitizeSelector(H));
}else{L=G._tabId(N);
H="#"+L;
I=G.element.find(H);
if(!I.length){I=G._createPanel(L);
I.insertAfter(G.panels[M-1]||G.tablist);
}I.attr("aria-live","polite");
}if(I.length){G.panels=G.panels.add(I);
}if(O){N.data("ui-tabs-aria-controls",O);
}N.attr({"aria-controls":H.substring(1),"aria-labelledby":J});
I.attr("aria-labelledby",J);
});
this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel");
},_getList:function(){return this.element.find("ol,ul").eq(0);
},_createPanel:function(G){return C("<div>").attr("id",G).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",true);
},_setupDisabled:function(I){if(C.isArray(I)){if(!I.length){I=false;
}else{if(I.length===this.anchors.length){I=true;
}}}for(var H=0,G;
(G=this.tabs[H]);
H++){if(I===true||C.inArray(H,I)!==-1){C(G).addClass("ui-state-disabled").attr("aria-disabled","true");
}else{C(G).removeClass("ui-state-disabled").removeAttr("aria-disabled");
}}this.options.disabled=I;
},_setupEvents:function(H){var G={click:function(I){I.preventDefault();
}};
if(H){C.each(H.split(" "),function(J,I){G[I]="_eventHandler";
});
}this._off(this.anchors.add(this.tabs).add(this.panels));
this._on(this.anchors,G);
this._on(this.tabs,{keydown:"_tabKeydown"});
this._on(this.panels,{keydown:"_panelKeydown"});
this._focusable(this.tabs);
this._hoverable(this.tabs);
},_setupHeightStyle:function(G){var I,J,H=this.element.parent();
if(G==="fill"){if(!C.support.minHeight){J=H.css("overflow");
H.css("overflow","hidden");
}I=H.height();
this.element.siblings(":visible").each(function(){var L=C(this),K=L.css("position");
if(K==="absolute"||K==="fixed"){return ;
}I-=L.outerHeight(true);
});
if(J){H.css("overflow",J);
}this.element.children().not(this.panels).each(function(){I-=C(this).outerHeight(true);
});
this.panels.each(function(){C(this).height(Math.max(0,I-C(this).innerHeight()+C(this).height()));
}).css("overflow","auto");
}else{if(G==="auto"){I=0;
this.panels.each(function(){I=Math.max(I,C(this).height("").height());
}).height(I);
}}},_eventHandler:function(G){var P=this.options,K=this.active,L=C(G.currentTarget),J=L.closest("li"),N=J[0]===K[0],H=N&&P.collapsible,I=H?C():this._getPanelForTab(J),M=!K.length?C():this._getPanelForTab(K),O={oldTab:K,oldPanel:M,newTab:H?C():J,newPanel:I};
G.preventDefault();
if(J.hasClass("ui-state-disabled")||J.hasClass("ui-tabs-loading")||this.running||(N&&!P.collapsible)||(this._trigger("beforeActivate",G,O)===false)){return ;
}P.active=H?false:this.tabs.index(J);
this.active=N?C():J;
if(this.xhr){this.xhr.abort();
}if(!M.length&&!I.length){C.error("jQuery UI Tabs: Mismatching fragment identifier.");
}if(I.length){this.load(this.tabs.index(J),G);
}this._toggle(G,O);
},_toggle:function(M,L){var K=this,G=L.newPanel,J=L.oldPanel;
this.running=true;
function I(){K.running=false;
K._trigger("activate",M,L);
}function H(){L.newTab.closest("li").addClass("ui-tabs-active ui-state-active");
if(G.length&&K.options.show){K._show(G,K.options.show,I);
}else{G.show();
I();
}}if(J.length&&this.options.hide){this._hide(J,this.options.hide,function(){L.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");
H();
});
}else{L.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");
J.hide();
H();
}J.attr({"aria-expanded":"false","aria-hidden":"true"});
L.oldTab.attr("aria-selected","false");
if(G.length&&J.length){L.oldTab.attr("tabIndex",-1);
}else{if(G.length){this.tabs.filter(function(){return C(this).attr("tabIndex")===0;
}).attr("tabIndex",-1);
}}G.attr({"aria-expanded":"true","aria-hidden":"false"});
L.newTab.attr({"aria-selected":"true",tabIndex:0});
},_activate:function(H){var G,I=this._findActive(H);
if(I[0]===this.active[0]){return ;
}if(!I.length){I=this.active;
}G=I.find(".ui-tabs-anchor")[0];
this._eventHandler({target:G,currentTarget:G,preventDefault:C.noop});
},_findActive:function(G){return G===false?C():this.tabs.eq(G);
},_getIndex:function(G){if(typeof G==="string"){G=this.anchors.index(this.anchors.filter("[href$='"+G+"']"));
}return G;
},_destroy:function(){if(this.xhr){this.xhr.abort();
}this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible");
this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role");
this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeData("href.tabs").removeData("load.tabs").removeUniqueId();
this.tabs.add(this.panels).each(function(){if(C.data(this,"ui-tabs-destroy")){C(this).remove();
}else{C(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role");
}});
this.tabs.each(function(){var G=C(this),H=G.data("ui-tabs-aria-controls");
if(H){G.attr("aria-controls",H);
}else{G.removeAttr("aria-controls");
}});
this.panels.show();
if(this.options.heightStyle!=="content"){this.panels.css("height","");
}},enable:function(G){var H=this.options.disabled;
if(H===false){return ;
}if(G===E){H=false;
}else{G=this._getIndex(G);
if(C.isArray(H)){H=C.map(H,function(I){return I!==G?I:null;
});
}else{H=C.map(this.tabs,function(I,J){return J!==G?J:null;
});
}}this._setupDisabled(H);
},disable:function(G){var H=this.options.disabled;
if(H===true){return ;
}if(G===E){H=true;
}else{G=this._getIndex(G);
if(C.inArray(G,H)!==-1){return ;
}if(C.isArray(H)){H=C.merge([G],H).sort();
}else{H=[G];
}}this._setupDisabled(H);
},load:function(I,M){I=this._getIndex(I);
var L=this,J=this.tabs.eq(I),H=J.find(".ui-tabs-anchor"),G=this._getPanelForTab(J),K={tab:J,panel:G};
if(B(H[0])){return ;
}this.xhr=C.ajax(this._ajaxSettings(H,M,K));
if(this.xhr&&this.xhr.statusText!=="canceled"){J.addClass("ui-tabs-loading");
G.attr("aria-busy","true");
this.xhr.success(function(N){setTimeout(function(){G.html(N);
L._trigger("load",M,K);
},1);
}).complete(function(O,N){setTimeout(function(){if(N==="abort"){L.panels.stop(false,true);
}J.removeClass("ui-tabs-loading");
G.removeAttr("aria-busy");
if(O===L.xhr){delete L.xhr;
}},1);
});
}},_ajaxSettings:function(G,J,I){var H=this;
return{url:G.attr("href"),beforeSend:function(L,K){return H._trigger("beforeLoad",J,C.extend({jqXHR:L,ajaxSettings:K},I));
}};
},_getPanelForTab:function(G){var H=C(G).attr("aria-controls");
return this.element.find(this._sanitizeSelector("#"+H));
}});
if(C.uiBackCompat!==false){C.ui.tabs.prototype._ui=function(H,G){return{tab:H,panel:G,index:this.anchors.index(H)};
};
C.widget("ui.tabs",C.ui.tabs,{url:function(H,G){this.anchors.eq(H).attr("href",G);
}});
C.widget("ui.tabs",C.ui.tabs,{options:{ajaxOptions:null,cache:false},_create:function(){this._super();
var G=this;
this._on({tabsbeforeload:function(H,I){if(C.data(I.tab[0],"cache.tabs")){H.preventDefault();
return ;
}I.jqXHR.success(function(){if(G.options.cache){C.data(I.tab[0],"cache.tabs",true);
}});
}});
},_ajaxSettings:function(H,I,J){var G=this.options.ajaxOptions;
return C.extend({},G,{error:function(M,K){try{G.error(M,K,J.tab.closest("li").index(),J.tab[0]);
}catch(L){}}},this._superApply(arguments));
},_setOption:function(G,H){if(G==="cache"&&H===false){this.anchors.removeData("cache.tabs");
}this._super(G,H);
},_destroy:function(){this.anchors.removeData("cache.tabs");
this._super();
},url:function(G){this.anchors.eq(G).removeData("cache.tabs");
this._superApply(arguments);
}});
C.widget("ui.tabs",C.ui.tabs,{abort:function(){if(this.xhr){this.xhr.abort();
}}});
C.widget("ui.tabs",C.ui.tabs,{options:{spinner:"<em>Loading&#8230;</em>"},_create:function(){this._super();
this._on({tabsbeforeload:function(I,J){if(I.target!==this.element[0]||!this.options.spinner){return ;
}var H=J.tab.find("span"),G=H.html();
H.html(this.options.spinner);
J.jqXHR.complete(function(){H.html(G);
});
}});
}});
C.widget("ui.tabs",C.ui.tabs,{options:{enable:null,disable:null},enable:function(I){var H=this.options,G;
if(I&&H.disabled===true||(C.isArray(H.disabled)&&C.inArray(I,H.disabled)!==-1)){G=true;
}this._superApply(arguments);
if(G){this._trigger("enable",null,this._ui(this.anchors[I],this.panels[I]));
}},disable:function(I){var H=this.options,G;
if(I&&H.disabled===false||(C.isArray(H.disabled)&&C.inArray(I,H.disabled)===-1)){G=true;
}this._superApply(arguments);
if(G){this._trigger("disable",null,this._ui(this.anchors[I],this.panels[I]));
}}});
C.widget("ui.tabs",C.ui.tabs,{options:{add:null,remove:null,tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},add:function(L,K,J){if(J===E){J=this.anchors.length;
}var M,H,I=this.options,G=C(I.tabTemplate.replace(/#\{href\}/g,L).replace(/#\{label\}/g,K)),N=!L.indexOf("#")?L.replace("#",""):this._tabId(G);
G.addClass("ui-state-default ui-corner-top").data("ui-tabs-destroy",true);
G.attr("aria-controls",N);
M=J>=this.tabs.length;
H=this.element.find("#"+N);
if(!H.length){H=this._createPanel(N);
if(M){if(J>0){H.insertAfter(this.panels.eq(-1));
}else{H.appendTo(this.element);
}}else{H.insertBefore(this.panels[J]);
}}H.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").hide();
if(M){G.appendTo(this.tablist);
}else{G.insertBefore(this.tabs[J]);
}I.disabled=C.map(I.disabled,function(O){return O>=J?++O:O;
});
this.refresh();
if(this.tabs.length===1&&I.active===false){this.option("active",0);
}this._trigger("add",null,this._ui(this.anchors[J],this.panels[J]));
return this;
},remove:function(I){I=this._getIndex(I);
var H=this.options,J=this.tabs.eq(I).remove(),G=this._getPanelForTab(J).remove();
if(J.hasClass("ui-tabs-active")&&this.anchors.length>2){this._activate(I+(I+1<this.anchors.length?1:-1));
}H.disabled=C.map(C.grep(H.disabled,function(K){return K!==I;
}),function(K){return K>=I?--K:K;
});
this.refresh();
this._trigger("remove",null,this._ui(J.find("a")[0],G[0]));
return this;
}});
C.widget("ui.tabs",C.ui.tabs,{length:function(){return this.anchors.length;
}});
C.widget("ui.tabs",C.ui.tabs,{options:{idPrefix:"ui-tabs-"},_tabId:function(H){var G=H.is("li")?H.find("a[href]"):H;
G=G[0];
return C(G).closest("li").attr("aria-controls")||G.title&&G.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF\-]/g,"")||this.options.idPrefix+D();
}});
C.widget("ui.tabs",C.ui.tabs,{options:{panelTemplate:"<div></div>"},_createPanel:function(G){return C(this.options.panelTemplate).attr("id",G).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",true);
}});
C.widget("ui.tabs",C.ui.tabs,{_create:function(){var G=this.options;
if(G.active===null&&G.selected!==E){G.active=G.selected===-1?false:G.selected;
}this._super();
G.selected=G.active;
if(G.selected===false){G.selected=-1;
}},_setOption:function(H,I){if(H!=="selected"){return this._super(H,I);
}var G=this.options;
this._super("active",I===-1?false:I);
G.selected=G.active;
if(G.selected===false){G.selected=-1;
}},_eventHandler:function(){this._superApply(arguments);
this.options.selected=this.options.active;
if(this.options.selected===false){this.options.selected=-1;
}}});
C.widget("ui.tabs",C.ui.tabs,{options:{show:null,select:null},_create:function(){this._super();
if(this.options.active!==false){this._trigger("show",null,this._ui(this.active.find(".ui-tabs-anchor")[0],this._getPanelForTab(this.active)[0]));
}},_trigger:function(J,K,L){var I,G,H=this._superApply(arguments);
if(!H){return false;
}if(J==="beforeActivate"){I=L.newTab.length?L.newTab:L.oldTab;
G=L.newPanel.length?L.newPanel:L.oldPanel;
H=this._super("select",K,{tab:I.find(".ui-tabs-anchor")[0],panel:G[0],index:I.closest("li").index()});
}else{if(J==="activate"&&L.newTab.length){H=this._super("show",K,{tab:L.newTab.find(".ui-tabs-anchor")[0],panel:L.newPanel[0],index:L.newTab.closest("li").index()});
}}return H;
}});
C.widget("ui.tabs",C.ui.tabs,{select:function(G){G=this._getIndex(G);
if(G===-1){if(this.options.collapsible&&this.options.selected!==-1){G=this.options.selected;
}else{return ;
}}this.anchors.eq(G).trigger(this.options.event+this.eventNamespace);
}});
(function(){var G=0;
C.widget("ui.tabs",C.ui.tabs,{options:{cookie:null},_create:function(){var H=this.options,I;
if(H.active==null&&H.cookie){I=parseInt(this._cookie(),10);
if(I===-1){I=false;
}H.active=I;
}this._super();
},_cookie:function(I){var H=[this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+(++G))];
if(arguments.length){H.push(I===false?-1:I);
H.push(this.options.cookie);
}return C.cookie.apply(null,H);
},_refresh:function(){this._super();
if(this.options.cookie){this._cookie(this.options.active,this.options.cookie);
}},_eventHandler:function(){this._superApply(arguments);
if(this.options.cookie){this._cookie(this.options.active,this.options.cookie);
}},_destroy:function(){this._super();
if(this.options.cookie){this._cookie(null,this.options.cookie);
}}});
})();
C.widget("ui.tabs",C.ui.tabs,{_trigger:function(H,I,J){var G=C.extend({},J);
if(H==="load"){G.panel=G.panel[0];
G.tab=G.tab.find(".ui-tabs-anchor")[0];
}return this._super(H,I,G);
}});
C.widget("ui.tabs",C.ui.tabs,{options:{fx:null},_getFx:function(){var H,G,I=this.options.fx;
if(I){if(C.isArray(I)){H=I[0];
G=I[1];
}else{H=G=I;
}}return I?{show:G,hide:H}:null;
},_toggle:function(N,M){var L=this,G=M.newPanel,J=M.oldPanel,K=this._getFx();
if(!K){return this._super(N,M);
}L.running=true;
function I(){L.running=false;
L._trigger("activate",N,M);
}function H(){M.newTab.closest("li").addClass("ui-tabs-active ui-state-active");
if(G.length&&K.show){G.animate(K.show,K.show.duration,function(){I();
});
}else{G.show();
I();
}}if(J.length&&K.hide){J.animate(K.hide,K.hide.duration,function(){M.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");
H();
});
}else{M.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");
J.hide();
H();
}}});
}})(jQuery);
(function(D){var B=0;
function C(F,G){var E=(F.attr("aria-describedby")||"").split(/\s+/);
E.push(G);
F.data("ui-tooltip-id",G).attr("aria-describedby",D.trim(E.join(" ")));
}function A(G){var H=G.data("ui-tooltip-id"),F=(G.attr("aria-describedby")||"").split(/\s+/),E=D.inArray(H,F);
if(E!==-1){F.splice(E,1);
}G.removeData("ui-tooltip-id");
F=D.trim(F.join(" "));
if(F){G.attr("aria-describedby",F);
}else{G.removeAttr("aria-describedby");
}}D.widget("ui.tooltip",{version:"1.9.2",options:{content:function(){return D(this).attr("title");
},hide:true,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:true,tooltipClass:null,track:false,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"});
this.tooltips={};
this.parents={};
if(this.options.disabled){this._disable();
}},_setOption:function(E,G){var F=this;
if(E==="disabled"){this[G?"_disable":"_enable"]();
this.options[E]=G;
return ;
}this._super(E,G);
if(E==="content"){D.each(this.tooltips,function(I,H){F._updateContent(H);
});
}},_disable:function(){var E=this;
D.each(this.tooltips,function(H,F){var G=D.Event("blur");
G.target=G.currentTarget=F[0];
E.close(G,true);
});
this.element.find(this.options.items).andSelf().each(function(){var F=D(this);
if(F.is("[title]")){F.data("ui-tooltip-title",F.attr("title")).attr("title","");
}});
},_enable:function(){this.element.find(this.options.items).andSelf().each(function(){var E=D(this);
if(E.data("ui-tooltip-title")){E.attr("title",E.data("ui-tooltip-title"));
}});
},open:function(F){var E=this,G=D(F?F.target:this.element).closest(this.options.items);
if(!G.length||G.data("ui-tooltip-id")){return ;
}if(G.attr("title")){G.data("ui-tooltip-title",G.attr("title"));
}G.data("ui-tooltip-open",true);
if(F&&F.type==="mouseover"){G.parents().each(function(){var I=D(this),H;
if(I.data("ui-tooltip-open")){H=D.Event("blur");
H.target=H.currentTarget=this;
E.close(H,true);
}if(I.attr("title")){I.uniqueId();
E.parents[this.id]={element:this,title:I.attr("title")};
I.attr("title","");
}});
}this._updateContent(G,F);
},_updateContent:function(J,I){var H,E=this.options.content,G=this,F=I?I.type:null;
if(typeof E==="string"){return this._open(I,J,E);
}H=E.call(J[0],function(K){if(!J.data("ui-tooltip-open")){return ;
}G._delay(function(){if(I){I.type=F;
}this._open(I,J,K);
});
});
if(H){this._open(I,J,H);
}},_open:function(I,K,H){var J,G,F,L=D.extend({},this.options.position);
if(!H){return ;
}J=this._find(K);
if(J.length){J.find(".ui-tooltip-content").html(H);
return ;
}if(K.is("[title]")){if(I&&I.type==="mouseover"){K.attr("title","");
}else{K.removeAttr("title");
}}J=this._tooltip(K);
C(K,J.attr("id"));
J.find(".ui-tooltip-content").html(H);
function E(M){L.of=M;
if(J.is(":hidden")){return ;
}J.position(L);
}if(this.options.track&&I&&/^mouse/.test(I.type)){this._on(this.document,{mousemove:E});
E(I);
}else{J.position(D.extend({of:K},this.options.position));
}J.hide();
this._show(J,this.options.show);
if(this.options.show&&this.options.show.delay){F=setInterval(function(){if(J.is(":visible")){E(L.of);
clearInterval(F);
}},D.fx.interval);
}this._trigger("open",I,{tooltip:J});
G={keyup:function(M){if(M.keyCode===D.ui.keyCode.ESCAPE){var N=D.Event(M);
N.currentTarget=K[0];
this.close(N,true);
}},remove:function(){this._removeTooltip(J);
}};
if(!I||I.type==="mouseover"){G.mouseleave="close";
}if(!I||I.type==="focusin"){G.focusout="close";
}this._on(true,K,G);
},close:function(F){var E=this,H=D(F?F.currentTarget:this.element),G=this._find(H);
if(this.closing){return ;
}if(H.data("ui-tooltip-title")){H.attr("title",H.data("ui-tooltip-title"));
}A(H);
G.stop(true);
this._hide(G,this.options.hide,function(){E._removeTooltip(D(this));
});
H.removeData("ui-tooltip-open");
this._off(H,"mouseleave focusout keyup");
if(H[0]!==this.element[0]){this._off(H,"remove");
}this._off(this.document,"mousemove");
if(F&&F.type==="mouseleave"){D.each(this.parents,function(J,I){D(I.element).attr("title",I.title);
delete E.parents[J];
});
}this.closing=true;
this._trigger("close",F,{tooltip:G});
this.closing=false;
},_tooltip:function(E){var G="ui-tooltip-"+B++,F=D("<div>").attr({id:G,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));
D("<div>").addClass("ui-tooltip-content").appendTo(F);
F.appendTo(this.document[0].body);
if(D.fn.bgiframe){F.bgiframe();
}this.tooltips[G]=E;
return F;
},_find:function(E){var F=E.data("ui-tooltip-id");
return F?D("#"+F):D();
},_removeTooltip:function(E){E.remove();
delete this.tooltips[E.attr("id")];
},_destroy:function(){var E=this;
D.each(this.tooltips,function(H,F){var G=D.Event("blur");
G.target=G.currentTarget=F[0];
E.close(G,true);
D("#"+H).remove();
if(F.data("ui-tooltip-title")){F.attr("title",F.data("ui-tooltip-title"));
F.removeData("ui-tooltip-title");
}});
}});
}(jQuery));
(jQuery.effects||(function($,undefined){var backCompat=$.uiBackCompat!==false,dataSpace="ui-effects-";
$.effects={effect:{}};
/*
 * jQuery Color Animations v2.0.0
 * http://jquery.com/
 *
 * Copyright 2012 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * Date: Mon Aug 13 13:41:02 2012 -0500
 */
(function(jQuery,undefined){var stepHooks="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor".split(" "),rplusequals=/^([\-+])=\s*(\d+\.?\d*)/,stringParsers=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(execResult){return[execResult[1],execResult[2],execResult[3],execResult[4]];
}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(execResult){return[execResult[1]*2.55,execResult[2]*2.55,execResult[3]*2.55,execResult[4]];
}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(execResult){return[parseInt(execResult[1],16),parseInt(execResult[2],16),parseInt(execResult[3],16)];
}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(execResult){return[parseInt(execResult[1]+execResult[1],16),parseInt(execResult[2]+execResult[2],16),parseInt(execResult[3]+execResult[3],16)];
}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(execResult){return[execResult[1],execResult[2]/100,execResult[3]/100,execResult[4]];
}}],color=jQuery.Color=function(color,green,blue,alpha){return new jQuery.Color.fn.parse(color,green,blue,alpha);
},spaces={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},propTypes={"byte":{floor:true,max:255},percent:{max:1},degrees:{mod:360,floor:true}},support=color.support={},supportElem=jQuery("<p>")[0],colors,each=jQuery.each;
supportElem.style.cssText="background-color:rgba(1,1,1,.5)";
support.rgba=supportElem.style.backgroundColor.indexOf("rgba")>-1;
each(spaces,function(spaceName,space){space.cache="_"+spaceName;
space.props.alpha={idx:3,type:"percent",def:1};
});
function clamp(value,prop,allowEmpty){var type=propTypes[prop.type]||{};
if(value==null){return(allowEmpty||!prop.def)?null:prop.def;
}value=type.floor?~~value:parseFloat(value);
if(isNaN(value)){return prop.def;
}if(type.mod){return(value+type.mod)%type.mod;
}return 0>value?0:type.max<value?type.max:value;
}function stringParse(string){var inst=color(),rgba=inst._rgba=[];
string=string.toLowerCase();
each(stringParsers,function(i,parser){var parsed,match=parser.re.exec(string),values=match&&parser.parse(match),spaceName=parser.space||"rgba";
if(values){parsed=inst[spaceName](values);
inst[spaces[spaceName].cache]=parsed[spaces[spaceName].cache];
rgba=inst._rgba=parsed._rgba;
return false;
}});
if(rgba.length){if(rgba.join()==="0,0,0,0"){jQuery.extend(rgba,colors.transparent);
}return inst;
}return colors[string];
}color.fn=jQuery.extend(color.prototype,{parse:function(red,green,blue,alpha){if(red===undefined){this._rgba=[null,null,null,null];
return this;
}if(red.jquery||red.nodeType){red=jQuery(red).css(green);
green=undefined;
}var inst=this,type=jQuery.type(red),rgba=this._rgba=[];
if(green!==undefined){red=[red,green,blue,alpha];
type="array";
}if(type==="string"){return this.parse(stringParse(red)||colors._default);
}if(type==="array"){each(spaces.rgba.props,function(key,prop){rgba[prop.idx]=clamp(red[prop.idx],prop);
});
return this;
}if(type==="object"){if(red instanceof color){each(spaces,function(spaceName,space){if(red[space.cache]){inst[space.cache]=red[space.cache].slice();
}});
}else{each(spaces,function(spaceName,space){var cache=space.cache;
each(space.props,function(key,prop){if(!inst[cache]&&space.to){if(key==="alpha"||red[key]==null){return ;
}inst[cache]=space.to(inst._rgba);
}inst[cache][prop.idx]=clamp(red[key],prop,true);
});
if(inst[cache]&&$.inArray(null,inst[cache].slice(0,3))<0){inst[cache][3]=1;
if(space.from){inst._rgba=space.from(inst[cache]);
}}});
}return this;
}},is:function(compare){var is=color(compare),same=true,inst=this;
each(spaces,function(_,space){var localCache,isCache=is[space.cache];
if(isCache){localCache=inst[space.cache]||space.to&&space.to(inst._rgba)||[];
each(space.props,function(_,prop){if(isCache[prop.idx]!=null){same=(isCache[prop.idx]===localCache[prop.idx]);
return same;
}});
}return same;
});
return same;
},_space:function(){var used=[],inst=this;
each(spaces,function(spaceName,space){if(inst[space.cache]){used.push(spaceName);
}});
return used.pop();
},transition:function(other,distance){var end=color(other),spaceName=end._space(),space=spaces[spaceName],startColor=this.alpha()===0?color("transparent"):this,start=startColor[space.cache]||space.to(startColor._rgba),result=start.slice();
end=end[space.cache];
each(space.props,function(key,prop){var index=prop.idx,startValue=start[index],endValue=end[index],type=propTypes[prop.type]||{};
if(endValue===null){return ;
}if(startValue===null){result[index]=endValue;
}else{if(type.mod){if(endValue-startValue>type.mod/2){startValue+=type.mod;
}else{if(startValue-endValue>type.mod/2){startValue-=type.mod;
}}}result[index]=clamp((endValue-startValue)*distance+startValue,prop);
}});
return this[spaceName](result);
},blend:function(opaque){if(this._rgba[3]===1){return this;
}var rgb=this._rgba.slice(),a=rgb.pop(),blend=color(opaque)._rgba;
return color(jQuery.map(rgb,function(v,i){return(1-a)*blend[i]+a*v;
}));
},toRgbaString:function(){var prefix="rgba(",rgba=jQuery.map(this._rgba,function(v,i){return v==null?(i>2?1:0):v;
});
if(rgba[3]===1){rgba.pop();
prefix="rgb(";
}return prefix+rgba.join()+")";
},toHslaString:function(){var prefix="hsla(",hsla=jQuery.map(this.hsla(),function(v,i){if(v==null){v=i>2?1:0;
}if(i&&i<3){v=Math.round(v*100)+"%";
}return v;
});
if(hsla[3]===1){hsla.pop();
prefix="hsl(";
}return prefix+hsla.join()+")";
},toHexString:function(includeAlpha){var rgba=this._rgba.slice(),alpha=rgba.pop();
if(includeAlpha){rgba.push(~~(alpha*255));
}return"#"+jQuery.map(rgba,function(v){v=(v||0).toString(16);
return v.length===1?"0"+v:v;
}).join("");
},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString();
}});
color.fn.parse.prototype=color.fn;
function hue2rgb(p,q,h){h=(h+1)%1;
if(h*6<1){return p+(q-p)*h*6;
}if(h*2<1){return q;
}if(h*3<2){return p+(q-p)*((2/3)-h)*6;
}return p;
}spaces.hsla.to=function(rgba){if(rgba[0]==null||rgba[1]==null||rgba[2]==null){return[null,null,null,rgba[3]];
}var r=rgba[0]/255,g=rgba[1]/255,b=rgba[2]/255,a=rgba[3],max=Math.max(r,g,b),min=Math.min(r,g,b),diff=max-min,add=max+min,l=add*0.5,h,s;
if(min===max){h=0;
}else{if(r===max){h=(60*(g-b)/diff)+360;
}else{if(g===max){h=(60*(b-r)/diff)+120;
}else{h=(60*(r-g)/diff)+240;
}}}if(l===0||l===1){s=l;
}else{if(l<=0.5){s=diff/add;
}else{s=diff/(2-add);
}}return[Math.round(h)%360,s,l,a==null?1:a];
};
spaces.hsla.from=function(hsla){if(hsla[0]==null||hsla[1]==null||hsla[2]==null){return[null,null,null,hsla[3]];
}var h=hsla[0]/360,s=hsla[1],l=hsla[2],a=hsla[3],q=l<=0.5?l*(1+s):l+s-l*s,p=2*l-q;
return[Math.round(hue2rgb(p,q,h+(1/3))*255),Math.round(hue2rgb(p,q,h)*255),Math.round(hue2rgb(p,q,h-(1/3))*255),a];
};
each(spaces,function(spaceName,space){var props=space.props,cache=space.cache,to=space.to,from=space.from;
color.fn[spaceName]=function(value){if(to&&!this[cache]){this[cache]=to(this._rgba);
}if(value===undefined){return this[cache].slice();
}var ret,type=jQuery.type(value),arr=(type==="array"||type==="object")?value:arguments,local=this[cache].slice();
each(props,function(key,prop){var val=arr[type==="object"?key:prop.idx];
if(val==null){val=local[prop.idx];
}local[prop.idx]=clamp(val,prop);
});
if(from){ret=color(from(local));
ret[cache]=local;
return ret;
}else{return color(local);
}};
each(props,function(key,prop){if(color.fn[key]){return ;
}color.fn[key]=function(value){var vtype=jQuery.type(value),fn=(key==="alpha"?(this._hsla?"hsla":"rgba"):spaceName),local=this[fn](),cur=local[prop.idx],match;
if(vtype==="undefined"){return cur;
}if(vtype==="function"){value=value.call(this,cur);
vtype=jQuery.type(value);
}if(value==null&&prop.empty){return this;
}if(vtype==="string"){match=rplusequals.exec(value);
if(match){value=cur+parseFloat(match[2])*(match[1]==="+"?1:-1);
}}local[prop.idx]=value;
return this[fn](local);
};
});
});
each(stepHooks,function(i,hook){jQuery.cssHooks[hook]={set:function(elem,value){var parsed,curElem,backgroundColor="";
if(jQuery.type(value)!=="string"||(parsed=stringParse(value))){value=color(parsed||value);
if(!support.rgba&&value._rgba[3]!==1){curElem=hook==="backgroundColor"?elem.parentNode:elem;
while((backgroundColor===""||backgroundColor==="transparent")&&curElem&&curElem.style){try{backgroundColor=jQuery.css(curElem,"backgroundColor");
curElem=curElem.parentNode;
}catch(e){}}value=value.blend(backgroundColor&&backgroundColor!=="transparent"?backgroundColor:"_default");
}value=value.toRgbaString();
}try{elem.style[hook]=value;
}catch(error){}}};
jQuery.fx.step[hook]=function(fx){if(!fx.colorInit){fx.start=color(fx.elem,hook);
fx.end=color(fx.end);
fx.colorInit=true;
}jQuery.cssHooks[hook].set(fx.elem,fx.start.transition(fx.end,fx.pos));
};
});
jQuery.cssHooks.borderColor={expand:function(value){var expanded={};
each(["Top","Right","Bottom","Left"],function(i,part){expanded["border"+part+"Color"]=value;
});
return expanded;
}};
colors=jQuery.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"};
})(jQuery);
(function(){var classAnimationActions=["add","remove","toggle"],shorthandStyles={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};
$.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(_,prop){$.fx.step[prop]=function(fx){if(fx.end!=="none"&&!fx.setAttr||fx.pos===1&&!fx.setAttr){jQuery.style(fx.elem,prop,fx.end);
fx.setAttr=true;
}};
});
function getElementStyles(){var style=this.ownerDocument.defaultView?this.ownerDocument.defaultView.getComputedStyle(this,null):this.currentStyle,newStyle={},key,len;
if(style&&style.length&&style[0]&&style[style[0]]){len=style.length;
while(len--){key=style[len];
if(typeof style[key]==="string"){newStyle[$.camelCase(key)]=style[key];
}}}else{for(key in style){if(typeof style[key]==="string"){newStyle[key]=style[key];
}}}return newStyle;
}function styleDifference(oldStyle,newStyle){var diff={},name,value;
for(name in newStyle){value=newStyle[name];
if(oldStyle[name]!==value){if(!shorthandStyles[name]){if($.fx.step[name]||!isNaN(parseFloat(value))){diff[name]=value;
}}}}return diff;
}$.effects.animateClass=function(value,duration,easing,callback){var o=$.speed(duration,easing,callback);
return this.queue(function(){var animated=$(this),baseClass=animated.attr("class")||"",applyClassChange,allAnimations=o.children?animated.find("*").andSelf():animated;
allAnimations=allAnimations.map(function(){var el=$(this);
return{el:el,start:getElementStyles.call(this)};
});
applyClassChange=function(){$.each(classAnimationActions,function(i,action){if(value[action]){animated[action+"Class"](value[action]);
}});
};
applyClassChange();
allAnimations=allAnimations.map(function(){this.end=getElementStyles.call(this.el[0]);
this.diff=styleDifference(this.start,this.end);
return this;
});
animated.attr("class",baseClass);
allAnimations=allAnimations.map(function(){var styleInfo=this,dfd=$.Deferred(),opts=jQuery.extend({},o,{queue:false,complete:function(){dfd.resolve(styleInfo);
}});
this.el.animate(this.diff,opts);
return dfd.promise();
});
$.when.apply($,allAnimations.get()).done(function(){applyClassChange();
$.each(arguments,function(){var el=this.el;
$.each(this.diff,function(key){el.css(key,"");
});
});
o.complete.call(animated[0]);
});
});
};
$.fn.extend({_addClass:$.fn.addClass,addClass:function(classNames,speed,easing,callback){return speed?$.effects.animateClass.call(this,{add:classNames},speed,easing,callback):this._addClass(classNames);
},_removeClass:$.fn.removeClass,removeClass:function(classNames,speed,easing,callback){return speed?$.effects.animateClass.call(this,{remove:classNames},speed,easing,callback):this._removeClass(classNames);
},_toggleClass:$.fn.toggleClass,toggleClass:function(classNames,force,speed,easing,callback){if(typeof force==="boolean"||force===undefined){if(!speed){return this._toggleClass(classNames,force);
}else{return $.effects.animateClass.call(this,(force?{add:classNames}:{remove:classNames}),speed,easing,callback);
}}else{return $.effects.animateClass.call(this,{toggle:classNames},force,speed,easing);
}},switchClass:function(remove,add,speed,easing,callback){return $.effects.animateClass.call(this,{add:add,remove:remove},speed,easing,callback);
}});
})();
(function(){$.extend($.effects,{version:"1.9.2",save:function(element,set){for(var i=0;
i<set.length;
i++){if(set[i]!==null){element.data(dataSpace+set[i],element[0].style[set[i]]);
}}},restore:function(element,set){var val,i;
for(i=0;
i<set.length;
i++){if(set[i]!==null){val=element.data(dataSpace+set[i]);
if(val===undefined){val="";
}element.css(set[i],val);
}}},setMode:function(el,mode){if(mode==="toggle"){mode=el.is(":hidden")?"show":"hide";
}return mode;
},getBaseline:function(origin,original){var y,x;
switch(origin[0]){case"top":y=0;
break;
case"middle":y=0.5;
break;
case"bottom":y=1;
break;
default:y=origin[0]/original.height;
}switch(origin[1]){case"left":x=0;
break;
case"center":x=0.5;
break;
case"right":x=1;
break;
default:x=origin[1]/original.width;
}return{x:x,y:y};
},createWrapper:function(element){if(element.parent().is(".ui-effects-wrapper")){return element.parent();
}var props={width:element.outerWidth(true),height:element.outerHeight(true),"float":element.css("float")},wrapper=$("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),size={width:element.width(),height:element.height()},active=document.activeElement;
try{active.id;
}catch(e){active=document.body;
}element.wrap(wrapper);
if(element[0]===active||$.contains(element[0],active)){$(active).focus();
}wrapper=element.parent();
if(element.css("position")==="static"){wrapper.css({position:"relative"});
element.css({position:"relative"});
}else{$.extend(props,{position:element.css("position"),zIndex:element.css("z-index")});
$.each(["top","left","bottom","right"],function(i,pos){props[pos]=element.css(pos);
if(isNaN(parseInt(props[pos],10))){props[pos]="auto";
}});
element.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"});
}element.css(size);
return wrapper.css(props).show();
},removeWrapper:function(element){var active=document.activeElement;
if(element.parent().is(".ui-effects-wrapper")){element.parent().replaceWith(element);
if(element[0]===active||$.contains(element[0],active)){$(active).focus();
}}return element;
},setTransition:function(element,list,factor,value){value=value||{};
$.each(list,function(i,x){var unit=element.cssUnit(x);
if(unit[0]>0){value[x]=unit[0]*factor+unit[1];
}});
return value;
}});
function _normalizeArguments(effect,options,speed,callback){if($.isPlainObject(effect)){options=effect;
effect=effect.effect;
}effect={effect:effect};
if(options==null){options={};
}if($.isFunction(options)){callback=options;
speed=null;
options={};
}if(typeof options==="number"||$.fx.speeds[options]){callback=speed;
speed=options;
options={};
}if($.isFunction(speed)){callback=speed;
speed=null;
}if(options){$.extend(effect,options);
}speed=speed||options.duration;
effect.duration=$.fx.off?0:typeof speed==="number"?speed:speed in $.fx.speeds?$.fx.speeds[speed]:$.fx.speeds._default;
effect.complete=callback||options.complete;
return effect;
}function standardSpeed(speed){if(!speed||typeof speed==="number"||$.fx.speeds[speed]){return true;
}if(typeof speed==="string"&&!$.effects.effect[speed]){if(backCompat&&$.effects[speed]){return false;
}return true;
}return false;
}$.fn.extend({effect:function(){var args=_normalizeArguments.apply(this,arguments),mode=args.mode,queue=args.queue,effectMethod=$.effects.effect[args.effect],oldEffectMethod=!effectMethod&&backCompat&&$.effects[args.effect];
if($.fx.off||!(effectMethod||oldEffectMethod)){if(mode){return this[mode](args.duration,args.complete);
}else{return this.each(function(){if(args.complete){args.complete.call(this);
}});
}}function run(next){var elem=$(this),complete=args.complete,mode=args.mode;
function done(){if($.isFunction(complete)){complete.call(elem[0]);
}if($.isFunction(next)){next();
}}if(elem.is(":hidden")?mode==="hide":mode==="show"){done();
}else{effectMethod.call(elem[0],args,done);
}}if(effectMethod){return queue===false?this.each(run):this.queue(queue||"fx",run);
}else{return oldEffectMethod.call(this,{options:args,duration:args.duration,callback:args.complete,mode:args.mode});
}},_show:$.fn.show,show:function(speed){if(standardSpeed(speed)){return this._show.apply(this,arguments);
}else{var args=_normalizeArguments.apply(this,arguments);
args.mode="show";
return this.effect.call(this,args);
}},_hide:$.fn.hide,hide:function(speed){if(standardSpeed(speed)){return this._hide.apply(this,arguments);
}else{var args=_normalizeArguments.apply(this,arguments);
args.mode="hide";
return this.effect.call(this,args);
}},__toggle:$.fn.toggle,toggle:function(speed){if(standardSpeed(speed)||typeof speed==="boolean"||$.isFunction(speed)){return this.__toggle.apply(this,arguments);
}else{var args=_normalizeArguments.apply(this,arguments);
args.mode="toggle";
return this.effect.call(this,args);
}},cssUnit:function(key){var style=this.css(key),val=[];
$.each(["em","px","%","pt"],function(i,unit){if(style.indexOf(unit)>0){val=[parseFloat(style),unit];
}});
return val;
}});
})();
(function(){var baseEasings={};
$.each(["Quad","Cubic","Quart","Quint","Expo"],function(i,name){baseEasings[name]=function(p){return Math.pow(p,i+2);
};
});
$.extend(baseEasings,{Sine:function(p){return 1-Math.cos(p*Math.PI/2);
},Circ:function(p){return 1-Math.sqrt(1-p*p);
},Elastic:function(p){return p===0||p===1?p:-Math.pow(2,8*(p-1))*Math.sin(((p-1)*80-7.5)*Math.PI/15);
},Back:function(p){return p*p*(3*p-2);
},Bounce:function(p){var pow2,bounce=4;
while(p<((pow2=Math.pow(2,--bounce))-1)/11){}return 1/Math.pow(4,3-bounce)-7.5625*Math.pow((pow2*3-2)/22-p,2);
}});
$.each(baseEasings,function(name,easeIn){$.easing["easeIn"+name]=easeIn;
$.easing["easeOut"+name]=function(p){return 1-easeIn(1-p);
};
$.easing["easeInOut"+name]=function(p){return p<0.5?easeIn(p*2)/2:1-easeIn(p*-2+2)/2;
};
});
})();
})(jQuery));
(function(B,D){var A=/up|down|vertical/,C=/up|left|vertical|horizontal/;
B.effects.effect.blind=function(G,M){var H=B(this),P=["position","top","bottom","left","right","height","width"],N=B.effects.setMode(H,G.mode||"hide"),Q=G.direction||"up",J=A.test(Q),I=J?"height":"width",O=J?"top":"left",S=C.test(Q),L={},R=N==="show",F,E,K;
if(H.parent().is(".ui-effects-wrapper")){B.effects.save(H.parent(),P);
}else{B.effects.save(H,P);
}H.show();
F=B.effects.createWrapper(H).css({overflow:"hidden"});
E=F[I]();
K=parseFloat(F.css(O))||0;
L[I]=R?E:0;
if(!S){H.css(J?"bottom":"right",0).css(J?"top":"left","auto").css({position:"absolute"});
L[O]=R?K:E+K;
}if(R){F.css(I,0);
if(!S){F.css(O,K+E);
}}F.animate(L,{duration:G.duration,easing:G.easing,queue:false,complete:function(){if(N==="hide"){H.hide();
}B.effects.restore(H,P);
B.effects.removeWrapper(H);
M();
}});
};
})(jQuery);
(function(A,B){A.effects.effect.bounce=function(L,K){var C=A(this),D=["position","top","bottom","left","right","height","width"],J=A.effects.setMode(C,L.mode||"effect"),I=J==="hide",T=J==="show",U=L.direction||"up",E=L.distance,H=L.times||5,V=H*2+(T||I?1:0),S=L.duration/V,N=L.easing,F=(U==="up"||U==="down")?"top":"left",M=(U==="up"||U==="left"),R,G,Q,O=C.queue(),P=O.length;
if(T||I){D.push("opacity");
}A.effects.save(C,D);
C.show();
A.effects.createWrapper(C);
if(!E){E=C[F==="top"?"outerHeight":"outerWidth"]()/3;
}if(T){Q={opacity:1};
Q[F]=0;
C.css("opacity",0).css(F,M?-E*2:E*2).animate(Q,S,N);
}if(I){E=E/Math.pow(2,H-1);
}Q={};
Q[F]=0;
for(R=0;
R<H;
R++){G={};
G[F]=(M?"-=":"+=")+E;
C.animate(G,S,N).animate(Q,S,N);
E=I?E*2:E/2;
}if(I){G={opacity:0};
G[F]=(M?"-=":"+=")+E;
C.animate(G,S,N);
}C.queue(function(){if(I){C.hide();
}A.effects.restore(C,D);
A.effects.removeWrapper(C);
K();
});
if(P>1){O.splice.apply(O,[1,0].concat(O.splice(P,V+1)));
}C.dequeue();
};
})(jQuery);
(function(A,B){A.effects.effect.clip=function(F,I){var G=A(this),M=["position","top","bottom","left","right","height","width"],L=A.effects.setMode(G,F.mode||"hide"),O=L==="show",N=F.direction||"vertical",K=N==="vertical",P=K?"height":"width",J=K?"top":"left",H={},D,E,C;
A.effects.save(G,M);
G.show();
D=A.effects.createWrapper(G).css({overflow:"hidden"});
E=(G[0].tagName==="IMG")?D:G;
C=E[P]();
if(O){E.css(P,0);
E.css(J,C/2);
}H[P]=O?C:0;
H[J]=O?0:C/2;
E.animate(H,{queue:false,duration:F.duration,easing:F.easing,complete:function(){if(!O){G.hide();
}A.effects.restore(G,M);
A.effects.removeWrapper(G);
I();
}});
};
})(jQuery);
(function(A,B){A.effects.effect.drop=function(D,H){var E=A(this),J=["position","top","bottom","left","right","opacity","height","width"],I=A.effects.setMode(E,D.mode||"hide"),L=I==="show",K=D.direction||"left",F=(K==="up"||K==="down")?"top":"left",M=(K==="up"||K==="left")?"pos":"neg",G={opacity:L?1:0},C;
A.effects.save(E,J);
E.show();
A.effects.createWrapper(E);
C=D.distance||E[F==="top"?"outerHeight":"outerWidth"](true)/2;
if(L){E.css("opacity",0).css(F,M==="pos"?-C:C);
}G[F]=(L?(M==="pos"?"+=":"-="):(M==="pos"?"-=":"+="))+C;
E.animate(G,{queue:false,duration:D.duration,easing:D.easing,complete:function(){if(I==="hide"){E.hide();
}A.effects.restore(E,J);
A.effects.removeWrapper(E);
H();
}});
};
})(jQuery);
(function(A,B){A.effects.effect.explode=function(P,O){var I=P.pieces?Math.round(Math.sqrt(P.pieces)):3,D=I,C=A(this),K=A.effects.setMode(C,P.mode||"hide"),T=K==="show",G=C.show().css("visibility","hidden").offset(),Q=Math.ceil(C.outerWidth()/D),N=Math.ceil(C.outerHeight()/I),H=[],S,R,E,M,L,J;
function U(){H.push(this);
if(H.length===I*D){F();
}}for(S=0;
S<I;
S++){M=G.top+S*N;
J=S-(I-1)/2;
for(R=0;
R<D;
R++){E=G.left+R*Q;
L=R-(D-1)/2;
C.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-R*Q,top:-S*N}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:Q,height:N,left:E+(T?L*Q:0),top:M+(T?J*N:0),opacity:T?0:1}).animate({left:E+(T?0:L*Q),top:M+(T?0:J*N),opacity:T?1:0},P.duration||500,P.easing,U);
}}function F(){C.css({visibility:"visible"});
A(H).remove();
if(!T){C.hide();
}O();
}};
})(jQuery);
(function(A,B){A.effects.effect.fade=function(F,C){var D=A(this),E=A.effects.setMode(D,F.mode||"toggle");
D.animate({opacity:E},{queue:false,duration:F.duration,easing:F.easing,complete:C});
};
})(jQuery);
(function(A,B){A.effects.effect.fold=function(E,I){var F=A(this),N=["position","top","bottom","left","right","height","width"],K=A.effects.setMode(F,E.mode||"hide"),Q=K==="show",L=K==="hide",S=E.size||15,M=/([0-9]+)%/.exec(S),R=!!E.horizFirst,J=Q!==R,G=J?["width","height"]:["height","width"],H=E.duration/2,D,C,P={},O={};
A.effects.save(F,N);
F.show();
D=A.effects.createWrapper(F).css({overflow:"hidden"});
C=J?[D.width(),D.height()]:[D.height(),D.width()];
if(M){S=parseInt(M[1],10)/100*C[L?0:1];
}if(Q){D.css(R?{height:0,width:S}:{height:S,width:0});
}P[G[0]]=Q?C[0]:S;
O[G[1]]=Q?C[1]:0;
D.animate(P,H,E.easing).animate(O,H,E.easing,function(){if(L){F.hide();
}A.effects.restore(F,N);
A.effects.removeWrapper(F);
I();
});
};
})(jQuery);
(function(A,B){A.effects.effect.highlight=function(H,C){var E=A(this),D=["backgroundImage","backgroundColor","opacity"],G=A.effects.setMode(E,H.mode||"show"),F={backgroundColor:E.css("backgroundColor")};
if(G==="hide"){F.opacity=0;
}A.effects.save(E,D);
E.show().css({backgroundImage:"none",backgroundColor:H.color||"#ffff99"}).animate(F,{queue:false,duration:H.duration,easing:H.easing,complete:function(){if(G==="hide"){E.hide();
}A.effects.restore(E,D);
C();
}});
};
})(jQuery);
(function(A,B){A.effects.effect.pulsate=function(C,G){var E=A(this),J=A.effects.setMode(E,C.mode||"show"),N=J==="show",K=J==="hide",O=(N||J==="hide"),L=((C.times||5)*2)+(O?1:0),F=C.duration/L,M=0,I=E.queue(),D=I.length,H;
if(N||!E.is(":visible")){E.css("opacity",0).show();
M=1;
}for(H=1;
H<L;
H++){E.animate({opacity:M},F,C.easing);
M=1-M;
}E.animate({opacity:M},F,C.easing);
E.queue(function(){if(K){E.hide();
}G();
});
if(D>1){I.splice.apply(I,[1,0].concat(I.splice(D,L+1)));
}E.dequeue();
};
})(jQuery);
(function(A,B){A.effects.effect.puff=function(J,C){var H=A(this),I=A.effects.setMode(H,J.mode||"hide"),F=I==="hide",G=parseInt(J.percent,10)||150,E=G/100,D={height:H.height(),width:H.width(),outerHeight:H.outerHeight(),outerWidth:H.outerWidth()};
A.extend(J,{effect:"scale",queue:false,fade:true,mode:I,complete:C,percent:F?G:100,from:F?D:{height:D.height*E,width:D.width*E,outerHeight:D.outerHeight*E,outerWidth:D.outerWidth*E}});
H.effect(J);
};
A.effects.effect.scale=function(C,F){var D=A(this),L=A.extend(true,{},C),G=A.effects.setMode(D,C.mode||"effect"),H=parseInt(C.percent,10)||(parseInt(C.percent,10)===0?0:(G==="hide"?0:100)),J=C.direction||"both",K=C.origin,E={height:D.height(),width:D.width(),outerHeight:D.outerHeight(),outerWidth:D.outerWidth()},I={y:J!=="horizontal"?(H/100):1,x:J!=="vertical"?(H/100):1};
L.effect="size";
L.queue=false;
L.complete=F;
if(G!=="effect"){L.origin=K||["middle","center"];
L.restore=true;
}L.from=C.from||(G==="show"?{height:0,width:0,outerHeight:0,outerWidth:0}:E);
L.to={height:E.height*I.y,width:E.width*I.x,outerHeight:E.outerHeight*I.y,outerWidth:E.outerWidth*I.x};
if(L.fade){if(G==="show"){L.from.opacity=0;
L.to.opacity=1;
}if(G==="hide"){L.from.opacity=1;
L.to.opacity=0;
}}D.effect(L);
};
A.effects.effect.size=function(L,K){var P,I,J,C=A(this),O=["position","top","bottom","left","right","width","height","overflow","opacity"],N=["position","top","bottom","left","right","overflow","opacity"],M=["width","height","overflow"],G=["fontSize"],R=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],D=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],H=A.effects.setMode(C,L.mode||"effect"),Q=L.restore||H!=="effect",U=L.scale||"both",S=L.origin||["middle","center"],T=C.css("position"),E=Q?O:N,F={height:0,width:0,outerHeight:0,outerWidth:0};
if(H==="show"){C.show();
}P={height:C.height(),width:C.width(),outerHeight:C.outerHeight(),outerWidth:C.outerWidth()};
if(L.mode==="toggle"&&H==="show"){C.from=L.to||F;
C.to=L.from||P;
}else{C.from=L.from||(H==="show"?F:P);
C.to=L.to||(H==="hide"?F:P);
}J={from:{y:C.from.height/P.height,x:C.from.width/P.width},to:{y:C.to.height/P.height,x:C.to.width/P.width}};
if(U==="box"||U==="both"){if(J.from.y!==J.to.y){E=E.concat(R);
C.from=A.effects.setTransition(C,R,J.from.y,C.from);
C.to=A.effects.setTransition(C,R,J.to.y,C.to);
}if(J.from.x!==J.to.x){E=E.concat(D);
C.from=A.effects.setTransition(C,D,J.from.x,C.from);
C.to=A.effects.setTransition(C,D,J.to.x,C.to);
}}if(U==="content"||U==="both"){if(J.from.y!==J.to.y){E=E.concat(G).concat(M);
C.from=A.effects.setTransition(C,G,J.from.y,C.from);
C.to=A.effects.setTransition(C,G,J.to.y,C.to);
}}A.effects.save(C,E);
C.show();
A.effects.createWrapper(C);
C.css("overflow","hidden").css(C.from);
if(S){I=A.effects.getBaseline(S,P);
C.from.top=(P.outerHeight-C.outerHeight())*I.y;
C.from.left=(P.outerWidth-C.outerWidth())*I.x;
C.to.top=(P.outerHeight-C.to.outerHeight)*I.y;
C.to.left=(P.outerWidth-C.to.outerWidth)*I.x;
}C.css(C.from);
if(U==="content"||U==="both"){R=R.concat(["marginTop","marginBottom"]).concat(G);
D=D.concat(["marginLeft","marginRight"]);
M=O.concat(R).concat(D);
C.find("*[width]").each(function(){var W=A(this),V={height:W.height(),width:W.width(),outerHeight:W.outerHeight(),outerWidth:W.outerWidth()};
if(Q){A.effects.save(W,M);
}W.from={height:V.height*J.from.y,width:V.width*J.from.x,outerHeight:V.outerHeight*J.from.y,outerWidth:V.outerWidth*J.from.x};
W.to={height:V.height*J.to.y,width:V.width*J.to.x,outerHeight:V.height*J.to.y,outerWidth:V.width*J.to.x};
if(J.from.y!==J.to.y){W.from=A.effects.setTransition(W,R,J.from.y,W.from);
W.to=A.effects.setTransition(W,R,J.to.y,W.to);
}if(J.from.x!==J.to.x){W.from=A.effects.setTransition(W,D,J.from.x,W.from);
W.to=A.effects.setTransition(W,D,J.to.x,W.to);
}W.css(W.from);
W.animate(W.to,L.duration,L.easing,function(){if(Q){A.effects.restore(W,M);
}});
});
}C.animate(C.to,{queue:false,duration:L.duration,easing:L.easing,complete:function(){if(C.to.opacity===0){C.css("opacity",C.from.opacity);
}if(H==="hide"){C.hide();
}A.effects.restore(C,E);
if(!Q){if(T==="static"){C.css({position:"relative",top:C.to.top,left:C.to.left});
}else{A.each(["top","left"],function(V,W){C.css(W,function(Y,a){var Z=parseInt(a,10),X=V?C.to.left:C.to.top;
if(a==="auto"){return X+"px";
}return Z+X+"px";
});
});
}}A.effects.removeWrapper(C);
K();
}});
};
})(jQuery);
(function(A,B){A.effects.effect.shake=function(K,J){var C=A(this),D=["position","top","bottom","left","right","height","width"],I=A.effects.setMode(C,K.mode||"effect"),S=K.direction||"left",E=K.distance||20,H=K.times||3,T=H*2+1,O=Math.round(K.duration/T),G=(S==="up"||S==="down")?"top":"left",F=(S==="up"||S==="left"),R={},Q={},P={},N,L=C.queue(),M=L.length;
A.effects.save(C,D);
C.show();
A.effects.createWrapper(C);
R[G]=(F?"-=":"+=")+E;
Q[G]=(F?"+=":"-=")+E*2;
P[G]=(F?"-=":"+=")+E*2;
C.animate(R,O,K.easing);
for(N=1;
N<H;
N++){C.animate(Q,O,K.easing).animate(P,O,K.easing);
}C.animate(Q,O,K.easing).animate(R,O/2,K.easing).queue(function(){if(I==="hide"){C.hide();
}A.effects.restore(C,D);
A.effects.removeWrapper(C);
J();
});
if(M>1){L.splice.apply(L,[1,0].concat(L.splice(M,T+1)));
}C.dequeue();
};
})(jQuery);
(function(A,B){A.effects.effect.slide=function(E,I){var F=A(this),K=["position","top","bottom","left","right","width","height"],J=A.effects.setMode(F,E.mode||"show"),M=J==="show",L=E.direction||"left",G=(L==="up"||L==="down")?"top":"left",D=(L==="up"||L==="left"),C,H={};
A.effects.save(F,K);
F.show();
C=E.distance||F[G==="top"?"outerHeight":"outerWidth"](true);
A.effects.createWrapper(F).css({overflow:"hidden"});
if(M){F.css(G,D?(isNaN(C)?"-"+C:-C):C);
}H[G]=(M?(D?"+=":"-="):(D?"-=":"+="))+C;
F.animate(H,{queue:false,duration:E.duration,easing:E.easing,complete:function(){if(J==="hide"){F.hide();
}A.effects.restore(F,K);
A.effects.removeWrapper(F);
I();
}});
};
})(jQuery);
(function(A,B){A.effects.effect.transfer=function(D,H){var F=A(this),K=A(D.to),N=K.css("position")==="fixed",J=A("body"),L=N?J.scrollTop():0,M=N?J.scrollLeft():0,C=K.offset(),G={top:C.top-L,left:C.left-M,height:K.innerHeight(),width:K.innerWidth()},I=F.offset(),E=A('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(D.className).css({top:I.top-L,left:I.left-M,height:F.innerHeight(),width:F.innerWidth(),position:N?"fixed":"absolute"}).animate(G,D.duration,D.easing,function(){E.remove();
H();
});
};
})(jQuery);
function validate(A){var B=A?A:document.forms[0];
if(B.terms&&B.terms.value!==""){return true;
}if(B.creator&&B.creator.selectedIndex>0){return true;
}if(B.categories&&B.categories.selectedIndex>0){return true;
}alert(String_Search_Brief);
B.terms.focus();
return false;
}function addDescriptor(D,A,B){if(!B){B=document.forms[1];
}var C=B.terms;
if(C.value.length>0){C.value+=" ";
}if(A.indexOf(" ")!=-1){C.value+='"'+A+'"';
}else{C.value+=A;
}}function displayPage(B){var A=document.forms.searchCriterion;
A.page.value=B;
A.doIt.value=true;
A.submit();
}function finer(){var A=document.forms.searchCriterion;
A.target="Contents";
A.spawned.value="";
A.submit();
if(window.opener){window.close();
}}function searchCallback(A,B){$.ajax({url:servletPath+"Entry..SearchAutoCompletion/?q="+A.term,context:this,dataType:"json",error:function(C,E,D){B();
},success:function(D){if(D&&D.length){for(var C=0;
C<D.length;
C++){D[C].label=D[C].data;
}}B(D);
}});
}var searchField=$("#SearchField");
if(searchField&&searchField.autocomplete){searchField.autocomplete({source:searchCallback});
}var terms=$("#terms");
if(terms&&terms.autocomplete){terms.autocomplete({source:searchCallback});
/*
 * Bootstrap v3.1.1 (http://getbootstrap.com)
 * Copyright 2011-2014 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */
}if(typeof jQuery==="undefined"){throw new Error("Bootstrap's JavaScript requires jQuery");
}+function(B){function A(){var E=document.createElement("bootstrap");
var D={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};
for(var C in D){if(E.style[C]!==undefined){return{end:D[C]};
}}return false;
}B.fn.emulateTransitionEnd=function(E){var D=false,C=this;
B(this).one(B.support.transition.end,function(){D=true;
});
var F=function(){if(!D){B(C).trigger(B.support.transition.end);
}};
setTimeout(F,E);
return this;
};
B(function(){B.support.transition=A();
});
}(jQuery);
+function(D){var C='[data-dismiss="alert"]';
var B=function(E){D(E).on("click",C,this.close);
};
B.prototype.close=function(I){var H=D(this);
var F=H.attr("data-target");
if(!F){F=H.attr("href");
F=F&&F.replace(/.*(?=#[^\s]*$)/,"");
}var G=D(F);
if(I){I.preventDefault();
}if(!G.length){G=H.hasClass("alert")?H:H.parent();
}G.trigger(I=D.Event("close.bs.alert"));
if(I.isDefaultPrevented()){return ;
}G.removeClass("in");
function E(){G.trigger("closed.bs.alert").remove();
}D.support.transition&&G.hasClass("fade")?G.one(D.support.transition.end,E).emulateTransitionEnd(150):E();
};
var A=D.fn.alert;
D.fn.alert=function(E){return this.each(function(){var G=D(this);
var F=G.data("bs.alert");
if(!F){G.data("bs.alert",(F=new B(this)));
}if(typeof E=="string"){F[E].call(G);
}});
};
D.fn.alert.Constructor=B;
D.fn.alert.noConflict=function(){D.fn.alert=A;
return this;
};
D(document).on("click.bs.alert.data-api",C,B.prototype.close);
}(jQuery);
+function(C){var B=function(E,D){this.$element=C(E);
this.options=C.extend({},B.DEFAULTS,D);
this.isLoading=false;
};
B.DEFAULTS={loadingText:"loading..."};
B.prototype.setState=function(F){var H="disabled";
var D=this.$element;
var G=D.is("input")?"val":"html";
var E=D.data();
F=F+"Text";
if(!E.resetText){D.data("resetText",D[G]());
}D[G](E[F]||this.options[F]);
setTimeout(C.proxy(function(){if(F=="loadingText"){this.isLoading=true;
D.addClass(H).attr(H,H);
}else{if(this.isLoading){this.isLoading=false;
D.removeClass(H).removeAttr(H);
}}},this),0);
};
B.prototype.toggle=function(){var E=true;
var D=this.$element.closest('[data-toggle="buttons"]');
if(D.length){var F=this.$element.find("input");
if(F.prop("type")=="radio"){if(F.prop("checked")&&this.$element.hasClass("active")){E=false;
}else{D.find(".active").removeClass("active");
}}if(E){F.prop("checked",!this.$element.hasClass("active")).trigger("change");
}}if(E){this.$element.toggleClass("active");
}};
var A=C.fn.button;
C.fn.button=function(D){return this.each(function(){var G=C(this);
var F=G.data("bs.button");
var E=typeof D=="object"&&D;
if(!F){G.data("bs.button",(F=new B(this,E)));
}if(D=="toggle"){F.toggle();
}else{if(D){F.setState(D);
}}});
};
C.fn.button.Constructor=B;
C.fn.button.noConflict=function(){C.fn.button=A;
return this;
};
C(document).on("click.bs.button.data-api","[data-toggle^=button]",function(E){var D=C(E.target);
if(!D.hasClass("btn")){D=D.closest(".btn");
}D.button("toggle");
E.preventDefault();
});
}(jQuery);
+function(B){var C=function(E,D){this.$element=B(E);
this.$indicators=this.$element.find(".carousel-indicators");
this.options=D;
this.paused=this.sliding=this.interval=this.$active=this.$items=null;
this.options.pause=="hover"&&this.$element.on("mouseenter",B.proxy(this.pause,this)).on("mouseleave",B.proxy(this.cycle,this));
};
C.DEFAULTS={interval:5000,pause:"hover",wrap:true};
C.prototype.cycle=function(D){D||(this.paused=false);
this.interval&&clearInterval(this.interval);
this.options.interval&&!this.paused&&(this.interval=setInterval(B.proxy(this.next,this),this.options.interval));
return this;
};
C.prototype.getActiveIndex=function(){this.$active=this.$element.find(".item.active");
this.$items=this.$active.parent().children();
return this.$items.index(this.$active);
};
C.prototype.to=function(F){var E=this;
var D=this.getActiveIndex();
if(F>(this.$items.length-1)||F<0){return ;
}if(this.sliding){return this.$element.one("slid.bs.carousel",function(){E.to(F);
});
}if(D==F){return this.pause().cycle();
}return this.slide(F>D?"next":"prev",B(this.$items[F]));
};
C.prototype.pause=function(D){D||(this.paused=true);
if(this.$element.find(".next, .prev").length&&B.support.transition){this.$element.trigger(B.support.transition.end);
this.cycle(true);
}this.interval=clearInterval(this.interval);
return this;
};
C.prototype.next=function(){if(this.sliding){return ;
}return this.slide("next");
};
C.prototype.prev=function(){if(this.sliding){return ;
}return this.slide("prev");
};
C.prototype.slide=function(J,E){var L=this.$element.find(".item.active");
var D=E||L[J]();
var I=this.interval;
var K=J=="next"?"left":"right";
var F=J=="next"?"first":"last";
var G=this;
if(!D.length){if(!this.options.wrap){return ;
}D=this.$element.find(".item")[F]();
}if(D.hasClass("active")){return this.sliding=false;
}var H=B.Event("slide.bs.carousel",{relatedTarget:D[0],direction:K});
this.$element.trigger(H);
if(H.isDefaultPrevented()){return ;
}this.sliding=true;
I&&this.pause();
if(this.$indicators.length){this.$indicators.find(".active").removeClass("active");
this.$element.one("slid.bs.carousel",function(){var M=B(G.$indicators.children()[G.getActiveIndex()]);
M&&M.addClass("active");
});
}if(B.support.transition&&this.$element.hasClass("slide")){D.addClass(J);
D[0].offsetWidth;
L.addClass(K);
D.addClass(K);
L.one(B.support.transition.end,function(){D.removeClass([J,K].join(" ")).addClass("active");
L.removeClass(["active",K].join(" "));
G.sliding=false;
setTimeout(function(){G.$element.trigger("slid.bs.carousel");
},0);
}).emulateTransitionEnd(L.css("transition-duration").slice(0,-1)*1000);
}else{L.removeClass("active");
D.addClass("active");
this.sliding=false;
this.$element.trigger("slid.bs.carousel");
}I&&this.cycle();
return this;
};
var A=B.fn.carousel;
B.fn.carousel=function(D){return this.each(function(){var H=B(this);
var G=H.data("bs.carousel");
var E=B.extend({},C.DEFAULTS,H.data(),typeof D=="object"&&D);
var F=typeof D=="string"?D:E.slide;
if(!G){H.data("bs.carousel",(G=new C(this,E)));
}if(typeof D=="number"){G.to(D);
}else{if(F){G[F]();
}else{if(E.interval){G.pause().cycle();
}}}});
};
B.fn.carousel.Constructor=C;
B.fn.carousel.noConflict=function(){B.fn.carousel=A;
return this;
};
B(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(I){var H=B(this),E;
var D=B(H.attr("data-target")||(E=H.attr("href"))&&E.replace(/.*(?=#[^\s]+$)/,""));
var F=B.extend({},D.data(),H.data());
var G=H.attr("data-slide-to");
if(G){F.interval=false;
}D.carousel(F);
if(G=H.attr("data-slide-to")){D.data("bs.carousel").to(G);
}I.preventDefault();
});
B(window).on("load",function(){B('[data-ride="carousel"]').each(function(){var D=B(this);
D.carousel(D.data());
});
});
}(jQuery);
+function(B){var C=function(E,D){this.$element=B(E);
this.options=B.extend({},C.DEFAULTS,D);
this.transitioning=null;
if(this.options.parent){this.$parent=B(this.options.parent);
}if(this.options.toggle){this.toggle();
}};
C.DEFAULTS={toggle:true};
C.prototype.dimension=function(){var D=this.$element.hasClass("width");
return D?"width":"height";
};
C.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in")){return ;
}var E=B.Event("show.bs.collapse");
this.$element.trigger(E);
if(E.isDefaultPrevented()){return ;
}var H=this.$parent&&this.$parent.find("> .panel > .in");
if(H&&H.length){var F=H.data("bs.collapse");
if(F&&F.transitioning){return ;
}H.collapse("hide");
F||H.data("bs.collapse",null);
}var I=this.dimension();
this.$element.removeClass("collapse").addClass("collapsing")[I](0);
this.transitioning=1;
var D=function(){this.$element.removeClass("collapsing").addClass("collapse in")[I]("auto");
this.transitioning=0;
this.$element.trigger("shown.bs.collapse");
};
if(!B.support.transition){return D.call(this);
}var G=B.camelCase(["scroll",I].join("-"));
this.$element.one(B.support.transition.end,B.proxy(D,this)).emulateTransitionEnd(350)[I](this.$element[0][G]);
};
C.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in")){return ;
}var E=B.Event("hide.bs.collapse");
this.$element.trigger(E);
if(E.isDefaultPrevented()){return ;
}var F=this.dimension();
this.$element[F](this.$element[F]())[0].offsetHeight;
this.$element.addClass("collapsing").removeClass("collapse").removeClass("in");
this.transitioning=1;
var D=function(){this.transitioning=0;
this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse");
};
if(!B.support.transition){return D.call(this);
}this.$element[F](0).one(B.support.transition.end,B.proxy(D,this)).emulateTransitionEnd(350);
};
C.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]();
};
var A=B.fn.collapse;
B.fn.collapse=function(D){return this.each(function(){var G=B(this);
var F=G.data("bs.collapse");
var E=B.extend({},C.DEFAULTS,G.data(),typeof D=="object"&&D);
if(!F&&E.toggle&&D=="show"){D=!D;
}if(!F){G.data("bs.collapse",(F=new C(this,E)));
}if(typeof D=="string"){F[D]();
}});
};
B.fn.collapse.Constructor=C;
B.fn.collapse.noConflict=function(){B.fn.collapse=A;
return this;
};
B(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(I){var K=B(this),D;
var J=K.attr("data-target")||I.preventDefault()||(D=K.attr("href"))&&D.replace(/.*(?=#[^\s]+$)/,"");
var E=B(J);
var G=E.data("bs.collapse");
var H=G?"toggle":K.data();
var L=K.attr("data-parent");
var F=L&&B(L);
if(!G||!G.transitioning){if(F){F.find('[data-toggle=collapse][data-parent="'+L+'"]').not(K).addClass("collapsed");
}K[E.hasClass("in")?"addClass":"removeClass"]("collapsed");
}E.collapse(H);
});
}(jQuery);
+function(G){var E=".dropdown-backdrop";
var B="[data-toggle=dropdown]";
var A=function(H){G(H).on("click.bs.dropdown",this.toggle);
};
A.prototype.toggle=function(L){var K=G(this);
if(K.is(".disabled, :disabled")){return ;
}var J=F(K);
var I=J.hasClass("open");
D();
if(!I){if("ontouchstart" in document.documentElement&&!J.closest(".navbar-nav").length){G('<div class="dropdown-backdrop"/>').insertAfter(G(this)).on("click",D);
}var H={relatedTarget:this};
J.trigger(L=G.Event("show.bs.dropdown",H));
if(L.isDefaultPrevented()){return ;
}J.toggleClass("open").trigger("shown.bs.dropdown",H);
K.focus();
}return false;
};
A.prototype.keydown=function(L){if(!/(38|40|27)/.test(L.keyCode)){return ;
}var K=G(this);
L.preventDefault();
L.stopPropagation();
if(K.is(".disabled, :disabled")){return ;
}var J=F(K);
var I=J.hasClass("open");
if(!I||(I&&L.keyCode==27)){if(L.which==27){J.find(B).focus();
}return K.click();
}var M=" li:not(.divider):visible a";
var N=J.find("[role=menu]"+M+", [role=listbox]"+M);
if(!N.length){return ;
}var H=N.index(N.filter(":focus"));
if(L.keyCode==38&&H>0){H--;
}if(L.keyCode==40&&H<N.length-1){H++;
}if(!~H){H=0;
}N.eq(H).focus();
};
function D(H){G(E).remove();
G(B).each(function(){var J=F(G(this));
var I={relatedTarget:this};
if(!J.hasClass("open")){return ;
}J.trigger(H=G.Event("hide.bs.dropdown",I));
if(H.isDefaultPrevented()){return ;
}J.removeClass("open").trigger("hidden.bs.dropdown",I);
});
}function F(J){var H=J.attr("data-target");
if(!H){H=J.attr("href");
H=H&&/#[A-Za-z]/.test(H)&&H.replace(/.*(?=#[^\s]*$)/,"");
}var I=H&&G(H);
return I&&I.length?I:J.parent();
}var C=G.fn.dropdown;
G.fn.dropdown=function(H){return this.each(function(){var J=G(this);
var I=J.data("bs.dropdown");
if(!I){J.data("bs.dropdown",(I=new A(this)));
}if(typeof H=="string"){I[H].call(J);
}});
};
G.fn.dropdown.Constructor=A;
G.fn.dropdown.noConflict=function(){G.fn.dropdown=C;
return this;
};
G(document).on("click.bs.dropdown.data-api",D).on("click.bs.dropdown.data-api",".dropdown form",function(H){H.stopPropagation();
}).on("click.bs.dropdown.data-api",B,A.prototype.toggle).on("keydown.bs.dropdown.data-api",B+", [role=menu], [role=listbox]",A.prototype.keydown);
}(jQuery);
+function(C){var B=function(E,D){this.options=D;
this.$element=C(E);
this.$backdrop=this.isShown=null;
if(this.options.remote){this.$element.find(".modal-content").load(this.options.remote,C.proxy(function(){this.$element.trigger("loaded.bs.modal");
},this));
}};
B.DEFAULTS={backdrop:true,keyboard:true,show:true};
B.prototype.toggle=function(D){return this[!this.isShown?"show":"hide"](D);
};
B.prototype.show=function(F){var D=this;
var E=C.Event("show.bs.modal",{relatedTarget:F});
this.$element.trigger(E);
if(this.isShown||E.isDefaultPrevented()){return ;
}this.isShown=true;
this.escape();
this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',C.proxy(this.hide,this));
this.backdrop(function(){var H=C.support.transition&&D.$element.hasClass("fade");
if(!D.$element.parent().length){D.$element.appendTo(document.body);
}D.$element.show().scrollTop(0);
if(H){D.$element[0].offsetWidth;
}D.$element.addClass("in").attr("aria-hidden",false);
D.enforceFocus();
var G=C.Event("shown.bs.modal",{relatedTarget:F});
H?D.$element.find(".modal-dialog").one(C.support.transition.end,function(){D.$element.focus().trigger(G);
}).emulateTransitionEnd(300):D.$element.focus().trigger(G);
});
};
B.prototype.hide=function(D){if(D){D.preventDefault();
}D=C.Event("hide.bs.modal");
this.$element.trigger(D);
if(!this.isShown||D.isDefaultPrevented()){return ;
}this.isShown=false;
this.escape();
C(document).off("focusin.bs.modal");
this.$element.removeClass("in").attr("aria-hidden",true).off("click.dismiss.bs.modal");
C.support.transition&&this.$element.hasClass("fade")?this.$element.one(C.support.transition.end,C.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal();
};
B.prototype.enforceFocus=function(){C(document).off("focusin.bs.modal").on("focusin.bs.modal",C.proxy(function(D){if(this.$element[0]!==D.target&&!this.$element.has(D.target).length){this.$element.focus();
}},this));
};
B.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on("keyup.dismiss.bs.modal",C.proxy(function(D){D.which==27&&this.hide();
},this));
}else{if(!this.isShown){this.$element.off("keyup.dismiss.bs.modal");
}}};
B.prototype.hideModal=function(){var D=this;
this.$element.hide();
this.backdrop(function(){D.removeBackdrop();
D.$element.trigger("hidden.bs.modal");
});
};
B.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();
this.$backdrop=null;
};
B.prototype.backdrop=function(F){var E=this.$element.hasClass("fade")?"fade":"";
if(this.isShown&&this.options.backdrop){var D=C.support.transition&&E;
this.$backdrop=C('<div class="modal-backdrop '+E+'" />').appendTo(document.body);
this.$element.on("click.dismiss.bs.modal",C.proxy(function(G){if(G.target!==G.currentTarget){return ;
}this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this);
},this));
if(D){this.$backdrop[0].offsetWidth;
}this.$backdrop.addClass("in");
if(!F){return ;
}D?this.$backdrop.one(C.support.transition.end,F).emulateTransitionEnd(150):F();
}else{if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");
C.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(C.support.transition.end,F).emulateTransitionEnd(150):F();
}else{if(F){F();
}}}};
var A=C.fn.modal;
C.fn.modal=function(D,E){return this.each(function(){var H=C(this);
var G=H.data("bs.modal");
var F=C.extend({},B.DEFAULTS,H.data(),typeof D=="object"&&D);
if(!G){H.data("bs.modal",(G=new B(this,F)));
}if(typeof D=="string"){G[D](E);
}else{if(F.show){G.show(E);
}}});
};
C.fn.modal.Constructor=B;
C.fn.modal.noConflict=function(){C.fn.modal=A;
return this;
};
C(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(H){var G=C(this);
var E=G.attr("href");
var D=C(G.attr("data-target")||(E&&E.replace(/.*(?=#[^\s]+$)/,"")));
var F=D.data("bs.modal")?"toggle":C.extend({remote:!/#/.test(E)&&E},D.data(),G.data());
if(G.is("a")){H.preventDefault();
}D.modal(F,this).one("hide",function(){G.is(":visible")&&G.focus();
});
});
C(document).on("show.bs.modal",".modal",function(){C(document.body).addClass("modal-open");
}).on("hidden.bs.modal",".modal",function(){C(document.body).removeClass("modal-open");
});
}(jQuery);
+function(C){var B=function(E,D){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;
this.init("tooltip",E,D);
};
B.DEFAULTS={animation:true,placement:"top",selector:false,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:false,container:false};
B.prototype.init=function(J,H,F){this.enabled=true;
this.type=J;
this.$element=C(H);
this.options=this.getOptions(F);
var I=this.options.trigger.split(" ");
for(var G=I.length;
G--;
){var E=I[G];
if(E=="click"){this.$element.on("click."+this.type,this.options.selector,C.proxy(this.toggle,this));
}else{if(E!="manual"){var K=E=="hover"?"mouseenter":"focusin";
var D=E=="hover"?"mouseleave":"focusout";
this.$element.on(K+"."+this.type,this.options.selector,C.proxy(this.enter,this));
this.$element.on(D+"."+this.type,this.options.selector,C.proxy(this.leave,this));
}}}this.options.selector?(this._options=C.extend({},this.options,{trigger:"manual",selector:""})):this.fixTitle();
};
B.prototype.getDefaults=function(){return B.DEFAULTS;
};
B.prototype.getOptions=function(D){D=C.extend({},this.getDefaults(),this.$element.data(),D);
if(D.delay&&typeof D.delay=="number"){D.delay={show:D.delay,hide:D.delay};
}return D;
};
B.prototype.getDelegateOptions=function(){var D={};
var E=this.getDefaults();
this._options&&C.each(this._options,function(F,G){if(E[F]!=G){D[F]=G;
}});
return D;
};
B.prototype.enter=function(E){var D=E instanceof this.constructor?E:C(E.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);
clearTimeout(D.timeout);
D.hoverState="in";
if(!D.options.delay||!D.options.delay.show){return D.show();
}D.timeout=setTimeout(function(){if(D.hoverState=="in"){D.show();
}},D.options.delay.show);
};
B.prototype.leave=function(E){var D=E instanceof this.constructor?E:C(E.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);
clearTimeout(D.timeout);
D.hoverState="out";
if(!D.options.delay||!D.options.delay.hide){return D.hide();
}D.timeout=setTimeout(function(){if(D.hoverState=="out"){D.hide();
}},D.options.delay.hide);
};
B.prototype.show=function(){var O=C.Event("show.bs."+this.type);
if(this.hasContent()&&this.enabled){this.$element.trigger(O);
if(O.isDefaultPrevented()){return ;
}var N=this;
var J=this.tip();
this.setContent();
if(this.options.animation){J.addClass("fade");
}var I=typeof this.options.placement=="function"?this.options.placement.call(this,J[0],this.$element[0]):this.options.placement;
var S=/\s?auto?\s?/i;
var T=S.test(I);
if(T){I=I.replace(S,"")||"top";
}J.detach().css({top:0,left:0,display:"block"}).addClass(I);
this.options.container?J.appendTo(this.options.container):J.insertAfter(this.$element);
var P=this.getPosition();
var D=J[0].offsetWidth;
var L=J[0].offsetHeight;
if(T){var H=this.$element.parent();
var G=I;
var Q=document.documentElement.scrollTop||document.body.scrollTop;
var R=this.options.container=="body"?window.innerWidth:H.outerWidth();
var M=this.options.container=="body"?window.innerHeight:H.outerHeight();
var K=this.options.container=="body"?0:H.offset().left;
I=I=="bottom"&&P.top+P.height+L-Q>M?"top":I=="top"&&P.top-Q-L<0?"bottom":I=="right"&&P.right+D>R?"left":I=="left"&&P.left-D<K?"right":I;
J.removeClass(G).addClass(I);
}var F=this.getCalculatedOffset(I,P,D,L);
this.applyPlacement(F,I);
this.hoverState=null;
var E=function(){N.$element.trigger("shown.bs."+N.type);
};
C.support.transition&&this.$tip.hasClass("fade")?J.one(C.support.transition.end,E).emulateTransitionEnd(150):E();
}};
B.prototype.applyPlacement=function(I,J){var G;
var K=this.tip();
var F=K[0].offsetWidth;
var N=K[0].offsetHeight;
var E=parseInt(K.css("margin-top"),10);
var H=parseInt(K.css("margin-left"),10);
if(isNaN(E)){E=0;
}if(isNaN(H)){H=0;
}I.top=I.top+E;
I.left=I.left+H;
C.offset.setOffset(K[0],C.extend({using:function(O){K.css({top:Math.round(O.top),left:Math.round(O.left)});
}},I),0);
K.addClass("in");
var D=K[0].offsetWidth;
var L=K[0].offsetHeight;
if(J=="top"&&L!=N){G=true;
I.top=I.top+N-L;
}if(/bottom|top/.test(J)){var M=0;
if(I.left<0){M=I.left*-2;
I.left=0;
K.offset(I);
D=K[0].offsetWidth;
L=K[0].offsetHeight;
}this.replaceArrow(M-F+D,D,"left");
}else{this.replaceArrow(L-N,L,"top");
}if(G){K.offset(I);
}};
B.prototype.replaceArrow=function(F,E,D){this.arrow().css(D,F?(50*(1-F/E)+"%"):"");
};
B.prototype.setContent=function(){var E=this.tip();
var D=this.getTitle();
E.find(".tooltip-inner")[this.options.html?"html":"text"](D);
E.removeClass("fade in top bottom left right");
};
B.prototype.hide=function(){var E=this;
var G=this.tip();
var F=C.Event("hide.bs."+this.type);
function D(){if(E.hoverState!="in"){G.detach();
}E.$element.trigger("hidden.bs."+E.type);
}this.$element.trigger(F);
if(F.isDefaultPrevented()){return ;
}G.removeClass("in");
C.support.transition&&this.$tip.hasClass("fade")?G.one(C.support.transition.end,D).emulateTransitionEnd(150):D();
this.hoverState=null;
return this;
};
B.prototype.fixTitle=function(){var D=this.$element;
if(D.attr("title")||typeof (D.attr("data-original-title"))!="string"){D.attr("data-original-title",D.attr("title")||"").attr("title","");
}};
B.prototype.hasContent=function(){return this.getTitle();
};
B.prototype.getPosition=function(){var D=this.$element[0];
return C.extend({},(typeof D.getBoundingClientRect=="function")?D.getBoundingClientRect():{width:D.offsetWidth,height:D.offsetHeight},this.$element.offset());
};
B.prototype.getCalculatedOffset=function(D,G,E,F){return D=="bottom"?{top:G.top+G.height,left:G.left+G.width/2-E/2}:D=="top"?{top:G.top-F,left:G.left+G.width/2-E/2}:D=="left"?{top:G.top+G.height/2-F/2,left:G.left-E}:{top:G.top+G.height/2-F/2,left:G.left+G.width};
};
B.prototype.getTitle=function(){var F;
var D=this.$element;
var E=this.options;
F=D.attr("data-original-title")||(typeof E.title=="function"?E.title.call(D[0]):E.title);
return F;
};
B.prototype.tip=function(){return this.$tip=this.$tip||C(this.options.template);
};
B.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow");
};
B.prototype.validate=function(){if(!this.$element[0].parentNode){this.hide();
this.$element=null;
this.options=null;
}};
B.prototype.enable=function(){this.enabled=true;
};
B.prototype.disable=function(){this.enabled=false;
};
B.prototype.toggleEnabled=function(){this.enabled=!this.enabled;
};
B.prototype.toggle=function(E){var D=E?C(E.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;
D.tip().hasClass("in")?D.leave(D):D.enter(D);
};
B.prototype.destroy=function(){clearTimeout(this.timeout);
this.hide().$element.off("."+this.type).removeData("bs."+this.type);
};
var A=C.fn.tooltip;
C.fn.tooltip=function(D){return this.each(function(){var G=C(this);
var F=G.data("bs.tooltip");
var E=typeof D=="object"&&D;
if(!F&&D=="destroy"){return ;
}if(!F){G.data("bs.tooltip",(F=new B(this,E)));
}if(typeof D=="string"){F[D]();
}});
};
C.fn.tooltip.Constructor=B;
C.fn.tooltip.noConflict=function(){C.fn.tooltip=A;
return this;
};
}(jQuery);
+function(C){var B=function(E,D){this.init("popover",E,D);
};
if(!C.fn.tooltip){throw new Error("Popover requires tooltip.js");
}B.DEFAULTS=C.extend({},C.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'});
B.prototype=C.extend({},C.fn.tooltip.Constructor.prototype);
B.prototype.constructor=B;
B.prototype.getDefaults=function(){return B.DEFAULTS;
};
B.prototype.setContent=function(){var F=this.tip();
var E=this.getTitle();
var D=this.getContent();
F.find(".popover-title")[this.options.html?"html":"text"](E);
F.find(".popover-content")[this.options.html?(typeof D=="string"?"html":"append"):"text"](D);
F.removeClass("fade top bottom left right in");
if(!F.find(".popover-title").html()){F.find(".popover-title").hide();
}};
B.prototype.hasContent=function(){return this.getTitle()||this.getContent();
};
B.prototype.getContent=function(){var D=this.$element;
var E=this.options;
return D.attr("data-content")||(typeof E.content=="function"?E.content.call(D[0]):E.content);
};
B.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow");
};
B.prototype.tip=function(){if(!this.$tip){this.$tip=C(this.options.template);
}return this.$tip;
};
var A=C.fn.popover;
C.fn.popover=function(D){return this.each(function(){var G=C(this);
var F=G.data("bs.popover");
var E=typeof D=="object"&&D;
if(!F&&D=="destroy"){return ;
}if(!F){G.data("bs.popover",(F=new B(this,E)));
}if(typeof D=="string"){F[D]();
}});
};
C.fn.popover.Constructor=B;
C.fn.popover.noConflict=function(){C.fn.popover=A;
return this;
};
}(jQuery);
+function(C){function B(F,E){var D;
var G=C.proxy(this.process,this);
this.$element=C(F).is("body")?C(window):C(F);
this.$body=C("body");
this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",G);
this.options=C.extend({},B.DEFAULTS,E);
this.selector=(this.options.target||((D=C(F).attr("href"))&&D.replace(/.*(?=#[^\s]+$)/,""))||"")+" .nav li > a";
this.offsets=C([]);
this.targets=C([]);
this.activeTarget=null;
this.refresh();
this.process();
}B.DEFAULTS={offset:10};
B.prototype.refresh=function(){var D=this.$element[0]==window?"offset":"position";
this.offsets=C([]);
this.targets=C([]);
var E=this;
var F=this.$body.find(this.selector).map(function(){var H=C(this);
var G=H.data("target")||H.attr("href");
var I=/^#./.test(G)&&C(G);
return(I&&I.length&&I.is(":visible")&&[[I[D]().top+(!C.isWindow(E.$scrollElement.get(0))&&E.$scrollElement.scrollTop()),G]])||null;
}).sort(function(H,G){return H[0]-G[0];
}).each(function(){E.offsets.push(this[0]);
E.targets.push(this[1]);
});
};
B.prototype.process=function(){var I=this.$scrollElement.scrollTop()+this.options.offset;
var F=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight;
var H=F-this.$scrollElement.height();
var G=this.offsets;
var D=this.targets;
var J=this.activeTarget;
var E;
if(I>=H){return J!=(E=D.last()[0])&&this.activate(E);
}if(J&&I<=G[0]){return J!=(E=D[0])&&this.activate(E);
}for(E=G.length;
E--;
){J!=D[E]&&I>=G[E]&&(!G[E+1]||I<=G[E+1])&&this.activate(D[E]);
}};
B.prototype.activate=function(F){this.activeTarget=F;
C(this.selector).parentsUntil(this.options.target,".active").removeClass("active");
var D=this.selector+'[data-target="'+F+'"],'+this.selector+'[href="'+F+'"]';
var E=C(D).parents("li").addClass("active");
if(E.parent(".dropdown-menu").length){E=E.closest("li.dropdown").addClass("active");
}E.trigger("activate.bs.scrollspy");
};
var A=C.fn.scrollspy;
C.fn.scrollspy=function(D){return this.each(function(){var G=C(this);
var F=G.data("bs.scrollspy");
var E=typeof D=="object"&&D;
if(!F){G.data("bs.scrollspy",(F=new B(this,E)));
}if(typeof D=="string"){F[D]();
}});
};
C.fn.scrollspy.Constructor=B;
C.fn.scrollspy.noConflict=function(){C.fn.scrollspy=A;
return this;
};
C(window).on("load",function(){C('[data-spy="scroll"]').each(function(){var D=C(this);
D.scrollspy(D.data());
});
});
}(jQuery);
+function(C){var B=function(D){this.element=C(D);
};
B.prototype.show=function(){var I=this.element;
var F=I.closest("ul:not(.dropdown-menu)");
var E=I.data("target");
if(!E){E=I.attr("href");
E=E&&E.replace(/.*(?=#[^\s]*$)/,"");
}if(I.parent("li").hasClass("active")){return ;
}var G=F.find(".active:last a")[0];
var H=C.Event("show.bs.tab",{relatedTarget:G});
I.trigger(H);
if(H.isDefaultPrevented()){return ;
}var D=C(E);
this.activate(I.parent("li"),F);
this.activate(D,D.parent(),function(){I.trigger({type:"shown.bs.tab",relatedTarget:G});
});
};
B.prototype.activate=function(F,E,I){var D=E.find("> .active");
var H=I&&C.support.transition&&D.hasClass("fade");
function G(){D.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");
F.addClass("active");
if(H){F[0].offsetWidth;
F.addClass("in");
}else{F.removeClass("fade");
}if(F.parent(".dropdown-menu")){F.closest("li.dropdown").addClass("active");
}I&&I();
}H?D.one(C.support.transition.end,G).emulateTransitionEnd(150):G();
D.removeClass("in");
};
var A=C.fn.tab;
C.fn.tab=function(D){return this.each(function(){var F=C(this);
var E=F.data("bs.tab");
if(!E){F.data("bs.tab",(E=new B(this)));
}if(typeof D=="string"){E[D]();
}});
};
C.fn.tab.Constructor=B;
C.fn.tab.noConflict=function(){C.fn.tab=A;
return this;
};
C(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(D){D.preventDefault();
C(this).tab("show");
});
}(jQuery);
+function(C){var B=function(E,D){this.options=C.extend({},B.DEFAULTS,D);
this.$window=C(window).on("scroll.bs.affix.data-api",C.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",C.proxy(this.checkPositionWithEventLoop,this));
this.$element=C(E);
this.affixed=this.unpin=this.pinnedOffset=null;
this.checkPosition();
};
B.RESET="affix affix-top affix-bottom";
B.DEFAULTS={offset:0};
B.prototype.getPinnedOffset=function(){if(this.pinnedOffset){return this.pinnedOffset;
}this.$element.removeClass(B.RESET).addClass("affix");
var E=this.$window.scrollTop();
var D=this.$element.offset();
return(this.pinnedOffset=D.top-E);
};
B.prototype.checkPositionWithEventLoop=function(){setTimeout(C.proxy(this.checkPosition,this),1);
};
B.prototype.checkPosition=function(){if(!this.$element.is(":visible")){return ;
}var L=C(document).height();
var D=this.$window.scrollTop();
var I=this.$element.offset();
var G=this.options.offset;
var E=G.top;
var F=G.bottom;
if(this.affixed=="top"){I.top+=D;
}if(typeof G!="object"){F=E=G;
}if(typeof E=="function"){E=G.top(this.$element);
}if(typeof F=="function"){F=G.bottom(this.$element);
}var H=this.unpin!=null&&(D+this.unpin<=I.top)?false:F!=null&&(I.top+this.$element.height()>=L-F)?"bottom":E!=null&&(D<=E)?"top":false;
if(this.affixed===H){return ;
}if(this.unpin){this.$element.css("top","");
}var K="affix"+(H?"-"+H:"");
var J=C.Event(K+".bs.affix");
this.$element.trigger(J);
if(J.isDefaultPrevented()){return ;
}this.affixed=H;
this.unpin=H=="bottom"?this.getPinnedOffset():null;
this.$element.removeClass(B.RESET).addClass(K).trigger(C.Event(K.replace("affix","affixed")));
if(H=="bottom"){this.$element.offset({top:L-F-this.$element.height()});
}};
var A=C.fn.affix;
C.fn.affix=function(D){return this.each(function(){var G=C(this);
var F=G.data("bs.affix");
var E=typeof D=="object"&&D;
if(!F){G.data("bs.affix",(F=new B(this,E)));
}if(typeof D=="string"){F[D]();
}});
};
C.fn.affix.Constructor=B;
C.fn.affix.noConflict=function(){C.fn.affix=A;
return this;
};
C(window).on("load",function(){C('[data-spy="affix"]').each(function(){var E=C(this);
var D=E.data();
D.offset=D.offset||{};
if(D.offsetBottom){D.offset.bottom=D.offsetBottom;
}if(D.offsetTop){D.offset.top=D.offsetTop;
}E.affix(D);
});
});
}(jQuery);
!function(A){"function"==typeof define&&define.amd?define(["./blueimp-helper"],A):(window.blueimp=window.blueimp||{},window.blueimp.Gallery=A(window.blueimp.helper||window.jQuery));
}(function(B){function A(C,D){return void 0===document.body.style.maxHeight?null:this&&this.options===A.prototype.options?C&&C.length?(this.list=C,this.num=C.length,this.initOptions(D),void this.initialize()):void this.console.log("blueimp Gallery: No or empty list provided as first argument.",C):new A(C,D);
}return B.extend(A.prototype,{options:{container:"#blueimp-gallery",slidesContainer:"div",titleElement:"h3",displayClass:"blueimp-gallery-display",controlsClass:"blueimp-gallery-controls",singleClass:"blueimp-gallery-single",leftEdgeClass:"blueimp-gallery-left",rightEdgeClass:"blueimp-gallery-right",playingClass:"blueimp-gallery-playing",slideClass:"slide",slideLoadingClass:"slide-loading",slideErrorClass:"slide-error",slideContentClass:"slide-content",toggleClass:"toggle",prevClass:"prev",nextClass:"next",closeClass:"close",playPauseClass:"play-pause",typeProperty:"type",titleProperty:"title",urlProperty:"href",displayTransition:!0,clearSlides:!0,stretchImages:!1,toggleControlsOnReturn:!0,toggleSlideshowOnSpace:!0,enableKeyboardNavigation:!0,closeOnEscape:!0,closeOnSlideClick:!0,closeOnSwipeUpOrDown:!0,emulateTouchEvents:!0,stopTouchEventsPropagation:!1,hidePageScrollbars:!0,disableScroll:!0,carousel:!1,continuous:!0,unloadElements:!0,startSlideshow:!1,slideshowInterval:5000,index:0,preloadRange:2,transitionSpeed:400,slideshowTransitionSpeed:void 0,event:void 0,onopen:void 0,onopened:void 0,onslide:void 0,onslideend:void 0,onslidecomplete:void 0,onclose:void 0,onclosed:void 0},carouselOptions:{hidePageScrollbars:!1,toggleControlsOnReturn:!1,toggleSlideshowOnSpace:!1,enableKeyboardNavigation:!1,closeOnEscape:!1,closeOnSlideClick:!1,closeOnSwipeUpOrDown:!1,disableScroll:!1,startSlideshow:!0},console:window.console&&"function"==typeof window.console.log?window.console:{log:function(){}},support:function(C){var F={touch:void 0!==window.ontouchstart||window.DocumentTouch&&document instanceof DocumentTouch},E={webkitTransition:{end:"webkitTransitionEnd",prefix:"-webkit-"},MozTransition:{end:"transitionend",prefix:"-moz-"},OTransition:{end:"otransitionend",prefix:"-o-"},transition:{end:"transitionend",prefix:""}},D=function(){var G,I,H=F.transition;
document.body.appendChild(C),H&&(G=H.name.slice(0,-9)+"ransform",void 0!==C.style[G]&&(C.style[G]="translateZ(0)",I=window.getComputedStyle(C).getPropertyValue(H.prefix+"transform"),F.transform={prefix:H.prefix,name:G,translate:!0,translateZ:!!I&&"none"!==I})),void 0!==C.style.backgroundSize&&(F.backgroundSize={},C.style.backgroundSize="contain",F.backgroundSize.contain="contain"===window.getComputedStyle(C).getPropertyValue("background-size"),C.style.backgroundSize="cover",F.backgroundSize.cover="cover"===window.getComputedStyle(C).getPropertyValue("background-size")),document.body.removeChild(C);
};
return function(G,I){var H;
for(H in I){if(I.hasOwnProperty(H)&&void 0!==C.style[H]){G.transition=I[H],G.transition.name=H;
break;
}}}(F,E),document.body?D():B(document).on("DOMContentLoaded",D),F;
}(document.createElement("div")),requestAnimationFrame:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,initialize:function(){return this.initStartIndex(),this.initWidget()===!1?!1:(this.initEventListeners(),this.onslide(this.index),this.ontransitionend(),void (this.options.startSlideshow&&this.play()));
},slide:function(D,C){window.clearTimeout(this.timeout);
var H,G,F,E=this.index;
if(E!==D&&1!==this.num){if(C||(C=this.options.transitionSpeed),this.support.transition){for(this.options.continuous||(D=this.circle(D)),H=Math.abs(E-D)/(E-D),this.options.continuous&&(G=H,H=-this.positions[this.circle(D)]/this.slideWidth,H!==G&&(D=-H*this.num+D)),F=Math.abs(E-D)-1;
F;
){F-=1,this.move(this.circle((D>E?D:E)-F-1),this.slideWidth*H,0);
}D=this.circle(D),this.move(E,this.slideWidth*H,C),this.move(D,0,C),this.options.continuous&&this.move(this.circle(D-H),-(this.slideWidth*H),0);
}else{D=this.circle(D),this.animate(E*-this.slideWidth,D*-this.slideWidth,C);
}this.onslide(D);
}},getIndex:function(){return this.index;
},getNumber:function(){return this.num;
},prev:function(){(this.options.continuous||this.index)&&this.slide(this.index-1);
},next:function(){(this.options.continuous||this.index<this.num-1)&&this.slide(this.index+1);
},play:function(D){var C=this;
window.clearTimeout(this.timeout),this.interval=D||this.options.slideshowInterval,this.elements[this.index]>1&&(this.timeout=this.setTimeout(!this.requestAnimationFrame&&this.slide||function(E,F){C.animationFrameId=C.requestAnimationFrame.call(window,function(){C.slide(E,F);
});
},[this.index+1,this.options.slideshowTransitionSpeed],this.interval)),this.container.addClass(this.options.playingClass);
},pause:function(){window.clearTimeout(this.timeout),this.interval=null,this.container.removeClass(this.options.playingClass);
},add:function(D){var C;
for(D.concat||(D=Array.prototype.slice.call(D)),this.list.concat||(this.list=Array.prototype.slice.call(this.list)),this.list=this.list.concat(D),this.num=this.list.length,this.num>2&&null===this.options.continuous&&(this.options.continuous=!0,this.container.removeClass(this.options.leftEdgeClass)),this.container.removeClass(this.options.rightEdgeClass).removeClass(this.options.singleClass),C=this.num-D.length;
C<this.num;
C+=1){this.addSlide(C),this.positionSlide(C);
}this.positions.length=this.num,this.initSlides(!0);
},resetSlides:function(){this.slidesContainer.empty(),this.slides=[];
},handleClose:function(){var C=this.options;
this.destroyEventListeners(),this.pause(),this.container[0].style.display="none",this.container.removeClass(C.displayClass).removeClass(C.singleClass).removeClass(C.leftEdgeClass).removeClass(C.rightEdgeClass),C.hidePageScrollbars&&(document.body.style.overflow=this.bodyOverflowStyle),this.options.clearSlides&&this.resetSlides(),this.options.onclosed&&this.options.onclosed.call(this);
},close:function(){var D=this,C=function(E){E.target===D.container[0]&&(D.container.off(D.support.transition.end,C),D.handleClose());
};
this.options.onclose&&this.options.onclose.call(this),this.support.transition&&this.options.displayTransition?(this.container.on(this.support.transition.end,C),this.container.removeClass(this.options.displayClass)):this.handleClose();
},circle:function(C){return(this.num+C%this.num)%this.num;
},move:function(D,C,E){this.translateX(D,C,E),this.positions[D]=C;
},translate:function(D,C,I,H){var G=this.slides[D].style,F=this.support.transition,E=this.support.transform;
G[F.name+"Duration"]=H+"ms",G[E.name]="translate("+C+"px, "+I+"px)"+(E.translateZ?" translateZ(0)":"");
},translateX:function(D,C,E){this.translate(D,C,0,E);
},translateY:function(D,C,E){this.translate(D,0,C,E);
},animate:function(D,C,H){if(!H){return void (this.slidesContainer[0].style.left=C+"px");
}var G=this,F=(new Date).getTime(),E=window.setInterval(function(){var I=(new Date).getTime()-F;
return I>H?(G.slidesContainer[0].style.left=C+"px",G.ontransitionend(),void window.clearInterval(E)):void (G.slidesContainer[0].style.left=(C-D)*(Math.floor(I/H*100)/100)+D+"px");
},4);
},preventDefault:function(C){C.preventDefault?C.preventDefault():C.returnValue=!1;
},stopPropagation:function(C){C.stopPropagation?C.stopPropagation():C.cancelBubble=!0;
},onresize:function(){this.initSlides(!0);
},onmousedown:function(C){C.which&&1===C.which&&"VIDEO"!==C.target.nodeName&&(C.preventDefault(),(C.originalEvent||C).touches=[{pageX:C.pageX,pageY:C.pageY}],this.ontouchstart(C));
},onmousemove:function(C){this.touchStart&&((C.originalEvent||C).touches=[{pageX:C.pageX,pageY:C.pageY}],this.ontouchmove(C));
},onmouseup:function(C){this.touchStart&&(this.ontouchend(C),delete this.touchStart);
},onmouseout:function(C){if(this.touchStart){var E=C.target,D=C.relatedTarget;
(!D||D!==E&&!B.contains(E,D))&&this.onmouseup(C);
}},ontouchstart:function(D){this.options.stopTouchEventsPropagation&&this.stopPropagation(D);
var C=(D.originalEvent||D).touches[0];
this.touchStart={x:C.pageX,y:C.pageY,time:Date.now()},this.isScrolling=void 0,this.touchDelta={};
},ontouchmove:function(D){this.options.stopTouchEventsPropagation&&this.stopPropagation(D);
var C,H,G=(D.originalEvent||D).touches[0],F=(D.originalEvent||D).scale,E=this.index;
if(!(G.length>1||F&&1!==F)){if(this.options.disableScroll&&D.preventDefault(),this.touchDelta={x:G.pageX-this.touchStart.x,y:G.pageY-this.touchStart.y},C=this.touchDelta.x,void 0===this.isScrolling&&(this.isScrolling=this.isScrolling||Math.abs(C)<Math.abs(this.touchDelta.y)),this.isScrolling){this.options.closeOnSwipeUpOrDown&&this.translateY(E,this.touchDelta.y+this.positions[E],0);
}else{for(D.preventDefault(),window.clearTimeout(this.timeout),this.options.continuous?H=[this.circle(E+1),E,this.circle(E-1)]:(this.touchDelta.x=C/=!E&&C>0||E===this.num-1&&0>C?Math.abs(C)/this.slideWidth+1:1,H=[E],E&&H.push(E-1),E<this.num-1&&H.unshift(E+1));
H.length;
){E=H.pop(),this.translateX(E,C+this.positions[E],0);
}}}},ontouchend:function(O){this.options.stopTouchEventsPropagation&&this.stopPropagation(O);
var N,M,L,K,J,I=this.index,H=this.options.transitionSpeed,G=this.slideWidth,F=Number(Date.now()-this.touchStart.time)<250,E=F&&Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.x)>G/2,D=!I&&this.touchDelta.x>0||I===this.num-1&&this.touchDelta.x<0,C=!E&&this.options.closeOnSwipeUpOrDown&&(F&&Math.abs(this.touchDelta.y)>20||Math.abs(this.touchDelta.y)>this.slideHeight/2);
this.options.continuous&&(D=!1),N=this.touchDelta.x<0?-1:1,this.isScrolling?C?this.close():this.translateY(I,0,H):E&&!D?(M=I+N,L=I-N,K=G*N,J=-G*N,this.options.continuous?(this.move(this.circle(M),K,0),this.move(this.circle(I-2*N),J,0)):M>=0&&M<this.num&&this.move(M,K,0),this.move(I,this.positions[I]+K,H),this.move(this.circle(L),this.positions[this.circle(L)]+K,H),I=this.circle(L),this.onslide(I)):this.options.continuous?(this.move(this.circle(I-1),-G,H),this.move(I,0,H),this.move(this.circle(I+1),G,H)):(I&&this.move(I-1,-G,H),this.move(I,0,H),I<this.num-1&&this.move(I+1,G,H));
},ontouchcancel:function(C){this.touchStart&&(this.ontouchend(C),delete this.touchStart);
},ontransitionend:function(D){var C=this.slides[this.index];
D&&C!==D.target||(this.interval&&this.play(),this.setTimeout(this.options.onslideend,[this.index,C]));
},oncomplete:function(C){var F,E=C.target||C.srcElement,D=E&&E.parentNode;
E&&D&&(F=this.getNodeIndex(D),B(D).removeClass(this.options.slideLoadingClass),"error"===C.type?(B(D).addClass(this.options.slideErrorClass),this.elements[F]=3):this.elements[F]=2,E.clientHeight>this.container[0].clientHeight&&(E.style.maxHeight=this.container[0].clientHeight),this.interval&&this.slides[this.index]===D&&this.play(),this.setTimeout(this.options.onslidecomplete,[F,D]));
},onload:function(C){this.oncomplete(C);
},onerror:function(C){this.oncomplete(C);
},onkeydown:function(C){switch(C.which||C.keyCode){case 13:this.options.toggleControlsOnReturn&&(this.preventDefault(C),this.toggleControls());
break;
case 27:this.options.closeOnEscape&&this.close();
break;
case 32:this.options.toggleSlideshowOnSpace&&(this.preventDefault(C),this.toggleSlideshow());
break;
case 37:this.options.enableKeyboardNavigation&&(this.preventDefault(C),this.prev());
break;
case 39:this.options.enableKeyboardNavigation&&(this.preventDefault(C),this.next());
}},handleClick:function(C){var G=this.options,F=C.target||C.srcElement,E=F.parentNode,D=function(H){return B(F).hasClass(H)||B(E).hasClass(H);
};
D(G.toggleClass)?(this.preventDefault(C),this.toggleControls()):D(G.prevClass)?(this.preventDefault(C),this.prev()):D(G.nextClass)?(this.preventDefault(C),this.next()):D(G.closeClass)?(this.preventDefault(C),this.close()):D(G.playPauseClass)?(this.preventDefault(C),this.toggleSlideshow()):E===this.slidesContainer[0]?(this.preventDefault(C),G.closeOnSlideClick?this.close():this.toggleControls()):E.parentNode&&E.parentNode===this.slidesContainer[0]&&(this.preventDefault(C),this.toggleControls());
},onclick:function(C){return this.options.emulateTouchEvents&&this.touchDelta&&(Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.y)>20)?void delete this.touchDelta:this.handleClick(C);
},updateEdgeClasses:function(C){C?this.container.removeClass(this.options.leftEdgeClass):this.container.addClass(this.options.leftEdgeClass),C===this.num-1?this.container.addClass(this.options.rightEdgeClass):this.container.removeClass(this.options.rightEdgeClass);
},handleSlide:function(C){this.options.continuous||this.updateEdgeClasses(C),this.loadElements(C),this.options.unloadElements&&this.unloadElements(C),this.setTitle(C);
},onslide:function(C){this.index=C,this.handleSlide(C),this.setTimeout(this.options.onslide,[C,this.slides[C]]);
},setTitle:function(D){var C=this.slides[D].firstChild.title,E=this.titleElement;
E.length&&(this.titleElement.empty(),C&&E[0].appendChild(document.createTextNode(C)));
},setTimeout:function(D,C,F){var E=this;
return D&&window.setTimeout(function(){D.apply(E,C||[]);
},F||0);
},imageFactory:function(L,K){var J,I,H,G=this,F=this.imagePrototype.cloneNode(!1),E=L,D=this.options.stretchImages,C=function(M){if(!J){if(M={type:M.type,target:I},!I.parentNode){return G.setTimeout(C,[M]);
}J=!0,B(F).off("load error",C),D&&"load"===M.type&&(I.style.background='url("'+E+'") center no-repeat',I.style.backgroundSize=D),K(M);
}};
return"string"!=typeof E&&(E=this.getItemProperty(L,this.options.urlProperty),H=this.getItemProperty(L,this.options.titleProperty)),D===!0&&(D="contain"),D=this.support.backgroundSize&&this.support.backgroundSize[D]&&D,D?I=this.elementPrototype.cloneNode(!1):(I=F,F.draggable=!1),H&&(I.title=H),B(F).on("load error",C),F.src=E,I;
},createElement:function(C,G){var F=C&&this.getItemProperty(C,this.options.typeProperty),E=F&&this[F.split("/")[0]+"Factory"]||this.imageFactory,D=C&&E.call(this,C,G);
return D||(D=this.elementPrototype.cloneNode(!1),this.setTimeout(G,[{type:"error",target:D}])),B(D).addClass(this.options.slideContentClass),D;
},loadElement:function(C){this.elements[C]||(this.slides[C].firstChild?this.elements[C]=B(this.slides[C]).hasClass(this.options.slideErrorClass)?3:2:(this.elements[C]=1,B(this.slides[C]).addClass(this.options.slideLoadingClass),this.slides[C].appendChild(this.createElement(this.list[C],this.proxyListener))));
},loadElements:function(D){var C,F=Math.min(this.num,2*this.options.preloadRange+1),E=D;
for(C=0;
F>C;
C+=1){E+=C*(C%2===0?-1:1),E=this.circle(E),this.loadElement(E);
}},unloadElements:function(D){var C,F,E;
for(C in this.elements){this.elements.hasOwnProperty(C)&&(E=Math.abs(D-C),E>this.options.preloadRange&&E+this.options.preloadRange<this.num&&(F=this.slides[C],F.removeChild(F.firstChild),delete this.elements[C]));
}},addSlide:function(D){var C=this.slidePrototype.cloneNode(!1);
C.setAttribute("data-index",D),this.slidesContainer[0].appendChild(C),this.slides.push(C);
},positionSlide:function(D){var C=this.slides[D];
C.style.width=this.slideWidth+"px",this.support.transition&&(C.style.left=D*-this.slideWidth+"px",this.move(D,this.index>D?-this.slideWidth:this.index<D?this.slideWidth:0,0));
},initSlides:function(C){var E,D;
for(C||(this.positions=[],this.positions.length=this.num,this.elements={},this.imagePrototype=document.createElement("img"),this.elementPrototype=document.createElement("div"),this.slidePrototype=document.createElement("div"),B(this.slidePrototype).addClass(this.options.slideClass),this.slides=this.slidesContainer[0].children,E=this.options.clearSlides||this.slides.length!==this.num),this.slideWidth=this.container[0].offsetWidth,this.slideHeight=this.container[0].offsetHeight,this.slidesContainer[0].style.width=this.num*this.slideWidth+"px",E&&this.resetSlides(),D=0;
D<this.num;
D+=1){E&&this.addSlide(D),this.positionSlide(D);
}this.options.continuous&&this.support.transition&&(this.move(this.circle(this.index-1),-this.slideWidth,0),this.move(this.circle(this.index+1),this.slideWidth,0)),this.support.transition||(this.slidesContainer[0].style.left=this.index*-this.slideWidth+"px");
},toggleControls:function(){var C=this.options.controlsClass;
this.container.hasClass(C)?this.container.removeClass(C):this.container.addClass(C);
},toggleSlideshow:function(){this.interval?this.pause():this.play();
},getNodeIndex:function(C){return parseInt(C.getAttribute("data-index"),10);
},getNestedProperty:function(D,C){return C.replace(/\[(?:'([^']+)'|"([^"]+)"|(\d+))\]|(?:(?:^|\.)([^\.\[]+))/g,function(E,J,I,H,G){var F=G||J||I||H&&parseInt(H,10);
E&&D&&(D=D[F]);
}),D;
},getDataProperty:function(C,F){if(C.getAttribute){var E=C.getAttribute("data-"+F.replace(/([A-Z])/g,"-$1").toLowerCase());
if("string"==typeof E){if(/^(true|false|null|-?\d+(\.\d+)?|\{[\s\S]*\}|\[[\s\S]*\])$/.test(E)){try{return B.parseJSON(E);
}catch(D){}}return E;
}}},getItemProperty:function(D,C){var E=D[C];
return void 0===E&&(E=this.getDataProperty(D,C),void 0===E&&(E=this.getNestedProperty(D,C))),E;
},initStartIndex:function(){var D,C=this.options.index,E=this.options.urlProperty;
if(C&&"number"!=typeof C){for(D=0;
D<this.num;
D+=1){if(this.list[D]===C||this.getItemProperty(this.list[D],E)===this.getItemProperty(C,E)){C=D;
break;
}}}this.index=this.circle(parseInt(C,10)||0);
},initEventListeners:function(){var C=this,E=this.slidesContainer,D=function(F){var G=C.support.transition&&C.support.transition.end===F.type?"transitionend":F.type;
C["on"+G](F);
};
B(window).on("resize",D),B(document.body).on("keydown",D),this.container.on("click",D),this.support.touch?E.on("touchstart touchmove touchend touchcancel",D):this.options.emulateTouchEvents&&this.support.transition&&E.on("mousedown mousemove mouseup mouseout",D),this.support.transition&&E.on(this.support.transition.end,D),this.proxyListener=D;
},destroyEventListeners:function(){var C=this.slidesContainer,D=this.proxyListener;
B(window).off("resize",D),B(document.body).off("keydown",D),this.container.off("click",D),this.support.touch?C.off("touchstart touchmove touchend touchcancel",D):this.options.emulateTouchEvents&&this.support.transition&&C.off("mousedown mousemove mouseup mouseout",D),this.support.transition&&C.off(this.support.transition.end,D);
},handleOpen:function(){this.options.onopened&&this.options.onopened.call(this);
},initWidget:function(){var C=this,D=function(E){E.target===C.container[0]&&(C.container.off(C.support.transition.end,D),C.handleOpen());
};
return this.container=B(this.options.container),this.container.length?(this.slidesContainer=this.container.find(this.options.slidesContainer).first(),this.slidesContainer.length?(this.titleElement=this.container.find(this.options.titleElement).first(),1===this.num&&this.container.addClass(this.options.singleClass),this.options.onopen&&this.options.onopen.call(this),this.support.transition&&this.options.displayTransition?this.container.on(this.support.transition.end,D):this.handleOpen(),this.options.hidePageScrollbars&&(this.bodyOverflowStyle=document.body.style.overflow,document.body.style.overflow="hidden"),this.container[0].style.display="block",this.initSlides(),void this.container.addClass(this.options.displayClass)):(this.console.log("blueimp Gallery: Slides container not found.",this.options.slidesContainer),!1)):(this.console.log("blueimp Gallery: Widget container not found.",this.options.container),!1);
},initOptions:function(C){this.options=B.extend({},this.options),(C&&C.carousel||this.options.carousel&&(!C||C.carousel!==!1))&&B.extend(this.options,this.carouselOptions),B.extend(this.options,C),this.num<3&&(this.options.continuous=this.options.continuous?null:!1),this.support.transition||(this.options.emulateTouchEvents=!1),this.options.event&&this.preventDefault(this.options.event);
}}),A;
}),function(A){"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],A):A(window.blueimp.helper||window.jQuery,window.blueimp.Gallery);
}(function(B,A){B.extend(A.prototype.options,{fullScreen:!1});
var D=A.prototype.initialize,C=A.prototype.close;
return B.extend(A.prototype,{getFullScreenElement:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;
},requestFullScreen:function(E){E.requestFullscreen?E.requestFullscreen():E.webkitRequestFullscreen?E.webkitRequestFullscreen():E.mozRequestFullScreen?E.mozRequestFullScreen():E.msRequestFullscreen&&E.msRequestFullscreen();
},exitFullScreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen();
},initialize:function(){D.call(this),this.options.fullScreen&&!this.getFullScreenElement()&&this.requestFullScreen(this.container[0]);
},close:function(){this.getFullScreenElement()===this.container[0]&&this.exitFullScreen(),C.call(this);
}}),A;
}),function(A){"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],A):A(window.blueimp.helper||window.jQuery,window.blueimp.Gallery);
}(function(B,A){B.extend(A.prototype.options,{indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0});
var H=A.prototype.initSlides,G=A.prototype.addSlide,F=A.prototype.resetSlides,E=A.prototype.handleClick,D=A.prototype.handleSlide,C=A.prototype.handleClose;
return B.extend(A.prototype,{createIndicator:function(I){var N,M,L=this.indicatorPrototype.cloneNode(!1),K=this.getItemProperty(I,this.options.titleProperty),J=this.options.thumbnailProperty;
return this.options.thumbnailIndicators&&(M=I.getElementsByTagName&&B(I).find("img")[0],M?N=M.src:J&&(N=this.getItemProperty(I,J)),N&&(L.style.backgroundImage='url("'+N+'")')),K&&(L.title=K),L;
},addIndicator:function(J){if(this.indicatorContainer.length){var I=this.createIndicator(this.list[J]);
I.setAttribute("data-index",J),this.indicatorContainer[0].appendChild(I),this.indicators.push(I);
}},setActiveIndicator:function(I){this.indicators&&(this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),this.activeIndicator=B(this.indicators[I]),this.activeIndicator.addClass(this.options.activeIndicatorClass));
},initSlides:function(I){I||(this.indicatorContainer=this.container.find(this.options.indicatorContainer),this.indicatorContainer.length&&(this.indicatorPrototype=document.createElement("li"),this.indicators=this.indicatorContainer[0].children)),H.call(this,I);
},addSlide:function(I){G.call(this,I),this.addIndicator(I);
},resetSlides:function(){F.call(this),this.indicatorContainer.empty(),this.indicators=[];
},handleClick:function(J){var I=J.target||J.srcElement,K=I.parentNode;
if(K===this.indicatorContainer[0]){this.preventDefault(J),this.slide(this.getNodeIndex(I));
}else{if(K.parentNode!==this.indicatorContainer[0]){return E.call(this,J);
}this.preventDefault(J),this.slide(this.getNodeIndex(K));
}},handleSlide:function(I){D.call(this,I),this.setActiveIndicator(I);
},handleClose:function(){this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),C.call(this);
}}),A;
}),function(A){"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],A):A(window.blueimp.helper||window.jQuery,window.blueimp.Gallery);
}(function(B,A){B.extend(A.prototype.options,{videoContentClass:"video-content",videoLoadingClass:"video-loading",videoPlayingClass:"video-playing",videoPosterProperty:"poster",videoSourcesProperty:"sources"});
var C=A.prototype.handleSlide;
return B.extend(A.prototype,{handleSlide:function(D){C.call(this,D),this.playingVideo&&this.playingVideo.pause();
},videoFactory:function(V,U,T){var S,R,Q,P,O,N=this,M=this.options,L=this.elementPrototype.cloneNode(!1),K=B(L),J=[{type:"error",target:L}],I=T||document.createElement("video"),H=this.getItemProperty(V,M.urlProperty),G=this.getItemProperty(V,M.typeProperty),F=this.getItemProperty(V,M.titleProperty),E=this.getItemProperty(V,M.videoPosterProperty),D=this.getItemProperty(V,M.videoSourcesProperty);
if(K.addClass(M.videoContentClass),F&&(L.title=F),I.canPlayType){if(H&&G&&I.canPlayType(G)){I.src=H;
}else{for(;
D&&D.length;
){if(R=D.shift(),H=this.getItemProperty(R,M.urlProperty),G=this.getItemProperty(R,M.typeProperty),H&&G&&I.canPlayType(G)){I.src=H;
break;
}}}}return E&&(I.poster=E,S=this.imagePrototype.cloneNode(!1),B(S).addClass(M.toggleClass),S.src=E,S.draggable=!1,L.appendChild(S)),Q=document.createElement("a"),Q.setAttribute("target","_blank"),T||Q.setAttribute("download",F),Q.href=H,I.src&&(I.controls=!0,(T||B(I)).on("error",function(){N.setTimeout(U,J);
}).on("pause",function(){P=!1,K.removeClass(N.options.videoLoadingClass).removeClass(N.options.videoPlayingClass),O&&N.container.addClass(N.options.controlsClass),delete N.playingVideo,N.interval&&N.play();
}).on("playing",function(){P=!1,K.removeClass(N.options.videoLoadingClass).addClass(N.options.videoPlayingClass),N.container.hasClass(N.options.controlsClass)?(O=!0,N.container.removeClass(N.options.controlsClass)):O=!1;
}).on("play",function(){window.clearTimeout(N.timeout),P=!0,K.addClass(N.options.videoLoadingClass),N.playingVideo=I;
}),B(Q).on("click",function(W){N.preventDefault(W),P?I.pause():I.play();
}),L.appendChild(T&&T.element||I)),L.appendChild(Q),this.setTimeout(U,[{type:"load",target:L}]),L;
}}),A;
}),function(A){"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],A):A(window.blueimp.helper||window.jQuery,window.blueimp.Gallery);
}(function(B,A){if(!window.postMessage){return A;
}B.extend(A.prototype.options,{vimeoVideoIdProperty:"vimeo",vimeoPlayerUrl:"//player.vimeo.com/video/VIDEO_ID?api=1&player_id=PLAYER_ID",vimeoPlayerIdPrefix:"vimeo-player-",vimeoClickToPlay:!0});
var E=A.prototype.textFactory||A.prototype.imageFactory,D=function(G,F,I,H){this.url=G,this.videoId=F,this.playerId=I,this.clickToPlay=H,this.element=document.createElement("div"),this.listeners={};
},C=0;
return B.extend(D.prototype,{canPlayType:function(){return !0;
},on:function(G,F){return this.listeners[G]=F,this;
},loadAPI:function(){for(var F,L,K=this,J="//"+("https"===location.protocol?"secure-":"")+"a.vimeocdn.com/js/froogaloop2.min.js",I=document.getElementsByTagName("script"),H=I.length,G=function(){!L&&K.playOnReady&&K.play(),L=!0;
};
H;
){if(H-=1,I[H].src===J){F=I[H];
break;
}}F||(F=document.createElement("script"),F.src=J),B(F).on("load",G),I[0].parentNode.insertBefore(F,I[0]),/loaded|complete/.test(F.readyState)&&G();
},onReady:function(){var F=this;
this.ready=!0,this.player.addEvent("play",function(){F.hasPlayed=!0,F.onPlaying();
}),this.player.addEvent("pause",function(){F.onPause();
}),this.player.addEvent("finish",function(){F.onPause();
}),this.playOnReady&&this.play();
},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2);
},onPause:function(){this.listeners.pause(),delete this.playStatus;
},insertIframe:function(){var F=document.createElement("iframe");
F.src=this.url.replace("VIDEO_ID",this.videoId).replace("PLAYER_ID",this.playerId),F.id=this.playerId,this.element.parentNode.replaceChild(F,this.element),this.element=F;
},play:function(){var F=this;
this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.api("play"):(this.playOnReady=!0,window.$f?this.player||(this.insertIframe(),this.player=$f(this.element),this.player.addEvent("ready",function(){F.onReady();
})):this.loadAPI());
},pause:function(){this.ready?this.player.api("pause"):this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus);
}}),B.extend(A.prototype,{VimeoPlayer:D,textFactory:function(G,F){var H=this.getItemProperty(G,this.options.vimeoVideoIdProperty);
return H?(C+=1,this.videoFactory(G,F,new D(this.options.vimeoPlayerUrl,H,this.options.vimeoPlayerIdPrefix+C,this.options.vimeoClickToPlay))):E.call(this,G,F);
}}),A;
}),function(A){"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],A):A(window.blueimp.helper||window.jQuery,window.blueimp.Gallery);
}(function(B,A){if(!window.postMessage){return A;
}B.extend(A.prototype.options,{youTubeVideoIdProperty:"youtube",youTubePlayerVars:{wmode:"transparent"},youTubeClickToPlay:!0});
var D=A.prototype.textFactory||A.prototype.imageFactory,C=function(F,E,G){this.videoId=F,this.playerVars=E,this.clickToPlay=G,this.element=document.createElement("div"),this.listeners={};
};
return B.extend(C.prototype,{canPlayType:function(){return !0;
},on:function(F,E){return this.listeners[F]=E,this;
},loadAPI:function(){var F,E=this,J=window.onYouTubeIframeAPIReady,I="//www.youtube.com/iframe_api",H=document.getElementsByTagName("script"),G=H.length;
for(window.onYouTubeIframeAPIReady=function(){J&&J.apply(this),E.playOnReady&&E.play();
};
G;
){if(G-=1,H[G].src===I){return ;
}}F=document.createElement("script"),F.src=I,H[0].parentNode.insertBefore(F,H[0]);
},onReady:function(){this.ready=!0,this.playOnReady&&this.play();
},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2);
},onPause:function(){A.prototype.setTimeout.call(this,this.checkSeek,null,2000);
},checkSeek:function(){(this.stateChange===YT.PlayerState.PAUSED||this.stateChange===YT.PlayerState.ENDED)&&(this.listeners.pause(),delete this.playStatus);
},onStateChange:function(E){switch(E.data){case YT.PlayerState.PLAYING:this.hasPlayed=!0,this.onPlaying();
break;
case YT.PlayerState.PAUSED:case YT.PlayerState.ENDED:this.onPause();
}this.stateChange=E.data;
},onError:function(E){this.listeners.error(E);
},play:function(){var E=this;
this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.playVideo():(this.playOnReady=!0,window.YT&&YT.Player?this.player||(this.player=new YT.Player(this.element,{videoId:this.videoId,playerVars:this.playerVars,events:{onReady:function(){E.onReady();
},onStateChange:function(F){E.onStateChange(F);
},onError:function(F){E.onError(F);
}}})):this.loadAPI());
},pause:function(){this.ready?this.player.pauseVideo():this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus);
}}),B.extend(A.prototype,{YouTubePlayer:C,textFactory:function(F,E){var G=this.getItemProperty(F,this.options.youTubeVideoIdProperty);
return G?this.videoFactory(F,E,new C(G,this.options.youTubePlayerVars,this.options.youTubeClickToPlay)):D.call(this,F,E);
}}),A;
}),function(A){"function"==typeof define&&define.amd?define(["jquery","./blueimp-gallery"],A):A(window.jQuery,window.blueimp.Gallery);
}(function(B,A){B(document).on("click","[data-gallery]",function(I){var H=B(this).data("gallery"),G=B(H),F=G.length&&G||B(A.prototype.options.container),E={onopen:function(){F.data("gallery",this).trigger("open");
},onopened:function(){F.trigger("opened");
},onslide:function(){F.trigger("slide",arguments);
},onslideend:function(){F.trigger("slideend",arguments);
},onslidecomplete:function(){F.trigger("slidecomplete",arguments);
},onclose:function(){F.trigger("close");
},onclosed:function(){F.trigger("closed").removeData("gallery");
}},D=B.extend(F.data(),{container:F[0],index:this,event:I},E),C=B('[data-gallery="'+H+'"]');
return D.filter&&(C=C.filter(D.filter)),new A(C,D);
});
});
(function(window,document,undefined){(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory);
}else{if(jQuery&&!jQuery.fn.dataTable){factory(jQuery);
}}}(function($){var DataTable=function(oInit){function _fnAddColumn(oSettings,nTh){var oDefaults=DataTable.defaults.columns;
var iCol=oSettings.aoColumns.length;
var oCol=$.extend({},DataTable.models.oColumn,oDefaults,{sSortingClass:oSettings.oClasses.sSortable,sSortingClassJUI:oSettings.oClasses.sSortJUI,nTh:nTh?nTh:document.createElement("th"),sTitle:oDefaults.sTitle?oDefaults.sTitle:nTh?nTh.innerHTML:"",aDataSort:oDefaults.aDataSort?oDefaults.aDataSort:[iCol],mData:oDefaults.mData?oDefaults.oDefaults:iCol});
oSettings.aoColumns.push(oCol);
if(oSettings.aoPreSearchCols[iCol]===undefined||oSettings.aoPreSearchCols[iCol]===null){oSettings.aoPreSearchCols[iCol]=$.extend({},DataTable.models.oSearch);
}else{var oPre=oSettings.aoPreSearchCols[iCol];
if(oPre.bRegex===undefined){oPre.bRegex=true;
}if(oPre.bSmart===undefined){oPre.bSmart=true;
}if(oPre.bCaseInsensitive===undefined){oPre.bCaseInsensitive=true;
}}_fnColumnOptions(oSettings,iCol,null);
}function _fnColumnOptions(oSettings,iCol,oOptions){var oCol=oSettings.aoColumns[iCol];
if(oOptions!==undefined&&oOptions!==null){if(oOptions.mDataProp&&!oOptions.mData){oOptions.mData=oOptions.mDataProp;
}if(oOptions.sType!==undefined){oCol.sType=oOptions.sType;
oCol._bAutoType=false;
}$.extend(oCol,oOptions);
_fnMap(oCol,oOptions,"sWidth","sWidthOrig");
if(oOptions.iDataSort!==undefined){oCol.aDataSort=[oOptions.iDataSort];
}_fnMap(oCol,oOptions,"aDataSort");
}var mRender=oCol.mRender?_fnGetObjectDataFn(oCol.mRender):null;
var mData=_fnGetObjectDataFn(oCol.mData);
oCol.fnGetData=function(oData,sSpecific){var innerData=mData(oData,sSpecific);
if(oCol.mRender&&(sSpecific&&sSpecific!=="")){return mRender(innerData,sSpecific,oData);
}return innerData;
};
oCol.fnSetData=_fnSetObjectDataFn(oCol.mData);
if(!oSettings.oFeatures.bSort){oCol.bSortable=false;
}if(!oCol.bSortable||($.inArray("asc",oCol.asSorting)==-1&&$.inArray("desc",oCol.asSorting)==-1)){oCol.sSortingClass=oSettings.oClasses.sSortableNone;
oCol.sSortingClassJUI="";
}else{if($.inArray("asc",oCol.asSorting)==-1&&$.inArray("desc",oCol.asSorting)==-1){oCol.sSortingClass=oSettings.oClasses.sSortable;
oCol.sSortingClassJUI=oSettings.oClasses.sSortJUI;
}else{if($.inArray("asc",oCol.asSorting)!=-1&&$.inArray("desc",oCol.asSorting)==-1){oCol.sSortingClass=oSettings.oClasses.sSortableAsc;
oCol.sSortingClassJUI=oSettings.oClasses.sSortJUIAscAllowed;
}else{if($.inArray("asc",oCol.asSorting)==-1&&$.inArray("desc",oCol.asSorting)!=-1){oCol.sSortingClass=oSettings.oClasses.sSortableDesc;
oCol.sSortingClassJUI=oSettings.oClasses.sSortJUIDescAllowed;
}}}}}function _fnAdjustColumnSizing(oSettings){if(oSettings.oFeatures.bAutoWidth===false){return false;
}_fnCalculateColumnWidths(oSettings);
for(var i=0,iLen=oSettings.aoColumns.length;
i<iLen;
i++){oSettings.aoColumns[i].nTh.style.width=oSettings.aoColumns[i].sWidth;
}}function _fnVisibleToColumnIndex(oSettings,iMatch){var aiVis=_fnGetColumns(oSettings,"bVisible");
return typeof aiVis[iMatch]==="number"?aiVis[iMatch]:null;
}function _fnColumnIndexToVisible(oSettings,iMatch){var aiVis=_fnGetColumns(oSettings,"bVisible");
var iPos=$.inArray(iMatch,aiVis);
return iPos!==-1?iPos:null;
}function _fnVisbleColumns(oSettings){return _fnGetColumns(oSettings,"bVisible").length;
}function _fnGetColumns(oSettings,sParam){var a=[];
$.map(oSettings.aoColumns,function(val,i){if(val[sParam]){a.push(i);
}});
return a;
}function _fnDetectType(sData){var aTypes=DataTable.ext.aTypes;
var iLen=aTypes.length;
for(var i=0;
i<iLen;
i++){var sType=aTypes[i](sData);
if(sType!==null){return sType;
}}return"string";
}function _fnReOrderIndex(oSettings,sColumns){var aColumns=sColumns.split(",");
var aiReturn=[];
for(var i=0,iLen=oSettings.aoColumns.length;
i<iLen;
i++){for(var j=0;
j<iLen;
j++){if(oSettings.aoColumns[i].sName==aColumns[j]){aiReturn.push(j);
break;
}}}return aiReturn;
}function _fnColumnOrdering(oSettings){var sNames="";
for(var i=0,iLen=oSettings.aoColumns.length;
i<iLen;
i++){sNames+=oSettings.aoColumns[i].sName+",";
}if(sNames.length==iLen){return"";
}return sNames.slice(0,-1);
}function _fnApplyColumnDefs(oSettings,aoColDefs,aoCols,fn){var i,iLen,j,jLen,k,kLen;
if(aoColDefs){for(i=aoColDefs.length-1;
i>=0;
i--){var aTargets=aoColDefs[i].aTargets;
if(!$.isArray(aTargets)){_fnLog(oSettings,1,"aTargets must be an array of targets, not a "+(typeof aTargets));
}for(j=0,jLen=aTargets.length;
j<jLen;
j++){if(typeof aTargets[j]==="number"&&aTargets[j]>=0){while(oSettings.aoColumns.length<=aTargets[j]){_fnAddColumn(oSettings);
}fn(aTargets[j],aoColDefs[i]);
}else{if(typeof aTargets[j]==="number"&&aTargets[j]<0){fn(oSettings.aoColumns.length+aTargets[j],aoColDefs[i]);
}else{if(typeof aTargets[j]==="string"){for(k=0,kLen=oSettings.aoColumns.length;
k<kLen;
k++){if(aTargets[j]=="_all"||$(oSettings.aoColumns[k].nTh).hasClass(aTargets[j])){fn(k,aoColDefs[i]);
}}}}}}}}if(aoCols){for(i=0,iLen=aoCols.length;
i<iLen;
i++){fn(i,aoCols[i]);
}}}function _fnAddData(oSettings,aDataSupplied){var oCol;
var aDataIn=($.isArray(aDataSupplied))?aDataSupplied.slice():$.extend(true,{},aDataSupplied);
var iRow=oSettings.aoData.length;
var oData=$.extend(true,{},DataTable.models.oRow);
oData._aData=aDataIn;
oSettings.aoData.push(oData);
var nTd,sThisType;
for(var i=0,iLen=oSettings.aoColumns.length;
i<iLen;
i++){oCol=oSettings.aoColumns[i];
if(typeof oCol.fnRender==="function"&&oCol.bUseRendered&&oCol.mData!==null){_fnSetCellData(oSettings,iRow,i,_fnRender(oSettings,iRow,i));
}else{_fnSetCellData(oSettings,iRow,i,_fnGetCellData(oSettings,iRow,i));
}if(oCol._bAutoType&&oCol.sType!="string"){var sVarType=_fnGetCellData(oSettings,iRow,i,"type");
if(sVarType!==null&&sVarType!==""){sThisType=_fnDetectType(sVarType);
if(oCol.sType===null){oCol.sType=sThisType;
}else{if(oCol.sType!=sThisType&&oCol.sType!="html"){oCol.sType="string";
}}}}}oSettings.aiDisplayMaster.push(iRow);
if(!oSettings.oFeatures.bDeferRender){_fnCreateTr(oSettings,iRow);
}return iRow;
}function _fnGatherData(oSettings){var iLoop,i,iLen,j,jLen,jInner,nTds,nTrs,nTd,nTr,aLocalData,iThisIndex,iRow,iRows,iColumn,iColumns,sNodeName,oCol,oData;
if(oSettings.bDeferLoading||oSettings.sAjaxSource===null){nTr=oSettings.nTBody.firstChild;
while(nTr){if(nTr.nodeName.toUpperCase()=="TR"){iThisIndex=oSettings.aoData.length;
nTr._DT_RowIndex=iThisIndex;
oSettings.aoData.push($.extend(true,{},DataTable.models.oRow,{nTr:nTr}));
oSettings.aiDisplayMaster.push(iThisIndex);
nTd=nTr.firstChild;
jInner=0;
while(nTd){sNodeName=nTd.nodeName.toUpperCase();
if(sNodeName=="TD"||sNodeName=="TH"){_fnSetCellData(oSettings,iThisIndex,jInner,$.trim(nTd.innerHTML));
jInner++;
}nTd=nTd.nextSibling;
}}nTr=nTr.nextSibling;
}}nTrs=_fnGetTrNodes(oSettings);
nTds=[];
for(i=0,iLen=nTrs.length;
i<iLen;
i++){nTd=nTrs[i].firstChild;
while(nTd){sNodeName=nTd.nodeName.toUpperCase();
if(sNodeName=="TD"||sNodeName=="TH"){nTds.push(nTd);
}nTd=nTd.nextSibling;
}}for(iColumn=0,iColumns=oSettings.aoColumns.length;
iColumn<iColumns;
iColumn++){oCol=oSettings.aoColumns[iColumn];
if(oCol.sTitle===null){oCol.sTitle=oCol.nTh.innerHTML;
}var bAutoType=oCol._bAutoType,bRender=typeof oCol.fnRender==="function",bClass=oCol.sClass!==null,bVisible=oCol.bVisible,nCell,sThisType,sRendered,sValType;
if(bAutoType||bRender||bClass||!bVisible){for(iRow=0,iRows=oSettings.aoData.length;
iRow<iRows;
iRow++){oData=oSettings.aoData[iRow];
nCell=nTds[(iRow*iColumns)+iColumn];
if(bAutoType&&oCol.sType!="string"){sValType=_fnGetCellData(oSettings,iRow,iColumn,"type");
if(sValType!==""){sThisType=_fnDetectType(sValType);
if(oCol.sType===null){oCol.sType=sThisType;
}else{if(oCol.sType!=sThisType&&oCol.sType!="html"){oCol.sType="string";
}}}}if(oCol.mRender){nCell.innerHTML=_fnGetCellData(oSettings,iRow,iColumn,"display");
}else{if(oCol.mData!==iColumn){nCell.innerHTML=_fnGetCellData(oSettings,iRow,iColumn,"display");
}}if(bRender){sRendered=_fnRender(oSettings,iRow,iColumn);
nCell.innerHTML=sRendered;
if(oCol.bUseRendered){_fnSetCellData(oSettings,iRow,iColumn,sRendered);
}}if(bClass){nCell.className+=" "+oCol.sClass;
}if(!bVisible){oData._anHidden[iColumn]=nCell;
nCell.parentNode.removeChild(nCell);
}else{oData._anHidden[iColumn]=null;
}if(oCol.fnCreatedCell){oCol.fnCreatedCell.call(oSettings.oInstance,nCell,_fnGetCellData(oSettings,iRow,iColumn,"display"),oData._aData,iRow,iColumn);
}}}}if(oSettings.aoRowCreatedCallback.length!==0){for(i=0,iLen=oSettings.aoData.length;
i<iLen;
i++){oData=oSettings.aoData[i];
_fnCallbackFire(oSettings,"aoRowCreatedCallback",null,[oData.nTr,oData._aData,i]);
}}}function _fnNodeToDataIndex(oSettings,n){return(n._DT_RowIndex!==undefined)?n._DT_RowIndex:null;
}function _fnNodeToColumnIndex(oSettings,iRow,n){var anCells=_fnGetTdNodes(oSettings,iRow);
for(var i=0,iLen=oSettings.aoColumns.length;
i<iLen;
i++){if(anCells[i]===n){return i;
}}return -1;
}function _fnGetRowData(oSettings,iRow,sSpecific,aiColumns){var out=[];
for(var i=0,iLen=aiColumns.length;
i<iLen;
i++){out.push(_fnGetCellData(oSettings,iRow,aiColumns[i],sSpecific));
}return out;
}function _fnGetCellData(oSettings,iRow,iCol,sSpecific){var sData;
var oCol=oSettings.aoColumns[iCol];
var oData=oSettings.aoData[iRow]._aData;
if((sData=oCol.fnGetData(oData,sSpecific))===undefined){if(oSettings.iDrawError!=oSettings.iDraw&&oCol.sDefaultContent===null){_fnLog(oSettings,0,"Requested unknown parameter "+(typeof oCol.mData=="function"?"{mData function}":"'"+oCol.mData+"'")+" from the data source for row "+iRow);
oSettings.iDrawError=oSettings.iDraw;
}return oCol.sDefaultContent;
}if(sData===null&&oCol.sDefaultContent!==null){sData=oCol.sDefaultContent;
}else{if(typeof sData==="function"){return sData();
}}if(sSpecific=="display"&&sData===null){return"";
}return sData;
}function _fnSetCellData(oSettings,iRow,iCol,val){var oCol=oSettings.aoColumns[iCol];
var oData=oSettings.aoData[iRow]._aData;
oCol.fnSetData(oData,val);
}var __reArray=/\[.*?\]$/;
function _fnGetObjectDataFn(mSource){if(mSource===null){return function(data,type){return null;
};
}else{if(typeof mSource==="function"){return function(data,type,extra){return mSource(data,type,extra);
};
}else{if(typeof mSource==="string"&&(mSource.indexOf(".")!==-1||mSource.indexOf("[")!==-1)){var fetchData=function(data,type,src){var a=src.split(".");
var arrayNotation,out,innerSrc;
if(src!==""){for(var i=0,iLen=a.length;
i<iLen;
i++){arrayNotation=a[i].match(__reArray);
if(arrayNotation){a[i]=a[i].replace(__reArray,"");
if(a[i]!==""){data=data[a[i]];
}out=[];
a.splice(0,i+1);
innerSrc=a.join(".");
for(var j=0,jLen=data.length;
j<jLen;
j++){out.push(fetchData(data[j],type,innerSrc));
}var join=arrayNotation[0].substring(1,arrayNotation[0].length-1);
data=(join==="")?out:out.join(join);
break;
}if(data===null||data[a[i]]===undefined){return undefined;
}data=data[a[i]];
}}return data;
};
return function(data,type){return fetchData(data,type,mSource);
};
}else{return function(data,type){return data[mSource];
};
}}}}function _fnSetObjectDataFn(mSource){if(mSource===null){return function(data,val){};
}else{if(typeof mSource==="function"){return function(data,val){mSource(data,"set",val);
};
}else{if(typeof mSource==="string"&&(mSource.indexOf(".")!==-1||mSource.indexOf("[")!==-1)){var setData=function(data,val,src){var a=src.split("."),b;
var arrayNotation,o,innerSrc;
for(var i=0,iLen=a.length-1;
i<iLen;
i++){arrayNotation=a[i].match(__reArray);
if(arrayNotation){a[i]=a[i].replace(__reArray,"");
data[a[i]]=[];
b=a.slice();
b.splice(0,i+1);
innerSrc=b.join(".");
for(var j=0,jLen=val.length;
j<jLen;
j++){o={};
setData(o,val[j],innerSrc);
data[a[i]].push(o);
}return ;
}if(data[a[i]]===null||data[a[i]]===undefined){data[a[i]]={};
}data=data[a[i]];
}data[a[a.length-1].replace(__reArray,"")]=val;
};
return function(data,val){return setData(data,val,mSource);
};
}else{return function(data,val){data[mSource]=val;
};
}}}}function _fnGetDataMaster(oSettings){var aData=[];
var iLen=oSettings.aoData.length;
for(var i=0;
i<iLen;
i++){aData.push(oSettings.aoData[i]._aData);
}return aData;
}function _fnClearTable(oSettings){oSettings.aoData.splice(0,oSettings.aoData.length);
oSettings.aiDisplayMaster.splice(0,oSettings.aiDisplayMaster.length);
oSettings.aiDisplay.splice(0,oSettings.aiDisplay.length);
_fnCalculateEnd(oSettings);
}function _fnDeleteIndex(a,iTarget){var iTargetIndex=-1;
for(var i=0,iLen=a.length;
i<iLen;
i++){if(a[i]==iTarget){iTargetIndex=i;
}else{if(a[i]>iTarget){a[i]--;
}}}if(iTargetIndex!=-1){a.splice(iTargetIndex,1);
}}function _fnRender(oSettings,iRow,iCol){var oCol=oSettings.aoColumns[iCol];
return oCol.fnRender({iDataRow:iRow,iDataColumn:iCol,oSettings:oSettings,aData:oSettings.aoData[iRow]._aData,mDataProp:oCol.mData},_fnGetCellData(oSettings,iRow,iCol,"display"));
}function _fnCreateTr(oSettings,iRow){var oData=oSettings.aoData[iRow];
var nTd;
if(oData.nTr===null){oData.nTr=document.createElement("tr");
oData.nTr._DT_RowIndex=iRow;
if(oData._aData.DT_RowId){oData.nTr.id=oData._aData.DT_RowId;
}if(oData._aData.DT_RowClass){oData.nTr.className=oData._aData.DT_RowClass;
}for(var i=0,iLen=oSettings.aoColumns.length;
i<iLen;
i++){var oCol=oSettings.aoColumns[i];
nTd=document.createElement(oCol.sCellType);
nTd.innerHTML=(typeof oCol.fnRender==="function"&&(!oCol.bUseRendered||oCol.mData===null))?_fnRender(oSettings,iRow,i):_fnGetCellData(oSettings,iRow,i,"display");
if(oCol.sClass!==null){nTd.className=oCol.sClass;
}if(oCol.bVisible){oData.nTr.appendChild(nTd);
oData._anHidden[i]=null;
}else{oData._anHidden[i]=nTd;
}if(oCol.fnCreatedCell){oCol.fnCreatedCell.call(oSettings.oInstance,nTd,_fnGetCellData(oSettings,iRow,i,"display"),oData._aData,iRow,i);
}}_fnCallbackFire(oSettings,"aoRowCreatedCallback",null,[oData.nTr,oData._aData,iRow]);
}}function _fnBuildHead(oSettings){var i,nTh,iLen,j,jLen;
var iThs=$("th, td",oSettings.nTHead).length;
var iCorrector=0;
var jqChildren;
if(iThs!==0){for(i=0,iLen=oSettings.aoColumns.length;
i<iLen;
i++){nTh=oSettings.aoColumns[i].nTh;
nTh.setAttribute("role","columnheader");
if(oSettings.aoColumns[i].bSortable){nTh.setAttribute("tabindex",oSettings.iTabIndex);
nTh.setAttribute("aria-controls",oSettings.sTableId);
}if(oSettings.aoColumns[i].sClass!==null){$(nTh).addClass(oSettings.aoColumns[i].sClass);
}if(oSettings.aoColumns[i].sTitle!=nTh.innerHTML){nTh.innerHTML=oSettings.aoColumns[i].sTitle;
}}}else{var nTr=document.createElement("tr");
for(i=0,iLen=oSettings.aoColumns.length;
i<iLen;
i++){nTh=oSettings.aoColumns[i].nTh;
nTh.innerHTML=oSettings.aoColumns[i].sTitle;
nTh.setAttribute("tabindex","0");
if(oSettings.aoColumns[i].sClass!==null){$(nTh).addClass(oSettings.aoColumns[i].sClass);
}nTr.appendChild(nTh);
}$(oSettings.nTHead).html("")[0].appendChild(nTr);
_fnDetectHeader(oSettings.aoHeader,oSettings.nTHead);
}$(oSettings.nTHead).children("tr").attr("role","row");
if(oSettings.bJUI){for(i=0,iLen=oSettings.aoColumns.length;
i<iLen;
i++){nTh=oSettings.aoColumns[i].nTh;
var nDiv=document.createElement("div");
nDiv.className=oSettings.oClasses.sSortJUIWrapper;
$(nTh).contents().appendTo(nDiv);
var nSpan=document.createElement("span");
nSpan.className=oSettings.oClasses.sSortIcon;
nDiv.appendChild(nSpan);
nTh.appendChild(nDiv);
}}if(oSettings.oFeatures.bSort){for(i=0;
i<oSettings.aoColumns.length;
i++){if(oSettings.aoColumns[i].bSortable!==false){_fnSortAttachListener(oSettings,oSettings.aoColumns[i].nTh,i);
}else{$(oSettings.aoColumns[i].nTh).addClass(oSettings.oClasses.sSortableNone);
}}}if(oSettings.oClasses.sFooterTH!==""){$(oSettings.nTFoot).children("tr").children("th").addClass(oSettings.oClasses.sFooterTH);
}if(oSettings.nTFoot!==null){var anCells=_fnGetUniqueThs(oSettings,null,oSettings.aoFooter);
for(i=0,iLen=oSettings.aoColumns.length;
i<iLen;
i++){if(anCells[i]){oSettings.aoColumns[i].nTf=anCells[i];
if(oSettings.aoColumns[i].sClass){$(anCells[i]).addClass(oSettings.aoColumns[i].sClass);
}}}}}function _fnDrawHead(oSettings,aoSource,bIncludeHidden){var i,iLen,j,jLen,k,kLen,n,nLocalTr;
var aoLocal=[];
var aApplied=[];
var iColumns=oSettings.aoColumns.length;
var iRowspan,iColspan;
if(bIncludeHidden===undefined){bIncludeHidden=false;
}for(i=0,iLen=aoSource.length;
i<iLen;
i++){aoLocal[i]=aoSource[i].slice();
aoLocal[i].nTr=aoSource[i].nTr;
for(j=iColumns-1;
j>=0;
j--){if(!oSettings.aoColumns[j].bVisible&&!bIncludeHidden){aoLocal[i].splice(j,1);
}}aApplied.push([]);
}for(i=0,iLen=aoLocal.length;
i<iLen;
i++){nLocalTr=aoLocal[i].nTr;
if(nLocalTr){while((n=nLocalTr.firstChild)){nLocalTr.removeChild(n);
}}for(j=0,jLen=aoLocal[i].length;
j<jLen;
j++){iRowspan=1;
iColspan=1;
if(aApplied[i][j]===undefined){nLocalTr.appendChild(aoLocal[i][j].cell);
aApplied[i][j]=1;
while(aoLocal[i+iRowspan]!==undefined&&aoLocal[i][j].cell==aoLocal[i+iRowspan][j].cell){aApplied[i+iRowspan][j]=1;
iRowspan++;
}while(aoLocal[i][j+iColspan]!==undefined&&aoLocal[i][j].cell==aoLocal[i][j+iColspan].cell){for(k=0;
k<iRowspan;
k++){aApplied[i+k][j+iColspan]=1;
}iColspan++;
}aoLocal[i][j].cell.rowSpan=iRowspan;
aoLocal[i][j].cell.colSpan=iColspan;
}}}}function _fnDraw(oSettings){var aPreDraw=_fnCallbackFire(oSettings,"aoPreDrawCallback","preDraw",[oSettings]);
if($.inArray(false,aPreDraw)!==-1){_fnProcessingDisplay(oSettings,false);
return ;
}var i,iLen,n;
var anRows=[];
var iRowCount=0;
var iStripes=oSettings.asStripeClasses.length;
var iOpenRows=oSettings.aoOpenRows.length;
oSettings.bDrawing=true;
if(oSettings.iInitDisplayStart!==undefined&&oSettings.iInitDisplayStart!=-1){if(oSettings.oFeatures.bServerSide){oSettings._iDisplayStart=oSettings.iInitDisplayStart;
}else{oSettings._iDisplayStart=(oSettings.iInitDisplayStart>=oSettings.fnRecordsDisplay())?0:oSettings.iInitDisplayStart;
}oSettings.iInitDisplayStart=-1;
_fnCalculateEnd(oSettings);
}if(oSettings.bDeferLoading){oSettings.bDeferLoading=false;
oSettings.iDraw++;
}else{if(!oSettings.oFeatures.bServerSide){oSettings.iDraw++;
}else{if(!oSettings.bDestroying&&!_fnAjaxUpdate(oSettings)){return ;
}}}if(oSettings.aiDisplay.length!==0){var iStart=oSettings._iDisplayStart;
var iEnd=oSettings._iDisplayEnd;
if(oSettings.oFeatures.bServerSide){iStart=0;
iEnd=oSettings.aoData.length;
}for(var j=iStart;
j<iEnd;
j++){var aoData=oSettings.aoData[oSettings.aiDisplay[j]];
if(aoData.nTr===null){_fnCreateTr(oSettings,oSettings.aiDisplay[j]);
}var nRow=aoData.nTr;
if(iStripes!==0){var sStripe=oSettings.asStripeClasses[iRowCount%iStripes];
if(aoData._sRowStripe!=sStripe){$(nRow).removeClass(aoData._sRowStripe).addClass(sStripe);
aoData._sRowStripe=sStripe;
}}_fnCallbackFire(oSettings,"aoRowCallback",null,[nRow,oSettings.aoData[oSettings.aiDisplay[j]]._aData,iRowCount,j]);
anRows.push(nRow);
iRowCount++;
if(iOpenRows!==0){for(var k=0;
k<iOpenRows;
k++){if(nRow==oSettings.aoOpenRows[k].nParent){anRows.push(oSettings.aoOpenRows[k].nTr);
break;
}}}}}else{anRows[0]=document.createElement("tr");
if(oSettings.asStripeClasses[0]){anRows[0].className=oSettings.asStripeClasses[0];
}var oLang=oSettings.oLanguage;
var sZero=oLang.sZeroRecords;
if(oSettings.iDraw==1&&oSettings.sAjaxSource!==null&&!oSettings.oFeatures.bServerSide){sZero=oLang.sLoadingRecords;
}else{if(oLang.sEmptyTable&&oSettings.fnRecordsTotal()===0){sZero=oLang.sEmptyTable;
}}var nTd=document.createElement("td");
nTd.setAttribute("valign","top");
nTd.colSpan=_fnVisbleColumns(oSettings);
nTd.className=oSettings.oClasses.sRowEmpty;
nTd.innerHTML=_fnInfoMacros(oSettings,sZero);
anRows[iRowCount].appendChild(nTd);
}_fnCallbackFire(oSettings,"aoHeaderCallback","header",[$(oSettings.nTHead).children("tr")[0],_fnGetDataMaster(oSettings),oSettings._iDisplayStart,oSettings.fnDisplayEnd(),oSettings.aiDisplay]);
_fnCallbackFire(oSettings,"aoFooterCallback","footer",[$(oSettings.nTFoot).children("tr")[0],_fnGetDataMaster(oSettings),oSettings._iDisplayStart,oSettings.fnDisplayEnd(),oSettings.aiDisplay]);
var nAddFrag=document.createDocumentFragment(),nRemoveFrag=document.createDocumentFragment(),nBodyPar,nTrs;
if(oSettings.nTBody){nBodyPar=oSettings.nTBody.parentNode;
nRemoveFrag.appendChild(oSettings.nTBody);
if(!oSettings.oScroll.bInfinite||!oSettings._bInitComplete||oSettings.bSorted||oSettings.bFiltered){while((n=oSettings.nTBody.firstChild)){oSettings.nTBody.removeChild(n);
}}for(i=0,iLen=anRows.length;
i<iLen;
i++){nAddFrag.appendChild(anRows[i]);
}oSettings.nTBody.appendChild(nAddFrag);
if(nBodyPar!==null){nBodyPar.appendChild(oSettings.nTBody);
}}_fnCallbackFire(oSettings,"aoDrawCallback","draw",[oSettings]);
oSettings.bSorted=false;
oSettings.bFiltered=false;
oSettings.bDrawing=false;
if(oSettings.oFeatures.bServerSide){_fnProcessingDisplay(oSettings,false);
if(!oSettings._bInitComplete){_fnInitComplete(oSettings);
}}}function _fnReDraw(oSettings){if(oSettings.oFeatures.bSort){_fnSort(oSettings,oSettings.oPreviousSearch);
}else{if(oSettings.oFeatures.bFilter){_fnFilterComplete(oSettings,oSettings.oPreviousSearch);
}else{_fnCalculateEnd(oSettings);
_fnDraw(oSettings);
}}}function _fnAddOptionsHtml(oSettings){var nHolding=$("<div></div>")[0];
oSettings.nTable.parentNode.insertBefore(nHolding,oSettings.nTable);
oSettings.nTableWrapper=$('<div id="'+oSettings.sTableId+'_wrapper" class="'+oSettings.oClasses.sWrapper+'" role="grid"></div>')[0];
oSettings.nTableReinsertBefore=oSettings.nTable.nextSibling;
var nInsertNode=oSettings.nTableWrapper;
var aDom=oSettings.sDom.split("");
var nTmp,iPushFeature,cOption,nNewNode,cNext,sAttr,j;
for(var i=0;
i<aDom.length;
i++){iPushFeature=0;
cOption=aDom[i];
if(cOption=="<"){nNewNode=$("<div></div>")[0];
cNext=aDom[i+1];
if(cNext=="'"||cNext=='"'){sAttr="";
j=2;
while(aDom[i+j]!=cNext){sAttr+=aDom[i+j];
j++;
}if(sAttr=="H"){sAttr=oSettings.oClasses.sJUIHeader;
}else{if(sAttr=="F"){sAttr=oSettings.oClasses.sJUIFooter;
}}if(sAttr.indexOf(".")!=-1){var aSplit=sAttr.split(".");
nNewNode.id=aSplit[0].substr(1,aSplit[0].length-1);
nNewNode.className=aSplit[1];
}else{if(sAttr.charAt(0)=="#"){nNewNode.id=sAttr.substr(1,sAttr.length-1);
}else{nNewNode.className=sAttr;
}}i+=j;
}nInsertNode.appendChild(nNewNode);
nInsertNode=nNewNode;
}else{if(cOption==">"){nInsertNode=nInsertNode.parentNode;
}else{if(cOption=="l"&&oSettings.oFeatures.bPaginate&&oSettings.oFeatures.bLengthChange){nTmp=_fnFeatureHtmlLength(oSettings);
iPushFeature=1;
}else{if(cOption=="f"&&oSettings.oFeatures.bFilter){nTmp=_fnFeatureHtmlFilter(oSettings);
iPushFeature=1;
}else{if(cOption=="r"&&oSettings.oFeatures.bProcessing){nTmp=_fnFeatureHtmlProcessing(oSettings);
iPushFeature=1;
}else{if(cOption=="t"){nTmp=_fnFeatureHtmlTable(oSettings);
iPushFeature=1;
}else{if(cOption=="i"&&oSettings.oFeatures.bInfo){nTmp=_fnFeatureHtmlInfo(oSettings);
iPushFeature=1;
}else{if(cOption=="p"&&oSettings.oFeatures.bPaginate){nTmp=_fnFeatureHtmlPaginate(oSettings);
iPushFeature=1;
}else{if(DataTable.ext.aoFeatures.length!==0){var aoFeatures=DataTable.ext.aoFeatures;
for(var k=0,kLen=aoFeatures.length;
k<kLen;
k++){if(cOption==aoFeatures[k].cFeature){nTmp=aoFeatures[k].fnInit(oSettings);
if(nTmp){iPushFeature=1;
}break;
}}}}}}}}}}}if(iPushFeature==1&&nTmp!==null){if(typeof oSettings.aanFeatures[cOption]!=="object"){oSettings.aanFeatures[cOption]=[];
}oSettings.aanFeatures[cOption].push(nTmp);
nInsertNode.appendChild(nTmp);
}}nHolding.parentNode.replaceChild(oSettings.nTableWrapper,nHolding);
}function _fnDetectHeader(aLayout,nThead){var nTrs=$(nThead).children("tr");
var nTr,nCell;
var i,k,l,iLen,jLen,iColShifted,iColumn,iColspan,iRowspan;
var bUnique;
var fnShiftCol=function(a,i,j){var k=a[i];
while(k[j]){j++;
}return j;
};
aLayout.splice(0,aLayout.length);
for(i=0,iLen=nTrs.length;
i<iLen;
i++){aLayout.push([]);
}for(i=0,iLen=nTrs.length;
i<iLen;
i++){nTr=nTrs[i];
iColumn=0;
nCell=nTr.firstChild;
while(nCell){if(nCell.nodeName.toUpperCase()=="TD"||nCell.nodeName.toUpperCase()=="TH"){iColspan=nCell.getAttribute("colspan")*1;
iRowspan=nCell.getAttribute("rowspan")*1;
iColspan=(!iColspan||iColspan===0||iColspan===1)?1:iColspan;
iRowspan=(!iRowspan||iRowspan===0||iRowspan===1)?1:iRowspan;
iColShifted=fnShiftCol(aLayout,i,iColumn);
bUnique=iColspan===1?true:false;
for(l=0;
l<iColspan;
l++){for(k=0;
k<iRowspan;
k++){aLayout[i+k][iColShifted+l]={cell:nCell,unique:bUnique};
aLayout[i+k].nTr=nTr;
}}}nCell=nCell.nextSibling;
}}}function _fnGetUniqueThs(oSettings,nHeader,aLayout){var aReturn=[];
if(!aLayout){aLayout=oSettings.aoHeader;
if(nHeader){aLayout=[];
_fnDetectHeader(aLayout,nHeader);
}}for(var i=0,iLen=aLayout.length;
i<iLen;
i++){for(var j=0,jLen=aLayout[i].length;
j<jLen;
j++){if(aLayout[i][j].unique&&(!aReturn[j]||!oSettings.bSortCellsTop)){aReturn[j]=aLayout[i][j].cell;
}}}return aReturn;
}function _fnAjaxUpdate(oSettings){if(oSettings.bAjaxDataGet){oSettings.iDraw++;
_fnProcessingDisplay(oSettings,true);
var iColumns=oSettings.aoColumns.length;
var aoData=_fnAjaxParameters(oSettings);
_fnServerParams(oSettings,aoData);
oSettings.fnServerData.call(oSettings.oInstance,oSettings.sAjaxSource,aoData,function(json){_fnAjaxUpdateDraw(oSettings,json);
},oSettings);
return false;
}else{return true;
}}function _fnAjaxParameters(oSettings){var iColumns=oSettings.aoColumns.length;
var aoData=[],mDataProp,aaSort,aDataSort;
var i,j;
aoData.push({name:"sEcho",value:oSettings.iDraw});
aoData.push({name:"iColumns",value:iColumns});
aoData.push({name:"sColumns",value:_fnColumnOrdering(oSettings)});
aoData.push({name:"iDisplayStart",value:oSettings._iDisplayStart});
aoData.push({name:"iDisplayLength",value:oSettings.oFeatures.bPaginate!==false?oSettings._iDisplayLength:-1});
for(i=0;
i<iColumns;
i++){mDataProp=oSettings.aoColumns[i].mData;
aoData.push({name:"mDataProp_"+i,value:typeof (mDataProp)==="function"?"function":mDataProp});
}if(oSettings.oFeatures.bFilter!==false){aoData.push({name:"sSearch",value:oSettings.oPreviousSearch.sSearch});
aoData.push({name:"bRegex",value:oSettings.oPreviousSearch.bRegex});
for(i=0;
i<iColumns;
i++){aoData.push({name:"sSearch_"+i,value:oSettings.aoPreSearchCols[i].sSearch});
aoData.push({name:"bRegex_"+i,value:oSettings.aoPreSearchCols[i].bRegex});
aoData.push({name:"bSearchable_"+i,value:oSettings.aoColumns[i].bSearchable});
}}if(oSettings.oFeatures.bSort!==false){var iCounter=0;
aaSort=(oSettings.aaSortingFixed!==null)?oSettings.aaSortingFixed.concat(oSettings.aaSorting):oSettings.aaSorting.slice();
for(i=0;
i<aaSort.length;
i++){aDataSort=oSettings.aoColumns[aaSort[i][0]].aDataSort;
for(j=0;
j<aDataSort.length;
j++){aoData.push({name:"iSortCol_"+iCounter,value:aDataSort[j]});
aoData.push({name:"sSortDir_"+iCounter,value:aaSort[i][1]});
iCounter++;
}}aoData.push({name:"iSortingCols",value:iCounter});
for(i=0;
i<iColumns;
i++){aoData.push({name:"bSortable_"+i,value:oSettings.aoColumns[i].bSortable});
}}return aoData;
}function _fnServerParams(oSettings,aoData){_fnCallbackFire(oSettings,"aoServerParams","serverParams",[aoData]);
}function _fnAjaxUpdateDraw(oSettings,json){if(json.sEcho!==undefined){if(json.sEcho*1<oSettings.iDraw){return ;
}else{oSettings.iDraw=json.sEcho*1;
}}if(!oSettings.oScroll.bInfinite||(oSettings.oScroll.bInfinite&&(oSettings.bSorted||oSettings.bFiltered))){_fnClearTable(oSettings);
}oSettings._iRecordsTotal=parseInt(json.iTotalRecords,10);
oSettings._iRecordsDisplay=parseInt(json.iTotalDisplayRecords,10);
var sOrdering=_fnColumnOrdering(oSettings);
var bReOrder=(json.sColumns!==undefined&&sOrdering!==""&&json.sColumns!=sOrdering);
var aiIndex;
if(bReOrder){aiIndex=_fnReOrderIndex(oSettings,json.sColumns);
}var aData=_fnGetObjectDataFn(oSettings.sAjaxDataProp)(json);
for(var i=0,iLen=aData.length;
i<iLen;
i++){if(bReOrder){var aDataSorted=[];
for(var j=0,jLen=oSettings.aoColumns.length;
j<jLen;
j++){aDataSorted.push(aData[i][aiIndex[j]]);
}_fnAddData(oSettings,aDataSorted);
}else{_fnAddData(oSettings,aData[i]);
}}oSettings.aiDisplay=oSettings.aiDisplayMaster.slice();
oSettings.bAjaxDataGet=false;
_fnDraw(oSettings);
oSettings.bAjaxDataGet=true;
_fnProcessingDisplay(oSettings,false);
}function _fnFeatureHtmlFilter(oSettings){var oPreviousSearch=oSettings.oPreviousSearch;
var sSearchStr=oSettings.oLanguage.sSearch;
sSearchStr=(sSearchStr.indexOf("_INPUT_")!==-1)?sSearchStr.replace("_INPUT_",'<input type="text" />'):sSearchStr===""?'<input type="text" />':sSearchStr+' <input type="text" />';
var nFilter=document.createElement("div");
nFilter.className=oSettings.oClasses.sFilter;
nFilter.innerHTML="<label>"+sSearchStr+"</label>";
if(!oSettings.aanFeatures.f){nFilter.id=oSettings.sTableId+"_filter";
}var jqFilter=$('input[type="text"]',nFilter);
nFilter._DT_Input=jqFilter[0];
jqFilter.val(oPreviousSearch.sSearch.replace('"',"&quot;"));
jqFilter.bind("keyup.DT",function(e){var n=oSettings.aanFeatures.f;
var val=this.value===""?"":this.value;
for(var i=0,iLen=n.length;
i<iLen;
i++){if(n[i]!=$(this).parents("div.dataTables_filter")[0]){$(n[i]._DT_Input).val(val);
}}if(val!=oPreviousSearch.sSearch){_fnFilterComplete(oSettings,{sSearch:val,bRegex:oPreviousSearch.bRegex,bSmart:oPreviousSearch.bSmart,bCaseInsensitive:oPreviousSearch.bCaseInsensitive});
}});
jqFilter.attr("aria-controls",oSettings.sTableId).attr("class","form-control").bind("keypress.DT",function(e){if(e.keyCode==13){return false;
}});
return nFilter;
}function _fnFilterComplete(oSettings,oInput,iForce){var oPrevSearch=oSettings.oPreviousSearch;
var aoPrevSearch=oSettings.aoPreSearchCols;
var fnSaveFilter=function(oFilter){oPrevSearch.sSearch=oFilter.sSearch;
oPrevSearch.bRegex=oFilter.bRegex;
oPrevSearch.bSmart=oFilter.bSmart;
oPrevSearch.bCaseInsensitive=oFilter.bCaseInsensitive;
};
if(!oSettings.oFeatures.bServerSide){_fnFilter(oSettings,oInput.sSearch,iForce,oInput.bRegex,oInput.bSmart,oInput.bCaseInsensitive);
fnSaveFilter(oInput);
for(var i=0;
i<oSettings.aoPreSearchCols.length;
i++){_fnFilterColumn(oSettings,aoPrevSearch[i].sSearch,i,aoPrevSearch[i].bRegex,aoPrevSearch[i].bSmart,aoPrevSearch[i].bCaseInsensitive);
}_fnFilterCustom(oSettings);
}else{fnSaveFilter(oInput);
}oSettings.bFiltered=true;
$(oSettings.oInstance).trigger("filter",oSettings);
oSettings._iDisplayStart=0;
_fnCalculateEnd(oSettings);
_fnDraw(oSettings);
_fnBuildSearchArray(oSettings,0);
}function _fnFilterCustom(oSettings){var afnFilters=DataTable.ext.afnFiltering;
var aiFilterColumns=_fnGetColumns(oSettings,"bSearchable");
for(var i=0,iLen=afnFilters.length;
i<iLen;
i++){var iCorrector=0;
for(var j=0,jLen=oSettings.aiDisplay.length;
j<jLen;
j++){var iDisIndex=oSettings.aiDisplay[j-iCorrector];
var bTest=afnFilters[i](oSettings,_fnGetRowData(oSettings,iDisIndex,"filter",aiFilterColumns),iDisIndex);
if(!bTest){oSettings.aiDisplay.splice(j-iCorrector,1);
iCorrector++;
}}}}function _fnFilterColumn(oSettings,sInput,iColumn,bRegex,bSmart,bCaseInsensitive){if(sInput===""){return ;
}var iIndexCorrector=0;
var rpSearch=_fnFilterCreateSearch(sInput,bRegex,bSmart,bCaseInsensitive);
for(var i=oSettings.aiDisplay.length-1;
i>=0;
i--){var sData=_fnDataToSearch(_fnGetCellData(oSettings,oSettings.aiDisplay[i],iColumn,"filter"),oSettings.aoColumns[iColumn].sType);
if(!rpSearch.test(sData)){oSettings.aiDisplay.splice(i,1);
iIndexCorrector++;
}}}function _fnFilter(oSettings,sInput,iForce,bRegex,bSmart,bCaseInsensitive){var i;
var rpSearch=_fnFilterCreateSearch(sInput,bRegex,bSmart,bCaseInsensitive);
var oPrevSearch=oSettings.oPreviousSearch;
if(!iForce){iForce=0;
}if(DataTable.ext.afnFiltering.length!==0){iForce=1;
}if(sInput.length<=0){oSettings.aiDisplay.splice(0,oSettings.aiDisplay.length);
oSettings.aiDisplay=oSettings.aiDisplayMaster.slice();
}else{if(oSettings.aiDisplay.length==oSettings.aiDisplayMaster.length||oPrevSearch.sSearch.length>sInput.length||iForce==1||sInput.indexOf(oPrevSearch.sSearch)!==0){oSettings.aiDisplay.splice(0,oSettings.aiDisplay.length);
_fnBuildSearchArray(oSettings,1);
for(i=0;
i<oSettings.aiDisplayMaster.length;
i++){if(rpSearch.test(oSettings.asDataSearch[i])){oSettings.aiDisplay.push(oSettings.aiDisplayMaster[i]);
}}}else{var iIndexCorrector=0;
for(i=0;
i<oSettings.asDataSearch.length;
i++){if(!rpSearch.test(oSettings.asDataSearch[i])){oSettings.aiDisplay.splice(i-iIndexCorrector,1);
iIndexCorrector++;
}}}}}function _fnBuildSearchArray(oSettings,iMaster){if(!oSettings.oFeatures.bServerSide){oSettings.asDataSearch=[];
var aiFilterColumns=_fnGetColumns(oSettings,"bSearchable");
var aiIndex=(iMaster===1)?oSettings.aiDisplayMaster:oSettings.aiDisplay;
for(var i=0,iLen=aiIndex.length;
i<iLen;
i++){oSettings.asDataSearch[i]=_fnBuildSearchRow(oSettings,_fnGetRowData(oSettings,aiIndex[i],"filter",aiFilterColumns));
}}}function _fnBuildSearchRow(oSettings,aData){var sSearch=aData.join("  ");
if(sSearch.indexOf("&")!==-1){sSearch=$("<div>").html(sSearch).text();
}return sSearch.replace(/[\n\r]/g," ");
}function _fnFilterCreateSearch(sSearch,bRegex,bSmart,bCaseInsensitive){var asSearch,sRegExpString;
if(bSmart){asSearch=bRegex?sSearch.split(" "):_fnEscapeRegex(sSearch).split(" ");
sRegExpString="^(?=.*?"+asSearch.join(")(?=.*?")+").*$";
return new RegExp(sRegExpString,bCaseInsensitive?"i":"");
}else{sSearch=bRegex?sSearch:_fnEscapeRegex(sSearch);
return new RegExp(sSearch,bCaseInsensitive?"i":"");
}}function _fnDataToSearch(sData,sType){if(typeof DataTable.ext.ofnSearch[sType]==="function"){return DataTable.ext.ofnSearch[sType](sData);
}else{if(sData===null){return"";
}else{if(sType=="html"){return sData.replace(/[\r\n]/g," ").replace(/<.*?>/g,"");
}else{if(typeof sData==="string"){return sData.replace(/[\r\n]/g," ");
}}}}return sData;
}function _fnEscapeRegex(sVal){var acEscape=["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"];
var reReplace=new RegExp("(\\"+acEscape.join("|\\")+")","g");
return sVal.replace(reReplace,"\\$1");
}function _fnFeatureHtmlInfo(oSettings){var nInfo=document.createElement("div");
nInfo.className=oSettings.oClasses.sInfo;
if(!oSettings.aanFeatures.i){oSettings.aoDrawCallback.push({fn:_fnUpdateInfo,sName:"information"});
nInfo.id=oSettings.sTableId+"_info";
}oSettings.nTable.setAttribute("aria-describedby",oSettings.sTableId+"_info");
return nInfo;
}function _fnUpdateInfo(oSettings){if(!oSettings.oFeatures.bInfo||oSettings.aanFeatures.i.length===0){return ;
}var oLang=oSettings.oLanguage,iStart=oSettings._iDisplayStart+1,iEnd=oSettings.fnDisplayEnd(),iMax=oSettings.fnRecordsTotal(),iTotal=oSettings.fnRecordsDisplay(),sOut;
if(iTotal===0){sOut=oLang.sInfoEmpty;
}else{sOut=oLang.sInfo;
}if(iTotal!=iMax){sOut+=" "+oLang.sInfoFiltered;
}sOut+=oLang.sInfoPostFix;
sOut=_fnInfoMacros(oSettings,sOut);
if(oLang.fnInfoCallback!==null){sOut=oLang.fnInfoCallback.call(oSettings.oInstance,oSettings,iStart,iEnd,iMax,iTotal,sOut);
}var n=oSettings.aanFeatures.i;
for(var i=0,iLen=n.length;
i<iLen;
i++){$(n[i]).html(sOut);
}}function _fnInfoMacros(oSettings,str){var iStart=oSettings._iDisplayStart+1,sStart=oSettings.fnFormatNumber(iStart),iEnd=oSettings.fnDisplayEnd(),sEnd=oSettings.fnFormatNumber(iEnd),iTotal=oSettings.fnRecordsDisplay(),sTotal=oSettings.fnFormatNumber(iTotal),iMax=oSettings.fnRecordsTotal(),sMax=oSettings.fnFormatNumber(iMax);
if(oSettings.oScroll.bInfinite){sStart=oSettings.fnFormatNumber(1);
}return str.replace(/_START_/g,sStart).replace(/_END_/g,sEnd).replace(/_TOTAL_/g,sTotal).replace(/_MAX_/g,sMax);
}function _fnInitialise(oSettings){var i,iLen,iAjaxStart=oSettings.iInitDisplayStart;
if(oSettings.bInitialised===false){setTimeout(function(){_fnInitialise(oSettings);
},200);
return ;
}_fnAddOptionsHtml(oSettings);
_fnBuildHead(oSettings);
_fnDrawHead(oSettings,oSettings.aoHeader);
if(oSettings.nTFoot){_fnDrawHead(oSettings,oSettings.aoFooter);
}_fnProcessingDisplay(oSettings,true);
if(oSettings.oFeatures.bAutoWidth){_fnCalculateColumnWidths(oSettings);
}for(i=0,iLen=oSettings.aoColumns.length;
i<iLen;
i++){if(oSettings.aoColumns[i].sWidth!==null){oSettings.aoColumns[i].nTh.style.width=_fnStringToCss(oSettings.aoColumns[i].sWidth);
}}if(oSettings.oFeatures.bSort){_fnSort(oSettings);
}else{if(oSettings.oFeatures.bFilter){_fnFilterComplete(oSettings,oSettings.oPreviousSearch);
}else{oSettings.aiDisplay=oSettings.aiDisplayMaster.slice();
_fnCalculateEnd(oSettings);
_fnDraw(oSettings);
}}if(oSettings.sAjaxSource!==null&&!oSettings.oFeatures.bServerSide){var aoData=[];
_fnServerParams(oSettings,aoData);
oSettings.fnServerData.call(oSettings.oInstance,oSettings.sAjaxSource,aoData,function(json){var aData=(oSettings.sAjaxDataProp!=="")?_fnGetObjectDataFn(oSettings.sAjaxDataProp)(json):json;
for(i=0;
i<aData.length;
i++){_fnAddData(oSettings,aData[i]);
}oSettings.iInitDisplayStart=iAjaxStart;
if(oSettings.oFeatures.bSort){_fnSort(oSettings);
}else{oSettings.aiDisplay=oSettings.aiDisplayMaster.slice();
_fnCalculateEnd(oSettings);
_fnDraw(oSettings);
}_fnProcessingDisplay(oSettings,false);
_fnInitComplete(oSettings,json);
},oSettings);
return ;
}if(!oSettings.oFeatures.bServerSide){_fnProcessingDisplay(oSettings,false);
_fnInitComplete(oSettings);
}}function _fnInitComplete(oSettings,json){oSettings._bInitComplete=true;
_fnCallbackFire(oSettings,"aoInitComplete","init",[oSettings,json]);
}function _fnLanguageCompat(oLanguage){var oDefaults=DataTable.defaults.oLanguage;
if(!oLanguage.sEmptyTable&&oLanguage.sZeroRecords&&oDefaults.sEmptyTable==="No data available in table"){_fnMap(oLanguage,oLanguage,"sZeroRecords","sEmptyTable");
}if(!oLanguage.sLoadingRecords&&oLanguage.sZeroRecords&&oDefaults.sLoadingRecords==="Loading..."){_fnMap(oLanguage,oLanguage,"sZeroRecords","sLoadingRecords");
}}function _fnFeatureHtmlLength(oSettings){if(oSettings.oScroll.bInfinite){return null;
}var sName='name="'+oSettings.sTableId+'_length"';
var sStdMenu='<select class="form-control" size="1" '+sName+">";
var i,iLen;
var aLengthMenu=oSettings.aLengthMenu;
if(aLengthMenu.length==2&&typeof aLengthMenu[0]==="object"&&typeof aLengthMenu[1]==="object"){for(i=0,iLen=aLengthMenu[0].length;
i<iLen;
i++){sStdMenu+='<option value="'+aLengthMenu[0][i]+'">'+aLengthMenu[1][i]+"</option>";
}}else{for(i=0,iLen=aLengthMenu.length;
i<iLen;
i++){sStdMenu+='<option value="'+aLengthMenu[i]+'">'+aLengthMenu[i]+"</option>";
}}sStdMenu+="</select>";
var nLength=document.createElement("div");
if(!oSettings.aanFeatures.l){nLength.id=oSettings.sTableId+"_length";
}nLength.className=oSettings.oClasses.sLength;
nLength.innerHTML="<label>"+oSettings.oLanguage.sLengthMenu.replace("_MENU_",sStdMenu)+"</label>";
$('select option[value="'+oSettings._iDisplayLength+'"]',nLength).attr("selected",true);
$("select",nLength).bind("change.DT",function(e){var iVal=$(this).val();
var n=oSettings.aanFeatures.l;
for(i=0,iLen=n.length;
i<iLen;
i++){if(n[i]!=this.parentNode){$("select",n[i]).val(iVal);
}}oSettings._iDisplayLength=parseInt(iVal,10);
_fnCalculateEnd(oSettings);
if(oSettings.fnDisplayEnd()==oSettings.fnRecordsDisplay()){oSettings._iDisplayStart=oSettings.fnDisplayEnd()-oSettings._iDisplayLength;
if(oSettings._iDisplayStart<0){oSettings._iDisplayStart=0;
}}if(oSettings._iDisplayLength==-1){oSettings._iDisplayStart=0;
}_fnDraw(oSettings);
});
$("select",nLength).attr("aria-controls",oSettings.sTableId);
return nLength;
}function _fnCalculateEnd(oSettings){if(oSettings.oFeatures.bPaginate===false){oSettings._iDisplayEnd=oSettings.aiDisplay.length;
}else{if(oSettings._iDisplayStart+oSettings._iDisplayLength>oSettings.aiDisplay.length||oSettings._iDisplayLength==-1){oSettings._iDisplayEnd=oSettings.aiDisplay.length;
}else{oSettings._iDisplayEnd=oSettings._iDisplayStart+oSettings._iDisplayLength;
}}}function _fnFeatureHtmlPaginate(oSettings){if(oSettings.oScroll.bInfinite){return null;
}var nPaginate=document.createElement("div");
nPaginate.className=oSettings.oClasses.sPaging+oSettings.sPaginationType;
DataTable.ext.oPagination[oSettings.sPaginationType].fnInit(oSettings,nPaginate,function(oSettings){_fnCalculateEnd(oSettings);
_fnDraw(oSettings);
});
if(!oSettings.aanFeatures.p){oSettings.aoDrawCallback.push({fn:function(oSettings){DataTable.ext.oPagination[oSettings.sPaginationType].fnUpdate(oSettings,function(oSettings){_fnCalculateEnd(oSettings);
_fnDraw(oSettings);
});
},sName:"pagination"});
}return nPaginate;
}function _fnPageChange(oSettings,mAction){var iOldStart=oSettings._iDisplayStart;
if(typeof mAction==="number"){oSettings._iDisplayStart=mAction*oSettings._iDisplayLength;
if(oSettings._iDisplayStart>oSettings.fnRecordsDisplay()){oSettings._iDisplayStart=0;
}}else{if(mAction=="first"){oSettings._iDisplayStart=0;
}else{if(mAction=="previous"){oSettings._iDisplayStart=oSettings._iDisplayLength>=0?oSettings._iDisplayStart-oSettings._iDisplayLength:0;
if(oSettings._iDisplayStart<0){oSettings._iDisplayStart=0;
}}else{if(mAction=="next"){if(oSettings._iDisplayLength>=0){if(oSettings._iDisplayStart+oSettings._iDisplayLength<oSettings.fnRecordsDisplay()){oSettings._iDisplayStart+=oSettings._iDisplayLength;
}}else{oSettings._iDisplayStart=0;
}}else{if(mAction=="last"){if(oSettings._iDisplayLength>=0){var iPages=parseInt((oSettings.fnRecordsDisplay()-1)/oSettings._iDisplayLength,10)+1;
oSettings._iDisplayStart=(iPages-1)*oSettings._iDisplayLength;
}else{oSettings._iDisplayStart=0;
}}else{_fnLog(oSettings,0,"Unknown paging action: "+mAction);
}}}}}$(oSettings.oInstance).trigger("page",oSettings);
return iOldStart!=oSettings._iDisplayStart;
}function _fnFeatureHtmlProcessing(oSettings){var nProcessing=document.createElement("div");
if(!oSettings.aanFeatures.r){nProcessing.id=oSettings.sTableId+"_processing";
}nProcessing.innerHTML=oSettings.oLanguage.sProcessing;
nProcessing.className=oSettings.oClasses.sProcessing;
oSettings.nTable.parentNode.insertBefore(nProcessing,oSettings.nTable);
return nProcessing;
}function _fnProcessingDisplay(oSettings,bShow){if(oSettings.oFeatures.bProcessing){var an=oSettings.aanFeatures.r;
for(var i=0,iLen=an.length;
i<iLen;
i++){an[i].style.visibility=bShow?"visible":"hidden";
}}$(oSettings.oInstance).trigger("processing",[oSettings,bShow]);
}function _fnFeatureHtmlTable(oSettings){if(oSettings.oScroll.sX===""&&oSettings.oScroll.sY===""){return oSettings.nTable;
}var nScroller=document.createElement("div"),nScrollHead=document.createElement("div"),nScrollHeadInner=document.createElement("div"),nScrollBody=document.createElement("div"),nScrollFoot=document.createElement("div"),nScrollFootInner=document.createElement("div"),nScrollHeadTable=oSettings.nTable.cloneNode(false),nScrollFootTable=oSettings.nTable.cloneNode(false),nThead=oSettings.nTable.getElementsByTagName("thead")[0],nTfoot=oSettings.nTable.getElementsByTagName("tfoot").length===0?null:oSettings.nTable.getElementsByTagName("tfoot")[0],oClasses=oSettings.oClasses;
nScrollHead.appendChild(nScrollHeadInner);
nScrollFoot.appendChild(nScrollFootInner);
nScrollBody.appendChild(oSettings.nTable);
nScroller.appendChild(nScrollHead);
nScroller.appendChild(nScrollBody);
nScrollHeadInner.appendChild(nScrollHeadTable);
nScrollHeadTable.appendChild(nThead);
if(nTfoot!==null){nScroller.appendChild(nScrollFoot);
nScrollFootInner.appendChild(nScrollFootTable);
nScrollFootTable.appendChild(nTfoot);
}nScroller.className=oClasses.sScrollWrapper;
nScrollHead.className=oClasses.sScrollHead;
nScrollHeadInner.className=oClasses.sScrollHeadInner;
nScrollBody.className=oClasses.sScrollBody;
nScrollFoot.className=oClasses.sScrollFoot;
nScrollFootInner.className=oClasses.sScrollFootInner;
if(oSettings.oScroll.bAutoCss){nScrollHead.style.overflow="hidden";
nScrollHead.style.position="relative";
nScrollFoot.style.overflow="hidden";
nScrollBody.style.overflow="auto";
}nScrollHead.style.border="0";
nScrollHead.style.width="100%";
nScrollFoot.style.border="0";
nScrollHeadInner.style.width=oSettings.oScroll.sXInner!==""?oSettings.oScroll.sXInner:"100%";
nScrollHeadTable.removeAttribute("id");
nScrollHeadTable.style.marginLeft="0";
oSettings.nTable.style.marginLeft="0";
if(nTfoot!==null){nScrollFootTable.removeAttribute("id");
nScrollFootTable.style.marginLeft="0";
}var nCaption=$(oSettings.nTable).children("caption");
if(nCaption.length>0){nCaption=nCaption[0];
if(nCaption._captionSide==="top"){nScrollHeadTable.appendChild(nCaption);
}else{if(nCaption._captionSide==="bottom"&&nTfoot){nScrollFootTable.appendChild(nCaption);
}}}if(oSettings.oScroll.sX!==""){nScrollHead.style.width=_fnStringToCss(oSettings.oScroll.sX);
nScrollBody.style.width=_fnStringToCss(oSettings.oScroll.sX);
if(nTfoot!==null){nScrollFoot.style.width=_fnStringToCss(oSettings.oScroll.sX);
}$(nScrollBody).scroll(function(e){nScrollHead.scrollLeft=this.scrollLeft;
if(nTfoot!==null){nScrollFoot.scrollLeft=this.scrollLeft;
}});
}if(oSettings.oScroll.sY!==""){nScrollBody.style.height=_fnStringToCss(oSettings.oScroll.sY);
}oSettings.aoDrawCallback.push({fn:_fnScrollDraw,sName:"scrolling"});
if(oSettings.oScroll.bInfinite){$(nScrollBody).scroll(function(){if(!oSettings.bDrawing&&$(this).scrollTop()!==0){if($(this).scrollTop()+$(this).height()>$(oSettings.nTable).height()-oSettings.oScroll.iLoadGap){if(oSettings.fnDisplayEnd()<oSettings.fnRecordsDisplay()){_fnPageChange(oSettings,"next");
_fnCalculateEnd(oSettings);
_fnDraw(oSettings);
}}}});
}oSettings.nScrollHead=nScrollHead;
oSettings.nScrollFoot=nScrollFoot;
return nScroller;
}function _fnScrollDraw(o){var nScrollHeadInner=o.nScrollHead.getElementsByTagName("div")[0],nScrollHeadTable=nScrollHeadInner.getElementsByTagName("table")[0],nScrollBody=o.nTable.parentNode,i,iLen,j,jLen,anHeadToSize,anHeadSizers,anFootSizers,anFootToSize,oStyle,iVis,nTheadSize,nTfootSize,iWidth,aApplied=[],aAppliedFooter=[],iSanityWidth,nScrollFootInner=(o.nTFoot!==null)?o.nScrollFoot.getElementsByTagName("div")[0]:null,nScrollFootTable=(o.nTFoot!==null)?nScrollFootInner.getElementsByTagName("table")[0]:null,ie67=o.oBrowser.bScrollOversize,zeroOut=function(nSizer){oStyle=nSizer.style;
oStyle.paddingTop="0";
oStyle.paddingBottom="0";
oStyle.borderTopWidth="0";
oStyle.borderBottomWidth="0";
oStyle.height=0;
};
$(o.nTable).children("thead, tfoot").remove();
nTheadSize=$(o.nTHead).clone()[0];
o.nTable.insertBefore(nTheadSize,o.nTable.childNodes[0]);
anHeadToSize=o.nTHead.getElementsByTagName("tr");
anHeadSizers=nTheadSize.getElementsByTagName("tr");
if(o.nTFoot!==null){nTfootSize=$(o.nTFoot).clone()[0];
o.nTable.insertBefore(nTfootSize,o.nTable.childNodes[1]);
anFootToSize=o.nTFoot.getElementsByTagName("tr");
anFootSizers=nTfootSize.getElementsByTagName("tr");
}if(o.oScroll.sX===""){nScrollBody.style.width="100%";
nScrollHeadInner.parentNode.style.width="100%";
}var nThs=_fnGetUniqueThs(o,nTheadSize);
for(i=0,iLen=nThs.length;
i<iLen;
i++){iVis=_fnVisibleToColumnIndex(o,i);
nThs[i].style.width=o.aoColumns[iVis].sWidth;
}if(o.nTFoot!==null){_fnApplyToChildren(function(n){n.style.width="";
},anFootSizers);
}if(o.oScroll.bCollapse&&o.oScroll.sY!==""){nScrollBody.style.height=(nScrollBody.offsetHeight+o.nTHead.offsetHeight)+"px";
}iSanityWidth=$(o.nTable).outerWidth();
if(o.oScroll.sX===""){o.nTable.style.width="100%";
if(ie67&&($("tbody",nScrollBody).height()>nScrollBody.offsetHeight||$(nScrollBody).css("overflow-y")=="scroll")){o.nTable.style.width=_fnStringToCss($(o.nTable).outerWidth()-o.oScroll.iBarWidth);
}}else{if(o.oScroll.sXInner!==""){o.nTable.style.width=_fnStringToCss(o.oScroll.sXInner);
}else{if(iSanityWidth==$(nScrollBody).width()&&$(nScrollBody).height()<$(o.nTable).height()){o.nTable.style.width=_fnStringToCss(iSanityWidth-o.oScroll.iBarWidth);
if($(o.nTable).outerWidth()>iSanityWidth-o.oScroll.iBarWidth){o.nTable.style.width=_fnStringToCss(iSanityWidth);
}}else{o.nTable.style.width=_fnStringToCss(iSanityWidth);
}}}iSanityWidth=$(o.nTable).outerWidth();
_fnApplyToChildren(zeroOut,anHeadSizers);
_fnApplyToChildren(function(nSizer){aApplied.push(_fnStringToCss($(nSizer).width()));
},anHeadSizers);
_fnApplyToChildren(function(nToSize,i){nToSize.style.width=aApplied[i];
},anHeadToSize);
$(anHeadSizers).height(0);
if(o.nTFoot!==null){_fnApplyToChildren(zeroOut,anFootSizers);
_fnApplyToChildren(function(nSizer){aAppliedFooter.push(_fnStringToCss($(nSizer).width()));
},anFootSizers);
_fnApplyToChildren(function(nToSize,i){nToSize.style.width=aAppliedFooter[i];
},anFootToSize);
$(anFootSizers).height(0);
}_fnApplyToChildren(function(nSizer,i){nSizer.innerHTML="";
nSizer.style.width=aApplied[i];
},anHeadSizers);
if(o.nTFoot!==null){_fnApplyToChildren(function(nSizer,i){nSizer.innerHTML="";
nSizer.style.width=aAppliedFooter[i];
},anFootSizers);
}if($(o.nTable).outerWidth()<iSanityWidth){var iCorrection=((nScrollBody.scrollHeight>nScrollBody.offsetHeight||$(nScrollBody).css("overflow-y")=="scroll"))?iSanityWidth+o.oScroll.iBarWidth:iSanityWidth;
if(ie67&&(nScrollBody.scrollHeight>nScrollBody.offsetHeight||$(nScrollBody).css("overflow-y")=="scroll")){o.nTable.style.width=_fnStringToCss(iCorrection-o.oScroll.iBarWidth);
}nScrollBody.style.width=_fnStringToCss(iCorrection);
o.nScrollHead.style.width=_fnStringToCss(iCorrection);
if(o.nTFoot!==null){o.nScrollFoot.style.width=_fnStringToCss(iCorrection);
}if(o.oScroll.sX===""){_fnLog(o,1,"The table cannot fit into the current element which will cause column misalignment. The table has been drawn at its minimum possible width.");
}else{if(o.oScroll.sXInner!==""){_fnLog(o,1,"The table cannot fit into the current element which will cause column misalignment. Increase the sScrollXInner value or remove it to allow automatic calculation");
}}}else{nScrollBody.style.width=_fnStringToCss("100%");
o.nScrollHead.style.width=_fnStringToCss("100%");
if(o.nTFoot!==null){o.nScrollFoot.style.width=_fnStringToCss("100%");
}}if(o.oScroll.sY===""){if(ie67){nScrollBody.style.height=_fnStringToCss(o.nTable.offsetHeight+o.oScroll.iBarWidth);
}}if(o.oScroll.sY!==""&&o.oScroll.bCollapse){nScrollBody.style.height=_fnStringToCss(o.oScroll.sY);
var iExtra=(o.oScroll.sX!==""&&o.nTable.offsetWidth>nScrollBody.offsetWidth)?o.oScroll.iBarWidth:0;
if(o.nTable.offsetHeight<nScrollBody.offsetHeight){nScrollBody.style.height=_fnStringToCss(o.nTable.offsetHeight+iExtra);
}}var iOuterWidth=$(o.nTable).outerWidth();
nScrollHeadTable.style.width=_fnStringToCss(iOuterWidth);
nScrollHeadInner.style.width=_fnStringToCss(iOuterWidth);
var bScrolling=$(o.nTable).height()>nScrollBody.clientHeight||$(nScrollBody).css("overflow-y")=="scroll";
nScrollHeadInner.style.paddingRight=bScrolling?o.oScroll.iBarWidth+"px":"0px";
if(o.nTFoot!==null){nScrollFootTable.style.width=_fnStringToCss(iOuterWidth);
nScrollFootInner.style.width=_fnStringToCss(iOuterWidth);
nScrollFootInner.style.paddingRight=bScrolling?o.oScroll.iBarWidth+"px":"0px";
}$(nScrollBody).scroll();
if(o.bSorted||o.bFiltered){nScrollBody.scrollTop=0;
}}function _fnApplyToChildren(fn,an1,an2){var index=0,i=0,iLen=an1.length;
var nNode1,nNode2;
while(i<iLen){nNode1=an1[i].firstChild;
nNode2=an2?an2[i].firstChild:null;
while(nNode1){if(nNode1.nodeType===1){if(an2){fn(nNode1,nNode2,index);
}else{fn(nNode1,index);
}index++;
}nNode1=nNode1.nextSibling;
nNode2=an2?nNode2.nextSibling:null;
}i++;
}}function _fnConvertToWidth(sWidth,nParent){if(!sWidth||sWidth===null||sWidth===""){return 0;
}if(!nParent){nParent=document.body;
}var iWidth;
var nTmp=document.createElement("div");
nTmp.style.width=_fnStringToCss(sWidth);
nParent.appendChild(nTmp);
iWidth=nTmp.offsetWidth;
nParent.removeChild(nTmp);
return(iWidth);
}function _fnCalculateColumnWidths(oSettings){var iTableWidth=oSettings.nTable.offsetWidth;
var iUserInputs=0;
var iTmpWidth;
var iVisibleColumns=0;
var iColums=oSettings.aoColumns.length;
var i,iIndex,iCorrector,iWidth;
var oHeaders=$("th",oSettings.nTHead);
var widthAttr=oSettings.nTable.getAttribute("width");
var nWrapper=oSettings.nTable.parentNode;
for(i=0;
i<iColums;
i++){if(oSettings.aoColumns[i].bVisible){iVisibleColumns++;
if(oSettings.aoColumns[i].sWidth!==null){iTmpWidth=_fnConvertToWidth(oSettings.aoColumns[i].sWidthOrig,nWrapper);
if(iTmpWidth!==null){oSettings.aoColumns[i].sWidth=_fnStringToCss(iTmpWidth);
}iUserInputs++;
}}}if(iColums==oHeaders.length&&iUserInputs===0&&iVisibleColumns==iColums&&oSettings.oScroll.sX===""&&oSettings.oScroll.sY===""){for(i=0;
i<oSettings.aoColumns.length;
i++){iTmpWidth=$(oHeaders[i]).width();
if(iTmpWidth!==null){oSettings.aoColumns[i].sWidth=_fnStringToCss(iTmpWidth);
}}}else{var nCalcTmp=oSettings.nTable.cloneNode(false),nTheadClone=oSettings.nTHead.cloneNode(true),nBody=document.createElement("tbody"),nTr=document.createElement("tr"),nDivSizing;
nCalcTmp.removeAttribute("id");
nCalcTmp.appendChild(nTheadClone);
if(oSettings.nTFoot!==null){nCalcTmp.appendChild(oSettings.nTFoot.cloneNode(true));
_fnApplyToChildren(function(n){n.style.width="";
},nCalcTmp.getElementsByTagName("tr"));
}nCalcTmp.appendChild(nBody);
nBody.appendChild(nTr);
var jqColSizing=$("thead th",nCalcTmp);
if(jqColSizing.length===0){jqColSizing=$("tbody tr:eq(0)>td",nCalcTmp);
}var nThs=_fnGetUniqueThs(oSettings,nTheadClone);
iCorrector=0;
for(i=0;
i<iColums;
i++){var oColumn=oSettings.aoColumns[i];
if(oColumn.bVisible&&oColumn.sWidthOrig!==null&&oColumn.sWidthOrig!==""){nThs[i-iCorrector].style.width=_fnStringToCss(oColumn.sWidthOrig);
}else{if(oColumn.bVisible){nThs[i-iCorrector].style.width="";
}else{iCorrector++;
}}}for(i=0;
i<iColums;
i++){if(oSettings.aoColumns[i].bVisible){var nTd=_fnGetWidestNode(oSettings,i);
if(nTd!==null){nTd=nTd.cloneNode(true);
if(oSettings.aoColumns[i].sContentPadding!==""){nTd.innerHTML+=oSettings.aoColumns[i].sContentPadding;
}nTr.appendChild(nTd);
}}}nWrapper.appendChild(nCalcTmp);
if(oSettings.oScroll.sX!==""&&oSettings.oScroll.sXInner!==""){nCalcTmp.style.width=_fnStringToCss(oSettings.oScroll.sXInner);
}else{if(oSettings.oScroll.sX!==""){nCalcTmp.style.width="";
if($(nCalcTmp).width()<nWrapper.offsetWidth){nCalcTmp.style.width=_fnStringToCss(nWrapper.offsetWidth);
}}else{if(oSettings.oScroll.sY!==""){nCalcTmp.style.width=_fnStringToCss(nWrapper.offsetWidth);
}else{if(widthAttr){nCalcTmp.style.width=_fnStringToCss(widthAttr);
}}}}nCalcTmp.style.visibility="hidden";
_fnScrollingWidthAdjust(oSettings,nCalcTmp);
var oNodes=$("tbody tr:eq(0)",nCalcTmp).children();
if(oNodes.length===0){oNodes=_fnGetUniqueThs(oSettings,$("thead",nCalcTmp)[0]);
}if(oSettings.oScroll.sX!==""){var iTotal=0;
iCorrector=0;
for(i=0;
i<oSettings.aoColumns.length;
i++){if(oSettings.aoColumns[i].bVisible){if(oSettings.aoColumns[i].sWidthOrig===null){iTotal+=$(oNodes[iCorrector]).outerWidth();
}else{iTotal+=parseInt(oSettings.aoColumns[i].sWidth.replace("px",""),10)+($(oNodes[iCorrector]).outerWidth()-$(oNodes[iCorrector]).width());
}iCorrector++;
}}nCalcTmp.style.width=_fnStringToCss(iTotal);
oSettings.nTable.style.width=_fnStringToCss(iTotal);
}iCorrector=0;
for(i=0;
i<oSettings.aoColumns.length;
i++){if(oSettings.aoColumns[i].bVisible){iWidth=$(oNodes[iCorrector]).width();
if(iWidth!==null&&iWidth>0){oSettings.aoColumns[i].sWidth=_fnStringToCss(iWidth);
}iCorrector++;
}}var cssWidth=$(nCalcTmp).css("width");
oSettings.nTable.style.width=(cssWidth.indexOf("%")!==-1)?cssWidth:_fnStringToCss($(nCalcTmp).outerWidth());
nCalcTmp.parentNode.removeChild(nCalcTmp);
}if(widthAttr){oSettings.nTable.style.width=_fnStringToCss(widthAttr);
}}function _fnScrollingWidthAdjust(oSettings,n){if(oSettings.oScroll.sX===""&&oSettings.oScroll.sY!==""){var iOrigWidth=$(n).width();
n.style.width=_fnStringToCss($(n).outerWidth()-oSettings.oScroll.iBarWidth);
}else{if(oSettings.oScroll.sX!==""){n.style.width=_fnStringToCss($(n).outerWidth());
}}}function _fnGetWidestNode(oSettings,iCol){var iMaxIndex=_fnGetMaxLenString(oSettings,iCol);
if(iMaxIndex<0){return null;
}if(oSettings.aoData[iMaxIndex].nTr===null){var n=document.createElement("td");
n.innerHTML=_fnGetCellData(oSettings,iMaxIndex,iCol,"");
return n;
}return _fnGetTdNodes(oSettings,iMaxIndex)[iCol];
}function _fnGetMaxLenString(oSettings,iCol){var iMax=-1;
var iMaxIndex=-1;
for(var i=0;
i<oSettings.aoData.length;
i++){var s=_fnGetCellData(oSettings,i,iCol,"display")+"";
s=s.replace(/<.*?>/g,"");
if(s.length>iMax){iMax=s.length;
iMaxIndex=i;
}}return iMaxIndex;
}function _fnStringToCss(s){if(s===null){return"0px";
}if(typeof s=="number"){if(s<0){return"0px";
}return s+"px";
}var c=s.charCodeAt(s.length-1);
if(c<48||c>57){return s;
}return s+"px";
}function _fnScrollBarWidth(){var inner=document.createElement("p");
var style=inner.style;
style.width="100%";
style.height="200px";
style.padding="0px";
var outer=document.createElement("div");
style=outer.style;
style.position="absolute";
style.top="0px";
style.left="0px";
style.visibility="hidden";
style.width="200px";
style.height="150px";
style.padding="0px";
style.overflow="hidden";
outer.appendChild(inner);
document.body.appendChild(outer);
var w1=inner.offsetWidth;
outer.style.overflow="scroll";
var w2=inner.offsetWidth;
if(w1==w2){w2=outer.clientWidth;
}document.body.removeChild(outer);
return(w1-w2);
}function _fnSort(oSettings,bApplyClasses){var i,iLen,j,jLen,k,kLen,sDataType,nTh,aaSort=[],aiOrig=[],oSort=DataTable.ext.oSort,aoData=oSettings.aoData,aoColumns=oSettings.aoColumns,oAria=oSettings.oLanguage.oAria;
if(!oSettings.oFeatures.bServerSide&&(oSettings.aaSorting.length!==0||oSettings.aaSortingFixed!==null)){aaSort=(oSettings.aaSortingFixed!==null)?oSettings.aaSortingFixed.concat(oSettings.aaSorting):oSettings.aaSorting.slice();
for(i=0;
i<aaSort.length;
i++){var iColumn=aaSort[i][0];
var iVisColumn=_fnColumnIndexToVisible(oSettings,iColumn);
sDataType=oSettings.aoColumns[iColumn].sSortDataType;
if(DataTable.ext.afnSortData[sDataType]){var aData=DataTable.ext.afnSortData[sDataType].call(oSettings.oInstance,oSettings,iColumn,iVisColumn);
if(aData.length===aoData.length){for(j=0,jLen=aoData.length;
j<jLen;
j++){_fnSetCellData(oSettings,j,iColumn,aData[j]);
}}else{_fnLog(oSettings,0,"Returned data sort array (col "+iColumn+") is the wrong length");
}}}for(i=0,iLen=oSettings.aiDisplayMaster.length;
i<iLen;
i++){aiOrig[oSettings.aiDisplayMaster[i]]=i;
}var iSortLen=aaSort.length;
var fnSortFormat,aDataSort;
for(i=0,iLen=aoData.length;
i<iLen;
i++){for(j=0;
j<iSortLen;
j++){aDataSort=aoColumns[aaSort[j][0]].aDataSort;
for(k=0,kLen=aDataSort.length;
k<kLen;
k++){sDataType=aoColumns[aDataSort[k]].sType;
fnSortFormat=oSort[(sDataType?sDataType:"string")+"-pre"];
aoData[i]._aSortData[aDataSort[k]]=fnSortFormat?fnSortFormat(_fnGetCellData(oSettings,i,aDataSort[k],"sort")):_fnGetCellData(oSettings,i,aDataSort[k],"sort");
}}}oSettings.aiDisplayMaster.sort(function(a,b){var k,l,lLen,iTest,aDataSort,sDataType;
for(k=0;
k<iSortLen;
k++){aDataSort=aoColumns[aaSort[k][0]].aDataSort;
for(l=0,lLen=aDataSort.length;
l<lLen;
l++){sDataType=aoColumns[aDataSort[l]].sType;
iTest=oSort[(sDataType?sDataType:"string")+"-"+aaSort[k][1]](aoData[a]._aSortData[aDataSort[l]],aoData[b]._aSortData[aDataSort[l]]);
if(iTest!==0){return iTest;
}}}return oSort["numeric-asc"](aiOrig[a],aiOrig[b]);
});
}if((bApplyClasses===undefined||bApplyClasses)&&!oSettings.oFeatures.bDeferRender){_fnSortingClasses(oSettings);
}for(i=0,iLen=oSettings.aoColumns.length;
i<iLen;
i++){var sTitle=aoColumns[i].sTitle.replace(/<.*?>/g,"");
nTh=aoColumns[i].nTh;
nTh.removeAttribute("aria-sort");
nTh.removeAttribute("aria-label");
if(aoColumns[i].bSortable){if(aaSort.length>0&&aaSort[0][0]==i){nTh.setAttribute("aria-sort",aaSort[0][1]=="asc"?"ascending":"descending");
var nextSort=(aoColumns[i].asSorting[aaSort[0][2]+1])?aoColumns[i].asSorting[aaSort[0][2]+1]:aoColumns[i].asSorting[0];
nTh.setAttribute("aria-label",sTitle+(nextSort=="asc"?oAria.sSortAscending:oAria.sSortDescending));
}else{nTh.setAttribute("aria-label",sTitle+(aoColumns[i].asSorting[0]=="asc"?oAria.sSortAscending:oAria.sSortDescending));
}}else{nTh.setAttribute("aria-label",sTitle);
}}oSettings.bSorted=true;
$(oSettings.oInstance).trigger("sort",oSettings);
if(oSettings.oFeatures.bFilter){_fnFilterComplete(oSettings,oSettings.oPreviousSearch,1);
}else{oSettings.aiDisplay=oSettings.aiDisplayMaster.slice();
oSettings._iDisplayStart=0;
_fnCalculateEnd(oSettings);
_fnDraw(oSettings);
}}function _fnSortAttachListener(oSettings,nNode,iDataIndex,fnCallback){_fnBindAction(nNode,{},function(e){if(oSettings.aoColumns[iDataIndex].bSortable===false){return ;
}var fnInnerSorting=function(){var iColumn,iNextSort;
if(e.shiftKey){var bFound=false;
for(var i=0;
i<oSettings.aaSorting.length;
i++){if(oSettings.aaSorting[i][0]==iDataIndex){bFound=true;
iColumn=oSettings.aaSorting[i][0];
iNextSort=oSettings.aaSorting[i][2]+1;
if(!oSettings.aoColumns[iColumn].asSorting[iNextSort]){oSettings.aaSorting.splice(i,1);
}else{oSettings.aaSorting[i][1]=oSettings.aoColumns[iColumn].asSorting[iNextSort];
oSettings.aaSorting[i][2]=iNextSort;
}break;
}}if(bFound===false){oSettings.aaSorting.push([iDataIndex,oSettings.aoColumns[iDataIndex].asSorting[0],0]);
}}else{if(oSettings.aaSorting.length==1&&oSettings.aaSorting[0][0]==iDataIndex){iColumn=oSettings.aaSorting[0][0];
iNextSort=oSettings.aaSorting[0][2]+1;
if(!oSettings.aoColumns[iColumn].asSorting[iNextSort]){iNextSort=0;
}oSettings.aaSorting[0][1]=oSettings.aoColumns[iColumn].asSorting[iNextSort];
oSettings.aaSorting[0][2]=iNextSort;
}else{oSettings.aaSorting.splice(0,oSettings.aaSorting.length);
oSettings.aaSorting.push([iDataIndex,oSettings.aoColumns[iDataIndex].asSorting[0],0]);
}}_fnSort(oSettings);
};
if(!oSettings.oFeatures.bProcessing){fnInnerSorting();
}else{_fnProcessingDisplay(oSettings,true);
setTimeout(function(){fnInnerSorting();
if(!oSettings.oFeatures.bServerSide){_fnProcessingDisplay(oSettings,false);
}},0);
}if(typeof fnCallback=="function"){fnCallback(oSettings);
}});
}function _fnSortingClasses(oSettings){var i,iLen,j,jLen,iFound;
var aaSort,sClass;
var iColumns=oSettings.aoColumns.length;
var oClasses=oSettings.oClasses;
for(i=0;
i<iColumns;
i++){if(oSettings.aoColumns[i].bSortable){$(oSettings.aoColumns[i].nTh).removeClass(oClasses.sSortAsc+" "+oClasses.sSortDesc+" "+oSettings.aoColumns[i].sSortingClass);
}}if(oSettings.aaSortingFixed!==null){aaSort=oSettings.aaSortingFixed.concat(oSettings.aaSorting);
}else{aaSort=oSettings.aaSorting.slice();
}for(i=0;
i<oSettings.aoColumns.length;
i++){if(oSettings.aoColumns[i].bSortable){sClass=oSettings.aoColumns[i].sSortingClass;
iFound=-1;
for(j=0;
j<aaSort.length;
j++){if(aaSort[j][0]==i){sClass=(aaSort[j][1]=="asc")?oClasses.sSortAsc:oClasses.sSortDesc;
iFound=j;
break;
}}$(oSettings.aoColumns[i].nTh).addClass(sClass);
if(oSettings.bJUI){var jqSpan=$("span."+oClasses.sSortIcon,oSettings.aoColumns[i].nTh);
jqSpan.removeClass(oClasses.sSortJUIAsc+" "+oClasses.sSortJUIDesc+" "+oClasses.sSortJUI+" "+oClasses.sSortJUIAscAllowed+" "+oClasses.sSortJUIDescAllowed);
var sSpanClass;
if(iFound==-1){sSpanClass=oSettings.aoColumns[i].sSortingClassJUI;
}else{if(aaSort[iFound][1]=="asc"){sSpanClass=oClasses.sSortJUIAsc;
}else{sSpanClass=oClasses.sSortJUIDesc;
}}jqSpan.addClass(sSpanClass);
}}else{$(oSettings.aoColumns[i].nTh).addClass(oSettings.aoColumns[i].sSortingClass);
}}sClass=oClasses.sSortColumn;
if(oSettings.oFeatures.bSort&&oSettings.oFeatures.bSortClasses){var nTds=_fnGetTdNodes(oSettings);
var iClass,iTargetCol;
var asClasses=[];
for(i=0;
i<iColumns;
i++){asClasses.push("");
}for(i=0,iClass=1;
i<aaSort.length;
i++){iTargetCol=parseInt(aaSort[i][0],10);
asClasses[iTargetCol]=sClass+iClass;
if(iClass<3){iClass++;
}}var reClass=new RegExp(sClass+"[123]");
var sTmpClass,sCurrentClass,sNewClass;
for(i=0,iLen=nTds.length;
i<iLen;
i++){iTargetCol=i%iColumns;
sCurrentClass=nTds[i].className;
sNewClass=asClasses[iTargetCol];
sTmpClass=sCurrentClass.replace(reClass,sNewClass);
if(sTmpClass!=sCurrentClass){nTds[i].className=$.trim(sTmpClass);
}else{if(sNewClass.length>0&&sCurrentClass.indexOf(sNewClass)==-1){nTds[i].className=sCurrentClass+" "+sNewClass;
}}}}}function _fnSaveState(oSettings){if(!oSettings.oFeatures.bStateSave||oSettings.bDestroying){return ;
}var i,iLen,bInfinite=oSettings.oScroll.bInfinite;
var oState={iCreate:new Date().getTime(),iStart:(bInfinite?0:oSettings._iDisplayStart),iEnd:(bInfinite?oSettings._iDisplayLength:oSettings._iDisplayEnd),iLength:oSettings._iDisplayLength,aaSorting:$.extend(true,[],oSettings.aaSorting),oSearch:$.extend(true,{},oSettings.oPreviousSearch),aoSearchCols:$.extend(true,[],oSettings.aoPreSearchCols),abVisCols:[]};
for(i=0,iLen=oSettings.aoColumns.length;
i<iLen;
i++){oState.abVisCols.push(oSettings.aoColumns[i].bVisible);
}_fnCallbackFire(oSettings,"aoStateSaveParams","stateSaveParams",[oSettings,oState]);
oSettings.fnStateSave.call(oSettings.oInstance,oSettings,oState);
}function _fnLoadState(oSettings,oInit){if(!oSettings.oFeatures.bStateSave){return ;
}var oData=oSettings.fnStateLoad.call(oSettings.oInstance,oSettings);
if(!oData){return ;
}var abStateLoad=_fnCallbackFire(oSettings,"aoStateLoadParams","stateLoadParams",[oSettings,oData]);
if($.inArray(false,abStateLoad)!==-1){return ;
}oSettings.oLoadedState=$.extend(true,{},oData);
oSettings._iDisplayStart=oData.iStart;
oSettings.iInitDisplayStart=oData.iStart;
oSettings._iDisplayEnd=oData.iEnd;
oSettings._iDisplayLength=oData.iLength;
oSettings.aaSorting=oData.aaSorting.slice();
oSettings.saved_aaSorting=oData.aaSorting.slice();
$.extend(oSettings.oPreviousSearch,oData.oSearch);
$.extend(true,oSettings.aoPreSearchCols,oData.aoSearchCols);
oInit.saved_aoColumns=[];
for(var i=0;
i<oData.abVisCols.length;
i++){oInit.saved_aoColumns[i]={};
oInit.saved_aoColumns[i].bVisible=oData.abVisCols[i];
}_fnCallbackFire(oSettings,"aoStateLoaded","stateLoaded",[oSettings,oData]);
}function _fnCreateCookie(sName,sValue,iSecs,sBaseName,fnCallback){var date=new Date();
date.setTime(date.getTime()+(iSecs*1000));
var aParts=window.location.pathname.split("/");
var sNameFile=sName+"_"+aParts.pop().replace(/[\/:]/g,"").toLowerCase();
var sFullCookie,oData;
if(fnCallback!==null){oData=(typeof $.parseJSON==="function")?$.parseJSON(sValue):eval("("+sValue+")");
sFullCookie=fnCallback(sNameFile,oData,date.toGMTString(),aParts.join("/")+"/");
}else{sFullCookie=sNameFile+"="+encodeURIComponent(sValue)+"; expires="+date.toGMTString()+"; path="+aParts.join("/")+"/";
}var aCookies=document.cookie.split(";"),iNewCookieLen=sFullCookie.split(";")[0].length,aOldCookies=[];
if(iNewCookieLen+document.cookie.length+10>4096){for(var i=0,iLen=aCookies.length;
i<iLen;
i++){if(aCookies[i].indexOf(sBaseName)!=-1){var aSplitCookie=aCookies[i].split("=");
try{oData=eval("("+decodeURIComponent(aSplitCookie[1])+")");
if(oData&&oData.iCreate){aOldCookies.push({name:aSplitCookie[0],time:oData.iCreate});
}}catch(e){}}}aOldCookies.sort(function(a,b){return b.time-a.time;
});
while(iNewCookieLen+document.cookie.length+10>4096){if(aOldCookies.length===0){return ;
}var old=aOldCookies.pop();
document.cookie=old.name+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path="+aParts.join("/")+"/";
}}document.cookie=sFullCookie;
}function _fnReadCookie(sName){var aParts=window.location.pathname.split("/"),sNameEQ=sName+"_"+aParts[aParts.length-1].replace(/[\/:]/g,"").toLowerCase()+"=",sCookieContents=document.cookie.split(";");
for(var i=0;
i<sCookieContents.length;
i++){var c=sCookieContents[i];
while(c.charAt(0)==" "){c=c.substring(1,c.length);
}if(c.indexOf(sNameEQ)===0){return decodeURIComponent(c.substring(sNameEQ.length,c.length));
}}return null;
}function _fnSettingsFromNode(nTable){for(var i=0;
i<DataTable.settings.length;
i++){if(DataTable.settings[i].nTable===nTable){return DataTable.settings[i];
}}return null;
}function _fnGetTrNodes(oSettings){var aNodes=[];
var aoData=oSettings.aoData;
for(var i=0,iLen=aoData.length;
i<iLen;
i++){if(aoData[i].nTr!==null){aNodes.push(aoData[i].nTr);
}}return aNodes;
}function _fnGetTdNodes(oSettings,iIndividualRow){var anReturn=[];
var iCorrector;
var anTds,nTd;
var iRow,iRows=oSettings.aoData.length,iColumn,iColumns,oData,sNodeName,iStart=0,iEnd=iRows;
if(iIndividualRow!==undefined){iStart=iIndividualRow;
iEnd=iIndividualRow+1;
}for(iRow=iStart;
iRow<iEnd;
iRow++){oData=oSettings.aoData[iRow];
if(oData.nTr!==null){anTds=[];
nTd=oData.nTr.firstChild;
while(nTd){sNodeName=nTd.nodeName.toLowerCase();
if(sNodeName=="td"||sNodeName=="th"){anTds.push(nTd);
}nTd=nTd.nextSibling;
}iCorrector=0;
for(iColumn=0,iColumns=oSettings.aoColumns.length;
iColumn<iColumns;
iColumn++){if(oSettings.aoColumns[iColumn].bVisible){anReturn.push(anTds[iColumn-iCorrector]);
}else{anReturn.push(oData._anHidden[iColumn]);
iCorrector++;
}}}}return anReturn;
}function _fnLog(oSettings,iLevel,sMesg){var sAlert=(oSettings===null)?"DataTables warning: "+sMesg:"DataTables warning (table id = '"+oSettings.sTableId+"'): "+sMesg;
if(iLevel===0){if(DataTable.ext.sErrMode=="alert"){alert(sAlert);
}else{throw new Error(sAlert);
}return ;
}else{if(window.console&&console.log){console.log(sAlert);
}}}function _fnMap(oRet,oSrc,sName,sMappedName){if(sMappedName===undefined){sMappedName=sName;
}if(oSrc[sName]!==undefined){oRet[sMappedName]=oSrc[sName];
}}function _fnExtend(oOut,oExtender){var val;
for(var prop in oExtender){if(oExtender.hasOwnProperty(prop)){val=oExtender[prop];
if(typeof oInit[prop]==="object"&&val!==null&&$.isArray(val)===false){$.extend(true,oOut[prop],val);
}else{oOut[prop]=val;
}}}return oOut;
}function _fnBindAction(n,oData,fn){$(n).bind("click.DT",oData,function(e){n.blur();
fn(e);
}).bind("keypress.DT",oData,function(e){if(e.which===13){fn(e);
}}).bind("selectstart.DT",function(){return false;
});
}function _fnCallbackReg(oSettings,sStore,fn,sName){if(fn){oSettings[sStore].push({fn:fn,sName:sName});
}}function _fnCallbackFire(oSettings,sStore,sTrigger,aArgs){var aoStore=oSettings[sStore];
var aRet=[];
for(var i=aoStore.length-1;
i>=0;
i--){aRet.push(aoStore[i].fn.apply(oSettings.oInstance,aArgs));
}if(sTrigger!==null){$(oSettings.oInstance).trigger(sTrigger,aArgs);
}return aRet;
}var _fnJsonString=(window.JSON)?JSON.stringify:function(o){var sType=typeof o;
if(sType!=="object"||o===null){if(sType==="string"){o='"'+o+'"';
}return o+"";
}var sProp,mValue,json=[],bArr=$.isArray(o);
for(sProp in o){mValue=o[sProp];
sType=typeof mValue;
if(sType==="string"){mValue='"'+mValue+'"';
}else{if(sType==="object"&&mValue!==null){mValue=_fnJsonString(mValue);
}}json.push((bArr?"":'"'+sProp+'":')+mValue);
}return(bArr?"[":"{")+json+(bArr?"]":"}");
};
function _fnBrowserDetect(oSettings){var n=$('<div style="position:absolute; top:0; left:0; height:1px; width:1px; overflow:hidden"><div style="position:absolute; top:1px; left:1px; width:100px; overflow:scroll;"><div id="DT_BrowserTest" style="width:100%; height:10px;"></div></div></div>')[0];
document.body.appendChild(n);
oSettings.oBrowser.bScrollOversize=$("#DT_BrowserTest",n)[0].offsetWidth===100?true:false;
document.body.removeChild(n);
}this.$=function(sSelector,oOpts){var i,iLen,a=[],tr;
var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
var aoData=oSettings.aoData;
var aiDisplay=oSettings.aiDisplay;
var aiDisplayMaster=oSettings.aiDisplayMaster;
if(!oOpts){oOpts={};
}oOpts=$.extend({},{filter:"none",order:"current",page:"all"},oOpts);
if(oOpts.page=="current"){for(i=oSettings._iDisplayStart,iLen=oSettings.fnDisplayEnd();
i<iLen;
i++){tr=aoData[aiDisplay[i]].nTr;
if(tr){a.push(tr);
}}}else{if(oOpts.order=="current"&&oOpts.filter=="none"){for(i=0,iLen=aiDisplayMaster.length;
i<iLen;
i++){tr=aoData[aiDisplayMaster[i]].nTr;
if(tr){a.push(tr);
}}}else{if(oOpts.order=="current"&&oOpts.filter=="applied"){for(i=0,iLen=aiDisplay.length;
i<iLen;
i++){tr=aoData[aiDisplay[i]].nTr;
if(tr){a.push(tr);
}}}else{if(oOpts.order=="original"&&oOpts.filter=="none"){for(i=0,iLen=aoData.length;
i<iLen;
i++){tr=aoData[i].nTr;
if(tr){a.push(tr);
}}}else{if(oOpts.order=="original"&&oOpts.filter=="applied"){for(i=0,iLen=aoData.length;
i<iLen;
i++){tr=aoData[i].nTr;
if($.inArray(i,aiDisplay)!==-1&&tr){a.push(tr);
}}}else{_fnLog(oSettings,1,"Unknown selection options");
}}}}}var jqA=$(a);
var jqTRs=jqA.filter(sSelector);
var jqDescendants=jqA.find(sSelector);
return $([].concat($.makeArray(jqTRs),$.makeArray(jqDescendants)));
};
this._=function(sSelector,oOpts){var aOut=[];
var i,iLen,iIndex;
var aTrs=this.$(sSelector,oOpts);
for(i=0,iLen=aTrs.length;
i<iLen;
i++){aOut.push(this.fnGetData(aTrs[i]));
}return aOut;
};
this.fnAddData=function(mData,bRedraw){if(mData.length===0){return[];
}var aiReturn=[];
var iTest;
var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
if(typeof mData[0]==="object"&&mData[0]!==null){for(var i=0;
i<mData.length;
i++){iTest=_fnAddData(oSettings,mData[i]);
if(iTest==-1){return aiReturn;
}aiReturn.push(iTest);
}}else{iTest=_fnAddData(oSettings,mData);
if(iTest==-1){return aiReturn;
}aiReturn.push(iTest);
}oSettings.aiDisplay=oSettings.aiDisplayMaster.slice();
if(bRedraw===undefined||bRedraw){_fnReDraw(oSettings);
}return aiReturn;
};
this.fnAdjustColumnSizing=function(bRedraw){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
_fnAdjustColumnSizing(oSettings);
if(bRedraw===undefined||bRedraw){this.fnDraw(false);
}else{if(oSettings.oScroll.sX!==""||oSettings.oScroll.sY!==""){this.oApi._fnScrollDraw(oSettings);
}}};
this.fnClearTable=function(bRedraw){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
_fnClearTable(oSettings);
if(bRedraw===undefined||bRedraw){_fnDraw(oSettings);
}};
this.fnClose=function(nTr){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
for(var i=0;
i<oSettings.aoOpenRows.length;
i++){if(oSettings.aoOpenRows[i].nParent==nTr){var nTrParent=oSettings.aoOpenRows[i].nTr.parentNode;
if(nTrParent){nTrParent.removeChild(oSettings.aoOpenRows[i].nTr);
}oSettings.aoOpenRows.splice(i,1);
return 0;
}}return 1;
};
this.fnDeleteRow=function(mTarget,fnCallBack,bRedraw){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
var i,iLen,iAODataIndex;
iAODataIndex=(typeof mTarget==="object")?_fnNodeToDataIndex(oSettings,mTarget):mTarget;
var oData=oSettings.aoData.splice(iAODataIndex,1);
for(i=0,iLen=oSettings.aoData.length;
i<iLen;
i++){if(oSettings.aoData[i].nTr!==null){oSettings.aoData[i].nTr._DT_RowIndex=i;
}}var iDisplayIndex=$.inArray(iAODataIndex,oSettings.aiDisplay);
oSettings.asDataSearch.splice(iDisplayIndex,1);
_fnDeleteIndex(oSettings.aiDisplayMaster,iAODataIndex);
_fnDeleteIndex(oSettings.aiDisplay,iAODataIndex);
if(typeof fnCallBack==="function"){fnCallBack.call(this,oSettings,oData);
}if(oSettings._iDisplayStart>=oSettings.fnRecordsDisplay()){oSettings._iDisplayStart-=oSettings._iDisplayLength;
if(oSettings._iDisplayStart<0){oSettings._iDisplayStart=0;
}}if(bRedraw===undefined||bRedraw){_fnCalculateEnd(oSettings);
_fnDraw(oSettings);
}return oData;
};
this.fnDestroy=function(bRemove){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
var nOrig=oSettings.nTableWrapper.parentNode;
var nBody=oSettings.nTBody;
var i,iLen;
bRemove=(bRemove===undefined)?false:bRemove;
oSettings.bDestroying=true;
_fnCallbackFire(oSettings,"aoDestroyCallback","destroy",[oSettings]);
if(!bRemove){for(i=0,iLen=oSettings.aoColumns.length;
i<iLen;
i++){if(oSettings.aoColumns[i].bVisible===false){this.fnSetColumnVis(i,true);
}}}$(oSettings.nTableWrapper).find("*").andSelf().unbind(".DT");
$("tbody>tr>td."+oSettings.oClasses.sRowEmpty,oSettings.nTable).parent().remove();
if(oSettings.nTable!=oSettings.nTHead.parentNode){$(oSettings.nTable).children("thead").remove();
oSettings.nTable.appendChild(oSettings.nTHead);
}if(oSettings.nTFoot&&oSettings.nTable!=oSettings.nTFoot.parentNode){$(oSettings.nTable).children("tfoot").remove();
oSettings.nTable.appendChild(oSettings.nTFoot);
}oSettings.nTable.parentNode.removeChild(oSettings.nTable);
$(oSettings.nTableWrapper).remove();
oSettings.aaSorting=[];
oSettings.aaSortingFixed=[];
_fnSortingClasses(oSettings);
$(_fnGetTrNodes(oSettings)).removeClass(oSettings.asStripeClasses.join(" "));
$("th, td",oSettings.nTHead).removeClass([oSettings.oClasses.sSortable,oSettings.oClasses.sSortableAsc,oSettings.oClasses.sSortableDesc,oSettings.oClasses.sSortableNone].join(" "));
if(oSettings.bJUI){$("th span."+oSettings.oClasses.sSortIcon+", td span."+oSettings.oClasses.sSortIcon,oSettings.nTHead).remove();
$("th, td",oSettings.nTHead).each(function(){var jqWrapper=$("div."+oSettings.oClasses.sSortJUIWrapper,this);
var kids=jqWrapper.contents();
$(this).append(kids);
jqWrapper.remove();
});
}if(!bRemove&&oSettings.nTableReinsertBefore){nOrig.insertBefore(oSettings.nTable,oSettings.nTableReinsertBefore);
}else{if(!bRemove){nOrig.appendChild(oSettings.nTable);
}}for(i=0,iLen=oSettings.aoData.length;
i<iLen;
i++){if(oSettings.aoData[i].nTr!==null){nBody.appendChild(oSettings.aoData[i].nTr);
}}if(oSettings.oFeatures.bAutoWidth===true){oSettings.nTable.style.width=_fnStringToCss(oSettings.sDestroyWidth);
}iLen=oSettings.asDestroyStripes.length;
if(iLen){var anRows=$(nBody).children("tr");
for(i=0;
i<iLen;
i++){anRows.filter(":nth-child("+iLen+"n + "+i+")").addClass(oSettings.asDestroyStripes[i]);
}}for(i=0,iLen=DataTable.settings.length;
i<iLen;
i++){if(DataTable.settings[i]==oSettings){DataTable.settings.splice(i,1);
}}oSettings=null;
oInit=null;
};
this.fnDraw=function(bComplete){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
if(bComplete===false){_fnCalculateEnd(oSettings);
_fnDraw(oSettings);
}else{_fnReDraw(oSettings);
}};
this.fnFilter=function(sInput,iColumn,bRegex,bSmart,bShowGlobal,bCaseInsensitive){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
if(!oSettings.oFeatures.bFilter){return ;
}if(bRegex===undefined||bRegex===null){bRegex=false;
}if(bSmart===undefined||bSmart===null){bSmart=true;
}if(bShowGlobal===undefined||bShowGlobal===null){bShowGlobal=true;
}if(bCaseInsensitive===undefined||bCaseInsensitive===null){bCaseInsensitive=true;
}if(iColumn===undefined||iColumn===null){_fnFilterComplete(oSettings,{sSearch:sInput+"",bRegex:bRegex,bSmart:bSmart,bCaseInsensitive:bCaseInsensitive},1);
if(bShowGlobal&&oSettings.aanFeatures.f){var n=oSettings.aanFeatures.f;
for(var i=0,iLen=n.length;
i<iLen;
i++){try{if(n[i]._DT_Input!=document.activeElement){$(n[i]._DT_Input).val(sInput);
}}catch(e){$(n[i]._DT_Input).val(sInput);
}}}}else{$.extend(oSettings.aoPreSearchCols[iColumn],{sSearch:sInput+"",bRegex:bRegex,bSmart:bSmart,bCaseInsensitive:bCaseInsensitive});
_fnFilterComplete(oSettings,oSettings.oPreviousSearch,1);
}};
this.fnGetData=function(mRow,iCol){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
if(mRow!==undefined){var iRow=mRow;
if(typeof mRow==="object"){var sNode=mRow.nodeName.toLowerCase();
if(sNode==="tr"){iRow=_fnNodeToDataIndex(oSettings,mRow);
}else{if(sNode==="td"){iRow=_fnNodeToDataIndex(oSettings,mRow.parentNode);
iCol=_fnNodeToColumnIndex(oSettings,iRow,mRow);
}}}if(iCol!==undefined){return _fnGetCellData(oSettings,iRow,iCol,"");
}return(oSettings.aoData[iRow]!==undefined)?oSettings.aoData[iRow]._aData:null;
}return _fnGetDataMaster(oSettings);
};
this.fnGetNodes=function(iRow){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
if(iRow!==undefined){return(oSettings.aoData[iRow]!==undefined)?oSettings.aoData[iRow].nTr:null;
}return _fnGetTrNodes(oSettings);
};
this.fnGetPosition=function(nNode){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
var sNodeName=nNode.nodeName.toUpperCase();
if(sNodeName=="TR"){return _fnNodeToDataIndex(oSettings,nNode);
}else{if(sNodeName=="TD"||sNodeName=="TH"){var iDataIndex=_fnNodeToDataIndex(oSettings,nNode.parentNode);
var iColumnIndex=_fnNodeToColumnIndex(oSettings,iDataIndex,nNode);
return[iDataIndex,_fnColumnIndexToVisible(oSettings,iColumnIndex),iColumnIndex];
}}return null;
};
this.fnIsOpen=function(nTr){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
var aoOpenRows=oSettings.aoOpenRows;
for(var i=0;
i<oSettings.aoOpenRows.length;
i++){if(oSettings.aoOpenRows[i].nParent==nTr){return true;
}}return false;
};
this.fnOpen=function(nTr,mHtml,sClass){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
var nTableRows=_fnGetTrNodes(oSettings);
if($.inArray(nTr,nTableRows)===-1){return ;
}this.fnClose(nTr);
var nNewRow=document.createElement("tr");
var nNewCell=document.createElement("td");
nNewRow.appendChild(nNewCell);
nNewCell.className=sClass;
nNewCell.colSpan=_fnVisbleColumns(oSettings);
if(typeof mHtml==="string"){nNewCell.innerHTML=mHtml;
}else{$(nNewCell).html(mHtml);
}var nTrs=$("tr",oSettings.nTBody);
if($.inArray(nTr,nTrs)!=-1){$(nNewRow).insertAfter(nTr);
}oSettings.aoOpenRows.push({nTr:nNewRow,nParent:nTr});
return nNewRow;
};
this.fnPageChange=function(mAction,bRedraw){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
_fnPageChange(oSettings,mAction);
_fnCalculateEnd(oSettings);
if(bRedraw===undefined||bRedraw){_fnDraw(oSettings);
}};
this.fnSetColumnVis=function(iCol,bShow,bRedraw){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
var i,iLen;
var aoColumns=oSettings.aoColumns;
var aoData=oSettings.aoData;
var nTd,bAppend,iBefore;
if(aoColumns[iCol].bVisible==bShow){return ;
}if(bShow){var iInsert=0;
for(i=0;
i<iCol;
i++){if(aoColumns[i].bVisible){iInsert++;
}}bAppend=(iInsert>=_fnVisbleColumns(oSettings));
if(!bAppend){for(i=iCol;
i<aoColumns.length;
i++){if(aoColumns[i].bVisible){iBefore=i;
break;
}}}for(i=0,iLen=aoData.length;
i<iLen;
i++){if(aoData[i].nTr!==null){if(bAppend){aoData[i].nTr.appendChild(aoData[i]._anHidden[iCol]);
}else{aoData[i].nTr.insertBefore(aoData[i]._anHidden[iCol],_fnGetTdNodes(oSettings,i)[iBefore]);
}}}}else{for(i=0,iLen=aoData.length;
i<iLen;
i++){if(aoData[i].nTr!==null){nTd=_fnGetTdNodes(oSettings,i)[iCol];
aoData[i]._anHidden[iCol]=nTd;
nTd.parentNode.removeChild(nTd);
}}}aoColumns[iCol].bVisible=bShow;
_fnDrawHead(oSettings,oSettings.aoHeader);
if(oSettings.nTFoot){_fnDrawHead(oSettings,oSettings.aoFooter);
}for(i=0,iLen=oSettings.aoOpenRows.length;
i<iLen;
i++){oSettings.aoOpenRows[i].nTr.colSpan=_fnVisbleColumns(oSettings);
}if(bRedraw===undefined||bRedraw){_fnAdjustColumnSizing(oSettings);
_fnDraw(oSettings);
}_fnSaveState(oSettings);
};
this.fnSettings=function(){return _fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
};
this.fnSort=function(aaSort){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
oSettings.aaSorting=aaSort;
_fnSort(oSettings);
};
this.fnSortListener=function(nNode,iColumn,fnCallback){_fnSortAttachListener(_fnSettingsFromNode(this[DataTable.ext.iApiIndex]),nNode,iColumn,fnCallback);
};
this.fnUpdate=function(mData,mRow,iColumn,bRedraw,bAction){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
var i,iLen,sDisplay;
var iRow=(typeof mRow==="object")?_fnNodeToDataIndex(oSettings,mRow):mRow;
if($.isArray(mData)&&iColumn===undefined){oSettings.aoData[iRow]._aData=mData.slice();
for(i=0;
i<oSettings.aoColumns.length;
i++){this.fnUpdate(_fnGetCellData(oSettings,iRow,i),iRow,i,false,false);
}}else{if($.isPlainObject(mData)&&iColumn===undefined){oSettings.aoData[iRow]._aData=$.extend(true,{},mData);
for(i=0;
i<oSettings.aoColumns.length;
i++){this.fnUpdate(_fnGetCellData(oSettings,iRow,i),iRow,i,false,false);
}}else{_fnSetCellData(oSettings,iRow,iColumn,mData);
sDisplay=_fnGetCellData(oSettings,iRow,iColumn,"display");
var oCol=oSettings.aoColumns[iColumn];
if(oCol.fnRender!==null){sDisplay=_fnRender(oSettings,iRow,iColumn);
if(oCol.bUseRendered){_fnSetCellData(oSettings,iRow,iColumn,sDisplay);
}}if(oSettings.aoData[iRow].nTr!==null){_fnGetTdNodes(oSettings,iRow)[iColumn].innerHTML=sDisplay;
}}}var iDisplayIndex=$.inArray(iRow,oSettings.aiDisplay);
oSettings.asDataSearch[iDisplayIndex]=_fnBuildSearchRow(oSettings,_fnGetRowData(oSettings,iRow,"filter",_fnGetColumns(oSettings,"bSearchable")));
if(bAction===undefined||bAction){_fnAdjustColumnSizing(oSettings);
}if(bRedraw===undefined||bRedraw){_fnReDraw(oSettings);
}return 0;
};
this.fnVersionCheck=DataTable.ext.fnVersionCheck;
function _fnExternApiFunc(sFunc){return function(){var aArgs=[_fnSettingsFromNode(this[DataTable.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));
return DataTable.ext.oApi[sFunc].apply(this,aArgs);
};
}this.oApi={_fnExternApiFunc:_fnExternApiFunc,_fnInitialise:_fnInitialise,_fnInitComplete:_fnInitComplete,_fnLanguageCompat:_fnLanguageCompat,_fnAddColumn:_fnAddColumn,_fnColumnOptions:_fnColumnOptions,_fnAddData:_fnAddData,_fnCreateTr:_fnCreateTr,_fnGatherData:_fnGatherData,_fnBuildHead:_fnBuildHead,_fnDrawHead:_fnDrawHead,_fnDraw:_fnDraw,_fnReDraw:_fnReDraw,_fnAjaxUpdate:_fnAjaxUpdate,_fnAjaxParameters:_fnAjaxParameters,_fnAjaxUpdateDraw:_fnAjaxUpdateDraw,_fnServerParams:_fnServerParams,_fnAddOptionsHtml:_fnAddOptionsHtml,_fnFeatureHtmlTable:_fnFeatureHtmlTable,_fnScrollDraw:_fnScrollDraw,_fnAdjustColumnSizing:_fnAdjustColumnSizing,_fnFeatureHtmlFilter:_fnFeatureHtmlFilter,_fnFilterComplete:_fnFilterComplete,_fnFilterCustom:_fnFilterCustom,_fnFilterColumn:_fnFilterColumn,_fnFilter:_fnFilter,_fnBuildSearchArray:_fnBuildSearchArray,_fnBuildSearchRow:_fnBuildSearchRow,_fnFilterCreateSearch:_fnFilterCreateSearch,_fnDataToSearch:_fnDataToSearch,_fnSort:_fnSort,_fnSortAttachListener:_fnSortAttachListener,_fnSortingClasses:_fnSortingClasses,_fnFeatureHtmlPaginate:_fnFeatureHtmlPaginate,_fnPageChange:_fnPageChange,_fnFeatureHtmlInfo:_fnFeatureHtmlInfo,_fnUpdateInfo:_fnUpdateInfo,_fnFeatureHtmlLength:_fnFeatureHtmlLength,_fnFeatureHtmlProcessing:_fnFeatureHtmlProcessing,_fnProcessingDisplay:_fnProcessingDisplay,_fnVisibleToColumnIndex:_fnVisibleToColumnIndex,_fnColumnIndexToVisible:_fnColumnIndexToVisible,_fnNodeToDataIndex:_fnNodeToDataIndex,_fnVisbleColumns:_fnVisbleColumns,_fnCalculateEnd:_fnCalculateEnd,_fnConvertToWidth:_fnConvertToWidth,_fnCalculateColumnWidths:_fnCalculateColumnWidths,_fnScrollingWidthAdjust:_fnScrollingWidthAdjust,_fnGetWidestNode:_fnGetWidestNode,_fnGetMaxLenString:_fnGetMaxLenString,_fnStringToCss:_fnStringToCss,_fnDetectType:_fnDetectType,_fnSettingsFromNode:_fnSettingsFromNode,_fnGetDataMaster:_fnGetDataMaster,_fnGetTrNodes:_fnGetTrNodes,_fnGetTdNodes:_fnGetTdNodes,_fnEscapeRegex:_fnEscapeRegex,_fnDeleteIndex:_fnDeleteIndex,_fnReOrderIndex:_fnReOrderIndex,_fnColumnOrdering:_fnColumnOrdering,_fnLog:_fnLog,_fnClearTable:_fnClearTable,_fnSaveState:_fnSaveState,_fnLoadState:_fnLoadState,_fnCreateCookie:_fnCreateCookie,_fnReadCookie:_fnReadCookie,_fnDetectHeader:_fnDetectHeader,_fnGetUniqueThs:_fnGetUniqueThs,_fnScrollBarWidth:_fnScrollBarWidth,_fnApplyToChildren:_fnApplyToChildren,_fnMap:_fnMap,_fnGetRowData:_fnGetRowData,_fnGetCellData:_fnGetCellData,_fnSetCellData:_fnSetCellData,_fnGetObjectDataFn:_fnGetObjectDataFn,_fnSetObjectDataFn:_fnSetObjectDataFn,_fnApplyColumnDefs:_fnApplyColumnDefs,_fnBindAction:_fnBindAction,_fnExtend:_fnExtend,_fnCallbackReg:_fnCallbackReg,_fnCallbackFire:_fnCallbackFire,_fnJsonString:_fnJsonString,_fnRender:_fnRender,_fnNodeToColumnIndex:_fnNodeToColumnIndex,_fnInfoMacros:_fnInfoMacros,_fnBrowserDetect:_fnBrowserDetect,_fnGetColumns:_fnGetColumns};
$.extend(DataTable.ext.oApi,this.oApi);
for(var sFunc in DataTable.ext.oApi){if(sFunc){this[sFunc]=_fnExternApiFunc(sFunc);
}}var _that=this;
this.each(function(){var i=0,iLen,j,jLen,k,kLen;
var sId=this.getAttribute("id");
var bInitHandedOff=false;
var bUsePassedData=false;
if(this.nodeName.toLowerCase()!="table"){_fnLog(null,0,"Attempted to initialise DataTables on a node which is not a table: "+this.nodeName);
return ;
}for(i=0,iLen=DataTable.settings.length;
i<iLen;
i++){if(DataTable.settings[i].nTable==this){if(oInit===undefined||oInit.bRetrieve){return DataTable.settings[i].oInstance;
}else{if(oInit.bDestroy){DataTable.settings[i].oInstance.fnDestroy();
break;
}else{_fnLog(DataTable.settings[i],0,"Cannot reinitialise DataTable.\n\nTo retrieve the DataTables object for this table, pass no arguments or see the docs for bRetrieve and bDestroy");
return ;
}}}if(DataTable.settings[i].sTableId==this.id){DataTable.settings.splice(i,1);
break;
}}if(sId===null||sId===""){sId="DataTables_Table_"+(DataTable.ext._oExternConfig.iNextUnique++);
this.id=sId;
}var oSettings=$.extend(true,{},DataTable.models.oSettings,{nTable:this,oApi:_that.oApi,oInit:oInit,sDestroyWidth:$(this).width(),sInstance:sId,sTableId:sId});
DataTable.settings.push(oSettings);
oSettings.oInstance=(_that.length===1)?_that:$(this).dataTable();
if(!oInit){oInit={};
}if(oInit.oLanguage){_fnLanguageCompat(oInit.oLanguage);
}oInit=_fnExtend($.extend(true,{},DataTable.defaults),oInit);
_fnMap(oSettings.oFeatures,oInit,"bPaginate");
_fnMap(oSettings.oFeatures,oInit,"bLengthChange");
_fnMap(oSettings.oFeatures,oInit,"bFilter");
_fnMap(oSettings.oFeatures,oInit,"bSort");
_fnMap(oSettings.oFeatures,oInit,"bInfo");
_fnMap(oSettings.oFeatures,oInit,"bProcessing");
_fnMap(oSettings.oFeatures,oInit,"bAutoWidth");
_fnMap(oSettings.oFeatures,oInit,"bSortClasses");
_fnMap(oSettings.oFeatures,oInit,"bServerSide");
_fnMap(oSettings.oFeatures,oInit,"bDeferRender");
_fnMap(oSettings.oScroll,oInit,"sScrollX","sX");
_fnMap(oSettings.oScroll,oInit,"sScrollXInner","sXInner");
_fnMap(oSettings.oScroll,oInit,"sScrollY","sY");
_fnMap(oSettings.oScroll,oInit,"bScrollCollapse","bCollapse");
_fnMap(oSettings.oScroll,oInit,"bScrollInfinite","bInfinite");
_fnMap(oSettings.oScroll,oInit,"iScrollLoadGap","iLoadGap");
_fnMap(oSettings.oScroll,oInit,"bScrollAutoCss","bAutoCss");
_fnMap(oSettings,oInit,"asStripeClasses");
_fnMap(oSettings,oInit,"asStripClasses","asStripeClasses");
_fnMap(oSettings,oInit,"fnServerData");
_fnMap(oSettings,oInit,"fnFormatNumber");
_fnMap(oSettings,oInit,"sServerMethod");
_fnMap(oSettings,oInit,"aaSorting");
_fnMap(oSettings,oInit,"aaSortingFixed");
_fnMap(oSettings,oInit,"aLengthMenu");
_fnMap(oSettings,oInit,"sPaginationType");
_fnMap(oSettings,oInit,"sAjaxSource");
_fnMap(oSettings,oInit,"sAjaxDataProp");
_fnMap(oSettings,oInit,"iCookieDuration");
_fnMap(oSettings,oInit,"sCookiePrefix");
_fnMap(oSettings,oInit,"sDom");
_fnMap(oSettings,oInit,"bSortCellsTop");
_fnMap(oSettings,oInit,"iTabIndex");
_fnMap(oSettings,oInit,"oSearch","oPreviousSearch");
_fnMap(oSettings,oInit,"aoSearchCols","aoPreSearchCols");
_fnMap(oSettings,oInit,"iDisplayLength","_iDisplayLength");
_fnMap(oSettings,oInit,"bJQueryUI","bJUI");
_fnMap(oSettings,oInit,"fnCookieCallback");
_fnMap(oSettings,oInit,"fnStateLoad");
_fnMap(oSettings,oInit,"fnStateSave");
_fnMap(oSettings.oLanguage,oInit,"fnInfoCallback");
_fnCallbackReg(oSettings,"aoDrawCallback",oInit.fnDrawCallback,"user");
_fnCallbackReg(oSettings,"aoServerParams",oInit.fnServerParams,"user");
_fnCallbackReg(oSettings,"aoStateSaveParams",oInit.fnStateSaveParams,"user");
_fnCallbackReg(oSettings,"aoStateLoadParams",oInit.fnStateLoadParams,"user");
_fnCallbackReg(oSettings,"aoStateLoaded",oInit.fnStateLoaded,"user");
_fnCallbackReg(oSettings,"aoRowCallback",oInit.fnRowCallback,"user");
_fnCallbackReg(oSettings,"aoRowCreatedCallback",oInit.fnCreatedRow,"user");
_fnCallbackReg(oSettings,"aoHeaderCallback",oInit.fnHeaderCallback,"user");
_fnCallbackReg(oSettings,"aoFooterCallback",oInit.fnFooterCallback,"user");
_fnCallbackReg(oSettings,"aoInitComplete",oInit.fnInitComplete,"user");
_fnCallbackReg(oSettings,"aoPreDrawCallback",oInit.fnPreDrawCallback,"user");
if(oSettings.oFeatures.bServerSide&&oSettings.oFeatures.bSort&&oSettings.oFeatures.bSortClasses){_fnCallbackReg(oSettings,"aoDrawCallback",_fnSortingClasses,"server_side_sort_classes");
}else{if(oSettings.oFeatures.bDeferRender){_fnCallbackReg(oSettings,"aoDrawCallback",_fnSortingClasses,"defer_sort_classes");
}}if(oInit.bJQueryUI){$.extend(oSettings.oClasses,DataTable.ext.oJUIClasses);
if(oInit.sDom===DataTable.defaults.sDom&&DataTable.defaults.sDom==="lfrtip"){oSettings.sDom='<"H"lfr>t<"F"ip>';
}}else{$.extend(oSettings.oClasses,DataTable.ext.oStdClasses);
}$(this).addClass(oSettings.oClasses.sTable);
if(oSettings.oScroll.sX!==""||oSettings.oScroll.sY!==""){oSettings.oScroll.iBarWidth=_fnScrollBarWidth();
}if(oSettings.iInitDisplayStart===undefined){oSettings.iInitDisplayStart=oInit.iDisplayStart;
oSettings._iDisplayStart=oInit.iDisplayStart;
}if(oInit.bStateSave){oSettings.oFeatures.bStateSave=true;
_fnLoadState(oSettings,oInit);
_fnCallbackReg(oSettings,"aoDrawCallback",_fnSaveState,"state_save");
}if(oInit.iDeferLoading!==null){oSettings.bDeferLoading=true;
var tmp=$.isArray(oInit.iDeferLoading);
oSettings._iRecordsDisplay=tmp?oInit.iDeferLoading[0]:oInit.iDeferLoading;
oSettings._iRecordsTotal=tmp?oInit.iDeferLoading[1]:oInit.iDeferLoading;
}if(oInit.aaData!==null){bUsePassedData=true;
}if(oInit.oLanguage.sUrl!==""){oSettings.oLanguage.sUrl=oInit.oLanguage.sUrl;
$.getJSON(oSettings.oLanguage.sUrl,null,function(json){_fnLanguageCompat(json);
$.extend(true,oSettings.oLanguage,oInit.oLanguage,json);
_fnInitialise(oSettings);
});
bInitHandedOff=true;
}else{$.extend(true,oSettings.oLanguage,oInit.oLanguage);
}if(oInit.asStripeClasses===null){oSettings.asStripeClasses=[oSettings.oClasses.sStripeOdd,oSettings.oClasses.sStripeEven];
}iLen=oSettings.asStripeClasses.length;
oSettings.asDestroyStripes=[];
if(iLen){var bStripeRemove=false;
var anRows=$(this).children("tbody").children("tr:lt("+iLen+")");
for(i=0;
i<iLen;
i++){if(anRows.hasClass(oSettings.asStripeClasses[i])){bStripeRemove=true;
oSettings.asDestroyStripes.push(oSettings.asStripeClasses[i]);
}}if(bStripeRemove){anRows.removeClass(oSettings.asStripeClasses.join(" "));
}}var anThs=[];
var aoColumnsInit;
var nThead=this.getElementsByTagName("thead");
if(nThead.length!==0){_fnDetectHeader(oSettings.aoHeader,nThead[0]);
anThs=_fnGetUniqueThs(oSettings);
}if(oInit.aoColumns===null){aoColumnsInit=[];
for(i=0,iLen=anThs.length;
i<iLen;
i++){aoColumnsInit.push(null);
}}else{aoColumnsInit=oInit.aoColumns;
}for(i=0,iLen=aoColumnsInit.length;
i<iLen;
i++){if(oInit.saved_aoColumns!==undefined&&oInit.saved_aoColumns.length==iLen){if(aoColumnsInit[i]===null){aoColumnsInit[i]={};
}aoColumnsInit[i].bVisible=oInit.saved_aoColumns[i].bVisible;
}_fnAddColumn(oSettings,anThs?anThs[i]:null);
}_fnApplyColumnDefs(oSettings,oInit.aoColumnDefs,aoColumnsInit,function(iCol,oDef){_fnColumnOptions(oSettings,iCol,oDef);
});
for(i=0,iLen=oSettings.aaSorting.length;
i<iLen;
i++){if(oSettings.aaSorting[i][0]>=oSettings.aoColumns.length){oSettings.aaSorting[i][0]=0;
}var oColumn=oSettings.aoColumns[oSettings.aaSorting[i][0]];
if(oSettings.aaSorting[i][2]===undefined){oSettings.aaSorting[i][2]=0;
}if(oInit.aaSorting===undefined&&oSettings.saved_aaSorting===undefined){oSettings.aaSorting[i][1]=oColumn.asSorting[0];
}for(j=0,jLen=oColumn.asSorting.length;
j<jLen;
j++){if(oSettings.aaSorting[i][1]==oColumn.asSorting[j]){oSettings.aaSorting[i][2]=j;
break;
}}}_fnSortingClasses(oSettings);
_fnBrowserDetect(oSettings);
var captions=$(this).children("caption").each(function(){this._captionSide=$(this).css("caption-side");
});
var thead=$(this).children("thead");
if(thead.length===0){thead=[document.createElement("thead")];
this.appendChild(thead[0]);
}oSettings.nTHead=thead[0];
var tbody=$(this).children("tbody");
if(tbody.length===0){tbody=[document.createElement("tbody")];
this.appendChild(tbody[0]);
}oSettings.nTBody=tbody[0];
oSettings.nTBody.setAttribute("role","alert");
oSettings.nTBody.setAttribute("aria-live","polite");
oSettings.nTBody.setAttribute("aria-relevant","all");
var tfoot=$(this).children("tfoot");
if(tfoot.length===0&&captions.length>0&&(oSettings.oScroll.sX!==""||oSettings.oScroll.sY!=="")){tfoot=[document.createElement("tfoot")];
this.appendChild(tfoot[0]);
}if(tfoot.length>0){oSettings.nTFoot=tfoot[0];
_fnDetectHeader(oSettings.aoFooter,oSettings.nTFoot);
}if(bUsePassedData){for(i=0;
i<oInit.aaData.length;
i++){_fnAddData(oSettings,oInit.aaData[i]);
}}else{_fnGatherData(oSettings);
}oSettings.aiDisplay=oSettings.aiDisplayMaster.slice();
oSettings.bInitialised=true;
if(bInitHandedOff===false){_fnInitialise(oSettings);
}});
_that=null;
return this;
};
DataTable.fnVersionCheck=function(sVersion){var fnZPad=function(Zpad,count){while(Zpad.length<count){Zpad+="0";
}return Zpad;
};
var aThis=DataTable.ext.sVersion.split(".");
var aThat=sVersion.split(".");
var sThis="",sThat="";
for(var i=0,iLen=aThat.length;
i<iLen;
i++){sThis+=fnZPad(aThis[i],3);
sThat+=fnZPad(aThat[i],3);
}return parseInt(sThis,10)>=parseInt(sThat,10);
};
DataTable.fnIsDataTable=function(nTable){var o=DataTable.settings;
for(var i=0;
i<o.length;
i++){if(o[i].nTable===nTable||o[i].nScrollHead===nTable||o[i].nScrollFoot===nTable){return true;
}}return false;
};
DataTable.fnTables=function(bVisible){var out=[];
jQuery.each(DataTable.settings,function(i,o){if(!bVisible||(bVisible===true&&$(o.nTable).is(":visible"))){out.push(o.nTable);
}});
return out;
};
DataTable.version="1.9.4";
DataTable.settings=[];
DataTable.models={};
DataTable.models.ext={afnFiltering:[],afnSortData:[],aoFeatures:[],aTypes:[],fnVersionCheck:DataTable.fnVersionCheck,iApiIndex:0,ofnSearch:{},oApi:{},oStdClasses:{},oJUIClasses:{},oPagination:{},oSort:{},sVersion:DataTable.version,sErrMode:"alert",_oExternConfig:{iNextUnique:0}};
DataTable.models.oSearch={bCaseInsensitive:true,sSearch:"",bRegex:false,bSmart:true};
DataTable.models.oRow={nTr:null,_aData:[],_aSortData:[],_anHidden:[],_sRowStripe:""};
DataTable.models.oColumn={aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bUseRendered:null,bVisible:null,_bAutoType:true,fnCreatedCell:null,fnGetData:null,fnRender:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};
DataTable.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:true,bDeferRender:false,bDestroy:false,bFilter:true,bInfo:true,bJQueryUI:false,bLengthChange:true,bPaginate:true,bProcessing:false,bRetrieve:false,bScrollAutoCss:true,bScrollCollapse:false,bScrollInfinite:false,bServerSide:false,bSort:true,bSortCellsTop:false,bSortClasses:true,bStateSave:false,fnCookieCallback:null,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(iIn){if(iIn<1000){return iIn;
}var s=(iIn+""),a=s.split(""),out="",iLen=s.length;
for(var i=0;
i<iLen;
i++){if(i%3===0&&i!==0){out=this.oLanguage.sInfoThousands+out;
}out=a[iLen-i-1]+out;
}return out;
},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:function(sUrl,aoData,fnCallback,oSettings){oSettings.jqXHR=$.ajax({url:sUrl,data:aoData,success:function(json){if(json.sError){oSettings.oApi._fnLog(oSettings,0,json.sError);
}$(oSettings.oInstance).trigger("xhr",[oSettings,json]);
fnCallback(json);
},dataType:"json",cache:false,type:oSettings.sServerMethod,error:function(xhr,error,thrown){if(error=="parsererror"){oSettings.oApi._fnLog(oSettings,0,"DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.");
}}});
},fnServerParams:null,fnStateLoad:function(oSettings){var sData=this.oApi._fnReadCookie(oSettings.sCookiePrefix+oSettings.sInstance);
var oData;
try{oData=(typeof $.parseJSON==="function")?$.parseJSON(sData):eval("("+sData+")");
}catch(e){oData=null;
}return oData;
},fnStateLoadParams:null,fnStateLoaded:null,fnStateSave:function(oSettings,oData){this.oApi._fnCreateCookie(oSettings.sCookiePrefix+oSettings.sInstance,this.oApi._fnJsonString(oData),oSettings.iCookieDuration,oSettings.sCookiePrefix,oSettings.fnCookieCallback);
},fnStateSaveParams:null,iCookieDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iScrollLoadGap:100,iTabIndex:0,oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sInfoThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sUrl:"",sZeroRecords:"No matching records found"},oSearch:$.extend({},DataTable.models.oSearch),sAjaxDataProp:"aaData",sAjaxSource:null,sCookiePrefix:"SpryMedia_DataTables_",sDom:"lfrtip",sPaginationType:"two_button",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET"};
DataTable.defaults.columns={aDataSort:null,asSorting:["asc","desc"],bSearchable:true,bSortable:true,bUseRendered:true,bVisible:true,fnCreatedCell:null,fnRender:null,iDataSort:-1,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};
DataTable.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortClasses:null,bStateSave:null},oScroll:{bAutoCss:null,bCollapse:null,bInfinite:null,iBarWidth:0,iLoadGap:null,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:false},aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],asDataSearch:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:null,asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:false,bInitialised:false,aoOpenRows:[],sDom:null,sPaginationType:"two_button",iCookieDuration:0,sCookiePrefix:"",fnCookieCallback:null,aoStateSave:[],aoStateLoad:[],oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:true,jqXHR:null,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:false,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iDisplayEnd:10,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:false,bSorted:false,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){if(this.oFeatures.bServerSide){return parseInt(this._iRecordsTotal,10);
}else{return this.aiDisplayMaster.length;
}},fnRecordsDisplay:function(){if(this.oFeatures.bServerSide){return parseInt(this._iRecordsDisplay,10);
}else{return this.aiDisplay.length;
}},fnDisplayEnd:function(){if(this.oFeatures.bServerSide){if(this.oFeatures.bPaginate===false||this._iDisplayLength==-1){return this._iDisplayStart+this.aiDisplay.length;
}else{return Math.min(this._iDisplayStart+this._iDisplayLength,this._iRecordsDisplay);
}}else{return this._iDisplayEnd;
}},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null};
DataTable.ext=$.extend(true,{},DataTable.models.ext);
$.extend(DataTable.ext.oStdClasses,{sTable:"dataTable",sPagePrevEnabled:"paginate_enabled_previous",sPagePrevDisabled:"paginate_disabled_previous",sPageNextEnabled:"paginate_enabled_next",sPageNextDisabled:"paginate_disabled_next",sPageJUINext:"",sPageJUIPrev:"",sPageButton:"paginate_button",sPageButtonActive:"paginate_active",sPageButtonStaticDisabled:"paginate_button paginate_button_disabled",sPageFirst:"first",sPagePrevious:"previous",sPageNext:"next",sPageLast:"last",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sFooterTH:"",sJUIHeader:"",sJUIFooter:""});
$.extend(DataTable.ext.oJUIClasses,DataTable.ext.oStdClasses,{sPagePrevEnabled:"fg-button ui-button ui-state-default ui-corner-left",sPagePrevDisabled:"fg-button ui-button ui-state-default ui-corner-left ui-state-disabled",sPageNextEnabled:"fg-button ui-button ui-state-default ui-corner-right",sPageNextDisabled:"fg-button ui-button ui-state-default ui-corner-right ui-state-disabled",sPageJUINext:"ui-icon ui-icon-circle-arrow-e",sPageJUIPrev:"ui-icon ui-icon-circle-arrow-w",sPageButton:"fg-button ui-button ui-state-default",sPageButtonActive:"fg-button ui-button ui-state-default ui-state-disabled",sPageButtonStaticDisabled:"fg-button ui-button ui-state-default ui-state-disabled",sPageFirst:"first ui-corner-tl ui-corner-bl",sPageLast:"last ui-corner-tr ui-corner-br",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:"ui-state-default",sSortDesc:"ui-state-default",sSortable:"ui-state-default",sSortableAsc:"ui-state-default",sSortableDesc:"ui-state-default",sSortableNone:"ui-state-default",sSortJUIAsc:"css_right ui-icon ui-icon-triangle-1-n",sSortJUIDesc:"css_right ui-icon ui-icon-triangle-1-s",sSortJUI:"css_right ui-icon ui-icon-carat-2-n-s",sSortJUIAscAllowed:"css_right ui-icon ui-icon-carat-1-n",sSortJUIDescAllowed:"css_right ui-icon ui-icon-carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead ui-state-default",sScrollFoot:"dataTables_scrollFoot ui-state-default",sFooterTH:"ui-state-default",sJUIHeader:"fg-toolbar ui-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix",sJUIFooter:"fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"});
$.extend(DataTable.ext.oPagination,{two_button:{fnInit:function(oSettings,nPaging,fnCallbackDraw){var oLang=oSettings.oLanguage.oPaginate;
var oClasses=oSettings.oClasses;
var fnClickHandler=function(e){if(oSettings.oApi._fnPageChange(oSettings,e.data.action)){fnCallbackDraw(oSettings);
}};
var sAppend=(!oSettings.bJUI)?'<a class="'+oSettings.oClasses.sPagePrevDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button">'+oLang.sPrevious+'</a><a class="'+oSettings.oClasses.sPageNextDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button">'+oLang.sNext+"</a>":'<a class="'+oSettings.oClasses.sPagePrevDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button"><span class="'+oSettings.oClasses.sPageJUIPrev+'"></span></a><a class="'+oSettings.oClasses.sPageNextDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button"><span class="'+oSettings.oClasses.sPageJUINext+'"></span></a>';
$(nPaging).append(sAppend);
var els=$("a",nPaging);
var nPrevious=els[0],nNext=els[1];
oSettings.oApi._fnBindAction(nPrevious,{action:"previous"},fnClickHandler);
oSettings.oApi._fnBindAction(nNext,{action:"next"},fnClickHandler);
if(!oSettings.aanFeatures.p){nPaging.id=oSettings.sTableId+"_paginate";
nPrevious.id=oSettings.sTableId+"_previous";
nNext.id=oSettings.sTableId+"_next";
nPrevious.setAttribute("aria-controls",oSettings.sTableId);
nNext.setAttribute("aria-controls",oSettings.sTableId);
}},fnUpdate:function(oSettings,fnCallbackDraw){if(!oSettings.aanFeatures.p){return ;
}var oClasses=oSettings.oClasses;
var an=oSettings.aanFeatures.p;
var nNode;
for(var i=0,iLen=an.length;
i<iLen;
i++){nNode=an[i].firstChild;
if(nNode){nNode.className=(oSettings._iDisplayStart===0)?oClasses.sPagePrevDisabled:oClasses.sPagePrevEnabled;
nNode=nNode.nextSibling;
nNode.className=(oSettings.fnDisplayEnd()==oSettings.fnRecordsDisplay())?oClasses.sPageNextDisabled:oClasses.sPageNextEnabled;
}}}},iFullNumbersShowPages:5,full_numbers:{fnInit:function(oSettings,nPaging,fnCallbackDraw){var oLang=oSettings.oLanguage.oPaginate;
var oClasses=oSettings.oClasses;
var fnClickHandler=function(e){if(oSettings.oApi._fnPageChange(oSettings,e.data.action)){fnCallbackDraw(oSettings);
}};
$(nPaging).append('<a  tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+" "+oClasses.sPageFirst+'">'+oLang.sFirst+'</a><a  tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+" "+oClasses.sPagePrevious+'">'+oLang.sPrevious+'</a><span></span><a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+" "+oClasses.sPageNext+'">'+oLang.sNext+'</a><a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+" "+oClasses.sPageLast+'">'+oLang.sLast+"</a>");
var els=$("a",nPaging);
var nFirst=els[0],nPrev=els[1],nNext=els[2],nLast=els[3];
oSettings.oApi._fnBindAction(nFirst,{action:"first"},fnClickHandler);
oSettings.oApi._fnBindAction(nPrev,{action:"previous"},fnClickHandler);
oSettings.oApi._fnBindAction(nNext,{action:"next"},fnClickHandler);
oSettings.oApi._fnBindAction(nLast,{action:"last"},fnClickHandler);
if(!oSettings.aanFeatures.p){nPaging.id=oSettings.sTableId+"_paginate";
nFirst.id=oSettings.sTableId+"_first";
nPrev.id=oSettings.sTableId+"_previous";
nNext.id=oSettings.sTableId+"_next";
nLast.id=oSettings.sTableId+"_last";
}},fnUpdate:function(oSettings,fnCallbackDraw){if(!oSettings.aanFeatures.p){return ;
}var iPageCount=DataTable.ext.oPagination.iFullNumbersShowPages;
var iPageCountHalf=Math.floor(iPageCount/2);
var iPages=Math.ceil((oSettings.fnRecordsDisplay())/oSettings._iDisplayLength);
var iCurrentPage=Math.ceil(oSettings._iDisplayStart/oSettings._iDisplayLength)+1;
var sList="";
var iStartButton,iEndButton,i,iLen;
var oClasses=oSettings.oClasses;
var anButtons,anStatic,nPaginateList,nNode;
var an=oSettings.aanFeatures.p;
var fnBind=function(j){oSettings.oApi._fnBindAction(this,{page:j+iStartButton-1},function(e){oSettings.oApi._fnPageChange(oSettings,e.data.page);
fnCallbackDraw(oSettings);
e.preventDefault();
});
};
if(oSettings._iDisplayLength===-1){iStartButton=1;
iEndButton=1;
iCurrentPage=1;
}else{if(iPages<iPageCount){iStartButton=1;
iEndButton=iPages;
}else{if(iCurrentPage<=iPageCountHalf){iStartButton=1;
iEndButton=iPageCount;
}else{if(iCurrentPage>=(iPages-iPageCountHalf)){iStartButton=iPages-iPageCount+1;
iEndButton=iPages;
}else{iStartButton=iCurrentPage-Math.ceil(iPageCount/2)+1;
iEndButton=iStartButton+iPageCount-1;
}}}}for(i=iStartButton;
i<=iEndButton;
i++){sList+=(iCurrentPage!==i)?'<a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+'">'+oSettings.fnFormatNumber(i)+"</a>":'<a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButtonActive+'">'+oSettings.fnFormatNumber(i)+"</a>";
}for(i=0,iLen=an.length;
i<iLen;
i++){nNode=an[i];
if(!nNode.hasChildNodes()){continue;
}$("span:eq(0)",nNode).html(sList).children("a").each(fnBind);
anButtons=nNode.getElementsByTagName("a");
anStatic=[anButtons[0],anButtons[1],anButtons[anButtons.length-2],anButtons[anButtons.length-1]];
$(anStatic).removeClass(oClasses.sPageButton+" "+oClasses.sPageButtonActive+" "+oClasses.sPageButtonStaticDisabled);
$([anStatic[0],anStatic[1]]).addClass((iCurrentPage==1)?oClasses.sPageButtonStaticDisabled:oClasses.sPageButton);
$([anStatic[2],anStatic[3]]).addClass((iPages===0||iCurrentPage===iPages||oSettings._iDisplayLength===-1)?oClasses.sPageButtonStaticDisabled:oClasses.sPageButton);
}}}});
$.extend(DataTable.ext.oSort,{"string-pre":function(a){if(typeof a!="string"){a=(a!==null&&a.toString)?a.toString():"";
}return a.toLowerCase();
},"string-asc":function(x,y){return((x<y)?-1:((x>y)?1:0));
},"string-desc":function(x,y){return((x<y)?1:((x>y)?-1:0));
},"html-pre":function(a){return a.replace(/<.*?>/g,"").toLowerCase();
},"html-asc":function(x,y){return((x<y)?-1:((x>y)?1:0));
},"html-desc":function(x,y){return((x<y)?1:((x>y)?-1:0));
},"date-pre":function(a){var x=Date.parse(a);
if(isNaN(x)||x===""){x=Date.parse("01/01/1970 00:00:00");
}return x;
},"date-asc":function(x,y){return x-y;
},"date-desc":function(x,y){return y-x;
},"numeric-pre":function(a){return(a=="-"||a==="")?0:a*1;
},"numeric-asc":function(x,y){return x-y;
},"numeric-desc":function(x,y){return y-x;
}});
$.extend(DataTable.ext.aTypes,[function(sData){if(typeof sData==="number"){return"numeric";
}else{if(typeof sData!=="string"){return null;
}}var sValidFirstChars="0123456789-";
var sValidChars="0123456789.";
var Char;
var bDecimal=false;
Char=sData.charAt(0);
if(sValidFirstChars.indexOf(Char)==-1){return null;
}for(var i=1;
i<sData.length;
i++){Char=sData.charAt(i);
if(sValidChars.indexOf(Char)==-1){return null;
}if(Char=="."){if(bDecimal){return null;
}bDecimal=true;
}}return"numeric";
},function(sData){var iParse=Date.parse(sData);
if((iParse!==null&&!isNaN(iParse))||(typeof sData==="string"&&sData.length===0)){return"date";
}return null;
},function(sData){if(typeof sData==="string"&&sData.indexOf("<")!=-1&&sData.indexOf(">")!=-1){return"html";
}return null;
}]);
$.fn.DataTable=DataTable;
$.fn.dataTable=DataTable;
$.fn.dataTableSettings=DataTable.settings;
$.fn.dataTableExt=DataTable.ext;
}));
}(window,document));
$.extend(true,$.fn.dataTable.defaults,{sDom:"<'row'<'col-sm-8'f><'col-sm-8'l>r>t<'row'<'col-sm-8'i><'col-sm-8'p>>",sPaginationType:"bootstrap",oLanguage:{sLengthMenu:"Show _MENU_ Rows",sSearch:""}});
$.extend($.fn.dataTableExt.oStdClasses,{sWrapper:"dataTables_wrapper form-inline"});
$.fn.dataTableExt.oApi.fnPagingInfo=function(A){return{iStart:A._iDisplayStart,iEnd:A.fnDisplayEnd(),iLength:A._iDisplayLength,iTotal:A.fnRecordsTotal(),iFilteredTotal:A.fnRecordsDisplay(),iPage:A._iDisplayLength===-1?0:Math.ceil(A._iDisplayStart/A._iDisplayLength),iTotalPages:A._iDisplayLength===-1?0:Math.ceil(A.fnRecordsDisplay()/A._iDisplayLength)};
};
$.extend($.fn.dataTableExt.oPagination,{bootstrap:{fnInit:function(E,B,D){var A=E.oLanguage.oPaginate;
var F=function(G){G.preventDefault();
if(E.oApi._fnPageChange(E,G.data.action)){D(E);
}};
$(B).append('<ul class="pagination"><li class="prev disabled"><a href="#"><i class="icon-double-angle-left"></i> '+A.sPrevious+'</a></li><li class="next disabled"><a href="#">'+A.sNext+' <i class="icon-double-angle-right"></i></a></li></ul>');
var C=$("a",B);
$(C[0]).bind("click.DT",{action:"previous"},F);
$(C[1]).bind("click.DT",{action:"next"},F);
},fnUpdate:function(C,I){var J=5;
var E=C.oInstance.fnPagingInfo();
var H=C.aanFeatures.p;
var G,K,F,D,A,L,B=Math.floor(J/2);
if(E.iTotalPages<J){A=1;
L=E.iTotalPages;
}else{if(E.iPage<=B){A=1;
L=J;
}else{if(E.iPage>=(E.iTotalPages-B)){A=E.iTotalPages-J+1;
L=E.iTotalPages;
}else{A=E.iPage-B+1;
L=A+J-1;
}}}for(G=0,K=H.length;
G<K;
G++){$("li:gt(0)",H[G]).filter(":not(:last)").remove();
for(F=A;
F<=L;
F++){D=(F==E.iPage+1)?'class="active"':"";
$("<li "+D+'><a href="#">'+F+"</a></li>").insertBefore($("li:last",H[G])[0]).bind("click",function(M){M.preventDefault();
C._iDisplayStart=(parseInt($("a",this).text(),10)-1)*E.iLength;
I(C);
});
}if(E.iPage===0){$("li:first",H[G]).addClass("disabled");
}else{$("li:first",H[G]).removeClass("disabled");
}if(E.iPage===E.iTotalPages-1||E.iTotalPages===0){$("li:last",H[G]).addClass("disabled");
}else{$("li:last",H[G]).removeClass("disabled");
}}}}});
if($.fn.DataTable.TableTools){$.extend(true,$.fn.DataTable.TableTools.classes,{container:"DTTT btn-group",buttons:{normal:"btn",disabled:"disabled"},collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:"disabled"}},print:{info:"DTTT_print_info modal"},select:{row:"active"}});
$.extend(true,$.fn.DataTable.TableTools.DEFAULTS.oTags,{collection:{container:"ul",button:"li",liner:"a"}});
}var isIE=navigator.appVersion.indexOf("MSIE")!=-1;
var isMozilla=navigator.appName.indexOf("Netscape")!=-1;
function reDo(){if(origWidth!=innerWidth||origHeight!=innerHeight){location.reload();
}}function shortDump(A){var C="";
for(var B in A){C+=B+":"+A[B]+" ";
}alert(C);
}function dump(A){var C="";
for(var B in A){C+=B+":"+A[B]+"\n";
}alert(C);
}var MOUSEDOWN=1;
var MOUSEUP=2;
var MOUSEOVER=4;
var MOUSEOUT=8;
var MOUSEMOVE=16;
var LOAD=524288;
WindowX.all=[];
WindowX.add=WindowX_add;
WindowX.lookup=WindowX_lookup;
function WindowX_add(B){for(var A=0;
A<WindowX.all.length;
A++){if(WindowX.all[A].window==B.window){return ;
}}WindowX.all.push(B);
}function WindowX_lookup(C){for(var B=0;
B<WindowX.all.length;
B++){if(WindowX.all[B].window==C){WindowX.all[B].document=WindowX.all[B].window.document;
return WindowX.all[B];
}}var A=new WindowX(C);
WindowX.add(A);
return A;
}function WindowX(A,B){this.hasEventListeners=false;
this.eventListeners=[];
this.window=A.document?A:B;
this.document=this.window.document;
}WindowX.prototype.getScrollLeft=function(){return $(this.window).offset.left;
};
WindowX.prototype.getScrollTop=function(){return $(this.window).offset.top;
};
WindowX.prototype.scrollTo=function(B,A){$(this.window).scrollLeft(B).scrollTop(A);
};
WindowX.prototype.getWidth=function(){var A=this.window.document;
if(typeof (A.documentElement.clientWidth)!==undefined&&A.documentElement.clientWidth>0){return A.documentElement.clientWidth;
}if(typeof (A.body.clientWidth)!==undefined&&A.body.clientWidth>0){return A.body.clientWidth;
}if(typeof (A.body.offsetWidth)!==undefined&&A.body.offsetWidth>0){return A.body.offsetWidth;
}return 0;
};
WindowX.prototype.getHeight=function(){var A=this.window.document;
if(typeof (A.documentElement.clientHeight)!==undefined&&A.documentElement.clientHeight>0){return A.documentElement.clientHeight;
}if(typeof (A.body.clientHeight)!==undefined&&A.body.clientHeight>0){return A.body.clientHeight;
}if(typeof (A.body.offsetHeight)!==undefined&&A.body.offsetHeight>0){return A.body.offsetHeight;
}return 0;
};
WindowX.prototype.setTimeout=function(B,A){return this.window.setTimeout(B,A);
};
WindowX.prototype.clearTimeout=function(A){this.window.clearTimeout(A);
};
WindowX.prototype.insertLayer=function(A){$("<div></div>").attr("id",A).css({position:"absolute",visibility:"hidden"}).appendTo($(this.document.body));
return new LayerX(A,this.document);
};
WindowX.prototype.setBackgroundColor=function(A){$(this.document.body).css("backgroundColor",A);
};
WindowX.prototype.setMouseDown=function(A){this.document.onmousedown=A;
};
WindowX.prototype.setMouseUp=function(A){this.document.onmouseup=A;
};
WindowX.prototype.setMouseOver=function(A){this.document.onmouseover=A;
};
WindowX.prototype.setMouseOut=function(A){this.document.onmouseout=A;
};
WindowX.prototype.setMouseMove=function(A){this.document.onmousemove=A;
};
WindowX.prototype.setLoad=function(A){$(A);
};
WindowX.prototype.setUnload=function(A){$(this.window).off("unload");
$(this.window).on("unload",A);
};
WindowX.prototype.getMouseDown=function(){return this.document.onmousedown;
};
function notify(E){var C=new EventX(E,window);
var F=WindowX.lookup(window);
var A=false;
var D;
if(F!=null){var G=C.getCalculatedSource();
for(var B=0;
B<F.eventListeners.length;
B++){D=F.eventListeners[B].notify(G,C);
if(D){A=true;
}}}C.cancelBubble();
return A;
}WindowX.prototype.addEventListener=function(B){if(!this.hasEventListeners){this.hasEventListeners=true;
this.setMouseDown(notify);
this.setMouseUp(notify);
this.setMouseOver(notify);
this.setMouseOut(notify);
this.setMouseMove(notify);
if(isIE){window.oncontextmenu=function(){return false;
};
}}for(var A in this.eventListeners){if(this.eventListeners[A]==B){return ;
}}this.eventListeners[this.eventListeners.length]=B;
};
WindowX.prototype.removeEventListener=function(D){var B=-1;
for(var C=0;
C<this.eventListeners.length;
C++){if(this.eventListeners[C]==D){for(var A=C;
A<this.eventListeners.length-1;
A++){this.eventListeners[A]=this.eventListeners[A+1];
}this.eventListeners.length-=1;
break;
}}};
WindowX.prototype.removeAllEventListeners=function(){if(!this.hasEventListeners){return ;
}this.eventListeners=[];
this.hasEventListeners=false;
};
WindowX.prototype.addListener=function(A,B){$(this.document).on(A,B);
};
WindowX.prototype.removeListener=function(A,B){$(this.document).off(A,B);
};
WindowX.prototype.noDragAndDrop=function(){$(this.document.body).on("mousedown",function(A){A.preventDefault();
});
};
function LayerX(B,A){this.document=A?A:document;
this.layer=B.document?B:this.get(B);
}LayerX.prototype.get=function(A){return this.document.getElementById(A);
};
LayerX.prototype.clip=function(A,D,B,C){this.layer.style.clip="rect("+D+"px, "+(A+B)+"px, "+(D+C)+"px, "+A+"px)";
};
LayerX.prototype.move=function(A,D,B,C){this.layer.style.left=A+"px";
this.layer.style.top=D+"px";
if(B){this.layer.style.width=B+"px";
}if(C){this.layer.style.height=C+"px";
}};
LayerX.prototype.setVisible=function(A){this.layer.style.visibility=A?"visible":"hidden";
};
LayerX.prototype.isVisible=function(){return this.layer.style.visibility=="visible";
};
LayerX.prototype.setDisplay=function(A){this.layer.style.display=A;
};
LayerX.prototype.getDisplay=function(){return this.layer.style.display;
};
LayerX.prototype.setColor=function(A){this.layer.style.color=A;
};
LayerX.prototype.setZIndex=function(A){this.layer.style.zIndex=A;
};
LayerX.prototype.getZIndex=function(){return this.layer.style.zIndex;
};
LayerX.prototype.setBackgroundColor=function(A){this.layer.style.backgroundColor=A;
};
LayerX.prototype.setBackgroundImage=function(A){this.layer.style.backgroundImage="url("+A+")";
};
LayerX.prototype.getImage=function(A){return this.document.getElementById(A);
};
LayerX.prototype.moveAbove=function(A){this.layer.style.zIndex=A.layer.style.zIndex+1;
};
LayerX.prototype.getPageX=function(){return this.layer.offsetLeft;
};
LayerX.prototype.getPageY=function(){return this.layer.offsetTop;
};
LayerX.prototype.getWidth=function(){return this.layer.offsetWidth;
};
LayerX.prototype.getHeight=function(){return this.layer.offsetHeight;
};
LayerX.prototype.isInside=function(B,A){return(this.getPageX()<=B&&B<=this.getPageX()+this.getWidth())&&(this.getPageY()<=A&&A<=this.getPageY()+this.getHeight());
};
LayerX.prototype.replaceHtml=function(A){this.layer.innerHTML=A;
};
LayerX.prototype.setCursor=function(A){$(this.layer).css("cursor","cursor");
};
LayerX.prototype.setMouseDown=function(A){this.layer.onmousedown=A;
};
LayerX.prototype.setMouseUp=function(A){this.layer.onmouseup=A;
};
LayerX.prototype.setMouseMove=function(A){this.layer.onmousemove=A;
};
LayerX.prototype.setMouseOver=function(A){this.layer.onmouseover=A;
};
LayerX.prototype.noDragAndDrop=function(){$(this.layer).on("mousedown",function(A){A.preventDefault();
});
};
LayerX.prototype.addListener=function(A,B){$(this.layer).on(A,B);
};
LayerX.prototype.removeListener=function(A,B){$(this.layer).off(A,B);
};
LayerX.prototype.setStyles=function(A){$(this.layer).attr("style",A);
};
EventX.LEFTBUTTON=1;
EventX.MIDDLEBUTTON=2;
EventX.RIGHTBUTTON=3;
function EventX(A,B){this.event=$.event.fix(A?A:B.event);
this.window=WindowX.lookup(B);
}EventX.prototype.x=function(){return this.event.pageX;
};
EventX.prototype.y=function(){return this.event.pageY;
};
EventX.prototype.getType=function(){return this.event.type;
};
EventX.prototype.getSource=function(){return this.event.target;
};
EventX.prototype.getCalculatedSource=function(){if(!this.calculatedSource){this.calculatedSource=$(this.getSource()).parents("div:eq(0)");
}return this.calculatedSource;
};
EventX.prototype.isInsideOf=function(B){if(!B.id){return false;
}var A=new LayerX(B.id);
return A.isInside(this.x(),this.y());
};
EventX.prototype.isLeftButtonDown=function(){return this.whichButton(EventX.LEFTBUTTON);
};
EventX.prototype.whichButton=function(A){return this.event.which==A;
};
EventX.prototype.isAltDown=function(){return this.event.altKey;
};
EventX.prototype.isCtrlDown=function(){return this.event.ctrlKey;
};
EventX.prototype.cancelBubble=function(){this.event.stopPropagation();
};
EventX.prototype.stopPropagation=function(){this.cancelBubble();
this.event.preventDefault();
};
EventX.prototype.keyCode=function(){return this.event.which;
};
function EventListenerX(B,A){if(B.setTimeout){this.isWindow=true;
}else{this.isWindow=false;
}this.layerOrWindow=B;
this.target=A;
}EventListenerX.prototype.notify=function(A,B){if(this.layerOrWindow===A){return this.target.onEvent(B);
}return false;
};
function FontX(A,C,B,E,D){this.fontFamily=A?A:"Arial,Helvetica,sans-serif";
this.fontSize=C?C:"12pt";
this.fontWeight=B?B:"normal";
this.fontStyle=E?E:"normal";
this.textDecoration=D?D:"none";
}FontX.prototype.createCSS=function(B,C,A){return(B?B:"")+(C?"."+C:"")+"{font-family:'"+this.fontFamily+"';font-size:"+this.fontSize+";font-weight:"+this.fontWeight+";font-style:"+this.fontStyle+";text-decoration:"+this.textDecoration+(A?";color: "+A:"")+";}\n";
};
FontX.prototype.createCSSContent=function(){return"font-family:"+this.fontFamily+";font-size:"+this.fontSize+";font-weight:"+this.fontWeight+";font-style:"+this.fontStyle+";text-decoration:"+this.textDecoration+";";
};
FontX.prototype.setFontForClass=function(C,E,F,B){var A=$(C.document?C.document:C);
var D={"font-family":this.fontFamily,"font-size":this.fontSize,"font-weight":this.fontWeight,"font-style":this.fontStyle,"text-decoration":this.textDecoration};
if(B){D.color=B;
}A.css(D);
};
function MenuSeparator(A){this.parent=A;
this.index=null;
this.isSeparator=true;
this.isVisible=false;
}MenuSeparator.prototype.createHTML=function(A){this.index=A;
var B='<div id="SL1'+this.parent.name+this.index+'" '+absoluteString+'></div><div id="SL2'+this.parent.name+this.index+'" '+absoluteString+"></div>";
return B;
};
MenuSeparator.prototype.position=function(B,F,D){var E=this.parent.window.window.document;
var C=new LayerX("SL1"+this.parent.name+this.index,E);
var A=new LayerX("SL2"+this.parent.name+this.index,E);
C.move(B+this.parent.paddingSeparator,F+this.parent.paddingY+1,D-2*this.parent.paddingSeparator,1);
C.clip(0,0,D,1);
A.move(B+this.parent.paddingSeparator,F+this.parent.paddingY+2,D-2*this.parent.paddingSeparator,1);
A.clip(0,0,D,1);
C.setBackgroundColor(this.parent.threedShadow);
A.setBackgroundColor(this.parent.threedHighlight);
return 2*this.parent.paddingY+2;
};
MenuSeparator.prototype.setVisible=function(A){};
MenuSeparator.prototype.getWidth=function(){return 0;
};
MenuItem.subMenuIndicatorImage="/Bitmaps/Arrow/SubMenuIndicator.gif";
MenuItem.subMenuIndicatorImageH="/Bitmaps/Arrow/SubMenuIndicatorH.gif";
function MenuItem(E,C,D,B,A){this.parent=E;
this.index=null;
this.label=C.replace(/\s/g,"&nbsp;");
this.icon=D;
this.url=B;
this.enabled=A;
this.normalLayer=null;
this.arrowLayer=null;
this.subIndImage=null;
this.hasSubMenu=false;
this.subMenu=null;
this.timerId=null;
}MenuItem.prototype.createHTML=function(B,G,C){this.index=B;
var F=this.parent.name+this.index;
var A=G+"Menu.lookup('"+this.parent.name+"').";
var E='<div style="'+C+"margin:4px 8px 4px 8px;white-space:nowrap;";
if(this.icon){E+="background-image:url("+this.icon+");background-repeat:no-repeat;background-position:left center;padding-left:24px";
}E+='">'+this.label+"</div>";
var D='<div style="position:absolute" id="MenuItem'+F+'" onmousedown="'+A+"callURL("+this.index+')" onmouseover="'+A+"activateItem("+this.index+')" onmouseout="'+A+"deactivateItem("+this.index+')">'+E+"</div>";
if(this.hasSubMenu){D+='<div style="position:absolute" id="MenuItemArrow'+F+'"><img id="SubInd'+this.parent.name+this.index+'" name="SubInd'+F+'" src="'+MenuItem.subMenuIndicatorImage+'" border="0"></div>';
}return D;
};
MenuItem.prototype.attachTo=function(A){var B=this.parent.name+this.index;
this.normalLayer=new LayerX("MenuItem"+B,A);
if(this.hasSubMenu){this.arrowLayer=new LayerX("MenuItemArrow"+B,A);
this.subIndImage=this.arrowLayer.getImage("SubInd"+B);
}};
MenuItem.prototype.position=function(B,D,C){var A=this.normalLayer.getHeight();
this.normalLayer.move(B,D,C,A);
if(this.hasSubMenu){this.arrowLayer.move(B+C-13,D+4,13,A-4);
}return A;
};
MenuItem.prototype.getWidth=function(){this.attachTo(this.parent.window.window.document);
return isMozilla?this.normalLayer.layer.firstChild.offsetWidth+16:this.normalLayer.getWidth();
};
MenuItem.prototype.activate=function(){if(!this.enabled){return ;
}this.normalLayer.setColor(this.parent.highlightTextColor);
this.normalLayer.setBackgroundColor(this.parent.highlightBackgroundColor);
if(this.hasSubMenu){this.subIndImage.src=MenuItem.subMenuIndicatorImageH;
if(this.timerId!=null){this.parent.window.clearTimeout(this.timerId);
this.timerId=null;
if(this.subMenu.isVisible()){return ;
}}var A=this.parent.layer.getPageX()+this.parent.width;
var B=(isIE?this.parent.layer.getPageY():0)+this.normalLayer.getPageY()-this.parent.paddingY;
this.subMenu.layer.moveAbove(this.parent.layer);
this.subMenu.popupAt(A-6,B);
}};
MenuItem.prototype.deactivate=function(otherItemActivated){if(!this.enabled){return ;
}if(otherItemActivated||!this.hasSubMenu){this.normalLayer.setBackgroundColor(this.parent.backgroundColor);
this.normalLayer.setColor(this.enabled?this.parent.textColor:this.parent.disabledTextColor);
}if(this.hasSubMenu&&this.subMenu.isVisible()&&this.timerId==null&&otherItemActivated){this.timerId=this.parent.window.setTimeout(this.parent.staticContext+"Menu.lookup('"+this.subMenu.name+"').hide()",eval(this.parent.staticContext+"Menu.delay"));
this.subIndImage.src=MenuItem.subMenuIndicatorImage;
}};
MenuItem.prototype.hideSubMenu=function(){if(this.hasSubMenu&&this.subMenu.isVisible()){if(this.timerId!=null){this.parent.window.clearTimeout(this.timerId);
this.timerId=null;
}this.subMenu.hide();
}};
MenuItem.prototype.setEnabled=function(A){this.enabled=A;
if(this.isVisible){this.setVisible(this.isVisible);
}};
MenuItem.prototype.setVisible=function(A){this.isVisible=A;
this.normalLayer.setVisible(A);
this.normalLayer.setColor(this.enabled?this.parent.textColor:this.parent.disabledTextColor);
};
Menu.delay=400;
Menu.all=[];
Menu.activeMenu=null;
Menu.lookup=Menu_lookup;
Menu.dismissAll=Menu_hideAll;
function Menu_lookup(A){for(var B=0;
B<Menu.all.length;
B++){if(Menu.all[B].name==A){return Menu.all[B];
}}return null;
}function Menu_hideAll(){for(var A=0;
A<Menu.all.length;
A++){Menu.all[A].hide();
}}function Menu(B,A,C){Menu.all[Menu.all.length]=this;
this.textColor="Black";
this.disabledTextColor="Gray";
this.disabledTextShadowColor="Silver";
this.backgroundColor="Silver";
this.highlightTextColor="White";
this.highlightBackgroundColor="#000084";
this.threedDarkShadow="Black";
this.threedShadow="Gray";
this.threedHighlight="White";
this.threedBackground="Silver";
this.paddingX=3;
this.paddingY=3;
this.paddingSeparator=0;
this.templateLayer=null;
this.templateBorder=null;
this.name=B;
this.className=C?C:B;
this.font=A;
this.items=[];
this.layer=null;
this.window=null;
this.staticContext=null;
this.width=0;
}Menu.prototype.add=function(C,A){if(A||A===0){for(var B=this.items.length;
B>A;
B--){this.items[B]=this.items[B-1];
}}else{A=this.items.length;
}this.items[A]=C;
};
Menu.prototype.addItem=function(D,E,C,B,A){this.add(new MenuItem(this,D,E,C,typeof (B)=="undefined"||B?true:false),A);
};
Menu.prototype.addSeparator=function(A){this.add(new MenuSeparator(this,A));
};
Menu.prototype.addSubmenu=function(B,D,A){var C=new MenuItem(this,B,null,"javascript:void(0)",true);
this.add(C);
C.hasSubMenu=true;
C.subMenu=D;
this.hasSubmenus=true;
};
Menu.prototype.createHTML=function(){this.border=new BorderX(this.name);
this.border.threedDarkShadow=this.threedDarkShadow;
this.border.threedShadow=this.threedShadow;
this.border.threedHighlight=this.threedHighlight;
this.border.threedBackground=this.threedBackground;
var C=this.border.createHTML();
var D="-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;";
var B=this.font.createCSSContent()+"cursor:default;"+D;
for(var A=0;
A<this.items.length;
A++){C+=this.items[A].createHTML(A,this.staticContext,B);
}return C;
};
Menu.prototype.writeOn=function(C,D,A){if(!A){A=false;
}for(var B=0;
B<this.items.length;
B++){if(this.items[B].subMenu){this.items[B].subMenu.writeOn(C,D);
this.items[B].subMenu.hide();
}}this.staticContext=D?(D+"."):"";
this.window=WindowX.lookup(C);
this.layer=this.window.insertLayer(this.name);
this.layer.replaceHtml(this.createHTML());
this.positionMenuItems();
};
Menu.prototype.attachTo=function(C,A){if(this.templateLayer==null){this.templateLayer=this.layer;
this.templateBorder=this.border;
}this.window=WindowX.lookup(C);
if(isIE){if(!new LayerX(this.name,C.document).layer){C.document.body.insertAdjacentHTML("AfterBegin",this.templateLayer.layer.outerHTML);
}}else{if(isMozilla){C.document.body.appendChild(C.document.importNode(this.templateLayer.layer,true));
}}this.layer=new LayerX(this.name,C.document);
this.layer.setZIndex(100);
this.border=new BorderX();
this.border.document=C.document;
for(var B=0;
B<this.items.length;
B++){if(!this.items[B].isSeparator){if(this.items[B].subMenu){this.items[B].subMenu.attachTo(C);
}this.items[B].attachTo(this.window.window.document);
}}};
Menu.prototype.positionMenuItems=function(){var B=0;
var C=0;
for(C=0;
C<this.items.length;
C++){var E=this.items[C].getWidth();
if(E>B){B=E;
}}B++;
if(this.hasSubmenus){B+=3;
}var G=this.paddingY;
for(C=0;
C<this.items.length;
C++){G+=this.items[C].position(this.paddingX,G,B);
}this.layer.setBackgroundColor(this.backgroundColor);
var D=B+2*this.paddingX;
var A=G+this.paddingY;
this.layer.move(0,0,D,A);
this.width=D;
var F=this.window.window.document;
this.border.position(F,0,0,D,A);
};
Menu.prototype.callURL=function(index){if(!this.items[index].enabled){return ;
}var url=this.items[index].url;
if(url.substr(0,11)=="javascript:"){eval(url);
}else{this.window.window.location.href=url;
}};
Menu.prototype.activateItem=function(A){this.deactivateAllItems(A);
if(this.items[A].enabled){this.items[A].activate();
}};
Menu.prototype.deactivateItem=function(A){this.items[A].deactivate();
};
Menu.prototype.deactivateAllItems=function(B){for(var A=0;
A<this.items.length;
A++){if(A!=B&&this.items[A].enabled){this.items[A].deactivate(true);
}}};
Menu.prototype.popupAt=function(E,D){if(this.layer==null){return ;
}var B=this.window.getWidth()+this.window.getScrollLeft();
var A=this.window.getHeight()+this.window.getScrollTop();
if(E+this.layer.getWidth()>B){E=Math.max(0,B-(this.layer.getWidth()+16));
}if(D+this.layer.getHeight()>A){D=Math.max(0,A-this.layer.getHeight());
}this.layer.move(E,D);
for(var C=0;
C<this.items.length;
C++){this.items[C].setVisible(true);
}this.layer.setVisible(true);
Menu.activeMenu=this;
};
Menu.prototype.hide=function(){for(var A=0;
A<this.items.length;
A++){if(this.items[A].hideSubMenu){this.items[A].hideSubMenu();
}this.items[A].setVisible(false);
}this.deactivateAllItems(-1);
this.layer.setVisible(false);
Menu.activeMenu=null;
};
Menu.prototype.isVisible=function(){return this.layer.isVisible();
};
Menu.prototype.setItemEnabled=function(B,A){this.items[B].setEnabled(A);
};
function MenuBarItem(A,D,E,C,B){this.name=A;
this.index=null;
this.label=D;
this.menu=E;
this.enabled=C;
this.enabledLayer=null;
this.disabledLayer=null;
this.shadowLayer=null;
this.isHelpMenu=B?true:false;
this.width=-1;
this.height=-1;
this.activeBorder=null;
this.clickedBorder=null;
this.inset=8;
}MenuBarItem.prototype.createHTML=function(A,B){this.index=A;
this.activeBorder=new BorderX(this.name+this.index);
this.clickedBorder=new BorderX(this.name+"Clicked"+this.index);
var C=this.activeBorder.createHTML()+this.clickedBorder.createHTML();
C+='<div id="MenuBarItemEnabled'+this.name+this.index+'" style="'+B+'" onfocus="MenuBar.lookup(\''+this.name+"').noFocus (event)\" onMouseDown=\"javascript:return MenuBar.lookup('"+this.name+"').dropDownHandler(event,"+this.index+')" onmouseover="MenuBar.lookup(\''+this.name+"').activateItem("+this.index+')" onmouseout="MenuBar.lookup(\''+this.name+"').deactivateItem("+this.index+')" onselectstart="javascript:return false;" ondragstart="javascript:return false;"><p style="margin:0">'+this.label+'</p></div><div id="MenuBarItemDisabledShadow'+this.name+this.index+'" style="'+B+'">'+this.label+'</div><div id="MenuBarItemDisabled'+this.name+this.index+'" style="'+B+'" onselectstart="javascript:return false;" ondragstart="javascript:return false;">'+this.label+"</div>";
return C;
};
MenuBarItem.prototype.position=function(B,A,E,C){this.parent=B;
this.activeBorder.threedDarkShadow=B.threedShadow;
this.activeBorder.threedShadow=B.threedBackground;
this.activeBorder.threedHighlight=B.threedBackground;
this.activeBorder.threedBackground=B.threedHighlight;
this.clickedBorder.threedDarkShadow=B.threedHighlight;
this.clickedBorder.threedShadow=B.threedBackground;
this.clickedBorder.threedHighlight=B.threedBackground;
this.clickedBorder.threedBackground=B.threedShadow;
if(this.width==-1){if(isMozilla){this.width=this.enabledLayer.layer.firstChild.offsetWidth;
}else{this.width=this.enabledLayer.getWidth();
}this.width+=2*this.inset;
}if(this.height==-1){this.height=this.enabledLayer.getHeight();
}var D=(this.height<C)?((C-this.height)/2):0;
this.enabledLayer.move(A+this.inset,E+D-(this.enabled?0:1),this.width,C);
this.disabledLayer.move(A+this.inset,E+D-(this.enabled?0:1),this.width,C);
this.shadowLayer.move(A+this.inset+1,E+D+1,this.width-1,C-1);
this.setEnabled(this.enabled);
this.activeBorder.position(B.layer.layer.document,A,E,this.width,C);
this.activeBorder.setVisible(false);
this.clickedBorder.position(B.layer.layer.document,A,E,this.width,C);
this.clickedBorder.setVisible(false);
return this.width;
};
MenuBarItem.prototype.getHeight=function(B){this.enabledLayer=new LayerX("MenuBarItemEnabled"+this.name+this.index,B.layer.layer.document);
this.disabledLayer=new LayerX("MenuBarItemDisabled"+this.name+this.index,B.layer.layer.document);
this.shadowLayer=new LayerX("MenuBarItemDisabledShadow"+this.name+this.index,B.layer.layer.document);
var A=this.enabledLayer.getHeight();
return A;
};
MenuBarItem.prototype.activate=function(){this.activeBorder.setVisible(this.parent.openMenu==-1);
this.clickedBorder.setVisible(this.parent.openMenu!=-1);
};
MenuBarItem.prototype.deactivate=function(){this.activeBorder.setVisible(false);
this.clickedBorder.setVisible(false);
};
MenuBarItem.prototype.dropDown=function(B){var A=(isIE?B.layer.getPageX():0)+this.enabledLayer.getPageX()-B.paddingX-this.inset;
var D=B.layer.getPageY()+B.height;
if(this.isHelpMenu){A=B.width-this.menu.width;
var C=this.menu.window.window;
if((isIE&&C.document.body.scrollHeight>C.document.body.clientHeight)||(isMozilla&&C.document.height>C.innerHeight)){A-=20;
}}this.menu.popupAt(A,B.usesFrames?B.menusWindow.getScrollTop():D);
};
MenuBarItem.prototype.setEnabled=function(A){this.enabled=A;
this.enabledLayer.setVisible(this.enabled);
this.disabledLayer.setVisible(!this.enabled);
this.shadowLayer.setVisible(!this.enabled);
this.enabledLayer.setColor(this.parent.textColor);
this.disabledLayer.setColor(this.parent.disabledTextColor);
this.shadowLayer.setColor(this.parent.disabledTextShadowColor);
};
MenuBar.delay=400;
MenuBar.all=[];
MenuBar.lookup=MenuBar_lookup;
MenuBar.dismissAll=MenuBar_hideAll;
function MenuBar_lookup(A){for(var B=0;
B<MenuBar.all.length;
B++){if(MenuBar.all[B].name==A){return MenuBar.all[B];
}}return null;
}function MenuBar_hideAll(){for(var A=0;
A<MenuBar.all.length;
A++){MenuBar.all[A].hide();
}}function MenuBar(C,B,A){MenuBar.all[MenuBar.all.length]=this;
this.textColor="Black";
this.disabledTextColor="Gray";
this.disabledTextShadowColor="White";
this.backgroundColor="Silver";
this.highlightTextColor="White";
this.highlightBackgroundColor="#000084";
this.threedDarkShadow="Black";
this.threedShadow="Gray";
this.threedHighlight="White";
this.threedBackground="Silver";
this.paddingX=1;
this.paddingY=1;
this.name=C;
this.font=B;
this.usesFrames=A;
this.items=[];
this.layer=null;
this.window=null;
this.menusWindow=null;
this.width=0;
this.height=0;
this.maxHeight=0;
this.openMenu=-1;
this.helpMenu=null;
this.border=null;
}MenuBar.prototype.add=function(C,A){if(A||A===0){for(var B=this.items.length;
B>A;
B--){this.items[B]=this.items[B-1];
}}else{A=this.items.length;
}this.items[A]=C;
};
MenuBar.prototype.addItem=function(D,E,C,A,B){this.add(new MenuBarItem(this.name,D,E,C,A));
};
MenuBar.prototype.createHTML=function(){this.border=new BorderX(this.name);
var C=this.border.createHTML();
var D="-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;";
var B=this.font.createCSSContent()+"position:absolute;cursor:default;"+D;
for(var A=0;
A<this.items.length;
A++){C+=this.items[A].createHTML(A,B);
}return C;
};
MenuBar.prototype.writeOn=function(A){this.window=WindowX.lookup(A);
this.layer=this.window.insertLayer(this.name);
this.layer.replaceHtml(this.createHTML());
this.window.setMouseDown(deactivateAll);
};
MenuBar.prototype.writeMenusOn=function(B,D){this.menusWindow=WindowX.lookup(B);
var C=this.window.window;
for(var A=0;
A<this.items.length;
A++){if(!this.initialized){this.items[A].menu.writeOn(C,D,A===0);
}if(this.usesFrames){this.items[A].menu.attachTo(B,A===0);
}this.items[A].menu.hide();
}this.initialized=true;
if(!this.usesFrames){this.menusWindow.setMouseDown(deactivateAll);
}};
function deactivateAll(event){try{var i=0;
var sMenuBar=eval((deactivateAll.staticContext?(deactivateAll.staticContext+"."):"")+"MenuBar");
for(i=0;
i<sMenuBar.all.length;
i++){var bar=sMenuBar.all[i];
var index=bar.openMenu;
if(index!=-1){bar.dropDown(index);
bar.deactivateItem(index);
}}var sMenu=eval((deactivateAll.staticContext?(deactivateAll.staticContext+"."):"")+"Menu");
for(i=0;
i<sMenu.all.length;
i++){sMenu.all[i].hide();
}}catch(ex){}}MenuBar.prototype.positionMenuBarItems=function(){var B=0;
for(B=0;
B<this.items.length;
B++){var A=this.items[B].getHeight(this);
if(A>this.maxHeight){this.maxHeight=A;
}}this.width=this.paddingX;
for(B=0;
B<this.items.length;
B++){if(this.items[B].isHelpMenu){this.helpMenu=this.items[B];
}else{this.width+=this.items[B].position(this,this.width,this.paddingY,this.maxHeight);
}}if(this.helpMenu!=null){this.width+=this.helpMenu.position(this,this.width,this.paddingY,this.maxHeight);
}this.width+=this.paddingX;
this.height=this.maxHeight+2*this.paddingY;
this.layer.move(0,0,this.width,this.height);
this.border.threedDarkShadow=this.threedShadow;
this.border.threedShadow=this.threedBackground;
this.border.threedHighlight=this.threedBackground;
this.border.threedBackground=this.threedHighlight;
this.border.position(this.layer.layer.document,0,0,this.width,this.height);
};
MenuBar.prototype.activateItem=function(A){for(var B=0;
B<this.items.length;
B++){if(B!=A&&this.items[B].enabled){this.items[B].deactivate();
}}this.items[A].activate();
if(this.openMenu!=-1&&this.openMenu!=A){this.dropDown(A);
}};
MenuBar.prototype.deactivateItem=function(A){if(this.openMenu==-1){this.items[A].deactivate();
}};
MenuBar.prototype.popupAt=function(C,H,D,G){var F=0;
if(this.layer==null){return ;
}for(F=0;
F<this.items.length;
F++){var B=this.items[F].getHeight(this);
if(B>this.maxHeight){this.maxHeight=B;
}}if(G){this.maxHeight=G-2*this.paddingY;
}this.width=this.paddingX;
for(F=0;
F<this.items.length;
F++){if(this.items[F].isHelpMenu){this.helpMenu=this.items[F];
}else{this.width+=this.items[F].position(this,this.width,this.paddingY,this.maxHeight);
}}if(this.helpMenu!=null){this.width+=this.helpMenu.position(this,this.width,this.paddingY,this.maxHeight);
}if(this.helpMenu!=null&&D){this.helpMenu.position(this,(D-this.helpMenu.width)-this.paddingX,this.paddingY,this.maxHeight);
}this.layer.setBackgroundColor(this.backgroundColor);
this.width+=this.paddingX;
this.height=this.maxHeight+2*this.paddingY;
var E=this.window.getWidth()+this.window.getScrollLeft();
var A=this.window.getHeight()+this.window.getScrollTop();
if(C+this.layer.getWidth()>E){C=E-(this.layer.getWidth()+16);
}if(H+this.layer.getHeight()>A){H=A-this.layer.getHeight();
}if(D){this.width=D;
}this.layer.move(C,H,this.width,this.height);
this.border.threedDarkShadow=this.threedShadow;
this.border.threedShadow=this.threedBackground;
this.border.threedHighlight=this.threedBackground;
this.border.threedBackground=this.threedHighlight;
this.border.position(this.layer.layer.document,0,0,this.width,this.height);
this.layer.setVisible(true);
};
MenuBar.prototype.hide=function(){this.layer.setVisible(false);
};
MenuBar.prototype.isVisible=function(){return this.layer.isVisible();
};
MenuBar.prototype.dropDownHandler=function(B,A){var C=new EventX(B,this.window.window);
C.cancelBubble();
this.dropDown(A);
return true;
};
MenuBar.prototype.dropDown=function(B){var A=-1;
if(this.openMenu!=-1){this.items[this.openMenu].menu.hide();
}if(this.openMenu!=B){this.items[B].dropDown(this);
if(this.openMenu!=-1){this.items[this.openMenu].deactivate();
}}this.openMenu=(this.openMenu==B)?-1:B;
this.items[B].activate();
};
MenuBar.prototype.noFocus=function(A){var B=new EventX(A,this.window.window);
if(B.getSource().blur){B.getSource().blur();
}};
MenuBar.prototype.setItemEnabled=function(B,A){this.items[B].setEnabled(A);
};
MenuManager.instance=null;
function MenuManager_get(){if(MenuManager.instance==null){MenuManager.instance=new MenuManager();
}return MenuManager.instance;
}MenuManager.get=MenuManager_get;
function MenuManager(){this.loader=null;
this.menuLoc=null;
this.menuLocWin=null;
this.menuLocWithFrames=null;
this.menuBarPath=null;
this.oldDoc=null;
this.menuLocUseWithFrames=null;
}MenuManager.prototype.register=function(B,E,C,D,A){this.menuBar=B;
this.menuLoc=C;
this.menuLocWithFrames=C;
this.menuBarPath=D;
if(A){this.menuLocUseWithFrames=A;
}this.loader=WindowX.lookup(E);
setTimeout("MenuManager_checkState()",50);
};
MenuManager.prototype.loaded=function(){if(isMozilla){clearTimeout(stateCheckerTimer);
}var A=MenuManager.get();
A.menuLoc=A.menuLocWithFrames;
if(A.menuLocUseWithFrames){if(A.menuLocWithFrames.frames!=null&&A.menuLocWithFrames.frames.length>0){A.menuLoc=A.menuLocWithFrames.frames[0];
}}A.menuLocWin=WindowX.lookup(A.menuLoc);
A.menuLocWin.setUnload(unloaded);
A.updateMenuBar(true);
};
function unloaded(){if(typeof (MenuManager)!="undefined"){var A=MenuManager.get();
A.menuLoc=A.menuLocWithFrames;
A.updateMenuBar(false);
if(isMozilla){this.oldDoc=A.menuLoc.document;
}setTimeout("MenuManager_checkState()",50);
}}MenuManager.prototype.updateMenuBar=function(B){for(var A=0;
A<this.menuBar.items.length;
A++){this.menuBar.setItemEnabled(A,B);
}if(!B){return ;
}updateMenus(this.menuLoc,B);
this.menuBar.writeMenusOn(this.menuLocWin.window,this.menuBarPath);
};
function updateMenus(A,B){}var stateCheckerTimer;
function MenuManager_checkState(){try{var B=MenuManager.get();
if((isIE&&B.menuLoc.document.readyState=="complete")||(isMozilla&&this.oldDoc!=B.menuLoc.document)){B.loaded();
}else{setTimeout("MenuManager_checkState()",50);
}}catch(A){setTimeout("MenuManager_checkState()",50);
}}function setupAdditional(){userMenu.addItem(JS_APPLICATION_1,"    ","javascript:parent.MenuBar.callURL('/servlet/is/Grantee..Chart/')",true,2);
entryMenuHandler.addItem(JS_APPLICATION_3,"    ","javascript:parent.MenuBar.perform('history')",12,2,true,false);
entryMenuHandler.addItem(JS_APPLICATION_4,"/Bitmaps/Menu/Relations.gif","javascript:perform(\\'editRelations\\')",4,4,true,true);
entryMenuHandler.addItem(String_Menu_Edit_Import+" OWL","/Bitmaps/Menu/Import.gif","javascript:perform(\\'ImportOWL\\')",11,16,true,false);
entryMenuHandler.addItem(JS_APPLICATION_5,"/Bitmaps/Menu/Empty.gif","javascript:parent.MenuBar.perform('Abo')",14,2,true,false);
extrasMenu.addItem(JS_WASTEBASKET,"/Bitmaps/Menu/Wastebasket.gif","javascript:parent.MenuBar.callURL('/servlet/is/Entry..DisplayWastebasket/')",true,2);
window.deleteEntry=function A(){if(!parent.Contents.entry){return ;
}var C=this.targetId();
var B=(C==parent.Contents.entry.id)?parent.format(STRING_Command_deleteEntry1,parent.Contents.entry.name,C):parent.format(STRING_Command_deleteEntry2,C);
if(window.confirm(B)){this.perform("deleteToWastebasket");
}Menu.dismissAll();
};
}function createCategories(){with(categoriesMenu){addItem("Adressbuch","/Bitmaps/Category/Address.16.gif","javascript:this.perform ('Add','?category=9')");
addItem("Bild","/Bitmaps/Category/Image.16.gif","javascript:this.perform ('Add','?category=3')");
addItem("Diskussionsforum","/Bitmaps/Category/Letters.16.gif","javascript:this.perform ('Add','?category=4')");
addItem("Dokument","/Bitmaps/Category/Document.16.gif","javascript:this.perform ('Add','?category=2')");
addItem("Formular","/Bitmaps/Category/Form.16.gif","javascript:this.perform ('Add','?category=14')");
addItem("Globaler Verweis","/Bitmaps/Category/GlobalLink.16.gif","javascript:this.perform ('Add','?category=13')");
addItem("Glossarbegriff","/Bitmaps/Category/Glossary.16.gif","javascript:this.perform ('Add','?category=22')");
addItem("Ontologie","/Bitmaps/Category/Ontology.16.gif","javascript:this.perform ('Add','?category=24')");
addItem("Posteingang","/Bitmaps/Category/NewsGroupMailbox.16.gif","javascript:this.perform ('Add','?category=33055')");
addItem("Remote Ontologie","/Bitmaps/Category/Ontology.16.gif","javascript:this.perform ('Add','?category=50')");
addItem("Semantische Anfrage","/Bitmaps/Category/Query.16.gif","javascript:this.perform ('Add','?category=29')");
addItem("Template","/Bitmaps/Category/Document.16.gif","javascript:this.perform ('Add','?category=2010')");
addItem("Terminkalender","/Bitmaps/Category/Calendar.16.gif","javascript:this.perform ('Add','?category=11')");
addItem("Verteilerliste","/Bitmaps/Category/DistributionList.16.gif","javascript:this.perform ('Add','?category=20')");
addItem("Verzeichnis","/Bitmaps/Category/Folder.Opened.16.gif","javascript:this.perform ('Add','?category=1')");
addItem("Workflow","/Bitmaps/Category/Workflow.16.gif","javascript:this.perform ('Add','?category=30')");
addSeparator();
addItem("Querverweis","/Bitmaps/Category/Link.16.gif","javascript:this.perform ('Add', '?category=-1')");
}}var entryMenuHandler=null;
var categoriesMenu=null;
var extrasMenu=null;
var entryMenu=null;
var entryPopupMenu=null;
var menu=null;
var sectionsMenu=null;
var menuManager=null;
var bar=null;
var eventWindow=null;
function setup(){var fontFamily="Arial,Helvetica,sans-serif";
var fontSize="13px";
var font=new FontX(fontFamily,fontSize);
categoriesMenu=new Menu("MCategories",font,"xyz");
createCategories();
with(entryMenuHandler=new EntryMenuHandler(font)){addItem(String_Menu_Edit_Meta,"/Bitmaps/Menu/Metadata.gif","javascript:this.editEntry()",null,4,true,true);
addItem(String_Menu_Edit_Access,"/Bitmaps/Menu/Access.gif","javascript:this.editGrants()",null,64,true,true);
addItem(String_Menu_Edit_Contents,"/Bitmaps/Menu/Contents.gif","javascript:this.editContent()",null,4,true,true);
addItem(String_Menu_Edit_Layout,"/Bitmaps/Menu/Layout.gif","javascript:this.editDisplayPage()",null,4,true,true);
addSeparator(true);
addItem(String_Menu_Edit_Copy,"/Bitmaps/Menu/Copy.gif","javascript:this.copyEntry()",null,4,true,false);
addItem(String_Menu_Edit_Move,"/Bitmaps/Menu/Move.gif","javascript:this.moveEntry()",null,16,true,false);
addItem(String_Menu_Edit_Remove,"/Bitmaps/Menu/Delete.gif","javascript:this.deleteEntry()",null,16,true,false);
addSeparator(true);
addItem(String_Menu_Edit_Import,"/Bitmaps/Menu/Import.gif","javascript:this.importEntry()",null,16,true,false);
addItem(String_Menu_Edit_Export,"/Bitmaps/Menu/Export.gif","javascript:this.exportEntry()",null,256,true,false);
addSeparator(true);
addItem(String_Menu_Edit_Properties,"/Bitmaps/Menu/Properties.gif","javascript:this.showProperties()",null,2,true,false);
}entryMenu=entryMenuHandler.menu;
entryPopupMenu=entryMenuHandler.popupMenu;
sectionsMenu=entryMenuHandler.sectionsMenu;
setMenuColors(entryMenu);
setMenuColors(sectionsMenu);
setMenuColors(categoriesMenu);
setPopupMenuColors(entryPopupMenu);
function Sections_popup(event){var e=new EventX(event,window);
sectionsMenu.popupAt(e.x(),e.y());
}sectionsMenu.popup=Sections_popup;
with(userMenu=new Menu("User",font,"xyz")){addItem(String_Menu_Extras_Logout,'<i class="fa fa-user"></i>',"javascript:this.callURL('/servlet/is/Grantee..login/?aspect=status')");
addItem(String_Menu_Extras_Settings,'<i class="fa fa-credit-card"></i>',"javascript:this.callURL('/servlet/is/Grantee..preferences/')");
addItem(String_Menu_Search_Last,'<i class="fa fa-clipboard"></i>',"javascript:this.callURL('/servlet/is/Grantee..RecentWork/')");
addSeparator();
addItem(String_Menu_Nav_Goto_Home,'<i class="fa fa-home"></i>',"javascript:this.callURL('/servlet/is/Grantee..goHome/')");
addSeparator();
addItem(String_Menu_Extras_UserGroup,'<i class="fa fa-users"></i>',"javascript:this.callURL('/servlet/is/Grantee..Tree/')");
addItem(STRING_EditGrantee_Menu,'<i class="fa fa-users"></i>',"javascript:this.callURL('/servlet/is/Grantee.0.Manage/')");
}setMenuColors(userMenu);
function User_setEnablement(anEntry){for(var i=0;
i<userMenu.items.length;
i++){if(userMenu.items[i].url&&userMenu.items[i].url.indexOf("addBookmark")!=-1){userMenu.items[i].setEnabled(anEntry?true:false);
}}}userMenu.setEnablement=User_setEnablement;
with(extrasMenu=new Menu("Extras",font,"xyz")){addItem(String_Menu_Nav_OverviewEntry,"/Bitmaps/Menu/TreeForEntry.gif","javascript:parent.popupNavigator()");
addItem(String_Menu_Nav_Overview,"/Bitmaps/Menu/Tree.gif","javascript:parent.popupNavigatorOn(1)");
addSeparator();
addItem(String_Menu_Search,"/Bitmaps/Menu/Search.gif","javascript:this.callURL('/servlet/is/Entry..search/')");
addItem(String_Menu_Search_New,"/Bitmaps/Menu/Empty.gif","javascript:this.callURL('/servlet/is/Global..ShowNews/')");
addSeparator();
addItem(String_Menu_Extras_Explorer,"/Bitmaps/Menu/Explorer.gif","javascript:this.toggleExplorerMode()");
}setMenuColors(extrasMenu);
with(helpMenu=new Menu("Help",font,"xyz")){addItem(String_Menu_Help_Overview,"/Bitmaps/Menu/Help.gif","javascript:parent.popupNavigatorOn(20,2,420,600)");
addSeparator();
addItem(String_Menu_Extras_Info,"/Bitmaps/Menu/About.gif","javascript:this.callURL('/servlet/is/Global..Version/')");
}setMenuColors(helpMenu);
setupAdditional();
}function setBarColors(A){A.textColor="#333377";
A.disabledTextColor="#CCCCCC";
A.disabledTextShadowColor="#B1B1C0";
A.backgroundColor="#CCCCDD";
A.highlightTextColor="#5A5A76";
A.highlightBackgroundColor="#FFFFFF";
A.threedBackground="#CCCCDD";
}function setMenuColors(A){A.textColor="#FFFFFF";
A.disabledTextColor="#CCCCCC";
A.disabledTextShadowColor="#5A5A76";
A.backgroundColor="#777799";
A.highlightTextColor="#000000";
A.highlightBackgroundColor="#FFFFDD";
A.threedDarkShadow="#000000";
A.threedShadow="#5A5A76";
A.threedHighlight="#BEBEBE";
A.threedBackground="#777799";
A.paddingX=8;
A.paddingY=8;
}function setPopupMenuColors(A){A.textColor="#FFFFFF";
A.disabledTextColor="#CCCCCC";
A.disabledTextShadowColor="#5A5A76";
A.backgroundColor="#BB7777";
A.highlightTextColor="#000000";
A.highlightBackgroundColor="#FFFFDD";
A.threedDarkShadow="#000000";
A.threedShadow="#5A5A76";
A.threedHighlight="#BEBEBE";
A.threedBackground="#777799";
A.paddingX=8;
A.paddingY=8;
}function EntryMenuHandler(A){this.addItem=E;
this.addSeparator=B;
this.addSubmenu=D;
this.setEnablement=C;
this.menu=new Menu("Entry",A,"xyz");
this.popupMenu=new Menu("PopupEntry",A);
this.sectionsMenu=new Menu("Section",A,"xyz");
function E(I,J,G,H,F,L,K){this.menu.addItem(I,J,G,true,H);
this.menu.items[H?H:this.menu.items.length-1].grants=F;
if(L){this.popupMenu.addItem(I,J,G,true,H);
}if(K){this.sectionsMenu.addItem(I,J,G,true,H);
}}function D(G,H,F){this.menu.addSubmenu(G,H);
this.menu.items[this.menu.items.length-1].grants=F;
}function B(G,F){this.menu.addSeparator();
if(G){this.popupMenu.addSeparator();
}if(F){this.sectionsMenu.addSeparator();
}}function C(F){var G=F!=null;
bar.setItemEnabled(0,G);
bar.setItemEnabled(1,G);
if(!G){return ;
}for(var H=0;
H<this.menu.items.length;
H++){var I=this.menu.items[H];
if(!I.isSeparator){I.setEnabled(F.grants&I.grants);
}}}}function displayEntry(){this.perform("display");
}function showProperties(){this.perform("properties");
}function copyEntry(){this.perform("copy");
}function moveEntry(){this.perform("move");
}function editEntry(){this.perform("editMetadata");
}function editGrants(){this.perform("editGrants");
}function editContent(){this.perform("editContent","x.iitb");
Menu.dismissAll();
}function editDisplayPage(){this.perform("editDisplayPage","x.iitb");
Menu.dismissAll();
}function exportEntry(){this.perform("export");
}function importEntry(){this.perform("import");
}function deleteEntry(){if(!this.entry){return ;
}var B=this.targetId();
var A=(B==this.entry.id)?parent.format(STRING_Command_deleteEntry1,this.entry.name,B):parent.format(STRING_Command_deleteEntry2,B);
if(window.confirm(A)){this.perform("delete");
}Menu.dismissAll();
}function perform(A,B){if(this.entry){cmd="/servlet/is/Entry."+this.targetId()+"."+A+"/";
if(B){cmd+=B;
}this.location.href=cmd;
}}function targetId(){var A=Menu.activeMenu;
return(A&&A.entry&&A.entry.id)?A.entry.id:this.entry.id;
}function callURL(A){this.location.href=A;
}function toggleExplorerMode(){parent.location.href=parent.Tree?"/Authors":"/Authors/explorer.html";
}function linkOrMenu(B,D,A){deactivateAll();
if(this.entry&&eventWindow){var C=new EventX(B,eventWindow);
if(!D){D=this.entry.id;
}if(!A){A=255;
}if(C.isAltDown()){if(D==this.entry.id){menu=entryMenu;
}else{menu=entryPopupMenu;
menu.entry={id:D};
}C.cancelBubble();
menu.popupAt(C.x(),C.y());
return false;
}}return true;
}function updateMenus(B,D){Menu.activeMenu=null;
var A=B.entry?B.entry:null;
var C=A&&A.id>0;
eventWindow=B;
entryMenuHandler.setEnablement(C?A:null);
if(C){entryPopupMenu.attachTo(B);
entryPopupMenu.hide();
if(B.isEditing){sectionsMenu.attachTo(B);
sectionsMenu.hide();
}B.document.onmousedown=linkOrMenu;
}else{B.document.onmousedown=wrapper;
}userMenu.setEnablement(A);
}function wrapper(A){deactivateAll(A);
}(function(F){function G(J,H){var K=decodeURIComponent(J);
if(K.length<=H){return J;
}var I=K.substring(0,H-1).lastIndexOf(" ");
K=encodeURIComponent(K.substring(0,I))+"\u2026";
return K;
}function A(I){var H=F('meta[name="'+I+'"]').attr("content");
return H||"";
}function B(){var I=A("DC.title");
var H=A("DC.creator");
if(I.length>0&&H.length>0){I+=" - "+H;
}else{I=F("title").text();
}return encodeURIComponent(I);
}function E(){var I=document.location.href;
var H=F("link[rel=canonical]").attr("href");
if(H&&H.length>0){if(H.indexOf("http")<0){H=document.location.protocol+"//"+document.location.host+H;
}I=H;
}return I;
}function C(I,K,M,L,J){var H=new Date();
H.setTime(H.getTime()+(M*24*60*60*1000));
document.cookie=I+"="+K+"; expires="+H.toUTCString()+"; path="+L+"; domain="+J;
}function D(I,K,L,J){var H=new Date();
H.setTime(H.getTime()-100);
document.cookie=I+"="+K+"; expires="+H.toUTCString()+"; path="+L+"; domain="+J;
}F.fn.socialSharePrivacy=function(H){var I={services:{facebook:{status:"on",dummy_img:"/js/ISCore/socialshareprivacy/images/dummy_facebook.png",perma_option:"on",referrer_track:"",action:"recommend",layout:"button_count",sharer:{status:"off",dummy_img:"/js/ISCore/socialshareprivacy/images/dummy_facebook_share_de.png",img:"/js/ISCore/socialshareprivacy/images/dummy_facebook_share_active_de.png"}},twitter:{status:"on",dummy_img:"/js/ISCore/socialshareprivacy/images/dummy_twitter.png",perma_option:"on",referrer_track:"",tweet_text:B,count:"horizontal"},gplus:{status:"on",dummy_img:"/js/ISCore/socialshareprivacy/images/dummy_gplus.png",perma_option:"on",referrer_track:"",size:"medium"}},info_link:"http://www.heise.de/ct/artikel/2-Klicks-fuer-mehr-Datenschutz-1333879.html",cookie_path:"/",cookie_domain:document.location.host,cookie_expires:"365",css_path:"/js/ISCore/socialshareprivacy/socialshareprivacy.css",uri:E,language:"de",lang_path:"/js/ISCore/socialshareprivacy/lang/",skin:"light",alignment:"horizontal",switch_alignment:"left",perma_orientation:"down"};
var P=F.extend(true,I,H);
var N=(P.services.facebook.status==="on");
var J=(P.services.facebook.sharer.status==="on");
var L=(P.services.twitter.status==="on");
var M=(P.services.gplus.status==="on");
if(!N&&!L&&!M){return ;
}if(P.css_path.length>0&&F(window).data("socialshareprivacy_css")!="1"){if(document.createStyleSheet){document.createStyleSheet(P.css_path);
}else{F("head").append('<link rel="stylesheet" type="text/css" href="'+P.css_path+'" />');
}F(window).data("socialshareprivacy_css","1");
}var K;
function O(){var Q=F.Deferred();
F.getJSON(P.lang_path+P.language+".lang",function(R){K=R;
Q.resolve();
}).fail(function(R){if(typeof console!=="undefined"){console.log("Error "+R.status+" while loading the language file ("+P.lang_path+P.language+".lang)");
}Q.reject();
});
return Q.promise();
}return this.each(function(){var Q=this;
F.when(O()).then(function(){F(Q).prepend('<ul class="social_share_privacy_area clearfix"></ul>');
var V=F(".social_share_privacy_area",Q);
if(P.skin=="dark"){F(V).addClass("skin-dark");
}if(P.alignment=="vertical"){F(V).addClass("vertical");
if(P.switch_alignment=="right"&&((N&&P.services.facebook.layout=="box_count")||(!N))&&((L&&P.services.twitter.count=="vertical")||(!L))&&((M&&P.services.gplus.size=="tall")||(!M))){F(V).addClass("switch_right");
}}var a=P.uri;
if(typeof a==="function"){a=a(V);
}if(N){var u;
var S;
var x=P.services.facebook.layout=="box_count"?"61":"21";
var d=P.services.facebook.layout=="box_count"?"90":"130";
var p=encodeURIComponent(a+P.services.facebook.referrer_track);
if(J){u='<img src="'+P.services.facebook.sharer.dummy_img+'" alt="Facebook &quot;Share&quot;-Dummy" class="fb_like_privacy_dummy" />';
S='<a href="#" onclick="window.open(\'https://www.facebook.com/sharer/sharer.php?u='+p+"', 'facebook-share-dialog', 'width=626,height=436'); return false;\"><img src=\""+P.services.facebook.sharer.img+'" alt="" /></a>';
}else{u='<img src="'+P.services.facebook.dummy_img+'" alt="Facebook &quot;Like&quot;-Dummy" class="fb_like_privacy_dummy" />';
S='<iframe src="//www.facebook.com/plugins/like.php?locale='+K.services.facebook.language+"&amp;href="+p+"&amp;width="+d+"&amp;layout="+P.services.facebook.layout+"&amp;action="+P.services.facebook.action+"&amp;show_faces=false&amp;share=false&amp;height="+x+"&amp;colorscheme="+P.skin+'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'+d+"px; height:"+x+'px;" allowTransparency="true"></iframe>';
}V.append('<li class="facebook help_info clearfix"><span class="info">'+K.services.facebook.txt_info+'</span><a href="#" class="switch off">'+K.services.facebook.txt_fb_off+'</a><div class="fb_like dummy_btn">'+u+"</div></li>");
var U=F("li.facebook",V);
F(V).on("click","li.facebook div.fb_like img.fb_like_privacy_dummy,li.facebook .switch",function(i){i.preventDefault();
if(U.find(".switch").hasClass("off")){U.addClass("info_off");
U.find(".switch").addClass("on").removeClass("off").html(K.services.facebook.txt_fb_on);
U.find("img.fb_like_privacy_dummy").replaceWith(S);
}else{U.removeClass("info_off");
U.find(".switch").addClass("off").removeClass("on").html(K.services.facebook.txt_fb_off);
U.find(".fb_like").html(u);
}});
}if(L){var h=P.services.twitter.tweet_text;
if(typeof h==="function"){h=h();
}h=G(h,"120");
var Y=P.services.twitter.count=="horizontal"?"25":"62";
var y=P.services.twitter.count=="horizontal"?"130":"83";
var o=encodeURIComponent(a+P.services.twitter.referrer_track);
var j=encodeURIComponent(a);
var f='<iframe allowtransparency="true" frameborder="0" scrolling="no" src="//platform.twitter.com/widgets/tweet_button.html?url='+o+"&amp;counturl="+j+"&amp;text="+h+"&amp;count="+P.services.twitter.count+"&amp;lang="+K.services.twitter.language+'&amp;dnt=true" style="width:'+y+"px; height:"+Y+'px;"></iframe>';
var k='<img src="'+P.services.twitter.dummy_img+'" alt="&quot;Tweet this&quot;-Dummy" class="tweet_this_dummy" />';
V.append('<li class="twitter help_info clearfix"><span class="info">'+K.services.twitter.txt_info+'</span><a href="#" class="switch off">'+K.services.twitter.txt_twitter_off+'</a><div class="tweet dummy_btn">'+k+"</div></li>");
var e=F("li.twitter",V);
F(V).on("click","li.twitter div.tweet img,li.twitter .switch",function(i){i.preventDefault();
if(e.find(".switch").hasClass("off")){e.addClass("info_off");
e.find(".switch").addClass("on").removeClass("off").html(K.services.twitter.txt_twitter_on);
e.find("img.tweet_this_dummy").replaceWith(f);
}else{e.removeClass("info_off");
e.find(".switch").addClass("off").removeClass("on").html(K.services.twitter.txt_twitter_off);
e.find(".tweet").html(k);
}});
}if(M){var Z=a+P.services.gplus.referrer_track;
var X='<div class="g-plusone" data-size="'+P.services.gplus.size+'" data-href="'+Z+'"></div><script type="text/javascript">window.___gcfg = {lang: "'+K.services.gplus.language+'"}; (function() { var po = document.createElement("script"); po.type = "text/javascript"; po.async = true; po.src = "https://apis.google.com/js/platform.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(po, s); })(); <\/script>';
var t='<img src="'+P.services.gplus.dummy_img+'" alt="&quot;Google+1&quot;-Dummy" class="gplus_one_dummy" />';
V.append('<li class="gplus help_info clearfix"><span class="info">'+K.services.gplus.txt_info+'</span><a href="#" class="switch off">'+K.services.gplus.txt_gplus_off+'</a><div class="gplusone dummy_btn">'+t+"</div></li>");
var l=F("li.gplus",V);
F(V).on("click","li.gplus div.gplusone img,li.gplus .switch",function(i){i.preventDefault();
if(l.find(".switch").hasClass("off")){l.addClass("info_off");
l.find(".switch").addClass("on").removeClass("off").html(K.services.gplus.txt_gplus_on);
l.find("img.gplus_one_dummy").replaceWith(X);
}else{l.removeClass("info_off");
l.find(".switch").addClass("off").removeClass("on").html(K.services.gplus.txt_gplus_off);
l.find(".gplusone").html(t);
}});
}V.append('<li class="settings_info '+P.perma_orientation+'"><div class="settings_info_menu off perma_option_off"><a href="'+P.info_link+'"><span class="help_info icon"><span class="info">'+K.txt_help+"</span></span></a></div></li>");
F(V).on("mouseenter",".help_info:not(.info_off)",function(){var i=F(this);
var z=window.setTimeout(function(){F(i).addClass("display");
},500);
F(this).data("timeout_id",z);
});
F(V).on("mouseleave",".help_info",function(){var i=F(this).data("timeout_id");
window.clearTimeout(i);
if(F(this).hasClass("display")){F(this).removeClass("display");
}});
var m=(P.services.facebook.perma_option==="on");
var q=(P.services.twitter.perma_option==="on");
var w=(P.services.gplus.perma_option==="on");
if((N&&m)||(L&&q)||(M&&w)){var s=document.cookie.split(";");
var W="{";
var n=0;
for(;
n<s.length;
n+=1){var r=s[n].split("=");
r[0]=F.trim(r[0].replace(/"/g,""));
r[1]=F.trim(r[1].replace(/"/g,""));
W+='"'+r[0]+'":"'+r[1]+'"';
if(n<s.length-1){W+=",";
}}W+="}";
W=jQuery.parseJSON(W);
var b=F("li.settings_info",V);
b.find(".settings_info_menu").removeClass("perma_option_off");
b.find(".settings_info_menu").append('<a href="#" class="settings">'+K.settings+"</a><form><fieldset><legend>"+K.settings_perma+"</legend></fieldset></form>");
var R="r"+Math.floor(Math.random()*101);
var c=' checked="checked"';
if(N&&m){var T=W.socialSharePrivacy_facebook==="perma_on"?c:"";
b.find("form fieldset").append('<input type="checkbox" name="perma_status_facebook" id="'+R+'_perma_status_facebook"'+T+' /><label for="'+R+'_perma_status_facebook">'+K.services.facebook.perma_display_name+"</label>");
}if(L&&q){var v=W.socialSharePrivacy_twitter==="perma_on"?c:"";
b.find("form fieldset").append('<input type="checkbox" name="perma_status_twitter" id="'+R+'_perma_status_twitter"'+v+' /><label for="'+R+'_perma_status_twitter">'+K.services.twitter.perma_display_name+"</label>");
}if(M&&w){var g=W.socialSharePrivacy_gplus==="perma_on"?c:"";
b.find("form fieldset").append('<input type="checkbox" name="perma_status_gplus" id="'+R+'_perma_status_gplus"'+g+' /><label for="'+R+'_perma_status_gplus">'+K.services.gplus.perma_display_name+"</label>");
}F(V).on("click","li.settings_info .settings",function(i){i.preventDefault();
if(F(this).data("keyb")=="on"){F("li.settings_info",V).trigger("mouseleave");
F(this).data("keyb","off");
}else{F("li.settings_info .settings",V).trigger("mouseenter");
F(this).data("keyb","on");
}});
F(V).on("mouseenter","li.settings_info .settings",function(){var i=window.setTimeout(function(){b.find(".settings_info_menu").removeClass("off").addClass("on");
},500);
F(this).data("timeout_id",i);
});
F(V).on("mouseleave","li.settings_info",function(){var i=F(this).data("timeout_id");
window.clearTimeout(i);
b.find(".settings_info_menu").removeClass("on").addClass("off");
});
F(V).on("click","li.settings_info fieldset input",function(AA){var z=AA.target.id;
var i=z.substr(z.lastIndexOf("_")+1,z.length);
var AB="socialSharePrivacy_"+i;
if(F("#"+AA.target.id+":checked").length){C(AB,"perma_on",P.cookie_expires,P.cookie_path,P.cookie_domain);
F("form fieldset label[for="+z+"]",V).addClass("checked");
}else{D(AB,"perma_on",P.cookie_path,P.cookie_domain);
F("form fieldset label[for="+z+"]",V).removeClass("checked");
}});
if(N&&m&&W.socialSharePrivacy_facebook==="perma_on"){F("li.facebook .switch",V).click();
}if(L&&q&&W.socialSharePrivacy_twitter==="perma_on"){F("li.twitter .switch",V).click();
}if(M&&w&&W.socialSharePrivacy_gplus==="perma_on"){F("li.gplus .switch",V).click();
}}});
});
};
}(jQuery));
/* Video.js v4.6.1 Copyright 2014 Brightcove, Inc. https://github.com/videojs/video.js/blob/master/LICENSE */
(function(){var b=void 0,f=!0,j=null,l=!1;
function m(){return function(){};
}function q(a){return function(){return this[a];
};
}function r(a){return function(){return a;
};
}var t;
document.createElement("video");
document.createElement("audio");
document.createElement("track");
function u(a,c,d){if("string"===typeof a){0===a.indexOf("#")&&(a=a.slice(1));
if(u.Aa[a]){return u.Aa[a];
}a=u.w(a);
}if(!a||!a.nodeName){throw new TypeError("The element or ID supplied is not valid. (videojs)");
}return a.player||new u.Player(a,c,d);
}var videojs=u;
window.ke=window.le=u;
u.Vb="4.6";
u.Pc="https:"==document.location.protocol?"https://":"http://";
u.options={techOrder:["html5","flash"],html5:{},flash:{},width:300,height:150,defaultVolume:0,playbackRates:[],children:{mediaLoader:{},posterImage:{},textTrackDisplay:{},loadingSpinner:{},bigPlayButton:{},controlBar:{},errorDisplay:{}},notSupportedMessage:"No compatible source was found for this video."};
"GENERATED_CDN_VSN"!==u.Vb&&(videojs.options.flash.swf=u.Pc+"vjs.zencdn.net/"+u.Vb+"/video-js.swf");
u.Aa={};
"function"===typeof define&&define.amd?define([],function(){return videojs;
}):"object"===typeof exports&&"object"===typeof module&&(module.exports=videojs);
u.pa=u.CoreObject=m();
u.pa.extend=function(a){var c,d;
a=a||{};
c=a.init||a.h||this.prototype.init||this.prototype.h||m();
d=function(){c.apply(this,arguments);
};
d.prototype=u.l.create(this.prototype);
d.prototype.constructor=d;
d.extend=u.pa.extend;
d.create=u.pa.create;
for(var e in a){a.hasOwnProperty(e)&&(d.prototype[e]=a[e]);
}return d;
};
u.pa.create=function(){var a=u.l.create(this.prototype);
this.apply(a,arguments);
return a;
};
u.d=function(a,c,d){var e=u.getData(a);
e.D||(e.D={});
e.D[c]||(e.D[c]=[]);
d.v||(d.v=u.v++);
e.D[c].push(d);
e.X||(e.disabled=l,e.X=function(c){if(!e.disabled){c=u.pc(c);
var d=e.D[c.type];
if(d){for(var d=d.slice(0),k=0,p=d.length;
k<p&&!c.wc();
k++){d[k].call(a,c);
}}}});
1==e.D[c].length&&(document.addEventListener?a.addEventListener(c,e.X,l):document.attachEvent&&a.attachEvent("on"+c,e.X));
};
u.p=function(a,c,d){if(u.tc(a)){var e=u.getData(a);
if(e.D){if(c){var g=e.D[c];
if(g){if(d){if(d.v){for(e=0;
e<g.length;
e++){g[e].v===d.v&&g.splice(e--,1);
}}}else{e.D[c]=[];
}u.kc(a,c);
}}else{for(g in e.D){c=g,e.D[c]=[],u.kc(a,c);
}}}}};
u.kc=function(a,c){var d=u.getData(a);
0===d.D[c].length&&(delete d.D[c],document.removeEventListener?a.removeEventListener(c,d.X,l):document.detachEvent&&a.detachEvent("on"+c,d.X));
u.Fb(d.D)&&(delete d.D,delete d.X,delete d.disabled);
u.Fb(d)&&u.Dc(a);
};
u.pc=function(a){function c(){return f;
}function d(){return l;
}if(!a||!a.Gb){var e=a||window.event;
a={};
for(var g in e){"layerX"!==g&&("layerY"!==g&&"keyboardEvent.keyLocation"!==g)&&("returnValue"==g&&e.preventDefault||(a[g]=e[g]));
}a.target||(a.target=a.srcElement||document);
a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;
a.preventDefault=function(){e.preventDefault&&e.preventDefault();
a.returnValue=l;
a.sd=c;
a.defaultPrevented=f;
};
a.sd=d;
a.defaultPrevented=l;
a.stopPropagation=function(){e.stopPropagation&&e.stopPropagation();
a.cancelBubble=f;
a.Gb=c;
};
a.Gb=d;
a.stopImmediatePropagation=function(){e.stopImmediatePropagation&&e.stopImmediatePropagation();
a.wc=c;
a.stopPropagation();
};
a.wc=d;
if(a.clientX!=j){g=document.documentElement;
var h=document.body;
a.pageX=a.clientX+(g&&g.scrollLeft||h&&h.scrollLeft||0)-(g&&g.clientLeft||h&&h.clientLeft||0);
a.pageY=a.clientY+(g&&g.scrollTop||h&&h.scrollTop||0)-(g&&g.clientTop||h&&h.clientTop||0);
}a.which=a.charCode||a.keyCode;
a.button!=j&&(a.button=a.button&1?0:a.button&4?1:a.button&2?2:0);
}return a;
};
u.k=function(a,c){var d=u.tc(a)?u.getData(a):{},e=a.parentNode||a.ownerDocument;
"string"===typeof c&&(c={type:c,target:a});
c=u.pc(c);
d.X&&d.X.call(a,c);
if(e&&!c.Gb()&&c.bubbles!==l){u.k(e,c);
}else{if(!e&&!c.defaultPrevented&&(d=u.getData(c.target),c.target[c.type])){d.disabled=f;
if("function"===typeof c.target[c.type]){c.target[c.type]();
}d.disabled=l;
}}return !c.defaultPrevented;
};
u.W=function(a,c,d){function e(){u.p(a,c,e);
d.apply(this,arguments);
}e.v=d.v=d.v||u.v++;
u.d(a,c,e);
};
var v=Object.prototype.hasOwnProperty;
u.e=function(a,c){var d,e;
d=document.createElement(a||"div");
for(e in c){v.call(c,e)&&(-1!==e.indexOf("aria-")||"role"==e?d.setAttribute(e,c[e]):d[e]=c[e]);
}return d;
};
u.$=function(a){return a.charAt(0).toUpperCase()+a.slice(1);
};
u.l={};
u.l.create=Object.create||function(a){function c(){}c.prototype=a;
return new c;
};
u.l.wa=function(a,c,d){for(var e in a){v.call(a,e)&&c.call(d||this,e,a[e]);
}};
u.l.B=function(a,c){if(!c){return a;
}for(var d in c){v.call(c,d)&&(a[d]=c[d]);
}return a;
};
u.l.fd=function(a,c){var d,e,g;
a=u.l.copy(a);
for(d in c){v.call(c,d)&&(e=a[d],g=c[d],a[d]=u.l.Sa(e)&&u.l.Sa(g)?u.l.fd(e,g):c[d]);
}return a;
};
u.l.copy=function(a){return u.l.B({},a);
};
u.l.Sa=function(a){return !!a&&"object"===typeof a&&"[object Object]"===a.toString()&&a.constructor===Object;
};
u.bind=function(a,c,d){function e(){return c.apply(a,arguments);
}c.v||(c.v=u.v++);
e.v=d?d+"_"+c.v:c.v;
return e;
};
u.ta={};
u.v=1;
u.expando="vdata"+(new Date).getTime();
u.getData=function(a){var c=a[u.expando];
c||(c=a[u.expando]=u.v++,u.ta[c]={});
return u.ta[c];
};
u.tc=function(a){a=a[u.expando];
return !(!a||u.Fb(u.ta[a]));
};
u.Dc=function(a){var c=a[u.expando];
if(c){delete u.ta[c];
try{delete a[u.expando];
}catch(d){a.removeAttribute?a.removeAttribute(u.expando):a[u.expando]=j;
}}};
u.Fb=function(a){for(var c in a){if(a[c]!==j){return l;
}}return f;
};
u.o=function(a,c){-1==(" "+a.className+" ").indexOf(" "+c+" ")&&(a.className=""===a.className?c:a.className+" "+c);
};
u.r=function(a,c){var d,e;
if(-1!=a.className.indexOf(c)){d=a.className.split(" ");
for(e=d.length-1;
0<=e;
e--){d[e]===c&&d.splice(e,1);
}a.className=d.join(" ");
}};
u.A=u.e("video");
u.M=navigator.userAgent;
u.Uc=/iPhone/i.test(u.M);
u.Tc=/iPad/i.test(u.M);
u.Vc=/iPod/i.test(u.M);
u.Sc=u.Uc||u.Tc||u.Vc;
var aa=u,w;
var x=u.M.match(/OS (\d+)_/i);
w=x&&x[1]?x[1]:b;
aa.$d=w;
u.Rc=/Android/i.test(u.M);
var ba=u,y;
var z=u.M.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),A,B;
z?(A=z[1]&&parseFloat(z[1]),B=z[2]&&parseFloat(z[2]),y=A&&B?parseFloat(z[1]+"."+z[2]):A?A:j):y=j;
ba.Ub=y;
u.Wc=u.Rc&&/webkit/i.test(u.M)&&2.3>u.Ub;
u.Yb=/Firefox/i.test(u.M);
u.ae=/Chrome/i.test(u.M);
u.fc=!!("ontouchstart" in window||window.Qc&&document instanceof window.Qc);
u.Cb=function(a){var c,d,e,g;
c={};
if(a&&a.attributes&&0<a.attributes.length){d=a.attributes;
for(var h=d.length-1;
0<=h;
h--){e=d[h].name;
g=d[h].value;
if("boolean"===typeof a[e]||-1!==",autoplay,controls,loop,muted,default,".indexOf(","+e+",")){g=g!==j?f:l;
}c[e]=g;
}}return c;
};
u.de=function(a,c){var d="";
document.defaultView&&document.defaultView.getComputedStyle?d=document.defaultView.getComputedStyle(a,"").getPropertyValue(c):a.currentStyle&&(d=a["client"+c.substr(0,1).toUpperCase()+c.substr(1)]+"px");
return d;
};
u.Eb=function(a,c){c.firstChild?c.insertBefore(a,c.firstChild):c.appendChild(a);
};
u.Na={};
u.w=function(a){0===a.indexOf("#")&&(a=a.slice(1));
return document.getElementById(a);
};
u.ya=function(a,c){c=c||a;
var d=Math.floor(a%60),e=Math.floor(a/60%60),g=Math.floor(a/3600),h=Math.floor(c/60%60),k=Math.floor(c/3600);
if(isNaN(a)||Infinity===a){g=e=d="-";
}g=0<g||0<k?g+":":"";
return g+(((g||10<=h)&&10>e?"0"+e:e)+":")+(10>d?"0"+d:d);
};
u.bd=function(){document.body.focus();
document.onselectstart=r(l);
};
u.Ud=function(){document.onselectstart=r(f);
};
u.trim=function(a){return(a+"").replace(/^\s+|\s+$/g,"");
};
u.round=function(a,c){c||(c=0);
return Math.round(a*Math.pow(10,c))/Math.pow(10,c);
};
u.zb=function(a,c){return{length:1,start:function(){return a;
},end:function(){return c;
}};
};
u.get=function(a,c,d,e){var g,h,k,p;
d=d||m();
"undefined"===typeof XMLHttpRequest&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0");
}catch(a){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0");
}catch(c){}try{return new window.ActiveXObject("Msxml2.XMLHTTP");
}catch(d){}throw Error("This browser does not support XMLHttpRequest.");
});
h=new XMLHttpRequest;
k=u.Gd(a);
p=window.location;
k.protocol+k.host!==p.protocol+p.host&&window.XDomainRequest&&!("withCredentials" in h)?(h=new window.XDomainRequest,h.onload=function(){c(h.responseText);
},h.onerror=d,h.onprogress=m(),h.ontimeout=d):(g="file:"==k.protocol||"file:"==p.protocol,h.onreadystatechange=function(){4===h.readyState&&(200===h.status||g&&0===h.status?c(h.responseText):d(h.responseText));
});
try{h.open("GET",a,f),e&&(h.withCredentials=f);
}catch(n){d(n);
return ;
}try{h.send();
}catch(s){d(s);
}};
u.Ld=function(a){try{var c=window.localStorage||l;
c&&(c.volume=a);
}catch(d){22==d.code||1014==d.code?u.log("LocalStorage Full (VideoJS)",d):18==d.code?u.log("LocalStorage not allowed (VideoJS)",d):u.log("LocalStorage Error (VideoJS)",d);
}};
u.rc=function(a){a.match(/^https?:\/\//)||(a=u.e("div",{innerHTML:'<a href="'+a+'">x</a>'}).firstChild.href);
return a;
};
u.Gd=function(a){var c,d,e,g;
g="protocol hostname port pathname search hash host".split(" ");
d=u.e("a",{href:a});
if(e=""===d.host&&"file:"!==d.protocol){c=u.e("div"),c.innerHTML='<a href="'+a+'"></a>',d=c.firstChild,c.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(c);
}a={};
for(var h=0;
h<g.length;
h++){a[g[h]]=d[g[h]];
}e&&document.body.removeChild(c);
return a;
};
function D(){}var E=window.console||{log:D,warn:D,error:D};
function F(a,c){var d=Array.prototype.slice.call(c);
a?d.unshift(a.toUpperCase()+":"):a="log";
u.log.history.push(d);
d.unshift("VIDEOJS:");
if(E[a].apply){E[a].apply(E,d);
}else{E[a](d.join(" "));
}}u.log=function(){F(j,arguments);
};
u.log.history=[];
u.log.error=function(){F("error",arguments);
};
u.log.warn=function(){F("warn",arguments);
};
u.od=function(a){var c,d;
a.getBoundingClientRect&&a.parentNode&&(c=a.getBoundingClientRect());
if(!c){return{left:0,top:0};
}a=document.documentElement;
d=document.body;
return{left:u.round(c.left+(window.pageXOffset||d.scrollLeft)-(a.clientLeft||d.clientLeft||0)),top:u.round(c.top+(window.pageYOffset||d.scrollTop)-(a.clientTop||d.clientTop||0))};
};
u.oa={};
u.oa.Kb=function(a,c){var d,e,g;
a=u.l.copy(a);
for(d in c){c.hasOwnProperty(d)&&(e=a[d],g=c[d],a[d]=u.l.Sa(e)&&u.l.Sa(g)?u.oa.Kb(e,g):c[d]);
}return a;
};
u.a=u.pa.extend({h:function(a,c,d){this.c=a;
this.j=u.l.copy(this.j);
c=this.options(c);
this.T=c.id||(c.el&&c.el.id?c.el.id:a.id()+"_component_"+u.v++);
this.xd=c.name||j;
this.b=c.el||this.e();
this.N=[];
this.Oa={};
this.Pa={};
this.uc();
this.I(d);
if(c.Ec!==l){var e,g;
e=u.bind(this.m(),this.m().reportUserActivity);
this.d("touchstart",function(){e();
clearInterval(g);
g=setInterval(e,250);
});
a=function(){e();
clearInterval(g);
};
this.d("touchmove",e);
this.d("touchend",a);
this.d("touchcancel",a);
}}});
t=u.a.prototype;
t.dispose=function(){this.k({type:"dispose",bubbles:l});
if(this.N){for(var a=this.N.length-1;
0<=a;
a--){this.N[a].dispose&&this.N[a].dispose();
}}this.Pa=this.Oa=this.N=j;
this.p();
this.b.parentNode&&this.b.parentNode.removeChild(this.b);
u.Dc(this.b);
this.b=j;
};
t.c=f;
t.m=q("c");
t.options=function(a){return a===b?this.j:this.j=u.oa.Kb(this.j,a);
};
t.e=function(a,c){return u.e(a,c);
};
t.w=q("b");
t.ia=function(){return this.u||this.b;
};
t.id=q("T");
t.name=q("xd");
t.children=q("N");
t.rd=function(a){return this.Oa[a];
};
t.ja=function(a){return this.Pa[a];
};
t.V=function(a,c){var d,e;
"string"===typeof a?(e=a,c=c||{},d=c.componentClass||u.$(e),c.name=e,d=new window.videojs[d](this.c||this,c)):d=a;
this.N.push(d);
"function"===typeof d.id&&(this.Oa[d.id()]=d);
(e=e||d.name&&d.name())&&(this.Pa[e]=d);
"function"===typeof d.el&&d.el()&&this.ia().appendChild(d.el());
return d;
};
t.removeChild=function(a){"string"===typeof a&&(a=this.ja(a));
if(a&&this.N){for(var c=l,d=this.N.length-1;
0<=d;
d--){if(this.N[d]===a){c=f;
this.N.splice(d,1);
break;
}}c&&(this.Oa[a.id]=j,this.Pa[a.name]=j,(c=a.w())&&c.parentNode===this.ia()&&this.ia().removeChild(a.w()));
}};
t.uc=function(){var a,c,d,e;
a=this;
if(c=this.options().children){if(c instanceof Array){for(var g=0;
g<c.length;
g++){d=c[g],"string"==typeof d?(e=d,d={}):e=d.name,a[e]=a.V(e,d);
}}else{u.l.wa(c,function(c,d){d!==l&&(a[c]=a.V(c,d));
});
}}};
t.S=r("");
t.d=function(a,c){u.d(this.b,a,u.bind(this,c));
return this;
};
t.p=function(a,c){u.p(this.b,a,c);
return this;
};
t.W=function(a,c){u.W(this.b,a,u.bind(this,c));
return this;
};
t.k=function(a,c){u.k(this.b,a,c);
return this;
};
t.I=function(a){a&&(this.ca?a.call(this):(this.Za===b&&(this.Za=[]),this.Za.push(a)));
return this;
};
t.Ea=function(){this.ca=f;
var a=this.Za;
if(a&&0<a.length){for(var c=0,d=a.length;
c<d;
c++){a[c].call(this);
}this.Za=[];
this.k("ready");
}};
t.o=function(a){u.o(this.b,a);
return this;
};
t.r=function(a){u.r(this.b,a);
return this;
};
t.show=function(){this.b.style.display="block";
return this;
};
t.G=function(){this.b.style.display="none";
return this;
};
function G(a){a.r("vjs-lock-showing");
}t.disable=function(){this.G();
this.show=m();
};
t.width=function(a,c){return H(this,"width",a,c);
};
t.height=function(a,c){return H(this,"height",a,c);
};
t.jd=function(a,c){return this.width(a,f).height(c);
};
function H(a,c,d,e){if(d!==b){return a.b.style[c]=-1!==(""+d).indexOf("%")||-1!==(""+d).indexOf("px")?d:"auto"===d?"":d+"px",e||a.k("resize"),a;
}if(!a.b){return 0;
}d=a.b.style[c];
e=d.indexOf("px");
return -1!==e?parseInt(d.slice(0,e),10):parseInt(a.b["offset"+u.$(c)],10);
}function I(a){var c,d,e,g,h,k,p,n;
c=0;
d=j;
a.d("touchstart",function(a){1===a.touches.length&&(d=a.touches[0],c=(new Date).getTime(),g=f);
});
a.d("touchmove",function(a){1<a.touches.length?g=l:d&&(k=a.touches[0].pageX-d.pageX,p=a.touches[0].pageY-d.pageY,n=Math.sqrt(k*k+p*p),22<n&&(g=l));
});
h=function(){g=l;
};
a.d("touchleave",h);
a.d("touchcancel",h);
a.d("touchend",function(a){d=j;
g===f&&(e=(new Date).getTime()-c,250>e&&(a.preventDefault(),this.k("tap")));
});
}u.s=u.a.extend({h:function(a,c){u.a.call(this,a,c);
I(this);
this.d("tap",this.q);
this.d("click",this.q);
this.d("focus",this.Va);
this.d("blur",this.Ua);
}});
t=u.s.prototype;
t.e=function(a,c){var d;
c=u.l.B({className:this.S(),role:"button","aria-live":"polite",tabIndex:0},c);
d=u.a.prototype.e.call(this,a,c);
c.innerHTML||(this.u=u.e("div",{className:"vjs-control-content"}),this.xb=u.e("span",{className:"vjs-control-text",innerHTML:this.sa||"Need Text"}),this.u.appendChild(this.xb),d.appendChild(this.u));
return d;
};
t.S=function(){return"vjs-control "+u.a.prototype.S.call(this);
};
t.q=m();
t.Va=function(){u.d(document,"keyup",u.bind(this,this.da));
};
t.da=function(a){if(32==a.which||13==a.which){a.preventDefault(),this.q();
}};
t.Ua=function(){u.p(document,"keyup",u.bind(this,this.da));
};
u.Q=u.a.extend({h:function(a,c){u.a.call(this,a,c);
this.ad=this.ja(this.j.barName);
this.handle=this.ja(this.j.handleName);
this.d("mousedown",this.Wa);
this.d("touchstart",this.Wa);
this.d("focus",this.Va);
this.d("blur",this.Ua);
this.d("click",this.q);
this.c.d("controlsvisible",u.bind(this,this.update));
a.d(this.Ac,u.bind(this,this.update));
this.R={};
}});
t=u.Q.prototype;
t.e=function(a,c){c=c||{};
c.className+=" vjs-slider";
c=u.l.B({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},c);
return u.a.prototype.e.call(this,a,c);
};
t.Wa=function(a){a.preventDefault();
u.bd();
this.R.move=u.bind(this,this.Lb);
this.R.end=u.bind(this,this.Mb);
u.d(document,"mousemove",this.R.move);
u.d(document,"mouseup",this.R.end);
u.d(document,"touchmove",this.R.move);
u.d(document,"touchend",this.R.end);
this.Lb(a);
};
t.Mb=function(){u.Ud();
u.p(document,"mousemove",this.R.move,l);
u.p(document,"mouseup",this.R.end,l);
u.p(document,"touchmove",this.R.move,l);
u.p(document,"touchend",this.R.end,l);
this.update();
};
t.update=function(){if(this.b){var a,c=this.Db(),d=this.handle,e=this.ad;
isNaN(c)&&(c=0);
a=c;
if(d){a=this.b.offsetWidth;
var g=d.w().offsetWidth;
a=g?g/a:0;
c*=1-a;
a=c+a/2;
d.w().style.left=u.round(100*c,2)+"%";
}e.w().style.width=u.round(100*a,2)+"%";
}};
function J(a,c){var d,e,g,h;
d=a.b;
e=u.od(d);
h=g=d.offsetWidth;
d=a.handle;
if(a.j.Wd){return h=e.top,e=c.changedTouches?c.changedTouches[0].pageY:c.pageY,d&&(d=d.w().offsetHeight,h+=d/2,g-=d),Math.max(0,Math.min(1,(h-e+g)/g));
}g=e.left;
e=c.changedTouches?c.changedTouches[0].pageX:c.pageX;
d&&(d=d.w().offsetWidth,g+=d/2,h-=d);
return Math.max(0,Math.min(1,(e-g)/h));
}t.Va=function(){u.d(document,"keyup",u.bind(this,this.da));
};
t.da=function(a){37==a.which?(a.preventDefault(),this.Gc()):39==a.which&&(a.preventDefault(),this.Hc());
};
t.Ua=function(){u.p(document,"keyup",u.bind(this,this.da));
};
t.q=function(a){a.stopImmediatePropagation();
a.preventDefault();
};
u.Y=u.a.extend();
u.Y.prototype.defaultValue=0;
u.Y.prototype.e=function(a,c){c=c||{};
c.className+=" vjs-slider-handle";
c=u.l.B({innerHTML:'<span class="vjs-control-text">'+this.defaultValue+"</span>"},c);
return u.a.prototype.e.call(this,"div",c);
};
u.ga=u.a.extend();
function ca(a,c){a.V(c);
c.d("click",u.bind(a,function(){G(this);
}));
}u.ga.prototype.e=function(){var a=this.options().lc||"ul";
this.u=u.e(a,{className:"vjs-menu-content"});
a=u.a.prototype.e.call(this,"div",{append:this.u,className:"vjs-menu"});
a.appendChild(this.u);
u.d(a,"click",function(a){a.preventDefault();
a.stopImmediatePropagation();
});
return a;
};
u.J=u.s.extend({h:function(a,c){u.s.call(this,a,c);
this.selected(c.selected);
}});
u.J.prototype.e=function(a,c){return u.s.prototype.e.call(this,"li",u.l.B({className:"vjs-menu-item",innerHTML:this.j.label},c));
};
u.J.prototype.q=function(){this.selected(f);
};
u.J.prototype.selected=function(a){a?(this.o("vjs-selected"),this.b.setAttribute("aria-selected",f)):(this.r("vjs-selected"),this.b.setAttribute("aria-selected",l));
};
u.L=u.s.extend({h:function(a,c){u.s.call(this,a,c);
this.za=this.va();
this.V(this.za);
this.O&&0===this.O.length&&this.G();
this.d("keyup",this.da);
this.b.setAttribute("aria-haspopup",f);
this.b.setAttribute("role","button");
}});
t=u.L.prototype;
t.ra=l;
t.va=function(){var a=new u.ga(this.c);
this.options().title&&a.ia().appendChild(u.e("li",{className:"vjs-menu-title",innerHTML:u.$(this.options().title),Sd:-1}));
if(this.O=this.createItems()){for(var c=0;
c<this.O.length;
c++){ca(a,this.O[c]);
}}return a;
};
t.ua=m();
t.S=function(){return this.className+" vjs-menu-button "+u.s.prototype.S.call(this);
};
t.Va=m();
t.Ua=m();
t.q=function(){this.W("mouseout",u.bind(this,function(){G(this.za);
this.b.blur();
}));
this.ra?K(this):L(this);
};
t.da=function(a){a.preventDefault();
32==a.which||13==a.which?this.ra?K(this):L(this):27==a.which&&this.ra&&K(this);
};
function L(a){a.ra=f;
a.za.o("vjs-lock-showing");
a.b.setAttribute("aria-pressed",f);
a.O&&0<a.O.length&&a.O[0].w().focus();
}function K(a){a.ra=l;
G(a.za);
a.b.setAttribute("aria-pressed",l);
}u.F=function(a){"number"===typeof a?this.code=a:"string"===typeof a?this.message=a:"object"===typeof a&&u.l.B(this,a);
this.message||(this.message=u.F.gd[this.code]||"");
};
u.F.prototype.code=0;
u.F.prototype.message="";
u.F.prototype.status=j;
u.F.Ra="MEDIA_ERR_CUSTOM MEDIA_ERR_ABORTED MEDIA_ERR_NETWORK MEDIA_ERR_DECODE MEDIA_ERR_SRC_NOT_SUPPORTED MEDIA_ERR_ENCRYPTED".split(" ");
u.F.gd={1:"You aborted the video playback",2:"A network error caused the video download to fail part-way.",3:"The video playback was aborted due to a corruption problem or because the video used features your browser did not support.",4:"The video could not be loaded, either because the server or network failed or because the format is not supported.",5:"The video is encrypted and we do not have the keys to decrypt it."};
for(var M=0;
M<u.F.Ra.length;
M++){u.F[u.F.Ra[M]]=M,u.F.prototype[u.F.Ra[M]]=M;
}var N,O,P,Q;
N=["requestFullscreen exitFullscreen fullscreenElement fullscreenEnabled fullscreenchange fullscreenerror".split(" "),"webkitRequestFullscreen webkitExitFullscreen webkitFullscreenElement webkitFullscreenEnabled webkitfullscreenchange webkitfullscreenerror".split(" "),"webkitRequestFullScreen webkitCancelFullScreen webkitCurrentFullScreenElement webkitCancelFullScreen webkitfullscreenchange webkitfullscreenerror".split(" "),"mozRequestFullScreen mozCancelFullScreen mozFullScreenElement mozFullScreenEnabled mozfullscreenchange mozfullscreenerror".split(" "),"msRequestFullscreen msExitFullscreen msFullscreenElement msFullscreenEnabled MSFullscreenChange MSFullscreenError".split(" ")];
O=N[0];
for(Q=0;
Q<N.length;
Q++){if(N[Q][1] in document){P=N[Q];
break;
}}if(P){u.Na.Bb={};
for(Q=0;
Q<P.length;
Q++){u.Na.Bb[O[Q]]=P[Q];
}}u.Player=u.a.extend({h:function(a,c,d){this.P=a;
a.id=a.id||"vjs_video_"+u.v++;
c=u.l.B(da(a),c);
this.z={};
this.Bc=c.poster;
this.yb=c.controls;
a.controls=l;
c.Ec=l;
this.I(function(){this.d("loadstart",this.Cd);
this.d("ended",this.yd);
this.d("play",this.Ob);
this.d("firstplay",this.Ad);
this.d("pause",this.Nb);
this.d("progress",this.Dd);
this.d("durationchange",this.yc);
this.d("fullscreenchange",this.Bd);
});
u.a.call(this,this,c,d);
this.controls()?this.o("vjs-controls-enabled"):this.o("vjs-controls-disabled");
u.Aa[this.T]=this;
c.plugins&&u.l.wa(c.plugins,function(a,c){this[a](c);
},this);
var e,g,h,k,p,n;
e=u.bind(this,this.reportUserActivity);
this.d("mousedown",function(){e();
clearInterval(g);
g=setInterval(e,250);
});
this.d("mousemove",function(a){if(a.screenX!=p||a.screenY!=n){p=a.screenX,n=a.screenY,e();
}});
this.d("mouseup",function(){e();
clearInterval(g);
});
this.d("keydown",e);
this.d("keyup",e);
h=setInterval(u.bind(this,function(){this.na&&(this.na=l,this.userActive(f),clearTimeout(k),k=setTimeout(u.bind(this,function(){this.na||this.userActive(l);
}),2000));
}),250);
this.d("dispose",function(){clearInterval(h);
clearTimeout(k);
});
}});
t=u.Player.prototype;
t.j=u.options;
t.dispose=function(){this.k("dispose");
this.p("dispose");
u.Aa[this.T]=j;
this.P&&this.P.player&&(this.P.player=j);
this.b&&this.b.player&&(this.b.player=j);
clearInterval(this.Ya);
this.Ba();
this.g&&this.g.dispose();
u.a.prototype.dispose.call(this);
};
function da(a){var c={sources:[],tracks:[]};
u.l.B(c,u.Cb(a));
if(a.hasChildNodes()){var d,e,g,h;
a=a.childNodes;
g=0;
for(h=a.length;
g<h;
g++){d=a[g],e=d.nodeName.toLowerCase(),"source"===e?c.sources.push(u.Cb(d)):"track"===e&&c.tracks.push(u.Cb(d));
}}return c;
}t.e=function(){var a=this.b=u.a.prototype.e.call(this,"div"),c=this.P;
c.removeAttribute("width");
c.removeAttribute("height");
if(c.hasChildNodes()){var d,e,g,h,k;
d=c.childNodes;
e=d.length;
for(k=[];
e--;
){g=d[e],h=g.nodeName.toLowerCase(),"track"===h&&k.push(g);
}for(d=0;
d<k.length;
d++){c.removeChild(k[d]);
}}a.id=c.id;
a.className=c.className;
c.id+="_html5_api";
c.className="vjs-tech";
c.player=a.player=this;
this.o("vjs-paused");
this.width(this.j.width,f);
this.height(this.j.height,f);
c.parentNode&&c.parentNode.insertBefore(a,c);
u.Eb(c,a);
return a;
};
function R(a,c,d){a.g&&(a.ca=l,a.g.dispose(),a.Ib&&(a.Ib=l,clearInterval(a.Ya)),a.Jb&&S(a),a.g=l);
"Html5"!==c&&a.P&&(u.f.nc(a.P),a.P=j);
a.Ca=c;
a.ca=l;
var e=u.l.B({source:d,parentEl:a.b},a.j[c.toLowerCase()]);
d&&(d.src==a.z.src&&0<a.z.currentTime&&(e.startTime=a.z.currentTime),a.z.src=d.src);
a.g=new window.videojs[c](a,e);
a.g.I(function(){this.c.Ea();
if(!this.n.progressEvents){var a=this.c;
a.Ib=f;
a.Ya=setInterval(u.bind(a,function(){this.z.tb<this.buffered().end(0)?this.k("progress"):1==this.bufferedPercent()&&(clearInterval(this.Ya),this.k("progress"));
}),500);
a.g&&a.g.W("progress",function(){this.n.progressEvents=f;
var a=this.c;
a.Ib=l;
clearInterval(a.Ya);
});
}this.n.timeupdateEvents||(a=this.c,a.Jb=f,a.d("play",a.Kc),a.d("pause",a.Ba),a.g&&a.g.W("timeupdate",function(){this.n.timeupdateEvents=f;
S(this.c);
}));
});
}function S(a){a.Jb=l;
a.Ba();
a.p("play",a.Kc);
a.p("pause",a.Ba);
}t.Kc=function(){this.mc&&this.Ba();
this.mc=setInterval(u.bind(this,function(){this.k("timeupdate");
}),250);
};
t.Ba=function(){clearInterval(this.mc);
this.k("timeupdate");
};
t.Cd=function(){this.p("play",T);
this.W("play",T);
this.error()&&this.error(j);
u.r(this.b,"vjs-has-started");
};
function T(a){u.k(this.b,{type:"firstplay",target:this.b})||(a.preventDefault(),a.stopPropagation(),a.stopImmediatePropagation());
}t.Ob=function(){u.r(this.b,"vjs-paused");
u.o(this.b,"vjs-playing");
};
t.Ad=function(){this.j.starttime&&this.currentTime(this.j.starttime);
this.o("vjs-has-started");
};
t.Nb=function(){u.r(this.b,"vjs-playing");
u.o(this.b,"vjs-paused");
};
t.Dd=function(){1==this.bufferedPercent()&&this.k("loadedalldata");
};
t.yd=function(){this.j.loop&&(this.currentTime(0),this.play());
};
t.yc=function(){var a=U(this,"duration");
a&&(0>a&&(a=Infinity),this.duration(a),Infinity===a?this.o("vjs-live"):this.r("vjs-live"));
};
t.Bd=function(){this.isFullscreen()?this.o("vjs-fullscreen"):this.r("vjs-fullscreen");
};
function V(a,c,d){if(a.g&&!a.g.ca){a.g.I(function(){this[c](d);
});
}else{try{a.g[c](d);
}catch(e){throw u.log(e),e;
}}}function U(a,c){if(a.g&&a.g.ca){try{return a.g[c]();
}catch(d){throw a.g[c]===b?u.log("Video.js: "+c+" method not defined for "+a.Ca+" playback technology.",d):"TypeError"==d.name?(u.log("Video.js: "+c+" unavailable on "+a.Ca+" playback technology element.",d),a.g.ca=l):u.log(d),d;
}}}t.play=function(){V(this,"play");
return this;
};
t.pause=function(){V(this,"pause");
return this;
};
t.paused=function(){return U(this,"paused")===l?l:f;
};
t.currentTime=function(a){return a!==b?(V(this,"setCurrentTime",a),this.Jb&&this.k("timeupdate"),this):this.z.currentTime=U(this,"currentTime")||0;
};
t.duration=function(a){if(a!==b){return this.z.duration=parseFloat(a),this;
}this.z.duration===b&&this.yc();
return this.z.duration||0;
};
t.buffered=function(){var a=U(this,"buffered"),c=a.length-1,d=this.z.tb=this.z.tb||0;
a&&(0<=c&&a.end(c)!==d)&&(d=a.end(c),this.z.tb=d);
return u.zb(0,d);
};
t.bufferedPercent=function(){return this.duration()?this.buffered().end(0)/this.duration():0;
};
t.volume=function(a){if(a!==b){return a=Math.max(0,Math.min(1,parseFloat(a))),this.z.volume=a,V(this,"setVolume",a),u.Ld(a),this;
}a=parseFloat(U(this,"volume"));
return isNaN(a)?1:a;
};
t.muted=function(a){return a!==b?(V(this,"setMuted",a),this):U(this,"muted")||l;
};
t.ab=function(){return U(this,"supportsFullScreen")||l;
};
t.vc=l;
t.isFullscreen=function(a){return a!==b?(this.vc=!!a,this):this.vc;
};
t.isFullScreen=function(a){u.log.warn('player.isFullScreen() has been deprecated, use player.isFullscreen() with a lowercase "s")');
return this.isFullscreen(a);
};
t.requestFullscreen=function(){var a=u.Na.Bb;
this.isFullscreen(f);
a?(u.d(document,a.qd,u.bind(this,function(c){this.isFullscreen(document[a.fullscreenElement]);
this.isFullscreen()===l&&u.p(document,a.qd,arguments.callee);
this.k("fullscreenchange");
})),this.b[a.requestFullscreen]()):this.g.ab()?V(this,"enterFullScreen"):(this.td=f,this.kd=document.documentElement.style.overflow,u.d(document,"keydown",u.bind(this,this.qc)),document.documentElement.style.overflow="hidden",u.o(document.body,"vjs-full-window"),this.k("enterFullWindow"),this.k("fullscreenchange"));
return this;
};
t.exitFullscreen=function(){var a=u.Na.Bb;
this.isFullscreen(l);
if(a){document[a.exitFullscreen]();
}else{this.g.ab()?V(this,"exitFullScreen"):(ea(this),this.k("fullscreenchange"));
}return this;
};
t.qc=function(a){27===a.keyCode&&(this.isFullscreen()===f?this.exitFullscreen():ea(this));
};
function ea(a){a.td=l;
u.p(document,"keydown",a.qc);
document.documentElement.style.overflow=a.kd;
u.r(document.body,"vjs-full-window");
a.k("exitFullWindow");
}t.src=function(a){if(a===b){return U(this,"src");
}if(a instanceof Array){var c;
a:{c=a;
for(var d=0,e=this.j.techOrder;
d<e.length;
d++){var g=u.$(e[d]),h=window.videojs[g];
if(h){if(h.isSupported()){for(var k=0,p=c;
k<p.length;
k++){var n=p[k];
if(h.canPlaySource(n)){c={source:n,g:g};
break a;
}}}}else{u.log.error('The "'+g+'" tech is undefined. Skipped browser support check for that tech.');
}}c=l;
}c?(a=c.source,c=c.g,c==this.Ca?this.src(a):R(this,c,a)):(this.error({code:4,message:this.options().notSupportedMessage}),this.Ea());
}else{a instanceof Object?window.videojs[this.Ca].canPlaySource(a)?this.src(a.src):this.src([a]):(this.z.src=a,this.ca?(V(this,"src",a),"auto"==this.j.preload&&this.load(),this.j.autoplay&&this.play()):this.I(function(){this.src(a);
}));
}return this;
};
t.load=function(){V(this,"load");
return this;
};
t.currentSrc=function(){return U(this,"currentSrc")||this.z.src||"";
};
t.Xa=function(a){return a!==b?(V(this,"setPreload",a),this.j.preload=a,this):U(this,"preload");
};
t.autoplay=function(a){return a!==b?(V(this,"setAutoplay",a),this.j.autoplay=a,this):U(this,"autoplay");
};
t.loop=function(a){return a!==b?(V(this,"setLoop",a),this.j.loop=a,this):U(this,"loop");
};
t.poster=function(a){if(a===b){return this.Bc;
}this.Bc=a;
V(this,"setPoster",a);
this.k("posterchange");
};
t.controls=function(a){return a!==b?(a=!!a,this.yb!==a&&((this.yb=a)?(this.r("vjs-controls-disabled"),this.o("vjs-controls-enabled"),this.k("controlsenabled")):(this.r("vjs-controls-enabled"),this.o("vjs-controls-disabled"),this.k("controlsdisabled"))),this):this.yb;
};
u.Player.prototype.Tb;
t=u.Player.prototype;
t.usingNativeControls=function(a){return a!==b?(a=!!a,this.Tb!==a&&((this.Tb=a)?(this.o("vjs-using-native-controls"),this.k("usingnativecontrols")):(this.r("vjs-using-native-controls"),this.k("usingcustomcontrols"))),this):this.Tb;
};
t.ba=j;
t.error=function(a){if(a===b){return this.ba;
}if(a===j){return this.ba=a,this.r("vjs-error"),this;
}this.ba=a instanceof u.F?a:new u.F(a);
this.k("error");
this.o("vjs-error");
u.log.error("(CODE:"+this.ba.code+" "+u.F.Ra[this.ba.code]+")",this.ba.message,this.ba);
return this;
};
t.ended=function(){return U(this,"ended");
};
t.seeking=function(){return U(this,"seeking");
};
t.na=f;
t.reportUserActivity=function(){this.na=f;
};
t.Sb=f;
t.userActive=function(a){return a!==b?(a=!!a,a!==this.Sb&&((this.Sb=a)?(this.na=f,this.r("vjs-user-inactive"),this.o("vjs-user-active"),this.k("useractive")):(this.na=l,this.g&&this.g.W("mousemove",function(a){a.stopPropagation();
a.preventDefault();
}),this.r("vjs-user-active"),this.o("vjs-user-inactive"),this.k("userinactive"))),this):this.Sb;
};
t.playbackRate=function(a){return a!==b?(V(this,"setPlaybackRate",a),this):this.g&&this.g.n&&this.g.n.playbackRate?U(this,"playbackRate"):1;
};
u.Ha=u.a.extend();
u.Ha.prototype.j={fe:"play",children:{playToggle:{},currentTimeDisplay:{},timeDivider:{},durationDisplay:{},remainingTimeDisplay:{},liveDisplay:{},progressControl:{},fullscreenToggle:{},volumeControl:{},muteToggle:{},playbackRateMenuButton:{}}};
u.Ha.prototype.e=function(){return u.e("div",{className:"vjs-control-bar"});
};
u.Zb=u.a.extend({h:function(a,c){u.a.call(this,a,c);
}});
u.Zb.prototype.e=function(){var a=u.a.prototype.e.call(this,"div",{className:"vjs-live-controls vjs-control"});
this.u=u.e("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">Stream Type </span>LIVE',"aria-live":"off"});
a.appendChild(this.u);
return a;
};
u.bc=u.s.extend({h:function(a,c){u.s.call(this,a,c);
a.d("play",u.bind(this,this.Ob));
a.d("pause",u.bind(this,this.Nb));
}});
t=u.bc.prototype;
t.sa="Play";
t.S=function(){return"vjs-play-control "+u.s.prototype.S.call(this);
};
t.q=function(){this.c.paused()?this.c.play():this.c.pause();
};
t.Ob=function(){u.r(this.b,"vjs-paused");
u.o(this.b,"vjs-playing");
this.b.children[0].children[0].innerHTML="Pause";
};
t.Nb=function(){u.r(this.b,"vjs-playing");
u.o(this.b,"vjs-paused");
this.b.children[0].children[0].innerHTML="Play";
};
u.fb=u.a.extend({h:function(a,c){u.a.call(this,a,c);
a.d("timeupdate",u.bind(this,this.fa));
}});
u.fb.prototype.e=function(){var a=u.a.prototype.e.call(this,"div",{className:"vjs-current-time vjs-time-controls vjs-control"});
this.u=u.e("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00',"aria-live":"off"});
a.appendChild(this.u);
return a;
};
u.fb.prototype.fa=function(){var a=this.c.$a?this.c.z.currentTime:this.c.currentTime();
this.u.innerHTML='<span class="vjs-control-text">Current Time </span>'+u.ya(a,this.c.duration());
};
u.gb=u.a.extend({h:function(a,c){u.a.call(this,a,c);
a.d("timeupdate",u.bind(this,this.fa));
}});
u.gb.prototype.e=function(){var a=u.a.prototype.e.call(this,"div",{className:"vjs-duration vjs-time-controls vjs-control"});
this.u=u.e("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">Duration Time </span>0:00',"aria-live":"off"});
a.appendChild(this.u);
return a;
};
u.gb.prototype.fa=function(){var a=this.c.duration();
a&&(this.u.innerHTML='<span class="vjs-control-text">Duration Time </span>'+u.ya(a));
};
u.hc=u.a.extend({h:function(a,c){u.a.call(this,a,c);
}});
u.hc.prototype.e=function(){return u.a.prototype.e.call(this,"div",{className:"vjs-time-divider",innerHTML:"<div><span>/</span></div>"});
};
u.nb=u.a.extend({h:function(a,c){u.a.call(this,a,c);
a.d("timeupdate",u.bind(this,this.fa));
}});
u.nb.prototype.e=function(){var a=u.a.prototype.e.call(this,"div",{className:"vjs-remaining-time vjs-time-controls vjs-control"});
this.u=u.e("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">Remaining Time </span>-0:00',"aria-live":"off"});
a.appendChild(this.u);
return a;
};
u.nb.prototype.fa=function(){this.c.duration()&&(this.u.innerHTML='<span class="vjs-control-text">Remaining Time </span>-'+u.ya(this.c.duration()-this.c.currentTime()));
};
u.Ia=u.s.extend({h:function(a,c){u.s.call(this,a,c);
}});
u.Ia.prototype.sa="Fullscreen";
u.Ia.prototype.S=function(){return"vjs-fullscreen-control "+u.s.prototype.S.call(this);
};
u.Ia.prototype.q=function(){this.c.isFullscreen()?(this.c.exitFullscreen(),this.xb.innerHTML="Fullscreen"):(this.c.requestFullscreen(),this.xb.innerHTML="Non-Fullscreen");
};
u.mb=u.a.extend({h:function(a,c){u.a.call(this,a,c);
}});
u.mb.prototype.j={children:{seekBar:{}}};
u.mb.prototype.e=function(){return u.a.prototype.e.call(this,"div",{className:"vjs-progress-control vjs-control"});
};
u.dc=u.Q.extend({h:function(a,c){u.Q.call(this,a,c);
a.d("timeupdate",u.bind(this,this.ma));
a.I(u.bind(this,this.ma));
}});
t=u.dc.prototype;
t.j={children:{loadProgressBar:{},playProgressBar:{},seekHandle:{}},barName:"playProgressBar",handleName:"seekHandle"};
t.Ac="timeupdate";
t.e=function(){return u.Q.prototype.e.call(this,"div",{className:"vjs-progress-holder","aria-label":"video progress bar"});
};
t.ma=function(){var a=this.c.$a?this.c.z.currentTime:this.c.currentTime();
this.b.setAttribute("aria-valuenow",u.round(100*this.Db(),2));
this.b.setAttribute("aria-valuetext",u.ya(a,this.c.duration()));
};
t.Db=function(){return this.c.currentTime()/this.c.duration();
};
t.Wa=function(a){u.Q.prototype.Wa.call(this,a);
this.c.$a=f;
this.Xd=!this.c.paused();
this.c.pause();
};
t.Lb=function(a){a=J(this,a)*this.c.duration();
a==this.c.duration()&&(a-=0.1);
this.c.currentTime(a);
};
t.Mb=function(a){u.Q.prototype.Mb.call(this,a);
this.c.$a=l;
this.Xd&&this.c.play();
};
t.Hc=function(){this.c.currentTime(this.c.currentTime()+5);
};
t.Gc=function(){this.c.currentTime(this.c.currentTime()-5);
};
u.jb=u.a.extend({h:function(a,c){u.a.call(this,a,c);
a.d("progress",u.bind(this,this.update));
}});
u.jb.prototype.e=function(){return u.a.prototype.e.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text">Loaded: 0%</span>'});
};
u.jb.prototype.update=function(){this.b.style&&(this.b.style.width=u.round(100*this.c.bufferedPercent(),2)+"%");
};
u.ac=u.a.extend({h:function(a,c){u.a.call(this,a,c);
}});
u.ac.prototype.e=function(){return u.a.prototype.e.call(this,"div",{className:"vjs-play-progress",innerHTML:'<span class="vjs-control-text">Progress: 0%</span>'});
};
u.Ka=u.Y.extend({h:function(a,c){u.Y.call(this,a,c);
a.d("timeupdate",u.bind(this,this.fa));
}});
u.Ka.prototype.defaultValue="00:00";
u.Ka.prototype.e=function(){return u.Y.prototype.e.call(this,"div",{className:"vjs-seek-handle","aria-live":"off"});
};
u.Ka.prototype.fa=function(){var a=this.c.$a?this.c.z.currentTime:this.c.currentTime();
this.b.innerHTML='<span class="vjs-control-text">'+u.ya(a,this.c.duration())+"</span>";
};
u.pb=u.a.extend({h:function(a,c){u.a.call(this,a,c);
a.g&&(a.g.n&&a.g.n.volumeControl===l)&&this.o("vjs-hidden");
a.d("loadstart",u.bind(this,function(){a.g.n&&a.g.n.volumeControl===l?this.o("vjs-hidden"):this.r("vjs-hidden");
}));
}});
u.pb.prototype.j={children:{volumeBar:{}}};
u.pb.prototype.e=function(){return u.a.prototype.e.call(this,"div",{className:"vjs-volume-control vjs-control"});
};
u.ob=u.Q.extend({h:function(a,c){u.Q.call(this,a,c);
a.d("volumechange",u.bind(this,this.ma));
a.I(u.bind(this,this.ma));
}});
t=u.ob.prototype;
t.ma=function(){this.b.setAttribute("aria-valuenow",u.round(100*this.c.volume(),2));
this.b.setAttribute("aria-valuetext",u.round(100*this.c.volume(),2)+"%");
};
t.j={children:{volumeLevel:{},volumeHandle:{}},barName:"volumeLevel",handleName:"volumeHandle"};
t.Ac="volumechange";
t.e=function(){return u.Q.prototype.e.call(this,"div",{className:"vjs-volume-bar","aria-label":"volume level"});
};
t.Lb=function(a){this.c.muted()&&this.c.muted(l);
this.c.volume(J(this,a));
};
t.Db=function(){return this.c.muted()?0:this.c.volume();
};
t.Hc=function(){this.c.volume(this.c.volume()+0.1);
};
t.Gc=function(){this.c.volume(this.c.volume()-0.1);
};
u.ic=u.a.extend({h:function(a,c){u.a.call(this,a,c);
}});
u.ic.prototype.e=function(){return u.a.prototype.e.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'});
};
u.qb=u.Y.extend();
u.qb.prototype.defaultValue="00:00";
u.qb.prototype.e=function(){return u.Y.prototype.e.call(this,"div",{className:"vjs-volume-handle"});
};
u.ha=u.s.extend({h:function(a,c){u.s.call(this,a,c);
a.d("volumechange",u.bind(this,this.update));
a.g&&(a.g.n&&a.g.n.volumeControl===l)&&this.o("vjs-hidden");
a.d("loadstart",u.bind(this,function(){a.g.n&&a.g.n.volumeControl===l?this.o("vjs-hidden"):this.r("vjs-hidden");
}));
}});
u.ha.prototype.e=function(){return u.s.prototype.e.call(this,"div",{className:"vjs-mute-control vjs-control",innerHTML:'<div><span class="vjs-control-text">Mute</span></div>'});
};
u.ha.prototype.q=function(){this.c.muted(this.c.muted()?l:f);
};
u.ha.prototype.update=function(){var a=this.c.volume(),c=3;
0===a||this.c.muted()?c=0:0.33>a?c=1:0.67>a&&(c=2);
this.c.muted()?"Unmute"!=this.b.children[0].children[0].innerHTML&&(this.b.children[0].children[0].innerHTML="Unmute"):"Mute"!=this.b.children[0].children[0].innerHTML&&(this.b.children[0].children[0].innerHTML="Mute");
for(a=0;
4>a;
a++){u.r(this.b,"vjs-vol-"+a);
}u.o(this.b,"vjs-vol-"+c);
};
u.qa=u.L.extend({h:function(a,c){u.L.call(this,a,c);
a.d("volumechange",u.bind(this,this.update));
a.g&&(a.g.n&&a.g.n.Nc===l)&&this.o("vjs-hidden");
a.d("loadstart",u.bind(this,function(){a.g.n&&a.g.n.Nc===l?this.o("vjs-hidden"):this.r("vjs-hidden");
}));
this.o("vjs-menu-button");
}});
u.qa.prototype.va=function(){var a=new u.ga(this.c,{lc:"div"}),c=new u.ob(this.c,u.l.B({Wd:f},this.j.me));
a.V(c);
return a;
};
u.qa.prototype.q=function(){u.ha.prototype.q.call(this);
u.L.prototype.q.call(this);
};
u.qa.prototype.e=function(){return u.s.prototype.e.call(this,"div",{className:"vjs-volume-menu-button vjs-menu-button vjs-control",innerHTML:'<div><span class="vjs-control-text">Mute</span></div>'});
};
u.qa.prototype.update=u.ha.prototype.update;
u.cc=u.L.extend({h:function(a,c){u.L.call(this,a,c);
this.Mc();
this.Lc();
a.d("loadstart",u.bind(this,this.Mc));
a.d("ratechange",u.bind(this,this.Lc));
}});
t=u.cc.prototype;
t.e=function(){var a=u.a.prototype.e.call(this,"div",{className:"vjs-playback-rate vjs-menu-button vjs-control",innerHTML:'<div class="vjs-control-content"><span class="vjs-control-text">Playback Rate</span></div>'});
this.xc=u.e("div",{className:"vjs-playback-rate-value",innerHTML:1});
a.appendChild(this.xc);
return a;
};
t.va=function(){var a=new u.ga(this.m()),c=this.m().options().playbackRates;
if(c){for(var d=c.length-1;
0<=d;
d--){a.V(new u.lb(this.m(),{rate:c[d]+"x"}));
}}return a;
};
t.ma=function(){this.w().setAttribute("aria-valuenow",this.m().playbackRate());
};
t.q=function(){for(var a=this.m().playbackRate(),c=this.m().options().playbackRates,d=c[0],e=0;
e<c.length;
e++){if(c[e]>a){d=c[e];
break;
}}this.m().playbackRate(d);
};
function fa(a){return a.m().g&&a.m().g.n.playbackRate&&a.m().options().playbackRates&&0<a.m().options().playbackRates.length;
}t.Mc=function(){fa(this)?this.r("vjs-hidden"):this.o("vjs-hidden");
};
t.Lc=function(){fa(this)&&(this.xc.innerHTML=this.m().playbackRate()+"x");
};
u.lb=u.J.extend({lc:"button",h:function(a,c){var d=this.label=c.rate,e=this.Cc=parseFloat(d,10);
c.label=d;
c.selected=1===e;
u.J.call(this,a,c);
this.m().d("ratechange",u.bind(this,this.update));
}});
u.lb.prototype.q=function(){u.J.prototype.q.call(this);
this.m().playbackRate(this.Cc);
};
u.lb.prototype.update=function(){this.selected(this.m().playbackRate()==this.Cc);
};
u.Ja=u.s.extend({h:function(a,c){u.s.call(this,a,c);
a.poster()&&this.src(a.poster());
(!a.poster()||!a.controls())&&this.G();
a.d("posterchange",u.bind(this,function(){this.src(a.poster());
}));
a.d("play",u.bind(this,this.G));
}});
var ga="backgroundSize" in u.A.style;
u.Ja.prototype.e=function(){var a=u.e("div",{className:"vjs-poster",tabIndex:-1});
ga||a.appendChild(u.e("img"));
return a;
};
u.Ja.prototype.src=function(a){var c=this.w();
a!==b&&(ga?c.style.backgroundImage='url("'+a+'")':c.firstChild.src=a);
};
u.Ja.prototype.q=function(){this.m().controls()&&this.c.play();
};
u.$b=u.a.extend({h:function(a,c){u.a.call(this,a,c);
a.d("canplay",u.bind(this,this.G));
a.d("canplaythrough",u.bind(this,this.G));
a.d("playing",u.bind(this,this.G));
a.d("seeking",u.bind(this,this.show));
a.d("seeked",u.bind(this,this.G));
a.d("ended",u.bind(this,this.G));
a.d("waiting",u.bind(this,this.show));
}});
u.$b.prototype.e=function(){return u.a.prototype.e.call(this,"div",{className:"vjs-loading-spinner"});
};
u.cb=u.s.extend();
u.cb.prototype.e=function(){return u.s.prototype.e.call(this,"div",{className:"vjs-big-play-button",innerHTML:'<span aria-hidden="true"></span>',"aria-label":"play video"});
};
u.cb.prototype.q=function(){this.c.play();
};
u.hb=u.a.extend({h:function(a,c){u.a.call(this,a,c);
this.update();
a.d("error",u.bind(this,this.update));
}});
u.hb.prototype.e=function(){var a=u.a.prototype.e.call(this,"div",{className:"vjs-error-display"});
this.u=u.e("div");
a.appendChild(this.u);
return a;
};
u.hb.prototype.update=function(){this.m().error()&&(this.u.innerHTML=this.m().error().message);
};
u.t=u.a.extend({h:function(a,c,d){c=c||{};
c.Ec=l;
u.a.call(this,a,c,d);
var e,g;
g=this;
e=this.m();
a=function(){if(e.controls()&&!e.usingNativeControls()){var a;
g.d("mousedown",g.q);
g.d("touchstart",function(c){c.preventDefault();
a=this.c.userActive();
});
g.d("touchmove",function(){a&&this.m().reportUserActivity();
});
I(g);
g.d("tap",g.Ed);
}};
c=u.bind(g,g.Id);
this.I(a);
e.d("controlsenabled",a);
e.d("controlsdisabled",c);
}});
t=u.t.prototype;
t.Id=function(){this.p("tap");
this.p("touchstart");
this.p("touchmove");
this.p("touchleave");
this.p("touchcancel");
this.p("touchend");
this.p("click");
this.p("mousedown");
};
t.q=function(a){0===a.button&&this.m().controls()&&(this.m().paused()?this.m().play():this.m().pause());
};
t.Ed=function(){this.m().userActive(!this.m().userActive());
};
t.Qb=m();
t.n={volumeControl:f,fullscreenResize:l,playbackRate:l,progressEvents:l,timeupdateEvents:l};
u.media={};
u.media.bb="play pause paused currentTime setCurrentTime duration buffered volume setVolume muted setMuted width height supportsFullScreen enterFullScreen src load currentSrc preload setPreload autoplay setAutoplay loop setLoop error networkState readyState seeking initialTime startOffsetTime played seekable ended videoTracks audioTracks videoWidth videoHeight textTracks defaultPlaybackRate playbackRate mediaGroup controller controls defaultMuted".split(" ");
function ha(){var a=u.media.bb[i];
return function(){throw Error('The "'+a+"\" method is not available on the playback technology's API");
};
}for(var i=u.media.bb.length-1;
0<=i;
i--){u.t.prototype[u.media.bb[i]]=ha();
}u.f=u.t.extend({h:function(a,c,d){this.n.volumeControl=u.f.dd();
this.n.playbackRate=u.f.cd();
this.n.movingMediaElementInDOM=!u.Sc;
this.n.fullscreenResize=f;
u.t.call(this,a,c,d);
for(d=u.f.ib.length-1;
0<=d;
d--){u.d(this.b,u.f.ib[d],u.bind(this,this.md));
}(c=c.source)&&this.b.currentSrc===c.src&&0<this.b.networkState?a.I(function(){a.k("loadstart");
}):c&&(this.b.src=c.src);
if(u.fc&&a.options().nativeControlsForTouch!==l){var e,g,h,k;
e=this;
g=this.m();
c=g.controls();
e.b.controls=!!c;
h=function(){e.b.controls=f;
};
k=function(){e.b.controls=l;
};
g.d("controlsenabled",h);
g.d("controlsdisabled",k);
c=function(){g.p("controlsenabled",h);
g.p("controlsdisabled",k);
};
e.d("dispose",c);
g.d("usingcustomcontrols",c);
g.usingNativeControls(f);
}a.I(function(){this.P&&(this.j.autoplay&&this.paused())&&(delete this.P.poster,this.play());
});
this.Ea();
}});
t=u.f.prototype;
t.dispose=function(){u.t.prototype.dispose.call(this);
};
t.e=function(){var a=this.c,c=a.P,d;
if(!c||this.n.movingMediaElementInDOM===l){c?(d=c.cloneNode(l),u.f.nc(c),c=d,a.P=j):c=u.e("video",{id:a.id()+"_html5_api",className:"vjs-tech"}),c.player=a,u.Eb(c,a.w());
}d=["autoplay","preload","loop","muted"];
for(var e=d.length-1;
0<=e;
e--){var g=d[e];
a.j[g]!==j&&(c[g]=a.j[g]);
}return c;
};
t.md=function(a){"error"==a.type?this.m().error(this.error().code):(a.bubbles=l,this.m().k(a));
};
t.play=function(){this.b.play();
};
t.pause=function(){this.b.pause();
};
t.paused=function(){return this.b.paused;
};
t.currentTime=function(){return this.b.currentTime;
};
t.Kd=function(a){try{this.b.currentTime=a;
}catch(c){u.log(c,"Video is not ready. (Video.js)");
}};
t.duration=function(){return this.b.duration||0;
};
t.buffered=function(){return this.b.buffered;
};
t.volume=function(){return this.b.volume;
};
t.Qd=function(a){this.b.volume=a;
};
t.muted=function(){return this.b.muted;
};
t.Nd=function(a){this.b.muted=a;
};
t.width=function(){return this.b.offsetWidth;
};
t.height=function(){return this.b.offsetHeight;
};
t.ab=function(){return"function"==typeof this.b.webkitEnterFullScreen&&(/Android/.test(u.M)||!/Chrome|Mac OS X 10.5/.test(u.M))?f:l;
};
t.oc=function(){var a=this.b;
a.paused&&a.networkState<=a.Zd?(this.b.play(),setTimeout(function(){a.pause();
a.webkitEnterFullScreen();
},0)):a.webkitEnterFullScreen();
};
t.nd=function(){this.b.webkitExitFullScreen();
};
t.src=function(a){this.b.src=a;
};
t.load=function(){this.b.load();
};
t.currentSrc=function(){return this.b.currentSrc;
};
t.poster=function(){return this.b.poster;
};
t.Qb=function(a){this.b.poster=a;
};
t.Xa=function(){return this.b.Xa;
};
t.Pd=function(a){this.b.Xa=a;
};
t.autoplay=function(){return this.b.autoplay;
};
t.Jd=function(a){this.b.autoplay=a;
};
t.controls=function(){return this.b.controls;
};
t.loop=function(){return this.b.loop;
};
t.Md=function(a){this.b.loop=a;
};
t.error=function(){return this.b.error;
};
t.seeking=function(){return this.b.seeking;
};
t.ended=function(){return this.b.ended;
};
t.playbackRate=function(){return this.b.playbackRate;
};
t.Od=function(a){this.b.playbackRate=a;
};
u.f.isSupported=function(){try{u.A.volume=0.5;
}catch(a){return l;
}return !!u.A.canPlayType;
};
u.f.ub=function(a){try{return !!u.A.canPlayType(a.type);
}catch(c){return"";
}};
u.f.dd=function(){var a=u.A.volume;
u.A.volume=a/2+0.1;
return a!==u.A.volume;
};
u.f.cd=function(){var a=u.A.playbackRate;
u.A.playbackRate=a/2+0.1;
return a!==u.A.playbackRate;
};
var W,ia=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,ja=/^video\/mp4/i;
u.f.zc=function(){4<=u.Ub&&(W||(W=u.A.constructor.prototype.canPlayType),u.A.constructor.prototype.canPlayType=function(a){return a&&ia.test(a)?"maybe":W.call(this,a);
});
u.Wc&&(W||(W=u.A.constructor.prototype.canPlayType),u.A.constructor.prototype.canPlayType=function(a){return a&&ja.test(a)?"maybe":W.call(this,a);
});
};
u.f.Vd=function(){var a=u.A.constructor.prototype.canPlayType;
u.A.constructor.prototype.canPlayType=W;
W=j;
return a;
};
u.f.zc();
u.f.ib="loadstart suspend abort error emptied stalled loadedmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate progress play pause ratechange volumechange".split(" ");
u.f.nc=function(a){if(a){a.player=j;
for(a.parentNode&&a.parentNode.removeChild(a);
a.hasChildNodes();
){a.removeChild(a.firstChild);
}a.removeAttribute("src");
if("function"===typeof a.load){try{a.load();
}catch(c){}}}};
u.i=u.t.extend({h:function(a,c,d){u.t.call(this,a,c,d);
var e=c.source;
d=c.parentEl;
var g=this.b=u.e("div",{id:a.id()+"_temp_flash"}),h=a.id()+"_flash_api";
a=a.j;
var k=u.l.B({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:a.autoplay,preload:a.Xa,loop:a.loop,muted:a.muted},c.flashVars),p=u.l.B({wmode:"opaque",bgcolor:"#000000"},c.params),n=u.l.B({id:h,name:h,"class":"vjs-tech"},c.attributes),s;
e&&(e.type&&u.i.vd(e.type)?(a=u.i.Ic(e.src),k.rtmpConnection=encodeURIComponent(a.wb),k.rtmpStream=encodeURIComponent(a.Rb)):k.src=encodeURIComponent(u.rc(e.src)));
this.setCurrentTime=function(a){s=a;
this.b.vjs_setProperty("currentTime",a);
};
this.currentTime=function(){return this.seeking()?s:this.b.vjs_getProperty("currentTime");
};
u.Eb(g,d);
c.startTime&&this.I(function(){this.load();
this.play();
this.currentTime(c.startTime);
});
u.Yb&&this.I(function(){u.d(this.w(),"mousemove",u.bind(this,function(){this.m().k({type:"mousemove",bubbles:l});
}));
});
if(c.iFrameMode===f&&!u.Yb){var C=u.e("iframe",{id:h+"_iframe",name:h+"_iframe",className:"vjs-tech",scrolling:"no",marginWidth:0,marginHeight:0,frameBorder:0});
k.readyFunction="ready";
k.eventProxyFunction="events";
k.errorEventProxyFunction="errors";
u.d(C,"load",u.bind(this,function(){var a,d=C.contentWindow;
a=C.contentDocument?C.contentDocument:C.contentWindow.document;
a.write(u.i.sc(c.swf,k,p,n));
d.player=this.c;
d.ready=u.bind(this.c,function(c){var d=this.g;
d.b=a.getElementById(c);
u.i.vb(d);
});
d.events=u.bind(this.c,function(a,c){this&&"flash"===this.Ca&&this.k(c);
});
d.errors=u.bind(this.c,function(a,c){u.log("Flash Error",c);
});
}));
g.parentNode.replaceChild(C,g);
}else{u.i.ld(c.swf,g,k,p,n);
}}});
t=u.i.prototype;
t.dispose=function(){u.t.prototype.dispose.call(this);
};
t.play=function(){this.b.vjs_play();
};
t.pause=function(){this.b.vjs_pause();
};
t.src=function(a){if(a===b){return this.currentSrc();
}u.i.ud(a)?(a=u.i.Ic(a),this.he(a.wb),this.ie(a.Rb)):(a=u.rc(a),this.b.vjs_src(a));
if(this.c.autoplay()){var c=this;
setTimeout(function(){c.play();
},0);
}};
t.currentSrc=function(){var a=this.b.vjs_getProperty("currentSrc");
if(a==j){var c=this.rtmpConnection(),d=this.rtmpStream();
c&&d&&(a=u.i.Rd(c,d));
}return a;
};
t.load=function(){this.b.vjs_load();
};
t.poster=function(){this.b.vjs_getProperty("poster");
};
t.Qb=m();
t.buffered=function(){return u.zb(0,this.b.vjs_getProperty("buffered"));
};
t.ab=r(l);
t.oc=r(l);
var ka=u.i.prototype,X="rtmpConnection rtmpStream preload defaultPlaybackRate playbackRate autoplay loop mediaGroup controller controls volume muted defaultMuted".split(" "),la="error networkState readyState seeking initialTime duration startOffsetTime paused played seekable ended videoTracks audioTracks videoWidth videoHeight textTracks".split(" ");
function ma(){var a=X[Y],c=a.charAt(0).toUpperCase()+a.slice(1);
ka["set"+c]=function(c){return this.b.vjs_setProperty(a,c);
};
}function na(a){ka[a]=function(){return this.b.vjs_getProperty(a);
};
}var Y;
for(Y=0;
Y<X.length;
Y++){na(X[Y]),ma();
}for(Y=0;
Y<la.length;
Y++){na(la[Y]);
}u.i.isSupported=function(){return 10<=u.i.version()[0];
};
u.i.ub=function(a){if(!a.type){return"";
}a=a.type.replace(/;.*/,"").toLowerCase();
if(a in u.i.pd||a in u.i.Jc){return"maybe";
}};
u.i.pd={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};
u.i.Jc={"rtmp/mp4":"MP4","rtmp/flv":"FLV"};
u.i.onReady=function(a){a=u.w(a);
var c=a.player||a.parentNode.player,d=c.g;
a.player=c;
d.b=a;
u.i.vb(d);
};
u.i.vb=function(a){a.w().vjs_getProperty?a.Ea():setTimeout(function(){u.i.vb(a);
},50);
};
u.i.onEvent=function(a,c){u.w(a).player.k(c);
};
u.i.onError=function(a,c){var d=u.w(a).player,e="FLASH: "+c;
"srcnotfound"==c?d.error({code:4,message:e}):d.error(e);
};
u.i.version=function(){var a="0,0,0";
try{a=(new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1];
}catch(c){try{navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(a=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1]);
}catch(d){}}return a.split(",");
};
u.i.ld=function(a,c,d,e,g){a=u.i.sc(a,d,e,g);
a=u.e("div",{innerHTML:a}).childNodes[0];
d=c.parentNode;
c.parentNode.replaceChild(a,c);
var h=d.childNodes[0];
setTimeout(function(){h.style.display="block";
},1000);
};
u.i.sc=function(a,c,d,e){var g="",h="",k="";
c&&u.l.wa(c,function(a,c){g+=a+"="+c+"&amp;";
});
d=u.l.B({movie:a,flashvars:g,allowScriptAccess:"always",allowNetworking:"all"},d);
u.l.wa(d,function(a,c){h+='<param name="'+a+'" value="'+c+'" />';
});
e=u.l.B({data:a,width:"100%",height:"100%"},e);
u.l.wa(e,function(a,c){k+=a+'="'+c+'" ';
});
return'<object type="application/x-shockwave-flash"'+k+">"+h+"</object>";
};
u.i.Rd=function(a,c){return a+"&"+c;
};
u.i.Ic=function(a){var c={wb:"",Rb:""};
if(!a){return c;
}var d=a.indexOf("&"),e;
-1!==d?e=d+1:(d=e=a.lastIndexOf("/")+1,0===d&&(d=e=a.length));
c.wb=a.substring(0,d);
c.Rb=a.substring(e,a.length);
return c;
};
u.i.vd=function(a){return a in u.i.Jc;
};
u.i.Yc=/^rtmp[set]?:\/\//i;
u.i.ud=function(a){return u.i.Yc.test(a);
};
u.Xc=u.a.extend({h:function(a,c,d){u.a.call(this,a,c,d);
if(!a.j.sources||0===a.j.sources.length){c=0;
for(d=a.j.techOrder;
c<d.length;
c++){var e=u.$(d[c]),g=window.videojs[e];
if(g&&g.isSupported()){R(a,e);
break;
}}}else{a.src(a.j.sources);
}}});
u.Player.prototype.textTracks=function(){return this.Da=this.Da||[];
};
function oa(a,c,d,e,g){var h=a.Da=a.Da||[];
g=g||{};
g.kind=c;
g.label=d;
g.language=e;
c=u.$(c||"subtitles");
var k=new window.videojs[c+"Track"](a,g);
h.push(k);
k.Qa()&&a.I(function(){setTimeout(function(){k.show();
},0);
});
}function pa(a,c,d){for(var e=a.Da,g=0,h=e.length,k,p;
g<h;
g++){k=e[g],k.id()===c?(k.show(),p=k):d&&(k.K()==d&&0<k.mode())&&k.disable();
}(c=p?p.K():d?d:l)&&a.k(c+"trackchange");
}u.C=u.a.extend({h:function(a,c){u.a.call(this,a,c);
this.T=c.id||"vjs_"+c.kind+"_"+c.language+"_"+u.v++;
this.Fc=c.src;
this.hd=c["default"]||c.dflt;
this.Td=c.title;
this.ee=c.srclang;
this.wd=c.label;
this.aa=[];
this.rb=[];
this.ka=this.la=0;
this.c.d("fullscreenchange",u.bind(this,this.$c));
}});
t=u.C.prototype;
t.K=q("H");
t.src=q("Fc");
t.Qa=q("hd");
t.title=q("Td");
t.label=q("wd");
t.ed=q("aa");
t.Zc=q("rb");
t.readyState=q("la");
t.mode=q("ka");
t.$c=function(){this.b.style.fontSize=this.c.isFullScreen()?140*(screen.width/this.c.width())+"%":"";
};
t.e=function(){return u.a.prototype.e.call(this,"div",{className:"vjs-"+this.H+" vjs-text-track"});
};
t.show=function(){qa(this);
this.ka=2;
u.a.prototype.show.call(this);
};
t.G=function(){qa(this);
this.ka=1;
u.a.prototype.G.call(this);
};
t.disable=function(){2==this.ka&&this.G();
this.c.p("timeupdate",u.bind(this,this.update,this.T));
this.c.p("ended",u.bind(this,this.reset,this.T));
this.reset();
this.c.ja("textTrackDisplay").removeChild(this);
this.ka=0;
};
function qa(a){0===a.la&&a.load();
0===a.ka&&(a.c.d("timeupdate",u.bind(a,a.update,a.T)),a.c.d("ended",u.bind(a,a.reset,a.T)),("captions"===a.H||"subtitles"===a.H)&&a.c.ja("textTrackDisplay").V(a));
}t.load=function(){0===this.la&&(this.la=1,u.get(this.Fc,u.bind(this,this.Fd),u.bind(this,this.zd)));
};
t.zd=function(a){this.error=a;
this.la=3;
this.k("error");
};
t.Fd=function(a){var c,d;
a=a.split("\n");
for(var e="",g=1,h=a.length;
g<h;
g++){if(e=u.trim(a[g])){-1==e.indexOf("--\x3e")?(c=e,e=u.trim(a[++g])):c=this.aa.length;
c={id:c,index:this.aa.length};
d=e.split(" --\x3e ");
c.startTime=ra(d[0]);
c.xa=ra(d[1]);
for(d=[];
a[++g]&&(e=u.trim(a[g]));
){d.push(e);
}c.text=d.join("<br/>");
this.aa.push(c);
}}this.la=2;
this.k("loaded");
};
function ra(a){var c=a.split(":");
a=0;
var d,e,g;
3==c.length?(d=c[0],e=c[1],c=c[2]):(d=0,e=c[0],c=c[1]);
c=c.split(/\s+/);
c=c.splice(0,1)[0];
c=c.split(/\.|,/);
g=parseFloat(c[1]);
c=c[0];
a+=3600*parseFloat(d);
a+=60*parseFloat(e);
a+=parseFloat(c);
g&&(a+=g/1000);
return a;
}t.update=function(){if(0<this.aa.length){var a=this.c.options().trackTimeOffset||0,a=this.c.currentTime()+a;
if(this.Pb===b||a<this.Pb||this.Ta<=a){var c=this.aa,d=this.c.duration(),e=0,g=l,h=[],k,p,n,s;
a>=this.Ta||this.Ta===b?s=this.Ab!==b?this.Ab:0:(g=f,s=this.Hb!==b?this.Hb:c.length-1);
for(;
;
){n=c[s];
if(n.xa<=a){e=Math.max(e,n.xa),n.Ma&&(n.Ma=l);
}else{if(a<n.startTime){if(d=Math.min(d,n.startTime),n.Ma&&(n.Ma=l),!g){break;
}}else{g?(h.splice(0,0,n),p===b&&(p=s),k=s):(h.push(n),k===b&&(k=s),p=s),d=Math.min(d,n.xa),e=Math.max(e,n.startTime),n.Ma=f;
}}if(g){if(0===s){break;
}else{s--;
}}else{if(s===c.length-1){break;
}else{s++;
}}}this.rb=h;
this.Ta=d;
this.Pb=e;
this.Ab=k;
this.Hb=p;
k=this.rb;
p="";
a=0;
for(c=k.length;
a<c;
a++){p+='<span class="vjs-tt-cue">'+k[a].text+"</span>";
}this.b.innerHTML=p;
this.k("cuechange");
}}};
t.reset=function(){this.Ta=0;
this.Pb=this.c.duration();
this.Hb=this.Ab=0;
};
u.Wb=u.C.extend();
u.Wb.prototype.H="captions";
u.ec=u.C.extend();
u.ec.prototype.H="subtitles";
u.Xb=u.C.extend();
u.Xb.prototype.H="chapters";
u.gc=u.a.extend({h:function(a,c,d){u.a.call(this,a,c,d);
if(a.j.tracks&&0<a.j.tracks.length){c=this.c;
a=a.j.tracks;
for(var e=0;
e<a.length;
e++){d=a[e],oa(c,d.kind,d.label,d.language,d);
}}}});
u.gc.prototype.e=function(){return u.a.prototype.e.call(this,"div",{className:"vjs-text-track-display"});
};
u.Z=u.J.extend({h:function(a,c){var d=this.ea=c.track;
c.label=d.label();
c.selected=d.Qa();
u.J.call(this,a,c);
this.c.d(d.K()+"trackchange",u.bind(this,this.update));
}});
u.Z.prototype.q=function(){u.J.prototype.q.call(this);
pa(this.c,this.ea.T,this.ea.K());
};
u.Z.prototype.update=function(){this.selected(2==this.ea.mode());
};
u.kb=u.Z.extend({h:function(a,c){c.track={K:function(){return c.kind;
},m:a,label:function(){return c.kind+" off";
},Qa:r(l),mode:r(l)};
u.Z.call(this,a,c);
this.selected(f);
}});
u.kb.prototype.q=function(){u.Z.prototype.q.call(this);
pa(this.c,this.ea.T,this.ea.K());
};
u.kb.prototype.update=function(){for(var a=this.c.textTracks(),c=0,d=a.length,e,g=f;
c<d;
c++){e=a[c],e.K()==this.ea.K()&&2==e.mode()&&(g=l);
}this.selected(g);
};
u.U=u.L.extend({h:function(a,c){u.L.call(this,a,c);
1>=this.O.length&&this.G();
}});
u.U.prototype.ua=function(){var a=[],c;
a.push(new u.kb(this.c,{kind:this.H}));
for(var d=0;
d<this.c.textTracks().length;
d++){c=this.c.textTracks()[d],c.K()===this.H&&a.push(new u.Z(this.c,{track:c}));
}return a;
};
u.Fa=u.U.extend({h:function(a,c,d){u.U.call(this,a,c,d);
this.b.setAttribute("aria-label","Captions Menu");
}});
u.Fa.prototype.H="captions";
u.Fa.prototype.sa="Captions";
u.Fa.prototype.className="vjs-captions-button";
u.La=u.U.extend({h:function(a,c,d){u.U.call(this,a,c,d);
this.b.setAttribute("aria-label","Subtitles Menu");
}});
u.La.prototype.H="subtitles";
u.La.prototype.sa="Subtitles";
u.La.prototype.className="vjs-subtitles-button";
u.Ga=u.U.extend({h:function(a,c,d){u.U.call(this,a,c,d);
this.b.setAttribute("aria-label","Chapters Menu");
}});
t=u.Ga.prototype;
t.H="chapters";
t.sa="Chapters";
t.className="vjs-chapters-button";
t.ua=function(){for(var a=[],c,d=0;
d<this.c.textTracks().length;
d++){c=this.c.textTracks()[d],c.K()===this.H&&a.push(new u.Z(this.c,{track:c}));
}return a;
};
t.va=function(){for(var a=this.c.textTracks(),c=0,d=a.length,e,g,h=this.O=[];
c<d;
c++){if(e=a[c],e.K()==this.H&&e.Qa()){if(2>e.readyState()){this.be=e;
e.d("loaded",u.bind(this,this.va));
return ;
}g=e;
break;
}}a=this.za=new u.ga(this.c);
a.ia().appendChild(u.e("li",{className:"vjs-menu-title",innerHTML:u.$(this.H),Sd:-1}));
if(g){e=g.aa;
for(var k,c=0,d=e.length;
c<d;
c++){k=e[c],k=new u.eb(this.c,{track:g,cue:k}),h.push(k),a.V(k);
}}0<this.O.length&&this.show();
return a;
};
u.eb=u.J.extend({h:function(a,c){var d=this.ea=c.track,e=this.cue=c.cue,g=a.currentTime();
c.label=e.text;
c.selected=e.startTime<=g&&g<e.xa;
u.J.call(this,a,c);
d.d("cuechange",u.bind(this,this.update));
}});
u.eb.prototype.q=function(){u.J.prototype.q.call(this);
this.c.currentTime(this.cue.startTime);
this.update(this.cue.startTime);
};
u.eb.prototype.update=function(){var a=this.cue,c=this.c.currentTime();
this.selected(a.startTime<=c&&c<a.xa);
};
u.l.B(u.Ha.prototype.j.children,{subtitlesButton:{},captionsButton:{},chaptersButton:{}});
if("undefined"!==typeof window.JSON&&"function"===window.JSON.parse){u.JSON=window.JSON;
}else{u.JSON={};
var Z=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
u.JSON.parse=function(a,c){function d(a,e){var k,p,n=a[e];
if(n&&"object"===typeof n){for(k in n){Object.prototype.hasOwnProperty.call(n,k)&&(p=d(n,k),p!==b?n[k]=p:delete n[k]);
}}return c.call(a,e,n);
}var e;
a=String(a);
Z.lastIndex=0;
Z.test(a)&&(a=a.replace(Z,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4);
}));
if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return e=eval("("+a+")"),"function"===typeof c?d({"":e},""):e;
}throw new SyntaxError("JSON.parse(): invalid or malformed JSON data");
};
}u.jc=function(){var a,c,d=document.getElementsByTagName("video");
if(d&&0<d.length){for(var e=0,g=d.length;
e<g;
e++){if((c=d[e])&&c.getAttribute){c.player===b&&(a=c.getAttribute("data-setup"),a!==j&&(a=u.JSON.parse(a||"{}"),videojs(c,a)));
}else{u.sb();
break;
}}}else{u.Oc||u.sb();
}};
u.sb=function(){setTimeout(u.jc,1);
};
"complete"===document.readyState?u.Oc=f:u.W(window,"load",function(){u.Oc=f;
});
u.sb();
u.Hd=function(a,c){u.Player.prototype[a]=c;
};
var sa=this;
sa.Yd=f;
function $(a,c){var d=a.split("."),e=sa;
!(d[0] in e)&&e.execScript&&e.execScript("var "+d[0]);
for(var g;
d.length&&(g=d.shift());
){!d.length&&c!==b?e[g]=c:e=e[g]?e[g]:e[g]={};
}}$("videojs",u);
$("_V_",u);
$("videojs.options",u.options);
$("videojs.players",u.Aa);
$("videojs.TOUCH_ENABLED",u.fc);
$("videojs.cache",u.ta);
$("videojs.Component",u.a);
u.a.prototype.player=u.a.prototype.m;
u.a.prototype.options=u.a.prototype.options;
u.a.prototype.init=u.a.prototype.h;
u.a.prototype.dispose=u.a.prototype.dispose;
u.a.prototype.createEl=u.a.prototype.e;
u.a.prototype.contentEl=u.a.prototype.ia;
u.a.prototype.el=u.a.prototype.w;
u.a.prototype.addChild=u.a.prototype.V;
u.a.prototype.getChild=u.a.prototype.ja;
u.a.prototype.getChildById=u.a.prototype.rd;
u.a.prototype.children=u.a.prototype.children;
u.a.prototype.initChildren=u.a.prototype.uc;
u.a.prototype.removeChild=u.a.prototype.removeChild;
u.a.prototype.on=u.a.prototype.d;
u.a.prototype.off=u.a.prototype.p;
u.a.prototype.one=u.a.prototype.W;
u.a.prototype.trigger=u.a.prototype.k;
u.a.prototype.triggerReady=u.a.prototype.Ea;
u.a.prototype.show=u.a.prototype.show;
u.a.prototype.hide=u.a.prototype.G;
u.a.prototype.width=u.a.prototype.width;
u.a.prototype.height=u.a.prototype.height;
u.a.prototype.dimensions=u.a.prototype.jd;
u.a.prototype.ready=u.a.prototype.I;
u.a.prototype.addClass=u.a.prototype.o;
u.a.prototype.removeClass=u.a.prototype.r;
u.a.prototype.buildCSSClass=u.a.prototype.S;
u.Player.prototype.ended=u.Player.prototype.ended;
$("videojs.MediaLoader",u.Xc);
$("videojs.TextTrackDisplay",u.gc);
$("videojs.ControlBar",u.Ha);
$("videojs.Button",u.s);
$("videojs.PlayToggle",u.bc);
$("videojs.FullscreenToggle",u.Ia);
$("videojs.BigPlayButton",u.cb);
$("videojs.LoadingSpinner",u.$b);
$("videojs.CurrentTimeDisplay",u.fb);
$("videojs.DurationDisplay",u.gb);
$("videojs.TimeDivider",u.hc);
$("videojs.RemainingTimeDisplay",u.nb);
$("videojs.LiveDisplay",u.Zb);
$("videojs.ErrorDisplay",u.hb);
$("videojs.Slider",u.Q);
$("videojs.ProgressControl",u.mb);
$("videojs.SeekBar",u.dc);
$("videojs.LoadProgressBar",u.jb);
$("videojs.PlayProgressBar",u.ac);
$("videojs.SeekHandle",u.Ka);
$("videojs.VolumeControl",u.pb);
$("videojs.VolumeBar",u.ob);
$("videojs.VolumeLevel",u.ic);
$("videojs.VolumeMenuButton",u.qa);
$("videojs.VolumeHandle",u.qb);
$("videojs.MuteToggle",u.ha);
$("videojs.PosterImage",u.Ja);
$("videojs.Menu",u.ga);
$("videojs.MenuItem",u.J);
$("videojs.MenuButton",u.L);
$("videojs.PlaybackRateMenuButton",u.cc);
u.L.prototype.createItems=u.L.prototype.ua;
u.U.prototype.createItems=u.U.prototype.ua;
u.Ga.prototype.createItems=u.Ga.prototype.ua;
$("videojs.SubtitlesButton",u.La);
$("videojs.CaptionsButton",u.Fa);
$("videojs.ChaptersButton",u.Ga);
$("videojs.MediaTechController",u.t);
u.t.prototype.features=u.t.prototype.n;
u.t.prototype.n.volumeControl=u.t.prototype.n.Nc;
u.t.prototype.n.fullscreenResize=u.t.prototype.n.ce;
u.t.prototype.n.progressEvents=u.t.prototype.n.ge;
u.t.prototype.n.timeupdateEvents=u.t.prototype.n.je;
u.t.prototype.setPoster=u.t.prototype.Qb;
$("videojs.Html5",u.f);
u.f.Events=u.f.ib;
u.f.isSupported=u.f.isSupported;
u.f.canPlaySource=u.f.ub;
u.f.patchCanPlayType=u.f.zc;
u.f.unpatchCanPlayType=u.f.Vd;
u.f.prototype.setCurrentTime=u.f.prototype.Kd;
u.f.prototype.setVolume=u.f.prototype.Qd;
u.f.prototype.setMuted=u.f.prototype.Nd;
u.f.prototype.setPreload=u.f.prototype.Pd;
u.f.prototype.setAutoplay=u.f.prototype.Jd;
u.f.prototype.setLoop=u.f.prototype.Md;
u.f.prototype.enterFullScreen=u.f.prototype.oc;
u.f.prototype.exitFullScreen=u.f.prototype.nd;
u.f.prototype.playbackRate=u.f.prototype.playbackRate;
u.f.prototype.setPlaybackRate=u.f.prototype.Od;
$("videojs.Flash",u.i);
u.i.isSupported=u.i.isSupported;
u.i.canPlaySource=u.i.ub;
u.i.onReady=u.i.onReady;
$("videojs.TextTrack",u.C);
u.C.prototype.label=u.C.prototype.label;
u.C.prototype.kind=u.C.prototype.K;
u.C.prototype.mode=u.C.prototype.mode;
u.C.prototype.cues=u.C.prototype.ed;
u.C.prototype.activeCues=u.C.prototype.Zc;
$("videojs.CaptionsTrack",u.Wb);
$("videojs.SubtitlesTrack",u.ec);
$("videojs.ChaptersTrack",u.Xb);
$("videojs.autoSetup",u.jc);
$("videojs.plugin",u.Hd);
$("videojs.createTimeRange",u.zb);
$("videojs.util",u.oa);
u.oa.mergeOptions=u.oa.Kb;
})();
