(function(){
window.jspackager = {};
jspackager.devmode = false;
jspackager.jsList = {"__basic-behavior":["libs-basic/jquery-1.4x","libs-basic/jquery.ui.core","libs-basic/jquery.ui.widget","libs-basic/jquery.ui.mouse","libs-basic/jquery.ui.progressbar","libs-basic/jquery.ui.slider","packages/mm.full.min","plugins/fullwindow","utils/a11y-slider.ext","utils/useractivity","ui.a11y.ext","fadeOver","init-behavior"],"_extra-behavior":["highlighter/shCore","highlighter/shBrushCss","highlighter/shBrushJScript","highlighter/shBrushXml","plugins/playlist","jquery.tabtree","init-extra"],"_ui-demos":["libs-extra/jquery.ui.tabs.min","libs-extra/jquery.ui.resizable.min","libs-extra/jquery.ui.position.min","libs-extra/jquery.ui.dialog.min"]};
var basicScript = ["__basic-behavior"], srcMatch = /(.*)__basic-behavior\.js$/;
function loadModul(path){
for(var j = 0, leng = basicScript.length; j < leng; j++){
document.write('<script type="text/javascript" src="'+path+basicScript[j]+'.js"><\/script>');
}
}
var querys = location.search, 
hash = location.hash;
if(hash === '#devmode'){
basicScript = devModuleList[basicScript];
jspackager.devmode = true;
} else {
querys = querys.replace(/^\?/,'').split(/&|=/);
for(var i = 0, len = querys.length; i < len; i++){
if(querys[i] == 'devmode'){
basicScript = jspackager.jsList[basicScript];
jspackager.devmode = true;
break;
}
}
}
if(jspackager.devmode){
var scripts = document.getElementsByTagName('script'),
src,
path;
for(var i = 0, len = scripts.length; i < len; i++){
src = scripts[i].getAttribute('src');
if(src){
path = srcMatch.exec(src);
if(path && path[0] && path[1]){
jspackager.jsPath = path[1];
loadModul(path[1]);
}
}
}
}
})();
if(!window.jspackager || !jspackager.devmode){
//libs-basic/jquery-1.4x
;(function(w,x){var y=function(a,b){return new y.fn.init(a,b)},_jQuery=w.jQuery,_$=w.$,document=w.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,userAgent=navigator.userAgent,browserMatch,readyBound=false,readyList=[],DOMContentLoaded,toString=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,push=Array.prototype.push,slice=Array.prototype.slice,indexOf=Array.prototype.indexOf;y.fn=y.prototype={init:function(a,b){var c,elem,ret,doc;if(!a){return this}if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=document;this[0]=document.body;this.selector="body";this.length=1;return this}if(typeof a==="string"){c=quickExpr.exec(a);if(c&&(c[1]||!b)){if(c[1]){doc=(b?b.ownerDocument||b:document);ret=rsingleTag.exec(a);if(ret){if(y.isPlainObject(b)){a=[document.createElement(ret[1])];y.fn.attr.call(a,b,true)}else{a=[doc.createElement(ret[1])]}}else{ret=buildFragment([c[1]],[doc]);a=(ret.cacheable?ret.fragment.cloneNode(true):ret.fragment).childNodes}return y.merge(this,a)}else{elem=document.getElementById(c[2]);if(elem){if(elem.id!==c[2]){return rootjQuery.find(a)}this.length=1;this[0]=elem}this.context=document;this.selector=a;return this}}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=document;a=document.getElementsByTagName(a);return y.merge(this,a)}else if(!b||b.jquery){return(b||rootjQuery).find(a)}else{return y(b).find(a)}}else if(y.isFunction(a)){return rootjQuery.ready(a)}if(a.selector!==x){this.selector=a.selector;this.context=a.context}return y.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return slice.call(this,0)},get:function(a){return a==null?this.toArray():(a<0?this.slice(a)[0]:this[a])},pushStack:function(a,b,c){var d=y();if(y.isArray(a)){push.apply(d,a)}else{y.merge(d,a)}d.prevObject=this;d.context=this.context;if(b==="find"){d.selector=this.selector+(this.selector?" ":"")+c}else if(b){d.selector=this.selector+"."+b+"("+c+")"}return d},each:function(a,b){return y.each(this,a,b)},ready:function(a){y.bindReady();if(y.isReady){a.call(document,y)}else if(readyList){readyList.push(a)}return this},eq:function(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(slice.apply(this,arguments),"slice",slice.call(arguments).join(","))},map:function(b){return this.pushStack(y.map(this,function(a,i){return b.call(a,i,a)}))},end:function(){return this.prevObject||y(null)},push:push,sort:[].sort,splice:[].splice};y.fn.init.prototype=y.fn;y.extend=y.fn.extend=function(){var a=arguments[0]||{},i=1,length=arguments.length,deep=false,options,name,src,copy;if(typeof a==="boolean"){deep=a;a=arguments[1]||{};i=2}if(typeof a!=="object"&&!y.isFunction(a)){a={}}if(length===i){a=this;--i}for(;i<length;i++){if((options=arguments[i])!=null){for(name in options){src=a[name];copy=options[name];if(a===copy){continue}if(deep&&copy&&(y.isPlainObject(copy)||y.isArray(copy))){var b=src&&(y.isPlainObject(src)||y.isArray(src))?src:y.isArray(copy)?[]:{};a[name]=y.extend(deep,b,copy)}else if(copy!==x){a[name]=copy}}}}return a};y.extend({noConflict:function(a){w.$=_$;if(a){w.jQuery=_jQuery}return y},isReady:false,ready:function(){if(!y.isReady){if(!document.body){return setTimeout(y.ready,13)}y.isReady=true;if(readyList){var a,i=0;while((a=readyList[i++])){a.call(document,y)}readyList=null}if(y.fn.triggerHandler){y(document).triggerHandler("ready")}}},bindReady:function(){if(readyBound){return}readyBound=true;if(document.readyState==="complete"){return y.ready()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false);w.addEventListener("load",y.ready,false)}else if(document.attachEvent){document.attachEvent("onreadystatechange",DOMContentLoaded);w.attachEvent("onload",y.ready);var a=false;try{a=w.frameElement==null}catch(e){}if(document.documentElement.doScroll&&a){doScrollCheck()}}},isFunction:function(a){return toString.call(a)==="[object Function]"},isArray:function(a){return toString.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||toString.call(a)!=="[object Object]"||a.nodeType||a.setInterval){return false}if(a.constructor&&!hasOwnProperty.call(a,"constructor")&&!hasOwnProperty.call(a.constructor.prototype,"isPrototypeOf")){return false}var b;for(b in a){}return b===x||hasOwnProperty.call(a,b)},isEmptyObject:function(a){for(var b in a){return false}return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a){return null}a=y.trim(a);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 w.JSON&&w.JSON.parse?w.JSON.parse(a):(new Function("return "+a))()}else{y.error("Invalid JSON: "+a)}},noop:function(){},globalEval:function(a){if(a&&rnotwhite.test(a)){var b=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(y.support.scriptEval){script.appendChild(document.createTextNode(a))}else{script.text=a}b.insertBefore(script,b.firstChild);b.removeChild(script)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,c){var d,i=0,length=a.length,isObj=length===x||y.isFunction(a);if(c){if(isObj){for(d in a){if(b.apply(a[d],c)===false){break}}}else{for(;i<length;){if(b.apply(a[i++],c)===false){break}}}}else{if(isObj){for(d in a){if(b.call(a[d],d,a[d])===false){break}}}else{for(var e=a[0];i<length&&b.call(e,i,e)!==false;e=a[++i]){}}}return a},trim:function(a){return(a||"").replace(rtrim,"")},makeArray:function(a,b){var c=b||[];if(a!=null){if(a.length==null||typeof a==="string"||y.isFunction(a)||(typeof a!=="function"&&a.setInterval)){push.call(c,a)}else{y.merge(c,a)}}return c},inArray:function(a,b){if(b.indexOf){return b.indexOf(a)}for(var i=0,length=b.length;i<length;i++){if(b[i]===a){return i}}return-1},merge:function(a,b){var i=a.length,j=0;if(typeof b.length==="number"){for(var l=b.length;j<l;j++){a[i++]=b[j]}}else{while(b[j]!==x){a[i++]=b[j++]}}a.length=i;return a},grep:function(a,b,c){var d=[];for(var i=0,length=a.length;i<length;i++){if(!c!==!b(a[i],i)){d.push(a[i])}}return d},map:function(a,b,c){var d=[],value;for(var i=0,length=a.length;i<length;i++){value=b(a[i],i,c);if(value!=null){d[d.length]=value}}return d.concat.apply([],d)},guid:1,proxy:function(a,b,c){if(arguments.length===2){if(typeof b==="string"){c=a;a=c[b];b=x}else if(b&&!y.isFunction(b)){c=b;b=x}}if(!b&&a){b=function(){return a.apply(c||this,arguments)}}if(a){b.guid=a.guid=a.guid||b.guid||y.guid++}return b},uaMatch:function(a){a=a.toLowerCase();var b=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},browser:{}});browserMatch=y.uaMatch(userAgent);if(browserMatch.browser){y.browser[browserMatch.browser]=true;y.browser.version=browserMatch.version}if(y.browser.webkit){y.browser.safari=true}if(indexOf){y.inArray=function(a,b){return indexOf.call(b,a)}}rootjQuery=y(document);if(document.addEventListener){DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);y.ready()}}else if(document.attachEvent){DOMContentLoaded=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);y.ready()}}}function doScrollCheck(){if(y.isReady){return}try{document.documentElement.doScroll("left")}catch(error){setTimeout(doScrollCheck,1);return}y.ready()}function evalScript(i,a){if(a.src){y.ajax({url:a.src,async:false,dataType:"script"})}else{y.globalEval(a.text||a.textContent||a.innerHTML||"")}if(a.parentNode){a.parentNode.removeChild(a)}}function access(a,b,c,d,e,f){var g=a.length;if(typeof b==="object"){for(var k in b){access(a,k,b[k],d,e,c)}return a}if(c!==x){d=!f&&d&&y.isFunction(c);for(var i=0;i<g;i++){e(a[i],b,d?c.call(a[i],i,e(a[i],b)):c,f)}return a}return g?e(a[0],b):x}function now(){return(new Date).getTime()}(function(){y.support={};var d=document.documentElement,script=document.createElement("script"),div=document.createElement("div"),id="script"+now();div.style.display="none";div.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=div.getElementsByTagName("*"),a=div.getElementsByTagName("a")[0];if(!f||!f.length||!a){return}y.support={leadingWhitespace:div.firstChild.nodeType===3,tbody:!div.getElementsByTagName("tbody").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/red/.test(a.getAttribute("style")),hrefNormalized:a.getAttribute("href")==="/a",opacity:/^0.55$/.test(a.style.opacity),cssFloat:!!a.style.cssFloat,checkOn:div.getElementsByTagName("input")[0].value==="on",optSelected:document.createElement("select").appendChild(document.createElement("option")).selected,parentNode:div.removeChild(div.appendChild(document.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};script.type="text/javascript";try{script.appendChild(document.createTextNode("window."+id+"=1;"))}catch(e){}d.insertBefore(script,d.firstChild);if(w[id]){y.support.scriptEval=true;delete w[id]}try{delete script.test}catch(e){y.support.deleteExpando=false}d.removeChild(script);if(div.attachEvent&&div.fireEvent){div.attachEvent("onclick",function click(){y.support.noCloneEvent=false;div.detachEvent("onclick",click)});div.cloneNode(true).fireEvent("onclick")}div=document.createElement("div");div.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var g=document.createDocumentFragment();g.appendChild(div.firstChild);y.support.checkClone=g.cloneNode(true).cloneNode(true).lastChild.checked;y(function(){var a=document.createElement("div");a.style.width=a.style.paddingLeft="1px";document.body.appendChild(a);y.boxModel=y.support.boxModel=a.offsetWidth===2;document.body.removeChild(a).style.display='none';a=null});var h=function(a){var b=document.createElement("div");a="on"+a;var c=(a in b);if(!c){b.setAttribute(a,"return;");c=typeof b[a]==="function"}b=null;return c};y.support.submitBubbles=h("submit");y.support.changeBubbles=h("change");d=script=div=f=a=null})();y.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var z="jQuery"+now(),uuid=0,windowData={};y.extend({cache:{},expando:z,noData:{"embed":true,"object":true,"applet":true},data:function(a,b,c){if(a.nodeName&&y.noData[a.nodeName.toLowerCase()]){return}a=a==w?windowData:a;var d=a[z],cache=y.cache,thisCache;if(!d&&typeof b==="string"&&c===x){return null}if(!d){d=++uuid}if(typeof b==="object"){a[z]=d;thisCache=cache[d]=y.extend(true,{},b)}else if(!cache[d]){a[z]=d;cache[d]={}}thisCache=cache[d];if(c!==x){thisCache[b]=c}return typeof b==="string"?thisCache[b]:thisCache},removeData:function(a,b){if(a.nodeName&&y.noData[a.nodeName.toLowerCase()]){return}a=a==w?windowData:a;var c=a[z],cache=y.cache,thisCache=cache[c];if(b){if(thisCache){delete thisCache[b];if(y.isEmptyObject(thisCache)){y.removeData(a)}}}else{if(y.support.deleteExpando){delete a[y.expando]}else if(a.removeAttribute){a.removeAttribute(y.expando)}delete cache[c]}}});y.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length){return y.data(this[0])}else if(typeof a==="object"){return this.each(function(){y.data(this,a)})}var c=a.split(".");c[1]=c[1]?"."+c[1]:"";if(b===x){var d=this.triggerHandler("getData"+c[1]+"!",[c[0]]);if(d===x&&this.length){d=y.data(this[0],a)}return d===x&&c[1]?this.data(c[0]):d}else{return this.trigger("setData"+c[1]+"!",[c[0],b]).each(function(){y.data(this,a,b)})}},removeData:function(a){return this.each(function(){y.removeData(this,a)})}});y.extend({queue:function(a,b,c){if(!a){return}b=(b||"fx")+"queue";var q=y.data(a,b);if(!c){return q||[]}if(!q||y.isArray(c)){q=y.data(a,b,y.makeArray(c))}else{q.push(c)}return q},dequeue:function(a,b){b=b||"fx";var c=y.queue(a,b),fn=c.shift();if(fn==="inprogress"){fn=c.shift()}if(fn){if(b==="fx"){c.unshift("inprogress")}fn.call(a,function(){y.dequeue(a,b)})}}});y.fn.extend({queue:function(c,d){if(typeof c!=="string"){d=c;c="fx"}if(d===x){return y.queue(this[0],c)}return this.each(function(i,a){var b=y.queue(this,c,d);if(c==="fx"&&b[0]!=="inprogress"){y.dequeue(this,c)}})},dequeue:function(a){return this.each(function(){y.dequeue(this,a)})},delay:function(b,c){b=y.fx?y.fx.speeds[b]||b:b;c=c||"fx";return this.queue(c,function(){var a=this;setTimeout(function(){y.dequeue(a,c)},b)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var A=/[\n\t]/g,rspace=/\s+/,rreturn=/\r/g,rspecialurl=/href|src|style/,rtype=/(button|input)/i,rfocusable=/(button|input|object|select|textarea)/i,rclickable=/^(a|area)$/i,rradiocheck=/radio|checkbox/;y.fn.extend({attr:function(a,b){return access(this,a,b,true,y.attr)},removeAttr:function(a,b){return this.each(function(){y.attr(this,a,"");if(this.nodeType===1){this.removeAttribute(a)}})},addClass:function(b){if(y.isFunction(b)){return this.each(function(i){var a=y(this);a.addClass(b.call(this,i,a.attr("class")))})}if(b&&typeof b==="string"){var d=(b||"").split(rspace);for(var i=0,l=this.length;i<l;i++){var e=this[i];if(e.nodeType===1){if(!e.className){e.className=b}else{var f=" "+e.className+" ",setClass=e.className;for(var c=0,cl=d.length;c<cl;c++){if(f.indexOf(" "+d[c]+" ")<0){setClass+=" "+d[c]}}e.className=y.trim(setClass)}}}}return this},removeClass:function(b){if(y.isFunction(b)){return this.each(function(i){var a=y(this);a.removeClass(b.call(this,i,a.attr("class")))})}if((b&&typeof b==="string")||b===x){var d=(b||"").split(rspace);for(var i=0,l=this.length;i<l;i++){var e=this[i];if(e.nodeType===1&&e.className){if(b){var f=(" "+e.className+" ").replace(A," ");for(var c=0,cl=d.length;c<cl;c++){f=f.replace(" "+d[c]+" "," ")}e.className=y.trim(f)}else{e.className=""}}}}return this},toggleClass:function(b,c){var d=typeof b,isBool=typeof c==="boolean";if(y.isFunction(b)){return this.each(function(i){var a=y(this);a.toggleClass(b.call(this,i,a.attr("class"),c),c)})}return this.each(function(){if(d==="string"){var a,i=0,self=y(this),state=c,classNames=b.split(rspace);while((a=classNames[i++])){state=isBool?state:!self.hasClass(a);self[state?"addClass":"removeClass"](a)}}else if(d==="undefined"||d==="boolean"){if(this.className){y.data(this,"__className__",this.className)}this.className=this.className||b===false?"":y.data(this,"__className__")||""}})},hasClass:function(a){var b=" "+a+" ";for(var i=0,l=this.length;i<l;i++){if((" "+this[i].className+" ").replace(A," ").indexOf(b)>-1){return true}}return false},val:function(c){if(c===x){var d=this[0];if(d){if(y.nodeName(d,"option")){return(d.attributes.value||{}).specified?d.value:d.text}if(y.nodeName(d,"select")){var e=d.selectedIndex,values=[],options=d.options,one=d.type==="select-one";if(e<0){return null}for(var i=one?e:0,max=one?e+1:options.length;i<max;i++){var f=options[i];if(f.selected){c=y(f).val();if(one){return c}values.push(c)}}return values}if(rradiocheck.test(d.type)&&!y.support.checkOn){return d.getAttribute("value")===null?"on":d.value}return(d.value||"").replace(rreturn,"")}return x}var g=y.isFunction(c);return this.each(function(i){var a=y(this),val=c;if(this.nodeType!==1){return}if(g){val=c.call(this,i,a.val())}if(typeof val==="number"){val+=""}if(y.isArray(val)&&rradiocheck.test(this.type)){this.checked=y.inArray(a.val(),val)>=0}else if(y.nodeName(this,"select")){var b=y.makeArray(val);y("option",this).each(function(){this.selected=y.inArray(y(this).val(),b)>=0});if(!b.length){this.selectedIndex=-1}}else{this.value=val}})}});y.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,c,d){if(!a||a.nodeType===3||a.nodeType===8){return x}if(d&&b in y.attrFn){return y(a)[b](c)}var e=a.nodeType!==1||!y.isXMLDoc(a),set=c!==x;b=e&&y.props[b]||b;if(a.nodeType===1){var f=rspecialurl.test(b);if(b==="selected"&&!y.support.optSelected){var g=a.parentNode;if(g){g.selectedIndex;if(g.parentNode){g.parentNode.selectedIndex}}}if(b in a&&e&&!f){if(set){if(b==="type"&&rtype.test(a.nodeName)&&a.parentNode){y.error("type property can't be changed")}a[b]=c}if(y.nodeName(a,"form")&&a.getAttributeNode(b)){return a.getAttributeNode(b).nodeValue}if(b==="tabIndex"){var h=a.getAttributeNode("tabIndex");return h&&h.specified?h.value:rfocusable.test(a.nodeName)||rclickable.test(a.nodeName)&&a.href?0:x}return a[b]}if(!y.support.style&&e&&b==="style"){if(set){a.style.cssText=""+c}return a.style.cssText}if(set){a.setAttribute(b,""+c)}var i=!y.support.hrefNormalized&&e&&f?a.getAttribute(b,2):a.getAttribute(b);return i===null?x:i}return y.style(a,b,c)}});var B=/\.(.*)$/,fcleanup=function(b){return b.replace(/[^\w\s\.\|`]/g,function(a){return"\\"+a})};y.event={add:function(a,b,c,d){if(a.nodeType===3||a.nodeType===8){return}if(a.setInterval&&(a!==w&&!a.frameElement)){a=w}var e,handleObj;if(c.handler){e=c;c=e.handler}if(!c.guid){c.guid=y.guid++}var f=y.data(a);if(!f){return}var g=f.events=f.events||{},eventHandle=f.handle,eventHandle;if(!eventHandle){f.handle=eventHandle=function(){return typeof y!=="undefined"&&!y.event.triggered?y.event.handle.apply(eventHandle.elem,arguments):x}}eventHandle.elem=a;b=b.split(" ");var h,i=0,namespaces;while((h=b[i++])){handleObj=e?y.extend({},e):{handler:c,data:d};if(h.indexOf(".")>-1){namespaces=h.split(".");h=namespaces.shift();handleObj.namespace=namespaces.slice(0).sort().join(".")}else{namespaces=[];handleObj.namespace=""}handleObj.type=h;handleObj.guid=c.guid;var j=g[h],special=y.event.special[h]||{};if(!j){j=g[h]=[];if(!special.setup||special.setup.call(a,d,namespaces,eventHandle)===false){if(a.addEventListener){a.addEventListener(h,eventHandle,false)}else if(a.attachEvent){a.attachEvent("on"+h,eventHandle)}}}if(special.add){special.add.call(a,handleObj);if(!handleObj.handler.guid){handleObj.handler.guid=c.guid}}j.push(handleObj);y.event.global[h]=true}a=null},global:{},remove:function(a,b,c,d){if(a.nodeType===3||a.nodeType===8){return}var e,type,fn,i=0,all,namespaces,namespace,special,eventType,handleObj,origType,elemData=y.data(a),events=elemData&&elemData.events;if(!elemData||!events){return}if(b&&b.type){c=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(type in events){y.event.remove(a,type+b)}return}b=b.split(" ");while((type=b[i++])){origType=type;handleObj=null;all=type.indexOf(".")<0;namespaces=[];if(!all){namespaces=type.split(".");type=namespaces.shift();namespace=new RegExp("(^|\\.)"+y.map(namespaces.slice(0).sort(),fcleanup).join("\\.(?:.*\\.)?")+"(\\.|$)")}eventType=events[type];if(!eventType){continue}if(!c){for(var j=0;j<eventType.length;j++){handleObj=eventType[j];if(all||namespace.test(handleObj.namespace)){y.event.remove(a,origType,handleObj.handler,j);eventType.splice(j--,1)}}continue}special=y.event.special[type]||{};for(var j=d||0;j<eventType.length;j++){handleObj=eventType[j];if(c.guid===handleObj.guid){if(all||namespace.test(handleObj.namespace)){if(d==null){eventType.splice(j--,1)}if(special.remove){special.remove.call(a,handleObj)}}if(d!=null){break}}}if(eventType.length===0||d!=null&&eventType.length===1){if(!special.teardown||special.teardown.call(a,namespaces)===false){C(a,type,elemData.handle)}e=null;delete events[type]}}if(y.isEmptyObject(events)){var f=elemData.handle;if(f){f.elem=null}delete elemData.events;delete elemData.handle;if(y.isEmptyObject(elemData)){y.removeData(a)}}},trigger:function(a,b,c){var d=a.type||a,bubbling=arguments[3];if(!bubbling){a=typeof a==="object"?a[z]?a:y.extend(y.Event(d),a):y.Event(d);if(d.indexOf("!")>=0){a.type=d=d.slice(0,-1);a.exclusive=true}if(!c){a.stopPropagation();if(y.event.global[d]){y.each(y.cache,function(){if(this.events&&this.events[d]){y.event.trigger(a,b,this.handle.elem)}})}}if(!c||c.nodeType===3||c.nodeType===8){return x}a.result=x;a.target=c;b=y.makeArray(b);b.unshift(a)}a.currentTarget=c;var f=y.data(c,"handle");if(f){f.apply(c,b)}var g=c.parentNode||c.ownerDocument;try{if(!(c&&c.nodeName&&y.noData[c.nodeName.toLowerCase()])){if(c["on"+d]&&c["on"+d].apply(c,b)===false){a.result=false}}}catch(e){}if(!a.isPropagationStopped()&&g){y.event.trigger(a,b,g,true)}else if(!a.isDefaultPrevented()){var h=a.target,old,isClick=y.nodeName(h,"a")&&d==="click",special=y.event.special[d]||{};if((!special._default||special._default.call(c,a)===false)&&!isClick&&!(h&&h.nodeName&&y.noData[h.nodeName.toLowerCase()])){try{if(h[d]){old=h["on"+d];if(old){h["on"+d]=null}y.event.triggered=true;h[d]()}}catch(e){}if(old){h["on"+d]=old}y.event.triggered=false}}},handle:function(a){var b,handlers,namespaces,namespace,c;a=arguments[0]=y.event.fix(a||w.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){namespaces=a.type.split(".");a.type=namespaces.shift();namespace=new RegExp("(^|\\.)"+namespaces.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var c=y.data(this,"events"),handlers=c[a.type];if(c&&handlers){handlers=handlers.slice(0);for(var j=0,l=handlers.length;j<l;j++){var d=handlers[j];if(b||namespace.test(d.namespace)){a.handler=d.handler;a.data=d.data;a.handleObj=d;var e=d.handler.apply(this,arguments);if(e!==x){a.result=e;if(e===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped()){break}}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[z]){return a}var b=a;a=y.Event(b);for(var i=this.props.length,prop;i;){prop=this.props[--i];a[prop]=b[prop]}if(!a.target){a.target=a.srcElement||document}if(a.target.nodeType===3){a.target=a.target.parentNode}if(!a.relatedTarget&&a.fromElement){a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement}if(a.pageX==null&&a.clientX!=null){var c=document.documentElement,body=document.body;a.pageX=a.clientX+(c&&c.scrollLeft||body&&body.scrollLeft||0)-(c&&c.clientLeft||body&&body.clientLeft||0);a.pageY=a.clientY+(c&&c.scrollTop||body&&body.scrollTop||0)-(c&&c.clientTop||body&&body.clientTop||0)}if(!a.which&&((a.charCode||a.charCode===0)?a.charCode:a.keyCode)){a.which=a.charCode||a.keyCode}if(!a.metaKey&&a.ctrlKey){a.metaKey=a.ctrlKey}if(!a.which&&a.button!==x){a.which=(a.button&1?1:(a.button&2?3:(a.button&4?2:0)))}return a},guid:1E8,proxy:y.proxy,special:{ready:{setup:y.bindReady,teardown:y.noop},live:{add:function(a){y.event.add(this,a.origType,y.extend({},a,{handler:liveHandler}))},remove:function(a){var b=true,type=a.origType.replace(B,"");y.each(y.data(this,"events").live||[],function(){if(type===this.origType.replace(B,"")){b=false;return false}});if(b){y.event.remove(this,a.origType,liveHandler)}}},beforeunload:{setup:function(a,b,c){if(this.setInterval){this.onbeforeunload=c}return false},teardown:function(a,b){if(this.onbeforeunload===b){this.onbeforeunload=null}}}}};var C=document.removeEventListener?function(a,b,c){a.removeEventListener(b,c,false)}:function(a,b,c){a.detachEvent("on"+b,c)};y.Event=function(a){if(!this.preventDefault){return new y.Event(a)}if(a&&a.type){this.originalEvent=a;this.type=a.type}else{this.type=a}this.timeStamp=now();this[z]=true};function returnFalse(){return false}function returnTrue(){return true}y.Event.prototype={preventDefault:function(){this.isDefaultPrevented=returnTrue;var e=this.originalEvent;if(!e){return}if(e.preventDefault){e.preventDefault()}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};var D=function(a){var b=a.relatedTarget;try{while(b&&b!==this){b=b.parentNode}if(b!==this){a.type=a.data;y.event.handle.apply(this,arguments)}}catch(e){}},delegate=function(a){a.type=a.data;y.event.handle.apply(this,arguments)};y.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b,c){y.event.special[b]={setup:function(a){y.event.add(this,c,a&&a.selector?delegate:D,b)},teardown:function(a){y.event.remove(this,c,a&&a.selector?delegate:D)}}});if(!y.support.submitBubbles){y.event.special.submit={setup:function(b,c){if(this.nodeName.toLowerCase()!=="form"){y.event.add(this,"click.specialSubmit",function(e){var a=e.target,type=a.type;if((type==="submit"||type==="image")&&y(a).closest("form").length){return trigger("submit",this,arguments)}});y.event.add(this,"keypress.specialSubmit",function(e){var a=e.target,type=a.type;if((type==="text"||type==="password")&&y(a).closest("form").length&&e.keyCode===13){return trigger("submit",this,arguments)}})}else{return false}},teardown:function(a){y.event.remove(this,".specialSubmit")}}}if(!y.support.changeBubbles){var E=/textarea|input|select/i,changeFilters,getVal=function(b){var c=b.type,val=b.value;if(c==="radio"||c==="checkbox"){val=b.checked}else if(c==="select-multiple"){val=b.selectedIndex>-1?y.map(b.options,function(a){return a.selected}).join("-"):""}else if(b.nodeName.toLowerCase()==="select"){val=b.selectedIndex}return val},testChange=function testChange(e){var a=e.target,data,val;if(!E.test(a.nodeName)||a.readOnly){return}data=y.data(a,"_change_data");val=getVal(a);if(e.type!=="focusout"||a.type!=="radio"){y.data(a,"_change_data",val)}if(data===x||val===data){return}if(data!=null||val){e.type="change";return y.event.trigger(e,arguments[1],a)}};y.event.special.change={filters:{focusout:testChange,click:function(e){var a=e.target,type=a.type;if(type==="radio"||type==="checkbox"||a.nodeName.toLowerCase()==="select"){return testChange.call(this,e)}},keydown:function(e){var a=e.target,type=a.type;if((e.keyCode===13&&a.nodeName.toLowerCase()!=="textarea")||(e.keyCode===32&&(type==="checkbox"||type==="radio"))||type==="select-multiple"){return testChange.call(this,e)}},beforeactivate:function(e){var a=e.target;y.data(a,"_change_data",getVal(a))}},setup:function(a,b){if(this.type==="file"){return false}for(var c in changeFilters){y.event.add(this,c+".specialChange",changeFilters[c])}return E.test(this.nodeName)},teardown:function(a){y.event.remove(this,".specialChange");return E.test(this.nodeName)}};changeFilters=y.event.special.change.filters}function trigger(a,b,c){c[0].type=a;return y.event.handle.apply(b,c)}if(document.addEventListener){y.each({focus:"focusin",blur:"focusout"},function(a,b){y.event.special[b]={setup:function(){this.addEventListener(a,handler,true)},teardown:function(){this.removeEventListener(a,handler,true)}};function handler(e){e=y.event.fix(e);e.type=b;return y.event.handle.call(this,e)}})}y.each(["bind","one"],function(i,g){y.fn[g]=function(b,c,d){if(typeof b==="object"){for(var e in b){this[g](e,c,b[e],d)}return this}if(y.isFunction(c)){d=c;c=x}var f=g==="one"?y.proxy(d,function(a){y(this).unbind(a,f);return d.apply(this,arguments)}):d;if(b==="unload"&&g!=="one"){this.one(b,c,d)}else{for(var i=0,l=this.length;i<l;i++){y.event.add(this[i],b,f,c)}}return this}});y.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault){for(var c in a){this.unbind(c,a[c])}}else{for(var i=0,l=this.length;i<l;i++){y.event.remove(this[i],a,b)}}return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){if(arguments.length===0){return this.unbind("live")}else{return this.die(b,null,c,a)}},trigger:function(a,b){return this.each(function(){y.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var c=y.Event(a);c.preventDefault();c.stopPropagation();y.event.trigger(c,b,this[0]);return c.result}},toggle:function(c){var d=arguments,i=1;while(i<d.length){y.proxy(c,d[i++])}return this.click(y.proxy(c,function(a){var b=(y.data(this,"lastToggle"+c.guid)||0)%i;y.data(this,"lastToggle"+c.guid,b+1);a.preventDefault();return d[b].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var F={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};y.each(["live","die"],function(i,f){y.fn[f]=function(a,b,c,d){var e,i=0,match,namespaces,preType,selector=d||this.selector,context=d?this:y(this.context);if(y.isFunction(b)){c=b;b=x}a=(a||"").split(" ");while((e=a[i++])!=null){match=B.exec(e);namespaces="";if(match){namespaces=match[0];e=e.replace(B,"")}if(e==="hover"){a.push("mouseenter"+namespaces,"mouseleave"+namespaces);continue}preType=e;if(e==="focus"||e==="blur"){a.push(F[e]+namespaces);e=e+namespaces}else{e=(F[e]||e)+namespaces}if(f==="live"){context.each(function(){y.event.add(this,liveConvert(e,selector),{data:b,selector:selector,handler:c,origType:e,origHandler:c,preType:preType})})}else{context.unbind(liveConvert(e,selector),c)}}return this}});function liveHandler(a){var b,elems=[],selectors=[],args=arguments,related,match,handleObj,elem,j,i,l,data,events=y.data(this,"events");if(a.liveFired===this||!events||!events.live||a.button&&a.type==="click"){return}a.liveFired=this;var c=events.live.slice(0);for(j=0;j<c.length;j++){handleObj=c[j];if(handleObj.origType.replace(B,"")===a.type){selectors.push(handleObj.selector)}else{c.splice(j--,1)}}match=y(a.target).closest(selectors,a.currentTarget);for(i=0,l=match.length;i<l;i++){for(j=0;j<c.length;j++){handleObj=c[j];if(match[i].selector===handleObj.selector){elem=match[i].elem;related=null;if(handleObj.preType==="mouseenter"||handleObj.preType==="mouseleave"){related=y(a.relatedTarget).closest(handleObj.selector)[0]}if(!related||related!==elem){elems.push({elem:elem,handleObj:handleObj})}}}}for(i=0,l=elems.length;i<l;i++){match=elems[i];a.currentTarget=match.elem;a.data=match.handleObj.data;a.handleObj=match.handleObj;if(match.handleObj.origHandler.apply(match.elem,args)===false){b=false;break}}return b}function liveConvert(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,"&")}y.each(("blur focus focusin focusout load resize scroll unload click dblclick "+"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+"change select submit keydown keypress keyup error").split(" "),function(i,b){y.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)};if(y.attrFn){y.attrFn[b]=true}});if(w.attachEvent&&!w.addEventListener){w.attachEvent("onunload",function(){for(var a in y.cache){if(y.cache[a].handle){try{y.event.remove(y.cache[a].handle.elem)}catch(e){}}}})}(function(){var j=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var k=function(a,b,c,d){c=c||[];var e=b=b||document;if(b.nodeType!==1&&b.nodeType!==9){return[]}if(!a||typeof a!=="string"){return c}var f=[],m,set,checkSet,extra,prune=true,contextXML=t(b),soFar=a;while((j.exec(""),m=j.exec(soFar))!==null){soFar=m[3];f.push(m[1]);if(m[2]){extra=m[3];break}}if(f.length>1&&o.exec(a)){if(f.length===2&&n.relative[f[0]]){set=u(f[0]+f[1],b)}else{set=n.relative[f[0]]?[b]:k(f.shift(),b);while(f.length){a=f.shift();if(n.relative[a]){a+=f.shift()}set=u(a,set)}}}else{if(!d&&f.length>1&&b.nodeType===9&&!contextXML&&n.match.ID.test(f[0])&&!n.match.ID.test(f[f.length-1])){var g=k.find(f.shift(),b,contextXML);b=g.expr?k.filter(g.expr,g.set)[0]:g.set[0]}if(b){var g=d?{expr:f.pop(),set:q(d)}:k.find(f.pop(),f.length===1&&(f[0]==="~"||f[0]==="+")&&b.parentNode?b.parentNode:b,contextXML);set=g.expr?k.filter(g.expr,g.set):g.set;if(f.length>0){checkSet=q(set)}else{prune=false}while(f.length){var h=f.pop(),pop=h;if(!n.relative[h]){h=""}else{pop=f.pop()}if(pop==null){pop=b}n.relative[h](checkSet,pop,contextXML)}}else{checkSet=f=[]}}if(!checkSet){checkSet=set}if(!checkSet){k.error(h||a)}if(toString.call(checkSet)==="[object Array]"){if(!prune){c.push.apply(c,checkSet)}else if(b&&b.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&s(b,checkSet[i]))){c.push(set[i])}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){c.push(set[i])}}}}else{q(checkSet,c)}if(extra){k(extra,e,c,d);k.uniqueSort(c)}return c};k.uniqueSort=function(a){if(r){hasDuplicate=baseHasDuplicate;a.sort(r);if(hasDuplicate){for(var i=1;i<a.length;i++){if(a[i]===a[i-1]){a.splice(i--,1)}}}}return a};k.matches=function(a,b){return k(a,null,null,b)};k.find=function(a,b,c){var d,match;if(!a){return[]}for(var i=0,l=n.order.length;i<l;i++){var e=n.order[i],match;if((match=n.leftMatch[e].exec(a))){var f=match[1];match.splice(1,1);if(f.substr(f.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");d=n.find[e](match,b,c);if(d!=null){a=a.replace(n.match[e],"");break}}}}if(!d){d=b.getElementsByTagName("*")}return{set:d,expr:a}};k.filter=function(a,b,c,d){var e=a,result=[],curLoop=b,match,anyFound,isXMLFilter=b&&b[0]&&t(b[0]);while(a&&b.length){for(var f in n.filter){if((match=n.leftMatch[f].exec(a))!=null&&match[2]){var g=n.filter[f],found,item,left=match[1];anyFound=false;match.splice(1,1);if(left.substr(left.length-1)==="\\"){continue}if(curLoop===result){result=[]}if(n.preFilter[f]){match=n.preFilter[f](match,curLoop,c,result,d,isXMLFilter);if(!match){anyFound=found=true}else if(match===true){continue}}if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=g(item,match,i,curLoop);var h=d^!!found;if(c&&found!=null){if(h){anyFound=true}else{curLoop[i]=false}}else if(h){result.push(item);anyFound=true}}}}if(found!==x){if(!c){curLoop=result}a=a.replace(n.match[f],"");if(!anyFound){return[]}break}}}if(a===e){if(anyFound==null){k.error(a)}else{break}}e=a}return curLoop};k.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var n=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")}},relative:{"+":function(a,b){var c=typeof b==="string",isTag=c&&!/\W/.test(b),isPartStrNotTag=c&&!isTag;if(isTag){b=b.toLowerCase()}for(var i=0,l=a.length,elem;i<l;i++){if((elem=a[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}a[i]=isPartStrNotTag||elem&&elem.nodeName.toLowerCase()===b?elem||false:elem===b}}if(isPartStrNotTag){k.filter(b,a,true)}},">":function(a,b){var c=typeof b==="string";if(c&&!/\W/.test(b)){b=b.toLowerCase();for(var i=0,l=a.length;i<l;i++){var d=a[i];if(d){var e=d.parentNode;a[i]=e.nodeName.toLowerCase()===b?e:false}}}else{for(var i=0,l=a.length;i<l;i++){var d=a[i];if(d){a[i]=c?d.parentNode:d.parentNode===b}}if(c){k.filter(b,a,true)}}},"":function(a,b,c){var d=done++,checkFn=dirCheck;if(typeof b==="string"&&!/\W/.test(b)){var e=b=b.toLowerCase();checkFn=dirNodeCheck}checkFn("parentNode",b,d,a,e,c)},"~":function(a,b,c){var d=done++,checkFn=dirCheck;if(typeof b==="string"&&!/\W/.test(b)){var e=b=b.toLowerCase();checkFn=dirNodeCheck}checkFn("previousSibling",b,d,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c){var m=b.getElementById(a[1]);return m?[m]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){var c=[],results=b.getElementsByName(a[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===a[1]){c.push(results[i])}}return c.length===0?null:c}},TAG:function(a,b){return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(/\\/g,"")+" ";if(f){return a}for(var i=0,elem;(elem=b[i])!=null;i++){if(elem){if(e^(elem.className&&(" "+elem.className+" ").replace(/[\t\n]/g," ").indexOf(a)>=0)){if(!c){d.push(elem)}}else if(c){b[i]=false}}}return false},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a,b){return a[1].toLowerCase()},CHILD:function(a){if(a[1]==="nth"){var b=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=(b[1]+(b[2]||1))-0;a[3]=b[3]-0}a[0]=done++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1].replace(/\\/g,"");if(!f&&n.attrMap[g]){a[1]=n.attrMap[g]}if(a[2]==="~="){a[4]=" "+a[4]+" "}return a},PSEUDO:function(a,b,c,d,e){if(a[1]==="not"){if((j.exec(a[3])||"").length>1||/^\w/.test(a[3])){a[3]=k(a[3],null,null,b)}else{var f=k.filter(a[3],b,c,true^e);if(!c){d.push.apply(d,f)}return false}}else if(n.match.POS.test(a[0])||n.match.CHILD.test(a[0])){return true}return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,i,b){return!!k(b[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,i){return i===0},last:function(a,i,b,c){return i===c.length-1},even:function(a,i){return i%2===0},odd:function(a,i){return i%2===1},lt:function(a,i,b){return i<b[3]-0},gt:function(a,i,b){return i>b[3]-0},nth:function(a,i,b){return b[3]-0===i},eq:function(a,i,b){return b[3]-0===i}},filter:{PSEUDO:function(a,b,i,c){var d=b[1],filter=n.filters[d];if(filter){return filter(a,i,b,c)}else if(d==="contains"){return(a.textContent||a.innerText||getText([a])||"").indexOf(b[3])>=0}else if(d==="not"){var e=b[3];for(var i=0,l=e.length;i<l;i++){if(e[i]===a){return false}}return true}else{k.error("Syntax error, unrecognized expression: "+d)}},CHILD:function(a,b){var c=b[1],node=a;switch(c){case'only':case'first':while((node=node.previousSibling)){if(node.nodeType===1){return false}}if(c==="first"){return true}node=a;case'last':while((node=node.nextSibling)){if(node.nodeType===1){return false}}return true;case'nth':var d=b[2],last=b[3];if(d===1&&last===0){return true}var e=b[0],parent=a.parentNode;if(parent&&(parent.sizcache!==e||!a.nodeIndex)){var f=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++f}}parent.sizcache=e}var g=a.nodeIndex-last;if(d===0){return g===0}else{return(g%d===0&&g/d>=0)}}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return(b==="*"&&a.nodeType===1)||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],result=n.attrHandle[c]?n.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),value=result+"",p=b[2],check=b[4];return result==null?p==="!=":p==="="?value===check:p==="*="?value.indexOf(check)>=0:p==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:p==="!="?value!==check:p==="^="?value.indexOf(check)===0:p==="$="?value.substr(value.length-check.length)===check:p==="|="?value===check||value.substr(0,check.length+1)===check+"-":false},POS:function(a,b,i,c){var d=b[2],filter=n.setFilters[d];if(filter){return filter(a,i,b,c)}}}};var o=n.match.POS;for(var p in n.match){n.match[p]=new RegExp(n.match[p].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[p]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[p].source.replace(/\\(\d+)/g,function(a,b){return"\\"+(b-0+1)}))}var q=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(e){q=function(a,b){var c=b||[];if(toString.call(a)==="[object Array]"){Array.prototype.push.apply(c,a)}else{if(typeof a.length==="number"){for(var i=0,l=a.length;i<l;i++){c.push(a[i])}}else{for(var i=0;a[i];i++){c.push(a[i])}}}return c}}var r;if(document.documentElement.compareDocumentPosition){r=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b){hasDuplicate=true}return a.compareDocumentPosition?-1:1}var c=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(c===0){hasDuplicate=true}return c}}else if("sourceIndex"in document.documentElement){r=function(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b){hasDuplicate=true}return a.sourceIndex?-1:1}var c=a.sourceIndex-b.sourceIndex;if(c===0){hasDuplicate=true}return c}}else if(document.createRange){r=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b){hasDuplicate=true}return a.ownerDocument?-1:1}var c=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();c.setStart(a,0);c.setEnd(a,0);bRange.setStart(b,0);bRange.setEnd(b,0);var d=c.compareBoundaryPoints(Range.START_TO_END,bRange);if(d===0){hasDuplicate=true}return d}}function getText(a){var b="",elem;for(var i=0;a[i];i++){elem=a[i];if(elem.nodeType===3||elem.nodeType===4){b+=elem.nodeValue}else if(elem.nodeType!==8){b+=getText(elem.childNodes)}}return b}(function(){var d=document.createElement("div"),id="script"+(new Date).getTime();d.innerHTML="<a name='"+id+"'/>";var e=document.documentElement;e.insertBefore(d,e.firstChild);if(document.getElementById(id)){n.find.ID=function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c){var m=b.getElementById(a[1]);return m?m.id===a[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===a[1]?[m]:x:[]}};n.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}}e.removeChild(d);e=d=null})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){n.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var i=0;c[i];i++){if(c[i].nodeType===1){d.push(c[i])}}c=d}return c}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){n.attrHandle.href=function(a){return a.getAttribute("href",2)}}e=null})();if(document.querySelectorAll){(function(){var f=k,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return}k=function(a,b,c,d){b=b||document;if(!d&&b.nodeType===9&&!t(b)){try{return q(b.querySelectorAll(a),c)}catch(e){}}return f(a,b,c,d)};for(var g in f){k[g]=f[g]}div=null})()}(function(){var d=document.createElement("div");d.innerHTML="<div class='test e'></div><div class='test'></div>";if(!d.getElementsByClassName||d.getElementsByClassName("e").length===0){return}d.lastChild.className="e";if(d.getElementsByClassName("e").length===1){return}n.order.splice(1,0,"CLASS");n.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c){return b.getElementsByClassName(a[1])}};d=null})();function dirNodeCheck(a,b,c,d,e,f){for(var i=0,l=d.length;i<l;i++){var g=d[i];if(g){g=g[a];var h=false;while(g){if(g.sizcache===c){h=d[g.sizset];break}if(g.nodeType===1&&!f){g.sizcache=c;g.sizset=i}if(g.nodeName.toLowerCase()===b){h=g;break}g=g[a]}d[i]=h}}}function dirCheck(a,b,c,d,e,f){for(var i=0,l=d.length;i<l;i++){var g=d[i];if(g){g=g[a];var h=false;while(g){if(g.sizcache===c){h=d[g.sizset];break}if(g.nodeType===1){if(!f){g.sizcache=c;g.sizset=i}if(typeof b!=="string"){if(g===b){h=true;break}}else if(k.filter(b,[g]).length>0){h=g;break}}g=g[a]}d[i]=h}}}var s=document.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};var t=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":false};var u=function(a,b){var c=[],later="",match,root=b.nodeType?[b]:b;while((match=n.match.PSEUDO.exec(a))){later+=match[0];a=a.replace(n.match.PSEUDO,"")}a=n.relative[a]?a+"*":a;for(var i=0,l=root.length;i<l;i++){k(a,root[i],c)}return k.filter(later,c)};y.find=k;y.expr=k.selectors;y.expr[":"]=y.expr.filters;y.unique=k.uniqueSort;y.text=getText;y.isXMLDoc=t;y.contains=s;return;w.Sizzle=k})();var G=/Until$/,rparentsprev=/^(?:parents|prevUntil|prevAll)/,rmultiselector=/,/,slice=Array.prototype.slice;var H=function(b,c,d){if(y.isFunction(c)){return y.grep(b,function(a,i){return!!c.call(a,i,a)===d})}else if(c.nodeType){return y.grep(b,function(a,i){return(a===c)===d})}else if(typeof c==="string"){var e=y.grep(b,function(a){return a.nodeType===1});if(isSimple.test(c)){return y.filter(c,e,!d)}else{c=y.filter(c,e)}}return y.grep(b,function(a,i){return(y.inArray(a,c)>=0)===d})};y.fn.extend({find:function(a){var b=this.pushStack("","find",a),length=0;for(var i=0,l=this.length;i<l;i++){length=b.length;y.find(a,this[i],b);if(i>0){for(var n=length;n<b.length;n++){for(var r=0;r<length;r++){if(b[r]===b[n]){b.splice(n--,1);break}}}}}return b},has:function(a){var b=y(a);return this.filter(function(){for(var i=0,l=b.length;i<l;i++){if(y.contains(this,b[i])){return true}}})},not:function(a){return this.pushStack(H(this,a,false),"not",a)},filter:function(a){return this.pushStack(H(this,a,true),"filter",a)},is:function(a){return!!a&&y.filter(a,this).length>0},closest:function(b,c){if(y.isArray(b)){var d=[],cur=this[0],match,matches={},selector;if(cur&&b.length){for(var i=0,l=b.length;i<l;i++){selector=b[i];if(!matches[selector]){matches[selector]=y.expr.match.POS.test(selector)?y(selector,c||this.context):selector}}while(cur&&cur.ownerDocument&&cur!==c){for(selector in matches){match=matches[selector];if(match.jquery?match.index(cur)>-1:y(cur).is(match)){d.push({selector:selector,elem:cur});delete matches[selector]}}cur=cur.parentNode}}return d}var e=y.expr.match.POS.test(b)?y(b,c||this.context):null;return this.map(function(i,a){while(a&&a.ownerDocument&&a!==c){if(e?e.index(a)>-1:y(a).is(b)){return a}a=a.parentNode}return null})},index:function(a){if(!a||typeof a==="string"){return y.inArray(this[0],a?y(a):this.parent().children())}return y.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?y(a,b||this.context):y.makeArray(a),all=y.merge(this.get(),c);return this.pushStack(isDisconnected(c[0])||isDisconnected(all[0])?all:y.unique(all))},andSelf:function(){return this.add(this.prevObject)}});function isDisconnected(a){return!a||!a.parentNode||a.parentNode.nodeType===11}y.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return y.dir(a,"parentNode")},parentsUntil:function(a,i,b){return y.dir(a,"parentNode",b)},next:function(a){return y.nth(a,2,"nextSibling")},prev:function(a){return y.nth(a,2,"previousSibling")},nextAll:function(a){return y.dir(a,"nextSibling")},prevAll:function(a){return y.dir(a,"previousSibling")},nextUntil:function(a,i,b){return y.dir(a,"nextSibling",b)},prevUntil:function(a,i,b){return y.dir(a,"previousSibling",b)},siblings:function(a){return y.sibling(a.parentNode.firstChild,a)},children:function(a){return y.sibling(a.firstChild)},contents:function(a){return y.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:y.makeArray(a.childNodes)}},function(d,e){y.fn[d]=function(a,b){var c=y.map(this,e,a);if(!G.test(d)){b=a}if(b&&typeof b==="string"){c=y.filter(b,c)}c=this.length>1?y.unique(c):c;if((this.length>1||rmultiselector.test(b))&&rparentsprev.test(d)){c=c.reverse()}return this.pushStack(c,d,slice.call(arguments).join(","))}});y.extend({filter:function(a,b,c){if(c){a=":not("+a+")"}return y.find.matches(a,b)},dir:function(a,b,c){var d=[],cur=a[b];while(cur&&cur.nodeType!==9&&(c===x||cur.nodeType!==1||!y(cur).is(c))){if(cur.nodeType===1){d.push(cur)}cur=cur[b]}return d},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c]){if(a.nodeType===1&&++e===b){break}}return a},sibling:function(n,a){var r=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==a){r.push(n)}}return r}});var I=/ jQuery\d+="(?:\d+|null)"/g,rleadingWhitespace=/^\s+/,rxhtmlTag=/(<([\w:]+)[^>]*?)\/>/g,rselfClosing=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,rtagName=/<([\w:]+)/,rtbody=/<tbody/i,rhtml=/<|&#?\w+;/,rnocache=/<script|<object|<embed|<option|<style/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,fcloseTag=function(a,b,c){return rselfClosing.test(c)?a:b+"></"+c+">"},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,"",""]};wrapMap.optgroup=wrapMap.option;wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;if(!y.support.htmlSerialize){wrapMap._default=[1,"div<div>","</div>"]}y.fn.extend({text:function(b){if(y.isFunction(b)){return this.each(function(i){var a=y(this);a.text(b.call(this,i,a.text()))})}if(typeof b!=="object"&&b!==x){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(b))}return y.text(this)},wrapAll:function(b){if(y.isFunction(b)){return this.each(function(i){y(this).wrapAll(b.call(this,i))})}if(this[0]){var c=y(b,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){c.insertBefore(this[0])}c.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1){a=a.firstChild}return a}).append(this)}return this},wrapInner:function(b){if(y.isFunction(b)){return this.each(function(i){y(this).wrapInner(b.call(this,i))})}return this.each(function(){var a=y(this),contents=a.contents();if(contents.length){contents.wrapAll(b)}else{a.append(b)}})},wrap:function(a){return this.each(function(){y(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){if(!y.nodeName(this,"body")){y(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType===1){this.appendChild(a)}})},prepend:function(){return this.domManip(arguments,true,function(a){if(this.nodeType===1){this.insertBefore(a,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})}else if(arguments.length){var b=y(arguments[0]);b.push.apply(b,this.toArray());return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)})}else if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,y(arguments[0]).toArray());return b}},remove:function(a,b){for(var i=0,elem;(elem=this[i])!=null;i++){if(!a||y.filter(a,[elem]).length){if(!b&&elem.nodeType===1){y.cleanData(elem.getElementsByTagName("*"));y.cleanData([elem])}if(elem.parentNode){elem.parentNode.removeChild(elem)}}}return this},empty:function(){for(var i=0,elem;(elem=this[i])!=null;i++){if(elem.nodeType===1){y.cleanData(elem.getElementsByTagName("*"))}while(elem.firstChild){elem.removeChild(elem.firstChild)}}return this},clone:function(c){var d=this.map(function(){if(!y.support.noCloneEvent&&!y.isXMLDoc(this)){var a=this.outerHTML,ownerDocument=this.ownerDocument;if(!a){var b=ownerDocument.createElement("div");b.appendChild(this.cloneNode(true));a=b.innerHTML}return y.clean([a.replace(I,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(rleadingWhitespace,"")],ownerDocument)[0]}else{return this.cloneNode(true)}});if(c===true){cloneCopyEvent(this,d);cloneCopyEvent(this.find("*"),d.find("*"))}return d},html:function(b){if(b===x){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(I,""):null}else if(typeof b==="string"&&!rnocache.test(b)&&(y.support.leadingWhitespace||!rleadingWhitespace.test(b))&&!wrapMap[(rtagName.exec(b)||["",""])[1].toLowerCase()]){b=b.replace(rxhtmlTag,fcloseTag);try{for(var i=0,l=this.length;i<l;i++){if(this[i].nodeType===1){y.cleanData(this[i].getElementsByTagName("*"));this[i].innerHTML=b}}}catch(e){this.empty().append(b)}}else if(y.isFunction(b)){this.each(function(i){var a=y(this),old=a.html();a.empty().append(function(){return b.call(this,i,old)})})}else{this.empty().append(b)}return this},replaceWith:function(b){if(this[0]&&this[0].parentNode){if(y.isFunction(b)){return this.each(function(i){var a=y(this),old=a.html();a.replaceWith(b.call(this,i,old))})}if(typeof b!=="string"){b=y(b).detach()}return this.each(function(){var a=this.nextSibling,parent=this.parentNode;y(this).remove();if(a){y(a).before(b)}else{y(parent).append(b)}})}else{return this.pushStack(y(y.isFunction(b)?b():b),"replaceWith",b)}},detach:function(a){return this.remove(a,true)},domManip:function(c,d,e){var f,first,value=c[0],scripts=[],fragment,parent;if(!y.support.checkClone&&arguments.length===3&&typeof value==="string"&&rchecked.test(value)){return this.each(function(){y(this).domManip(c,d,e,true)})}if(y.isFunction(value)){return this.each(function(i){var a=y(this);c[0]=value.call(this,i,d?a.html():x);a.domManip(c,d,e)})}if(this[0]){parent=value&&value.parentNode;if(y.support.parentNode&&parent&&parent.nodeType===11&&parent.childNodes.length===this.length){f={fragment:parent}}else{f=buildFragment(c,this,scripts)}fragment=f.fragment;if(fragment.childNodes.length===1){first=fragment=fragment.firstChild}else{first=fragment.firstChild}if(first){d=d&&y.nodeName(first,"tr");for(var i=0,l=this.length;i<l;i++){e.call(d?root(this[i],first):this[i],i>0||f.cacheable||this.length>1?fragment.cloneNode(true):fragment)}}if(scripts.length){y.each(scripts,evalScript)}}return this;function root(a,b){return y.nodeName(a,"table")?(a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody"))):a}}});function cloneCopyEvent(d,e){var i=0;e.each(function(){if(this.nodeName!==(d[i]&&d[i].nodeName)){return}var a=y.data(d[i++]),curData=y.data(this,a),events=a&&a.events;if(events){delete curData.handle;curData.events={};for(var b in events){for(var c in events[b]){y.event.add(this,b,events[b][c],events[b][c].data)}}}})}function buildFragment(a,b,c){var d,cacheable,cacheresults,doc=(b&&b[0]?b[0].ownerDocument||b[0]:document);if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&doc===document&&!rnocache.test(a[0])&&(y.support.checkClone||!rchecked.test(a[0]))){cacheable=true;cacheresults=y.fragments[a[0]];if(cacheresults){if(cacheresults!==1){d=cacheresults}}}if(!d){d=doc.createDocumentFragment();y.clean(a,doc,d,c)}if(cacheable){y.fragments[a[0]]=cacheresults?d:1}return{fragment:d,cacheable:cacheable}}y.fragments={};y.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(d,e){y.fn[d]=function(a){var b=[],insert=y(a),parent=this.length===1&&this[0].parentNode;if(parent&&parent.nodeType===11&&parent.childNodes.length===1&&insert.length===1){insert[e](this[0]);return this}else{for(var i=0,l=insert.length;i<l;i++){var c=(i>0?this.clone(true):this).get();y.fn[e].apply(y(insert[i]),c);b=b.concat(c)}return this.pushStack(b,d,insert.selector)}}});y.extend({clean:function(a,b,c,d){b=b||document;if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||document}var e=[];for(var i=0,elem;(elem=a[i])!=null;i++){if(typeof elem==="number"){elem+=""}if(!elem){continue}if(typeof elem==="string"&&!rhtml.test(elem)){elem=b.createTextNode(elem)}else if(typeof elem==="string"){elem=elem.replace(rxhtmlTag,fcloseTag);var f=(rtagName.exec(elem)||["",""])[1].toLowerCase(),wrap=wrapMap[f]||wrapMap._default,depth=wrap[0],div=b.createElement("div");div.innerHTML=wrap[1]+elem+wrap[2];while(depth--){div=div.lastChild}if(!y.support.tbody){var g=rtbody.test(elem),tbody=f==="table"&&!g?div.firstChild&&div.firstChild.childNodes:wrap[1]==="<table>"&&!g?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(y.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])}}}if(!y.support.leadingWhitespace&&rleadingWhitespace.test(elem)){div.insertBefore(b.createTextNode(rleadingWhitespace.exec(elem)[0]),div.firstChild)}elem=div.childNodes}if(elem.nodeType){e.push(elem)}else{e=y.merge(e,elem)}}if(c){for(var i=0;e[i];i++){if(d&&y.nodeName(e[i],"script")&&(!e[i].type||e[i].type.toLowerCase()==="text/javascript")){d.push(e[i].parentNode?e[i].parentNode.removeChild(e[i]):e[i])}else{if(e[i].nodeType===1){e.splice.apply(e,[i+1,0].concat(y.makeArray(e[i].getElementsByTagName("script"))))}c.appendChild(e[i])}}}return e},cleanData:function(a){var b,id,cache=y.cache,special=y.event.special,deleteExpando=y.support.deleteExpando;for(var i=0,elem;(elem=a[i])!=null;i++){id=elem[y.expando];if(id){b=cache[id];if(b.events){for(var c in b.events){if(special[c]){y.event.remove(elem,c)}else{C(elem,c,b.handle)}}}if(deleteExpando){delete elem[y.expando]}else if(elem.removeAttribute){elem.removeAttribute(y.expando)}delete cache[id]}}}});var J=/z-?index|font-?weight|opacity|zoom|line-?height/i,ralpha=/alpha\([^)]*\)/,ropacity=/opacity=([^)]*)/,rfloat=/float/i,rdashAlpha=/-([a-z])/ig,rupper=/([A-Z])/g,rnumpx=/^-?\d+(?:px)?$/i,rnum=/^-?\d/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssWidth=["Left","Right"],cssHeight=["Top","Bottom"],getComputedStyle=document.defaultView&&document.defaultView.getComputedStyle,styleFloat=y.support.cssFloat?"cssFloat":"styleFloat",fcamelCase=function(a,b){return b.toUpperCase()};y.fn.css=function(d,e){return access(this,d,e,true,function(a,b,c){if(c===x){return y.curCSS(a,b)}if(typeof c==="number"&&!J.test(b)){c+="px"}y.style(a,b,c)})};y.extend({style:function(a,b,c){if(!a||a.nodeType===3||a.nodeType===8){return x}if((b==="width"||b==="height")&&parseFloat(c)<0){c=x}var d=a.style||a,set=c!==x;if(!y.support.opacity&&b==="opacity"){if(set){d.zoom=1;var e=parseInt(c,10)+""==="NaN"?"":"alpha(opacity="+c*100+")";var f=d.filter||y.curCSS(a,"filter")||"";d.filter=ralpha.test(f)?f.replace(ralpha,e):e}return d.filter&&d.filter.indexOf("opacity=")>=0?(parseFloat(ropacity.exec(d.filter)[1])/100)+"":""}if(rfloat.test(b)){b=styleFloat}b=b.replace(rdashAlpha,fcamelCase);if(set){d[b]=c}return d[b]},css:function(a,b,c,d){if(b==="width"||b==="height"){var e,props=cssShow,which=b==="width"?cssWidth:cssHeight;function getWH(){e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border"){return}y.each(which,function(){if(!d){e-=parseFloat(y.curCSS(a,"padding"+this,true))||0}if(d==="margin"){e+=parseFloat(y.curCSS(a,"margin"+this,true))||0}else{e-=parseFloat(y.curCSS(a,"border"+this+"Width",true))||0}})}if(a.offsetWidth!==0){getWH()}else{y.swap(a,props,getWH)}return Math.max(0,Math.round(e))}return y.curCSS(a,b,c)},curCSS:function(a,b,c){var d,style=a.style,filter;if(!y.support.opacity&&b==="opacity"&&a.currentStyle){d=ropacity.test(a.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return d===""?"1":d}if(rfloat.test(b)){b=styleFloat}if(!c&&style&&style[b]){d=style[b]}else if(getComputedStyle){if(rfloat.test(b)){b="float"}b=b.replace(rupper,"-$1").toLowerCase();var e=a.ownerDocument.defaultView;if(!e){return null}var f=e.getComputedStyle(a,null);if(f){d=f.getPropertyValue(b)}if(b==="opacity"&&d===""){d="1"}}else if(a.currentStyle){var g=b.replace(rdashAlpha,fcamelCase);d=a.currentStyle[b]||a.currentStyle[g];if(!rnumpx.test(d)&&rnum.test(d)){var h=style.left,rsLeft=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;style.left=g==="fontSize"?"1em":(d||0);d=style.pixelLeft+"px";style.left=h;a.runtimeStyle.left=rsLeft}}return d},swap:function(a,b,c){var d={};for(var e in b){d[e]=a.style[e];a.style[e]=b[e]}c.call(a);for(var e in b){a.style[e]=d[e]}}});if(y.expr&&y.expr.filters){y.expr.filters.hidden=function(a){var b=a.offsetWidth,height=a.offsetHeight,skip=a.nodeName.toLowerCase()==="tr";return b===0&&height===0&&!skip?true:b>0&&height>0&&!skip?false:y.curCSS(a,"display")==="none"};y.expr.filters.visible=function(a){return!y.expr.filters.hidden(a)}}var K=now(),rscript=/<script(.|\s)*?\/script>/gi,rselectTextarea=/select|textarea/i,rinput=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,jsre=/=\?(&|$)/,rquery=/\?/,rts=/(\?|&)_=.*?(&|$)/,rurl=/^(\w+:)?\/\/([^\/?#]+)/,r20=/%20/g,_load=y.fn.load;y.fn.extend({load:function(c,d,e){if(typeof c!=="string"){return _load.call(this,c)}else if(!this.length){return this}var f=c.indexOf(" ");if(f>=0){var g=c.slice(f,c.length);c=c.slice(0,f)}var h="GET";if(d){if(y.isFunction(d)){e=d;d=null}else if(typeof d==="object"){d=y.param(d,y.ajaxSettings.traditional);h="POST"}}var i=this;y.ajax({url:c,type:h,dataType:"html",data:d,complete:function(a,b){if(b==="success"||b==="notmodified"){i.html(g?y("<div />").append(a.responseText.replace(rscript,"")).find(g):a.responseText)}if(e){i.each(e,[a.responseText,b,a])}}});return this},serialize:function(){return y.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?y.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||rselectTextarea.test(this.nodeName)||rinput.test(this.type))}).map(function(i,b){var c=y(this).val();return c==null?null:y.isArray(c)?y.map(c,function(a,i){return{name:b.name,value:a}}):{name:b.name,value:c}}).get()}});y.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(i,o){y.fn[o]=function(f){return this.bind(o,f)}});y.extend({get:function(a,b,c,d){if(y.isFunction(b)){d=d||c;c=b;b=null}return y.ajax({type:"GET",url:a,data:b,success:c,dataType:d})},getScript:function(a,b){return y.get(a,null,b,"script")},getJSON:function(a,b,c){return y.get(a,b,c,"json")},post:function(a,b,c,d){if(y.isFunction(b)){d=d||c;c=b;b={}}return y.ajax({type:"POST",url:a,data:b,success:c,dataType:d})},ajaxSetup:function(a){y.extend(y.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:w.XMLHttpRequest&&(w.location.protocol!=="file:"||!w.ActiveXObject)?function(){return new w.XMLHttpRequest()}:function(){try{return new w.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(c){var s=y.extend(true,{},y.ajaxSettings,c);var d,status,data,callbackContext=c&&c.context||s,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!=="string"){s.data=y.param(s.data,s.traditional)}if(s.dataType==="jsonp"){if(type==="GET"){if(!jsre.test(s.url)){s.url+=(rquery.test(s.url)?"&":"?")+(s.jsonp||"callback")+"=?"}}else if(!s.data||!jsre.test(s.data)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?"}s.dataType="json"}if(s.dataType==="json"&&(s.data&&jsre.test(s.data)||jsre.test(s.url))){d=s.jsonpCallback||("jsonp"+K++);if(s.data){s.data=(s.data+"").replace(jsre,"="+d+"$1")}s.url=s.url.replace(jsre,"="+d+"$1");s.dataType="script";w[d]=w[d]||function(a){data=a;success();complete();w[d]=x;try{delete w[d]}catch(e){}if(i){i.removeChild(j)}}}if(s.dataType==="script"&&s.cache===null){s.cache=false}if(s.cache===false&&type==="GET"){var f=now();var g=s.url.replace(rts,"$1_="+f+"$2");s.url=g+((g===s.url)?(rquery.test(s.url)?"&":"?")+"_="+f:"")}if(s.data&&type==="GET"){s.url+=(rquery.test(s.url)?"&":"?")+s.data}if(s.global&&!y.active++){y.event.trigger("ajaxStart")}var h=rurl.exec(s.url),remote=h&&(h[1]&&h[1]!==location.protocol||h[2]!==location.host);if(s.dataType==="script"&&type==="GET"&&remote){var i=document.getElementsByTagName("head")[0]||document.documentElement;var j=document.createElement("script");j.src=s.url;if(s.scriptCharset){j.charset=s.scriptCharset}if(!d){var k=false;j.onload=j.onreadystatechange=function(){if(!k&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){k=true;success();complete();j.onload=j.onreadystatechange=null;if(i&&j.parentNode){i.removeChild(j)}}}}i.insertBefore(j,i.firstChild);return x}var l=false;var m=s.xhr();if(!m){return}if(s.username){m.open(type,s.url,s.async,s.username,s.password)}else{m.open(type,s.url,s.async)}try{if(s.data||c&&c.contentType){m.setRequestHeader("Content-Type",s.contentType)}if(s.ifModified){if(y.lastModified[s.url]){m.setRequestHeader("If-Modified-Since",y.lastModified[s.url])}if(y.etag[s.url]){m.setRequestHeader("If-None-Match",y.etag[s.url])}}if(!remote){m.setRequestHeader("X-Requested-With","XMLHttpRequest")}m.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default)}catch(e){}if(s.beforeSend&&s.beforeSend.call(callbackContext,m,s)===false){if(s.global&&!--y.active){y.event.trigger("ajaxStop")}m.abort();return false}if(s.global){trigger("ajaxSend",[m,s])}var n=m.onreadystatechange=function(a){if(!m||m.readyState===0||a==="abort"){if(!l){complete()}l=true;if(m){m.onreadystatechange=y.noop}}else if(!l&&m&&(m.readyState===4||a==="timeout")){l=true;m.onreadystatechange=y.noop;status=a==="timeout"?"timeout":!y.httpSuccess(m)?"error":s.ifModified&&y.httpNotModified(m,s.url)?"notmodified":"success";var b;if(status==="success"){try{data=y.httpData(m,s.dataType,s)}catch(err){status="parsererror";b=err}}if(status==="success"||status==="notmodified"){if(!d){success()}}else{y.handleError(s,m,status,b)}complete();if(a==="timeout"){m.abort()}if(s.async){m=null}}};try{var o=m.abort;m.abort=function(){if(m){o.call(m)}n("abort")}}catch(e){}if(s.async&&s.timeout>0){setTimeout(function(){if(m&&!l){n("timeout")}},s.timeout)}try{m.send(type==="POST"||type==="PUT"||type==="DELETE"?s.data:null)}catch(e){y.handleError(s,m,null,e);complete()}if(!s.async){n()}function success(){if(s.success){s.success.call(callbackContext,data,status,m)}if(s.global){trigger("ajaxSuccess",[m,s])}}function complete(){if(s.complete){s.complete.call(callbackContext,m,status)}if(s.global){trigger("ajaxComplete",[m,s])}if(s.global&&!--y.active){y.event.trigger("ajaxStop")}}function trigger(a,b){(s.context?y(s.context):y.event).trigger(a,b)}return m},handleError:function(s,a,b,e){if(s.error){s.error.call(s.context||s,a,b,e)}if(s.global){(s.context?y(s.context):y.event).trigger("ajaxError",[a,s,e])}},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||(a.status>=200&&a.status<300)||a.status===304||a.status===1223||a.status===0}catch(e){}return false},httpNotModified:function(a,b){var c=a.getResponseHeader("Last-Modified"),etag=a.getResponseHeader("Etag");if(c){y.lastModified[b]=c}if(etag){y.etag[b]=etag}return a.status===304||a.status===0},httpData:function(a,b,s){var c=a.getResponseHeader("content-type")||"",xml=b==="xml"||!b&&c.indexOf("xml")>=0,data=xml?a.responseXML:a.responseText;if(xml&&data.documentElement.nodeName==="parsererror"){y.error("parsererror")}if(s&&s.dataFilter){data=s.dataFilter(data,b)}if(typeof data==="string"){if(b==="json"||!b&&c.indexOf("json")>=0){data=y.parseJSON(data)}else if(b==="script"||!b&&c.indexOf("javascript")>=0){y.globalEval(data)}}return data},param:function(a,c){var s=[];if(c===x){c=y.ajaxSettings.traditional}if(y.isArray(a)||a.jquery){y.each(a,function(){add(this.name,this.value)})}else{for(var d in a){buildParams(d,a[d])}}return s.join("&").replace(r20,"+");function buildParams(a,b){if(y.isArray(b)){y.each(b,function(i,v){if(c||/\[\]$/.test(a)){add(a,v)}else{buildParams(a+"["+(typeof v==="object"||y.isArray(v)?i:"")+"]",v)}})}else if(!c&&b!=null&&typeof b==="object"){y.each(b,function(k,v){buildParams(a+"["+k+"]",v)})}else{add(a,b)}}function add(a,b){b=y.isFunction(b)?b():b;s[s.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)}}});var L={},rfxtypes=/toggle|show|hide/,rfxnum=/^([+-]=)?([\d+-.]+)(.*)$/,timerId,fxAttrs=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];y.fn.extend({show:function(a,b){if(a||a===0){return this.animate(genFx("show",3),a,b)}else{for(var i=0,l=this.length;i<l;i++){var c=y.data(this[i],"olddisplay");this[i].style.display=c||"";if(y.css(this[i],"display")==="none"){var d=this[i].nodeName,display;if(L[d]){display=L[d]}else{var e=y("<"+d+" />").appendTo("body");display=e.css("display");if(display==="none"){display="block"}e.remove();L[d]=display}y.data(this[i],"olddisplay",display)}}for(var j=0,k=this.length;j<k;j++){this[j].style.display=y.data(this[j],"olddisplay")||""}return this}},hide:function(a,b){if(a||a===0){return this.animate(genFx("hide",3),a,b)}else{for(var i=0,l=this.length;i<l;i++){var c=y.data(this[i],"olddisplay");if(!c&&c!=="none"){y.data(this[i],"olddisplay",y.css(this[i],"display"))}}for(var j=0,k=this.length;j<k;j++){this[j].style.display="none"}return this}},_toggle:y.fn.toggle,toggle:function(b,c){var d=typeof b==="boolean";if(y.isFunction(b)&&y.isFunction(c)){this._toggle.apply(this,arguments)}else if(b==null||d){this.each(function(){var a=d?b:y(this).is(":hidden");y(this)[a?"show":"hide"]()})}else{this.animate(genFx("toggle",3),b,c)}return this},fadeTo:function(a,b,c){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c)},animate:function(h,i,j,k){var l=y.speed(i,j,k);if(y.isEmptyObject(h)){return this.each(l.complete)}return this[l.queue===false?"each":"queue"](function(){var f=y.extend({},l),p,hidden=this.nodeType===1&&y(this).is(":hidden"),self=this;for(p in h){var g=p.replace(rdashAlpha,fcamelCase);if(p!==g){h[g]=h[p];delete h[p];p=g}if(h[p]==="hide"&&hidden||h[p]==="show"&&!hidden){return f.complete.call(this)}if((p==="height"||p==="width")&&this.style){f.display=y.css(this,"display");f.overflow=this.style.overflow}if(y.isArray(h[p])){(f.specialEasing=f.specialEasing||{})[p]=h[p][1];h[p]=h[p][0]}}if(f.overflow!=null){this.style.overflow="hidden"}f.curAnim=y.extend({},h);y.each(h,function(a,b){var e=new y.fx(self,f,a);if(rfxtypes.test(b)){e[b==="toggle"?hidden?"show":"hide":b](h)}else{var c=rfxnum.exec(b),start=e.cur(true)||0;if(c){var d=parseFloat(c[2]),unit=c[3]||"px";if(unit!=="px"){self.style[a]=(d||1)+unit;start=((d||1)/e.cur(true))*start;self.style[a]=start+unit}if(c[1]){d=((c[1]==="-="?-1:1)*d)+start}e.custom(start,d,unit)}else{e.custom(start,b,"")}}});return true})},stop:function(a,b){var c=y.timers;if(a){this.queue([])}this.each(function(){for(var i=c.length-1;i>=0;i--){if(c[i].elem===this){if(b){c[i](true)}c.splice(i,1)}}});if(!b){this.dequeue()}return this}});y.each({slideDown:genFx("show",1),slideUp:genFx("hide",1),slideToggle:genFx("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(c,d){y.fn[c]=function(a,b){return this.animate(d,a,b)}});y.extend({speed:function(a,b,c){var d=a&&typeof a==="object"?a:{complete:c||!c&&b||y.isFunction(a)&&a,duration:a,easing:c&&b||b&&!y.isFunction(b)&&b};d.duration=y.fx.off?0:typeof d.duration==="number"?d.duration:y.fx.speeds[d.duration]||y.fx.speeds._default;d.old=d.complete;d.complete=function(){if(d.queue!==false){y(this).dequeue()}if(y.isFunction(d.old)){d.old.call(this)}};return d},easing:{linear:function(p,n,a,b){return a+b*p},swing:function(p,n,a,b){return((-Math.cos(p*Math.PI)/2)+0.5)*b+a}},timers:[],fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;if(!b.orig){b.orig={}}}});y.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(y.fx.step[this.prop]||y.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var r=parseFloat(y.css(this.elem,this.prop,a));return r&&r>-10000?r:parseFloat(y.curCSS(this.elem,this.prop))||0},custom:function(b,c,d){this.startTime=now();this.start=b;this.end=c;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;function t(a){return e.step(a)}t.elem=this.elem;if(t()&&y.timers.push(t)&&!timerId){timerId=setInterval(y.fx.tick,13)}},show:function(){this.options.orig[this.prop]=y.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());y(this.elem).show()},hide:function(){this.options.orig[this.prop]=y.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var t=now(),done=true;if(a||t>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;var b=y.data(this.elem,"olddisplay");this.elem.style.display=b?b:this.options.display;if(y.css(this.elem,"display")==="none"){this.elem.style.display="block"}}if(this.options.hide){y(this.elem).hide()}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){y.style(this.elem,p,this.options.orig[p])}}this.options.complete.call(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;var c=this.options.specialEasing&&this.options.specialEasing[this.prop];var d=this.options.easing||(y.easing.swing?"swing":"linear");this.pos=y.easing[c||d](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};y.extend(y.fx,{tick:function(){var a=y.timers;for(var i=0;i<a.length;i++){if(!a[i]()){a.splice(i--,1)}}if(!a.length){y.fx.stop()}},stop:function(){clearInterval(timerId);timerId=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){y.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null){a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit}else{a.elem[a.prop]=a.now}}}});if(y.expr&&y.expr.filters){y.expr.filters.animated=function(b){return y.grep(y.timers,function(a){return b===a.elem}).length}}function genFx(a,b){var c={};y.each(fxAttrs.concat.apply([],fxAttrs.slice(0,b)),function(){c[this]=a});return c}if("getBoundingClientRect"in document.documentElement){y.fn.offset=function(a){var b=this[0];if(a){return this.each(function(i){y.offset.setOffset(this,a,i)})}if(!b||!b.ownerDocument){return null}if(b===b.ownerDocument.body){return y.offset.bodyOffset(b)}var c=b.getBoundingClientRect(),doc=b.ownerDocument,body=doc.body,docElem=doc.documentElement,clientTop=docElem.clientTop||body.clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0,top=c.top+(self.pageYOffset||y.support.boxModel&&docElem.scrollTop||body.scrollTop)-clientTop,left=c.left+(self.pageXOffset||y.support.boxModel&&docElem.scrollLeft||body.scrollLeft)-clientLeft;return{top:top,left:left}}}else{y.fn.offset=function(a){var b=this[0];if(a){return this.each(function(i){y.offset.setOffset(this,a,i)})}if(!b||!b.ownerDocument){return null}if(b===b.ownerDocument.body){return y.offset.bodyOffset(b)}y.offset.initialize();var c=b.offsetParent,prevOffsetParent=b,doc=b.ownerDocument,computedStyle,docElem=doc.documentElement,body=doc.body,defaultView=doc.defaultView,prevComputedStyle=defaultView?defaultView.getComputedStyle(b,null):b.currentStyle,top=b.offsetTop,left=b.offsetLeft;while((b=b.parentNode)&&b!==body&&b!==docElem){if(y.offset.supportsFixedPosition&&prevComputedStyle.position==="fixed"){break}computedStyle=defaultView?defaultView.getComputedStyle(b,null):b.currentStyle;top-=b.scrollTop;left-=b.scrollLeft;if(b===c){top+=b.offsetTop;left+=b.offsetLeft;if(y.offset.doesNotAddBorder&&!(y.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){top+=parseFloat(computedStyle.borderTopWidth)||0;left+=parseFloat(computedStyle.borderLeftWidth)||0}prevOffsetParent=c,c=b.offsetParent}if(y.offset.subtractsBorderForOverflowNotVisible&&computedStyle.overflow!=="visible"){top+=parseFloat(computedStyle.borderTopWidth)||0;left+=parseFloat(computedStyle.borderLeftWidth)||0}prevComputedStyle=computedStyle}if(prevComputedStyle.position==="relative"||prevComputedStyle.position==="static"){top+=body.offsetTop;left+=body.offsetLeft}if(y.offset.supportsFixedPosition&&prevComputedStyle.position==="fixed"){top+=Math.max(docElem.scrollTop,body.scrollTop);left+=Math.max(docElem.scrollLeft,body.scrollLeft)}return{top:top,left:left}}}y.offset={initialize:function(){var a=document.body,container=document.createElement("div"),innerDiv,checkDiv,table,td,bodyMarginTop=parseFloat(y.curCSS(a,"marginTop",true))||0,html="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";y.extend(container.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});container.innerHTML=html;a.insertBefore(container,a.firstChild);innerDiv=container.firstChild;checkDiv=innerDiv.firstChild;td=innerDiv.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(checkDiv.offsetTop!==5);this.doesAddBorderForTableAndCells=(td.offsetTop===5);checkDiv.style.position="fixed",checkDiv.style.top="20px";this.supportsFixedPosition=(checkDiv.offsetTop===20||checkDiv.offsetTop===15);checkDiv.style.position=checkDiv.style.top="";innerDiv.style.overflow="hidden",innerDiv.style.position="relative";this.subtractsBorderForOverflowNotVisible=(checkDiv.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(a.offsetTop!==bodyMarginTop);a.removeChild(container);a=container=innerDiv=checkDiv=table=td=null;y.offset.initialize=y.noop},bodyOffset:function(a){var b=a.offsetTop,left=a.offsetLeft;y.offset.initialize();if(y.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(y.curCSS(a,"marginTop",true))||0;left+=parseFloat(y.curCSS(a,"marginLeft",true))||0}return{top:b,left:left}},setOffset:function(a,b,i){if(/static/.test(y.curCSS(a,"position"))){a.style.position="relative"}var c=y(a),curOffset=c.offset(),curTop=parseInt(y.curCSS(a,"top",true),10)||0,curLeft=parseInt(y.curCSS(a,"left",true),10)||0;if(y.isFunction(b)){b=b.call(a,i,curOffset)}var d={top:(b.top-curOffset.top)+curTop,left:(b.left-curOffset.left)+curLeft};if("using"in b){b.using.call(a,d)}else{c.css(d)}}};y.fn.extend({position:function(){if(!this[0]){return null}var a=this[0],offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].nodeName)?{top:0,left:0}:offsetParent.offset();offset.top-=parseFloat(y.curCSS(a,"marginTop",true))||0;offset.left-=parseFloat(y.curCSS(a,"marginLeft",true))||0;parentOffset.top+=parseFloat(y.curCSS(offsetParent[0],"borderTopWidth",true))||0;parentOffset.left+=parseFloat(y.curCSS(offsetParent[0],"borderLeftWidth",true))||0;return{top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||document.body;while(a&&(!/^body|html$/i.test(a.nodeName)&&y.css(a,"position")==="static")){a=a.offsetParent}return a})}});y.each(["Left","Top"],function(i,c){var d="scroll"+c;y.fn[d]=function(a){var b=this[0],win;if(!b){return null}if(a!==x){return this.each(function(){win=getWindow(this);if(win){win.scrollTo(!i?a:y(win).scrollLeft(),i?a:y(win).scrollTop())}else{this[d]=a}})}else{win=getWindow(b);return win?("pageXOffset"in win)?win[i?"pageYOffset":"pageXOffset"]:y.support.boxModel&&win.document.documentElement[d]||win.document.body[d]:b[d]}}});function getWindow(a){return("scrollTo"in a&&a.document)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}y.each(["Height","Width"],function(i,d){var e=d.toLowerCase();y.fn["inner"+d]=function(){return this[0]?y.css(this[0],e,false,"padding"):null};y.fn["outer"+d]=function(a){return this[0]?y.css(this[0],e,false,a?"margin":"border"):null};y.fn[e]=function(b){var c=this[0];if(!c){return b==null?null:this}if(y.isFunction(b)){return this.each(function(i){var a=y(this);a[e](b.call(this,i,a[e]()))})}return("scrollTo"in c&&c.document)?c.document.compatMode==="CSS1Compat"&&c.document.documentElement["client"+d]||c.document.body["client"+d]:(c.nodeType===9)?Math.max(c.documentElement["client"+d],c.body["scroll"+d],c.documentElement["scroll"+d],c.body["offset"+d],c.documentElement["offset"+d]):b===x?y.css(c,e):this.css(e,typeof b==="string"?b:b+"px")}});w.jQuery=w.$=y})(window);
//libs-basic/jquery.ui.core
;;jQuery.ui||(function($){$.ui={version:"1.8.1",plugin:{add:function(a,b,c){var d=$.ui[a].prototype;for(var i in c){d.plugins[i]=d.plugins[i]||[];d.plugins[i].push([b,c[i]])}},call:function(a,b,c){var d=a.plugins[b];if(!d||!a.element[0].parentNode){return}for(var i=0;i<d.length;i++){if(a.options[d[i][0]]){d[i][1].apply(a.element,c)}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,a){if($(b).css('overflow')=='hidden'){return false}var c=(a&&a=='left')?'scrollLeft':'scrollTop',has=false;if(b[c]>0){return true}b[c]=1;has=(b[c]>0);b[c]=0;return has},isOverAxis:function(x,a,b){return(x>a)&&(x<(a+b))},isOver:function(y,x,a,b,c,d){return $.ui.isOverAxis(y,a,c)&&$.ui.isOverAxis(x,b,d)},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};$.fn.extend({_focus:$.fn.focus,focus:function(b,c){return typeof b==='number'?this.each(function(){var a=this;setTimeout(function(){$(a).focus();(c&&c.call(a))},b)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr('unselectable','off').css('MozUserSelect','')},disableSelection:function(){return this.attr('unselectable','on').css('MozUserSelect','none')},scrollParent:function(){var a;if(($.browser.msie&&(/(static|relative)/).test(this.css('position')))||(/absolute/).test(this.css('position'))){a=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test($.curCSS(this,'position',1))&&(/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1))}).eq(0)}else{a=this.parents().filter(function(){return(/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1))}).eq(0)}return(/fixed/).test(this.css('position'))||!a.length?$(document):a},zIndex:function(a){if(a!==undefined){return this.css('zIndex',a)}if(this.length){var b=$(this[0]),position,value;while(b.length&&b[0]!==document){position=b.css('position');if(position=='absolute'||position=='relative'||position=='fixed'){value=parseInt(b.css('zIndex'));if(!isNaN(value)&&value!=0){return value}}b=b.parent()}}return 0}});$.extend($.expr[':'],{data:function(a,i,b){return!!$.data(a,b[3])},focusable:function(a){var b=a.nodeName.toLowerCase(),tabIndex=$.attr(a,'tabindex');return(/input|select|textarea|button|object/.test(b)?!a.disabled:'a'==b||'area'==b?a.href||!isNaN(tabIndex):!isNaN(tabIndex))&&!$(a)['area'==b?'parents':'closest'](':hidden').length},tabbable:function(a){var b=$.attr(a,'tabindex');return(isNaN(b)||b>=0)&&$(a).is(':focusable')}})})(jQuery);
//libs-basic/jquery.ui.widget
;(function($){var h=$.fn.remove;$.fn.remove=function(a,b){return this.each(function(){if(!b){if(!a||$.filter(a,[this]).length){$("*",this).add(this).each(function(){$(this).triggerHandler("remove")})}}return h.call($(this),a,b)})};$.widget=function(c,d,e){var f=c.split(".")[0],fullName;c=c.split(".")[1];fullName=f+"-"+c;if(!e){e=d;d=$.Widget}$.expr[":"][fullName]=function(a){return!!$.data(a,c)};$[f]=$[f]||{};$[f][c]=function(a,b){if(arguments.length){this._createWidget(a,b)}};var g=new d();g.options=$.extend({},g.options);$[f][c].prototype=$.extend(true,g,{namespace:f,widgetName:c,widgetEventPrefix:$[f][c].prototype.widgetEventPrefix||c,widgetBaseClass:fullName},e);$.widget.bridge(c,$[f][c])};$.widget.bridge=function(d,e){$.fn[d]=function(b){var c=typeof b==="string",args=Array.prototype.slice.call(arguments,1),returnValue=this;b=!c&&args.length?$.extend.apply(null,[true,b].concat(args)):b;if(c&&b.substring(0,1)==="_"){return returnValue}if(c){this.each(function(){var a=$.data(this,d),methodValue=a&&$.isFunction(a[b])?a[b].apply(a,args):a;if(methodValue!==a&&methodValue!==undefined){returnValue=methodValue;return false}})}else{this.each(function(){var a=$.data(this,d);if(a){if(b){a.option(b)}a._init()}else{$.data(this,d,new e(b,this))}})}return returnValue}};$.Widget=function(a,b){if(arguments.length){this._createWidget(a,b)}};$.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,b){this.element=$(b).data(this.widgetName,this);this.options=$.extend(true,{},this.options,$.metadata&&$.metadata.get(b)[this.widgetName],a);var c=this;this.element.bind("remove."+this.widgetName,function(){c.destroy()});this._create();this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled "+"ui-state-disabled")},widget:function(){return this.element},option:function(c,d){var e=c,self=this;if(arguments.length===0){return $.extend({},self.options)}if(typeof c==="string"){if(d===undefined){return this.options[c]}e={};e[c]=d}$.each(e,function(a,b){self._setOption(a,b)});return self},_setOption:function(a,b){this.options[a]=b;if(a==="disabled"){this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled"+" "+"ui-state-disabled").attr("aria-disabled",b)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,b,c){var d=this.options[a];b=$.Event(b);b.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();c=c||{};if(b.originalEvent){for(var i=$.event.props.length,prop;i;){prop=$.event.props[--i];b[prop]=b.originalEvent[prop]}}this.element.trigger(b,c);return!($.isFunction(d)&&d.call(this.element[0],b,c)===false||b.isDefaultPrevented())}}})(jQuery);
//libs-basic/jquery.ui.mouse
;(function($){$.widget("ui.mouse",{options:{cancel:':input,option',distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind('mousedown.'+this.widgetName,function(a){return b._mouseDown(a)}).bind('click.'+this.widgetName,function(a){if(b._preventClickEvent){b._preventClickEvent=false;a.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind('.'+this.widgetName)},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(b.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(b));this._mouseDownEvent=b;var c=this,btnIsLeft=(b.which==1),elIsCancel=(typeof this.options.cancel=="string"?$(b.target).parents().add(b.target).filter(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=(this._mouseStart(b)!==false);if(!this._mouseStarted){b.preventDefault();return true}}this._mouseMoveDelegate=function(a){return c._mouseMove(a)};this._mouseUpDelegate=function(a){return c._mouseUp(a)};$(document).bind('mousemove.'+this.widgetName,this._mouseMoveDelegate).bind('mouseup.'+this.widgetName,this._mouseUpDelegate);($.browser.safari||b.preventDefault());b.originalEvent.mouseHandled=true;return true},_mouseMove:function(a){if($.browser.msie&&!a.button){return this._mouseUp(a)}if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,a)!==false);(this._mouseStarted?this._mouseDrag(a):this._mouseUp(a))}return!this._mouseStarted},_mouseUp:function(a){$(document).unbind('mousemove.'+this.widgetName,this._mouseMoveDelegate).unbind('mouseup.'+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(a.target==this._mouseDownEvent.target);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return(Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance)},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return true}})})(jQuery);
//libs-basic/jquery.ui.progressbar
;(function($){$.widget("ui.progressbar",{options:{value:0},_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin(),"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.valueDiv=$("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.valueDiv.remove();$.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===undefined){return this._value()}this._setOption("value",a);return this},_setOption:function(a,b){switch(a){case"value":this.options.value=b;this._refreshValue();this._trigger("change");break}$.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number"){a=0}if(a<this._valueMin()){a=this._valueMin()}if(a>this._valueMax()){a=this._valueMax()}return a},_valueMin:function(){return 0},_valueMax:function(){return 100},_refreshValue:function(){var a=this.value();this.valueDiv[a===this._valueMax()?"addClass":"removeClass"]("ui-corner-right").width(a+"%");this.element.attr("aria-valuenow",a)}});$.extend($.ui.progressbar,{version:"1.8.1"})})(jQuery);
//libs-basic/jquery.ui.slider
;(function($){var e=5;$.widget("ui.slider",$.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var c=this,o=this.options;this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider"+" ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all");if(o.disabled){this.element.addClass("ui-slider-disabled ui-disabled")}this.range=$([]);if(o.range){if(o.range===true){this.range=$("<div></div>");if(!o.values){o.values=[this._valueMin(),this._valueMin()]}if(o.values.length&&o.values.length!==2){o.values=[o.values[0],o.values[0]]}}else{this.range=$("<div></div>")}this.range.appendTo(this.element).addClass("ui-slider-range");if(o.range==="min"||o.range==="max"){this.range.addClass("ui-slider-range-"+o.range)}this.range.addClass("ui-widget-header")}if($(".ui-slider-handle",this.element).length===0){$("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle")}if(o.values&&o.values.length){while($(".ui-slider-handle",this.element).length<o.values.length){$("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle")}}this.handles=$(".ui-slider-handle",this.element).addClass("ui-state-default"+" ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).hover(function(){if(!o.disabled){$(this).addClass("ui-state-hover")}},function(){$(this).removeClass("ui-state-hover")}).focus(function(){if(!o.disabled){$(".ui-slider .ui-state-focus").removeClass("ui-state-focus");$(this).addClass("ui-state-focus")}else{$(this).blur()}}).blur(function(){$(this).removeClass("ui-state-focus")});this.handles.each(function(i){$(this).data("index.ui-slider-handle",i)});this.handles.keydown(function(a){var b=true,index=$(this).data("index.ui-slider-handle"),allowed,curVal,newVal,step;if(c.options.disabled){return}switch(a.keyCode){case $.ui.keyCode.HOME:case $.ui.keyCode.END:case $.ui.keyCode.PAGE_UP:case $.ui.keyCode.PAGE_DOWN:case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:b=false;if(!c._keySliding){c._keySliding=true;$(this).addClass("ui-state-active");allowed=c._start(a,index);if(allowed===false){return}}break}step=c.options.step;if(c.options.values&&c.options.values.length){curVal=newVal=c.values(index)}else{curVal=newVal=c.value()}switch(a.keyCode){case $.ui.keyCode.HOME:newVal=c._valueMin();break;case $.ui.keyCode.END:newVal=c._valueMax();break;case $.ui.keyCode.PAGE_UP:newVal=curVal+((c._valueMax()-c._valueMin())/e);break;case $.ui.keyCode.PAGE_DOWN:newVal=curVal-((c._valueMax()-c._valueMin())/e);break;case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:if(curVal===c._valueMax()){return}newVal=curVal+step;break;case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:if(curVal===c._valueMin()){return}newVal=curVal-step;break}c._slide(a,index,newVal);return b}).keyup(function(a){var b=$(this).data("index.ui-slider-handle");if(c._keySliding){c._keySliding=false;c._stop(a,b);c._change(a,b);$(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider"+" ui-slider-horizontal"+" ui-slider-vertical"+" ui-slider-disabled"+" ui-widget"+" ui-widget-content"+" ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this},_mouseCapture:function(b){var o=this.options,position,normValue,distance,closestHandle,self,index,allowed,offset,mouseOverHandle;if(o.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();position={x:b.pageX,y:b.pageY};normValue=this._normValueFromMouse(position);distance=this._valueMax()-this._valueMin()+1;self=this;this.handles.each(function(i){var a=Math.abs(normValue-self.values(i));if(distance>a){distance=a;closestHandle=$(this);index=i}});if(o.range===true&&this.values(1)===o.min){index+=1;closestHandle=$(this.handles[index])}allowed=this._start(b,index);if(allowed===false){return false}this._mouseSliding=true;self._handleIndex=index;closestHandle.addClass("ui-state-active").focus();offset=closestHandle.offset();mouseOverHandle=!$(b.target).parents().andSelf().is(".ui-slider-handle");this._clickOffset=mouseOverHandle?{left:0,top:0}:{left:b.pageX-offset.left-(closestHandle.width()/2),top:b.pageY-offset.top-(closestHandle.height()/2)-(parseInt(closestHandle.css("borderTopWidth"),10)||0)-(parseInt(closestHandle.css("borderBottomWidth"),10)||0)+(parseInt(closestHandle.css("marginTop"),10)||0)};normValue=this._normValueFromMouse(position);this._slide(b,index,normValue);this._animateOff=true;return true},_mouseStart:function(a){return true},_mouseDrag:function(a){var b={x:a.pageX,y:a.pageY},normValue=this._normValueFromMouse(b);this._slide(a,this._handleIndex,normValue);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,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(a){var b,pixelMouse,percentMouse,valueTotal,valueMouse;if(this.orientation==="horizontal"){b=this.elementSize.width;pixelMouse=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;pixelMouse=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}percentMouse=(pixelMouse/b);if(percentMouse>1){percentMouse=1}if(percentMouse<0){percentMouse=0}if(this.orientation==="vertical"){percentMouse=1-percentMouse}valueTotal=this._valueMax()-this._valueMin();valueMouse=this._valueMin()+percentMouse*valueTotal;return this._trimAlignValue(valueMouse)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}return this._trigger("start",a,c)},_slide:function(a,b,c){var d,newValues,allowed;if(this.options.values&&this.options.values.length){d=this.values(b?0:1);if((this.options.values.length===2&&this.options.range===true)&&((b===0&&c>d)||(b===1&&c<d))){c=d}if(c!==this.values(b)){newValues=this.values();newValues[b]=c;allowed=this._trigger("slide",a,{handle:this.handles[b],value:c,values:newValues});d=this.values(b?0:1);if(allowed!==false){this.values(b,c,true)}}}else{if(c!==this.value()){allowed=this._trigger("slide",a,{handle:this.handles[b],value:c});if(allowed!==false){this.value(c)}}}},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("change",a,c)}},value:function(a){if(arguments.length){this.options.value=this._trimAlignValue(a);this._refreshValue();this._change(null,0)}return this._value()},values:function(a,b){var c,newValues,i;if(arguments.length>1){this.options.values[a]=this._trimAlignValue(b);this._refreshValue();this._change(null,a)}if(arguments.length){if($.isArray(arguments[0])){c=this.options.values;newValues=arguments[0];for(i=0;i<c.length;i+=1){c[i]=this._trimAlignValue(newValues[i]);this._change(null,i)}this._refreshValue()}else{if(this.options.values&&this.options.values.length){return this._values(a)}else{return this.value()}}}else{return this._values()}},_setOption:function(a,b){var i,valsLength=0;if($.isArray(this.options.values)){valsLength=this.options.values.length}$.Widget.prototype._setOption.apply(this,arguments);switch(a){case"disabled":if(b){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case"value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;this._refreshValue();for(i=0;i<valsLength;i+=1){this._change(null,i)}this._animateOff=false;break}},_value:function(){var a=this.options.value;a=this._trimAlignValue(a);return a},_values:function(a){var b,vals,i;if(arguments.length){b=this.options.values[a];b=this._trimAlignValue(b);return b}else{vals=this.options.values.slice();for(i=0;i<vals.length;i+=1){vals[i]=this._trimAlignValue(vals[i])}return vals}},_trimAlignValue:function(a){if(a<this._valueMin()){return this._valueMin()}if(a>this._valueMax()){return this._valueMax()}var b=this.options.step,valModStep=a%b,alignValue=a-valModStep;if(valModStep>=(b/2)){alignValue+=b}return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var a=this.options.range,o=this.options,self=this,animate=(!this._animateOff)?o.animate:false,valPercent,_set={},lastValPercent,value,valueMin,valueMax;if(this.options.values&&this.options.values.length){this.handles.each(function(i,j){valPercent=(self.values(i)-self._valueMin())/(self._valueMax()-self._valueMin())*100;_set[self.orientation==="horizontal"?"left":"bottom"]=valPercent+"%";$(this).stop(1,1)[animate?"animate":"css"](_set,o.animate);if(self.options.range===true){if(self.orientation==="horizontal"){if(i===0){self.range.stop(1,1)[animate?"animate":"css"]({left:valPercent+"%"},o.animate)}if(i===1){self.range[animate?"animate":"css"]({width:(valPercent-lastValPercent)+"%"},{queue:false,duration:o.animate})}}else{if(i===0){self.range.stop(1,1)[animate?"animate":"css"]({bottom:(valPercent)+"%"},o.animate)}if(i===1){self.range[animate?"animate":"css"]({height:(valPercent-lastValPercent)+"%"},{queue:false,duration:o.animate})}}}lastValPercent=valPercent})}else{value=this.value();valueMin=this._valueMin();valueMax=this._valueMax();valPercent=(valueMax!==valueMin)?(value-valueMin)/(valueMax-valueMin)*100:0;_set[self.orientation==="horizontal"?"left":"bottom"]=valPercent+"%";this.handle.stop(1,1)[animate?"animate":"css"](_set,o.animate);if(a==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[animate?"animate":"css"]({width:valPercent+"%"},o.animate)}if(a==="max"&&this.orientation==="horizontal"){this.range[animate?"animate":"css"]({width:(100-valPercent)+"%"},{queue:false,duration:o.animate})}if(a==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[animate?"animate":"css"]({height:valPercent+"%"},o.animate)}if(a==="max"&&this.orientation==="vertical"){this.range[animate?"animate":"css"]({height:(100-valPercent)+"%"},{queue:false,duration:o.animate})}}}});$.extend($.ui.slider,{version:"1.8.1"})}(jQuery));
//packages/mm.full.min
; (function(a){function u(){a.event.special.mediaerror.handler.apply(a(this).closest("video, audio")[0],arguments)}function v(b){if(a.support.mediaElements){var e=a.data(this,"mediaElemSupport");if(e&&e.apis){b&&b.type&&a.data(this,"calledMediaError",false);e=e.apis;b=this;var g=a.attr(this,"srces");if(b.error||g.length&&!e.nativ.canPlaySrces(g)){a.event.special.mediaerror.handler.call(this,a.Event("mediaerror"));try{b.pause()}catch(l){}}a("source",this).unbind("error",u).filter(":last").bind("error",
u)}}}function x(b){var e=b.indexOf("?"),g="";b=e>0?b.substring(0,e):b;e=b.lastIndexOf(".")+1;return g=b.substr(e)}function y(b,e){var g=b.nodeName.toLowerCase();e=h.getSuitedPlayers(b,e.apiOrder);var l=a.data(b,"mediaElemSupport");if(e)if(e==="noSource")l.noSource=true;else if(h._setAPIActive(b,e.name))l.apis[e.name]._mmload&&l.apis[e.name]._mmload(e.src,a.attr(b,"poster"));else h._embedApi(b,e,l,g);else{l.apis.nativ._trigger({type:"totalerror"});try{b.pause()}catch(n){}}}a.multimediaSupport={};var h=
a.multimediaSupport,f=(new Date).getTime(),c=document,i=a("<video />")[0],k=!("webkitPreservesPitch"in i&&parseFloat(a.browser.version,10)<534.7&&(navigator.userAgent.indexOf("Chrome")!==-1||navigator.userAgent.indexOf("Mac")===-1));a.support.video=!!i.canPlayType;a.support.autoBuffer=!!("autobuffer"in i);a.support.audio=!!a("<audio />")[0].canPlayType;i=null;a("<source />");a("<track />");a.support.mediaElements=a.support.video&&a.support.audio;a.support.dynamicHTML5=!!a("<video><div></div></video>")[0].innerHTML;
a.support.mediaLoop="loop"in a("<video />")[0];a.browser.deprecatedPoster=!k;a.fixHTML5=function(){var b,e;return a.support.dynamicHTML5?function(g){return g}:function(g){if(!b){e=document.body;b=document.createElement("div");b.style.display="none"}var l=b.cloneNode(false);e.appendChild(l);l.innerHTML=g;e.removeChild(l);return l.childNodes}}();var d={left:"0px",position:"absolute",visibility:"hidden",display:"block"},j=function(b,e){var g=e.parentNode;e=document.body;for(var l={width:0,height:0};g&&
g!==e;){if(a.curCSS(g,"display")==="none"){a.swap(g,d,function(){var n=false;if(a.curCSS(g,"display",true)==="none"){g.style.display="";n=a.attr(g,"style");a.attr(g,"style",n+"; display: block !important;")}l.height=b.innerHeight();l.width=b.innerWidth();if(!l.width&&!l.height)l=j(b,g);n!==false&&a.attr(g,"style",n)});if(l.width||l.height)break}g=g.parentNode}return l},m=["float"];a.each(["Top","Left","Right","Bottom"],function(b,e){m.push("margin"+e);m.push("padding"+e);m.push("border"+e+"Width");
setTimeout(function(){h._transferStyles.push("border"+e+"Color");h._transferStyles.push("border"+e+"Style")},1)});a.fn.getDimensions=function(){var b={width:0,height:0};if(this[0]){var e=this,g=this[0].style;b.height=g.height;b.width=g.width;a.each(m,function(l,n){b[n]=g[n]||e.css(n)});if(!b.width||!b.height||b.height=="auto"||b.width=="auto"){b.height=this.innerHeight();b.width=this.innerWidth();if(!b.width&&!b.height)b=j(this,this[0])}}return b};var q=a.attr,o=/video|audio|source/i,r={src:1,poster:1},
w={loop:1,autoplay:1,controls:1},B={srces:1,getConfig:1,preload:1},A={auto:1,metadata:1,none:1},z={change:function(b,e,g){if(a.support.mediaElements){var l=b.getAttribute("preload")||"metadata3";if(g||e!==l)if(k){if(a.support.autoBuffer)b.autobuffer=e==="auto"}else if(e==="none"||l==="none"&&(e==="auto"||!b.getAttribute("poster"))){a(b).unbind("play",z.changePlayMode);e==="none"&&a(b).bind("play",z.changePlayMode);a.attr(b,"srces",a.attr(b,"srces"),e)}}},changeAutoplay:function(b,e){if(a.support.mediaElements&&
!k&&a.attr(b,"preload")==="none"&&e!==a.attr(b,"autoplay")){var g=a.attr(b,"srces");a.attr(b,"srces",g,"auto");g.length&&e&&setTimeout(function(){b.play&&a(b).getMediaAPI()==="nativ"&&b.play()},9)}},changePlayMode:function(){z.changeAutoplay(this,true)},addSrces:function(b,e,g){if(k||!a.support.mediaElements)return false;g=g||a.attr(b,"preload");a(b).unbind("play",z.changePlayMode);if(g==="auto"||a.attr(b,"autoplay"))return a.data(b,"jme-srces",false);a(b).bind("play",z.changePlayMode);a.data(b,"jme-srces",
e);return true}};a.attr=function(b,e,g,l){if(!(b.nodeName&&o.test(b.nodeName)&&(B[e]||w[e]||r[e])))return q(b,e,g,l);var n;if(g===undefined){if(w[e])return typeof b[e]==="boolean"?b[e]:!!(b.attributes[e]||{}).specified;if(r[e])return a.support.video&&b[e]||h.makeAbsURI(b.getAttribute(e));switch(e){case "srces":if(n=a.data(b,"jme-srces"))break;if(n=a.attr(b,"src"))n=[{src:n,type:b.getAttribute("type"),media:b.getAttribute("media")}];else{n=[];a("source",b).each(function(){n.push({src:a.attr(this,"src"),
type:this.getAttribute("type"),media:this.getAttribute("media")})});n.length||a("a.source",b).each(function(){n.push({src:this.href,type:this.getAttribute("type"),media:this.getAttribute("data-media")})})}break;case "getConfig":n={};a.each(["autoplay","loop","controls","poster","preload"],function(p,s){n[s]=a.attr(b,s)});break;case "preload":n=b.preload||b.getAttribute("preload");if(n==="")n="auto";A[n]||(n="metadata");break}return n}else if(w[e]){g=!!g;b[e]=g;e==="autoplay"&&z.changeAutoplay(b,g);
if(g){b[e]=g;b.setAttribute(e,e)}else{b[e]=g;b.removeAttribute(e)}}else if(r[e])b.setAttribute(e,g);else if(e==="srces"){a("source, a.source",b).remove();b.removeAttribute("src");g=a.isArray(g)?g:[g];z.addSrces(b,g,l)||a.each(g,function(p,s){n=c.createElement("source");if(typeof s==="string")s={src:s};n.setAttribute("src",s.src);s.type&&n.setAttribute("type",s.type);s.media&&n.setAttribute("media",s.media);b.appendChild(n)})}else if(e==="getConfig")a.each(g,function(p,s){a.attr(b,p,s)});else if(e===
"preload"){if(g==="")g="auto";else A[g]||(g="metadata");z.change(b,g,l);b.setAttribute(e,g)}};a.event.special.mediaerror={setup:function(){var b=a(this).bind("error",a.event.special.mediaerror.handler).bind("native_mediareset",v);setTimeout(function(){b.each(v)},0)},teardown:function(){a(this).unbind("error",a.event.special.mediaerror.handler).find("source").unbind("error",u)},handler:function(b){if(!a.data(this,"calledMediaError")){b=a.extend({},b||{},{type:"mediaerror"});a.data(this,"calledMediaError",
true);return a.event.handle.apply(this,arguments)}}};var D={audio:{"audio/ogg":["ogg","oga","ogm"],"audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":["mp4","mpg4"],"audio/wav":["wav"],"audio/x-m4a":["m4a"],"audio/x-m4p":["m4p"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],
"video/3gpp":["3gp","3gpp"],"video/webm":["webm"]}};a.extend(h,{jsPath:function(){var b=a("script");b=b[b.length-1].src.split("?")[0];return b.slice(0,b.lastIndexOf("/")+1)}(),extendWithData:function(){var b={string:1,number:1,"boolean":1};return function(e,g,l){l||(l=g);a.each(l,a.isArray(l)?function(n,p){h.getData(e,p,g)}:function(n,p){b[typeof p]&&h.getData(e,n,g)});return g}}(),getData:function(){var b=function(e,g){e=e.getAttribute("data-"+g);if(!(!e&&e!==""))return e*1==e?parseFloat(e,10):e===
"false"?false:e==="true"?true:e};return function(e,g,l){var n=g;l=l||{};if(typeof g==="string")g=[n];a.each(g,a.isArray(g)?function(p,s){p=b(e,s);if(p!==undefined)l[s]=p}:function(p){var s=b(e,p);if(s!==undefined)l[p]=s});return l}}(),registerMimetype:function(b,e){arguments.length===1?a.each(D,function(g){h.registerMimetype(g,b)}):a.each(e,function(g,l){if(D[b][g])D[b][g]=[];D[b][g]=D[b][g].concat(l)})},_showMimeTypes:function(){window.console&&console.log(D)},add:function(b,e,g){if(!this.apis[e][b]){this.apis[e][b]=
h.beget(this.fn);b!=="nativ"&&a.inArray(b,a.fn.jmeEmbed.defaults.apiOrder)===-1&&a.fn.jmeEmbed.defaults.apiOrder.push(b)}a.extend(true,this.apis[e][b],g)},fn:{_init:a.noop,canPlayType:function(b){var e=this.apiElem,g;if(e&&e.canPlayType){g=e.canPlayType(b);return g==="no"?"":g}b=h.extractContainerCodecsFormType(b);var l=this;g="probably";if(!b[1])return this.canPlayContainer&&a.inArray(b[0],this.canPlayContainer)!==-1?"maybe":"";a.each(b[1],function(n,p){if(!l.canPlayCodecs||a.inArray(p,l.canPlayCodecs)===
-1){g="";return false}});return g},canPlaySrc:function(b){var e=this;if(typeof b!=="string"){if(b.type)return this.canPlayType(b.type);b=b.src}var g=x(b),l="";a.each(D[this.nodeName],function(n,p){if(a.inArray(g,p)!==-1){l=e.canPlayType(n);return false}});return l},canPlaySrces:function(b){b=b||a.attr(this.element,"srces");a.isArray(b)||(b=[b]);var e=this,g=false,l="";a.each(b,function(n,p){if(g=e.canPlaySrc(p)){l=p;return false}});return l},_setActive:a.noop,_setInactive:a.noop,_trigger:function(b){a(this.element).triggerHandler(b,
b)}},apis:{audio:{},video:{}},extractContainerCodecsFormType:function(b){b=b.split(/\s*;\s*/g);if(b[1]&&b[1].indexOf("codecs")!==-1)b[1]=b[1].replace(/["|']$/,"").replace(/^\s*codecs=('|")/,"").split(/\s*,\s*/g);return b},makeAbsURI:function(){return function(b){if(b&&typeof b==="string")b=a('<a href="'+b+'"></a>')[0].href;return b}}(),beget:function(b){var e=function(){};e.prototype=b;return new e},_create:function(b,e,g,l){var n=a.data(g,"mediaElemSupport")||a.data(g,"mediaElemSupport",{apis:{},
nodeName:b});if(!n.apis[e]){n.apis[e]=h.beget(h.apis[b][e]);n.apis[e].element=g;n.apis[e].nodeName=b;n.apis[e].name=e;n.apis[e].data={};n.apis[e].embedOpts=l}return n},_transferStyles:["backgroundColor","backgroundPosition","backgroundImage","backgroundRepeat","background-attachment"],_setAPIActive:function(b,e){var g=a.data(b,"mediaElemSupport"),l=g.name;if(l===e)return true;var n=g.apis[l].apiElem,p=g.apis[e]&&g.apis[e].apiElem,s=false;if(p&&p.nodeName){if(g.nodeName!=="audio"||a.attr(b,"controls"))e===
"nativ"?g.apis[e].visualElem.css({display:""}):g.apis[e].visualElem.css(a.extend({visibility:""},g.apis[l].visualElem.getDimensions()));g.apis[e]._setActive(l);s=true;g.apis[e]._trigger({type:"apiActivated",api:e});if(g.apis[l]){g.apis[l]._volumelevelState!==undefined&&a(b).volumelevel(g.apis[l]._volumelevelState);g.apis[l]._muteState!==undefined&&a(b).muted(g.apis[l]._muteState);g.apis[l].visualElem&&a.each(h._transferStyles,function(t,C){g.apis[e].visualElem.css(C,g.apis[l].visualElem.css(C))})}}g.apis[e].isAPIActive=
true;if(n&&n.nodeName){if(l==="nativ")n.style.display="none";else g.apis[l].visualElem.css({height:0,width:0,visibility:"hidden"});g.apis[l]._setInactive(e);g.apis[l].isAPIActive=false;g.apis[e]._trigger({type:"apiDeActivated",api:l})}g.name=e;return s},getSuitedPlayers:function(b,e){var g=a.data(b,"mediaElemSupport");if(g&&g.apis){g=g.apis;var l=a.attr(b,"srces"),n=false,p=function(s,t){if(!(typeof t.isTechAvailable==="boolean"&&!t.isTechAvailable||a.isFunction(t.isTechAvailable)&&!t.isTechAvailable())){if(t=
t.canPlaySrces(l))n={src:t.src||t,name:s};return n}};if(!l.length)return"noSource";e?a.each(e,function(s,t){return!p(t,g[t])}):a.each(g,function(s,t){return!p(s,t)});return n}},_embedApi:function(b,e,g){var l=a.attr(b,"getConfig"),n=a(b),p=b.id,s=n.attr("aria-labelledby");if(!p){f++;p=g.nodeName+"-"+f;b.id=p}g.apis[e.name].visualElem=a('<div class="media-element-box mm-'+g.nodeName+'-box" style="position: relative;" />').insertBefore(b);s&&g.apis[e.name].visualElem.attr({role:"group","aria-labelledby":s});
if(g.nodeName==="audio"&&!l.controls)g.apis[e.name].visualElem.css({height:0,width:0});else{g.apis[e.name].visualElem.css(n.getDimensions());a.each(h._transferStyles,function(t,C){g.apis[e.name].visualElem.css(C,n.css(C))})}g.apis[e.name]._embed(e.src,g.name+"-"+p,l,function(t){g.apis[e.name].apiElem=t;a(t).addClass(g.nodeName);l.controls||a(t).attr({tabindex:"-1",role:"presentation"});g.apis[e.name]._init();g.apis[e.name]._trigger({type:"apiActivated",api:e.name})})},getPluginVersion:function(b,
e){e=e||navigator.plugins&&navigator.plugins[b];b=[-1,0];if(e)if((e=(e.description||"").replace(/,/g,".").match(/(\d+)/g)||["0"])&&e[0]){b[0]=e[0];if(e[1])b[0]+="."+e[1];b[0]=parseFloat(b[0],10);if(e[2])b[1]=parseInt(e[2],10)}return b},embedObject:function(b,e,g,l,n){b.style.overflow="hidden";b=a("<div />").prependTo(b)[0];var p;if(navigator.plugins&&navigator.plugins.length){p=c.createElement("object");a.each(g,function(s,t){p.setAttribute(s,t)});a.each(l,function(s,t){var C=c.createElement("param");
C.setAttribute("name",s);C.setAttribute("value",t);p.appendChild(C)});p.setAttribute("id",e);p.setAttribute("name",e);if(l.wmode==="transparent"){p.style.minHeight="1px";p.style.minHeight="1px"}b.parentNode.replaceChild(p,b)}else if(window.ActiveXObject){p='<object style="width: 100%; height: 100%; width="100%" height="100%"';a.each(a.extend({},g,n),function(s,t){p+=" "+s+'="'+t+'"'});p+=' name="'+e+'"';p+=' id="'+e+'"';p+=">";a.each(l,function(s,t){p+=' <param name="'+s+'" value="'+t+'" />'});p+=
"</object>";b.outerHTML=p;p=c.getElementById(e)}if(p){p.setAttribute("width","100%");p.setAttribute("height","100%")}a(window).unload(function(){jQuery.cleanData([p]);p=null});setTimeout(function(){if(p&&p.style){p.style.width="100%";p.style.height="100%"}},0);return p}});h.add("nativ","video",{});h.add("nativ","audio",{});var E=function(){var b=a(this).hide().children(":not(source, track)").clone().insertAfter(this);a(this).one("mediareset",function(){a(this).show();b.remove()})};a.fn.jmeEmbed=function(b){b=
a.extend(true,{},a.fn.jmeEmbed.defaults,b);b.showFallback&&a.support.mediaElements&&this.bind("totalerror",E);return this.each(function(){var e=this.nodeName.toLowerCase(),g=false,l=this;if(!(e!=="video"&&e!=="audio"||a.support.flash9&&a.nodeName(l.parentNode,"object"))){a("object, embed",this).each(function(){a("> *:not(param, embed, object)",this).appendTo(l)}).remove();a(this).trigger("jmeBeforeEmbed",{options:b,nodeName:e});b.removeControls&&a.attr(this,"controls",false);var n=h._create(e,"nativ",
this,b);n.name="nativ";n.apis.nativ.apiElem=this;n.apis.nativ.visualElem=a(this);n.apis.nativ.isAPIActive=true;a.each(h.apis[e],function(p){p!=="nativ"&&h._create(e,p,l,b)});a(this).bind("mediaerror",function(){n.name==="nativ"&&y(this,b)});if(a.support.flash9&&b.activateFlash){g=h.getSuitedPlayers(l,["jwPlayer"]);if(g=="noSource")g={name:"jwPlayer"};n.apis.nativ.isAPIReady=true;if(g.name=="jwPlayer"&&!h._setAPIActive(this,"jwPlayer"))h._embedApi(this,g,n,e);else g=false}if(!g)if(b.debug||!a.support.mediaElements){y(this,
b);n.apis.nativ.isAPIReady=true}else n.apis.nativ._init();a.attr(this,"preload",a.attr(this,"preload"),true);a(this).trigger("jmeEmbed",{options:b,nodeName:e,data:n})}})};a.fn.jmeEmbed.defaults={debug:false,removeControls:false,showFallback:false,apiOrder:[],activateFlash:false};a.fn.mediaElementEmbed=a.fn.jmeEmbed;if(a.cleanData&&window.ActiveXObject){var F=a.cleanData;a.cleanData=function(b){F(b);for(var e=0,g=b.length;e<g;e++)if(b[e].nodeName==="OBJECT")try{for(var l in b[e])if(typeof b[e][l]===
"function")b[e][l]=null}catch(n){}}}})(jQuery);
(function(a){var u=document.createElement("video"),v=a.multimediaSupport,x={apiActivated:1,apiDeActivated:1,mediareset:1,native_mediareset:1,totalerror:1,jmeflashRefresh:1,flashblocker:1},y={native_mediareset:1,apiDeActivated:1,native_mediareset:1,apiActivated:1,timechange:1,progresschange:1,mmAPIReady:1,jmeflashRefresh:1},h={};if("enterFullScreen"in u&&u.supportsFullscreen){a.support.videoFullscreen=true;h.enter="enterFullScreen";h.exit="exitFullScreen"}else a.each(["webkit","moz","o","ms"],function(d,
j){if(j+"EnterFullScreen"in u&&j+"SupportsFullscreen"in u){a.support.videoFullscreen=true;h.enter=j+"EnterFullScreen";h.exit=j+"ExitFullScreen";return false}});u=null;a.extend(v,{capturingEvents:function(d){if(document.addEventListener){if(typeof d=="string")d=[d];a.each(d,function(j,m){var q=function(o){o=a.event.fix(o);return a.event.handle.call(this,o)};a.event.special[m]=a.event.special[m]||{};a.extend(a.event.special[m],{setup:function(){this.addEventListener(m,q,true)},teardown:function(){this.removeEventListener(m,
q,true)}})})}},formatTime:function(d){return a.map([parseInt(d/60,10),parseInt(d%60,10)],function(j){return isNaN(j)?"--":j<10?"0"+j:j}).join(":")}});v.capturingEvents("play pause playing waiting ended".split(" "));a.event.special.loadedmeta={add:function(d){var j=a(this).getJMEAPI();if(j&&j.loadedmeta){j=a.extend({},j.loadedmeta);d.handler.call(this,j,j)}}};a.extend(v.fn,{_trigger:function(d){var j=d.type?d:{type:d},m=j.type;switch(m){case "mmAPIReady":if(this.isAPIReady)return;this.isAPIReady=true;
break;case "loadedmeta":this.loadedmeta=j;break;case "totalerror":this.totalerror=true;break;case "mute":this._muteState=d.isMuted;break;case "volumelevelchange":this._volumelevelState=d.volumelevel;break;case "mediareset":this._bufferLoaded=this.totalerror=this.loadedmeta=false;break}if(!(!this.isAPIActive||this.totalerror&&!x[m]||this._stoppedEvents[m])){!this.isAPIReady&&!x[m]&&this._trigger("mmAPIReady");if(d.type==="progresschange")this._bufferLoaded=d.relLoaded;d.target=this.element;d=a.Event(d);
d.preventDefault();j.mediaAPI=this.name;y[m]&&d.stopPropagation();a.event.trigger(d,j,this.element)}},_stoppedEvents:{},_stopEvent:function(d,j){this._stoppedEvents[d]=true;if(j){var m=this;setTimeout(function(){m._allowEvent(d)},9)}},_allowEvent:function(d){this._stoppedEvents[d]=false},supportsFullScreen:function(){return this._videoFullscreen||false},enterFullscreen:a.noop,exitFullscreen:a.noop,isAPIReady:false,isJMEReady:function(){return this.isAPIReady},relCurrentTime:function(d){var j=this.getDuration()||
Number.MIN_VALUE;d&&isFinite(d)&&this.currentTime(j*d/100);return this.currentTime()/j*100},getMediaAPI:function(){return this.name},togglePlay:function(){this[this.isPlaying()?"pause":"play"]()},toggleMuted:function(){this.muted(!this.muted())},getJMEVisual:function(){return this.visualElem},jmeReady:function(d,j){var m={type:"mmAPIReady"};if(this.isJMEReady()&&(this.name!=="nativ"||a.support.mediaElements))d.call(this.element,m,m);else{j=j||"jmediaelement";var q=this,o=function(){a(q.element).unbind("mmAPIReady."+
j,o).unbind("jmeflashRefresh."+j,o);d.call(q.element,m,m)};a(this.element).bind("mmAPIReady."+j,o).bind("jmeflashRefresh."+j,o)}},unAPIReady:function(d){a(this.element).unbind("mmAPIReady."+d)},_adjustPluginLoop:function(d){var j=a.attr(this.element,"loop"),m=this;j!==d&&setTimeout(function(){m[j?"play":"pause"]()},0)},_format:v.formatTime,getFormattedDuration:function(){return this._format(this.getDuration())},getFormattedTime:function(){return this._format(this.currentTime())},loadSrc:function(d,
j,m,q){if(d){a.attr(this.element,"srces",d);d=a.isArray(d)?d:[d]}else d=a.attr(this.element,"srces");if(j!==undefined)j?a.attr(this.element,"poster",j):a(this.element).removeAttr("poster");else j=a.attr(this.element,"poster");var o=a.data(this.element,"mediaElemSupport");typeof m=="string"&&o.mediaName&&o.mediaName.text(m);o.noSource=!!d.length;this._isResetting=true;d=this.canPlaySrces(d);this._trigger("mediareset");if(d){d=d.src||d;this._mmload(d,j,q)}else{v._setAPIActive(this.element,"nativ");
this._trigger("native_mediareset");a(this.element).data("mediaElemSupport").apis.nativ._mmload()}this._isResetting=false},isPlaying:function(){return this._isResetting?false:this._isPlaying()},_makenum:function(d){var j=false;if(d==d*1)j=parseFloat(d,10);return j}});var f=function(d){var j=function(){for(var r=d.element.currentTime||0,w=d.element.buffered,B=w.length,A={},z=0;z<B;z++){A.start=w.start(z);A.end=w.end(z);if(A.start<=r&&A.end>=r)break}return A},m=function(r){var w={type:"progresschange"},
B;if(this.buffered&&this.buffered.length){if(r=this.duration){B=j();w.relStart=B.start/r*100;w.relLoaded=B.end/r*100}d._trigger(w)}else if(r.originalEvent&&"lengthComputable"in r.originalEvent&&r.originalEvent.loaded){if(r.originalEvent.lengthComputable&&r.originalEvent.total){w.relStart=0;w.relLoaded=r.originalEvent.loaded/r.originalEvent.total*100}d._trigger(w)}if(!w.relLoaded&&this.readyState===4){w.relStart=0;w.relLoaded=100;d._trigger(w)}return w.relLoaded},q=function(){if(m.call(d.element,{type:"ipadprogress"})>=
100||d.element.readyState===1)clearInterval(o)},o;a(d.element).bind("progress load",m);"buffered"in d.element&&a(d.element).bind("play waiting loadstart",function(){clearInterval(o);if(d.isAPIActive){o=setInterval(q,333);q()}})},c={isTechAvailable:a.support.mediaElements,_init:function(){var d=this,j=this.apiElem.muted,m=false,q=function(o){clearInterval(m);if(!d.element.error&&d.element.mozLoadFrom&&d.isAPIActive&&!d.element.readyState&&d.element.networkState===2&&a.support.flash9)if(o===true)d.element.load();
else m=setTimeout(function(){q(true)},o==="initial"?2E4:9E3)};f(this);a(this.element).bind({volumechange:function(){if(j!==d.apiElem.muted){j=d.apiElem.muted;d._trigger.call(d,{type:"mute",isMuted:j})}else d._trigger.call(d,{type:"volumelevelchange",volumelevel:d.apiElem.volume*100})},ended:function(){if(d.isAPIActive&&this.ended&&!this.paused&&!a.attr(this,"loop")){d._stopEvent("pause",true);this.pause()}},timeupdate:function(){var o={type:"timechange",time:this.currentTime};if(this.duration){o.duration=
this.duration;o.timeProgress=o.time/o.duration*100}d._trigger(o)},progress:function(){!d.loadedmeta&&this.duration&&d._trigger({type:"loadedmeta",duration:this.duration})},loadedmetadata:function(){d._trigger({type:"loadedmeta",duration:this.duration})}}).bind("play playing",function(o){if(!d.isAPIActive&&o.originalEvent&&!d.element.paused&&!d.element.ended)try{d.element.pause()}catch(r){}}).bind("mediareset",q).bind("ended play pause waiting playing",function(o){if(!d.isAPIActive&&o.originalEvent&&
(o.originalEvent.mediaAPI==="nativ"||!o.originalEvent.mediaAPI)||d._stoppedEvents[o.type])o.stopImmediatePropagation()});q("initial");a.support.mediaLoop||a(this.element).bind("ended",function(){if(d.isAPIActive&&a.attr(this,"loop")){var o=this;setTimeout(function(){a.attr(o,"loop")&&o.play()},0)}});if(!this.element.error)if(this.element.readyState>0)this._trigger({type:"loadedmeta",duration:this.element.duration});else if(this.element.networkState!==2||"webkitPreservesPitch"in this.element)this._trigger("mmAPIReady")},
play:function(){this.element.play()},pause:function(){this._allowEvent("pause");this.element.pause()},muted:function(d){if(typeof d!=="boolean")return this.element.muted;this.element.muted=d},volume:function(d){if(!isFinite(d))return this.element.volume*100;this.element.volume=d/100},currentTime:function(d){if(!isFinite(d))return this.element.currentTime;try{this.element.currentTime=d}catch(j){}},_mmload:function(){this.element.load?this.element.load():a(this.element).triggerHandler("error")},_isPlaying:function(){return!this.element.paused&&
this.element.readyState>1&&!this.element.error&&!this.element.ended},getDuration:function(){return this.element.duration},getCurrentSrc:function(){return this.element.currentSrc}};v.add("nativ","video",a.extend({_videoFullscreen:a.support.videoFullscreen,enterFullScreen:function(){if(!this._videoFullscreen)return false;try{this.element[h.enter]()}catch(d){return false}return true},exitFullScreen:function(){if(!this._videoFullscreen)return false;try{this.element[h.exit]()}catch(d){return false}return true}},
c));v.add("nativ","audio",c);a.fn.getJMEAPI=function(d){if(this[0]){var j=a.data(this[0],"mediaElemSupport");return d||!j||!j.name||!j.apis?j:j.apis[j.name]}};var i={jmeReady:1,getJMEVisual:1,jmeReady:1,isJMEReady:1,getMediaAPI:1,supportsFullScreen:1};v.registerAPI=function(d){if(typeof d==="string")d=[d];a.each(d,function(j,m){if((j=v.apis.video.nativ[m])&&!a.fn[m]&&a.isFunction(j)&&m.indexOf("_")!==0)a.fn[m]=function(){var q=arguments,o;this.each(function(){var r=a(this).getJMEAPI();if(r)if(i[m]||
m=="loadSrc"&&a.data(this,"mediaElemSupport").noSource||r.isJMEReady()&&!r.totalerror&&(r.name!=="nativ"||a.support.mediaElements)){o=r[m].apply(r,q);return o===undefined}else{r.unAPIReady(m+"queue");r.jmeReady.call(r,function(){r[m].apply(r,q)},m+"queue")}});return o===undefined?this:o}})};var k=[];a.each(v.apis.video.nativ,function(d){k.push(d)});v.registerAPI(k);a.fn.onAPIReady=a.fn.jmeReady;a.fn.getMMAPI=a.fn.getJMEAPI;v.fn._extend=function(d,j){var m=[];a.each(d,function(q,o){v.fn[q]=o;m.push(q);
if(j)i[q]=true});v.registerAPI(m)}})(jQuery);
(function(a){function u(h,f){h=a(h);var c={},i=h.attr("data-controls");c.mm=i?a("#"+i):a("video, audio",h).filter(":first");c.api=c.mm.getJMEAPI(true)||c.mm.jmeEmbed(f.embed).getJMEAPI(true);if(!c.api)return c;if(h.is(f.controlSel))c.controls=h;if(!c.controls||c.controls.hasClass(f.classPrefix+"media-controls")){if(h[0]&&!c.api.controlWrapper&&a.contains(h[0],c.mm[0]))c.api.controlWrapper=h;c.controls=c.controls?a(f.controlSel,h).add(c.controls):a(f.controlSel,h)}return c}function v(h,f,c,i){if(!h.data("jmePlayer")){y.addStateClasses(h,
f,i.classPrefix);h.data("jmePlayer",{mediaelement:f,api:c});a.fn.videoOverlay&&h.videoOverlay({video:f,startCSS:{width:"auto",height:"auto",zIndex:99998,padding:0,margin:0,borderWidth:0},position:{bottom:0,left:0,right:0,top:0,width:0,height:0}});a.ui&&a.ui.keyCode&&h.bind("keydown",function(k){if(!k.jmeHandledEvent){k.jmeHandledEvent=true;if({40:1,37:1,39:1,38:1}[k.keyCode]){if(!a(k.target).is(".ui-slider-handle")){var d=5;switch(k.keyCode){case a.ui.keyCode.UP:if(k.ctrlKey)d+=5;f.volume(Math.min(100,
f.volume()+d));break;case a.ui.keyCode.DOWN:if(k.ctrlKey)d+=5;f.volume(Math.max(0,f.volume()-d));break;case a.ui.keyCode.LEFT:if(k.ctrlKey)d+=55;f.currentTime(Math.max(0,f.currentTime()-d));break;case a.ui.keyCode.RIGHT:if(k.ctrlKey)d+=55;f.currentTime(Math.min(f.getDuration(),f.currentTime()+d));break}k.preventDefault()}}else if(k.keyCode===a.ui.keyCode.SPACE&&(!a.nodeName(k.target,"button")&&a.attr(k.target,"role")!=="button"||h.hasClass("wraps-fullscreen"))){f.togglePlay();k.preventDefault()}}})}}
a.event.special.ariaclick||function(){var h=false,f=function(c){if(!h&&(!c.keyCode||c.keyCode===13||c.keyCode===32&&a.attr(c.target,"role")==="button")){h=true;setTimeout(function(){h=false},1);return a.event.special.ariaclick.handler.apply(this,arguments)}else if(h&&c.type=="click"){c.preventDefault();return false}};a.event.special.ariaclick={setup:function(){a(this).bind("click keydown",f);return true},teardown:function(){a(this).unbind("click keydown",f);return true},handler:function(c){c.type=
"ariaclick";return a.event.handle.apply(this,arguments)}}}();var x={},y=a.multimediaSupport;a.fn.jmeControl=function(h){function f(){var c=u(this,h);if(c.api){c.api.controls=c.api.controls||[];if(c.api){c.controls.each(function(){var i=a(this);if(a.inArray(this,c.api.controls)===-1){c.api.controls.push(this);a.each(x,function(k,d){if(i.hasClass(h.classPrefix+k)){k=a.extend(true,{},h);k[d.optionsName]=y.extendWithData(i[0],k[d.optionsName],h[d.optionsName]);d(i,c.mm,c.api,k);return false}})}});c.api.controlWrapper&&
c.api.controlWrapper[0]&&v(c.api.controlWrapper,c.mm,c.api,h)}}}h=a.extend(true,{},a.fn.jmeControl.defaults,h);h.controlSel=[];a.each(x,function(c){c!=="media-controls"&&h.controlSel.push("."+h.classPrefix+c)});h.controlSel.push("."+h.classPrefix+"media-controls");h.controlSel=h.controlSel.join(", ");return this.each(f)};a.fn.jmeControl.defaults={embed:{removeControls:true},classPrefix:"",addThemeRoller:true};a.support.waiaria=!a.browser.msie||a.browser.version>7;a.fn.jmeControl.getBtn=function(){var h=/\s*\/\s*|\s*\|\s*|\s*\,\s*/g;return function(f){var c={icon:a(".ui-icon",f),text:a(".button-text",f),title:f};if(!f.is(":button")&&!f.attr("role")){a.support.waiaria&&f.removeAttr("href");f.attr({role:"button",tabindex:0})}if(!c.icon[0]&&!c.text[0]&&!a("*",f)[0]){c.icon=f;c.text=f}c.names=c.text.text().split(h);c.titleText=(f.attr("title")||"").split(h);if(c.names.length!==2)c.text=a([]);if(c.titleText.length!==2)c.title=a([]);return c}}();y.camelCase=function(){var h=/-([a-z])/ig,f=function(c,i){return i.toUpperCase()};
return function(c){return c.replace(h,f)}}();a.fn.jmeControl.addControl=function(h,f,c,i){c=c||{};i=i||y.camelCase(h);a.fn.jmeControl.defaults[i]=c;f.optionsName=i;x[h]=f};a.fn.jmeControl.addControls=function(h){a.each(h,function(f,c){a.fn.jmeControl.addControl(c.name,c.fn,c.options,c.optionName)})};a.fn.registerMMControl=a.fn.jmeControl;a.each({"play-pause":{stateMethod:"isPlaying",actionMethod:"togglePlay",evts:"play playing pause ended loadedmeta mediareset",trueClass:"ui-icon-pause",falseClass:"ui-icon-play"},
"mute-unmute":{stateMethod:"muted",actionMethod:"toggleMuted",evts:"mute loadedmeta",trueClass:"ui-icon-volume-off",falseClass:"ui-icon-volume-on"}},function(h,f){a.fn.jmeControl.addControl(h,function(c,i,k,d){function j(q){if(h=="play-pause"&&q&&q.type=="playing"?true:i[f.stateMethod]()){m.text.text(m.names[1]);m.title.attr("title",m.titleText[1]);m.icon.addClass(f.trueClass).removeClass(f.falseClass)}else{m.text.text(m.names[0]);m.title.attr("title",m.titleText[0]);m.icon.addClass(f.falseClass).removeClass(f.trueClass)}}
var m=a.fn.jmeControl.getBtn(c);d.addThemeRoller&&c.addClass("ui-state-default ui-corner-all");j();i.bind(f.evts,j).jmeReady(j);c.bind("ariaclick",function(q){i[f.actionMethod]();q.preventDefault()})})});a.each(["current-time","remaining-time"],function(h,f){a.fn.jmeControl.addControl(f,function(c,i,k,d){var j=f=="remaining-time"?function(q,o){c.html(k.apis[k.name]._format(m-o.time))}:function(q,o){c.html(k.apis[k.name]._format(o.time))},m=Number.MIN_VALUE;d.addThemeRoller&&c.addClass("ui-widget-content ui-corner-all");
c.html("00:00").attr("role","timer");f=="remaining-time"&&i.bind("loadedmeta",function(q,o){m=o.duration||Number.MIN_VALUE;j(false,{time:0})});i.bind("timechange",j).bind("mediareset",function(){c.html("00:00")})})});a.fn.jmeControl.addControls([{name:"duration",fn:function(h,f,c,i){i.addThemeRoller&&h.addClass("ui-widget-content ui-corner-all");h.html("00:00");f.bind("loadedmeta",function(k,d){h.html(c.apis[c.name]._format(d.duration))}).bind("mediareset",function(){h.html("00:00")})}},{name:"media-controls",
options:{dynamicTimeslider:false,timeSliderAdjust:0,excludeSel:false,fullWindowOverlay:false},fn:function(h,f,c,i){function k(){var m=h.width()+i.mediaControls.timeSliderAdjust,q=d.outerWidth(true)-d.innerWidth();a("> *",h).each(function(){if(d[0]!==this&&this.offsetWidth&&a.curCSS(this,"position")!=="absolute"&&(!i.excludeSel||!a(this).is(i.excludeSel)))q+=a(this).outerWidth(true)});d.css("width",m-q)}i.addThemeRoller&&h.addClass("ui-widget ui-widget-header ui-corner-all");h.attr("role","toolbar");
if(i.mediaControls.dynamicTimeslider){var d=a("."+i.classPrefix+"timeline-slider",h),j=setTimeout(k,0);f.jmeReady(function(){clearInterval(j);setTimeout(k,0)});a(window).bind("resize",k);f.bind("resize emchange",k)}i.mediaControls.fullWindowOverlay&&a.fn.videoOverlay&&h.videoOverlay({fullscreenClass:i.classPrefix+"controls-fullscreenvideo",video:f,startCSS:{width:"auto"},position:{bottom:0,left:0,right:0}})}},{name:"media-label",fn:function(){var h=0;return function(f,c,i,k){if(!(!i.controlWrapper||
i.controlWrapper.attr("role"))){c=f.attr("id");var d=a("."+k.classPrefix+"media-name",f);if(!c){h++;c=k.classPrefix+"media-label-"+h;f.attr("id",c)}i.mediaName=d[0]?d:f;i.controlWrapper.attr({role:"group","aria-labelledby":c})}}}()},{name:"fallback",fn:function(h,f,c,i){if(!(i.embed.showFallback||!a.support.mediaElements)){var k=h.clone(true);f.bind("totalerror",function(){f.after(k).hide();a(this).one("mediareset",function(){f.show();k.detach()})})}}},{name:"media-state",options:{click:"togglePlay"},
fn:function(h,f,c,i){y.addStateClasses(h,f,i.classPrefix);i.mediaState.click&&f[i.mediaState.click]&&h.click(function(){f[i.mediaState.click]()})}}]);y.addStateClasses=function(h,f,c){c=c||"";var i=c+"playing "+c+"totalerror "+c+"waiting "+c+"idle "+c+"flashblocker",k=function(){h.removeClass(i)};f.jmeReady(function(){var d=f.isPlaying();if(typeof d==="boolean")h.addClass(c+d?"idle":"playing")});h.addClass(c+f.getMediaAPI());f.bind({apiActivated:function(d,j){h.addClass(c+j.api)},apiDeActivated:function(d,
j){h.removeClass(c+j.api)}}).bind("playing totalerror waiting flashblocker",function(d){k();h.addClass(c+d.type)}).bind("play",function(){h.removeClass(c+"idle")}).bind("pause ended mediareset",function(){k();h.addClass(c+"idle")}).bind("canplay",function(){h.removeClass(c+"waiting")})};(function(){var h=a.fn.a11ySlider?"a11ySlider":"slider",f={range:false,animate:false};a(function(){h=a.fn.a11ySlider?"a11ySlider":"slider"});a.fn.jmeControl.addControls([{name:"timeline-slider",optionName:"timeSlider",
options:f,fn:function(c,i,k,d){var j=false,m=function(){if(k.apis[k.name].loadedmeta&&k.apis[k.name].loadedmeta.duration){c[h]("option","step",100/Math.max(100,c[0].offsetWidth));c[h]("option","disabled",false)}else c[h]("option","disabled",true)};c[h](d.timeSlider)[h]("option","disabled",true);a(window).bind("resize",m);a(document).bind("emchange",m);i.bind("loadedmeta resize",m).bind("timechange",function(q,o){parseInt(o.timeProgress,10);o.timeProgress!==undefined&&!j&&c[h]("value",o.timeProgress)}).bind("mediareset",
function(){c[h]("value",0);m()}).bind("ended",function(){c[h]("value",100)});c.bind("slidestart",function(q){if(q.originalEvent)j=true}).bind("slidestop",function(){j=false}).bind("slide",function(q,o){q.originalEvent&&k.apis[k.name].isAPIReady&&k.apis[k.name].relCurrentTime(o.value)})}},{name:"volume-slider",options:a.extend({mutestate:false},f),fn:function(c,i,k,d){function j(q,o){m||(q.type=="volumelevelchange"?c[h]("value",o.volumelevel):c[h]("value",i.muted()?0:i.volume()))}var m=false;c[h](d.volumeSlider)[h]("option",
"disabled",true);c.bind("slidestart",function(q){if(q.originalEvent)m=true}).bind("slidestop",function(){m=false}).bind("slide",function(q,o){if(q.originalEvent&&k.apis[k.name].isAPIReady){k.apis[k.name].volume(o.value);d.volumeSlider.mutestate&&k.apis[k.name].muted()&&k.apis[k.name].muted(false)}});i.bind("volumelevelchange loadedmeta",j).jmeReady(function(){c[h]("option","disabled",false);j({type:"ready"})});d.volumeSlider.mutestate&&i.bind("mute",j)}},{name:"progressbar",fn:function(c,i,k,d){function j(q,
o){"relLoaded"in o?c.progressbar("option","disabled",false).progressbar("value",o.relLoaded):c.progressbar("option","disabled",true)}function m(){c.progressbar("option","disabled",true).progressbar("value",0)}c.progressbar(d.progressbar).progressbar("option","disabled",true);i.bind("progresschange",j).bind("mediareset",m)}}])})()})(jQuery);
(function(a){var u={type:"application/x-shockwave-flash"},v={classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},x=a.multimediaSupport;a.extend(a.fn.jmeEmbed.defaults,{jwPlayer:{path:x.jsPath+"player.swf",hideIcons:"auto",vars:{},attrs:{},plugins:{},params:{allowscriptaccess:"always",allowfullscreen:"true"}}});a(function(){var i=(a("script.jwPlayer")[0]||{}).src;if(i)a.fn.jmeEmbed.defaults.jwPlayer.path=i});var y={A:/&amp;/g,a:/&/g,e:/\=/g,q:/\?/g},h={audio:"sound",video:"video"},f=function(i){return i.replace?
i.replace(y.A,"%26").replace(y.a,"%26").replace(y.e,"%3D").replace(y.q,"%3F"):i};(function(){a.support.flash9=false;a.support.flashVersion=0;var i=x.getPluginVersion("Shockwave Flash"),k=function(j){a.support.flash9=false;try{if(j&&typeof j.GetVariable!=="undefined"){var m=j.GetVariable("$version");j=x.getPluginVersion("",{description:m});a.support.flashVersion=j[0];a.support.flash9=!!(j[0]>9||j[0]===9&&j[1]>=115)}}catch(q){}};if(i&&i[0])a.support.flashVersion=i[0];if(i[0]>9||i[0]===9&&i[1]>=115){a.support.flash9=
true;a(function(){i=a("<object />",u).appendTo("body");k(i[0]);i.remove()})}else if(window.ActiveXObject)try{i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");k(i);i=null}catch(d){}})();var c={isTechAvailable:function(){return a.support.flash9},_extendJWLoad:function(i,k,d){if(i){d=d||this.element;x.extendWithData(d,k,["type","provider","stretching","bufferlength"]);if(!this.canPlaySrc(i)){if(!k.provider)k.provider=h[this.nodeName];if(!k.type)k.type=h[this.nodeName]}return k}},_embed:function(i,
k,d,j){var m=this.embedOpts.jwPlayer,q=a.extend({},m.vars,{file:i,id:k}),o=a.extend({name:k},m.attrs,u,!window.ActiveXObject?{data:m.path}:{}),r=a.extend({movie:m.path},m.params),w=[],B=this;this._extendJWLoad(i,q);if(d.poster)q.image=d.poster;q.autostart=""+d.autoplay;q.repeat=d.loop?"single":"false";q.controlbar=d.controls?"bottom":"none";if(!d.controls&&this.nodeName!=="audio"&&r.wmode===undefined)r.wmode="transparent";if(!d.controls&&m.hideIcons&&r.wmode==="transparent"||m.hideIcons===true){q.icons=
"false";q.showicons="false"}if(r.wmode==="transparent"&&!q.screencolor&&!o.bgcolor){q.screencolor="ffffffff";o.bgcolor="#000000"}r.flashvars=[];a.each(q,function(A,z){r.flashvars.push(f(A)+"="+f(z))});a.each(m.plugins,function(A,z){w.push(z)});w.length&&r.flashvars.push("plugins="+w.join(","));r.flashvars=r.flashvars.join("&");j(x.embedObject(this.visualElem[0],k,o,r,v,"Shockwave Flash"));setTimeout(function(){var A=a("object",B.visualElem)[0];if(!A||A.style.display==="none"&&a("> *",B.visualElem).length>
1){a("div[bgactive]",B.visualElem).css({width:"100%",height:"100%"});B._trigger("flashblocker")}},9)},canPlaySrc:function(i){var k=x.fn.canPlaySrc.apply(this,arguments),d=-1;d=i.src||i;if(!k&&typeof d==="string"){d=d.indexOf("youtube.com/");if(d<15&&d>6)k="maybe"}return k},canPlayCodecs:["avc1.42E01E","mp4a.40.2","avc1.58A01E","avc1.4D401E","avc1.64001E","VP6","mp3","AAC"],canPlayContainer:["video/3gpp","video/x-msvideo","video/quicktime","video/x-m4v","video/mp4","video/m4p","video/x-flv","video/flv",
"audio/mpeg","audio/mp3","audio/x-fla","audio/fla","youtube/flv","jwplayer/jwplayer"]};x.add("jwPlayer","video",c);x.add("jwPlayer","audio",c)})(jQuery);
(function(a){function u(f){if(f){f=f.replace(y,"");return a.data(v.getElementById(f),"mediaElemSupport").apis.jwPlayer}}var v=document,x=a.multimediaSupport,y=/^jwPlayer-/;window.jwEvents={View:{PLAY:function(f){if(f=f.state&&u(f.id)){f._trigger("play");f._$isPlaystate=true}}},Model:{BUFFER:function(f){var c=u(f.id);if(c){if(c._$timeProgress&&f.percentage+c._$startBuffer+1<c._$timeProgress)c._$startBuffer=c._$timeProgress;f={type:"progresschange",relLoaded:f.percentage+c._$startBuffer,relStart:0};
c._$buffered=f.relLoaded;c._trigger(f)}},STATE:function(f){if(privJwEvents.Model.STATE(f)==="playing")if(f=u(f.id)){f._trigger("playing");f._$isPlaystate=true}},META:function(f){if(f.type==="metadata"){var c=u(f.id);c&&c._trigger({type:"loadedmeta",duration:f.duration})}},TIME:function(f){var c=u(f.id),i={type:"timechange",time:f.position};if(c){c.loadedmeta||c._trigger({type:"loadedmeta",duration:f.duration});c._$currentPos=f.position;if(f.duration){i.duration=f.duration;i.timeProgress=f.position/
f.duration*100;c._$timeProgress=i.timeProgress}c._trigger(i)}},STATE:function(f){if(f.newstate==="IDLE")return false;var c=u(f.id),i;if(!c)return false;switch(f.newstate){case "PLAYING":i="playing";break;case "PAUSED":c._$isPlaystate=false;i="pause";break;case "COMPLETED":c._$isPlaystate=false;i="ended";c._adjustPluginLoop(c.apiElem.getConfig().repeat=="single");break;case "BUFFERING":i="waiting";break}i&&c._trigger(i);return i}},Controller:{VOLUME:function(f){var c=u(f.id);!c||c._$lastMuteState!==
c.muted()||c._trigger({type:"volumelevelchange",volumelevel:f.percentage})},MUTE:function(f){var c=u(f.id);if(c){c._$lastMuteState=f.state;c._trigger({type:"mute",isMuted:f.state})}}}};window.playerReady=function(f){var c=u(f.id);if(c){if(c.isAPIReady){if(c.apiElem.sendEvent)setTimeout(function(){c._lastLoad&&c._mmload(c._lastLoad.file,c._lastLoad.image);if(c._$isPlaystate&&!(c.apiElem.getConfig()||{}).autostart)c.play()},8);else{c._$reInit();return}setTimeout(function(){c._trigger("jmeflashRefresh")},
8)}else if(!c.apiElem.sendEvent){c._$reInit();return}a.each(jwEvents,function(i,k){a.each(k,function(d){c.apiElem["add"+i+"Listener"](d,"jwEvents."+i+"."+d)})});setTimeout(function(){c._$lastMuteState=c.muted();var i=a.attr(c.element,"getConfig");c._trigger("mmAPIReady");if(!i.autoplay&&!c._$isPlaystate&&(c.apiElem.getConfig()||{}).state==="IDLE")if(c.nodeName==="audio"&&i.preload==="auto"){c.apiElem.sendEvent("PLAY","true");c.apiElem.sendEvent("PLAY","false")}else if(c.nodeName==="video"&&i.preload!==
"none"&&!i.poster){c.apiElem.sendEvent("PLAY","true");c.apiElem.sendEvent("PLAY","false");c.currentTime(0)}},9)}};var h={_init:function(){this._$resetStates()},_$resetStates:function(){this._$currentPos=this._$timeProgress=this._$startBuffer=this._$buffered=0},_$reInitCount:0,_$reInitTimer:false,_$reInit:function(){var f=this;if(this._$reInitCount<5){this.visualElem[0].style.overflow="visible";setTimeout(function(){f.visualElem[0].style.overflow="hidden"},0)}this._$reInitCount++;this._$resetStates();
if(!this._$reInitTimer){this._$reInitTimer=true;setTimeout(function(){f._$reInitCount=0;f._$reInitTimer=false},2E4)}},play:function(){this.apiElem.sendEvent("PLAY","true");this._$isPlaystate=true;this._trigger("play")},pause:function(){this.apiElem.sendEvent("PLAY","false")},_isPlaying:function(){var f=this.apiElem.getConfig();return f?f.state==="PLAYING":undefined},_mmload:function(f,c,i){var k=this._isPlaying();this._lastLoad={file:f};if(c)this._lastLoad.image=c;this._$resetStates();this._extendJWLoad(f,
this._lastLoad);typeof i=="object"&&a.extend(this._lastLoad,i);if(this.apiElem.sendEvent){this.apiElem.sendEvent("LOAD",this._lastLoad);this.isAPIActive&&(a.attr(this.element,"autoplay")||k)?this.apiElem.sendEvent("PLAY","true"):this.apiElem.sendEvent("PLAY","false")}},muted:function(f){if(typeof f!=="boolean")return(this.apiElem.getConfig()||{}).mute;this.apiElem.sendEvent("mute",f?"true":false)},currentTime:function(f){if(!isFinite(f))return this._$currentPos||0;this._$currentPos=f;var c=this._isPlaying();
this.apiElem.sendEvent("SEEK",f);c||this.pause();this._trigger({type:"timechange",time:f})},getDuration:function(){var f=this.apiElem.getPlaylist()[0].duration||0;return f<0?0:f},volume:function(f){if(!isFinite(f))return parseInt(this.apiElem.getConfig().volume,10);var c=this.muted();this.apiElem.sendEvent("VOLUME",""+f);c&&this.apiElem.sendEvent("mute","true")},getCurrentSrc:function(){return(this.apiElem.getConfig()||{}).file||""}};a.extend(h,{isJMEReady:function(){var f=false;if(this.isAPIReady&&
this.apiElem.sendEvent&&this.apiElem.getConfig){a.browser.mozilla&&this.apiElem.getConfig();f=true}return f}});x.add("jwPlayer","video",a.extend({},h,{exitFullScreen:function(){if(this.apiElem.jmeExitFullScreen)try{this.apiElem.jmeExitFullScreen();return true}catch(f){}return false}}));x.add("jwPlayer","audio",h)})(jQuery);


//plugins/fullwindow
;(function($){$.support.cssPointerEvents=('pointerEvents'in $('<div />')[0].style);$.support.getBoundingClientRect=('getBoundingClientRect'in $('<div />')[0]);var g={relative:1,absolute:1},getPosedAncestors=function(a){var b=[],bodyReg=/^body|html$/i;if(a.jquery){a=a[0]}a=a.parentNode;while(a&&!bodyReg.test(a.nodeName)){if(g[$.curCSS(a,'position')]){b.push(a)}a=a.parentNode}return $(b)};var h=/zIndex/;$.fn.storeInlineStyle=function(d,e){if(!d&&!e){e='storedInlineStyle'}else if(typeof d==='string'){e=d;d=false}else{e=e||'storedInlineStyle'}return this.each(function(){var c=$.data(this,e)||$.data(this,e,{}),elemS=this.style,elem=this;if(!d){if(!c){return}$(this).css(c);$.data(this,e,{})}else{$.each(d,function(a,b){c[a]=elemS[a];if(a==='zIndex'&&c[a]!==''&&!$.support.style&&!h.test(elem.style.cssText)){c[a]=''}});$(this).css(d)}})};var j={position:'fixed',zIndex:99999,width:'auto',height:'auto'},parentsCss={position:'static'},bodyCSS={overflow:'hidden'},win=$(window),doc=$(document),doSize=function(a,b,c){var d={};d[c[0]]=b[c[0]];d[c[1]]=b[c[0]]*c[2];d.bottom=(a.height/2)-(d.height/2);d.top=d.bottom;d.left=(a.width/2)-(d.width/2);d.right=d.left;return d},getSize=function(a,b,c){var d=win.width(),height=win.height();var e={width:win.width(),height:win.height()},max={width:b?Math.min(e.width,b):e.width,height:c?Math.min(e.height,c):e.height};return doSize(e,max,(max.width/max.height>a)?['height','width',a]:['width','height',1/a])},supportsFullWindow;$.each(['Top','Left','Right','Bottom'],function(i,a){j['padding'+a]=0;j['margin'+a]=0;j['border'+a+'Width']=0});var k=(function(){var c=/transparent|rgba\(0, 0, 0, 0\)/,overlay=$('<div class="fullwindow-overlay" />').css({position:'fixed',display:'none',right:0,bottom:0,top:0,left:0,zIndex:99990}),isVisible,timer;win.bind('resize',function(){if(isVisible){clearTimeout(timer);timer=setTimeout(function(){overlay.css({top:-1,left:-1,right:-1,bottom:-1});setTimeout(function(){overlay.css({top:0,left:0,right:0,bottom:0})},1)},100)}});var d={show:function(a){if(!overlay||isVisible){return}var b=overlay.css('backgroundColor'),bgImg=overlay.css('backgroundImage');if((!b||c.test(b))&&(!bgImg||bgImg=='none')){overlay.css('backgroundColor','#000')}overlay.insertAfter(a).show();isVisible=true},hide:function(){if(!overlay||!isVisible){return}overlay.hide().css('backgroundColor','').detach();isVisible=false}};return d})();$(function(){var a=$('<div style="visibility: hidden; postion: absolute; top: 0; left: 10px; padding: 10px;"><div style="position: fixed; top: 0;left: 0;" /></div>').appendTo('body');supportsFullWindow=!($('div',a).offset().left);a.remove()});var l={position:'fixed',zIndex:999996};$.fn.videoOverlay=function(o){o=$.extend(true,{},$.fn.videoOverlay.defaults,o);if(!o.video){return this}o.video=$(o.video);var d=$.extend({},l,o.startCSS),dynPos=o.position;if(!$.isFunction(o.position)){$.each(o.position,function(a,b){d[a]=b});o.position=function(a){var b={};for(var c in dynPos){b[c]=a[c]}return b}}return this.each(function(){var b=$(this);o.video.bind({fullwindow:function(e,a){if(!a.isFullwindow){b.storeInlineStyle('fsstoredOverlay').removeClass(o.fullscreenClass)}else{b.storeInlineStyle(d,'fsstoredOverlay').addClass(o.fullscreenClass)}},fullwindowresize:function(e,a){b.css(o.position(a))}})})};$.fn.videoOverlay.defaults={video:false,fullscreenClass:'videooverlay-infullscreen',startCSS:{},position:{}};$.multimediaSupport.fn._extend({supportsFullWindow:function(){return supportsFullWindow},enterFullWindow:function(a,b){if(this.visualElem.hasClass('displays-fullscreen')||!supportsFullWindow){return}var c=$.data(this.element,'mediaElemSupport'),that=this,curDim={width:this.visualElem.width(),height:this.visualElem.height()},rel=curDim.width/curDim.height,wrapper=(c.controlWrapper&&c.controlWrapper[0])?c.controlWrapper:this.visualElem,vidCss,videoCSS;c._$fullwindowScrollPosition={top:win.scrollTop(),left:win.scrollLeft()};this._posedAncestors=getPosedAncestors(wrapper[0]).storeInlineStyle(parentsCss,'fsstoredZindexInlineStyle');$('html, body').addClass('contains-fullscreenvideo').storeInlineStyle(bodyCSS,'fsstoredInlineStyle');if(c.controlWrapper&&c.controlWrapper[0]){c.controlWrapper.addClass('wraps-fullscreen')}k.show(wrapper);vidCss=getSize(rel,a,b);videoCSS=$.extend({},j,vidCss);this.visualElem.addClass('displays-fullscreen').storeInlineStyle(videoCSS,'fsstoredInlineStyle');doc.bind('keydown.jmefullscreen',function(e){if(e.keyCode===27){that.exitFullWindow()}});setTimeout(function(){win.bind('resize.jmefullscreen',function(){vidCss=getSize(rel,a,b);that.visualElem.css(vidCss);$(that.element).triggerHandler('fullwindowresize',vidCss);$(that.element).triggerHandler('resize')});$(that.element).triggerHandler('fullwindowresize',vidCss)},0);$(this.element).addClass('displays-fullscreen');this._trigger({type:'fullwindow',isFullwindow:true,bbox:vidCss});$(this.element).triggerHandler('fullwindowresize',vidCss);$(this.element).triggerHandler('resize')},exitFullWindow:function(){if(!this.visualElem.hasClass('displays-fullscreen')||!supportsFullWindow){return}var a=$.data(this.element,'mediaElemSupport'),that=this,ancestors;if(this._posedAncestors){this._posedAncestors.storeInlineStyle('fsstoredZindexInlineStyle')}$('html, body').css({overflow:'auto'}).storeInlineStyle('fsstoredInlineStyle').removeClass('contains-fullscreenvideo');this.visualElem.storeInlineStyle('fsstoredInlineStyle').removeClass('displays-fullscreen');if(a.controlWrapper){a.controlWrapper.removeClass('wraps-fullscreen')}k.hide();win.unbind('.jmefullscreen');doc.unbind('.jmefullscreen');$(this.element).removeClass('displays-fullscreen').unbind('.jmefullscreen');this._trigger({type:'fullwindow',isFullwindow:false});$(this.element).triggerHandler('resize');if(a._$fullwindowScrollPosition){win.scrollTop(a._$fullwindowScrollPosition.top);win.scrollLeft(a._$fullwindowScrollPosition.left);a._$fullwindowScrollPosition=false}}},true);if($.fn.jmeControl){var m=$.fn.jmeEmbed.defaults.jwPlayer&&$.support.getBoundingClientRect&&$.support.cssPointerEvents;if($.fn.jmeEmbed.defaults.jwPlayer){$.fn.jmeEmbed.defaults.jwPlayer.plugins.jmefs=$.multimediaSupport.jsPath+'jmefs.swf';$(function(){var a=($('script.jme-jwPlayer')[0]||{}).src;if(a){$.fn.jmeEmbed.defaults.jwPlayer.plugins.jmefs=a}})}var n=0,jmefsButton={create:function(b,c,d,o){if(!m||!d.controlWrapper||!$.contains(d.controlWrapper[0],b[0])){return}var f=this,initActive=function(){f.jwPlayer=d.apis.jwPlayer;f.activate()},activate=function(){c.jmeReady(initActive).one('jmeflashRefresh',initActive)};this.control=b;if(!this.control.attr('id')){n++;this.control.attr('id','fs-btn-'+n)}this.wrapper=d.controlWrapper;this.video=c;this.data=d;c.bind('apiActivated',function(e,a){if(a.api==='jwPlayer'){activate()}}).bind('apiDeActivated',function(e,a){if(a.api==='jwPlayer'){f.deactivate()}});if(d.name==='jwPlayer'){activate()}},activate:function(){if(!this.jwPlayer.apiElem.jmefsSetButtonCursor||this.activated||this.data.name!='jwPlayer'){return}this.activated=true;var a=this,rePos=function(){if(a.timer){clearTimeout(a.timer)}a.timer=setTimeout(function(){a.setPos()},30)};this.jwPlayer.apiElem.jmefsSetButtonCursor(true);this.control.addClass('jme-flashbutton');this.wrapper.addClass('jme-flashbutton-wrapper');if(!this.setBtnCallback){this.jwPlayer.apiElem.jmefsSetButtonCallback('$.fn.jmeControl.defaults.fullscreen.jmeBtn',this.video.attr('id'),this.control.attr('id'));this.setBtnCallback=true}this.video.bind('resize.jmeFSBtn',rePos);this.wrapper.bind('DOMSubtreeModified.jmeFSBtn',rePos);this.setPos()},deactivate:function(){this.activated=false;this.control.removeClass('jme-flashbutton');this.wrapper.removeClass('jme-flashbutton-wrapper').unbind('DOMSubtreeModified.jmeFSBtn');this.video.unbind('resize.jmeFSBtn');if(this.timer){clearTimeout(this.timer)}if(this.jwPlayer&&this.jwPlayer.apiElem&&this.jwPlayer.apiElem.jmefsSetButtonSize){this.jwPlayer.apiElem.jmefsSetButtonSize(0,0);this.jwPlayer.apiElem.jmefsSetButtonPosition(-1,-1)}},setPos:function(){if(!this.jwPlayer.isAPIReady||!this.jwPlayer.apiElem.jmefsSetButtonPosition){return}var a=this.jwPlayer.apiElem.getBoundingClientRect(),btnBBox=this.control[0].getBoundingClientRect();this.jwPlayer.apiElem.jmefsSetButtonPosition(btnBBox.left-a.left,btnBBox.top-a.top);this.jwPlayer.apiElem.jmefsSetButtonSize(btnBBox.width,btnBBox.height)}};$.fn.jmeControl.addControl('video-box',function(a,b,c,o){a.videoOverlay({video:b,startCSS:{width:'auto',height:'auto',zIndex:99998},position:{bottom:0,left:0,right:0,top:0,wdith:0,height:0}})});$.fn.jmeControl.addControl('fullscreen',function(b,c,d,o){if(!supportsFullWindow&&!c.supportsFullScreen()){b.addClass('fullscreen-unsupported ui-disabled');if(d.controlWrapper){d.controlWrapper.addClass('fullscreen-unsupported')}return}var e=$.fn.jmeControl.getBtn(b),changeState=function(){if(c.hasClass('displays-fullscreen')){e.text.text(e.names[1]);e.title.attr('title',e.titleText[1]);e.icon.addClass('ui-icon-circle-zoomout').removeClass('ui-icon-circle-zoomin')}else{e.text.text(e.names[0]);e.title.attr('title',e.titleText[0]);e.icon.addClass('ui-icon-circle-zoomin').removeClass('ui-icon-circle-zoomout')}};if(o.addThemeRoller){b.addClass('ui-state-default ui-corner-all')}if(o.fullscreen.tryFullScreen){$.multimediaSupport.beget(jmefsButton).create(b,c,d,o)}b.bind('ariaclick',function(){var a=c.hasClass('displays-fullscreen');if(!a){c.play()}if(o.fullscreen.tryFullScreen&&!a&&c.supportsFullScreen()&&c.enterFullScreen()){return}if(a){c.exitFullWindow()}else{c.enterFullWindow(o.fullscreen['max-width'],o.fullscreen['max-height'])}return false});changeState();c.bind('fullwindow',changeState)},{tryFullScreen:true,'max-width':false,'max-height':false,jmeBtn:function(a,b,c){if(a==='resize'){$(document.getElementById(b)).triggerHandler('resize')}else{$(document.getElementById(c))[(a==='jmefsButtonOver')?'addClass':'removeClass']('jme-over ui-state-over')}}})}})(jQuery);
//utils/a11y-slider.ext
;(function($){var d=$.ui.slider.prototype,uID=0,min=function(i,a){return(a==='0px')?'1px':a},inline=function(i,a){return(a==='inline')?'inline-block':a};$.support.valueText=(!$.browser.msie||parseInt($.browser.version,10)>8);$.widget('ui.a11ySlider',$.ui.slider,{options:{textValue:'{value} %',roundValue:true},widgetEventPrefix:"slide",_create:function(){var o=this.options,that=this;this.element.attr('role','application').bind('slidechange',$.proxy(this,'_updateA11yValues'));d._create.apply(this,arguments);this.handles.removeAttr('href').attr({tabindex:'0',role:'slider','aria-valuemin':this._valueMax(),'aria-valuemax':this._valueMin()}).css({display:inline,minHeight:min,minWidth:min}).each(function(i){that._updateA11yValues(i,{value:that.values(i),handle:this})});$('.handle-label',this.element).hide().each(function(i){var a=this.id;if(!a){uID++;a='slider-label-'+uID;this.id=a}that.handles.filter(':eq('+i+')').attr('aria-labelledby',a)})},_setOption:function(a,b){d._setOption.apply(this,arguments);if(a==="disabled"){this.handles.attr({'aria-disabled':String(b),tabindex:(b)?'-1':'0'})}return this},_updateA11yValues:function(i,a){var b=this,o=this.options;if(!a){a={handle:this.handles.get(i),value:this.values(i)}}var c=$(a.handle),now=a.value,textValue;if(o.roundValue&&isFinite(now)){now=Math.round(now*100)/100}if($.isFunction(o.textValue)){textValue=o.textValue(now,i,c)}else{textValue=$.isArray(o.textValue)?o.textValue[i]:o.textValue;textValue=textValue.replace('{value}',now)}c.attr({'aria-valuenow':($.support.valueText)?now:textValue,'aria-valuetext':textValue})}})})(jQuery);
//utils/useractivity
;(function($){if(!$.support.opacity&&!$.opacityRemoveFix){var f=$.style;$.style=function(a,b,c){var d=f(a,b,c);if(b==='opacity'&&c==1){a.style.filter=(a.style.filter||'').replace('alpha(opacity=100)','')}return d};$.opacityRemoveFix=true}var g={add:function(a,b,c){var d=$.data(a,'jmeuseractivity')||$.data(a,'jmeuseractivity',{idletime:2500,idle:true,trigger:{}}),jElm=$(a),setInactive=function(){if(!d.idle){d.idle=true;if(d.trigger.userinactive){jElm.trigger('userinactive')}}},setActive=function(e){if(!e||(e.type==='mousemove'&&e.pageX===x&&e.pageY===y)){return}if(e.type==='mousemove'){x=e.pageX;y=e.pageY}if(d.idleTimer){clearTimeout(d.idleTimer)}d.idleTimer=setTimeout(setInactive,d.idletime);if(d.idle){d.idle=false;if(d.trigger.useractive){jElm.trigger('useractive')}}},x,y;d.idletime=(b||{}).idletime||d.idletime;if(b&&'idle'in b){d.idle=b.idle}d.trigger[c]=true;if(!d.bound){jElm.bind('mouseleave.jmeuseractivity',setInactive).bind('mousemove.jmeuseractivity focusin.jmeuseractivity mouseenter.jmeuseractivity keydown.jmeuseractivity keyup.jmeuseractivity mousedown.jmeuseractivity',setActive);d.bound=true}if(!d.idle){setActive({type:'initunidled'})}},remove:function(a,b){var c=$.data(a,'jmeuseractivity')||$.data(a,'jmeuseractivity',{idletime:2500,idle:true,trigger:{}});c.trigger[b]=false;if(!c.trigger.useractive&&!c.trigger.userinactive){$(a).unbind('.jmeuseractivity');c.bound=false}}};$.each(['useractive','userinactive'],function(i,b){$.event.special[b]={setup:function(a){g.add(this,a,b)},teardown:function(){g.remove(this,b)}}})})(jQuery);
//ui.a11y.ext
;(function($){try{if(!window.console){window.console={}}if(!console.log){console.log=function(){}}}catch(e){}if(document.execCommand){try{document.execCommand('BackgroundImageCache',false,true)}catch(e){}}if(!$.support.opacity&&!$.opacityRemoveFix){var g=$.style;$.style=function(a,b,c){var d=g(a,b,c);if(b==='opacity'&&c==1){a.style.filter=(a.style.filter||'').replace('alpha(opacity=100)','')}return d};$.opacityRemoveFix=true}$.beget=function(o,a){var f=function(){};o=new f();if(o.create&&o.create.apply){o.create.call(o,a||{})}return o};var h=['h1','h2','h3','h4','h5','h6','video','audio','a','p','li','dt','dd','blockquote','address','th','td','dfn'],exp=$.expr.filters;exp.focusPoint=function(a){var b=a.nodeName.toLowerCase();return((!a.disabled&&a.type!=='hidden'&&a.getAttribute('role')!=='presentation'&&a.getAttribute('aria-disabled')!=='true')&&(a.offsetWidth>0&&a.offsetHeight>0&&$.curCSS(a,'visibility')!=='hidden')&&($.inArray(b,h)!==-1))};exp.focusAble=function(i,a){return($.attr(a,'tabindex')!==undefined)};$.fn.firstExpOf=function(a){if(!this[0]){return this.pushStack([])}var b=$('*',this[0]),len=b.length,ret=[];for(var i=0;i<len;i++){if(exp[a](b[i],i)){ret=[b[i]];break}}return this.pushStack(ret)};var j=location.href.split('#')[0];$.fn.getHrefHash=function(a){var b='';if(this[0]){b=this[0].hash||this[0].href.replace(j,'')}return b};$('html').addClass('js-on');var k,bodyStyle;$.SCROLLBARWIDTH=15;var l=function(){k=$(document.body);bodyStyle=k[0].style;var a=$('<div style="position: absolute; visibility: hidden; width: 80px; overflow: scroll;height: 80px;"><div style="width: 99px; height: 99px;" /></div>').appendTo('body');$.SCROLLBARWIDTH=a.innerWidth()-$('div',a).css('width','auto').innerWidth();a.remove();a=null;k.removeClass('js-off')};if(!document.body||!document.body.style){$(l)}else{l()}$.each(['outerHeight','outerWidth','height','width','innerHeight','innerWidth'],function(i,c){$.fn[c+'s']=function(a){if((c==='height'||c==='width')&&a!==undefined){return $.fn[c].apply(this,arguments)}var b=0;this.each(function(){b+=$(this)[c](a)});return b}})})(jQuery);(function($){var f=true;function stopFocus(){f=false;setTimeout(function(){f=true},1)}function testDomTarget(e){var a=e.originalEvent;if(e.target===document||e.target===window||$.nodeName(e.target,'body')||$.nodeName(e.target,'html')||$.attr(e.target,'tabindex')===undefined){stopFocus();return false}if(a){if(f&&e.target&&e.target.nodeType===1&&(a.explicitOriginalTarget&&a.explicitOriginalTarget&&a.explicitOriginalTarget!==window&&a.explicitOriginalTarget!==document&&!$(a.explicitOriginalTarget).is('html, body')||a.toElement||a.fromElement)){return true}else{return false}}return true}$.each(['focusin','focusout'],function(i,a){$.event.special['dom'+a]={setup:function(){$(this).bind(a,$.event.special['dom'+a].handler);return true},teardown:function(){$(this).unbind(a,$.event.special['dom'+a].handler);return true},handler:function(e){if(testDomTarget(e)){e=$.extend({},e,{type:'dom'+a});return $.event.handle.call(this,e)}return undefined}}});var g=window.clearInterval,setInterval=window.setInterval,setTimeout=window.setTimeout;$.createTimer=function(d){function clear(a){if(d[a]!==undefined){g(d[a])}}return{setInterval:function(a,b,c){clear(a);d[a]=setInterval(function(){b.call(d)},c)},setDelay:function(a,b,c){clear(a);d[a]=setTimeout(function(){b.call(d)},c)},clear:clear}}})(jQuery);(function($){var h='position: absolute; width: 1px; height: 1px; overflow: hidden;margin: 0; padding: 0;top: 0;',offsetDir=($('html').attr('dir')==='rtl')?'right: -9999em;':'left: -99999em;',offsetCSS=h+offsetDir,version=parseInt($.browser.version,10);$.support.waiAria=(!$.browser.msie||version>7);$.notIE6=(!$.browser.msie||version>6);$.browser.lteIE6=($.browser.msie&&version<7);$.browser.lteIE7=($.browser.msie&&version<8);$.browser.lteIE8=($.browser.msie&&version<9);$(function(){var c=document.createElement('style'),styleS;c.setAttribute('type','text/css');c=$(c).prependTo('head');styleS=document.styleSheets[0];function add(a,b){if(styleS.cssRules||styleS.rules){if(styleS.insertRule){styleS.insertRule(a+' {'+b+';}',styleS.cssRules.length)}else if(styleS.addRule){styleS.addRule(a,b)}}}add('.a11y-js-overflow','overflow:visible !important');add('.a11y-hidden','position:absolute');add('.a11y-hidden',offsetDir.replace(';',''));$.cssRule={add:add}});$.ui=$.ui||{};if(!$.ui.keyCode){$.ui.keyCode={DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}}$.ui.userMode=(function(){var c,timer,testDiv;function testBg(){testDiv=testDiv||$('<div style="'+offsetCSS+'"></div>').appendTo('body');var a=$.curCSS(testDiv.css({backgroundColor:'#000000'})[0],'backgroundColor',true),white=$.curCSS(testDiv.css({backgroundColor:'#ffffff'})[0],'backgroundColor',true),newBgStatus=(a===white||white==='transparent');if(newBgStatus!=c){c=newBgStatus;$.event.trigger({type:'usermode',disabled:!c,enabled:c})}return c}function init(){testBg();clearInterval(timer);timer=setInterval(testBg,3000)}$.event.special.usermode={add:function(a){testBg();var b=this;setTimeout(function(){$(b).trigger({type:'usermode',disabled:!c,enabled:c})},0);return a},setup:function(){},teardown:function(){},handler:function(){}};return{get:testBg,init:init}})();$.fn.userMode=function(a){return this[(a)?'bind':'trigger']('usermode',a)};$(function(){$('html').userMode(function(e){$(this)[e.enabled?'addClass':'removeClass']('hcm')});$.ui.userMode.init()});(function($){var a=false;function handleAriaClick(e){if(!a&&(!e.keyCode||e.keyCode===13||(e.keyCode===32&&$.attr(e.target,'role')==='button'))){a=true;setTimeout(function(){a=false},1);return $.event.special.ariaclick.handler.apply(this,arguments)}else if(a&&e.type=='click'){e.preventDefault();return false}return undefined}$.event.special.ariaclick={setup:function(){$(this).bind('click keydown',handleAriaClick);return true},teardown:function(){$(this).unbind('click keydown',handleAriaClick);return true},handler:function(e){e.type='ariaclick';return $.event.handle.apply(this,arguments)}}})(jQuery);$.bodyDefaultFontsize=10;$.testEm=(function(){var b=document.body,timer,evt={type:'emchange',emPx:0,oldEmPx:0},html=$(document.documentElement);function test(){var a=evt.emPx;evt.emPx=parseInt($.curCSS(b,'fontSize',true),10);if(evt.emPx!==a){evt.oldEmPx=a;$.event.trigger(evt)}return evt}function addEmClass(e){var a=e.emPx-$.bodyDefaultFontsize,prefix=(a>0)?'em-increased-':'em-decreased-',newCl=[];a=Math.abs(a)+1;while(a-->1){newCl.push(prefix+a)}html[0].className=$.grep(html[0].className.split(' '),function(n){return(n.indexOf('em-increased-')!==0&&n.indexOf('em-decreased-')!==0)}).concat(newCl).join(' ')}$(function(){b=document.body;setTimeout(function(){addEmClass(test());html.bind('emchange',addEmClass);timer=setInterval(test,3000)},0)});return test})();(function($){var d=true,currentFocus=document,supActiveElem=('activeElement'in document),minFocusTimer=70,keyFocusTimer,focusTimer;function stopKeyFocus(e){d=false;clearTimeout(keyFocusTimer);setTimeout(function(){d=true;clearTimeout(keyFocusTimer)},99)}function addFocus(e){var a=$(e.target).addClass('a11y-focus');currentFocus=e.target;if(!supActiveElem){document.activeElement=e.target}clearTimeout(keyFocusTimer);keyFocusTimer=setTimeout(function(){if(d){a.addClass('a11y-focus-key').trigger('keyfocus')}},0)}$(document).bind('mousedown click',stopKeyFocus).bind('domfocusin',addFocus).bind('focusout',function(e){clearTimeout(keyFocusTimer);$(e.target).removeClass('a11y-focus-key a11y-focus-widget a11y-focus')});function addTabindex(a){var b=a.attr('tabindex');if(!(b||b===0)){a.css({outline:'none'}).attr({tabindex:'-1'});if(!$.support.waiAria&&a[0]){a[0].hideFocus=true}}return a}$.fn.setFocus=function(b){if(!this[0]){return this}b=$.extend({},$.fn.setFocus.defaults,b);var c=this[0],jElm=$(c),activeElem=document.activeElement,now=new Date().getTime(),focusFn=function(){try{stopKeyFocus();c.focus();jElm.addClass('a11y-focus-widget')}catch(e){}},fxParent;if(b.addTabindex){addTabindex(jElm)}$.ui.SR.update();if(!b.fast){if(activeElem&&activeElem.focus&&activeElem.blur){activeElem.blur();stopKeyFocus();activeElem.focus()}clearTimeout(focusTimer);fxParent=jElm.closest(':animated',b.context);if(fxParent[0]){fxParent.queue(function(){var a=new Date().getTime()-now-minFocusTimer;a=(a>9)?a:9;focusTimer=setTimeout(focusFn,a);setTimeout(function(){fxParent.dequeue()},a+16)})}else{focusTimer=setTimeout(focusFn,minFocusTimer)}}else{focusFn()}return this};$.fn.setFocus.defaults={addTabindex:true,fast:false,context:false}})(jQuery);$.fn.ariaHide=function(){$.fn.hide.apply(this,arguments);return this.attr({'aria-hidden':'true'})};$.fn.ariaShow=function(){$.fn.show.apply(this,arguments);return this.attr({'aria-hidden':'false'})};$.ui.SR=(function(){var b,val=0,alertBox,boxTimer,statusBox,statusTimer;function init(){alertBox=$('<div class="a11y-hidden" role="alert" style="'+offsetCSS+'" />').ariaHide().appendTo('body');statusBox=$('<div class="a11y-hidden" style="'+offsetCSS+'"><div aria-live="polite" relevant="additions text" /> </div>').appendTo('body').find('div');b=$('<form role="presentation" action="#" class="aural" style="'+offsetCSS+'"><input name="sr-update" id="sr-update" type="hidden" value="'+val+'" /></form>').appendTo('body').find('input').ajaxComplete(update)}function update(){var a,wrapperHeight;if(b){b[0].setAttribute('value',''+(++val));setTimeout(function(){b[0].setAttribute('value',''+(++val))},1)}}function alert(a){clearTimeout(boxTimer);alertBox.ariaHide().html(a).find('*').attr({role:'presentation'}).end().ariaShow();boxTimer=setTimeout(function(){alertBox.ariaHide().empty()},999)}function giveStatus(a){a=$('<div>'+a+'</div>').find('*').attr({role:'presentation'}).end();statusBox.html(a);clearTimeout(statusTimer);statusTimer=setTimeout(function(){statusBox.empty()},999)}return{update:update,alert:alert,giveStatus:giveStatus,init:init}})();$($.ui.SR.init);if(!$.fn.getID){var i=new Date().getTime();$.fn.getID=function(b){function setID(){var a=this.getAttribute('id');if(!a){a='ID-'+(i++);this.setAttribute('id',a)}return a}if(this[0]){if(b){this.each(setID)}return setID.call(this[0])}return undefined}}$.each({labelWith:'aria-labelledby',describeWith:'aria-describedby',ownsThis:'aria-owns',controlsThis:'aria-controls',activateThis:'aria-activedescendant'},function(b,c){$.fn[b]=function(a){return this.attr(c,$(a).getID())}});var j=/focusin|focus$|mouseenter|mouseover/;$.fn.enterLeave=function(c,d,f){f=$.extend({},$.fn.enterLeave.defaults,f);var g='mouseenter mouseleave focusin focusout',selector=this.selector,context=this.context;if(f.useEventTypes==='mouse'){g='mouseenter mouseleave'}else if(f.useEventTypes==='focus'){g='focusin focusout'}this.each(function(){var b={inEvents:0};function handler(e){var a,params,elem=this,evt;if(j.test(e.type)){a=c;params=[1,'in',true];if(f.useWebkitAutoBlur){b.autoBlur=true;setTimeout(function(){b.autoBlur=false},0)}}else{a=d;params=[-1,'out',false];if(b.autoBlur){return}}clearTimeout(b.inOutTimer);b.inEvents=Math.max(b.inEvents+params[0],0);b.inOutTimer=setTimeout(function(){if(params[2]!=b.inOutState&&(params[2]||!f.bothOut||!b.inEvents)){b.inOutState=params[2];evt=$.Event(params[1]);evt.originalEvent=e;a.call(elem,evt)}},/focus/.test(e.type)?f.keyDelay:f.mouseDelay)}$(this)[f.bindStyle](g,handler)});return this};$.fn.enterLeave.defaults={mouseDelay:0,bindStyle:'bind',keyDelay:1,bothOut:false,useEventTypes:'both',useWebkitAutoBlur:false};$.fn.inOut=$.fn.enterLeave;$.fn.slideParentDown=function(b){b=$.extend({},$.fn.slideParentDown.defaults,b);var c=b.complete;return this.each(function(){var a=$(this),parent=a.parent().css({height:''}),outerHeight;a.css((b.hideStyle==='visibility')?{visibility:''}:{display:'block'});outerHeight=parent.height();parent.css({overflow:'hidden',height:'0px'}).animate({height:outerHeight},$.extend({},b,{complete:function(){parent.css({height:''});c.apply(this,arguments)}}))})};$.fn.slideParentDown.defaults={duration:400,complete:$.noop,hideStyle:'display'};$.fn.slideParentUp=function(b){b=$.extend({},$.fn.slideParentUp.defaults,b);var c=b.complete;return this.each(function(){var a=$(this),parent=a.parent().css({overflow:'hidden'}),cssProp={height:'0px'};if($.browser.mozilla&&b.flickrFix){cssProp.flickrFix=Math.random()*2}parent.animate(cssProp,$.extend({},b,{complete:function(){if(b.hideStyle==='visibility'){a.css({visibility:'hidden'})}else{a.css({display:'none'});parent.css({height:'',overflow:'',display:''})}c.apply(this,arguments)}}))})};$.fn.slideParentUp.defaults={duration:400,hideStyle:'display',complete:$.noop,flickrFix:false}})(jQuery);
//fadeOver
;(function($){var f={absolute:/absolute/,relative:/absolute|fixed|relative/};function addStyles(a,b){var c=a[0];if(!c){return a}var d=c.style;if(b.position&&f[b.position].test($.curCSS(c,'position'))){b=$.extend({},b);delete b.position}for(var e in b){d[e]=b[e]}return a}$.fn.fadeOver=function(b){if(!this[0]){return this}b=$.extend({},$.fn.fadeOver.defaults,b);if((this.length>1||b.hideElement.length>1)){console.log('fadeOver: wir können immer nur ein hideElement bzw. ein showElement behandeln')}var c=$(this[0]),parentElement=(b.parentSel)?c.closest(b.parentSel):c.parent(),animInCSS={start:{position:'absolute',top:(parseInt(parentElement.css('paddingTop'),10)||0),left:(parseInt(parentElement.css('paddingLeft'),10)||0),display:'block'},end:{},after:{position:'',top:'',left:''}},animOutCSS=$.extend(true,{},animInCSS,{after:{}}),parentStartStyles={position:'relative',zoom:'1',overflow:'hidden',height:parentElement.height()+'px'},parentEndStyles={height:''};if(b.stopAll){b.hideElement.stop(true,true);c.stop(true,true)}if(b.hideStyle==='visibility'){animInCSS.start.visibility='';animOutCSS.after.visibility='hidden'}else{animInCSS.start.display='block';animOutCSS.after.display='none'}b.showElement=c;if(b.inAnim){$.each(b.inAnim.split(','),function(i,a){$.fn.fadeOver.presets[a](c,animInCSS,b)})}if(b.outAnim){$.each(b.outAnim.split(','),function(i,a){$.fn.fadeOver.presets[a](b.hideElement,animOutCSS,b)})}function animateParentHeight(){parentElement.animate({height:c.outerHeight({margin:true})},$.extend({},b.animOpts,{complete:function(){parentElement.css(parentEndStyles);if(b.animateHeight==='linear'){b.complete.apply(c[0])}}}))}addStyles(parentElement,parentStartStyles);addStyles(b.hideElement,animOutCSS.start);if(b.outAnim){b.hideElement.animate(animOutCSS.end,$.extend({},b.animOpts))}addStyles(c,animInCSS.start);if(b.inAnim){c.animate(animInCSS.end,$.extend({},b.animOpts,{complete:function(){if(b.hideStyle==='visibility'){b.hideElement.parent().css({overflow:'hidden',height:0})}b.hideElement.css(animOutCSS.after);c.css(animInCSS.after);if(!b.animateHeight){parentElement.css(parentEndStyles)}if(b.animateHeight!=='linear'){b.complete.apply(this,arguments)}else{animateParentHeight()}}}))}if(b.hideStyle==='visibility'){c.parent().css('height','')}if(b.animateHeight==='sync'){animateParentHeight()}return this};$.fn.fadeOver.defaults={animateHeight:false,inAnim:'fadeIn',outAnim:'fadeOut',hideStyle:'display',parentSel:false,hideElement:$([]),stopAll:true,complete:$.noop,animOpts:{duration:400}};$.fn.fadeOver.presets={fadeIn:function(a,b,c){if(!a[0]){return b}if(a[0].offsetHeight<3||a[0].offsetWidth<3||a.css('visibility')==='hidden'){b.start.opacity=0}b.end.opacity=1;b.after.opacity='';return b},fadeOut:function(a,b,c){b.end.opacity=0;return b}};$.fn.crossFade=$.fn.fadeOver})(jQuery);
//init-behavior
;(function($){
	
	$('html').addClass('js-on');
	var c = function(){
		$('html').addClass('js-ready').removeClass('js-off');
		createMarqueeList();
		
		
		$('div.demo-col').bind('play', function(e){
			$('audio, video').not(e.target).pause()});
		
		$('div.video-player, div.audio-player, div.aside-media-player, div.ui-media-player')
			.one('mouseover', function(){
				if(!$.browser.deprecatedPoster){
					$('audio, video', this).attr('preload', 'auto')}
			})
		;
		$('div.video-player')
			.jmeControl({
				timeSlider: {
					range: 'min'
				},
				volumeSlider: {
					orientation: 'vertical',
					range: 'min'
				},
				fullscreen: {
					constrainMediaCtrl: true
				}
			})
			.bind('useractive', function(){
				$('div.media-controls', this).animate({opacity: 1})})
			.bind('userinactive', function(){
				$('div.media-controls', this).animate({opacity: 0})})
			
			.find('div.media-controls')
			.css({opacity: 0, display: 'block'})
			
			.find('div.volume-control')
			.inOut(
				function(){
					$('div.volume-slider-wrapper', this)
						.stop()
						.animate({
							height: '100%'
						})
					},
				function(){
					$('div.volume-slider-wrapper', this)
						.stop()
						.animate({
							height: '0px'
						})
					},
				{mouseDelay: 300}
			)
		;
		
		$('div.audio-player')
			.jmeControl({
				timeSlider: {
					range: 'min'
				},
				volumeSlider: {
					orientation: 'vertical',
					range: 'min'
				}
			})
			.bind('play', function(){
				var a = $('div.control-group-box-2', this);
				a.stop().animate({width: 325}, {duration: 800}).css({display: 'block'})})
			.bind('pause ended', function(){
				var a = $('div.control-group-box-2', this);
				a.animate({width: 0}, {
					complete: function(){
						a.css({display: 'none'})},
					duration: 800
				})})
			.find('div.volume-control')
			.inOut(
				function(){
					$('div.volume-slider-wrapper', this)
						.stop()
						.animate({
							height: '100%'
						})
					},
				function(){
					$('div.volume-slider-wrapper', this)
						.stop()
						.animate({
							height: '0px'
						})
					},
				{mouseDelay: 300}
			)
		}
	
	function createMarqueeList(){
		$('ul.marquee')
			.each(function(){
				var b 	= 0,
					items 	= $('li', this)
				;
				items.filter(':first').show();
				setInterval($.proxy(function(){
					var a = (items.length >= b + 2) ? b + 1 : 0;
					
					items.filter(':eq('+a+')').crossFade({
						hideElement: items.filter(':eq('+b+')')
					});
					b = a}, this), 4000)})
		}
	
	
	$(c)})(jQuery);


}// END !jspackager.devmode
