/*
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left");}catch(a){setTimeout(ma,1);return;}c.ready();}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b);}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b){X(a,o,b[o],f,e,d);}return a;}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++){e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);}return a;}return i?e(a[0],b):w;}function J(){return(new Date).getTime();}function Y(){return false;}function Z(){return true;}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d);}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1);}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=j.length;n<r;n++){for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave"){f=c(a.relatedTarget).closest(i.selector)[0];}if(!f||f!==o){d.push({elem:o,handleObj:i});}}}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break;}}return b;}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,"&");}function qa(a){return !a||!a.parentNode||a.parentNode.nodeType===11;}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f){for(var i in f[j]){c.event.add(this,j,f[j][i],f[j][i].data);}}}}});}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e=true;if(j=c.fragments[a[0]]){if(j!==1){f=j;}}}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d);}if(e){c.fragments[a[0]]=j?f:1;}return{fragment:f,cacheable:e};}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a;});return d;}function wa(a){return"scrollTo" in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false;}var c=function(a,b){return new c.fn.init(a,b);},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a){return this;}if(a.nodeType){this.context=this[0]=a;this.length=1;return this;}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this;}if(typeof a==="string"){if((d=Ta.exec(a))&&(d[1]||!b)){if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a)){if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true);}else{a=[f.createElement(a[1])];}}else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes;}return c.merge(this,a);}else{if(b=s.getElementById(d[2])){if(b.id!==d[2]){return T.find(a);}this.length=1;this[0]=b;}this.context=s;this.selector=a;return this;}}else{if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,a);}else{return !b||b.jquery?(b||T).find(a):c(b).find(a);}}}else{if(c.isFunction(a)){return T.ready(a);}}if(a.selector!==w){this.selector=a.selector;this.context=a.context;}return c.makeArray(a,this);},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length;},toArray:function(){return R.call(this,0);},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a];},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b==="find"){f.selector=this.selector+(this.selector?" ":"")+d;}else{if(b){f.selector=this.selector+"."+b+"("+d+")";}}return f;},each:function(a,b){return c.each(this,a,b);},ready:function(a){c.bindReady();if(c.isReady){a.call(s,c);}else{Q&&Q.push(a);}return this;},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1);},first:function(){return this.eq(0);},last:function(){return this.eq(-1);},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","));},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b);}));},end:function(){return this.prevObject||c(null);},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2;}if(typeof a!=="object"&&!c.isFunction(a)){a={};}if(d===b){a=this;--b;}for(;b<d;b++){if((e=arguments[b])!=null){for(j in e){i=a[j];o=e[j];if(a!==o){if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o);}else{if(o!==w){a[j]=o;}}}}}}return a;};c.extend({noConflict:function(a){A.$=Sa;if(a){A.jQuery=Ra;}return c;},isReady:false,ready:function(){if(!c.isReady){if(!s.body){return setTimeout(c.ready,13);}c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];){a.call(s,c);}Q=null;}c.fn.triggerHandler&&c(s).triggerHandler("ready");}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete"){return c.ready();}if(s.addEventListener){s.addEventListener("DOMContentLoaded",L,false);A.addEventListener("load",c.ready,false);}else{if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null;}catch(b){}s.documentElement.doScroll&&a&&ma();}}}},isFunction:function(a){return $.call(a)==="[object Function]";},isArray:function(a){return $.call(a)==="[object Array]";},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval){return false;}if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,"isPrototypeOf")){return false;}var b;for(b in a){}return b===w||aa.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=c.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 A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+a))();}else{c.error("Invalid JSON: "+a);}},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval){d.appendChild(s.createTextNode(a));}else{d.text=a;}b.insertBefore(d,b.firstChild);b.removeChild(d);}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase();},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d){if(i){for(f in a){if(b.apply(a[f],d)===false){break;}}}else{for(;e<j;){if(b.apply(a[e++],d)===false){break;}}}}else{if(i){for(f in a){if(b.call(a[f],f,a[f])===false){break;}}}else{for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]){}}}return a;},trim:function(a){return(a||"").replace(Wa,"");},makeArray:function(a,b){b=b||[];if(a!=null){a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);}return b;},inArray:function(a,b){if(b.indexOf){return b.indexOf(a);}for(var d=0,f=b.length;d<f;d++){if(b[d]===a){return d;}}return -1;},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number"){for(var e=b.length;f<e;f++){a[d++]=b[f];}}else{for(;b[f]!==w;){a[d++]=b[f++];}}a.length=d;return a;},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++){!d!==!b(a[e],e)&&f.push(a[e]);}return f;},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null){f[f.length]=e;}}return f.concat.apply([],f);},guid:1,proxy:function(a,b,d){if(arguments.length===2){if(typeof b==="string"){d=a;a=d[b];b=w;}else{if(b&&!c.isFunction(b)){d=b;b=w;}}}if(!b&&a){b=function(){return a.apply(d||this,arguments);};}if(a){b.guid=a.guid=a.guid||b.guid||c.guid++;}return b;},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"};},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version;}if(c.browser.webkit){c.browser.safari=true;}if(ya){c.inArray=function(a,b){return ya.call(b,a);};}T=c(s);if(s.addEventListener){L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready();};}else{if(s.attachEvent){L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready();}};}}(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"));}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f];}try{delete b.test;}catch(o){c.support.deleteExpando=false;}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent=false;d.detachEvent("onclick",k);});d.cloneNode(true).fireEvent("onclick");}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none";});a=function(k){var n=s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function";}return r;};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null;}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w){return null;}f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b);}else{if(!e[f]){a[G]=f;e[f]={};}}a=e[f];if(d!==w){a[b]=d;}return typeof b==="string"?a[b]:a;}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a);}}else{if(c.support.deleteExpando){delete a[c.expando];}else{a.removeAttribute&&a.removeAttribute(c.expando);}delete f[d];}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length){return c.data(this[0]);}else{if(typeof a==="object"){return this.each(function(){c.data(this,a);});}}var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length){f=c.data(this[0],a);}return f===w&&d[1]?this.data(d[0]):f;}else{return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,a,b);});}},removeData:function(a){return this.each(function(){c.removeData(this,a);});}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d){return f||[];}if(!f||c.isArray(d)){f=c.data(a,b,c.makeArray(d));}else{f.push(d);}return f;}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress"){f=d.shift();}if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b);});}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx";}if(b===w){return c.queue(this[0],a);}return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a);});},dequeue:function(a){return this.each(function(){c.dequeue(this,a);});},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b);},a);});},clearQueue:function(a){return this.queue(a||"fx",[]);}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr);},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a);});},addClass:function(a){if(c.isFunction(a)){return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")));});}if(a&&typeof a==="string"){for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1){if(e.className){for(var j=" "+e.className+" ",i=e.className,o=0,k=b.length;o<k;o++){if(j.indexOf(" "+b[o]+" ")<0){i+=" "+b[o];}}e.className=c.trim(i);}else{e.className=a;}}}}return this;},removeClass:function(a){if(c.isFunction(a)){return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")));});}if(a&&typeof a==="string"||a===w){for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className){if(a){for(var j=(" "+e.className+" ").replace(Aa," "),i=0,o=b.length;i<o;i++){j=j.replace(" "+b[i]+" "," ");}e.className=c.trim(j);}else{e.className="";}}}}return this;},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a)){return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b);});}return this.each(function(){if(d==="string"){for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e);}}else{if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||"";}}});},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++){if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1){return true;}}return false;},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option")){return(b.attributes.value||{}).specified?b.value:b.text;}if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0){return null;}var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i=e[j];if(i.selected){a=c(i).val();if(b){return a;}f.push(a);}}return f;}if(Ba.test(b.type)&&!c.support.checkOn){return b.getAttribute("value")===null?"on":b.value;}return(b.value||"").replace(Za,"");}return w;}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o){r=a.call(this,k,n.val());}if(typeof r==="number"){r+="";}if(c.isArray(r)&&Ba.test(this.type)){this.checked=c.inArray(n.val(),r)>=0;}else{if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),u)>=0;});if(!u.length){this.selectedIndex=-1;}}else{this.value=r;}}}});}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8){return w;}if(f&&b in c.attrFn){return c(a)[b](d);}f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");a[b]=d;}if(c.nodeName(a,"form")&&a.getAttributeNode(b)){return a.getAttributeNode(b).nodeValue;}if(b==="tabIndex"){return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;}return a[b];}if(!c.support.style&&f&&b==="style"){if(e){a.style.cssText=""+d;}return a.style.cssText;}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a;}return c.style(a,b,d);}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b;});};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement){a=A;}var e,j;if(d.handler){e=d;d=e.handler;}if(!d.guid){d.guid=c.guid++;}if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o){j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w;};}o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");k=r.shift();j.namespace=r.slice(0).sort().join(".");}else{r=[];j.namespace="";}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false){if(a.addEventListener){a.addEventListener(k,o,false);}else{a.attachEvent&&a.attachEvent("on"+k,o);}}}if(z.add){z.add.call(a,j);if(!j.handler.guid){j.handler.guid=d.guid;}}u.push(j);c.event.global[k]=true;}a=null;}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a),C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type;}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C){c.event.remove(a,e+b);}}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)");}if(r=C[e]){if(d){n=c.event.special[e]||{};for(B=f||0;B<r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&&r.splice(B--,1);n.remove&&n.remove.call(a,u);}if(f!=null){break;}}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false){Ca(a,e,z.handle);}delete C[e];}}else{for(var B=0;B<r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1);}}}}}if(c.isEmptyObject(C)){if(b=z.handle){b.elem=null;}delete z.events;delete z.handle;c.isEmptyObject(z)&&c.removeData(a);}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=e=e.slice(0,-1);a.exclusive=true;}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem);});}if(!d||d.nodeType===3||d.nodeType===8){return w;}a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a);}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()])){if(d["on"+e]&&d["on"+e].apply(d,b)===false){a.result=false;}}}catch(j){}if(!a.isPropagationStopped()&&f){c.event.trigger(a,b,f,true);}else{if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e]){f["on"+e]=null;}c.event.triggered=true;f[e]();}}catch(n){}if(i){f["on"+e]=i;}c.event.triggered=false;}}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===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[G]){return a;}var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f];}if(!a.target){a.target=a.srcElement||s;}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){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.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!==w){a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;}return a;},guid:100000000,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}));},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,"events").live||[],function(){if(d===this.origType.replace(O,"")){return b=false;}});b&&c.event.remove(this,a.origType,oa);}},beforeunload:{setup:function(a,b,d){if(this.setInterval){this.onbeforeunload=d;}return false;},teardown:function(a,b){if(this.onbeforeunload===b){this.onbeforeunload=null;}}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false);}:function(a,b,d){a.detachEvent("on"+b,d);};c.Event=function(a){if(!this.preventDefault){return new c.Event(a);}if(a&&a.type){this.originalEvent=a;this.type=a.type;}else{this.type=a;}this.timeStamp=J();this[G]=true;};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false;}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true;}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation();},isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y};var Da=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;){b=b.parentNode;}if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments);}}catch(d){}},Ea=function(a){a.type=a.data;c.event.handle.apply(this,arguments);};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ea:Da,a);},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ea:Da);}};});if(!c.support.submitBubbles){c.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length){return na("submit",this,arguments);}});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13){return na("submit",this,arguments);}});}else{return false;}},teardown:function(){c.event.remove(this,".specialSubmit");}};}if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox"){d=a.checked;}else{if(b==="select-multiple"){d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected;}).join("-"):"";}else{if(a.nodeName.toLowerCase()==="select"){d=a.selectedIndex;}}}return d;},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio"){c.data(d,"_change_data",e);}if(!(f===w||e===f)){if(f!=null||e){a.type="change";return c.event.trigger(a,b,d);}}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select"){return fa.call(this,a);}},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple"){return fa.call(this,a);}},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",Fa(a));}},setup:function(){if(this.type==="file"){return false;}for(var a in ea){c.event.add(this,a+".specialChange",ea[a]);}return da.test(this.nodeName);},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName);}};ea=c.event.special.change.filters;}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f);}c.event.special[b]={setup:function(){this.addEventListener(a,d,true);},teardown:function(){this.removeEventListener(a,d,true);}};});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d){this[b](j,f,d[j],e);}return this;}if(c.isFunction(f)){e=f;f=w;}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments);}):e;if(d==="unload"&&b!=="one"){this.one(d,f,e);}else{j=0;for(var o=this.length;j<o;j++){c.event.add(this[j],d,i,f);}}return this;};});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault){for(var d in a){this.unbind(d,a[d]);}}else{d=0;for(var f=this.length;d<f;d++){c.event.remove(this[d],a,b);}}return this;},delegate:function(a,b,d,f){return this.live(b,d,f,a);},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a);},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this);});},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result;}},toggle:function(a){for(var b=arguments,d=1;d<b.length;){c.proxy(a,b[d++]);}return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false;}));},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a);}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w;}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"");}if(i==="hover"){d.push("mouseenter"+k,"mouseleave"+k);}else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k;}else{i=(Ga[i]||i)+k;}b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n});}):u.unbind(pa(i,r),e);}}return this;};});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b);};if(c.attrFn){c.attrFn[b]=true;}});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache){if(c.cache[a].handle){try{c.event.remove(c.cache[a].handle.elem);}catch(b){}}}});(function(){function a(g){for(var h="",l,m=0;g[m];m++){l=g[m];if(l.nodeType===3||l.nodeType===4){h+=l.nodeValue;}else{if(l.nodeType!==8){h+=a(l.childNodes);}}}return h;}function b(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break;}if(t.nodeType===1&&!p){t.sizcache=l;t.sizset=q;}if(t.nodeName.toLowerCase()===h){y=t;break;}t=t[g];}m[q]=y;}}}function d(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break;}if(t.nodeType===1){if(!p){t.sizcache=l;t.sizset=q;}if(typeof h!=="string"){if(t===h){y=true;break;}}else{if(k.filter(h,[t]).length>0){y=t;break;}}}t=t[g];}m[q]=y;}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0;});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9){return[];}if(!g||typeof g!=="string"){return l;}for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break;}}if(p.length>1&&r.exec(g)){if(p.length===2&&n.relative[p[0]]){t=ga(p[0]+p[1],h);}else{for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g]){g+=p.shift();}t=ga(g,t);}}}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0];}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0){y=z(t);}else{H=false;}for(;p.length;){var D=p.pop();v=D;if(n.relative[D]){v=p.pop();}else{D="";}if(v==null){v=h;}n.relative[D](y,v,M);}}else{y=[];}}y||(y=t);y||k.error(D||g);if(j.call(y)==="[object Array]"){if(H){if(h&&h.nodeType===1){for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g]))){l.push(t[g]);}}}else{for(g=0;y[g]!=null;g++){y[g]&&y[g].nodeType===1&&l.push(t[g]);}}}else{l.push.apply(l,y);}}else{z(y,l);}if(S){k(S,q,l,m);k.uniqueSort(l);}return l;};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i){for(var h=1;h<g.length;h++){g[h]===g[h-1]&&g.splice(h--,1);}}}return g;};k.matches=function(g,h){return k(g,null,null,h);};k.find=function(g,h,l){var m,q;if(!g){return[];}for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break;}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g};};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter){if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-1)!=="\\"){if(v===p){p=[];}if(n.preFilter[H]){if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true){continue;}}else{y=I=true;}}if(t){for(var U=0;(D=v[U])!=null;U++){if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null){if(Ha){y=true;}else{v[U]=false;}}else{if(Ha){p.push(D);y=true;}}}}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y){return[];}break;}}}}if(g===q){if(y==null){k.error(g);}else{break;}}q=g;}return v;};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};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(g){return g.getAttribute("href");}},relative:{"+":function(g,h){var l=typeof h==="string",m=l&&!/\W/.test(h);l=l&&!m;if(m){h=h.toLowerCase();}m=0;for(var q=g.length,p;m<q;m++){if(p=g[m]){for(;(p=p.previousSibling)&&p.nodeType!==1;){}g[m]=l||p&&p.nodeName.toLowerCase()===h?p||false:p===h;}}l&&k.filter(h,g,true);},">":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m<q;m++){var p=g[m];if(p){l=p.parentNode;g[m]=l.nodeName.toLowerCase()===h?l:false;}}}else{m=0;for(q=g.length;m<q;m++){if(p=g[m]){g[m]=l?p.parentNode:p.parentNode===h;}}l&&k.filter(h,g,true);}},"":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b;}q("parentNode",h,m,g,p,l);},"~":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b;}q("previousSibling",h,m,g,p,l);}},find:{ID:function(g,h,l){if(typeof h.getElementById!=="undefined"&&!l){return(g=h.getElementById(g[1]))?[g]:[];}},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var l=[];h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++){h[m].getAttribute("name")===g[1]&&l.push(h[m]);}return l.length===0?null:l;}},TAG:function(g,h){return h.getElementsByTagName(g[1]);}},preFilter:{CLASS:function(g,h,l,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p){return g;}p=0;for(var v;(v=h[p])!=null;p++){if(v){if(q^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0)){l||m.push(v);}else{if(l){h[p]=false;}}}}return false;},ID:function(g){return g[1].replace(/\\/g,"");},TAG:function(g){return g[1].toLowerCase();},CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0;}g[0]=e++;return g;},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h]){g[1]=n.attrMap[h];}if(g[2]==="~="){g[4]=" "+g[4]+" ";}return g;},PSEUDO:function(g,h,l,m,q){if(g[1]==="not"){if((f.exec(g[3])||"").length>1||/^\w/.test(g[3])){g[3]=k(g[3],null,null,h);}else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m,g);return false;}}else{if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0])){return true;}}return g;},POS:function(g){g.unshift(true);return g;}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden";},disabled:function(g){return g.disabled===true;},checked:function(g){return g.checked===true;},selected:function(g){return g.selected===true;},parent:function(g){return !!g.firstChild;},empty:function(g){return !g.firstChild;},has:function(g,h,l){return !!k(l[3],g).length;},header:function(g){return/h\d/i.test(g.nodeName);},text:function(g){return"text"===g.type;},radio:function(g){return"radio"===g.type;},checkbox:function(g){return"checkbox"===g.type;},file:function(g){return"file"===g.type;},password:function(g){return"password"===g.type;},submit:function(g){return"submit"===g.type;},image:function(g){return"image"===g.type;},reset:function(g){return"reset"===g.type;},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button";},input:function(g){return/input|select|textarea|button/i.test(g.nodeName);}},setFilters:{first:function(g,h){return h===0;},last:function(g,h,l,m){return h===m.length-1;},even:function(g,h){return h%2===0;},odd:function(g,h){return h%2===1;},lt:function(g,h,l){return h<l[3]-0;},gt:function(g,h,l){return h>l[3]-0;},nth:function(g,h,l){return l[3]-0===h;},eq:function(g,h,l){return l[3]-0===h;}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p){return p(g,l,h,m);}else{if(q==="contains"){return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;}else{if(q==="not"){h=h[3];l=0;for(m=h.length;l<m;l++){if(h[l]===g){return false;}}return true;}else{k.error("Syntax error, unrecognized expression: "+q);}}}},CHILD:function(g,h){var l=h[1],m=g;switch(l){case"only":case"first":for(;m=m.previousSibling;){if(m.nodeType===1){return false;}}if(l==="first"){return true;}m=g;case"last":for(;m=m.nextSibling;){if(m.nodeType===1){return false;}}return true;case"nth":l=h[2];var q=h[3];if(l===1&&q===0){return true;}h=h[0];var p=g.parentNode;if(p&&(p.sizcache!==h||!g.nodeIndex)){var v=0;for(m=p.firstChild;m;m=m.nextSibling){if(m.nodeType===1){m.nodeIndex=++v;}}p.sizcache=h;}g=g.nodeIndex-q;return l===0?g===0:g%l===0&&g/l>=0;}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h;},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h;},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1;},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m==="="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false;},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q){return q(g,l,h,m);}}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g,h){return"\\"+(h-0+1);}));}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h;}return g;};try{Array.prototype.slice.call(s.documentElement.childNodes,0);}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]"){Array.prototype.push.apply(h,g);}else{if(typeof g.length==="number"){for(var l=0,m=g.length;l<m;l++){h.push(g[l]);}}else{for(l=0;g[l];l++){h.push(g[l]);}}}return h;};}var B;if(s.documentElement.compareDocumentPosition){B=function(g,h){if(!g.compareDocumentPosition||!h.compareDocumentPosition){if(g==h){i=true;}return g.compareDocumentPosition?-1:1;}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0){i=true;}return g;};}else{if("sourceIndex" in s.documentElement){B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h){i=true;}return g.sourceIndex?-1:1;}g=g.sourceIndex-h.sourceIndex;if(g===0){i=true;}return g;};}else{if(s.createRange){B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h){i=true;}return g.ownerDocument?-1:1;}var l=g.ownerDocument.createRange(),m=h.ownerDocument.createRange();l.setStart(g,0);l.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=l.compareBoundaryPoints(Range.START_TO_END,m);if(g===0){i=true;}return g;};}}}(function(){var g=s.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p){return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[];}};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q;};}l.removeChild(g);l=g=null;})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0){n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++){l[m].nodeType===1&&h.push(l[m]);}l=h;}return l;};}g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#"){n.attrHandle.href=function(h){return h.getAttribute("href",2);};}g=null;})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q)){try{return z(q.querySelectorAll(m),p);}catch(t){}}return g(m,q,p,v);};for(var l in g){k[l]=g[l];}h=null;}}();(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m){return l.getElementsByClassName(h[1]);}};g=null;}}})();var E=s.compareDocumentPosition?function(g,h){return !!(g.compareDocumentPosition(h)&16);}:function(g,h){return g!==h&&(g.contains?g.contains(h):true);},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false;},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"");}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++){k(g,h[q],l);}return k.filter(m,l);};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E;})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b)){return c.grep(a,function(e,j){return !!b.call(e,j,e)===d;});}else{if(b.nodeType){return c.grep(a,function(e){return e===b===d;});}else{if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1;});if(Ua.test(b)){return c.filter(b,f,!d);}else{b=c.filter(b,f);}}}}return c.grep(a,function(e){return c.inArray(e,b)>=0===d;});};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;c.find(a,this[f],b);if(f>0){for(var j=d;j<b.length;j++){for(var i=0;i<d;i++){if(b[i]===b[j]){b.splice(j--,1);break;}}}}}return b;},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++){if(c.contains(this,b[d])){return true;}}});},not:function(a){return this.pushStack(Ia(this,a,false),"not",a);},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a);},is:function(a){return !!a&&c.filter(a,this).length>0;},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j={},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i);}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i];}}f=f.parentNode;}}return d;}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a)){return r;}r=r.parentNode;}return null;});},index:function(a){if(!a||typeof a==="string"){return c.inArray(this[0],a?c(a):this.parent().children());}return c.inArray(a.jquery?a[0]:a,this);},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b));},andSelf:function(){return this.add(this.prevObject);}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null;},parents:function(a){return c.dir(a,"parentNode");},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d);},next:function(a){return c.nth(a,2,"nextSibling");},prev:function(a){return c.nth(a,2,"previousSibling");},nextAll:function(a){return c.dir(a,"nextSibling");},prevAll:function(a){return c.dir(a,"previousSibling");},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d);},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d);},siblings:function(a){return c.sibling(a.parentNode.firstChild,a);},children:function(a){return c.sibling(a.firstChild);},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes);}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string"){e=c.filter(f,e);}e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a)){e=e.reverse();}return this.pushStack(e,a,R.call(arguments).join(","));};});c.extend({filter:function(a,b,d){if(d){a=":not("+a+")";}return c.find.matches(a,b);},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&f.push(a);a=a[b];}return f;},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d]){if(a.nodeType===1&&++f===b){break;}}return a;},sibling:function(a,b){for(var d=[];a;a=a.nextSibling){a.nodeType===1&&a!==b&&d.push(a);}return d;}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?a:b+"></"+d+">";},F={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,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize){F._default=[1,"div<div>","</div>"];}c.fn.extend({text:function(a){if(c.isFunction(a)){return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()));});}if(typeof a!=="object"&&a!==w){return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));}return c.text(this);},wrapAll:function(a){if(c.isFunction(a)){return this.each(function(d){c(this).wrapAll(a.call(this,d));});}if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;){d=d.firstChild;}return d;}).append(this);}return this;},wrapInner:function(a){if(c.isFunction(a)){return this.each(function(b){c(this).wrapInner(a.call(this,b));});}return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a);});},wrap:function(a){return this.each(function(){c(this).wrapAll(a);});},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes);}).end();},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a);});},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild);});},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this);});}else{if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments);}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling);});}else{if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a;}}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++){if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f]);}f.parentNode&&f.parentNode.removeChild(f);}}return this;},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;){b.removeChild(b.firstChild);}}return this;},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML;}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0];}else{return this.cloneNode(true);}});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"));}return b;},html:function(a){if(a===w){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,""):null;}else{if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++){if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a;}}}catch(f){this.empty().append(a);}}else{c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i);});}):this.empty().append(a);}}return this;},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a)){return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f));});}if(typeof a!=="string"){a=c(a).detach();}return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a);});}else{return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a);}},detach:function(a){return this.remove(a,true);},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||u.appendChild(u.ownerDocument.createElement("tbody")):u;}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i)){return this.each(function(){c(this).domManip(a,b,d,true);});}if(c.isFunction(i)){return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d);});}if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===1?(k=k.firstChild):k.firstChild){b=b&&c.nodeName(j,"tr");for(var n=0,r=this.length;n<r;n++){d.call(b?f(this[n],j):this[n],n>0||e.cacheable||this.length>1?k.cloneNode(true):k);}}o.length&&c.each(o,Qa);}return this;}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]);return this;}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i);}return this.pushStack(f,a,d.selector);}};});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;}for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number"){i+="";}if(i){if(typeof i==="string"&&!jb.test(i)){i=b.createTextNode(i);}else{if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["",""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;){r=r.lastChild;}if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]==="<table>"&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k){c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k]);}}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes;}}if(i.nodeType){e.push(i);}else{e=c.merge(e,i);}}}if(d){for(j=0;e[j];j++){if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript")){f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);}else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j]);}}}return e;},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++){if(d=o[c.expando]){b=f[d];if(b.events){for(var k in b.events){e[k]?c.event.remove(o,k):Ca(o,k,b.handle);}}if(j){delete o[c.expando];}else{o.removeAttribute&&o.removeAttribute(c.expando);}delete f[d];}}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja=function(a,b){return b.toUpperCase();};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w){return c.curCSS(d,f);}if(typeof e==="number"&&!kb.test(f)){e+="px";}c.style(d,f,e);});};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8){return w;}if((b==="width"||b==="height")&&parseFloat(d)<0){d=w;}var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=Na.test(a)?a.replace(Na,b):b;}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":"";}if(ha.test(b)){b=Pa;}b=b.replace(ia,ja);if(e){f[b]=d;}return f[b];},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin"){e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;}else{e-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0;}});}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e));}return c.curCSS(a,b,d);},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f;}if(ha.test(b)){b=Pa;}if(!d&&e&&e[b]){f=e[b];}else{if(rb){if(ha.test(b)){b="float";}b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e){return null;}if(a=e.getComputedStyle(a,null)){f=a.getPropertyValue(b);}if(b==="opacity"&&f===""){f="1";}}else{if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j;}}}}return f;},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e];}d.call(a);for(e in b){a.style[e]=f[e];}}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none";};c.expr.filters.visible=function(a){return !c.expr.filters.hidden(a);};}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"){return zb.call(this,a);}else{if(!this.length){return this;}}var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f);}f="GET";if(b){if(c.isFunction(b)){d=b;b=null;}else{if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST";}}}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified"){j.html(e?c("<div />").append(i.responseText.replace(tb,"")).find(e):i.responseText);}d&&j.each(d,[i.responseText,o,i]);}});return this;},serialize:function(){return c.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type));}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d};}):{name:b.name,value:a};}).get();}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d);};});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null;}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f});},getScript:function(a,b){return c.get(a,null,b,"script");},getJSON:function(a,b,d){return c.get(a,b,d,"json");},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={};}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f});},ajaxSetup:function(a){c.extend(c.ajaxSettings,a);},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest;}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP");}catch(a){}},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(a){function b(){e.success&&e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e]);}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop");}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p);}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string"){e.data=c.param(e.data,e.traditional);}if(e.dataType==="jsonp"){if(n==="GET"){N.test(e.url)||(e.url+=(ka.test(e.url)?"&":"?")+(e.jsonp||"callback")+"=?");}else{if(!e.data||!N.test(e.data)){e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";}}e.dataType="json";}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data){e.data=(e.data+"").replace(N,"="+j+"$1");}e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j];}catch(p){}z&&z.removeChild(C);};}if(e.dataType==="script"&&e.cache===null){e.cache=false;}if(e.cache===false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"");}if(e.data&&n==="GET"){e.url+=(ka.test(e.url)?"&":"?")+e.data;}e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset){C.charset=e.scriptCharset;}if(!j){var B=false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C);}};}z.insertBefore(C,z.firstChild);return w;}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType){x.setRequestHeader("Content-Type",e.contentType);}if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since",c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url]);}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default);}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false;}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E||d();E=true;if(x){x.onreadystatechange=c.noop;}}else{if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success"){try{o=c.httpData(x,e.dataType,e);}catch(v){i="parsererror";p=v;}}if(i==="success"||i==="notmodified"){j||b();}else{c.handleError(e,x,i,p);}d();q==="timeout"&&x.abort();if(e.async){x=null;}}}};try{var h=x.abort;x.abort=function(){x&&h.call(x);g("abort");};}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout");},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null);}catch(m){c.handleError(e,x,null,m);d();}e.async||g();return x;}},handleError:function(a,b,d,f){if(a.error){a.error.call(a.context||a,b,d,f);}if(a.global){(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f]);}},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(b){}return false;},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d){c.lastModified[b]=d;}if(f){c.etag[b]=f;}return a.status===304||a.status===0;},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter){a=d.dataFilter(a,b);}if(typeof a==="string"){if(b==="json"||!b&&f.indexOf("json")>=0){a=c.parseJSON(a);}else{if(b==="script"||!b&&f.indexOf("javascript")>=0){c.globalEval(a);}}}return a;},param:function(a,b){function d(i,o){if(c.isArray(o)){c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n);});}else{!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n);}):f(i,o);}}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o);}var e=[];if(b===w){b=c.ajaxSettings.traditional;}if(c.isArray(a)||a.jquery){c.each(a,function(){f(this.name,this.value);});}else{for(var j in a){d(j,a[j]);}}return e.join("&").replace(yb,"+");}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0){return this.animate(K("show",3),a,b);}else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d]){f=la[d];}else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none"){f="block";}e.remove();la[d]=f;}c.data(this[a],"olddisplay",f);}}a=0;for(b=this.length;a<b;a++){this[a].style.display=c.data(this[a],"olddisplay")||"";}return this;}},hide:function(a,b){if(a||a===0){return this.animate(K("hide",3),a,b);}else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],"olddisplay",c.css(this[a],"display"));}a=0;for(b=this.length;a<b;a++){this[a].style.display="none";}return this;}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b)){this._toggle.apply(this,arguments);}else{a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]();}):this.animate(K("toggle",3),a,b);}return this;},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d);},animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a)){return this.each(e.complete);}return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n;}if(a[i]==="hide"&&o||a[i]==="show"&&!o){return j.complete.call(this);}if((i==="height"||i==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow;}if(c.isArray(a[i])){(j.specialEasing=j.specialEasing||{})[i]=a[i][1];a[i]=a[i][0];}}if(j.overflow!=null){this.style.overflow="hidden";}j.curAnim=c.extend({},a);c.each(a,function(r,u){var z=new c.fx(k,j,r);if(Ab.test(u)){z[u==="toggle"?o?"show":"hide":u](a);}else{var C=Bb.exec(u),B=z.cur(true)||0;if(C){u=parseFloat(C[2]);var E=C[3]||"px";if(E!=="px"){k.style[r]=(u||1)+E;B=(u||1)/z.cur(true)*B;k.style[r]=B+E;}if(C[1]){u=(C[1]==="-="?-1:1)*u+B;}z.custom(B,u,E);}else{z.custom(B,u,"");}}});return true;});},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var f=d.length-1;f>=0;f--){if(d[f].elem===this){b&&d[f](true);d.splice(f,1);}}});b||this.dequeue();return this;}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f);};});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration==="number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this);};return f;},easing:{linear:function(a,b,d,f){return d+f*a;},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d;}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig){b.orig={};}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.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];}return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0;},custom:function(a,b,d){function f(j){return e.step(j);}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W){W=setInterval(c.fx.tick,13);}},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show();},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim){if(this.options.curAnim[f]!==true){d=false;}}if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none"){this.elem.style.display="block";}}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show){for(var e in this.options.curAnim){c.style(this.elem,e,this.options.orig[e]);}}this.options.complete.call(this.elem);}return false;}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update();}return true;}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++){a[b]()||a.splice(b--,1);}a.length||c.fx.stop();},stop:function(){clearInterval(W);W=null;},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.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(c.expr&&c.expr.filters){c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem;}).length;};}c.fn.offset="getBoundingClientRect" in s.documentElement?function(a){var b=this[0];if(a){return this.each(function(e){c.offset.setOffset(this,a,e);});}if(!b||!b.ownerDocument){return null;}if(b===b.ownerDocument.body){return c.offset.bodyOffset(b);}var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)};}:function(a){var b=this[0];if(a){return this.each(function(r){c.offset.setOffset(this,a,r);});}if(!b||!b.ownerDocument){return null;}if(b===b.ownerDocument.body){return c.offset.bodyOffset(b);}c.offset.initialize();var d=b.offsetParent,f=b,e=b.ownerDocument,j,i=e.documentElement,o=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==o&&b!==i;){if(c.offset.supportsFixedPosition&&f.position==="fixed"){break;}j=e?e.getComputedStyle(b,null):b.currentStyle;k-=b.scrollTop;n-=b.scrollLeft;if(b===d){k+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0;}f=d;d=b.offsetParent;}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0;}f=j;}if(f.position==="relative"||f.position==="static"){k+=o.offsetTop;n+=o.offsetLeft;}if(c.offset.supportsFixedPosition&&f.position==="fixed"){k+=Math.max(i.scrollTop,o.scrollTop);n+=Math.max(i.scrollLeft,o.scrollLeft);}return{top:k,left:n};};c.offset={initialize:function(){var a=s.body,b=s.createElement("div"),d,f,e,j=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b);c.offset.initialize=c.noop;},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0;}return{top:b,left:d};},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position"))){a.style.position="relative";}var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b)){b=b.call(a,d,e);}d={top:b.top-e.top+j,left:b.left-e.left+i};"using" in b?b.using.call(a,d):f.css(d);}};c.fn.extend({position:function(){if(!this[0]){return null;}var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-f.top,left:d.left-f.left};},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";){a=a.offsetParent;}return a;});}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e){return null;}if(f!==w){return this.each(function(){if(j=wa(this)){j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());}else{this[d]=f;}});}else{return(j=wa(e))?"pageXOffset" in j?j[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d];}};});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null;};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null;};c.fn[d]=function(f){var e=this[0];if(!e){return f==null?null:this;}if(c.isFunction(f)){return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()));});}return"scrollTo" in e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px");};});A.jQuery=A.$=c;})(window);$=jQuery;$(document).ready(function(){$("#mycarousel").each(function(){$("#mycarousel").jcarousel({wrap:"circular",scroll:3,start:1});});fancy_zoom_images();$("#tabs").each(function(){$("#tabs").tabs();});});if(!window.console){var console={};console.log=function(){};}function fancy_zoom_images(){$("a.group").fancybox({transitionIn:"elastic",transitionOut:"elastic",speedIn:400,speedOut:200,overlayShow:true});}function embed_master_player(options){jwplayer(options.div_element).setup({flashplayer:"http://videos.naughtycdn.com/public/swf/sizzler-player.swf",file:"http://videos.naughtycdn.com/public/"+siteShort+"/vids/sizzler_qt.mp4",controlbar:"none","display.showmute":"false",autostart:true,mute:true,height:options.height,width:options.width,events:{onLoad:function(){jwplayer().play();},onComplete:function(){jwplayer().play();}}});$("#audio_btn_wrap").live("click",function(){jwplayer().setMute();});$("#audio_btn_wrap").fadeIn("slow");}function showRequest(formData,jqForm,options){$("#join-button").hide();$("#join_loader").show();}function showResponse(responseText,statusText,xhr,$form){if(responseText.type=="error"){$("#join-button").show();$("#join_loader").hide();alert(responseText.message);}else{document.location=responseText.message;return;}}function checkParemeterExists(parameter,url){fullQString=(url==undefined)?window.location.href:url;paramCount=0;queryStringComplete="?";if(fullQString.length>0){paramArray=fullQString.split("&");for(i=0;i<paramArray.length;i++){currentParameter=paramArray[i].split("=");if(currentParameter[0]==parameter){return true;}}}return false;}function GA_link(obj){var target_link=$(obj).attr("href");if(!checkParemeterExists("ti_code",target_link)){target_link+="&ti_code=setchat";console.log("Forced the fancy Epoch page!");}if($(obj).attr("join_button")=="epoch_button"){_gaq.push(["rollup._trackEvent","A/B Testing","Reassuring Epoch Page","Fancy Join Page (Forced)",1]);console.log("*** Event fired: Fancy Join Page (Forced)");}else{console.log("*** NO Event fired: Fancy Join Page (Forced)");}console.log("Sending Link & Pageview: "+target_link+" : "+$(obj).attr("label"));_gaq.push(["rollup._trackPageview",$(obj).attr("label")]);setTimeout(function(){_gaq.push(["_link",target_link]);},200);}function getUrlVars(){var vars={};var parts=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(m,key,value){vars[key]=value;});return vars;}function getCookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length;}return unescape(document.cookie.substring(c_start,c_end));}}return"";}function setCookie(c_name,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+((expiredays==null)?"":";expires="+exdate.toGMTString())+"; path=/";}/*
 * jCarousel - Riding carousels with jQuery
 *   http://sorgalla.com/jcarousel/
 *
 * Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * Built on top of the jQuery library
 *   http://jquery.com
 *
 * Inspired by the "Carousel Component" by Bill Scott
 *   http://billwscott.com/carousel/
 */
(function(g){var q={vertical:!1,rtl:!1,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,setupCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,animationStepCallback:null,buttonNextHTML:"<div></div>",buttonPrevHTML:"<div></div>",buttonNextEvent:"click",buttonPrevEvent:"click",buttonNextCallback:null,buttonPrevCallback:null,itemFallbackDimension:null},m=!1;g(window).bind("load.jcarousel",function(){m=!0;});g.jcarousel=function(a,c){this.options=g.extend({},q,c||{});this.autoStopped=this.locked=!1;this.buttonPrevState=this.buttonNextState=this.buttonPrev=this.buttonNext=this.list=this.clip=this.container=null;if(!c||c.rtl===void 0){this.options.rtl=(g(a).attr("dir")||g("html").attr("dir")||"").toLowerCase()=="rtl";}this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical?this.options.rtl?"right":"left":"top";for(var b="",d=a.className.split(" "),f=0;f<d.length;f++){if(d[f].indexOf("jcarousel-skin")!=-1){g(a).removeClass(d[f]);b=d[f];break;}}a.nodeName.toUpperCase()=="UL"||a.nodeName.toUpperCase()=="OL"?(this.list=g(a),this.clip=this.list.parents(".jcarousel-clip"),this.container=this.list.parents(".jcarousel-container")):(this.container=g(a),this.list=this.container.find("ul,ol").eq(0),this.clip=this.container.find(".jcarousel-clip"));if(this.clip.size()===0){this.clip=this.list.wrap("<div></div>").parent();}if(this.container.size()===0){this.container=this.clip.wrap("<div></div>").parent();}b!==""&&this.container.parent()[0].className.indexOf("jcarousel-skin")==-1&&this.container.wrap('<div class=" '+b+'"></div>');this.buttonPrev=g(".jcarousel-prev",this.container);if(this.buttonPrev.size()===0&&this.options.buttonPrevHTML!==null){this.buttonPrev=g(this.options.buttonPrevHTML).appendTo(this.container);}this.buttonPrev.addClass(this.className("jcarousel-prev"));this.buttonNext=g(".jcarousel-next",this.container);if(this.buttonNext.size()===0&&this.options.buttonNextHTML!==null){this.buttonNext=g(this.options.buttonNextHTML).appendTo(this.container);}this.buttonNext.addClass(this.className("jcarousel-next"));this.clip.addClass(this.className("jcarousel-clip")).css({position:"relative"});this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,margin:0,padding:0}).css(this.options.rtl?"right":"left",0);this.container.addClass(this.className("jcarousel-container")).css({position:"relative"});!this.options.vertical&&this.options.rtl&&this.container.addClass("jcarousel-direction-rtl").attr("dir","rtl");var j=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible):null,b=this.list.children("li"),e=this;if(b.size()>0){var h=0,i=this.options.offset;b.each(function(){e.format(this,i++);h+=e.dimension(this,j);});this.list.css(this.wh,h+100+"px");if(!c||c.size===void 0){this.options.size=b.size();}}this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display","block");this.funcNext=function(){e.next();};this.funcPrev=function(){e.prev();};this.funcResize=function(){e.resizeTimer&&clearTimeout(e.resizeTimer);e.resizeTimer=setTimeout(function(){e.reload();},100);};this.options.initCallback!==null&&this.options.initCallback(this,"init");!m&&g.browser.safari?(this.buttons(!1,!1),g(window).bind("load.jcarousel",function(){e.setup();})):this.setup();};var f=g.jcarousel;f.fn=f.prototype={jcarousel:"0.2.8"};f.fn.extend=f.extend=g.extend;f.fn.extend({setup:function(){this.prevLast=this.prevFirst=this.last=this.first=null;this.animating=!1;this.tail=this.resizeTimer=this.timer=null;this.inTail=!1;if(!this.locked){this.list.css(this.lt,this.pos(this.options.offset)+"px");var a=this.pos(this.options.start,!0);this.prevFirst=this.prevLast=null;this.animate(a,!1);g(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize);this.options.setupCallback!==null&&this.options.setupCallback(this);}},reset:function(){this.list.empty();this.list.css(this.lt,"0px");this.list.css(this.wh,"10px");this.options.initCallback!==null&&this.options.initCallback(this,"reset");this.setup();},reload:function(){this.tail!==null&&this.inTail&&this.list.css(this.lt,f.intval(this.list.css(this.lt))+this.tail);this.tail=null;this.inTail=!1;this.options.reloadCallback!==null&&this.options.reloadCallback(this);if(this.options.visible!==null){var a=this,c=Math.ceil(this.clipping()/this.options.visible),b=0,d=0;this.list.children("li").each(function(f){b+=a.dimension(this,c);f+1<a.first&&(d=b);});this.list.css(this.wh,b+"px");this.list.css(this.lt,-d+"px");}this.scroll(this.first,!1);},lock:function(){this.locked=!0;this.buttons();},unlock:function(){this.locked=!1;this.buttons();},size:function(a){if(a!==void 0){this.options.size=a,this.locked||this.buttons();}return this.options.size;},has:function(a,c){if(c===void 0||!c){c=a;}if(this.options.size!==null&&c>this.options.size){c=this.options.size;}for(var b=a;b<=c;b++){var d=this.get(b);if(!d.length||d.hasClass("jcarousel-item-placeholder")){return !1;}}return !0;},get:function(a){return g(">.jcarousel-item-"+a,this.list);},add:function(a,c){var b=this.get(a),d=0,p=g(c);if(b.length===0){for(var j,e=f.intval(a),b=this.create(a);;){if(j=this.get(--e),e<=0||j.length){e<=0?this.list.prepend(b):j.after(b);break;}}}else{d=this.dimension(b);}p.get(0).nodeName.toUpperCase()=="LI"?(b.replaceWith(p),b=p):b.empty().append(c);this.format(b.removeClass(this.className("jcarousel-item-placeholder")),a);p=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible):null;d=this.dimension(b,p)-d;a>0&&a<this.first&&this.list.css(this.lt,f.intval(this.list.css(this.lt))-d+"px");this.list.css(this.wh,f.intval(this.list.css(this.wh))+d+"px");return b;},remove:function(a){var c=this.get(a);if(c.length&&!(a>=this.first&&a<=this.last)){var b=this.dimension(c);a<this.first&&this.list.css(this.lt,f.intval(this.list.css(this.lt))+b+"px");c.remove();this.list.css(this.wh,f.intval(this.list.css(this.wh))-b+"px");}},next:function(){this.tail!==null&&!this.inTail?this.scrollTail(!1):this.scroll((this.options.wrap=="both"||this.options.wrap=="last")&&this.options.size!==null&&this.last==this.options.size?1:this.first+this.options.scroll);},prev:function(){this.tail!==null&&this.inTail?this.scrollTail(!0):this.scroll((this.options.wrap=="both"||this.options.wrap=="first")&&this.options.size!==null&&this.first==1?this.options.size:this.first-this.options.scroll);},scrollTail:function(a){if(!this.locked&&!this.animating&&this.tail){this.pauseAuto();var c=f.intval(this.list.css(this.lt)),c=!a?c-this.tail:c+this.tail;this.inTail=!a;this.prevFirst=this.first;this.prevLast=this.last;this.animate(c);}},scroll:function(a,c){!this.locked&&!this.animating&&(this.pauseAuto(),this.animate(this.pos(a),c));},pos:function(a,c){var b=f.intval(this.list.css(this.lt));if(this.locked||this.animating){return b;}this.options.wrap!="circular"&&(a=a<1?1:this.options.size&&a>this.options.size?this.options.size:a);for(var d=this.first>a,g=this.options.wrap!="circular"&&this.first<=1?1:this.first,j=d?this.get(g):this.get(this.last),e=d?g:g-1,h=null,i=0,k=!1,l=0;d?--e>=a:++e<a;){h=this.get(e);k=!h.length;if(h.length===0&&(h=this.create(e).addClass(this.className("jcarousel-item-placeholder")),j[d?"before":"after"](h),this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(e<=0||e>this.options.size))){j=this.get(this.index(e)),j.length&&(h=this.add(e,j.clone(!0)));}j=h;l=this.dimension(h);k&&(i+=l);if(this.first!==null&&(this.options.wrap=="circular"||e>=1&&(this.options.size===null||e<=this.options.size))){b=d?b+l:b-l;}}for(var g=this.clipping(),m=[],o=0,n=0,j=this.get(a-1),e=a;++o;){h=this.get(e);k=!h.length;if(h.length===0){h=this.create(e).addClass(this.className("jcarousel-item-placeholder"));if(j.length===0){this.list.prepend(h);}else{j[d?"before":"after"](h);}if(this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(e<=0||e>this.options.size)){j=this.get(this.index(e)),j.length&&(h=this.add(e,j.clone(!0)));}}j=h;l=this.dimension(h);if(l===0){throw Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...");}this.options.wrap!="circular"&&this.options.size!==null&&e>this.options.size?m.push(h):k&&(i+=l);n+=l;if(n>=g){break;}e++;}for(h=0;h<m.length;h++){m[h].remove();}i>0&&(this.list.css(this.wh,this.dimension(this.list)+i+"px"),d&&(b-=i,this.list.css(this.lt,f.intval(this.list.css(this.lt))-i+"px")));i=a+o-1;if(this.options.wrap!="circular"&&this.options.size&&i>this.options.size){i=this.options.size;}if(e>i){o=0;e=i;for(n=0;++o;){h=this.get(e--);if(!h.length){break;}n+=this.dimension(h);if(n>=g){break;}}}e=i-o+1;this.options.wrap!="circular"&&e<1&&(e=1);if(this.inTail&&d){b+=this.tail,this.inTail=!1;}this.tail=null;if(this.options.wrap!="circular"&&i==this.options.size&&i-o+1>=1&&(d=f.intval(this.get(i).css(!this.options.vertical?"marginRight":"marginBottom")),n-d>g)){this.tail=n-g-d;}if(c&&a===this.options.size&&this.tail){b-=this.tail,this.inTail=!0;}for(;a-->e;){b+=this.dimension(this.get(a));}this.prevFirst=this.first;this.prevLast=this.last;this.first=e;this.last=i;return b;},animate:function(a,c){if(!this.locked&&!this.animating){this.animating=!0;var b=this,d=function(){b.animating=!1;a===0&&b.list.css(b.lt,0);!b.autoStopped&&(b.options.wrap=="circular"||b.options.wrap=="both"||b.options.wrap=="last"||b.options.size===null||b.last<b.options.size||b.last==b.options.size&&b.tail!==null&&!b.inTail)&&b.startAuto();b.buttons();b.notify("onAfterAnimation");if(b.options.wrap=="circular"&&b.options.size!==null){for(var c=b.prevFirst;c<=b.prevLast;c++){c!==null&&!(c>=b.first&&c<=b.last)&&(c<1||c>b.options.size)&&b.remove(c);}}};this.notify("onBeforeAnimation");if(!this.options.animation||c===!1){this.list.css(this.lt,a+"px"),d();}else{var f=!this.options.vertical?this.options.rtl?{right:a}:{left:a}:{top:a},d={duration:this.options.animation,easing:this.options.easing,complete:d};if(g.isFunction(this.options.animationStepCallback)){d.step=this.options.animationStepCallback;}this.list.animate(f,d);}}},startAuto:function(a){if(a!==void 0){this.options.auto=a;}if(this.options.auto===0){return this.stopAuto();}if(this.timer===null){this.autoStopped=!1;var c=this;this.timer=window.setTimeout(function(){c.next();},this.options.auto*1000);}},stopAuto:function(){this.pauseAuto();this.autoStopped=!0;},pauseAuto:function(){if(this.timer!==null){window.clearTimeout(this.timer),this.timer=null;}},buttons:function(a,c){if(a==null&&(a=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="first"||this.options.size===null||this.last<this.options.size),!this.locked&&(!this.options.wrap||this.options.wrap=="first")&&this.options.size!==null&&this.last>=this.options.size)){a=this.tail!==null&&!this.inTail;}if(c==null&&(c=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="last"||this.first>1),!this.locked&&(!this.options.wrap||this.options.wrap=="last")&&this.options.size!==null&&this.first==1)){c=this.tail!==null&&this.inTail;}var b=this;this.buttonNext.size()>0?(this.buttonNext.unbind(this.options.buttonNextEvent+".jcarousel",this.funcNext),a&&this.buttonNext.bind(this.options.buttonNextEvent+".jcarousel",this.funcNext),this.buttonNext[a?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",a?!1:!0),this.options.buttonNextCallback!==null&&this.buttonNext.data("jcarouselstate")!=a&&this.buttonNext.each(function(){b.options.buttonNextCallback(b,this,a);}).data("jcarouselstate",a)):this.options.buttonNextCallback!==null&&this.buttonNextState!=a&&this.options.buttonNextCallback(b,null,a);this.buttonPrev.size()>0?(this.buttonPrev.unbind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),c&&this.buttonPrev.bind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),this.buttonPrev[c?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",c?!1:!0),this.options.buttonPrevCallback!==null&&this.buttonPrev.data("jcarouselstate")!=c&&this.buttonPrev.each(function(){b.options.buttonPrevCallback(b,this,c);}).data("jcarouselstate",c)):this.options.buttonPrevCallback!==null&&this.buttonPrevState!=c&&this.options.buttonPrevCallback(b,null,c);this.buttonNextState=a;this.buttonPrevState=c;},notify:function(a){var c=this.prevFirst===null?"init":this.prevFirst<this.first?"next":"prev";this.callback("itemLoadCallback",a,c);this.prevFirst!==this.first&&(this.callback("itemFirstInCallback",a,c,this.first),this.callback("itemFirstOutCallback",a,c,this.prevFirst));this.prevLast!==this.last&&(this.callback("itemLastInCallback",a,c,this.last),this.callback("itemLastOutCallback",a,c,this.prevLast));this.callback("itemVisibleInCallback",a,c,this.first,this.last,this.prevFirst,this.prevLast);this.callback("itemVisibleOutCallback",a,c,this.prevFirst,this.prevLast,this.first,this.last);},callback:function(a,c,b,d,f,j,e){if(!(this.options[a]==null||typeof this.options[a]!="object"&&c!="onAfterAnimation")){var h=typeof this.options[a]=="object"?this.options[a][c]:this.options[a];if(g.isFunction(h)){var i=this;if(d===void 0){h(i,b,c);}else{if(f===void 0){this.get(d).each(function(){h(i,this,d,b,c);});}else{for(var a=function(a){i.get(a).each(function(){h(i,this,a,b,c);});},k=d;k<=f;k++){k!==null&&!(k>=j&&k<=e)&&a(k);}}}}}},create:function(a){return this.format("<li></li>",a);},format:function(a,c){for(var a=g(a),b=a.get(0).className.split(" "),d=0;d<b.length;d++){b[d].indexOf("jcarousel-")!=-1&&a.removeClass(b[d]);}a.addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+c)).css({"float":this.options.rtl?"right":"left","list-style":"none"}).attr("jcarouselindex",c);return a;},className:function(a){return a+" "+a+(!this.options.vertical?"-horizontal":"-vertical");},dimension:function(a,c){var b=g(a);if(c==null){return !this.options.vertical?b.outerWidth(!0)||f.intval(this.options.itemFallbackDimension):b.outerHeight(!0)||f.intval(this.options.itemFallbackDimension);}else{var d=!this.options.vertical?c-f.intval(b.css("marginLeft"))-f.intval(b.css("marginRight")):c-f.intval(b.css("marginTop"))-f.intval(b.css("marginBottom"));g(b).css(this.wh,d+"px");return this.dimension(b);}},clipping:function(){return !this.options.vertical?this.clip[0].offsetWidth-f.intval(this.clip.css("borderLeftWidth"))-f.intval(this.clip.css("borderRightWidth")):this.clip[0].offsetHeight-f.intval(this.clip.css("borderTopWidth"))-f.intval(this.clip.css("borderBottomWidth"));},index:function(a,c){if(c==null){c=this.options.size;}return Math.round(((a-1)/c-Math.floor((a-1)/c))*c)+1;}});f.extend({defaults:function(a){return g.extend(q,a||{});},intval:function(a){a=parseInt(a,10);return isNaN(a)?0:a;},windowLoaded:function(){m=!0;}});g.fn.jcarousel=function(a){if(typeof a=="string"){var c=g(this).data("jcarousel"),b=Array.prototype.slice.call(arguments,1);return c[a].apply(c,b);}else{return this.each(function(){var b=g(this).data("jcarousel");b?(a&&g.extend(b.options,a),b.reload()):g(this).data("jcarousel",new f(this,a));});}};})(jQuery);(function($){$.PaginationCalculator=function(maxentries,opts){this.maxentries=maxentries;this.opts=opts;};$.extend($.PaginationCalculator.prototype,{numPages:function(){return Math.ceil(this.maxentries/this.opts.items_per_page);},getInterval:function(current_page){var ne_half=Math.ceil(this.opts.num_display_entries/2);var np=this.numPages();var upper_limit=np-this.opts.num_display_entries;var start=current_page>ne_half?Math.max(Math.min(current_page-ne_half,upper_limit),0):0;var end=current_page>ne_half?Math.min(current_page+ne_half,np):Math.min(this.opts.num_display_entries,np);return{start:start,end:end};}});$.PaginationRenderers={};$.PaginationRenderers.defaultRenderer=function(maxentries,opts){this.maxentries=maxentries;this.opts=opts;this.pc=new $.PaginationCalculator(maxentries,opts);};$.extend($.PaginationRenderers.defaultRenderer.prototype,{createLink:function(page_id,current_page,appendopts){var lnk,np=this.pc.numPages();page_id=page_id<0?0:(page_id<np?page_id:np-1);appendopts=$.extend({text:page_id+1,classes:""},appendopts||{});if(page_id==current_page){lnk=$("<span class='current'>"+appendopts.text+"</span>").attr("href",this.opts.link_to.replace(/__id__/,page_id+1));}else{lnk=$("<a href=>"+appendopts.text+"</a>").attr("href",this.opts.link_to.replace(/__id__/,page_id+1));}if(appendopts.classes){lnk.addClass(appendopts.classes);}lnk.data("page_id",page_id);return lnk;},appendRange:function(container,current_page,start,end){var i;for(i=start;i<end;i++){this.createLink(i,current_page).appendTo(container);}},getLinks:function(current_page,eventHandler){var begin,end,interval=this.pc.getInterval(current_page),np=this.pc.numPages(),fragment=$("<div class='jq_pagination'></div>");if(this.opts.prev_text&&(current_page>0||this.opts.prev_show_always)){fragment.append(this.createLink(current_page-1,current_page,{text:this.opts.prev_text,classes:"prev"}));}if(interval.start>0&&this.opts.num_edge_entries>0){end=Math.min(this.opts.num_edge_entries,interval.start);this.appendRange(fragment,current_page,0,end);if(this.opts.num_edge_entries<interval.start&&this.opts.ellipse_text){jQuery("<span>"+this.opts.ellipse_text+"</span>").appendTo(fragment);}}this.appendRange(fragment,current_page,interval.start,interval.end);if(interval.end<np&&this.opts.num_edge_entries>0){if(np-this.opts.num_edge_entries>interval.end&&this.opts.ellipse_text){jQuery("<span>"+this.opts.ellipse_text+"</span>").appendTo(fragment);}begin=Math.max(np-this.opts.num_edge_entries,interval.end);this.appendRange(fragment,current_page,begin,np);}if(this.opts.next_text&&(current_page<np-1||this.opts.next_show_always)){fragment.append(this.createLink(current_page+1,current_page,{text:this.opts.next_text,classes:"next"}));}$("a",fragment).click(eventHandler);return fragment;}});$.fn.jq_pagination=function(maxentries,opts){opts=jQuery.extend({items_per_page:10,num_display_entries:10,current_page:0,num_edge_entries:0,link_to:"#",prev_text:"Prev",next_text:"Next",ellipse_text:"...",prev_show_always:true,next_show_always:true,renderer:"defaultRenderer",callback:function(){return false;}},opts||{});var containers=this,renderer,links,current_page;function pageSelected(evt){var links,current_page=$(evt.target).data("page_id");containers.data("current_page",current_page);links=renderer.getLinks(current_page,pageSelected);containers.empty();links.appendTo(containers);var continuePropagation=opts.callback(current_page,containers);if(!continuePropagation){if(evt.stopPropagation){evt.stopPropagation();}else{evt.cancelBubble=true;}}return continuePropagation;}current_page=opts.current_page;containers.data("current_page",current_page);maxentries=(!maxentries||maxentries<0)?1:maxentries;opts.items_per_page=(!opts.items_per_page||opts.items_per_page<0)?1:opts.items_per_page;if(!$.PaginationRenderers[opts.renderer]){throw new ReferenceError("Pagination renderer '"+opts.renderer+"' was not found in jQuery.PaginationRenderers object.");}renderer=new $.PaginationRenderers[opts.renderer](maxentries,opts);containers.each(function(){this.selectPage=function(page_id){pageSelected(page_id);};this.prevPage=function(){var current_page=containers.data("current_page");if(current_page>0){pageSelected(current_page-1);return true;}else{return false;}};this.nextPage=function(){var current_page=containers.data("current_page");if(current_page<numPages()-1){pageSelected(current_page+1);return true;}else{return false;}};});links=renderer.getLinks(current_page,pageSelected);containers.empty();links.appendTo(containers);opts.callback(current_page,containers);};})(jQuery);jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]]);}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return;}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k);}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j);},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false;}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true;}m[j]=1;l=(m[j]>0);m[j]=0;return l;},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l));},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l);},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)));};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""));}):e.call(this,j));};}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove");});return i.apply(this,arguments);},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui");},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false;});},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1));}).eq(0);}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1));}).eq(0);}return(/fixed/).test(this.css("position"))||!j.length?c(document):j;}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3]);},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length;},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable");}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p);}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"));}return(c.inArray(o,j)!=-1);}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this;}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined);}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o));});};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r);}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p);}}).bind("remove",function(){return m.destroy();});};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option";};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled");},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l);}k={};k[l]=m;}c.each(k,function(n,o){j._setData(n,o);});},_getData:function(j){return this.options[j];},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k);}},enable:function(){this._setData("disabled",false);},disable:function(){this._setData("disabled",true);},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o];}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented());}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k);}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false;}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on");}this.started=false;},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable));},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return;}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true;}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true;},this.options.delay);}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true;}}this._mouseMoveDelegate=function(n){return k._mouseMove(n);};this._mouseUpDelegate=function(n){return k._mouseUp(n);};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true;},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j);}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault();}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j));}return !this._mouseStarted;},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j);}return false;},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance);},_mouseDelayMet:function(j){return this.mouseDelayMet;},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true;}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0};})(jQuery);(function(a){a.widget("ui.tabs",{_init:function(){if(this.options.deselectable!==undefined){this.options.collapsible=this.options.deselectable;}this._tabify(true);},_setData:function(b,c){if(b=="selected"){if(this.options.collapsible&&c==this.options.selected){return;}this.select(c);}else{this.options[b]=c;if(b=="deselectable"){this.options.collapsible=c;}this._tabify();}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+a.data(b);},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:");},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+a.data(this.list[0]));return a.cookie.apply(null,[b].concat(a.makeArray(arguments)));},_ui:function(c,b){return{tab:c,panel:b,index:this.anchors.index(c)};},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=a(this);b.html(b.data("label.tabs")).removeData("label.tabs");});},_tabify:function(n){this.list=this.element.children("ul:first");this.lis=a("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0];});this.panels=a([]);var p=this,d=this.options;var c=/^#.+/;this.anchors.each(function(r,o){var q=a(o).attr("href");var s=q.split("#")[0],u;if(s&&(s===location.toString().split("#")[0]||(u=a("base")[0])&&s===u.href)){q=o.hash;o.href=q;}if(c.test(q)){p.panels=p.panels.add(p._sanitizeSelector(q));}else{if(q!="#"){a.data(o,"href.tabs",q);a.data(o,"load.tabs",q.replace(/#.*$/,""));var w=p._tabId(o);o.href="#"+w;var v=a("#"+w);if(!v.length){v=a(d.panelTemplate).attr("id",w).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(p.panels[r-1]||p.list);v.data("destroy.tabs",true);}p.panels=p.panels.add(v);}else{d.disabled.push(r);}}});if(n){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(d.selected===undefined){if(location.hash){this.anchors.each(function(q,o){if(o.hash==location.hash){d.selected=q;return false;}});}if(typeof d.selected!="number"&&d.cookie){d.selected=parseInt(p._cookie(),10);}if(typeof d.selected!="number"&&this.lis.filter(".ui-tabs-selected").length){d.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));}d.selected=d.selected||0;}else{if(d.selected===null){d.selected=-1;}}d.selected=((d.selected>=0&&this.anchors[d.selected])||d.selected<0)?d.selected:0;d.disabled=a.unique(d.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(q,o){return p.lis.index(q);}))).sort();if(a.inArray(d.selected,d.disabled)!=-1){d.disabled.splice(a.inArray(d.selected,d.disabled),1);}this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(d.selected>=0&&this.anchors.length){this.panels.eq(d.selected).removeClass("ui-tabs-hide");this.lis.eq(d.selected).addClass("ui-tabs-selected ui-state-active");p.element.queue("tabs",function(){p._trigger("show",null,p._ui(p.anchors[d.selected],p.panels[d.selected]));});this.load(d.selected);}a(window).bind("unload",function(){p.lis.add(p.anchors).unbind(".tabs");p.lis=p.anchors=p.panels=null;});}else{d.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));}this.element[d.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");if(d.cookie){this._cookie(d.selected,d.cookie);}for(var g=0,m;(m=this.lis[g]);g++){a(m)[a.inArray(g,d.disabled)!=-1&&!a(m).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");}if(d.cache===false){this.anchors.removeData("cache.tabs");}this.lis.add(this.anchors).unbind(".tabs");if(d.event!="mouseover"){var f=function(o,i){if(i.is(":not(.ui-state-disabled)")){i.addClass("ui-state-"+o);}};var j=function(o,i){i.removeClass("ui-state-"+o);};this.lis.bind("mouseover.tabs",function(){f("hover",a(this));});this.lis.bind("mouseout.tabs",function(){j("hover",a(this));});this.anchors.bind("focus.tabs",function(){f("focus",a(this).closest("li"));});this.anchors.bind("blur.tabs",function(){j("focus",a(this).closest("li"));});}var b,h;if(d.fx){if(a.isArray(d.fx)){b=d.fx[0];h=d.fx[1];}else{b=h=d.fx;}}function e(i,o){i.css({display:""});if(a.browser.msie&&o.opacity){i[0].style.removeAttribute("filter");}}var k=h?function(i,o){a(i).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");o.hide().removeClass("ui-tabs-hide").animate(h,h.duration||"normal",function(){e(o,h);p._trigger("show",null,p._ui(i,o[0]));});}:function(i,o){a(i).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");o.removeClass("ui-tabs-hide");p._trigger("show",null,p._ui(i,o[0]));};var l=b?function(o,i){i.animate(b,b.duration||"normal",function(){p.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");i.addClass("ui-tabs-hide");e(i,b);p.element.dequeue("tabs");});}:function(o,i,q){p.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");i.addClass("ui-tabs-hide");p.element.dequeue("tabs");};this.anchors.bind(d.event+".tabs",function(){var o=this,r=a(this).closest("li"),i=p.panels.filter(":not(.ui-tabs-hide)"),q=a(p._sanitizeSelector(this.hash));if((r.hasClass("ui-tabs-selected")&&!d.collapsible)||r.hasClass("ui-state-disabled")||r.hasClass("ui-state-processing")||p._trigger("select",null,p._ui(this,q[0]))===false){this.blur();return false;}d.selected=p.anchors.index(this);p.abort();if(d.collapsible){if(r.hasClass("ui-tabs-selected")){d.selected=-1;if(d.cookie){p._cookie(d.selected,d.cookie);}p.element.queue("tabs",function(){l(o,i);}).dequeue("tabs");this.blur();return false;}else{if(!i.length){if(d.cookie){p._cookie(d.selected,d.cookie);}p.element.queue("tabs",function(){k(o,q);});p.load(p.anchors.index(this));this.blur();return false;}}}if(d.cookie){p._cookie(d.selected,d.cookie);}if(q.length){if(i.length){p.element.queue("tabs",function(){l(o,i);});}p.element.queue("tabs",function(){k(o,q);});p.load(p.anchors.index(this));}else{throw"jQuery UI Tabs: Mismatching fragment identifier.";}if(a.browser.msie){this.blur();}});this.anchors.bind("click.tabs",function(){return false;});},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var c=a.data(this,"href.tabs");if(c){this.href=c;}var d=a(this).unbind(".tabs");a.each(["href","load","cache"],function(e,f){d.removeData(f+".tabs");});});this.lis.unbind(".tabs").add(this.panels).each(function(){if(a.data(this,"destroy.tabs")){a(this).remove();}else{a(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "));}});if(b.cookie){this._cookie(null,b.cookie);}},add:function(e,d,c){if(c===undefined){c=this.anchors.length;}var b=this,g=this.options,i=a(g.tabTemplate.replace(/#\{href\}/g,e).replace(/#\{label\}/g,d)),h=!e.indexOf("#")?e.replace("#",""):this._tabId(a("a",i)[0]);i.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var f=a("#"+h);if(!f.length){f=a(g.panelTemplate).attr("id",h).data("destroy.tabs",true);}f.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(c>=this.lis.length){i.appendTo(this.list);f.appendTo(this.list[0].parentNode);}else{i.insertBefore(this.lis[c]);f.insertBefore(this.panels[c]);}g.disabled=a.map(g.disabled,function(k,j){return k>=c?++k:k;});this._tabify();if(this.anchors.length==1){i.addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){b._trigger("show",null,b._ui(b.anchors[0],b.panels[0]));});this.load(0);}this._trigger("add",null,this._ui(this.anchors[c],this.panels[c]));},remove:function(b){var d=this.options,e=this.lis.eq(b).remove(),c=this.panels.eq(b).remove();if(e.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(b+(b+1<this.anchors.length?1:-1));}d.disabled=a.map(a.grep(d.disabled,function(g,f){return g!=b;}),function(g,f){return g>=b?--g:g;});this._tabify();this._trigger("remove",null,this._ui(e.find("a")[0],c[0]));},enable:function(b){var c=this.options;if(a.inArray(b,c.disabled)==-1){return;}this.lis.eq(b).removeClass("ui-state-disabled");c.disabled=a.grep(c.disabled,function(e,d){return e!=b;});this._trigger("enable",null,this._ui(this.anchors[b],this.panels[b]));},disable:function(c){var b=this,d=this.options;if(c!=d.selected){this.lis.eq(c).addClass("ui-state-disabled");d.disabled.push(c);d.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[c],this.panels[c]));}},select:function(b){if(typeof b=="string"){b=this.anchors.index(this.anchors.filter("[href$="+b+"]"));}else{if(b===null){b=-1;}}if(b==-1&&this.options.collapsible){b=this.options.selected;}this.anchors.eq(b).trigger(this.options.event+".tabs");},load:function(e){var c=this,g=this.options,b=this.anchors.eq(e)[0],d=a.data(b,"load.tabs");this.abort();if(!d||this.element.queue("tabs").length!==0&&a.data(b,"cache.tabs")){this.element.dequeue("tabs");return;}this.lis.eq(e).addClass("ui-state-processing");if(g.spinner){var f=a("span",b);f.data("label.tabs",f.html()).html(g.spinner);}this.xhr=a.ajax(a.extend({},g.ajaxOptions,{url:d,success:function(i,h){a(c._sanitizeSelector(b.hash)).html(i);c._cleanup();if(g.cache){a.data(b,"cache.tabs",true);}c._trigger("load",null,c._ui(c.anchors[e],c.panels[e]));try{g.ajaxOptions.success(i,h);}catch(j){}c.element.dequeue("tabs");}}));},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr;}this._cleanup();},url:function(c,b){this.anchors.eq(c).removeData("cache.tabs").data("load.tabs",b);},length:function(){return this.anchors.length;}});a.extend(a.ui.tabs,{version:"1.7.2",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"<div></div>",spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(d,f){var b=this,g=this.options;var c=b._rotate||(b._rotate=function(h){clearTimeout(b.rotation);b.rotation=setTimeout(function(){var i=g.selected;b.select(++i<b.anchors.length?i:0);},d);if(h){h.stopPropagation();}});var e=b._unrotate||(b._unrotate=!f?function(h){if(h.clientX){b.rotate(null);}}:function(h){t=g.selected;c();});if(d){this.element.bind("tabsshow",c);this.anchors.bind(g.event+".tabs",e);c();}else{clearTimeout(b.rotation);this.element.unbind("tabsshow",c);this.anchors.unbind(g.event+".tabs",e);delete this._rotate;delete this._unrotate;}}});})(jQuery);/*
 * jQuery UI Widget 1.8.13
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function($,undefined){if($.cleanData){var _cleanData=$.cleanData;$.cleanData=function(elems){for(var i=0,elem;(elem=elems[i])!=null;i++){$(elem).triggerHandler("remove");}_cleanData(elems);};}else{var _remove=$.fn.remove;$.fn.remove=function(selector,keepData){return this.each(function(){if(!keepData){if(!selector||$.filter(selector,[this]).length){$("*",this).add([this]).each(function(){$(this).triggerHandler("remove");});}}return _remove.call($(this),selector,keepData);});};}$.widget=function(name,base,prototype){var namespace=name.split(".")[0],fullName;name=name.split(".")[1];fullName=namespace+"-"+name;if(!prototype){prototype=base;base=$.Widget;}$.expr[":"][fullName]=function(elem){return !!$.data(elem,name);};$[namespace]=$[namespace]||{};$[namespace][name]=function(options,element){if(arguments.length){this._createWidget(options,element);}};var basePrototype=new base();basePrototype.options=$.extend(true,{},basePrototype.options);$[namespace][name].prototype=$.extend(true,basePrototype,{namespace:namespace,widgetName:name,widgetEventPrefix:$[namespace][name].prototype.widgetEventPrefix||name,widgetBaseClass:fullName},prototype);$.widget.bridge(name,$[namespace][name]);};$.widget.bridge=function(name,object){$.fn[name]=function(options){var isMethodCall=typeof options==="string",args=Array.prototype.slice.call(arguments,1),returnValue=this;options=!isMethodCall&&args.length?$.extend.apply(null,[true,options].concat(args)):options;if(isMethodCall&&options.charAt(0)==="_"){return returnValue;}if(isMethodCall){this.each(function(){var instance=$.data(this,name),methodValue=instance&&$.isFunction(instance[options])?instance[options].apply(instance,args):instance;if(methodValue!==instance&&methodValue!==undefined){returnValue=methodValue;return false;}});}else{this.each(function(){var instance=$.data(this,name);if(instance){instance.option(options||{})._init();}else{$.data(this,name,new object(options,this));}});}return returnValue;};};$.Widget=function(options,element){if(arguments.length){this._createWidget(options,element);}};$.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(options,element){$.data(element,this.widgetName,this);this.element=$(element);this.options=$.extend(true,{},this.options,this._getCreateOptions(),options);var self=this;this.element.bind("remove."+this.widgetName,function(){self.destroy();});this._create();this._trigger("create");this._init();},_getCreateOptions:function(){return $.metadata&&$.metadata.get(this.element[0])[this.widgetName];},_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(key,value){var options=key;if(arguments.length===0){return $.extend({},this.options);}if(typeof key==="string"){if(value===undefined){return this.options[key];}options={};options[key]=value;}this._setOptions(options);return this;},_setOptions:function(options){var self=this;$.each(options,function(key,value){self._setOption(key,value);});return this;},_setOption:function(key,value){this.options[key]=value;if(key==="disabled"){this.widget()[value?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",value);}return this;},enable:function(){return this._setOption("disabled",false);},disable:function(){return this._setOption("disabled",true);},_trigger:function(type,event,data){var callback=this.options[type];event=$.Event(event);event.type=(type===this.widgetEventPrefix?type:this.widgetEventPrefix+type).toLowerCase();data=data||{};if(event.originalEvent){for(var i=$.event.props.length,prop;i;){prop=$.event.props[--i];event[prop]=event.originalEvent[prop];}}this.element.trigger(event,data);return !($.isFunction(callback)&&callback.call(this.element[0],event,data)===false||event.isDefaultPrevented());}};})(jQuery);(function($,undefined){var tabId=0,listId=0;function getNextTabId(){return ++tabId;}function getNextListId(){return ++listId;}$.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true);},_setOption:function(key,value){if(key=="selected"){if(this.options.collapsible&&value==this.options.selected){return;}this.select(value);}else{this.options[key]=value;this._tabify();}},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+getNextTabId();},_sanitizeSelector:function(hash){return hash.replace(/:/g,"\\:");},_cookie:function(){var cookie=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+getNextListId());return $.cookie.apply(null,[cookie].concat($.makeArray(arguments)));},_ui:function(tab,panel){return{tab:tab,panel:panel,index:this.anchors.index(tab)};},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var el=$(this);el.html(el.data("label.tabs")).removeData("label.tabs");});},_tabify:function(init){var self=this,o=this.options,fragmentId=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=$(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return $("a",this)[0];});this.panels=$([]);this.anchors.each(function(i,a){var href=$(a).attr("href");var hrefBase=href.split("#")[0],baseEl;if(hrefBase&&(hrefBase===location.toString().split("#")[0]||(baseEl=$("base")[0])&&hrefBase===baseEl.href)){href=a.hash;a.href=href;}if(fragmentId.test(href)){self.panels=self.panels.add(self.element.find(self._sanitizeSelector(href)));}else{if(href&&href!=="#"){$.data(a,"href.tabs",href);$.data(a,"load.tabs",href.replace(/#.*$/,""));var id=self._tabId(a);a.href="#"+id;var $panel=self.element.find("#"+id);if(!$panel.length){$panel=$(o.panelTemplate).attr("id",id).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(self.panels[i-1]||self.list);$panel.data("destroy.tabs",true);}self.panels=self.panels.add($panel);}else{o.disabled.push(i);}}});if(init){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(o.selected===undefined){if(location.hash){this.anchors.each(function(i,a){if(a.hash==location.hash){o.selected=i;return false;}});}if(typeof o.selected!=="number"&&o.cookie){o.selected=parseInt(self._cookie(),10);}if(typeof o.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length){o.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));}o.selected=o.selected||(this.lis.length?0:-1);}else{if(o.selected===null){o.selected=-1;}}o.selected=((o.selected>=0&&this.anchors[o.selected])||o.selected<0)?o.selected:0;o.disabled=$.unique(o.disabled.concat($.map(this.lis.filter(".ui-state-disabled"),function(n,i){return self.lis.index(n);}))).sort();if($.inArray(o.selected,o.disabled)!=-1){o.disabled.splice($.inArray(o.selected,o.disabled),1);}this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(o.selected>=0&&this.anchors.length){self.element.find(self._sanitizeSelector(self.anchors[o.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(o.selected).addClass("ui-tabs-selected ui-state-active");self.element.queue("tabs",function(){self._trigger("show",null,self._ui(self.anchors[o.selected],self.element.find(self._sanitizeSelector(self.anchors[o.selected].hash))[0]));});this.load(o.selected);}$(window).bind("unload",function(){self.lis.add(self.anchors).unbind(".tabs");self.lis=self.anchors=self.panels=null;});}else{o.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));}this.element[o.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");if(o.cookie){this._cookie(o.selected,o.cookie);}for(var i=0,li;(li=this.lis[i]);i++){$(li)[$.inArray(i,o.disabled)!=-1&&!$(li).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");}if(o.cache===false){this.anchors.removeData("cache.tabs");}this.lis.add(this.anchors).unbind(".tabs");if(o.event!=="mouseover"){var addState=function(state,el){if(el.is(":not(.ui-state-disabled)")){el.addClass("ui-state-"+state);}};var removeState=function(state,el){el.removeClass("ui-state-"+state);};this.lis.bind("mouseover.tabs",function(){addState("hover",$(this));});this.lis.bind("mouseout.tabs",function(){removeState("hover",$(this));});this.anchors.bind("focus.tabs",function(){addState("focus",$(this).closest("li"));});this.anchors.bind("blur.tabs",function(){removeState("focus",$(this).closest("li"));});}var hideFx,showFx;if(o.fx){if($.isArray(o.fx)){hideFx=o.fx[0];showFx=o.fx[1];}else{hideFx=showFx=o.fx;}}function resetStyle($el,fx){$el.css("display","");if(!$.support.opacity&&fx.opacity){$el[0].style.removeAttribute("filter");}}var showTab=showFx?function(clicked,$show){$(clicked).closest("li").addClass("ui-tabs-selected ui-state-active");$show.hide().removeClass("ui-tabs-hide").animate(showFx,showFx.duration||"normal",function(){resetStyle($show,showFx);self._trigger("show",null,self._ui(clicked,$show[0]));});}:function(clicked,$show){$(clicked).closest("li").addClass("ui-tabs-selected ui-state-active");$show.removeClass("ui-tabs-hide");self._trigger("show",null,self._ui(clicked,$show[0]));};var hideTab=hideFx?function(clicked,$hide){$hide.animate(hideFx,hideFx.duration||"normal",function(){self.lis.removeClass("ui-tabs-selected ui-state-active");$hide.addClass("ui-tabs-hide");resetStyle($hide,hideFx);self.element.dequeue("tabs");});}:function(clicked,$hide,$show){self.lis.removeClass("ui-tabs-selected ui-state-active");$hide.addClass("ui-tabs-hide");self.element.dequeue("tabs");};this.anchors.bind(o.event+".tabs",function(){var el=this,$li=$(el).closest("li"),$hide=self.panels.filter(":not(.ui-tabs-hide)"),$show=self.element.find(self._sanitizeSelector(el.hash));if(($li.hasClass("ui-tabs-selected")&&!o.collapsible)||$li.hasClass("ui-state-disabled")||$li.hasClass("ui-state-processing")||self.panels.filter(":animated").length||self._trigger("select",null,self._ui(this,$show[0]))===false){this.blur();return false;}o.selected=self.anchors.index(this);self.abort();if(o.collapsible){if($li.hasClass("ui-tabs-selected")){o.selected=-1;if(o.cookie){self._cookie(o.selected,o.cookie);}self.element.queue("tabs",function(){hideTab(el,$hide);}).dequeue("tabs");this.blur();return false;}else{if(!$hide.length){if(o.cookie){self._cookie(o.selected,o.cookie);}self.element.queue("tabs",function(){showTab(el,$show);});self.load(self.anchors.index(this));this.blur();return false;}}}if(o.cookie){self._cookie(o.selected,o.cookie);}if($show.length){if($hide.length){self.element.queue("tabs",function(){hideTab(el,$hide);});}self.element.queue("tabs",function(){showTab(el,$show);});self.load(self.anchors.index(this));}else{throw"jQuery UI Tabs: Mismatching fragment identifier.";}if($.browser.msie){this.blur();}});this.anchors.bind("click.tabs",function(){return false;});},_getIndex:function(index){if(typeof index=="string"){index=this.anchors.index(this.anchors.filter("[href$="+index+"]"));}return index;},destroy:function(){var o=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var href=$.data(this,"href.tabs");if(href){this.href=href;}var $this=$(this).unbind(".tabs");$.each(["href","load","cache"],function(i,prefix){$this.removeData(prefix+".tabs");});});this.lis.unbind(".tabs").add(this.panels).each(function(){if($.data(this,"destroy.tabs")){$(this).remove();}else{$(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "));}});if(o.cookie){this._cookie(null,o.cookie);}return this;},add:function(url,label,index){if(index===undefined){index=this.anchors.length;}var self=this,o=this.options,$li=$(o.tabTemplate.replace(/#\{href\}/g,url).replace(/#\{label\}/g,label)),id=!url.indexOf("#")?url.replace("#",""):this._tabId($("a",$li)[0]);$li.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var $panel=self.element.find("#"+id);if(!$panel.length){$panel=$(o.panelTemplate).attr("id",id).data("destroy.tabs",true);}$panel.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(index>=this.lis.length){$li.appendTo(this.list);$panel.appendTo(this.list[0].parentNode);}else{$li.insertBefore(this.lis[index]);$panel.insertBefore(this.panels[index]);}o.disabled=$.map(o.disabled,function(n,i){return n>=index?++n:n;});this._tabify();if(this.anchors.length==1){o.selected=0;$li.addClass("ui-tabs-selected ui-state-active");$panel.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){self._trigger("show",null,self._ui(self.anchors[0],self.panels[0]));});this.load(0);}this._trigger("add",null,this._ui(this.anchors[index],this.panels[index]));return this;},remove:function(index){index=this._getIndex(index);var o=this.options,$li=this.lis.eq(index).remove(),$panel=this.panels.eq(index).remove();if($li.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(index+(index+1<this.anchors.length?1:-1));}o.disabled=$.map($.grep(o.disabled,function(n,i){return n!=index;}),function(n,i){return n>=index?--n:n;});this._tabify();this._trigger("remove",null,this._ui($li.find("a")[0],$panel[0]));return this;},enable:function(index){index=this._getIndex(index);var o=this.options;if($.inArray(index,o.disabled)==-1){return;}this.lis.eq(index).removeClass("ui-state-disabled");o.disabled=$.grep(o.disabled,function(n,i){return n!=index;});this._trigger("enable",null,this._ui(this.anchors[index],this.panels[index]));return this;},disable:function(index){index=this._getIndex(index);var self=this,o=this.options;if(index!=o.selected){this.lis.eq(index).addClass("ui-state-disabled");o.disabled.push(index);o.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[index],this.panels[index]));}return this;},select:function(index){index=this._getIndex(index);if(index==-1){if(this.options.collapsible&&this.options.selected!=-1){index=this.options.selected;}else{return this;}}this.anchors.eq(index).trigger(this.options.event+".tabs");return this;},load:function(index){index=this._getIndex(index);var self=this,o=this.options,a=this.anchors.eq(index)[0],url=$.data(a,"load.tabs");this.abort();if(!url||this.element.queue("tabs").length!==0&&$.data(a,"cache.tabs")){this.element.dequeue("tabs");return;}this.lis.eq(index).addClass("ui-state-processing");if(o.spinner){var span=$("span",a);span.data("label.tabs",span.html()).html(o.spinner);}this.xhr=$.ajax($.extend({},o.ajaxOptions,{url:url,success:function(r,s){self.element.find(self._sanitizeSelector(a.hash)).html(r);self._cleanup();if(o.cache){$.data(a,"cache.tabs",true);}self._trigger("load",null,self._ui(self.anchors[index],self.panels[index]));try{o.ajaxOptions.success(r,s);}catch(e){}},error:function(xhr,s,e){self._cleanup();self._trigger("load",null,self._ui(self.anchors[index],self.panels[index]));try{o.ajaxOptions.error(xhr,s,index,a);}catch(e){}}}));self.element.dequeue("tabs");return this;},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr;}this._cleanup();return this;},url:function(index,url){this.anchors.eq(index).removeData("cache.tabs").data("load.tabs",url);return this;},length:function(){return this.anchors.length;}});$.extend($.ui.tabs,{version:"1.8.13"});$.extend($.ui.tabs.prototype,{rotation:null,rotate:function(ms,continuing){var self=this,o=this.options;var rotate=self._rotate||(self._rotate=function(e){clearTimeout(self.rotation);self.rotation=setTimeout(function(){var t=o.selected;self.select(++t<self.anchors.length?t:0);},ms);if(e){e.stopPropagation();}});var stop=self._unrotate||(self._unrotate=!continuing?function(e){if(e.clientX){self.rotate(null);}}:function(e){t=o.selected;rotate();});if(ms){this.element.bind("tabsshow",rotate);this.anchors.bind(o.event+".tabs",stop);rotate();}else{clearTimeout(self.rotation);this.element.unbind("tabsshow",rotate);this.anchors.unbind(o.event+".tabs",stop);delete this._rotate;delete this._unrotate;}return this;}});})(jQuery);(function($){var tmp,loading,overlay,wrap,outer,content,close,title,nav_left,nav_right,selectedIndex=0,selectedOpts={},selectedArray=[],currentIndex=0,currentOpts={},currentArray=[],ajaxLoader=null,imgPreloader=new Image(),imgRegExp=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,swfRegExp=/[^\.]\.(swf)\s*$/i,loadingTimer,loadingFrame=1,titleHeight=0,titleStr="",start_pos,final_pos,busy=false,fx=$.extend($("<div/>")[0],{prop:0}),isIE6=$.browser.msie&&$.browser.version<7&&!window.XMLHttpRequest,_abort=function(){loading.hide();imgPreloader.onerror=imgPreloader.onload=null;if(ajaxLoader){ajaxLoader.abort();}tmp.empty();},_error=function(){if(false===selectedOpts.onError(selectedArray,selectedIndex,selectedOpts)){loading.hide();busy=false;return;}selectedOpts.titleShow=false;selectedOpts.width="auto";selectedOpts.height="auto";tmp.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');_process_inline();},_start=function(){var obj=selectedArray[selectedIndex],href,type,title,str,emb,ret;_abort();selectedOpts=$.extend({},$.fn.fancybox.defaults,(typeof $(obj).data("fancybox")=="undefined"?selectedOpts:$(obj).data("fancybox")));ret=selectedOpts.onStart(selectedArray,selectedIndex,selectedOpts);if(ret===false){busy=false;return;}else{if(typeof ret=="object"){selectedOpts=$.extend(selectedOpts,ret);}}title=selectedOpts.title||(obj.nodeName?$(obj).attr("title"):obj.title)||"";if(obj.nodeName&&!selectedOpts.orig){selectedOpts.orig=$(obj).children("img:first").length?$(obj).children("img:first"):$(obj);}if(title===""&&selectedOpts.orig&&selectedOpts.titleFromAlt){title=selectedOpts.orig.attr("alt");}href=selectedOpts.href||(obj.nodeName?$(obj).attr("href"):obj.href)||null;if((/^(?:javascript)/i).test(href)||href=="#"){href=null;}if(selectedOpts.type){type=selectedOpts.type;if(!href){href=selectedOpts.content;}}else{if(selectedOpts.content){type="html";}else{if(href){if(href.match(imgRegExp)){type="image";}else{if(href.match(swfRegExp)){type="swf";}else{if($(obj).hasClass("iframe")){type="iframe";}else{if(href.indexOf("#")===0){type="inline";}else{type="ajax";}}}}}}}if(!type){_error();return;}if(type=="inline"){obj=href.substr(href.indexOf("#"));type=$(obj).length>0?"inline":"ajax";}selectedOpts.type=type;selectedOpts.href=href;selectedOpts.title=title;if(selectedOpts.autoDimensions){if(selectedOpts.type=="html"||selectedOpts.type=="inline"||selectedOpts.type=="ajax"){selectedOpts.width="auto";selectedOpts.height="auto";}else{selectedOpts.autoDimensions=false;}}if(selectedOpts.modal){selectedOpts.overlayShow=true;selectedOpts.hideOnOverlayClick=false;selectedOpts.hideOnContentClick=false;selectedOpts.enableEscapeButton=false;selectedOpts.showCloseButton=false;}selectedOpts.padding=parseInt(selectedOpts.padding,10);selectedOpts.margin=parseInt(selectedOpts.margin,10);tmp.css("padding",(selectedOpts.padding+selectedOpts.margin));$(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){$(this).replaceWith(content.children());});switch(type){case"html":tmp.html(selectedOpts.content);_process_inline();break;case"inline":if($(obj).parent().is("#fancybox-content")===true){busy=false;return;}$('<div class="fancybox-inline-tmp" />').hide().insertBefore($(obj)).bind("fancybox-cleanup",function(){$(this).replaceWith(content.children());}).bind("fancybox-cancel",function(){$(this).replaceWith(tmp.children());});$(obj).appendTo(tmp);_process_inline();break;case"image":busy=false;$.fancybox.showActivity();imgPreloader=new Image();imgPreloader.onerror=function(){_error();};imgPreloader.onload=function(){busy=true;imgPreloader.onerror=imgPreloader.onload=null;_process_image();};imgPreloader.src=href;break;case"swf":selectedOpts.scrolling="no";str='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+selectedOpts.width+'" height="'+selectedOpts.height+'"><param name="movie" value="'+href+'"></param>';emb="";$.each(selectedOpts.swf,function(name,val){str+='<param name="'+name+'" value="'+val+'"></param>';emb+=" "+name+'="'+val+'"';});str+='<embed src="'+href+'" type="application/x-shockwave-flash" width="'+selectedOpts.width+'" height="'+selectedOpts.height+'"'+emb+"></embed></object>";tmp.html(str);_process_inline();break;case"ajax":busy=false;$.fancybox.showActivity();selectedOpts.ajax.win=selectedOpts.ajax.success;ajaxLoader=$.ajax($.extend({},selectedOpts.ajax,{url:href,data:selectedOpts.ajax.data||{},error:function(XMLHttpRequest,textStatus,errorThrown){if(XMLHttpRequest.status>0){_error();}},success:function(data,textStatus,XMLHttpRequest){var o=typeof XMLHttpRequest=="object"?XMLHttpRequest:ajaxLoader;if(o.status==200){if(typeof selectedOpts.ajax.win=="function"){ret=selectedOpts.ajax.win(href,data,textStatus,XMLHttpRequest);if(ret===false){loading.hide();return;}else{if(typeof ret=="string"||typeof ret=="object"){data=ret;}}}tmp.html(data);_process_inline();}}}));break;case"iframe":_show();break;}},_process_inline=function(){var w=selectedOpts.width,h=selectedOpts.height;if(w.toString().indexOf("%")>-1){w=parseInt(($(window).width()-(selectedOpts.margin*2))*parseFloat(w)/100,10)+"px";}else{w=w=="auto"?"auto":w+"px";}if(h.toString().indexOf("%")>-1){h=parseInt(($(window).height()-(selectedOpts.margin*2))*parseFloat(h)/100,10)+"px";}else{h=h=="auto"?"auto":h+"px";}tmp.wrapInner('<div style="width:'+w+";height:"+h+";overflow: "+(selectedOpts.scrolling=="auto"?"auto":(selectedOpts.scrolling=="yes"?"scroll":"hidden"))+';position:relative;"></div>');selectedOpts.width=tmp.width();selectedOpts.height=tmp.height();_show();},_process_image=function(){selectedOpts.width=imgPreloader.width;selectedOpts.height=imgPreloader.height;$("<img />").attr({id:"fancybox-img",src:imgPreloader.src,alt:selectedOpts.title}).appendTo(tmp);_show();},_show=function(){var pos,equal;loading.hide();if(wrap.is(":visible")&&false===currentOpts.onCleanup(currentArray,currentIndex,currentOpts)){$.event.trigger("fancybox-cancel");busy=false;return;}busy=true;$(content.add(overlay)).unbind();$(window).unbind("resize.fb scroll.fb");$(document).unbind("keydown.fb");if(wrap.is(":visible")&&currentOpts.titlePosition!=="outside"){wrap.css("height",wrap.height());}currentArray=selectedArray;currentIndex=selectedIndex;currentOpts=selectedOpts;if(currentOpts.overlayShow){overlay.css({"background-color":currentOpts.overlayColor,opacity:currentOpts.overlayOpacity,cursor:currentOpts.hideOnOverlayClick?"pointer":"auto",height:$(document).height()});if(!overlay.is(":visible")){if(isIE6){$("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden";}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit";});}overlay.show();}}else{overlay.hide();}final_pos=_get_zoom_to();_process_title();if(wrap.is(":visible")){$(close.add(nav_left).add(nav_right)).hide();pos=wrap.position(),start_pos={top:pos.top,left:pos.left,width:wrap.width(),height:wrap.height()};equal=(start_pos.width==final_pos.width&&start_pos.height==final_pos.height);content.fadeTo(currentOpts.changeFade,0.3,function(){var finish_resizing=function(){content.html(tmp.contents()).fadeTo(currentOpts.changeFade,1,_finish);};$.event.trigger("fancybox-change");content.empty().removeAttr("filter").css({"border-width":currentOpts.padding,width:final_pos.width-currentOpts.padding*2,height:selectedOpts.autoDimensions?"auto":final_pos.height-titleHeight-currentOpts.padding*2});if(equal){finish_resizing();}else{fx.prop=0;$(fx).animate({prop:1},{duration:currentOpts.changeSpeed,easing:currentOpts.easingChange,step:_draw,complete:finish_resizing});}});return;}wrap.removeAttr("style");content.css("border-width",currentOpts.padding);if(currentOpts.transitionIn=="elastic"){start_pos=_get_zoom_from();content.html(tmp.contents());wrap.show();if(currentOpts.opacity){final_pos.opacity=0;}fx.prop=0;$(fx).animate({prop:1},{duration:currentOpts.speedIn,easing:currentOpts.easingIn,step:_draw,complete:_finish});return;}if(currentOpts.titlePosition=="inside"&&titleHeight>0){title.show();}content.css({width:final_pos.width-currentOpts.padding*2,height:selectedOpts.autoDimensions?"auto":final_pos.height-titleHeight-currentOpts.padding*2}).html(tmp.contents());wrap.css(final_pos).fadeIn(currentOpts.transitionIn=="none"?0:currentOpts.speedIn,_finish);},_format_title=function(title){if(title&&title.length){if(currentOpts.titlePosition=="float"){return'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+title+'</td><td id="fancybox-title-float-right"></td></tr></table>';}return'<div id="fancybox-title-'+currentOpts.titlePosition+'">'+title+"</div>";}return false;},_process_title=function(){titleStr=currentOpts.title||"";titleHeight=0;title.empty().removeAttr("style").removeClass();if(currentOpts.titleShow===false){title.hide();return;}titleStr=$.isFunction(currentOpts.titleFormat)?currentOpts.titleFormat(titleStr,currentArray,currentIndex,currentOpts):_format_title(titleStr);if(!titleStr||titleStr===""){title.hide();return;}title.addClass("fancybox-title-"+currentOpts.titlePosition).html(titleStr).appendTo("body").show();switch(currentOpts.titlePosition){case"inside":title.css({width:final_pos.width-(currentOpts.padding*2),marginLeft:currentOpts.padding,marginRight:currentOpts.padding});titleHeight=title.outerHeight(true);title.appendTo(outer);final_pos.height+=titleHeight;break;case"over":title.css({marginLeft:currentOpts.padding,width:final_pos.width-(currentOpts.padding*2),bottom:currentOpts.padding}).appendTo(outer);break;case"float":title.css("left",parseInt((title.width()-final_pos.width-40)/2,10)*-1).appendTo(wrap);break;default:title.css({width:final_pos.width-(currentOpts.padding*2),paddingLeft:currentOpts.padding,paddingRight:currentOpts.padding}).appendTo(wrap);break;}title.hide();},_set_navigation=function(){if(currentOpts.enableEscapeButton||currentOpts.enableKeyboardNav){$(document).bind("keydown.fb",function(e){if(e.keyCode==27&&currentOpts.enableEscapeButton){e.preventDefault();$.fancybox.close();}else{if((e.keyCode==37||e.keyCode==39)&&currentOpts.enableKeyboardNav&&e.target.tagName!=="INPUT"&&e.target.tagName!=="TEXTAREA"&&e.target.tagName!=="SELECT"){e.preventDefault();$.fancybox[e.keyCode==37?"prev":"next"]();}}});}if(!currentOpts.showNavArrows){nav_left.hide();nav_right.hide();return;}if((currentOpts.cyclic&&currentArray.length>1)||currentIndex!==0){nav_left.show();}if((currentOpts.cyclic&&currentArray.length>1)||currentIndex!=(currentArray.length-1)){nav_right.show();}},_finish=function(){if(!$.support.opacity){content.get(0).style.removeAttribute("filter");wrap.get(0).style.removeAttribute("filter");}if(selectedOpts.autoDimensions){content.css("height","auto");}wrap.css("height","auto");if(titleStr&&titleStr.length){title.show();}if(currentOpts.showCloseButton){close.show();}_set_navigation();if(currentOpts.hideOnContentClick){content.bind("click",$.fancybox.close);}if(currentOpts.hideOnOverlayClick){overlay.bind("click",$.fancybox.close);}$(window).bind("resize.fb",$.fancybox.resize);if(currentOpts.centerOnScroll){$(window).bind("scroll.fb",$.fancybox.center);}if(currentOpts.type=="iframe"){$('<iframe id="fancybox-frame" name="fancybox-frame'+new Date().getTime()+'" frameborder="0" hspace="0" '+($.browser.msie?'allowtransparency="true""':"")+' scrolling="'+selectedOpts.scrolling+'" src="'+currentOpts.href+'"></iframe>').appendTo(content);}wrap.show();busy=false;$.fancybox.center();currentOpts.onComplete(currentArray,currentIndex,currentOpts);_preload_images();},_preload_images=function(){var href,objNext;if((currentArray.length-1)>currentIndex){href=currentArray[currentIndex+1].href;if(typeof href!=="undefined"&&href.match(imgRegExp)){objNext=new Image();objNext.src=href;}}if(currentIndex>0){href=currentArray[currentIndex-1].href;if(typeof href!=="undefined"&&href.match(imgRegExp)){objNext=new Image();objNext.src=href;}}},_draw=function(pos){var dim={width:parseInt(start_pos.width+(final_pos.width-start_pos.width)*pos,10),height:parseInt(start_pos.height+(final_pos.height-start_pos.height)*pos,10),top:parseInt(start_pos.top+(final_pos.top-start_pos.top)*pos,10),left:parseInt(start_pos.left+(final_pos.left-start_pos.left)*pos,10)};if(typeof final_pos.opacity!=="undefined"){dim.opacity=pos<0.5?0.5:pos;}wrap.css(dim);content.css({width:dim.width-currentOpts.padding*2,height:dim.height-(titleHeight*pos)-currentOpts.padding*2});},_get_viewport=function(){return[$(window).width()-(currentOpts.margin*2),$(window).height()-(currentOpts.margin*2),$(document).scrollLeft()+currentOpts.margin,$(document).scrollTop()+currentOpts.margin];},_get_zoom_to=function(){var view=_get_viewport(),to={},resize=currentOpts.autoScale,double_padding=currentOpts.padding*2,ratio;if(currentOpts.width.toString().indexOf("%")>-1){to.width=parseInt((view[0]*parseFloat(currentOpts.width))/100,10);}else{to.width=currentOpts.width+double_padding;}if(currentOpts.height.toString().indexOf("%")>-1){to.height=parseInt((view[1]*parseFloat(currentOpts.height))/100,10);}else{to.height=currentOpts.height+double_padding;}if(resize&&(to.width>view[0]||to.height>view[1])){if(selectedOpts.type=="image"||selectedOpts.type=="swf"){ratio=(currentOpts.width)/(currentOpts.height);if((to.width)>view[0]){to.width=view[0];to.height=parseInt(((to.width-double_padding)/ratio)+double_padding,10);}if((to.height)>view[1]){to.height=view[1];to.width=parseInt(((to.height-double_padding)*ratio)+double_padding,10);}}else{to.width=Math.min(to.width,view[0]);to.height=Math.min(to.height,view[1]);}}to.top=parseInt(Math.max(view[3]-20,view[3]+((view[1]-to.height-40)*0.5)),10);to.left=parseInt(Math.max(view[2]-20,view[2]+((view[0]-to.width-40)*0.5)),10);return to;},_get_obj_pos=function(obj){var pos=obj.offset();pos.top+=parseInt(obj.css("paddingTop"),10)||0;pos.left+=parseInt(obj.css("paddingLeft"),10)||0;pos.top+=parseInt(obj.css("border-top-width"),10)||0;pos.left+=parseInt(obj.css("border-left-width"),10)||0;pos.width=obj.width();pos.height=obj.height();return pos;},_get_zoom_from=function(){var orig=selectedOpts.orig?$(selectedOpts.orig):false,from={},pos,view;if(orig&&orig.length){pos=_get_obj_pos(orig);from={width:pos.width+(currentOpts.padding*2),height:pos.height+(currentOpts.padding*2),top:pos.top-currentOpts.padding-20,left:pos.left-currentOpts.padding-20};}else{view=_get_viewport();from={width:currentOpts.padding*2,height:currentOpts.padding*2,top:parseInt(view[3]+view[1]*0.5,10),left:parseInt(view[2]+view[0]*0.5,10)};}return from;},_animate_loading=function(){if(!loading.is(":visible")){clearInterval(loadingTimer);return;}$("div",loading).css("top",(loadingFrame*-40)+"px");loadingFrame=(loadingFrame+1)%12;};$.fn.fancybox=function(options){if(!$(this).length){return this;}$(this).data("fancybox",$.extend({},options,($.metadata?$(this).metadata():{}))).unbind("click.fb").bind("click.fb",function(e){e.preventDefault();if(busy){return;}busy=true;$(this).blur();selectedArray=[];selectedIndex=0;var rel=$(this).attr("rel")||"";if(!rel||rel==""||rel==="nofollow"){selectedArray.push(this);}else{selectedArray=$("a[rel="+rel+"], area[rel="+rel+"]");selectedIndex=selectedArray.index(this);}_start();return;});return this;};$.fancybox=function(obj){var opts;if(busy){return;}busy=true;opts=typeof arguments[1]!=="undefined"?arguments[1]:{};selectedArray=[];selectedIndex=parseInt(opts.index,10)||0;if($.isArray(obj)){for(var i=0,j=obj.length;i<j;i++){if(typeof obj[i]=="object"){$(obj[i]).data("fancybox",$.extend({},opts,obj[i]));}else{obj[i]=$({}).data("fancybox",$.extend({content:obj[i]},opts));}}selectedArray=jQuery.merge(selectedArray,obj);}else{if(typeof obj=="object"){$(obj).data("fancybox",$.extend({},opts,obj));}else{obj=$({}).data("fancybox",$.extend({content:obj},opts));}selectedArray.push(obj);}if(selectedIndex>selectedArray.length||selectedIndex<0){selectedIndex=0;}_start();};$.fancybox.showActivity=function(){clearInterval(loadingTimer);loading.show();loadingTimer=setInterval(_animate_loading,66);};$.fancybox.hideActivity=function(){loading.hide();};$.fancybox.next=function(){return $.fancybox.pos(currentIndex+1);};$.fancybox.prev=function(){return $.fancybox.pos(currentIndex-1);};$.fancybox.pos=function(pos){if(busy){return;}pos=parseInt(pos);selectedArray=currentArray;if(pos>-1&&pos<currentArray.length){selectedIndex=pos;_start();}else{if(currentOpts.cyclic&&currentArray.length>1){selectedIndex=pos>=currentArray.length?0:currentArray.length-1;_start();}}return;};$.fancybox.cancel=function(){if(busy){return;}busy=true;$.event.trigger("fancybox-cancel");_abort();selectedOpts.onCancel(selectedArray,selectedIndex,selectedOpts);busy=false;};$.fancybox.close=function(){if(busy||wrap.is(":hidden")){return;}busy=true;if(currentOpts&&false===currentOpts.onCleanup(currentArray,currentIndex,currentOpts)){busy=false;return;}_abort();$(close.add(nav_left).add(nav_right)).hide();$(content.add(overlay)).unbind();$(window).unbind("resize.fb scroll.fb");$(document).unbind("keydown.fb");content.find("iframe").attr("src",isIE6&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");if(currentOpts.titlePosition!=="inside"){title.empty();}wrap.stop();function _cleanup(){overlay.fadeOut("fast");title.empty().hide();wrap.hide();$.event.trigger("fancybox-cleanup");content.empty();currentOpts.onClosed(currentArray,currentIndex,currentOpts);currentArray=selectedOpts=[];currentIndex=selectedIndex=0;currentOpts=selectedOpts={};busy=false;}if(currentOpts.transitionOut=="elastic"){start_pos=_get_zoom_from();var pos=wrap.position();final_pos={top:pos.top,left:pos.left,width:wrap.width(),height:wrap.height()};if(currentOpts.opacity){final_pos.opacity=1;}title.empty().hide();fx.prop=1;$(fx).animate({prop:0},{duration:currentOpts.speedOut,easing:currentOpts.easingOut,step:_draw,complete:_cleanup});}else{wrap.fadeOut(currentOpts.transitionOut=="none"?0:currentOpts.speedOut,_cleanup);}};$.fancybox.resize=function(){if(overlay.is(":visible")){overlay.css("height",$(document).height());}$.fancybox.center(true);};$.fancybox.center=function(){var view,align;if(busy){return;}align=arguments[0]===true?1:0;view=_get_viewport();if(!align&&(wrap.width()>view[0]||wrap.height()>view[1])){return;}wrap.stop().animate({top:parseInt(Math.max(view[3]-20,view[3]+((view[1]-content.height()-40)*0.5)-currentOpts.padding)),left:parseInt(Math.max(view[2]-20,view[2]+((view[0]-content.width()-40)*0.5)-currentOpts.padding))},typeof arguments[0]=="number"?arguments[0]:200);};$.fancybox.init=function(){if($("#fancybox-wrap").length){return;}$("body").append(tmp=$('<div id="fancybox-tmp"></div>'),loading=$('<div id="fancybox-loading"><div></div></div>'),overlay=$('<div id="fancybox-overlay"></div>'),wrap=$('<div id="fancybox-wrap"></div>'));outer=$('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(wrap);outer.append(content=$('<div id="fancybox-content"></div>'),close=$('<a id="fancybox-close"></a>'),title=$('<div id="fancybox-title"></div>'),nav_left=$('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),nav_right=$('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));close.click($.fancybox.close);loading.click($.fancybox.cancel);nav_left.click(function(e){e.preventDefault();$.fancybox.prev();});nav_right.click(function(e){e.preventDefault();$.fancybox.next();});if($.fn.mousewheel){wrap.bind("mousewheel.fb",function(e,delta){if(busy){e.preventDefault();}else{if($(e.target).get(0).clientHeight==0||$(e.target).get(0).scrollHeight===$(e.target).get(0).clientHeight){e.preventDefault();$.fancybox[delta>0?"prev":"next"]();}}});}if(!$.support.opacity){wrap.addClass("fancybox-ie");}if(isIE6){loading.addClass("fancybox-ie6");wrap.addClass("fancybox-ie6");$('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(outer);}};$.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};$(document).ready(function(){$.fancybox.init();});})(jQuery);/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
var swfobject=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",ON_READY_STATE_CHANGE="onreadystatechange",win=window,doc=document,nav=navigator,plugin=false,domLoadFnArr=[main],regObjArr=[],objIdArr=[],listenersArr=[],storedAltContent,storedAltContentId,storedCallbackFn,storedCallbackObj,isDomLoaded=false,isExpressInstallActive=false,dynamicStylesheet,dynamicStylesheetMedia,autoHideShow=true,ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF,u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=!+"\v1",playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d&&!(typeof nav.mimeTypes!=UNDEF&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){plugin=true;ie=false;d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/[a-zA-Z]/.test(d)?parseInt(d.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0;}}else{if(typeof win.ActiveXObject!=UNDEF){try{var a=new ActiveXObject(SHOCKWAVE_FLASH_AX);if(a){d=a.GetVariable("$version");if(d){ie=true;d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)];}}}catch(e){}}}return{w3:w3cdom,pv:playerVersion,wk:webkit,ie:ie,win:windows,mac:mac};}(),onDomLoad=function(){if(!ua.w3){return;}if((typeof doc.readyState!=UNDEF&&doc.readyState=="complete")||(typeof doc.readyState==UNDEF&&(doc.getElementsByTagName("body")[0]||doc.body))){callDomLoadFunctions();}if(!isDomLoaded){if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,false);}if(ua.ie&&ua.win){doc.attachEvent(ON_READY_STATE_CHANGE,function(){if(doc.readyState=="complete"){doc.detachEvent(ON_READY_STATE_CHANGE,arguments.callee);callDomLoadFunctions();}});if(win==top){(function(){if(isDomLoaded){return;}try{doc.documentElement.doScroll("left");}catch(e){setTimeout(arguments.callee,0);return;}callDomLoadFunctions();})();}}if(ua.wk){(function(){if(isDomLoaded){return;}if(!/loaded|complete/.test(doc.readyState)){setTimeout(arguments.callee,0);return;}callDomLoadFunctions();})();}addLoadEvent(callDomLoadFunctions);}}();function callDomLoadFunctions(){if(isDomLoaded){return;}try{var t=doc.getElementsByTagName("body")[0].appendChild(createElement("span"));t.parentNode.removeChild(t);}catch(e){return;}isDomLoaded=true;var dl=domLoadFnArr.length;for(var i=0;i<dl;i++){domLoadFnArr[i]();}}function addDomLoadEvent(fn){if(isDomLoaded){fn();}else{domLoadFnArr[domLoadFnArr.length]=fn;}}function addLoadEvent(fn){if(typeof win.addEventListener!=UNDEF){win.addEventListener("load",fn,false);}else{if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("load",fn,false);}else{if(typeof win.attachEvent!=UNDEF){addListener(win,"onload",fn);}else{if(typeof win.onload=="function"){var fnOld=win.onload;win.onload=function(){fnOld();fn();};}else{win.onload=fn;}}}}}function main(){if(plugin){testPlayerVersion();}else{matchVersions();}}function testPlayerVersion(){var b=doc.getElementsByTagName("body")[0];var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);var t=b.appendChild(o);if(t){var counter=0;(function(){if(typeof t.GetVariable!=UNDEF){var d=t.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");ua.pv=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)];}}else{if(counter<10){counter++;setTimeout(arguments.callee,10);return;}}b.removeChild(o);t=null;matchVersions();})();}else{matchVersions();}}function matchVersions(){var rl=regObjArr.length;if(rl>0){for(var i=0;i<rl;i++){var id=regObjArr[i].id;var cb=regObjArr[i].callbackFn;var cbObj={success:false,id:id};if(ua.pv[0]>0){var obj=getElementById(id);if(obj){if(hasPlayerVersion(regObjArr[i].swfVersion)&&!(ua.wk&&ua.wk<312)){setVisibility(id,true);if(cb){cbObj.success=true;cbObj.ref=getObjectById(id);cb(cbObj);}}else{if(regObjArr[i].expressInstall&&canExpressInstall()){var att={};att.data=regObjArr[i].expressInstall;att.width=obj.getAttribute("width")||"0";att.height=obj.getAttribute("height")||"0";if(obj.getAttribute("class")){att.styleclass=obj.getAttribute("class");}if(obj.getAttribute("align")){att.align=obj.getAttribute("align");}var par={};var p=obj.getElementsByTagName("param");var pl=p.length;for(var j=0;j<pl;j++){if(p[j].getAttribute("name").toLowerCase()!="movie"){par[p[j].getAttribute("name")]=p[j].getAttribute("value");}}showExpressInstall(att,par,id,cb);}else{displayAltContent(obj);if(cb){cb(cbObj);}}}}}else{setVisibility(id,true);if(cb){var o=getObjectById(id);if(o&&typeof o.SetVariable!=UNDEF){cbObj.success=true;cbObj.ref=o;}cb(cbObj);}}}}}function getObjectById(objectIdStr){var r=null;var o=getElementById(objectIdStr);if(o&&o.nodeName=="OBJECT"){if(typeof o.SetVariable!=UNDEF){r=o;}else{var n=o.getElementsByTagName(OBJECT)[0];if(n){r=n;}}}return r;}function canExpressInstall(){return !isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)&&!(ua.wk&&ua.wk<312);}function showExpressInstall(att,par,replaceElemIdStr,callbackFn){isExpressInstallActive=true;storedCallbackFn=callbackFn||null;storedCallbackObj={success:false,id:replaceElemIdStr};var obj=getElementById(replaceElemIdStr);if(obj){if(obj.nodeName=="OBJECT"){storedAltContent=abstractAltContent(obj);storedAltContentId=null;}else{storedAltContent=obj;storedAltContentId=replaceElemIdStr;}att.id=EXPRESS_INSTALL_ID;if(typeof att.width==UNDEF||(!/%$/.test(att.width)&&parseInt(att.width,10)<310)){att.width="310";}if(typeof att.height==UNDEF||(!/%$/.test(att.height)&&parseInt(att.height,10)<137)){att.height="137";}doc.title=doc.title.slice(0,47)+" - Flash Player Installation";var pt=ua.ie&&ua.win?"ActiveX":"PlugIn",fv="MMredirectURL="+win.location.toString().replace(/&/g,"%26")+"&MMplayerType="+pt+"&MMdoctitle="+doc.title;if(typeof par.flashvars!=UNDEF){par.flashvars+="&"+fv;}else{par.flashvars=fv;}if(ua.ie&&ua.win&&obj.readyState!=4){var newObj=createElement("div");replaceElemIdStr+="SWFObjectNew";newObj.setAttribute("id",replaceElemIdStr);obj.parentNode.insertBefore(newObj,obj);obj.style.display="none";(function(){if(obj.readyState==4){obj.parentNode.removeChild(obj);}else{setTimeout(arguments.callee,10);}})();}createSWF(att,par,replaceElemIdStr);}}function displayAltContent(obj){if(ua.ie&&ua.win&&obj.readyState!=4){var el=createElement("div");obj.parentNode.insertBefore(el,obj);el.parentNode.replaceChild(abstractAltContent(obj),el);obj.style.display="none";(function(){if(obj.readyState==4){obj.parentNode.removeChild(obj);}else{setTimeout(arguments.callee,10);}})();}else{obj.parentNode.replaceChild(abstractAltContent(obj),obj);}}function abstractAltContent(obj){var ac=createElement("div");if(ua.win&&ua.ie){ac.innerHTML=obj.innerHTML;}else{var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var c=nestedObj.childNodes;if(c){var cl=c.length;for(var i=0;i<cl;i++){if(!(c[i].nodeType==1&&c[i].nodeName=="PARAM")&&!(c[i].nodeType==8)){ac.appendChild(c[i].cloneNode(true));}}}}}return ac;}function createSWF(attObj,parObj,id){var r,el=getElementById(id);if(ua.wk&&ua.wk<312){return r;}if(el){if(typeof attObj.id==UNDEF){attObj.id=id;}if(ua.ie&&ua.win){var att="";for(var i in attObj){if(attObj[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){parObj.movie=attObj[i];}else{if(i.toLowerCase()=="styleclass"){att+=' class="'+attObj[i]+'"';}else{if(i.toLowerCase()!="classid"){att+=" "+i+'="'+attObj[i]+'"';}}}}}var par="";for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par+='<param name="'+j+'" value="'+parObj[j]+'" />';}}el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+att+">"+par+"</object>";objIdArr[objIdArr.length]=attObj.id;r=getElementById(attObj.id);}else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in attObj){if(attObj[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",attObj[m]);}else{if(m.toLowerCase()!="classid"){o.setAttribute(m,attObj[m]);}}}}for(var n in parObj){if(parObj[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){createObjParam(o,n,parObj[n]);}}el.parentNode.replaceChild(o,el);r=o;}}return r;}function createObjParam(el,pName,pValue){var p=createElement("param");p.setAttribute("name",pName);p.setAttribute("value",pValue);el.appendChild(p);}function removeSWF(id){var obj=getElementById(id);if(obj&&obj.nodeName=="OBJECT"){if(ua.ie&&ua.win){obj.style.display="none";(function(){if(obj.readyState==4){removeObjectInIE(id);}else{setTimeout(arguments.callee,10);}})();}else{obj.parentNode.removeChild(obj);}}}function removeObjectInIE(id){var obj=getElementById(id);if(obj){for(var i in obj){if(typeof obj[i]=="function"){obj[i]=null;}}obj.parentNode.removeChild(obj);}}function getElementById(id){var el=null;try{el=doc.getElementById(id);}catch(e){}return el;}function createElement(el){return doc.createElement(el);}function addListener(target,eventType,fn){target.attachEvent(eventType,fn);listenersArr[listenersArr.length]=[target,eventType,fn];}function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10)||0;v[2]=parseInt(v[2],10)||0;return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:false;}function createCSS(sel,decl,media,newStyle){if(ua.ie&&ua.mac){return;}var h=doc.getElementsByTagName("head")[0];if(!h){return;}var m=(media&&typeof media=="string")?media:"screen";if(newStyle){dynamicStylesheet=null;dynamicStylesheetMedia=null;}if(!dynamicStylesheet||dynamicStylesheetMedia!=m){var s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media",m);dynamicStylesheet=h.appendChild(s);if(ua.ie&&ua.win&&typeof doc.styleSheets!=UNDEF&&doc.styleSheets.length>0){dynamicStylesheet=doc.styleSheets[doc.styleSheets.length-1];}dynamicStylesheetMedia=m;}if(ua.ie&&ua.win){if(dynamicStylesheet&&typeof dynamicStylesheet.addRule==OBJECT){dynamicStylesheet.addRule(sel,decl);}}else{if(dynamicStylesheet&&typeof doc.createTextNode!=UNDEF){dynamicStylesheet.appendChild(doc.createTextNode(sel+" {"+decl+"}"));}}}function setVisibility(id,isVisible){if(!autoHideShow){return;}var v=isVisible?"visible":"hidden";if(isDomLoaded&&getElementById(id)){getElementById(id).style.visibility=v;}else{createCSS("#"+id,"visibility:"+v);}}function urlEncodeIfNecessary(s){var regex=/[\\\"<>\.;]/;var hasBadChars=regex.exec(s)!=null;return hasBadChars&&typeof encodeURIComponent!=UNDEF?encodeURIComponent(s):s;}var cleanup=function(){if(ua.ie&&ua.win){window.attachEvent("onunload",function(){var ll=listenersArr.length;for(var i=0;i<ll;i++){listenersArr[i][0].detachEvent(listenersArr[i][1],listenersArr[i][2]);}var il=objIdArr.length;for(var j=0;j<il;j++){removeSWF(objIdArr[j]);}for(var k in ua){ua[k]=null;}ua=null;for(var l in swfobject){swfobject[l]=null;}swfobject=null;});}}();return{registerObject:function(objectIdStr,swfVersionStr,xiSwfUrlStr,callbackFn){if(ua.w3&&objectIdStr&&swfVersionStr){var regObj={};regObj.id=objectIdStr;regObj.swfVersion=swfVersionStr;regObj.expressInstall=xiSwfUrlStr;regObj.callbackFn=callbackFn;regObjArr[regObjArr.length]=regObj;setVisibility(objectIdStr,false);}else{if(callbackFn){callbackFn({success:false,id:objectIdStr});}}},getObjectById:function(objectIdStr){if(ua.w3){return getObjectById(objectIdStr);}},embedSWF:function(swfUrlStr,replaceElemIdStr,widthStr,heightStr,swfVersionStr,xiSwfUrlStr,flashvarsObj,parObj,attObj,callbackFn){var callbackObj={success:false,id:replaceElemIdStr};if(ua.w3&&!(ua.wk&&ua.wk<312)&&swfUrlStr&&replaceElemIdStr&&widthStr&&heightStr&&swfVersionStr){setVisibility(replaceElemIdStr,false);addDomLoadEvent(function(){widthStr+="";heightStr+="";var att={};if(attObj&&typeof attObj===OBJECT){for(var i in attObj){att[i]=attObj[i];}}att.data=swfUrlStr;att.width=widthStr;att.height=heightStr;var par={};if(parObj&&typeof parObj===OBJECT){for(var j in parObj){par[j]=parObj[j];}}if(flashvarsObj&&typeof flashvarsObj===OBJECT){for(var k in flashvarsObj){if(typeof par.flashvars!=UNDEF){par.flashvars+="&"+k+"="+flashvarsObj[k];}else{par.flashvars=k+"="+flashvarsObj[k];}}}if(hasPlayerVersion(swfVersionStr)){var obj=createSWF(att,par,replaceElemIdStr);if(att.id==replaceElemIdStr){setVisibility(replaceElemIdStr,true);}callbackObj.success=true;callbackObj.ref=obj;}else{if(xiSwfUrlStr&&canExpressInstall()){att.data=xiSwfUrlStr;showExpressInstall(att,par,replaceElemIdStr,callbackFn);return;}else{setVisibility(replaceElemIdStr,true);}}if(callbackFn){callbackFn(callbackObj);}});}else{if(callbackFn){callbackFn(callbackObj);}}},switchOffAutoHideShow:function(){autoHideShow=false;},ua:ua,getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]};},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(attObj,parObj,replaceElemIdStr){if(ua.w3){return createSWF(attObj,parObj,replaceElemIdStr);}else{return undefined;}},showExpressInstall:function(att,par,replaceElemIdStr,callbackFn){if(ua.w3&&canExpressInstall()){showExpressInstall(att,par,replaceElemIdStr,callbackFn);}},removeSWF:function(objElemIdStr){if(ua.w3){removeSWF(objElemIdStr);}},createCSS:function(selStr,declStr,mediaStr,newStyleBoolean){if(ua.w3){createCSS(selStr,declStr,mediaStr,newStyleBoolean);}},addDomLoadEvent:addDomLoadEvent,addLoadEvent:addLoadEvent,getQueryParamValue:function(param){var q=doc.location.search||doc.location.hash;if(q){if(/\?/.test(q)){q=q.split("?")[1];}if(param==null){return urlEncodeIfNecessary(q);}var pairs=q.split("&");for(var i=0;i<pairs.length;i++){if(pairs[i].substring(0,pairs[i].indexOf("="))==param){return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=")+1)));}}}return"";},expressInstallCallback:function(){if(isExpressInstallActive){var obj=getElementById(EXPRESS_INSTALL_ID);if(obj&&storedAltContent){obj.parentNode.replaceChild(storedAltContent,obj);if(storedAltContentId){setVisibility(storedAltContentId,true);if(ua.ie&&ua.win){storedAltContent.style.display="block";}}if(storedCallbackFn){storedCallbackFn(storedCallbackObj);}}isExpressInstallActive=false;}}};}();(function(c,h){c.fn.jPlayer=function(a){var b=typeof a==="string",d=Array.prototype.slice.call(arguments,1),f=this;a=!b&&d.length?c.extend.apply(null,[true,a].concat(d)):a;if(b&&a.charAt(0)==="_"){return f;}b?this.each(function(){var e=c.data(this,"jPlayer"),g=e&&c.isFunction(e[a])?e[a].apply(e,d):e;if(g!==e&&g!==h){f=g;return false;}}):this.each(function(){var e=c.data(this,"jPlayer");if(e){e.option(a||{})._init();e.option(a||{});}else{c.data(this,"jPlayer",new c.jPlayer(a,this));}});return f;};c.jPlayer=function(a,b){if(arguments.length){this.element=c(b);this.options=c.extend(true,{},this.options,a);var d=this;this.element.bind("remove.jPlayer",function(){d.destroy();});this._init();}};c.jPlayer.event={ready:"jPlayer_ready",resize:"jPlayer_resize",error:"jPlayer_error",warning:"jPlayer_warning",loadstart:"jPlayer_loadstart",progress:"jPlayer_progress",suspend:"jPlayer_suspend",abort:"jPlayer_abort",emptied:"jPlayer_emptied",stalled:"jPlayer_stalled",play:"jPlayer_play",pause:"jPlayer_pause",loadedmetadata:"jPlayer_loadedmetadata",loadeddata:"jPlayer_loadeddata",waiting:"jPlayer_waiting",playing:"jPlayer_playing",canplay:"jPlayer_canplay",canplaythrough:"jPlayer_canplaythrough",seeking:"jPlayer_seeking",seeked:"jPlayer_seeked",timeupdate:"jPlayer_timeupdate",ended:"jPlayer_ended",ratechange:"jPlayer_ratechange",durationchange:"jPlayer_durationchange",volumechange:"jPlayer_volumechange"};c.jPlayer.htmlEvent=["loadstart","abort","emptied","stalled","loadedmetadata","loadeddata","canplaythrough","ratechange"];c.jPlayer.pause=function(){c.each(c.jPlayer.prototype.instances,function(a,b){b.data("jPlayer").status.srcSet&&b.jPlayer("pause");});};c.jPlayer.timeFormat={showHour:false,showMin:true,showSec:true,padHour:false,padMin:true,padSec:true,sepHour:":",sepMin:":",sepSec:""};c.jPlayer.convertTime=function(a){a=new Date(a*1000);var b=a.getUTCHours(),d=a.getUTCMinutes();a=a.getUTCSeconds();b=c.jPlayer.timeFormat.padHour&&b<10?"0"+b:b;d=c.jPlayer.timeFormat.padMin&&d<10?"0"+d:d;a=c.jPlayer.timeFormat.padSec&&a<10?"0"+a:a;return(c.jPlayer.timeFormat.showHour?b+c.jPlayer.timeFormat.sepHour:"")+(c.jPlayer.timeFormat.showMin?d+c.jPlayer.timeFormat.sepMin:"")+(c.jPlayer.timeFormat.showSec?a+c.jPlayer.timeFormat.sepSec:"");};c.jPlayer.uaMatch=function(a){a=a.toLowerCase();var b=/(opera)(?:.*version)?[ \/]([\w.]+)/,d=/(msie) ([\w.]+)/,f=/(mozilla)(?:.*? rv:([\w.]+))?/;a=/(webkit)[ \/]([\w.]+)/.exec(a)||b.exec(a)||d.exec(a)||a.indexOf("compatible")<0&&f.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"};};c.jPlayer.browser={};var m=c.jPlayer.uaMatch(navigator.userAgent);if(m.browser){c.jPlayer.browser[m.browser]=true;c.jPlayer.browser.version=m.version;}c.jPlayer.prototype={count:0,version:{script:"2.0.0",needFlash:"2.0.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",preload:"metadata",volume:0.8,muted:false,backgroundColor:"#000000",cssSelectorAncestor:"#jp_interface_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",currentTime:".jp-current-time",duration:".jp-duration"},idPrefix:"jp",errorAlerts:false,warningAlerts:false},instances:{},status:{src:"",media:{},paused:true,format:{},formatType:"",waitForPlay:true,waitForLoad:true,srcSet:false,video:false,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0},_status:{volume:h,muted:false,width:0,height:0},internal:{ready:false,instance:h,htmlDlyCmdId:h},solution:{html:true,flash:true},format:{mp3:{codec:'audio/mpeg; codecs="mp3"',flashCanPlay:true,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:true,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis"',flashCanPlay:false,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:false,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:false,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:true,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:false,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:false,media:"video"}},_init:function(){var a=this;this.element.empty();this.status=c.extend({},this.status,this._status);this.internal=c.extend({},this.internal);this.formats=[];this.solutions=[];this.require={};this.htmlElement={};this.html={};this.html.audio={};this.html.video={};this.flash={};this.css={};this.css.cs={};this.css.jq={};this.status.volume=this._limitValue(this.options.volume,0,1);this.status.muted=this.options.muted;this.status.width=this.element.css("width");this.status.height=this.element.css("height");this.element.css({"background-color":this.options.backgroundColor});c.each(this.options.supplied.toLowerCase().split(","),function(e,g){var i=g.replace(/^\s+|\s+$/g,"");if(a.format[i]){var j=false;c.each(a.formats,function(n,k){if(i===k){j=true;return false;}});j||a.formats.push(i);}});c.each(this.options.solution.toLowerCase().split(","),function(e,g){var i=g.replace(/^\s+|\s+$/g,"");if(a.solution[i]){var j=false;c.each(a.solutions,function(n,k){if(i===k){j=true;return false;}});j||a.solutions.push(i);}});this.internal.instance="jp_"+this.count;this.instances[this.internal.instance]=this.element;this.element.attr("id")===""&&this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count);this.internal.self=c.extend({},{id:this.element.attr("id"),jq:this.element});this.internal.audio=c.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:h});this.internal.video=c.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:h});this.internal.flash=c.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:h,swf:this.options.swfPath+(this.options.swfPath!==""&&this.options.swfPath.slice(-1)!=="/"?"/":"")+"Jplayer.swf"});this.internal.poster=c.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:h});c.each(c.jPlayer.event,function(e,g){if(a.options[e]!==h){a.element.bind(g+".jPlayer",a.options[e]);a.options[e]=h;}});this.htmlElement.poster=document.createElement("img");this.htmlElement.poster.id=this.internal.poster.id;this.htmlElement.poster.onload=function(){if(!a.status.video||a.status.waitForPlay){a.internal.poster.jq.show();}};this.element.append(this.htmlElement.poster);this.internal.poster.jq=c("#"+this.internal.poster.id);this.internal.poster.jq.css({width:this.status.width,height:this.status.height});this.internal.poster.jq.hide();this.require.audio=false;this.require.video=false;c.each(this.formats,function(e,g){a.require[a.format[g].media]=true;});this.html.audio.available=false;if(this.require.audio){this.htmlElement.audio=document.createElement("audio");this.htmlElement.audio.id=this.internal.audio.id;this.html.audio.available=!!this.htmlElement.audio.canPlayType;}this.html.video.available=false;if(this.require.video){this.htmlElement.video=document.createElement("video");this.htmlElement.video.id=this.internal.video.id;this.html.video.available=!!this.htmlElement.video.canPlayType;}this.flash.available=this._checkForFlash(10);this.html.canPlay={};this.flash.canPlay={};c.each(this.formats,function(e,g){a.html.canPlay[g]=a.html[a.format[g].media].available&&""!==a.htmlElement[a.format[g].media].canPlayType(a.format[g].codec);a.flash.canPlay[g]=a.format[g].flashCanPlay&&a.flash.available;});this.html.desired=false;this.flash.desired=false;c.each(this.solutions,function(e,g){if(e===0){a[g].desired=true;}else{var i=false,j=false;c.each(a.formats,function(n,k){if(a[a.solutions[0]].canPlay[k]){if(a.format[k].media==="video"){j=true;}else{i=true;}}});a[g].desired=a.require.audio&&!i||a.require.video&&!j;}});this.html.support={};this.flash.support={};c.each(this.formats,function(e,g){a.html.support[g]=a.html.canPlay[g]&&a.html.desired;a.flash.support[g]=a.flash.canPlay[g]&&a.flash.desired;});this.html.used=false;this.flash.used=false;c.each(this.solutions,function(e,g){c.each(a.formats,function(i,j){if(a[g].support[j]){a[g].used=true;return false;}});});this.html.used||this.flash.used||this._error({type:c.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:c.jPlayer.errorMsg.NO_SOLUTION,hint:c.jPlayer.errorHint.NO_SOLUTION});this.html.active=false;this.html.audio.gate=false;this.html.video.gate=false;this.flash.active=false;this.flash.gate=false;if(this.flash.used){var b="id="+escape(this.internal.self.id)+"&vol="+this.status.volume+"&muted="+this.status.muted;if(c.browser.msie&&Number(c.browser.version)<=8){var d='<object id="'+this.internal.flash.id+'"';d+=' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"';d+=' codebase="'+document.URL.substring(0,document.URL.indexOf(":"))+'://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"';d+=' type="application/x-shockwave-flash"';d+=' width="0" height="0">';d+="</object>";var f=[];f[0]='<param name="movie" value="'+this.internal.flash.swf+'" />';f[1]='<param name="quality" value="high" />';f[2]='<param name="FlashVars" value="'+b+'" />';f[3]='<param name="allowScriptAccess" value="always" />';f[4]='<param name="bgcolor" value="'+this.options.backgroundColor+'" />';b=document.createElement(d);for(d=0;d<f.length;d++){b.appendChild(document.createElement(f[d]));}this.element.append(b);}else{f='<embed name="'+this.internal.flash.id+'" id="'+this.internal.flash.id+'" src="'+this.internal.flash.swf+'"';f+=' width="0" height="0" bgcolor="'+this.options.backgroundColor+'"';f+=' quality="high" FlashVars="'+b+'"';f+=' allowScriptAccess="always"';f+=' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';this.element.append(f);}this.internal.flash.jq=c("#"+this.internal.flash.id);this.internal.flash.jq.css({width:"0px",height:"0px"});}if(this.html.used){if(this.html.audio.available){this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio);this.element.append(this.htmlElement.audio);this.internal.audio.jq=c("#"+this.internal.audio.id);}if(this.html.video.available){this._addHtmlEventListeners(this.htmlElement.video,this.html.video);this.element.append(this.htmlElement.video);this.internal.video.jq=c("#"+this.internal.video.id);this.internal.video.jq.css({width:"0px",height:"0px"});}}this.html.used&&!this.flash.used&&window.setTimeout(function(){a.internal.ready=true;a.version.flash="n/a";a._trigger(c.jPlayer.event.ready);},100);c.each(this.options.cssSelector,function(e,g){a._cssSelector(e,g);});this._updateInterface();this._updateButtons(false);this._updateVolume(this.status.volume);this._updateMute(this.status.muted);this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide();c.jPlayer.prototype.count++;},destroy:function(){this._resetStatus();this._updateInterface();this._seeked();this.css.jq.currentTime.length&&this.css.jq.currentTime.text("");this.css.jq.duration.length&&this.css.jq.duration.text("");this.status.srcSet&&this.pause();c.each(this.css.jq,function(a,b){b.unbind(".jPlayer");});this.element.removeData("jPlayer");this.element.unbind(".jPlayer");this.element.empty();this.instances[this.internal.instance]=h;},enable:function(){},disable:function(){},_addHtmlEventListeners:function(a,b){var d=this;a.preload=this.options.preload;a.muted=this.options.muted;a.addEventListener("progress",function(){if(b.gate&&!d.status.waitForLoad){d._getHtmlStatus(a);d._updateInterface();d._trigger(c.jPlayer.event.progress);}},false);a.addEventListener("timeupdate",function(){if(b.gate&&!d.status.waitForLoad){d._getHtmlStatus(a);d._updateInterface();d._trigger(c.jPlayer.event.timeupdate);}},false);a.addEventListener("durationchange",function(){if(b.gate&&!d.status.waitForLoad){d.status.duration=this.duration;d._getHtmlStatus(a);d._updateInterface();d._trigger(c.jPlayer.event.durationchange);}},false);a.addEventListener("play",function(){if(b.gate&&!d.status.waitForLoad){d._updateButtons(true);d._trigger(c.jPlayer.event.play);}},false);a.addEventListener("playing",function(){if(b.gate&&!d.status.waitForLoad){d._updateButtons(true);d._seeked();d._trigger(c.jPlayer.event.playing);}},false);a.addEventListener("pause",function(){if(b.gate&&!d.status.waitForLoad){d._updateButtons(false);d._trigger(c.jPlayer.event.pause);}},false);a.addEventListener("waiting",function(){if(b.gate&&!d.status.waitForLoad){d._seeking();d._trigger(c.jPlayer.event.waiting);}},false);a.addEventListener("canplay",function(){if(b.gate&&!d.status.waitForLoad){a.volume=d._volumeFix(d.status.volume);d._trigger(c.jPlayer.event.canplay);}},false);a.addEventListener("seeking",function(){if(b.gate&&!d.status.waitForLoad){d._seeking();d._trigger(c.jPlayer.event.seeking);}},false);a.addEventListener("seeked",function(){if(b.gate&&!d.status.waitForLoad){d._seeked();d._trigger(c.jPlayer.event.seeked);}},false);a.addEventListener("suspend",function(){if(b.gate&&!d.status.waitForLoad){d._seeked();d._trigger(c.jPlayer.event.suspend);}},false);a.addEventListener("ended",function(){if(b.gate&&!d.status.waitForLoad){if(!c.jPlayer.browser.webkit){d.htmlElement.media.currentTime=0;}d.htmlElement.media.pause();d._updateButtons(false);d._getHtmlStatus(a,true);d._updateInterface();d._trigger(c.jPlayer.event.ended);}},false);a.addEventListener("error",function(){if(b.gate&&!d.status.waitForLoad){d._updateButtons(false);d._seeked();if(d.status.srcSet){d.status.waitForLoad=true;d.status.waitForPlay=true;d.status.video&&d.internal.video.jq.css({width:"0px",height:"0px"});d._validString(d.status.media.poster)&&d.internal.poster.jq.show();d.css.jq.videoPlay.length&&d.css.jq.videoPlay.show();d._error({type:c.jPlayer.error.URL,context:d.status.src,message:c.jPlayer.errorMsg.URL,hint:c.jPlayer.errorHint.URL});}}},false);c.each(c.jPlayer.htmlEvent,function(f,e){a.addEventListener(this,function(){b.gate&&!d.status.waitForLoad&&d._trigger(c.jPlayer.event[e]);},false);});},_getHtmlStatus:function(a,b){var d=0,f=0,e=0,g=0;d=a.currentTime;f=this.status.duration>0?100*d/this.status.duration:0;if(typeof a.seekable==="object"&&a.seekable.length>0){e=this.status.duration>0?100*a.seekable.end(a.seekable.length-1)/this.status.duration:100;g=100*a.currentTime/a.seekable.end(a.seekable.length-1);}else{e=100;g=f;}if(b){f=g=d=0;}this.status.seekPercent=e;this.status.currentPercentRelative=g;this.status.currentPercentAbsolute=f;this.status.currentTime=d;},_resetStatus:function(){this.status=c.extend({},this.status,c.jPlayer.prototype.status);},_trigger:function(a,b,d){a=c.Event(a);a.jPlayer={};a.jPlayer.version=c.extend({},this.version);a.jPlayer.status=c.extend(true,{},this.status);a.jPlayer.html=c.extend(true,{},this.html);a.jPlayer.flash=c.extend(true,{},this.flash);if(b){a.jPlayer.error=c.extend({},b);}if(d){a.jPlayer.warning=c.extend({},d);}this.element.trigger(a);},jPlayerFlashEvent:function(a,b){if(a===c.jPlayer.event.ready&&!this.internal.ready){this.internal.ready=true;this.version.flash=b.version;this.version.needFlash!==this.version.flash&&this._error({type:c.jPlayer.error.VERSION,context:this.version.flash,message:c.jPlayer.errorMsg.VERSION+this.version.flash,hint:c.jPlayer.errorHint.VERSION});this._trigger(a);}if(this.flash.gate){switch(a){case c.jPlayer.event.progress:this._getFlashStatus(b);this._updateInterface();this._trigger(a);break;case c.jPlayer.event.timeupdate:this._getFlashStatus(b);this._updateInterface();this._trigger(a);break;case c.jPlayer.event.play:this._seeked();this._updateButtons(true);this._trigger(a);break;case c.jPlayer.event.pause:this._updateButtons(false);this._trigger(a);break;case c.jPlayer.event.ended:this._updateButtons(false);this._trigger(a);break;case c.jPlayer.event.error:this.status.waitForLoad=true;this.status.waitForPlay=true;this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"});this._validString(this.status.media.poster)&&this.internal.poster.jq.show();this.css.jq.videoPlay.length&&this.css.jq.videoPlay.show();this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media);this._error({type:c.jPlayer.error.URL,context:b.src,message:c.jPlayer.errorMsg.URL,hint:c.jPlayer.errorHint.URL});break;case c.jPlayer.event.seeking:this._seeking();this._trigger(a);break;case c.jPlayer.event.seeked:this._seeked();this._trigger(a);break;default:this._trigger(a);}}return false;},_getFlashStatus:function(a){this.status.seekPercent=a.seekPercent;this.status.currentPercentRelative=a.currentPercentRelative;this.status.currentPercentAbsolute=a.currentPercentAbsolute;this.status.currentTime=a.currentTime;this.status.duration=a.duration;},_updateButtons:function(a){this.status.paused=!a;if(this.css.jq.play.length&&this.css.jq.pause.length){if(a){this.css.jq.play.hide();this.css.jq.pause.show();}else{this.css.jq.play.show();this.css.jq.pause.hide();}}},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%");this.css.jq.playBar.length&&this.css.jq.playBar.width(this.status.currentPercentRelative+"%");this.css.jq.currentTime.length&&this.css.jq.currentTime.text(c.jPlayer.convertTime(this.status.currentTime));this.css.jq.duration.length&&this.css.jq.duration.text(c.jPlayer.convertTime(this.status.duration));},_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg");},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg");},setMedia:function(a){var b=this;this._seeked();clearTimeout(this.internal.htmlDlyCmdId);var d=this.html.audio.gate,f=this.html.video.gate,e=false;c.each(this.formats,function(g,i){var j=b.format[i].media==="video";c.each(b.solutions,function(n,k){if(b[k].support[i]&&b._validString(a[i])){var l=k==="html";if(j){if(l){b.html.audio.gate=false;b.html.video.gate=true;b.flash.gate=false;}else{b.html.audio.gate=false;b.html.video.gate=false;b.flash.gate=true;}}else{if(l){b.html.audio.gate=true;b.html.video.gate=false;b.flash.gate=false;}else{b.html.audio.gate=false;b.html.video.gate=false;b.flash.gate=true;}}if(b.flash.active||b.html.active&&b.flash.gate||d===b.html.audio.gate&&f===b.html.video.gate){b.clearMedia();}else{if(d!==b.html.audio.gate&&f!==b.html.video.gate){b._html_pause();b.status.video&&b.internal.video.jq.css({width:"0px",height:"0px"});b._resetStatus();}}if(j){if(l){b._html_setVideo(a);b.html.active=true;b.flash.active=false;}else{b._flash_setVideo(a);b.html.active=false;b.flash.active=true;}b.css.jq.videoPlay.length&&b.css.jq.videoPlay.show();b.status.video=true;}else{if(l){b._html_setAudio(a);b.html.active=true;b.flash.active=false;}else{b._flash_setAudio(a);b.html.active=false;b.flash.active=true;}b.css.jq.videoPlay.length&&b.css.jq.videoPlay.hide();b.status.video=false;}e=true;return false;}});if(e){return false;}});if(e){if(this._validString(a.poster)){if(this.htmlElement.poster.src!==a.poster){this.htmlElement.poster.src=a.poster;}else{this.internal.poster.jq.show();}}else{this.internal.poster.jq.hide();}this.status.srcSet=true;this.status.media=c.extend({},a);this._updateButtons(false);this._updateInterface();}else{this.status.srcSet&&!this.status.waitForPlay&&this.pause();this.html.audio.gate=false;this.html.video.gate=false;this.flash.gate=false;this.html.active=false;this.flash.active=false;this._resetStatus();this._updateInterface();this._updateButtons(false);this.internal.poster.jq.hide();this.html.used&&this.require.video&&this.internal.video.jq.css({width:"0px",height:"0px"});this.flash.used&&this.internal.flash.jq.css({width:"0px",height:"0px"});this._error({type:c.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:c.jPlayer.errorMsg.NO_SUPPORT,hint:c.jPlayer.errorHint.NO_SUPPORT});}},clearMedia:function(){this._resetStatus();this._updateButtons(false);this.internal.poster.jq.hide();clearTimeout(this.internal.htmlDlyCmdId);if(this.html.active){this._html_clearMedia();}else{this.flash.active&&this._flash_clearMedia();}},load:function(){if(this.status.srcSet){if(this.html.active){this._html_load();}else{this.flash.active&&this._flash_load();}}else{this._urlNotSetError("load");}},play:function(a){a=typeof a==="number"?a:NaN;if(this.status.srcSet){if(this.html.active){this._html_play(a);}else{this.flash.active&&this._flash_play(a);}}else{this._urlNotSetError("play");}},videoPlay:function(){this.play();},pause:function(a){a=typeof a==="number"?a:NaN;if(this.status.srcSet){if(this.html.active){this._html_pause(a);}else{this.flash.active&&this._flash_pause(a);}}else{this._urlNotSetError("pause");}},pauseOthers:function(){var a=this;c.each(this.instances,function(b,d){a.element!==d&&d.data("jPlayer").status.srcSet&&d.jPlayer("pause");});},stop:function(){if(this.status.srcSet){if(this.html.active){this._html_pause(0);}else{this.flash.active&&this._flash_pause(0);}}else{this._urlNotSetError("stop");}},playHead:function(a){a=this._limitValue(a,0,100);if(this.status.srcSet){if(this.html.active){this._html_playHead(a);}else{this.flash.active&&this._flash_playHead(a);}}else{this._urlNotSetError("playHead");}},mute:function(){this.status.muted=true;this.html.used&&this._html_mute(true);this.flash.used&&this._flash_mute(true);this._updateMute(true);this._updateVolume(0);this._trigger(c.jPlayer.event.volumechange);},unmute:function(){this.status.muted=false;this.html.used&&this._html_mute(false);this.flash.used&&this._flash_mute(false);this._updateMute(false);this._updateVolume(this.status.volume);this._trigger(c.jPlayer.event.volumechange);},_updateMute:function(a){if(this.css.jq.mute.length&&this.css.jq.unmute.length){if(a){this.css.jq.mute.hide();this.css.jq.unmute.show();}else{this.css.jq.mute.show();this.css.jq.unmute.hide();}}},volume:function(a){a=this._limitValue(a,0,1);this.status.volume=a;this.html.used&&this._html_volume(a);this.flash.used&&this._flash_volume(a);this.status.muted||this._updateVolume(a);this._trigger(c.jPlayer.event.volumechange);},volumeBar:function(a){if(!this.status.muted&&this.css.jq.volumeBar){var b=this.css.jq.volumeBar.offset();a=a.pageX-b.left;b=this.css.jq.volumeBar.width();this.volume(a/b);}},volumeBarValue:function(a){this.volumeBar(a);},_updateVolume:function(a){this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.width(a*100+"%");},_volumeFix:function(a){var b=0.001*Math.random();return a+(a<0.5?b:-b);},_cssSelectorAncestor:function(a,b){this.options.cssSelectorAncestor=a;b&&c.each(this.options.cssSelector,function(d,f){self._cssSelector(d,f);});},_cssSelector:function(a,b){var d=this;if(typeof b==="string"){if(c.jPlayer.prototype.options.cssSelector[a]){this.css.jq[a]&&this.css.jq[a].length&&this.css.jq[a].unbind(".jPlayer");this.options.cssSelector[a]=b;this.css.cs[a]=this.options.cssSelectorAncestor+" "+b;this.css.jq[a]=b?c(this.css.cs[a]):[];this.css.jq[a].length&&this.css.jq[a].bind("click.jPlayer",function(f){d[a](f);c(this).blur();return false;});b&&this.css.jq[a].length!==1&&this._warning({type:c.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[a],message:c.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[a].length+" found for "+a+" method.",hint:c.jPlayer.warningHint.CSS_SELECTOR_COUNT});}else{this._warning({type:c.jPlayer.warning.CSS_SELECTOR_METHOD,context:a,message:c.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:c.jPlayer.warningHint.CSS_SELECTOR_METHOD});}}else{this._warning({type:c.jPlayer.warning.CSS_SELECTOR_STRING,context:b,message:c.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:c.jPlayer.warningHint.CSS_SELECTOR_STRING});}},seekBar:function(a){if(this.css.jq.seekBar){var b=this.css.jq.seekBar.offset();a=a.pageX-b.left;b=this.css.jq.seekBar.width();this.playHead(100*a/b);}},playBar:function(a){this.seekBar(a);},currentTime:function(){},duration:function(){},option:function(a,b){var d=a;if(arguments.length===0){return c.extend(true,{},this.options);}if(typeof a==="string"){var f=a.split(".");if(b===h){for(var e=c.extend(true,{},this.options),g=0;g<f.length;g++){if(e[f[g]]!==h){e=e[f[g]];}else{this._warning({type:c.jPlayer.warning.OPTION_KEY,context:a,message:c.jPlayer.warningMsg.OPTION_KEY,hint:c.jPlayer.warningHint.OPTION_KEY});return h;}}return e;}e=d={};for(g=0;g<f.length;g++){if(g<f.length-1){e[f[g]]={};e=e[f[g]];}else{e[f[g]]=b;}}}this._setOptions(d);return this;},_setOptions:function(a){var b=this;c.each(a,function(d,f){b._setOption(d,f);});return this;},_setOption:function(a,b){var d=this;switch(a){case"cssSelectorAncestor":this.options[a]=b;c.each(d.options.cssSelector,function(f,e){d._cssSelector(f,e);});break;case"cssSelector":c.each(b,function(f,e){d._cssSelector(f,e);});}return this;},resize:function(a){this.html.active&&this._resizeHtml(a);this.flash.active&&this._resizeFlash(a);this._trigger(c.jPlayer.event.resize);},_resizePoster:function(){},_resizeHtml:function(){},_resizeFlash:function(a){this.internal.flash.jq.css({width:a.width,height:a.height});},_html_initMedia:function(){this.status.srcSet&&!this.status.waitForPlay&&this.htmlElement.media.pause();this.options.preload!=="none"&&this._html_load();this._trigger(c.jPlayer.event.timeupdate);},_html_setAudio:function(a){var b=this;c.each(this.formats,function(d,f){if(b.html.support[f]&&a[f]){b.status.src=a[f];b.status.format[f]=true;b.status.formatType=f;return false;}});this.htmlElement.media=this.htmlElement.audio;this._html_initMedia();},_html_setVideo:function(a){var b=this;c.each(this.formats,function(d,f){if(b.html.support[f]&&a[f]){b.status.src=a[f];b.status.format[f]=true;b.status.formatType=f;return false;}});this.htmlElement.media=this.htmlElement.video;this._html_initMedia();},_html_clearMedia:function(){if(this.htmlElement.media){this.htmlElement.media.id===this.internal.video.id&&this.internal.video.jq.css({width:"0px",height:"0px"});this.htmlElement.media.pause();this.htmlElement.media.src="";c.browser.msie&&Number(c.browser.version)>=9||this.htmlElement.media.load();}},_html_load:function(){if(this.status.waitForLoad){this.status.waitForLoad=false;this.htmlElement.media.src=this.status.src;try{this.htmlElement.media.load();}catch(a){}}clearTimeout(this.internal.htmlDlyCmdId);},_html_play:function(a){var b=this;this._html_load();this.htmlElement.media.play();if(!isNaN(a)){try{this.htmlElement.media.currentTime=a;}catch(d){this.internal.htmlDlyCmdId=setTimeout(function(){b.play(a);},100);return;}}this._html_checkWaitForPlay();},_html_pause:function(a){var b=this;a>0?this._html_load():clearTimeout(this.internal.htmlDlyCmdId);this.htmlElement.media.pause();if(!isNaN(a)){try{this.htmlElement.media.currentTime=a;}catch(d){this.internal.htmlDlyCmdId=setTimeout(function(){b.pause(a);},100);return;}}a>0&&this._html_checkWaitForPlay();},_html_playHead:function(a){var b=this;this._html_load();try{if(typeof this.htmlElement.media.seekable==="object"&&this.htmlElement.media.seekable.length>0){this.htmlElement.media.currentTime=a*this.htmlElement.media.seekable.end(this.htmlElement.media.seekable.length-1)/100;}else{if(this.htmlElement.media.duration>0&&!isNaN(this.htmlElement.media.duration)){this.htmlElement.media.currentTime=a*this.htmlElement.media.duration/100;}else{throw"e";}}}catch(d){this.internal.htmlDlyCmdId=setTimeout(function(){b.playHead(a);},100);return;}this.status.waitForLoad||this._html_checkWaitForPlay();},_html_checkWaitForPlay:function(){if(this.status.waitForPlay){this.status.waitForPlay=false;this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide();if(this.status.video){this.internal.poster.jq.hide();this.internal.video.jq.css({width:this.status.width,height:this.status.height});}}},_html_volume:function(a){if(this.html.audio.available){this.htmlElement.audio.volume=a;}if(this.html.video.available){this.htmlElement.video.volume=a;}},_html_mute:function(a){if(this.html.audio.available){this.htmlElement.audio.muted=a;}if(this.html.video.available){this.htmlElement.video.muted=a;}},_flash_setAudio:function(a){var b=this;try{c.each(this.formats,function(f,e){if(b.flash.support[e]&&a[e]){switch(e){case"m4a":b._getMovie().fl_setAudio_m4a(a[e]);break;case"mp3":b._getMovie().fl_setAudio_mp3(a[e]);}b.status.src=a[e];b.status.format[e]=true;b.status.formatType=e;return false;}});if(this.options.preload==="auto"){this._flash_load();this.status.waitForLoad=false;}}catch(d){this._flashError(d);}},_flash_setVideo:function(a){var b=this;try{c.each(this.formats,function(f,e){if(b.flash.support[e]&&a[e]){switch(e){case"m4v":b._getMovie().fl_setVideo_m4v(a[e]);}b.status.src=a[e];b.status.format[e]=true;b.status.formatType=e;return false;}});if(this.options.preload==="auto"){this._flash_load();this.status.waitForLoad=false;}}catch(d){this._flashError(d);}},_flash_clearMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"});try{this._getMovie().fl_clearMedia();}catch(a){this._flashError(a);}},_flash_load:function(){try{this._getMovie().fl_load();}catch(a){this._flashError(a);}this.status.waitForLoad=false;},_flash_play:function(a){try{this._getMovie().fl_play(a);}catch(b){this._flashError(b);}this.status.waitForLoad=false;this._flash_checkWaitForPlay();},_flash_pause:function(a){try{this._getMovie().fl_pause(a);}catch(b){this._flashError(b);}if(a>0){this.status.waitForLoad=false;this._flash_checkWaitForPlay();}},_flash_playHead:function(a){try{this._getMovie().fl_play_head(a);}catch(b){this._flashError(b);}this.status.waitForLoad||this._flash_checkWaitForPlay();},_flash_checkWaitForPlay:function(){if(this.status.waitForPlay){this.status.waitForPlay=false;this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide();if(this.status.video){this.internal.poster.jq.hide();this.internal.flash.jq.css({width:this.status.width,height:this.status.height});}}},_flash_volume:function(a){try{this._getMovie().fl_volume(a);}catch(b){this._flashError(b);}},_flash_mute:function(a){try{this._getMovie().fl_mute(a);}catch(b){this._flashError(b);}},_getMovie:function(){return document[this.internal.flash.id];},_checkForFlash:function(a){var b=false,d;if(window.ActiveXObject){try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a);b=true;}catch(f){}}else{if(navigator.plugins&&navigator.mimeTypes.length>0){if(d=navigator.plugins["Shockwave Flash"]){if(navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1")>=a){b=true;}}}}return c.browser.msie&&Number(c.browser.version)>=9?false:b;},_validString:function(a){return a&&typeof a==="string";},_limitValue:function(a,b,d){return a<b?b:a>d?d:a;},_urlNotSetError:function(a){this._error({type:c.jPlayer.error.URL_NOT_SET,context:a,message:c.jPlayer.errorMsg.URL_NOT_SET,hint:c.jPlayer.errorHint.URL_NOT_SET});},_flashError:function(a){this._error({type:c.jPlayer.error.FLASH,context:this.internal.flash.swf,message:c.jPlayer.errorMsg.FLASH+a.message,hint:c.jPlayer.errorHint.FLASH});},_error:function(a){this._trigger(c.jPlayer.event.error,a);if(this.options.errorAlerts){this._alert("Error!"+(a.message?"\n\n"+a.message:"")+(a.hint?"\n\n"+a.hint:"")+"\n\nContext: "+a.context);}},_warning:function(a){this._trigger(c.jPlayer.event.warning,h,a);if(this.options.errorAlerts){this._alert("Warning!"+(a.message?"\n\n"+a.message:"")+(a.hint?"\n\n"+a.hint:"")+"\n\nContext: "+a.context);}},_alert:function(a){alert("jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+a);}};c.jPlayer.error={FLASH:"e_flash",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"};c.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+c.jPlayer.prototype.version.script+" needs Jplayer.swf version "+c.jPlayer.prototype.version.needFlash+" but found "};c.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."};c.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"};c.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of methodCssSelectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."};c.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."};})(jQuery);if(typeof window.console!=="object"||typeof window.console.emulated==="undefined"){if(typeof window.console!=="object"||!(typeof window.console.log==="function"||typeof window.console.log==="object")){window.console={};window.console.log=window.console.debug=window.console.warn=window.console.trace=function(){};window.console.error=function(){for(var c="An error has occured. More information will be available in the console log.",a=0;a<arguments.length;++a){if(typeof arguments[a]!=="string"){break;}c+="\n"+arguments[a];}if(typeof Error!=="undefined"){throw Error(c);}else{throw c;}};}else{if(typeof window.console.debug==="undefined"){window.console.debug=function(){for(var c=["console.debug:"],a=0;a<arguments.length;a++){c.push(arguments[a]);}window.console.log.apply(window.console,c);};}if(typeof window.console.warn==="undefined"){window.console.warn=function(){for(var c=["console.warn:"],a=0;a<arguments.length;a++){c.push(arguments[a]);}window.console.log.apply(window.console,c);};}if(typeof window.console.error==="undefined"){window.console.error=function(){for(var c=["console.error"],a=0;a<arguments.length;a++){c.push(arguments[a]);}window.console.log.apply(window.console,c);};}if(typeof window.console.trace==="undefined"){window.console.trace=function(){window.console.error.apply(window.console,["console.trace does not exist"]);};}}window.console.emulated=true;}(function(c){if(c.History){window.console.warn("$.History has already been defined...");}else{c.History={options:{debug:false},state:"",$window:null,$iframe:null,handlers:{generic:[],specific:{}},extractHash:function(a){return a.replace(/^[^#]*#/,"").replace(/^#+|#+$/,"");},getState:function(){return c.History.state;},setState:function(a){var b=c.History;a=b.extractHash(a);b.state=a;return b.state;},getHash:function(){return c.History.extractHash(window.location.hash||location.hash);},setHash:function(a){a=c.History.extractHash(a);if(typeof window.location.hash!=="undefined"){if(window.location.hash!==a){window.location.hash=a;}}else{if(location.hash!==a){location.hash=a;}}return a;},go:function(a){var b=c.History;a=b.extractHash(a);var d=b.getHash(),f=b.getState();if(a!==d){b.setHash(a);}else{a!==f&&b.setState(a);b.trigger();}return true;},hashchange:function(){var a=c.History,b=a.getHash();a.go(b);return true;},bind:function(a,b){var d=c.History;if(b){if(typeof d.handlers.specific[a]==="undefined"){d.handlers.specific[a]=[];}d.handlers.specific[a].push(b);}else{b=a;d.handlers.generic.push(b);}return true;},trigger:function(a){var b=c.History;if(typeof a==="undefined"){a=b.getState();}var d,f,g,e;if(typeof b.handlers.specific[a]!=="undefined"){e=b.handlers.specific[a];d=0;for(f=e.length;d<f;++d){g=e[d];g(a);}}e=b.handlers.generic;d=0;for(f=e.length;d<f;++d){g=e[d];g(a);}return true;},construct:function(){var a=c.History;c(document).ready(function(){a.domReady();});return true;},configure:function(a){var b=c.History;b.options=c.extend(b.options,a);return true;},domReadied:false,domReady:function(){var a=c.History;if(!a.domRedied){a.domRedied=true;a.$window=c(window);a.$window.bind("hashchange",this.hashchange);setTimeout(a.hashchangeLoader,200);return true;}},nativeSupport:function(a){a=a||c.browser;var b=a.version,d=parseInt(b,10),f=b.split(/[^0-9]/g);b=parseInt(f[0],10);var g=parseInt(f[1],10);f=parseInt(f[2],10);var e=false;if((a.msie||0)&&d>=8){e=true;}else{if((a.webkit||0)&&d>=528){e=true;}else{if(a.mozilla){if(b>1){e=true;}else{if(b===1){if(g>9){e=true;}else{if(g===9){if(f>=2){e=true;}}}}}}else{if(a.opera){if(b>10){e=true;}else{if(b===10){if(g>=60){e=true;}}}}}}}return e;},hashchangeLoader:function(){var a=c.History;if(a.nativeSupport()){a.getHash()&&a.$window.trigger("hashchange");}else{var b;if(c.browser.msie){a.$iframe=c('<iframe id="jquery-history-iframe" style="display: none;"></$iframe>').prependTo(document.body)[0];a.$iframe.contentWindow.document.open();a.$iframe.contentWindow.document.close();var d=false;b=function(){var f=a.getHash(),g=a.getState(),e=a.extractHash(a.$iframe.contentWindow.document.location.hash);if(g!==f){if(!d){a.$iframe.contentWindow.document.open();a.$iframe.contentWindow.document.close();a.$iframe.contentWindow.document.location.hash=f;}d=false;a.$window.trigger("hashchange");}else{if(g!==e){d=true;a.setHash(e);}}};}else{b=function(){var f=a.getHash();a.getState()!==f&&a.$window.trigger("hashchange");};}setInterval(b,200);}return true;}};c.History.construct();}})(jQuery);function debug_print(message,custom_div){if(!custom_div){custom_div="#debug_message";}$(custom_div).fadeOut("fast").text(message).fadeIn("fast");if(window.console){}}if(!OA_show){var OA_show=function(){};}var isiPad=navigator.userAgent.match(/iPad/i)!=null;var isPS3=navigator.userAgent.match(/Playstation 3/i)!=null;var isIE6=navigator.userAgent.match(/MSIE 6.0/i)!=null;var OA_zones={"mshf-blue-zone":149,"mshf-footer":148,"mshf-warning":160,"mfhm-blue-zone":146,"mfhm-footer":145,"mfhm-warning":158,"nbw-blue-zone":155,"nbw-footer":154,"nbw-warning":161,"no-blue-zone":167,"no-footer":168,"no-warning":170,"sbc-blue-zone":163,"sbc-footer":164,"sbc-warning":165,"mfst-blue-zone":152,"mfst-footer":151,"mfst-warning":159};var click_event_number=1;function track_event(category,action,opt_label,opt_value){if(window._gaq!=undefined){_gaq.push(["_trackEvent",category,action,opt_label,click_event_number]);click_event_number++;}}function non_flash_browser(){return(isiPad||isPS3);}function load_delayed_images(id,attr){if(attr==undefined){attr="original";}$("#"+id+" img[delay_src]").each(function(){$(this).attr(attr,$(this).attr("delay_src"));});}function force_image_loading(id,temp_attr){if(temp_attr==undefined){temp_attr="original";}$("#"+id+" img["+temp_attr+"]").each(function(){$(this).attr("src",$(this).attr(temp_attr));});}function queue_delayed_images(){$("img[original]").lazyload({effect:"fadeIn",failurelimit:400,threshold:300});}function join_button_tracking(){try{var gwoTracker=_gat._getTracker("UA-10369514-2");gwoTracker._trackPageview("/2051691784/goal");}catch(err){console.log("Error involving Join button tracking: "+err);}}function post_comment(body,topic_id){}function deprecated_function_report(email){if(!email){email="daryl@latouraineinc.com";}naughty_rpc("deprecated_function_report",{message:arguments.callee.caller.toString()+" called from: "+location.href,email:email},function(){});}function change_actor_picture(element,a_id,brand){$(element).attr("src","http://data."+brand+".com/upload/source/actors/"+a_id+"/"+a_id+"vert.jpg");}function set_user_info(accountid,property,value,is_popup){debug_print("Setting user info for ("+accountid+"): "+property+" = "+value);naughty_rpc("set_user_info",{accountid:accountid,property:property,value:value},function(data){debug_print("Set user info: done.");if(is_popup){destroy_popup();}});}function naughty_rpc(method,params,callback){var sub_directory="/";var this_domain=document.domain;var index_file="index.php";var serialized_params=serialize(params);if(this_domain.search("api.naughtyamerica.com")>=0){sub_directory="/labs/";}else{if(window.poll_prefix!=undefined){sub_directory="/"+window.poll_prefix;}}if(this_domain.search("www.naughtyamerica.com")!=-1||this_domain.search("www.suite703.com")!=-1){index_file="index3.php";}if(params.offsite!=undefined){sub_directory="http://tour.naughtyamerica.com"+sub_directory;}var url=sub_directory+index_file+"?m=misc&s=naughty-rpc&method="+method;$.post(url,{method:method,params:serialized_params},function(data){callback(data);},"json");}function saveSetting(setting_name,setting_value,expiredays){if(!expiredays){expiredays=1;}setCookie(setting_name,setting_value,expiredays);}function getCookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length;}return unescape(document.cookie.substring(c_start,c_end));}}return"";}function getSetting(setting_name){return getCookie(setting_name);}function setCookie(c_name,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+((expiredays==null)?"":";expires="+exdate.toGMTString())+"; path=/";}function load_template(element_id_or_class,template){if(template){$.get("/index.php?m=misc&s=loader",{template:template},function(page){$(element_id_or_class).html(page);});}}function login_response(data){$("#bedroom_signup").val("Login!");if(data.response=="error"){$("#message").addClass("bad_message").html(data.message+"<p/>");}else{if(data.response=="success"){$("#message").removeClass("bad_message").addClass("good_message").html("Success! You are now logged in.<p/>");$("#login_credentials").slideUp("fast");$("#bedroom_signup").fadeOut("fast");$("#bedroom_quit").val("Close Window");}else{if(data.response=="redirect"){top.location.href=data.url;}}}}function popup_login(email,password){$("#bedroom_signup").val("Processing...");naughty_rpc("AccountApi.checkPopupLogin",{username:email,password:password},login_response);}function overlay_popup(type,options,callback){var sub_directory="/",index_file="index.php";var this_domain=document.domain;if(window.poll_prefix!=undefined){sub_directory="/"+window.poll_prefix;}var arg_string="";if(type==null){type="bedroom_login";}if(!options){options={element:"body"};}if(!options.width){options.width=300;}if(!options.height){options.height=300;}var arg_string="";if(options.args){for(var i in options.args){arg_string+="&"+i+"="+options.args[i];}}$("body").append('<div id="overlay_mask"></div>');$("body").append('<div id="overlay_popup_container"><div id="overlay_popup"></div></div>');if(this_domain.search("www.naughtyamerica.com")!=-1||this_domain.search("www.suite703.com")!=-1){}switch(type){case"bedroom_login":$("#overlay_popup").hide().css("height",options.height).css("width",options.width).load("/index.php?m=misc&s=loader&template=popup_login",{},function(data){$(this).slideDown("slow");});$("#overlay_mask").animate({opacity:0.7},"slow");break;default:var url=target_domain+sub_directory+index_file+"?m=misc&s=loader&template="+type+arg_string;if(options.url!=null){url=options.url;}$("#overlay_popup").hide().css("height",options.height).css("width",options.width).load(url,{},function(data){$("#overlay_mask").animate({opacity:0.7},"slow");$(this).slideDown("slow");});break;}}function destroy_popup(no_reload){$("#overlay_popup").slideUp("slow").html("").remove();$("#overlay_mask").animate({opacity:0},"fast").remove();if(no_reload==undefined){top.location.href=top.location.href;}}function ajaxFileUpload(account_id){$("#loading").ajaxStart(function(){$(this).show();}).ajaxComplete(function(){$(this).hide();});$jQuery.ajaxFileUpload({url:"/uploaders/doajaxfileupload.php",secureuri:false,fileElementId:"fileToUpload_"+account_id,dataType:"json",id:5,success:function(data,status){if(typeof(data.error)!="undefined"){if(data.error!=""){console.log("Error: "+data.error);}else{console.log("MSG: "+data.msg);alert(data.msg);destroy_popup();}}},error:function(data,status,e){console.log("AJAX Error: "+e);}});return false;}function utf8_encode(argString){var string=(argString+"");var utftext="";var start,end;var stringl=0;start=end=0;stringl=string.length;for(var n=0;n<stringl;n++){var c1=string.charCodeAt(n);var enc=null;if(c1<128){end++;}else{if(c1>127&&c1<2048){enc=String.fromCharCode((c1>>6)|192)+String.fromCharCode((c1&63)|128);}else{enc=String.fromCharCode((c1>>12)|224)+String.fromCharCode(((c1>>6)&63)|128)+String.fromCharCode((c1&63)|128);}}if(enc!==null){if(end>start){utftext+=string.substring(start,end);}utftext+=enc;start=end=n+1;}}if(end>start){utftext+=string.substring(start,string.length);}return utftext;}function serialize(mixed_value){var _getType=function(inp){var type=typeof inp,match;var key;if(type=="object"&&!inp){return"null";}if(type=="object"){if(!inp.constructor){return"object";}var cons=inp.constructor.toString();match=cons.match(/(\w+)\(/);if(match){cons=match[1].toLowerCase();}var types=["boolean","number","string","array"];for(key in types){if(cons==types[key]){type=types[key];break;}}}return type;};var type=_getType(mixed_value);var val,ktype="";switch(type){case"function":val="";break;case"boolean":val="b:"+(mixed_value?"1":"0");break;case"number":val=(Math.round(mixed_value)==mixed_value?"i":"d")+":"+mixed_value;break;case"string":mixed_value=this.utf8_encode(mixed_value);val="s:"+encodeURIComponent(mixed_value).replace(/%../g,"x").length+':"'+mixed_value+'"';break;case"array":case"object":val="a";var count=0;var vals="";var okey;var key;for(key in mixed_value){ktype=_getType(mixed_value[key]);if(ktype=="function"){continue;}okey=(key.match(/^[0-9]+$/)?parseInt(key,10):key);vals+=this.serialize(okey)+this.serialize(mixed_value[key]);count++;}val+=":"+count+":{"+vals+"}";break;case"undefined":default:val="N";break;}if(type!="object"&&type!="array"){val+=";";}return val;}function addslashes(str){str=str.replace(/\\/g,"\\\\");str=str.replace(/\'/g,"\\'");str=str.replace(/\"/g,'\\"');str=str.replace(/\0/g,"\\0");return str;}function stripslashes(str){str=str.replace(/\\'/g,"'");str=str.replace(/\\"/g,'"');str=str.replace(/\\0/g,"\0");str=str.replace(/\\\\/g,"\\");return str;}function retweet(message,url){BitlyCB.shortenResponse=function(data){var s="";var first_result;var shortened_url="";for(var r in data.results){first_result=data.results[r];break;}for(var key in first_result){s+=key+":"+first_result[key].toString()+"\n";if(key=="shortUrl"){shortened_url=first_result[key].toString();}}var twitter_window=window.open("http://twitter.com/home/?status="+message+" "+shortened_url);if(twitter_window==null||typeof(twitter_window)=="undefined"){alert("Be sure your popup blocker is not on!");}};BitlyClient.shorten(url,"BitlyCB.shortenResponse");}function scroll_element(element_id_or_class,amount,direction){if(direction=="right"){$(element_id_or_class).animate({scrollLeft:"+="+amount+"px"},1000,"swing");}else{if(direction=="down"){$(element_id_or_class).animate({scrollTop:"+="+amount+"px"},1000,"swing");}else{if(direction=="up"){$(element_id_or_class).animate({scrollTop:"-="+amount+"px"},1000,"swing");}else{$(element_id_or_class).animate({scrollLeft:"-="+amount+"px"},1000,"swing");}}}}function auto_slide_element(element_id_or_class,picture_size,num_pics_to_scroll,how_often_in_sec){var container_width=$(element_id_or_class+" .container").width();if($(element_id_or_class).scrollLeft()>=container_width-$(element_id_or_class).width()){setTimeout(function(){scroll_element(element_id_or_class,container_width,"left");auto_slide_element(element_id_or_class,picture_size,num_pics_to_scroll,how_often_in_sec);},how_often_in_sec*1000);}else{setTimeout(function(){scroll_element(element_id_or_class,picture_size*num_pics_to_scroll,"right");auto_slide_element(element_id_or_class,picture_size,num_pics_to_scroll,how_often_in_sec);},how_often_in_sec*1000);}}function urlencode(url){url=url.replace("&","%26");url=url.replace("?","%3F");url=url.replace(":","%3A");url=url.replace(/\//g,"%2F");url=url.replace("=","%3D");return url;}jQuery.extend({createUploadIframe:function(id,uri){var frameId="jUploadFrame"+id;if(window.ActiveXObject){var io=document.createElement('<iframe id="'+frameId+'" name="'+frameId+'" />');if(typeof uri=="boolean"){io.src="javascript:false";}else{if(typeof uri=="string"){io.src=uri;}}}else{var io=document.createElement("iframe");io.id=frameId;io.name=frameId;}io.style.position="absolute";io.style.top="-1000px";io.style.left="-1000px";document.body.appendChild(io);return io;},createUploadForm:function(id,fileElementId){var formId="jUploadForm"+id;var fileId="jUploadFile"+id;var form=$('<form  action="" method="POST" name="'+formId+'" id="'+formId+'" enctype="multipart/form-data"></form>');var oldElement=$("#"+fileElementId);var newElement=$(oldElement).clone();$(oldElement).attr("id",fileId);$(oldElement).before(newElement);$(oldElement).appendTo(form);$(form).css("position","absolute");$(form).css("top","-1200px");$(form).css("left","-1200px");$(form).appendTo("body");return form;},ajaxFileUpload:function(s){s=jQuery.extend({},jQuery.ajaxSettings,s);var id=new Date().getTime();var form=jQuery.createUploadForm(id,s.fileElementId);var io=jQuery.createUploadIframe(id,s.secureuri);var frameId="jUploadFrame"+id;var formId="jUploadForm"+id;if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart");}var requestDone=false;var xml={};if(s.global){jQuery.event.trigger("ajaxSend",[xml,s]);}var uploadCallback=function(isTimeout){var io=document.getElementById(frameId);try{if(io.contentWindow){xml.responseText=io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:null;xml.responseXML=io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document;}else{if(io.contentDocument){xml.responseText=io.contentDocument.document.body?io.contentDocument.document.body.innerHTML:null;xml.responseXML=io.contentDocument.document.XMLDocument?io.contentDocument.document.XMLDocument:io.contentDocument.document;}}}catch(e){jQuery.handleError(s,xml,null,e);}if(xml||isTimeout=="timeout"){requestDone=true;var status;try{status=isTimeout!="timeout"?"success":"error";if(status!="error"){var data=jQuery.uploadHttpData(xml,s.dataType);if(s.success){s.success(data,status);}if(s.global){jQuery.event.trigger("ajaxSuccess",[xml,s]);}}else{jQuery.handleError(s,xml,status);}}catch(e){status="error";jQuery.handleError(s,xml,status,e);}if(s.global){jQuery.event.trigger("ajaxComplete",[xml,s]);}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop");}if(s.complete){s.complete(xml,status);}jQuery(io).unbind();setTimeout(function(){try{$(io).remove();$(form).remove();}catch(e){jQuery.handleError(s,xml,null,e);}},100);xml=null;}};if(s.timeout>0){setTimeout(function(){if(!requestDone){uploadCallback("timeout");}},s.timeout);}try{var form=$("#"+formId);$(form).attr("action",s.url);$(form).attr("method","POST");$(form).attr("target",frameId);if(form.encoding){form.encoding="multipart/form-data";}else{form.enctype="multipart/form-data";}$(form).submit();}catch(e){jQuery.handleError(s,xml,null,e);}if(window.attachEvent){document.getElementById(frameId).attachEvent("onload",uploadCallback);}else{document.getElementById(frameId).addEventListener("load",uploadCallback,false);}return{abort:function(){}};},uploadHttpData:function(r,type){var data=!type;data=type=="xml"||data?r.responseXML:r.responseText;if(type=="script"){jQuery.globalEval(data);}if(type=="json"){eval("data = "+data);}if(type=="html"){jQuery("<div>").html(data).evalScripts();}return data;}});var ratings_module="/index.php?m=api&s=ratings";function rate_scene(entry_id,member_id,rating){rate_entry("scene",entry_id,member_id,false,rating);}function rate_comment(entry_id,member_id,rating){rate_entry("comment",entry_id,member_id,false,rating);}function rate_show(entry_id,member_id,channel,rating){rate_entry("show",entry_id,member_id,channel,rating);}function record_vote(type,entry_id,rating){var mydate=new Date;var one_day=60*60*24*1000;dislikes_this_topic;mydate.setTime(mydate.toGMTString()+one_day+one_day);cookie_val=type+"_"+entry_id+"="+rating+"; expires="+mydate.toGMTString()+"; path=/";document.cookie=cookie_val;}function already_voted(type,entry_id,member_id){return(get_cookie(type+"_"+entry_id));}function get_cookie(sName){var aCookie=document.cookie.split("; ");for(var i=0;i<aCookie.length;i++){var aCrumb=aCookie[i].split("=");if(sName==aCrumb[0]){return unescape(aCrumb[1]);}}return null;}function rate_entry(type,entry_id,member_id,channel,rating){var stats;if(!already_voted(type,entry_id,member_id)){var query=ratings_module+"&action=save&entry_id="+entry_id+"&type="+type+"&rating="+rating+"&member_id="+member_id+"&channel="+channel;$.getJSON(query,{m:"api",s:"ratings",entry_id:entry_id,type:type,rating:rating,member_id:member_id,channel:channel},function(data){stats=data;if(data){$(".likes").html(data.like_percentage);$(".votes").html(data.total_votes);}});record_vote(type,entry_id,rating);}else{alert("You have already voted.");}}function lookup_entry_rating(type,entry_id,stat,element){$.get(ratings_module,{entry_id:entry_id,type:type,statistic:stat},function(data){return data;});}function rate_data(entry_id,member_id,rating,rating_type,entry_date,brand){rate_entry("ratings",entry_id,member_id,rating,rating_type,entry_date,brand);}function update_stats(increment_likes){var total=$(".total").html();var likes=$(".likes").val();total=eval(total)+1;$(".total").html(total);if(increment_likes==true){likes++;}var percent_val=Math.round(eval(likes)/eval(total)*100);$(".percent").html(percent_val);}function update_stars(rating,brand){var total=$(".total").html();var total_plus=eval(total)+1;if(total_plus==0){total_plus=1;$(".total").html(eval(total)-1);}else{$(".total").html(total);}var get_sum=$(".pre_sum").html();var sum=eval(get_sum)+eval(rating);var ave=Math.round(eval(sum)/eval(total_plus));}function roll_box(id,box,brand){var imgPath=new String();imgPath=document.getElementById(id).style.backgroundImage;if(box==box){document.getElementById(id).style.backgroundImage="url(http://content.naughtyamerica.com/naughty/public/images/"+brand+"/stars/active_box.png)";}if(box==0){document.getElementById(id).style.backgroundImage="url(http://content.naughtyamerica.com/naughty/public/images/"+brand+"/stars/inactive_box.png)";}}function update_box(id,rating,actor_name){$(".update"+id).hide("slow");$(".update"+id).show("slow").html("You gave "+actor_name+" a rating of "+rating);}function ratings_update(id,rating,type){if(type=="scene"){var votes=$(".votes").html();var votes_plus=eval(votes)+1;if(votes_plus==0){votes_plus=1;$(".votes").html(eval(votes)-1);}else{$(".votes").html(votes_plus);}var get_sum=$(".sum").html();var sum=eval(get_sum)+eval(rating);var ave=(eval(sum)/eval(votes_plus)).toFixed(1);$(".average"+id).html(ave);}var actor_votes=$(".actor_total"+id).html();var actor_votes_plus=eval(actor_votes)+1;if(actor_votes_plus==0){actor_votes_plus=1;}var get_actor_sum=$(".actor_sum"+id).html();var actor_sum=eval(get_actor_sum)+eval(rating);var ave_actor=(eval(actor_sum)/eval(actor_votes_plus)).toFixed(1);$(".actor"+id).html(ave_actor);}function member_rating(entry_id,member_id,rating,rating_type,brand,ip,a_id){naughty_rpc("Ratings.save_rating",{entry_id:entry_id,member_id:member_id,rating:rating,rating_type:rating_type,brand:brand,ip:ip,a_id:a_id},function(data){if(data!="You have already voted."){if(rating>1){update_stats(true);}else{update_stats(false);}}else{console.log("The user HAS voted, this vote will be ignored: "+rating);alert(data);}});}function likes_this_topic(entry_id,member_id){rate_entry("topic",entry_id,member_id,"","5");}function dislikes_this_topic(entry_id,member_id){rate_entry("topic",entry_id,member_id,"","1");}function in_array(needle,haystack,argStrict){var key="",strict=!!argStrict;if(strict){for(key in haystack){if((strict&&haystack[key]===needle)||(!strict&&strict&&haystack[key]==needle)){return true;}}}return false;}var player_dir="http://content.naughtyamerica.com/naughty/public/live_chat/swf";var flashvars={};flashvars.type="http";flashvars.bufferlength="0";flashvars.controlbar="none";flashvars.autostart="1";flashvars.stretching="exactfit";flashvars.mute=false;flashvars.width="450";flashvars.height="300";flashvars.author="Naughty America";flashvars.title="Naughty America Live Chat";flashvars.description="Live Chat is brought to you by Naughty America!";var params={allowfullscreen:"false",allowScriptAccess:"always",wmode:"transparent"};var attributes={id:"live_player",name:"live_player"};var reserved_screen_names=["admin","administrator","na live"];var interval_ids={get_preview:null,check_preview:null,stop_preview:null};var free_qvc_shows=["live_with_lauren","live_naughty_girl_talk","naughty_americans"];var nameToRoom=[];nameToRoom.lonely_student=12;nameToRoom.live_naughty_student=12;nameToRoom.naughty_after_class=13;nameToRoom.live_naughty_teacher=13;nameToRoom.gym_cam=14;nameToRoom.live_gym_cam=14;nameToRoom.gmna=15;nameToRoom.gmna_live=15;nameToRoom.live_with_lauren=15;nameToRoom.live_naughty_secretary=16;nameToRoom.live_naughty_milf=17;nameToRoom.office_girl=18;nameToRoom.office_girl_1=18;nameToRoom.office_girl_2=18;nameToRoom.office_girl_3=18;nameToRoom.live_party_girls=19;nameToRoom.live_naughty_nurse=20;nameToRoom.live_naughty_mystery=21;nameToRoom.tester=22;nameToRoom.live_naughty_president=23;var roomName="gmna";var player=null;var on_preview_page=false;var eligible_preview_page=false;var join_link="";if(window.console==undefined){console=new Object;console.log=function(message){};}function show_post_roll(){$(".post-roll-container").removeAttr("style");console.log("Post roll event triggered!");}function logIt(string){console.log("logIt: "+string);if(string=="Showing the image/video"){show_post_roll();}}function playerReady(thePlayer){player=window.document[thePlayer.id];}function playerError(obj){$("#debug_message_error").text("Error: "+obj.message);console.log("Error: "+obj.message);}var first_load=false;function playerState(obj){$("#debug_message_state").text("Changed: "+obj.oldstate+" => "+obj.newstate);}function in_array(needle,haystack){var found=false,key;for(key in haystack){if(haystack[key]==needle){found=true;break;}}return found;}function embed_html5_player(video_src,options){console.log("Embedding HTML5 player into: "+options.div_element);$("#"+options.div_element).html('<video src="'+video_src+'" width="'+options.width+'" height="'+options.height+'" autoplay="autoplay" controls="controls" poster="'+options.image+'" prelead="meta"></video>');}function embed_preview_player(options){var player_dir="http://content.naughtyamerica.com/naughty/public/live_chat/preview_player/";var player_swf="player-limelight.swf";if(options.extension){player_swf=(options.extension=="flv")?"player-limelight-flv.swf":"player-limelight.swf";}var attributes={id:"playerID",name:"playerID"};var params={wmode:"transparent",allowscriptaccess:"always"};attributes.id=options.div_element;attributes.name=options.div_element;if(options.allowfullscreen){params.allowfullscreen="true";}if(!options.flash_version){options.flash_version="10.0.0";}options.file=options.file.replace("&","%26");options.file=options.file.replace("?","%3F");options.file=options.file.replace("=","%3D");video_flashvars={id:"playerID"};video_flashvars.file=options.file;video_flashvars.title=(!options.title)?"Naughty America":options.title;video_flashvars.description=(!options.description)?"Naughty America - Nobody Does It Better!":options.description;if(options.playlist){video_flashvars.playlistfile=options.file;video_flashvars.streamer=options.stream;}else{video_flashvars.streamer=options.file;}video_flashvars.plugins="";if(!options.disable_skipping){video_flashvars.plugins+=player_dir+"ForwardBack.swf";}if(options.description_window){video_flashvars.plugins+=","+player_dir+"DescriptionWindow.swf";}if(options.embed_window){video_flashvars.plugins+=","+player_dir+"EmbedWindow.swf";}if(options.screenshots_available){video_flashvars.plugins+=","+player_dir+"Preview.swf";}if(options["DescriptionWindow.auto"]){video_flashvars["DescriptionWindow.auto"]=options["DescriptionWindow.auto"];}if(options.postroll){video_flashvars.plugins+=","+player_dir+"PostRoll.swf";}video_flashvars.provider="http";video_flashvars.type="bitgravity";video_flashvars.dock="false";video_flashvars.bufferlength=(!options.bufferlength)?"5":options.bufferlength;video_flashvars.http={startparam:"starttime"};console.log("Player buffer lenth: "+video_flashvars.bufferlength);if(!isIE6){video_flashvars.autostart=options.autostart;console.log("Autostarting the video!");}else{video_flashvars.autostart=false;console.log("Using IE6, so we can't autostart.");}video_flashvars.stretching="exactfit";video_flashvars.controlbar=options.controlbar;if(options.mute==true||options.mute=="true"){video_flashvars.volume=0;}video_flashvars.width=options.width;video_flashvars.height=options.height;video_flashvars.image=(options.image&&options.image!="")?options.image:"http://content.naughtyamerica.com/naughty/public/live_chat/live_load.jpg";swfobject.embedSWF(player_dir+player_swf,options.div_element,video_flashvars.width,video_flashvars.height,options.flash_version,"http://bitcast-b.bitgravity.com/player/expressInstall.swf",video_flashvars,params,attributes);}function embed_advection_player(options){var player_dir="http://wcs.mp.advection.net/advection/_dld/player/";var attributes={};var params={wmode:"transparent"};attributes.id=options.div_element;attributes.name=options.div_element;if(options.allowfullscreen){params.allowfullscreen="true";}options.file=options.file.replace("&","%26");options.file=options.file.replace("?","%3F");options.file=options.file.replace("=","%3D");video_flashvars={};video_flashvars.file=options.file;if(options.playlist){video_flashvars.playlistfile=options.file;video_flashvars.streamer=options.stream;}else{video_flashvars.streamer=options.streamer;}video_flashvars.type="rtmp";video_flashvars.dock="false";video_flashvars.bufferlength="5";video_flashvars.autostart=options.autostart;video_flashvars.stretching="exactfit";video_flashvars.controlbar=options.controlbar;if(options.mute==true||options.mute=="true"){video_flashvars.volume=0;}video_flashvars.width=options.width;video_flashvars.height=options.height;video_flashvars.image="http://content.naughtyamerica.com/naughty/public/live_chat/live_load.jpg";swfobject.embedSWF(player_dir+"player_4_7.swf",options.div_element,video_flashvars.width,video_flashvars.height,"10.0.0","http://bitcast-b.bitgravity.com/player/expressInstall.swf",video_flashvars,params,attributes);}function get_daily_gmna_video_name(){return"Commercial 16-9_flash_1k.flv";var d=NADate();var weekday=new Array(7);weekday[0]="weekend";weekday[1]="monday";weekday[2]="tuesday";weekday[3]="wednesday";weekday[4]="thursday";weekday[5]="friday";weekday[6]="weekend";return"gmna_update_"+weekday[d.getUTCDay()]+"_flash_1k.flv";}function loadVideo(video,viewsLeft){current_video=video;$("#top_cam").html('<a href="#"><img src="/images/trailer_limiter/'+viewsLeft+'_left.jpg" width="604" height="455" /></a>');}function scrollSchedule(direction){if(direction=="right"){$("#live_schedule").animate({scrollLeft:"+=221px"},1000,"swing");}else{$("#live_schedule").animate({scrollLeft:"-=221px"},1000,"swing");}}function scrollArea(id,direction,amount){if(direction=="right"){$(id).animate({scrollLeft:"+="+amount+"px"},1000,"swing");}else{$(id).animate({scrollLeft:"-="+amount+"px"},1000,"swing");}}function insertCard(){var card="http://content.naughtyamerica.com/naughty/public/live_chat/live_gmna.jpg";document.getElementById("top_cam").innerHTML('<img title="Naughty America Live" src="'+card+'">');}function getPreviewData(the_cam_function,id_or_class,force_timeout){if(id_or_class==null||id_or_class==""){id_or_class="#top_cam";}clear_all_timers();$.get("/index.php",{m:"chat",s:"preview_ajax",name:preview_cookie},function(data){if(data.match(/ERROR/)){if(typeof the_cam_function=="function"){the_cam_function();}if(!interval_ids.stop_preview){interval_ids.stop_preview=setInterval(function(){stopLivePreview(id_or_class,null,"Error!");},60000);}}else{var return_data=new Array();var temp=data.split("|");var x;for(x in temp){var temp2=temp[x].split("=");return_data[temp2[0]]=temp2[1];}checkPreview(return_data,the_cam_function,id_or_class,force_timeout);}});}function checkPreview(data_array,the_cam_function,id_or_class,force_timeout){clearInterval(interval_ids.check_preview);interval_ids.check_preview=null;if(id_or_class==null||id_or_class==""){id_or_class="#top_cam";}var preview_length=data_array.timeout*1000;if(force_timeout){preview_length=force_timeout;}if(preview_length==null||preview_length=="0"||preview_length==0){preview_length=60000;}one_day=60*60*24*1000;var live=(data_array.status=="on")?true:false;if(!live&&!force_timeout){if(typeof the_cam_function=="function"){the_cam_function();}if(!interval_ids.get_preview){interval_ids.get_preview=setInterval(function(){getPreviewData("",id_or_class);},60000);}return;}var regex=new RegExp(preview_cookie+"=([^;]+)");var match=regex.exec(document.cookie);var mytime=new Date;var unixtime=mytime.getTime();if(match!=null&&match[1]!=null){var thentime=parseInt(match[1]);if(thentime>unixtime){stopLivePreview(id_or_class,data_array.image_url,"Old cookie - "+data_array.name);}else{if(typeof the_cam_function=="function"){the_cam_function();}if(!interval_ids.stop_preview){interval_ids.stop_preview=setInterval(function(){stopLivePreview(id_or_class,data_array.image_url,"Reset cookie"+current_channel);},preview_length);}setPreviewCookie(preview_cookie,unixtime);}}else{if(typeof the_cam_function=="function"){the_cam_function();}if(!interval_ids.stop_preview){interval_ids.stop_preview=setInterval(function(){stopLivePreview(id_or_class,data_array.image_url,"New cookie: "+data_array.name);},preview_length);}setPreviewCookie(preview_cookie,unixtime);}}function setPreviewCookie(name,now){var mydate=new Date;mydate.setTime(now+one_day+one_day);cookie_val=name+"="+(now+one_day)+"; expires="+mydate.toGMTString()+"; path=/";document.cookie=cookie_val;}function clear_all_timers(){clearInterval(interval_ids.check_preview);clearInterval(interval_ids.get_preview);clearInterval(interval_ids.stop_preview);interval_ids.get_preview=null;interval_ids.check_preview=null;interval_ids.stop_preview=null;}function stopLivePreview(the_div,the_img,message){clear_all_timers();player=null;if(!message){message="-";}debug_print("Stopped: "+message);clearInterval(interval_id);if(the_img==null||the_img==""){the_img="http://content.naughtyamerica.com/naughty/public/live_chat/live_timeout_default_card.jpg";}$(the_div).html("<div id='top_stream'><a href='"+join_link+"' title='Join Naughty America Live'><img src='"+the_img+"' alt='Live Video Shows at Naughty America Live Join Here!' /></a></div>");if($("#bottom_stream")!=null){$("#bottom_stream").html("<div id='bottom_stream'><a href='"+join_link+"' title='Join Naughty America Live'><img src='"+the_img+"' alt='Live Video Shows at Naughty America Live Join Here!' /></a></div>");}}function inform_via_button(button_id,message,color,boldness,disabled){if(disabled==null){disabled="";}$("#"+button_id).val(message);$("#"+button_id).css("color",color);$("#"+button_id).css("font-weight",boldness);$("#"+button_id).attr("disabled",disabled);}String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};function sleep(delay){var start=new Date().getTime();while(new Date().getTime()<start+delay){}}jQuery(document).ready(function($){$("#send_email").click(function(){var email=$("#email").val().trim().toLowerCase().match(/[a-z0-9\!\#\$\%\&\'\*\+\-\/\=\?\^\_\`\{\|\}\~]+@[a-z0-9\-\.]+\.[a-z]{2,4}/i);if(email!=null){$("#send_email").attr("disabled","disabled");$("#send_email").val("Sending...");$.get("http://tour.naughtyamerica.com/?m=live&email="+email,{},function(data){$("#send_email").val("Thank you!");});}else{alert('Please type a proper email address before hitting "Send Now".');}});set_live_rollovers();});function set_live_rollovers(){return;jQuery(".live_show").hover(function(){var channel=$(this).attr("id");$("#top_cam").append("<div class='floating_box'><img class='live_screen_grab' src='http://bitcast-a.v1.sjc1.bitgravity.com/naughty/public/live_chat/images/"+channel+".jpg'></div>");},function(){$("#top_cam").find(".floating_box").remove();});}var channel_check_id=null;function show_bottom_feed(show){if(show){$("#bottom_cam").slideDown("fast");}else{$("#bottom_cam").slideUp("fast");}}function show_bottom_section(show){if(show){$("#past_live").slideDown("fast");}else{$("#past_live").slideUp("fast");}}function update_channels(){var url=location.href;var show_type;if(url.search(/debug_shows/)!=-1&&0){show_type="all";}else{show_type="active";}naughty_rpc("Live.get_channel_info",{status:show_type},function(channels){if(channel_check_id!=null){clearTimeout(channel_check_id);channel_check_id=null;}$(".live_show").removeClass("live_show");if(channels){for(var i in channels){if(channels[i]["type"]=="stream"){debug_print(channels[i]["title"]+" is LIVE!");$("#live_content_available").addClass("live_red");break;}}}else{$("#live_content_available").removeClass("live_red");debug_print("No live shows available.");}});}function update_live_button(){var url=location.href;var show_type;if(url.search(/debug_shows/)!=-1&&0){show_type="all";}else{show_type="active";}naughty_rpc("Live.get_channel_info",{status:show_type},function(channels){if(channel_check_id!=null){clearTimeout(channel_check_id);channel_check_id=null;}if(channels&&channels.length>0){debug_print(channels[0]["title"]+" is LIVE!");$("#live_content_available").addClass("live_red");}else{$("#live_content_available").removeClass("live_red");debug_print("No live shows available.");}if(channel_check_id==null){channel_check_id=setTimeout(function(){update_channels();},10000);}});}function switch_channel(current_channel,channel_title,screen_name,options,chat_options){clear_all_timers();show_bottom_section(live_channels[current_channel].archived==1);show_bottom_feed(false);if(options.preview||(options.is_expired&&!in_array(current_channel,free_qvc_shows))){preview_cookie="chat_"+current_channel;console.log("Preview mode: enabled");getPreviewData(function(){embed_channel(current_channel,options);});}else{console.log("Unlimited viewing: enabled");embed_channel(current_channel,options);}if(chat_options.preview){if(!options.chat_window_div){options.chat_window_div="chat_window_new";}console.log("Loaded chat template");embed_tour_chat_iframe(options.chat_window_div,screen_name,chat_options);}else{embed_member_chat_iframe("chat_window_new",screen_name,chat_options);}$(".active_show").removeClass("active_show");$("#"+current_channel).addClass("active_show");$(".show_title").text(channel_title);$("#whos_on_live").attr("src","http://api.naughtyamerica.com/labs/index.php?m=api&s=online&chat="+current_channel+"&custom_template=whos_on_live&tracking=members");$("#highlight_vids_area").html('<p class="loading-message"><b>Loading...</b><img align="absmiddle" src="http://content.naughtyamerica.com/naughty/public/live_chat/images/spinner.gif"></p>');$("#highlight_vids_area").load("/index.php?m=chat&site="+current_channel+"&template=scenes_live_archive&mode=solo");}function embed_tour_chat_iframe(element_id,screen_name,options){var iframe_code="";var chat_window="tour_guest";if(!options){options=default_chat_window_options;}if(!options.current_channel){options.current_channel=current_channel;}options.brand=(document.domain.search("tour.suite703.com")!=-1)?"suite703":"naughtyamerica";if(screen_name==null||screen_name==""){screen_name="Tour_"+Math.floor(Math.random()*1000);}naughty_rpc("Live.get_channel_info",{channel_name:options.current_channel},function(channel){if(channel){iframe_code='<iframe style="z-index: 1" id="chatFrame" src="http://tour.'+options.brand+".com/client/"+chat_window+".php?room_id="+channel.chat_room_id+"&screen_name="+screen_name+"&width="+options.width+"&height="+options.height+'&no_header" width="'+options.width+'" height="'+(options.height-59)+'" frameborder="0" scrolling="no"></iframe>';console.log("Iframe code for "+document.domain+": "+iframe_code);$("#"+element_id).html(iframe_code);}});}function embed_member_chat_iframe(element_id,screen_name,options){var iframe_code="";var chat_window="chat_guest";if(!options){options=default_chat_window_options;}if(!options.current_channel){options.current_channel=current_channel;}if(options.preview){chat_window="tour_guest";$("#new_chat_window").css("height","258px");options.height=258;screen_name="Tour_"+Math.floor(Math.random()*1000);}if(window.location.hostname.search(/free/)!=-1||screen_name==null||screen_name==""){}else{iframe_code='<iframe id="chatFrame" src="/client/'+chat_window+".php?room="+options.current_channel+"&screen_name="+screen_name+"&width="+options.width+"&height="+options.height+'" width="'+options.width+'" height="'+options.height+'" frameborder="0" scrolling="no"></iframe>';}if(!options.preview){iframe_code+='<br/><span class="message"><a title="Live Chat Screen Name Changer" href="/index.php?&m=account&s=settings">Click here</a> to change your chat screen name!</span>';}if(screen_name==null||screen_name==""){console.log("Redirecting to Account settings page");top.location.href="/index.php?&m=account&s=settings";}else{console.log("Embedding iframe code: %s",iframe_code);$("#"+element_id).html(iframe_code);console.log("Done embedding iframe code.");}}var polling_interval=15000;var interval_id=null;var player_dir="http://content.naughtyamerica.com/naughty/public/live_chat/swf";var params={allowfullscreen:"false",allowScriptAccess:"always",wmode:"transparent"};var attributes={id:"live_video_player",name:"live_video_player"};var reserved_screen_names=new Array("admin","administrator","na live");var default_channel_data={type:"trailer",file:"http://content.naughtyamerica.com/naughty/public/sizzler/vids/livesizzler_flash_1k.flv"};var video_defaults={width:"615",height:"410",mute:"false",autostart:"1",image:"http://content.naughtyamerica.com/naughty/public/live_chat/live_load.jpg",controlbar:"none"};var default_chat_window_options={width:"450",height:"400",preview:"false"};var video_flashvars={};var current_channel="naughty_americans";video_flashvars.title="Naughty America Live Video";video_flashvars.description="Live Chat is brought to you by Naughty America!";video_flashvars.author="Naughty America";var current_segment={name:"",file:"",type:"",top_stream:"",bottom_stream:""};function embed_chat_iframe(element_id,screen_name,options){var iframe_code="";var chat_window="chat_guest";if(!options){options=default_chat_window_options;}if(options.preview){chat_window="tour_guest";$("#new_chat_window").css("height","258px");options.height=258;screen_name="Tour_"+Math.floor(Math.random()*1000);}if(window.location.hostname.search(/free/)!=-1||screen_name==null||screen_name==""){screen_name="Guest_"+Math.floor(Math.random()*1000);iframe_code='<iframe id="chatFrame" src="/client/'+chat_window+".php?room="+current_channel+"&screen_name="+screen_name+"&width="+options.width+"&height="+options.height+'" width="'+options.width+'" height="'+options.height+'" frameborder="0" scrolling="no"></iframe>';}else{iframe_code='<iframe id="chatFrame" src="/client/'+chat_window+".php?room="+current_channel+"&screen_name="+screen_name+"&width="+options.width+"&height="+options.height+'" width="'+options.width+'" height="'+options.height+'" frameborder="0" scrolling="no"></iframe>';}if(!options.preview){iframe_code+='<br/><span class="message"><a title="Live Chat Screen Name Changer" href="/index.php?&m=account&s=settings">Click here</a> to change your chat screen name!</span>';}$("#"+element_id).html(iframe_code);console.log("%% Embedded chat into ("+element_id+"): "+$("#"+element_id).html());}function embed_stream(div_element,stream,options){var player_swf="/player-5.0-streamer.swf",streamer=stream,file_stream=stream;attributes.name=attributes.id=div_element;options=check_video_defaults(options);if(options.allowfullscreen){params.allowfullscreen="true";}if(stream.search(/rtmp:/)!=-1){player_swf="/player-advection.swf";streamer=stream.substring(0,stream.lastIndexOf("/")),file_stream=stream.substring(stream.lastIndexOf("/")+1);video_flashvars.provider="";}else{video_flashvars.provider="http";video_flashvars.bufferlength="0";video_flashvars.http={startparam:"starttime"};}streamer=streamer.replace("&","%26");streamer=streamer.replace("?","%3F");streamer=streamer.replace("=","%3D");video_flashvars.file=file_stream;video_flashvars.streamer=streamer;video_flashvars.controlbar=options.controlbar;video_flashvars.autostart="1";video_flashvars.stretching="exactfit";if(options.mute==true||options.mute=="true"){video_flashvars.volume=0;}video_flashvars.width=options.width;video_flashvars.height=options.height;video_flashvars.image=options.image;console.log("STREAM: "+video_flashvars.streamer+" FILE: "+video_flashvars.file+" PLAYER: "+player_dir+player_swf);swfobject.embedSWF(player_dir+player_swf,div_element,video_flashvars.width,video_flashvars.height,"10.0.0","http://bitcast-b.bitgravity.com/player/expressInstall.swf",video_flashvars,params,attributes);}function check_video_defaults(options){if(!options){return video_defaults;}if(!options.width){options.width=video_defaults.width;}if(!options.height){options.height=video_defaults.height;}if(!options.mute){options.mute=video_defaults.mute;}if(!options.autostart){options.autostart=video_defaults.autostart;}if(!options.image){options.image=video_defaults.image;}if(!options.controlbar){options.controlbar=video_defaults.controlbar;}if(!options.link){options.link="";}if(!options.linktarget){options.linktarget="_self";}if(!options.displayclick){options.displayclick="play";}return options;}function embed_trailer(div_element,video_file,options){attributes.id=div_element;attributes.name=div_element;if(!options.controlbar){options.controlbar="over";}options=check_video_defaults(options);if(options.allowfullscreen){params.allowfullscreen="true";}if(video_file&&video_file!=""){video_file=video_file.replace("&","%26");video_file=video_file.replace("?","%3F");video_file=video_file.replace("=","%3D");}video_flashvars.file=video_file;video_flashvars.streamer=video_file;video_flashvars.provider=(options.youtube)?"youtube":"http";if(!options.youtube){video_flashvars.type="bitgravity";}if(options.playlistfile){video_flashvars.playlistfile=options.playlistfile;}if(options.repeat){video_flashvars.repeat=options.repeat;}video_flashvars.bufferlength="5";video_flashvars.controlbar=options.controlbar;video_flashvars.http={startparam:"starttime"};video_flashvars.autostart=options.autostart;video_flashvars.stretching="exactfit";if(options.mute==true||options.mute=="true"){video_flashvars.volume=0;}video_flashvars.width=options.width;video_flashvars.height=options.height;video_flashvars.image=options.image;if(on_preview_page){console.log("Article page eligibility: "+eligible_preview_page);if(!eligible_preview_page){var image_tag='<img width="'+options.width+'" height="'+options.height+'" alt="Click here to download!" title="Click here to download!" src="'+options.image+'">';var play_button='<img id="download_button" src="http://content.naughtyamerica.com/naughty/public/live_chat/images/btn_sqr_full_video.png">';var final_tag='<div style="position: relative"><a href="'+join_link+'">'+play_button+image_tag+"</a></div>";$("#"+div_element).html(final_tag);return;}}swfobject.embedSWF(player_dir+"/player-5.0-licensed.swf",div_element,video_flashvars.width,video_flashvars.height,"10.0.0","http://bitcast-b.bitgravity.com/player/expressInstall.swf",video_flashvars,params,attributes);}function embed_whats_live_now(options){if(!options){options=video_defaults;}var channel_name="naughty_americans";naughty_rpc("Live.get_channel_info",{status:"live_now",limit:4},function(data){for(var channel in data){channel_name=channel;break;}embed_channel(channel_name,options);});}function watch_whats_live_now(nats_code,target,tracking_method,new_window){if(!nats_code){nats_code="";}if(!target){target=(target_domain!=undefined)?target_domain:"http://members.naughtyamerica.com";}if(target[target.length-1]!="/"){target+="/";}if(!tracking_method){tracking_method="nats";}naughty_rpc("Live.get_whats_live_now",{status:"active"},function(data){var final_url;var channel_slug="schedule";if(data){channel_slug=data;}if(nats_code!=""&&tracking_method!="affid"){final_url=target+"live_chat/"+channel_slug+"/?"+nats_code;}else{if(tracking_method=="affid"){final_url=target+"index.php/live_chat/"+channel_slug+"/AFFID"+nats_code+"/TRACKA/";}else{final_url=target+"live_chat/"+channel_slug+"/";}}if(!new_window){top.location.href=final_url;}else{window.open(final_url,"NA Live!");}});}function embed_channel(channel_name,options){if(current_channel!=channel_name){debug_print("Switching: "+current_channel+" => "+channel_name);current_channel=channel_name;clearInterval(interval_id);interval_id=null;}var channel_data=default_channel_data;var player_options={};if(!options){options=video_defaults;}if(options.force_embed==undefined){options.force_embed=false;}naughty_rpc("Live.get_channel_info",{channel_name:channel_name,secure:true},function(data){if(data){channel_data=data;debug_print("Got info for: "+channel_data.name);}if(channel_data.type!=current_segment.type){debug_print("Mode switch: "+current_segment.type+" => "+channel_data.type);current_segment.type=channel_data.type;}switch(channel_data.type){case"video":case"trailer":if((channel_data.file!=current_segment.file)||options.force_embed){options.force_embed=false;if(0&&player){player_options.type="video";player_options.provider="http";player_options.mute=false;player_options.autostart=true;player_options.stretching="exactfit";player_options.file=channel_data.file;debug_print("Load video:"+channel_data.name);player.sendEvent("LOAD",player_options);}else{$("#top_cam").html('<div id="top_stream"></div>');debug_print("Embedding Trailer:"+channel_data.name);var trailer_file=channel_data.file;if(channel_data.file2!=""&&(Math.floor(Math.random()*2)==1)){trailer_file=channel_data.file2;}embed_trailer("top_stream",trailer_file,options);}current_segment.file=channel_data.file;current_segment.name=channel_data.name;}break;case"stream":if(channel_data.cameras!=2){show_bottom_feed(false);}if(channel_data.name!=current_segment.name){if(0&&player){player_options.type="bitgravity";player_options.provider="http";player_options.mute=false;player_options.stretching="exactfit";player_options.streamer=player_options.file=channel_data.top_stream;debug_print("Load event:"+channel_data.top_stream);player.sendEvent("LOAD",player_options);}else{$("#top_cam").html('<div class="live-overlay"></div><div id="top_stream"></div>');debug_print("Embedding Stream:"+channel_data.top_stream);embed_stream("top_stream",channel_data.top_stream,options);}current_segment.top_stream=channel_data.top_stream;current_segment.name=channel_data.name;if(channel_data.cameras==2){console.log(current_segment.name+" is a 2 cam show: Showing bottom camera.");show_bottom_feed(true);$("#bottom_cam").html('<div id="bottom_stream"></div>');options.mute=false;embed_stream("bottom_stream",channel_data.bottom_stream,options);current_segment.bottom_stream=channel_data.bottom_stream;}else{console.log(current_segment.name+" is a 1 cam show: Hiding bottom camera.");show_bottom_feed(false);}}break;}if(interval_id==null){}});}function get_preview_data(the_cam_function,id_or_class,path){if(id_or_class==null||id_or_class==""){id_or_class="#top_cam";}if(path==null){path="";}$.get("/labs/index.php?m=chat&s=preview_ajax&name="+preview_cookie,function(data){if(data.match(/ERROR/)){if(typeof the_cam_function=="function"){the_cam_function();}setTimeout("stopLivePreview('"+id_or_class+"')",60000);}else{var return_data=new Array();var temp=data.split("|");var x;for(x in temp){var temp2=temp[x].split("=");return_data[temp2[0]]=temp2[1];}checkPreview(return_data,the_cam_function,id_or_class);}});}function load_qvc(options){var index_file="index3.php";var this_domain=(document.domain.search(/localhost/)!=-1)?"http://"+document.domain.replace(/\\/g,"/").replace(/\/[^\/]*\/?$/,""):"";if(!options){options={width:960,height:585,site:"live_naughty_girl_talk"};}console.log("Showing QVC popup.");$("body").append('<div id="overlay_mask"></div>');$("body").append('<div id="overlay_popup_container"><div id="overlay_popup"></div></div>');if(this_domain.search("www.naughtyamerica.com")!=-1||this_domain.search("www.suite703.com")!=-1){index_file="index3.php";}var url=this_domain+"/"+index_file+"?m=misc&s=loader&template=live_popup&site="+options.site;$("#overlay_popup").hide().css("height",options.height).css("width",options.width).load(url,{},function(data){$("#overlay_mask").animate({opacity:0.7},"slow");$(this).slideDown("slow");});}function embed_qvc(options){var qvc_show="live_naughty_girl_talk";naughty_rpc("Live.get_channel_info",{status:"live_now",limit:4},function(data){for(var channel in data){if(in_array(channel,free_qvc_shows)){qvc_show=channel;$("#show-name").text(data[channel]["title"]);break;}}embed_channel(qvc_show,options);naughty_rpc("Live.get_upcoming_actors_html",{site:qvc_show,limit:4,debug:true},function(data){if(data){$(options.actor_container).hide().html(data).fadeIn("slow");}});});}function close_qvc(){$("#overlay_popup").slideUp("slow",function(){$(this).remove();$("#overlay_popup_container").remove();$("#overlay_mask").animate({opacity:0},"fast",function(){$(this).remove();});});}var live_pipe=null;function init_live_ape_admin(){APE.Config.scripts=["http://tour.naughtyamerica.com/js/apeCoreSession.js"];var client=new APE.Client();client.load({identifier:"NA_NOTIFICATIONS",channel:"na_live"});client.addEvent("load",function(){if(0&&client.core.options.restore){console.log("Restoring APE session");client.core.start();}else{var display_name="NAAdmin"+Math.round(Math.random()*100000);client.core.start({name:display_name});console.log("Logging in as: "+display_name);$("#live-connection-status").removeClass("red").addClass("orange").html("CONNECTING...");}});client.addEvent("ready",function(){var options={height:400,width:600};client.onRaw("changeLiveStatus",function(raw,pipe){console.log("Live Status Notification: "+unescape(raw.data.status)+" = "+unescape(raw.data.info.title));});});client.addEvent("multiPipeCreate",function(pipe,options){live_pipe=pipe;console.log("Live APE Admin connected successfully ("+pipe.name+")");$("#live-connection-status").removeClass("orange").addClass("green").html("CONNECTED");});}function init_live_ape_client(){APE.Config.scripts=[window.target_domain+"/js/apeCoreSession.js"];var client=new APE.Client();client.load();client.addEvent("load",function(){if(client.core.options.restore){console.log("Restoring APE session");client.core.start();}else{if(window.display_name==undefined||window.display_name==""){window.display_name="NAUser"+Math.round(Math.random()*1000000);}client.core.start({name:window.display_name});console.log("Live APE Client Loaded. Logging in as: "+window.display_name);}});client.addEvent("ready",function(){client.core.join(["na_live","na_messages"]);client.onRaw("newMessage",function(raw,pipe){var message_data=raw.data.data;console.log("New "+unescape(raw.data.type)+" message from: "+unescape(raw.data.data.display_name));$("#latest-message-template .author_name").html(message_data.display_name);$("#latest-message-template .wallMessageText").html(message_data.message_text);$("#message_board").prepend($("#latest-message-template").clone().html()).slideDown("slow");console.log("Message added!");});client.onRaw("changeLiveStatus",function(raw,pipe){console.log("Live Status Notification: "+unescape(raw.data.status)+" = "+unescape(raw.data.info.title));if(unescape(raw.data.status)=="on-air"){$("#live_content_available").addClass("live_red");}else{$("#live_content_available").removeClass("live_red");}});});client.addEvent("multiPipeCreate",function(pipe,options){live_pipe=pipe;console.log("Live APE client connected successfully to channel: "+pipe.name);});}function send_wall_message(data){console.log("Posting a wall message!");live_pipe.request.send("sendMessage",{type:"wall",data:data});}function send_live_notification(form){if(live_pipe){var waiting=true;var form_id=$(form).attr("id");var status=($(form.type).val()=="trailer")?"off-air":"on-air";var info={name:$(form.name).val(),title:$(form.title).val()};$("#message").html("Sending the instant notification to all people watching...");console.log(form_id+": Changing "+$(form.title).val()+" to "+status);live_pipe.request.send("newLiveStatus",{status:status,info:info});setTimeout("$('#"+form_id+"').submit();",1000);return false;}else{alert('Please wait for the page to finish loading. It is still trying to connect to the Live "Instant Notification" Sever.');}return true;}/*
 * jQuery Form Plugin
 * version: 2.69 (06-APR-2011)
 * @requires jQuery v1.3.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
(function($){$.fn.ajaxSubmit=function(options){if(!this.length){log("ajaxSubmit: skipping submit process - no element selected");return this;}if(typeof options=="function"){options={success:options};}var action=this.attr("action");var url=(typeof action==="string")?$.trim(action):"";if(url){url=(url.match(/^([^#]+)/)||[])[1];}url=url||window.location.href||"";options=$.extend(true,{url:url,success:$.ajaxSettings.success,type:this[0].getAttribute("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},options);var veto={};this.trigger("form-pre-serialize",[this,options,veto]);if(veto.veto){log("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this;}if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log("ajaxSubmit: submit aborted via beforeSerialize callback");return this;}var n,v,a=this.formToArray(options.semantic);if(options.data){options.extraData=options.data;for(n in options.data){if(options.data[n] instanceof Array){for(var k in options.data[n]){a.push({name:n,value:options.data[n][k]});}}else{v=options.data[n];v=$.isFunction(v)?v():v;a.push({name:n,value:v});}}}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log("ajaxSubmit: submit aborted via beforeSubmit callback");return this;}this.trigger("form-submit-validate",[a,this,options,veto]);if(veto.veto){log("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this;}var q=$.param(a);if(options.type.toUpperCase()=="GET"){options.url+=(options.url.indexOf("?")>=0?"&":"?")+q;options.data=null;}else{options.data=q;}var $form=this,callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm();});}if(options.clearForm){callbacks.push(function(){$form.clearForm();});}if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data){var fn=options.replaceTarget?"replaceWith":"html";$(options.target)[fn](data).each(oldSuccess,arguments);});}else{if(options.success){callbacks.push(options.success);}}options.success=function(data,status,xhr){var context=options.context||options;for(var i=0,max=callbacks.length;i<max;i++){callbacks[i].apply(context,[data,status,xhr||$form,$form]);}};var fileInputs=$("input:file",this).length>0;var mp="multipart/form-data";var multipart=($form.attr("enctype")==mp||$form.attr("encoding")==mp);if(options.iframe!==false&&(fileInputs||options.iframe||multipart)){if(options.closeKeepAlive){$.get(options.closeKeepAlive,fileUpload);}else{fileUpload();}}else{$.ajax(options);}this.trigger("form-submit-notify",[this,options]);return this;function fileUpload(){var form=$form[0];if($(":input[name=submit],:input[id=submit]",form).length){alert('Error: Form elements must not have name or id of "submit".');return;}var s=$.extend(true,{},$.ajaxSettings,options);s.context=s.context||s;var id="jqFormIO"+(new Date().getTime()),fn="_"+id;var $io=$('<iframe id="'+id+'" name="'+id+'" src="'+s.iframeSrc+'" />');var io=$io[0];$io.css({position:"absolute",top:"-1000px",left:"-1000px"});var xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){log("aborting upload...");var e="aborted";this.aborted=1;$io.attr("src",s.iframeSrc);xhr.error=e;s.error&&s.error.call(s.context,xhr,"error",e);g&&$.event.trigger("ajaxError",[xhr,s,e]);s.complete&&s.complete.call(s.context,xhr,"error");}};var g=s.global;if(g&&!$.active++){$.event.trigger("ajaxStart");}if(g){$.event.trigger("ajaxSend",[xhr,s]);}if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){if(s.global){$.active--;}return;}if(xhr.aborted){return;}var timedOut=0;var sub=form.clk;if(sub){var n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type=="image"){s.extraData[n+".x"]=form.clk_x;s.extraData[n+".y"]=form.clk_y;}}}function doSubmit(){var t=$form.attr("target"),a=$form.attr("action");form.setAttribute("target",id);if(form.getAttribute("method")!="POST"){form.setAttribute("method","POST");}if(form.getAttribute("action")!=s.url){form.setAttribute("action",s.url);}if(!s.skipEncodingOverride){$form.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});}if(s.timeout){setTimeout(function(){timedOut=true;cb();},s.timeout);}var extraInputs=[];try{if(s.extraData){for(var n in s.extraData){extraInputs.push($('<input type="hidden" name="'+n+'" value="'+s.extraData[n]+'" />').appendTo(form)[0]);}}$io.appendTo("body");io.attachEvent?io.attachEvent("onload",cb):io.addEventListener("load",cb,false);form.submit();}finally{form.setAttribute("action",a);if(t){form.setAttribute("target",t);}else{$form.removeAttr("target");}$(extraInputs).remove();}}if(s.forceSync){doSubmit();}else{setTimeout(doSubmit,10);}var data,doc,domCheckCount=50;function cb(){if(xhr.aborted){return;}var doc=io.contentWindow?io.contentWindow.document:io.contentDocument?io.contentDocument:io.document;if(!doc||doc.location.href==s.iframeSrc){if(!timedOut){return;}}io.detachEvent?io.detachEvent("onload",cb):io.removeEventListener("load",cb,false);var ok=true;try{if(timedOut){throw"timeout";}var isXml=s.dataType=="xml"||doc.XMLDocument||$.isXMLDoc(doc);log("isXml="+isXml);if(!isXml&&window.opera&&(doc.body==null||doc.body.innerHTML=="")){if(--domCheckCount){log("requeing onLoad callback, DOM not available");setTimeout(cb,250);return;}}xhr.responseText=doc.body?doc.body.innerHTML:doc.documentElement?doc.documentElement.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;xhr.getResponseHeader=function(header){var headers={"content-type":s.dataType};return headers[header];};var scr=/(json|script)/.test(s.dataType);if(scr||s.textarea){var ta=doc.getElementsByTagName("textarea")[0];if(ta){xhr.responseText=ta.value;}else{if(scr){var pre=doc.getElementsByTagName("pre")[0];var b=doc.getElementsByTagName("body")[0];if(pre){xhr.responseText=pre.textContent;}else{if(b){xhr.responseText=b.innerHTML;}}}}}else{if(s.dataType=="xml"&&!xhr.responseXML&&xhr.responseText!=null){xhr.responseXML=toXml(xhr.responseText);}}data=httpData(xhr,s.dataType,s);}catch(e){log("error caught:",e);ok=false;xhr.error=e;s.error&&s.error.call(s.context,xhr,"error",e);g&&$.event.trigger("ajaxError",[xhr,s,e]);}if(xhr.aborted){log("upload aborted");ok=false;}if(ok){s.success&&s.success.call(s.context,data,"success",xhr);g&&$.event.trigger("ajaxSuccess",[xhr,s]);}g&&$.event.trigger("ajaxComplete",[xhr,s]);if(g&&!--$.active){$.event.trigger("ajaxStop");}s.complete&&s.complete.call(s.context,xhr,ok?"success":"error");setTimeout(function(){$io.removeData("form-plugin-onload");$io.remove();xhr.responseXML=null;},100);}var toXml=$.parseXML||function(s,doc){if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(s);}else{doc=(new DOMParser()).parseFromString(s,"text/xml");}return(doc&&doc.documentElement&&doc.documentElement.nodeName!="parsererror")?doc:null;};var parseJSON=$.parseJSON||function(s){return window["eval"]("("+s+")");};var httpData=function(xhr,type,s){var ct=xhr.getResponseHeader("content-type")||"",xml=type==="xml"||!type&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==="parsererror"){$.error&&$.error("parsererror");}if(s&&s.dataFilter){data=s.dataFilter(data,type);}if(typeof data==="string"){if(type==="json"||!type&&ct.indexOf("json")>=0){data=parseJSON(data);}else{if(type==="script"||!type&&ct.indexOf("javascript")>=0){$.globalEval(data);}}}return data;};}};$.fn.ajaxForm=function(options){if(this.length===0){var o={s:this.selector,c:this.context};if(!$.isReady&&o.s){log("DOM not ready, queuing ajaxForm");$(function(){$(o.s,o.c).ajaxForm(options);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.ajaxFormUnbind().bind("submit.form-plugin",function(e){if(!e.isDefaultPrevented()){e.preventDefault();$(this).ajaxSubmit(options);}}).bind("click.form-plugin",function(e){var target=e.target;var $el=$(target);if(!($el.is(":submit,input:image"))){var t=$el.closest(":submit");if(t.length==0){return;}target=t[0];}var form=this;form.clk=target;if(target.type=="image"){if(e.offsetX!=undefined){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else{if(typeof $.fn.offset=="function"){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop;}}}setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},100);});};$.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin");};$.fn.formToArray=function(semantic){var a=[];if(this.length===0){return a;}var form=this[0];var els=semantic?form.getElementsByTagName("*"):form.elements;if(!els){return a;}var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i<max;i++){el=els[i];n=el.name;if(!n){continue;}if(semantic&&form.clk&&el.type=="image"){if(!el.disabled&&form.clk==el){a.push({name:n,value:$(el).val()});a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y});}continue;}v=$.fieldValue(el,true);if(v&&v.constructor==Array){for(j=0,jmax=v.length;j<jmax;j++){a.push({name:n,value:v[j]});}}else{if(v!==null&&typeof v!="undefined"){a.push({name:n,value:v});}}}if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0];n=input.name;if(n&&!input.disabled&&input.type=="image"){a.push({name:n,value:$input.val()});a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y});}}return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n){return;}var v=$.fieldValue(this,successful);if(v&&v.constructor==Array){for(var i=0,max=v.length;i<max;i++){a.push({name:n,value:v[i]});}}else{if(v!==null&&typeof v!="undefined"){a.push({name:this.name,value:v});}}});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v=="undefined"||(v.constructor==Array&&!v.length)){continue;}v.constructor==Array?$.merge(val,v):val.push(v);}return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(successful===undefined){successful=true;}if(successful&&(!n||el.disabled||t=="reset"||t=="button"||(t=="checkbox"||t=="radio")&&!el.checked||(t=="submit"||t=="image")&&el.form&&el.form.clk!=el||tag=="select"&&el.selectedIndex==-1)){return null;}if(tag=="select"){var index=el.selectedIndex;if(index<0){return null;}var a=[],ops=el.options;var one=(t=="select-one");var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected){var v=op.value;if(!v){v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value;}if(one){return v;}a.push(v);}}return a;}return $(el).val();};$.fn.clearForm=function(){return this.each(function(){$("input,select,textarea",this).clearFields();});};$.fn.clearFields=$.fn.clearInputs=function(){return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(t=="text"||t=="password"||tag=="textarea"){this.value="";}else{if(t=="checkbox"||t=="radio"){this.checked=false;}else{if(tag=="select"){this.selectedIndex=-1;}}}});};$.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset();}});};$.fn.enable=function(b){if(b===undefined){b=true;}return this.each(function(){this.disabled=!b;});};$.fn.selected=function(select){if(select===undefined){select=true;}return this.each(function(){var t=this.type;if(t=="checkbox"||t=="radio"){this.checked=select;}else{if(this.tagName.toLowerCase()=="option"){var $sel=$(this).parent("select");if(select&&$sel[0]&&$sel[0].type=="select-one"){$sel.find("option").selected(false);}this.selected=select;}}});};function log(){if($.fn.ajaxSubmit.debug){var msg="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log){window.console.log(msg);}else{if(window.opera&&window.opera.postError){window.opera.postError(msg);}}}}})(jQuery);if(typeof jwplayer=="undefined"){var jwplayer=function(b){if(jwplayer.api){return jwplayer.api.selectPlayer(b);}};var $jw=jwplayer;jwplayer.version="5.6.1768 (Licensed version)";(function(c){c.utils=function(){};c.utils.typeOf=function(a){var b=typeof a;if(b==="object"){if(a){if(a instanceof Array){b="array";}}else{b="null";}}return b;};c.utils.extend=function(){var f=c.utils.extend["arguments"];if(f.length>1){for(var a=1;a<f.length;a++){for(var b in f[a]){f[0][b]=f[a][b];}}return f[0];}return null;};c.utils.clone=function(a){var h;var g=c.utils.clone["arguments"];if(g.length==1){switch(c.utils.typeOf(g[0])){case"object":h={};for(var b in g[0]){h[b]=c.utils.clone(g[0][b]);}break;case"array":h=[];for(var b in g[0]){h[b]=c.utils.clone(g[0][b]);}break;default:return g[0];break;}}return h;};c.utils.extension=function(a){a=a.substring(a.lastIndexOf("/")+1,a.length);a=a.split("?")[0];if(a.lastIndexOf(".")>-1){return a.substr(a.lastIndexOf(".")+1,a.length).toLowerCase();}return;};c.utils.html=function(b,a){b.innerHTML=a;};c.utils.wrap=function(b,a){b.parentNode.replaceChild(a,b);a.appendChild(b);};c.utils.ajax=function(a,b,j){var h;if(window.XMLHttpRequest){h=new XMLHttpRequest();}else{h=new ActiveXObject("Microsoft.XMLHTTP");}h.onreadystatechange=function(){if(h.readyState===4){if(h.status===200){if(b){b(h);}}else{if(j){j(a);}}}};try{h.open("GET",a,true);h.send(null);}catch(i){if(j){j(a);}}return h;};c.utils.load=function(b,a,f){b.onreadystatechange=function(){if(b.readyState===4){if(b.status===200){if(a){a();}}else{if(f){f();}}}};};c.utils.find=function(a,b){return a.getElementsByTagName(b);};c.utils.append=function(b,a){b.appendChild(a);};c.utils.isIE=function(){return((!+"\v1")||(typeof window.ActiveXObject!="undefined"));};c.utils.isLegacyAndroid=function(){var a=navigator.userAgent.toLowerCase();return(a.match(/android 2.[012]/i)!==null);};c.utils.isIOS=function(){var a=navigator.userAgent.toLowerCase();return(a.match(/iP(hone|ad)/i)!==null);};c.utils.getFirstPlaylistItemFromConfig=function(f){var b={};var a;if(f.playlist&&f.playlist.length){a=f.playlist[0];}else{a=f;}b.file=a.file;b.levels=a.levels;b.streamer=a.streamer;b.playlistfile=a.playlistfile;b.provider=a.provider;if(!b.provider){if(b.file&&(b.file.toLowerCase().indexOf("youtube.com")>-1||b.file.toLowerCase().indexOf("youtu.be")>-1)){b.provider="youtube";}if(b.streamer&&b.streamer.toLowerCase().indexOf("rtmp://")==0){b.provider="rtmp";}if(a.type){b.provider=a.type.toLowerCase();}}return b;};c.utils.getOuterHTML=function(i){if(i.outerHTML){return i.outerHTML;}else{var h=i.parentNode;var j=document.createElement(h.tagName);var a=document.createElement(i.tagName);h.replaceChild(a,i);j.appendChild(i);var b=j.innerHTML;h.replaceChild(i,a);return b;}};c.utils.setOuterHTML=function(b,h){if(b.outerHTML){b.outerHTML=h;}else{var a=document.createElement("div");a.innerHTML=h;var j=document.createRange();j.selectNodeContents(a);var i=j.extractContents();b.parentNode.insertBefore(i,b);b.parentNode.removeChild(b);}};c.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined"){return true;}if(typeof window.ActiveXObject!="undefined"){try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");return true;}catch(a){}}return false;};c.utils.getPluginName=function(a){if(a.lastIndexOf("/")>=0){a=a.substring(a.lastIndexOf("/")+1,a.length);}if(a.lastIndexOf("-")>=0){a=a.substring(0,a.lastIndexOf("-"));}if(a.lastIndexOf(".swf")>=0){a=a.substring(0,a.lastIndexOf(".swf"));}if(a.lastIndexOf(".js")>=0){a=a.substring(0,a.lastIndexOf(".js"));}return a;};c.utils.getPluginVersion=function(a){if(a.lastIndexOf("-")>=0){if(a.lastIndexOf(".js")>=0){return a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".js"));}else{if(a.lastIndexOf(".swf")>=0){return a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".swf"));}else{return a.substring(a.lastIndexOf("-")+1);}}}return"";};c.utils.getAbsolutePath=function(b,i){if(i===undefined){i=document.location.href;}if(b===undefined){return undefined;}if(d(b)){return b;}var a=i.substring(0,i.indexOf("://")+3);var l=i.substring(a.length,i.indexOf("/",a.length+1));var o;if(b.indexOf("/")===0){o=b.split("/");}else{var n=i.split("?")[0];n=n.substring(a.length+l.length+1,n.lastIndexOf("/"));o=n.split("/").concat(b.split("/"));}var p=[];for(var m=0;m<o.length;m++){if(!o[m]||o[m]===undefined||o[m]=="."){continue;}else{if(o[m]==".."){p.pop();}else{p.push(o[m]);}}}return a+l+"/"+p.join("/");};function d(b){if(b===null){return;}var a=b.indexOf("://");var f=b.indexOf("?");return(a>0&&(f<0||(f>a)));}c.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};c.utils.getPluginPathType=function(g){if(typeof g!="string"){return;}g=g.split("?")[0];var b=g.indexOf("://");if(b>0){return c.utils.pluginPathType.ABSOLUTE;}var h=g.indexOf("/");var a=c.utils.extension(g);if(b<0&&h<0&&(!a||!isNaN(a))){return c.utils.pluginPathType.CDN;}return c.utils.pluginPathType.RELATIVE;};c.utils.mapEmpty=function(b){for(var a in b){return false;}return true;};c.utils.mapLength=function(b){var f=0;for(var a in b){f++;}return f;};c.utils.log=function(a,b){if(typeof console!="undefined"&&typeof console.log!="undefined"){if(b){console.log(a,b);}else{console.log(a);}}};c.utils.css=function(i,a,j){if(i!==undefined){for(var h in a){try{if(typeof a[h]==="undefined"){continue;}else{if(typeof a[h]=="number"&&!(h=="zIndex"||h=="opacity")){if(isNaN(a[h])){continue;}if(h.match(/color/i)){a[h]="#"+c.utils.strings.pad(a[h].toString(16),6);}else{a[h]=Math.ceil(a[h])+"px";}}}i.style[h]=a[h];}catch(b){}}}};c.utils.isYouTube=function(a){return(a.indexOf("youtube.com")>-1||a.indexOf("youtu.be")>-1);};c.utils.transform=function(b,a){b.style.webkitTransform=a;b.style.MozTransform=a;b.style.OTransform=a;};c.utils.stretch=function(q,a,b,s,n,r){if(typeof b=="undefined"||typeof s=="undefined"||typeof n=="undefined"||typeof r=="undefined"){return;}var u=b/n;var t=s/r;var o=0;var p=0;a.style.overflow="hidden";c.utils.transform(a,"");var v={};switch(q.toUpperCase()){case c.utils.stretching.NONE:v.width=n;v.height=r;break;case c.utils.stretching.UNIFORM:if(u>t){v.width=n*t;v.height=r*t;}else{v.width=n*u;v.height=r*u;}break;case c.utils.stretching.FILL:if(u>t){v.width=n*u;v.height=r*u;}else{v.width=n*t;v.height=r*t;}break;case c.utils.stretching.EXACTFIT:c.utils.transform(a,["scale(",u,",",t,")"," translate(0px,0px)"].join(""));v.width=n;v.height=r;break;default:break;}v.top=(s-v.height)/2;v.left=(b-v.width)/2;c.utils.css(a,v);};c.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};c.utils.deepReplaceKeyName=function(a,j,l){switch(c.utils.typeOf(a)){case"array":for(var b=0;b<a.length;b++){a[b]=c.utils.deepReplaceKeyName(a[b],j,l);}break;case"object":for(var i in a){var k=i.replace(new RegExp(j,"g"),l);a[k]=c.utils.deepReplaceKeyName(a[i],j,l);if(i!=k){delete a[i];}}break;}return a;};c.utils.isInArray=function(a,b){if(!(a)||!(a instanceof Array)){return false;}for(var f=0;f<a.length;f++){if(b===a[f]){return true;}}return false;};})(jwplayer);(function(b){b.events=function(){};b.events.COMPLETE="COMPLETE";b.events.ERROR="ERROR";})(jwplayer);(function(jwplayer){jwplayer.events.eventdispatcher=function(debug){var _debug=debug;var _listeners;var _globallisteners;this.resetEventListeners=function(){_listeners={};_globallisteners=[];};this.resetEventListeners();this.addEventListener=function(type,listener,count){try{if(_listeners[type]===undefined){_listeners[type]=[];}if(typeof(listener)=="string"){eval("listener = "+listener);}_listeners[type].push({listener:listener,count:count});}catch(err){jwplayer.utils.log("error",err);}return false;};this.removeEventListener=function(type,listener){try{for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){if(_listeners[type][lisenterIndex].toString()==listener.toString()){_listeners[type].slice(lisenterIndex,lisenterIndex+1);break;}}}catch(err){jwplayer.utils.log("error",err);}return false;};this.addGlobalListener=function(listener,count){try{if(typeof(listener)=="string"){eval("listener = "+listener);}_globallisteners.push({listener:listener,count:count});}catch(err){jwplayer.utils.log("error",err);}return false;};this.removeGlobalListener=function(listener){try{for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){if(_globallisteners[globalListenerIndex].toString()==listener.toString()){_globallisteners.slice(globalListenerIndex,globalListenerIndex+1);break;}}}catch(err){jwplayer.utils.log("error",err);}return false;};this.sendEvent=function(type,data){if(data===undefined){data={};}if(_debug){jwplayer.utils.log(type,data);}if(typeof _listeners[type]!="undefined"){for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){try{_listeners[type][listenerIndex].listener(data);}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_listeners[type][listenerIndex].listener);}if(_listeners[type][listenerIndex]){if(_listeners[type][listenerIndex].count===1){delete _listeners[type][listenerIndex];}else{if(_listeners[type][listenerIndex].count>0){_listeners[type][listenerIndex].count=_listeners[type][listenerIndex].count-1;}}}}}for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){try{_globallisteners[globalListenerIndex].listener(data);}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_globallisteners[globalListenerIndex].listener);}if(_globallisteners[globalListenerIndex]){if(_globallisteners[globalListenerIndex].count===1){delete _globallisteners[globalListenerIndex];}else{if(_globallisteners[globalListenerIndex].count>0){_globallisteners[globalListenerIndex].count=_globallisteners[globalListenerIndex].count-1;}}}}};};})(jwplayer);(function(d){var c={};d.utils.animations=function(){};d.utils.animations.transform=function(b,a){b.style.webkitTransform=a;b.style.MozTransform=a;b.style.OTransform=a;b.style.msTransform=a;};d.utils.animations.transformOrigin=function(b,a){b.style.webkitTransformOrigin=a;b.style.MozTransformOrigin=a;b.style.OTransformOrigin=a;b.style.msTransformOrigin=a;};d.utils.animations.rotate=function(b,a){d.utils.animations.transform(b,["rotate(",a,"deg)"].join(""));};d.utils.cancelAnimation=function(a){delete c[a.id];};d.utils.fadeTo=function(a,q,r,n,o,s){if(c[a.id]!=s&&s!==undefined){return;}var t=new Date().getTime();if(s>t){setTimeout(function(){d.utils.fadeTo(a,q,r,n,0,s);},s-t);}a.style.display="block";if(n===undefined){n=a.style.opacity===""?1:a.style.opacity;}if(a.style.opacity==q&&a.style.opacity!==""&&s!==undefined){if(q===0){a.style.display="none";}return;}if(s===undefined){s=t;c[a.id]=s;}if(o===undefined){o=0;}var m=(t-s)/(r*1000);m=m>1?1:m;var b=q-n;var p=n+(m*b);if(p>1){p=1;}else{if(p<0){p=0;}}a.style.opacity=p;if(o>0){c[a.id]=s+o*1000;d.utils.fadeTo(a,q,r,n,0,c[a.id]);return;}setTimeout(function(){d.utils.fadeTo(a,q,r,n,0,s);},10);};})(jwplayer);(function(b){b.utils.arrays=function(){};b.utils.arrays.indexOf=function(f,e){for(var a=0;a<f.length;a++){if(f[a]==e){return a;}}return -1;};b.utils.arrays.remove=function(f,e){var a=b.utils.arrays.indexOf(f,e);if(a>-1){f.splice(a,1);}};})(jwplayer);(function(b){b.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"},wav:{html5:"audio/x-wav"}};})(jwplayer);(function(n){n.utils.mediaparser=function(){};var l={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}};var m={};n.utils.mediaparser.parseMedia=function(a){return o(a);};function p(a,b){if(b===undefined){b=l[a];}else{n.utils.extend(b,l[a]);}return b;}function o(a,e){if(m[a.tagName.toLowerCase()]&&(e===undefined)){return m[a.tagName.toLowerCase()](a);}else{e=p("element",e);var f={};for(var d in e){if(d!="length"){var b=a.getAttribute(d);if(!(b===""||b===undefined||b===null)){f[e[d]]=a.getAttribute(d);}}}var c=a.style["#background-color"];if(c&&!(c=="transparent"||c=="rgba(0, 0, 0, 0)")){f.screencolor=c;}return f;}}function k(f,c){c=p("media",c);var b=[];var d=n.utils.selectors("source",f);for(var a in d){if(!isNaN(a)){b.push(j(d[a]));}}var e=o(f,c);if(e.file!==undefined){b[0]={file:e.file};}e.levels=b;return e;}function j(a,b){b=p("source",b);var c=o(a,b);c.width=c.width?c.width:0;c.bitrate=c.bitrate?c.bitrate:0;return c;}function i(a,b){b=p("video",b);var c=k(a,b);return c;}m.media=k;m.audio=k;m.source=j;m.video=i;})(jwplayer);(function(b){b.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};b.utils.scriptloader=function(f){var e=b.utils.loaderstatus.NEW;var a=new b.events.eventdispatcher();b.utils.extend(this,a);this.load=function(){if(e==b.utils.loaderstatus.NEW){e=b.utils.loaderstatus.LOADING;var c=document.createElement("script");c.onload=function(d){e=b.utils.loaderstatus.COMPLETE;a.sendEvent(b.events.COMPLETE);};c.onerror=function(d){e=b.utils.loaderstatus.ERROR;a.sendEvent(b.events.ERROR);};c.onreadystatechange=function(){if(c.readyState=="loaded"||c.readyState=="complete"){e=b.utils.loaderstatus.COMPLETE;a.sendEvent(b.events.COMPLETE);}};document.getElementsByTagName("head")[0].appendChild(c);c.src=f;}};this.getStatus=function(){return e;};};})(jwplayer);(function(b){b.utils.selectors=function(a,e){if(e===undefined){e=document;}a=b.utils.strings.trim(a);var f=a.charAt(0);if(f=="#"){return e.getElementById(a.substr(1));}else{if(f=="."){if(e.getElementsByClassName){return e.getElementsByClassName(a.substr(1));}else{return b.utils.selectors.getElementsByTagAndClass("*",a.substr(1));}}else{if(a.indexOf(".")>0){selectors=a.split(".");return b.utils.selectors.getElementsByTagAndClass(selectors[0],selectors[1]);}else{return e.getElementsByTagName(a);}}}return null;};b.utils.selectors.getElementsByTagAndClass=function(l,i,j){elements=[];if(j===undefined){j=document;}var k=j.getElementsByTagName(l);for(var m=0;m<k.length;m++){if(k[m].className!==undefined){var n=k[m].className.split(" ");for(var a=0;a<n.length;a++){if(n[a]==i){elements.push(k[m]);}}}}return elements;};})(jwplayer);(function(b){b.utils.strings=function(){};b.utils.strings.trim=function(a){return a.replace(/^\s*/,"").replace(/\s*$/,"");};b.utils.strings.pad=function(f,e,a){if(!a){a="0";}while(f.length<e){f=a+f;}return f;};b.utils.strings.serialize=function(a){if(a==null){return null;}else{if(a=="true"){return true;}else{if(a=="false"){return false;}else{if(isNaN(Number(a))||a.length>5||a.length==0){return a;}else{return Number(a);}}}}};b.utils.strings.seconds=function(e){e=e.replace(",",".");var a=e.split(":");var f=0;if(e.substr(-1)=="s"){f=Number(e.substr(0,e.length-1));}else{if(e.substr(-1)=="m"){f=Number(e.substr(0,e.length-1))*60;}else{if(e.substr(-1)=="h"){f=Number(e.substr(0,e.length-1))*3600;}else{if(a.length>1){f=Number(a[a.length-1]);f+=Number(a[a.length-2])*60;if(a.length==3){f+=Number(a[a.length-3])*3600;}}else{f=Number(e);}}}}return f;};b.utils.strings.xmlAttribute=function(a,f){for(var e in a.attributes){if(a.attributes[e].name&&a.attributes[e].name.toLowerCase()==f.toLowerCase()){return a.attributes[e].value.toString();}}return"";};b.utils.strings.jsonToString=function(k){var i=i||{};if(i&&i.stringify){return i.stringify(k);}var n=typeof(k);if(n!="object"||k===null){if(n=="string"){k='"'+k+'"';}else{return String(k);}}else{var j=[],a=(k&&k.constructor==Array);for(var m in k){var l=k[m];switch(typeof(l)){case"string":l='"'+l+'"';break;case"object":if(l!==null){l=b.utils.strings.jsonToString(l);}break;}if(a){if(typeof(l)!="function"){j.push(String(l));}}else{if(typeof(l)!="function"){j.push('"'+m+'":'+String(l));}}}if(a){return"["+String(j)+"]";}else{return"{"+String(j)+"}";}}};})(jwplayer);(function(j){var i=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);j.utils.typechecker=function(a,b){b=b===null?f(a):b;return h(a,b);};function f(b){var a=["true","false","t","f"];if(a.toString().indexOf(b.toLowerCase().replace(" ",""))>=0){return"boolean";}else{if(i.test(b)){return"color";}else{if(!isNaN(parseInt(b,10))&&parseInt(b,10).toString().length==b.length){return"integer";}else{if(!isNaN(parseFloat(b))&&parseFloat(b).toString().length==b.length){return"float";}}}}return"string";}function h(a,b){if(b===null){return a;}switch(b){case"color":if(a.length>0){return g(a);}return null;case"integer":return parseInt(a,10);case"float":return parseFloat(a);case"boolean":if(a.toLowerCase()=="true"){return true;}else{if(a=="1"){return true;}}return false;}return a;}function g(a){switch(a.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:a=a.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2");if(a.length==3){a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2);}return parseInt(a,16);}return parseInt("000000",16);}})(jwplayer);(function(e){var f={};var d={};e.plugins=function(){};e.plugins.loadPlugins=function(a,b){d[a]=new e.plugins.pluginloader(new e.plugins.model(f),b);return d[a];};e.plugins.registerPlugin=function(a,c,i){var j=e.utils.getPluginName(a);if(f[j]){f[j].registerPlugin(a,c,i);}else{e.utils.log("A plugin ("+a+") was registered with the player that was not loaded. Please check your configuration.");for(var b in d){d[b].pluginFailed();}}};})(jwplayer);(function(b){b.plugins.model=function(a){this.addPlugin=function(f){var e=b.utils.getPluginName(f);if(!a[e]){a[e]=new b.plugins.plugin(f);}return a[e];};};})(jwplayer);(function(b){b.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};b.plugins.plugin=function(t){var r="http://lp.longtailvideo.com";var m=b.utils.loaderstatus.NEW;var l;var n;var a;var s=new b.events.eventdispatcher();b.utils.extend(this,s);function q(){switch(b.utils.getPluginPathType(t)){case b.utils.pluginPathType.ABSOLUTE:return t;case b.utils.pluginPathType.RELATIVE:return b.utils.getAbsolutePath(t,window.location.href);case b.utils.pluginPathType.CDN:var c=b.utils.getPluginName(t);var d=b.utils.getPluginVersion(t);return r+"/"+b.version.split(".")[0]+"/"+c+"/"+c+(d!==""?("-"+d):"")+".js";}}function o(c){a=setTimeout(function(){m=b.utils.loaderstatus.COMPLETE;s.sendEvent(b.events.COMPLETE);},1000);}function p(c){m=b.utils.loaderstatus.ERROR;s.sendEvent(b.events.ERROR);}this.load=function(){if(m==b.utils.loaderstatus.NEW){if(t.lastIndexOf(".swf")>0){l=t;m=b.utils.loaderstatus.COMPLETE;s.sendEvent(b.events.COMPLETE);return;}m=b.utils.loaderstatus.LOADING;var c=new b.utils.scriptloader(q());c.addEventListener(b.events.COMPLETE,o);c.addEventListener(b.events.ERROR,p);c.load();}};this.registerPlugin=function(e,c,d){if(a){clearTimeout(a);a=undefined;}if(c&&d){l=d;n=c;}else{if(typeof c=="string"){l=c;}else{if(typeof c=="function"){n=c;}else{if(!c&&!d){l=e;}}}}m=b.utils.loaderstatus.COMPLETE;s.sendEvent(b.events.COMPLETE);};this.getStatus=function(){return m;};this.getPluginName=function(){return b.utils.getPluginName(t);};this.getFlashPath=function(){if(l){switch(b.utils.getPluginPathType(l)){case b.utils.pluginPathType.ABSOLUTE:return l;case b.utils.pluginPathType.RELATIVE:if(t.lastIndexOf(".swf")>0){return b.utils.getAbsolutePath(l,window.location.href);}return b.utils.getAbsolutePath(l,q());case b.utils.pluginPathType.CDN:if(l.indexOf("-")>-1){return l+"h";}return l+"-h";}}return null;};this.getJS=function(){return n;};this.getPluginmode=function(){if(typeof l!="undefined"&&typeof n!="undefined"){return b.plugins.pluginmodes.HYBRID;}else{if(typeof l!="undefined"){return b.plugins.pluginmodes.FLASH;}else{if(typeof n!="undefined"){return b.plugins.pluginmodes.JAVASCRIPT;}}}};this.getNewInstance=function(c,d,e){return new n(c,d,e);};this.getURL=function(){return t;};};})(jwplayer);(function(b){b.plugins.pluginloader=function(l,o){var m={};var a=b.utils.loaderstatus.NEW;var p=false;var r=false;var q=new b.events.eventdispatcher();b.utils.extend(this,q);function n(){if(!r){r=true;a=b.utils.loaderstatus.COMPLETE;q.sendEvent(b.events.COMPLETE);}}function k(){if(!r){var c=0;for(plugin in m){var d=m[plugin].getStatus();if(d==b.utils.loaderstatus.LOADING||d==b.utils.loaderstatus.NEW){c++;}}if(c==0){n();}}}this.setupPlugins=function(c,e,f){var d={length:0,plugins:{}};var i={length:0,plugins:{}};for(var j in m){var h=m[j].getPluginName();if(m[j].getFlashPath()){d.plugins[m[j].getFlashPath()]=e.plugins[j];d.plugins[m[j].getFlashPath()].pluginmode=m[j].getPluginmode();d.length++;}if(m[j].getJS()){var g=document.createElement("div");g.id=c.id+"_"+h;g.style.position="absolute";g.style.zIndex=i.length+10;i.plugins[h]=m[j].getNewInstance(c,e.plugins[j],g);i.length++;if(typeof i.plugins[h].resize!="undefined"){c.onReady(f(i.plugins[h],g,true));c.onResize(f(i.plugins[h],g));}}}c.plugins=i.plugins;return d;};this.load=function(){a=b.utils.loaderstatus.LOADING;p=true;for(var c in o){m[c]=l.addPlugin(c);m[c].addEventListener(b.events.COMPLETE,k);m[c].addEventListener(b.events.ERROR,k);}for(c in o){m[c].load();}p=false;k();};this.pluginFailed=function(){n();};this.getStatus=function(){return a;};};})(jwplayer);(function(c){var d=[];c.api=function(A){this.container=A;this.id=A.id;var s={};var a={};var B=[];var w=undefined;var t=false;var v=[];var q=c.utils.getOuterHTML(A);var b={};var u={};this.getBuffer=function(){return this.callInternal("jwGetBuffer");};this.getContainer=function(){return this.container;};function z(e){return function(f,j,i,h){var g;if(j){u[f]=j;g="jwplayer('"+e+"').callback('"+f+"')";}else{if(!j&&u[f]){delete u[f];}}w.jwDockSetButton(f,g,i,h);};}this.getPlugin=function(e){var f=this.callInternal;if(e=="dock"){return{setButton:z(this.id),show:function(){return f("jwShowDock");},hide:function(){return f("jwHideDock");}};}else{if(e=="controlbar"){return{show:function(){return f("jwShowControlbar");},hide:function(){return f("jwHideControlbar");}};}else{if(e=="display"){return{show:function(){return f("jwShowDisplay");},hide:function(){return f("jwHideDisplay");}};}}}return this.plugins[e];};this.callback=function(e){if(u[e]){return u[e]();}};this.getDuration=function(){return this.callInternal("jwGetDuration");};this.getFullscreen=function(){return this.callInternal("jwGetFullscreen");};this.getHeight=function(){return this.callInternal("jwGetHeight");};this.getLockState=function(){return this.callInternal("jwGetLockState");};this.getMeta=function(){return this.getItemMeta();};this.getMute=function(){return this.callInternal("jwGetMute");};this.getPlaylist=function(){var e=this.callInternal("jwGetPlaylist");if(this.renderingMode=="flash"){c.utils.deepReplaceKeyName(e,"__dot__",".");}for(var f=0;f<e.length;f++){if(e[f].index===undefined){e[f].index=f;}}return e;};this.getPlaylistItem=function(e){if(e===undefined){e=this.getCurrentItem();}return this.getPlaylist()[e];};this.getPosition=function(){return this.callInternal("jwGetPosition");};this.getRenderingMode=function(){return this.renderingMode;};this.getState=function(){return this.callInternal("jwGetState");};this.getVolume=function(){return this.callInternal("jwGetVolume");};this.getWidth=function(){return this.callInternal("jwGetWidth");};this.setFullscreen=function(e){if(e===undefined){this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen"));}else{this.callInternal("jwSetFullscreen",e);}return this;};this.setMute=function(e){if(e===undefined){this.callInternal("jwSetMute",!this.callInternal("jwGetMute"));}else{this.callInternal("jwSetMute",e);}return this;};this.lock=function(){return this;};this.unlock=function(){return this;};this.load=function(e){this.callInternal("jwLoad",e);return this;};this.playlistItem=function(e){this.callInternal("jwPlaylistItem",e);return this;};this.playlistPrev=function(){this.callInternal("jwPlaylistPrev");return this;};this.playlistNext=function(){this.callInternal("jwPlaylistNext");return this;};this.resize=function(e,f){if(this.renderingMode=="html5"){w.jwResize(e,f);}else{this.container.width=e;this.container.height=f;}return this;};this.play=function(e){if(typeof e=="undefined"){e=this.getState();if(e==c.api.events.state.PLAYING||e==c.api.events.state.BUFFERING){this.callInternal("jwPause");}else{this.callInternal("jwPlay");}}else{this.callInternal("jwPlay",e);}return this;};this.pause=function(e){if(typeof e=="undefined"){e=this.getState();if(e==c.api.events.state.PLAYING||e==c.api.events.state.BUFFERING){this.callInternal("jwPause");}else{this.callInternal("jwPlay");}}else{this.callInternal("jwPause",e);}return this;};this.stop=function(){this.callInternal("jwStop");return this;};this.seek=function(e){this.callInternal("jwSeek",e);return this;};this.setVolume=function(e){this.callInternal("jwSetVolume",e);return this;};this.onBufferChange=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_BUFFER,e);};this.onBufferFull=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_BUFFER_FULL,e);};this.onError=function(e){return this.eventListener(c.api.events.JWPLAYER_ERROR,e);};this.onFullscreen=function(e){return this.eventListener(c.api.events.JWPLAYER_FULLSCREEN,e);};this.onMeta=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_META,e);};this.onMute=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_MUTE,e);};this.onPlaylist=function(e){return this.eventListener(c.api.events.JWPLAYER_PLAYLIST_LOADED,e);};this.onPlaylistItem=function(e){return this.eventListener(c.api.events.JWPLAYER_PLAYLIST_ITEM,e);};this.onReady=function(e){return this.eventListener(c.api.events.API_READY,e);};this.onResize=function(e){return this.eventListener(c.api.events.JWPLAYER_RESIZE,e);};this.onComplete=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_COMPLETE,e);};this.onSeek=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_SEEK,e);};this.onTime=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_TIME,e);};this.onVolume=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_VOLUME,e);};this.onBuffer=function(e){return this.stateListener(c.api.events.state.BUFFERING,e);};this.onPause=function(e){return this.stateListener(c.api.events.state.PAUSED,e);};this.onPlay=function(e){return this.stateListener(c.api.events.state.PLAYING,e);};this.onIdle=function(e){return this.stateListener(c.api.events.state.IDLE,e);};this.remove=function(){s={};v=[];if(c.utils.getOuterHTML(this.container)!=q){c.api.destroyPlayer(this.id,q);}};this.setup=function(f){if(c.embed){var g=this.id;this.remove();var e=c(g);e.config=f;return new c.embed(e);}return this;};this.registerPlugin=function(e,f,g){c.plugins.registerPlugin(e,f,g);};this.setPlayer=function(f,e){w=f;this.renderingMode=e;};this.stateListener=function(f,e){if(!a[f]){a[f]=[];this.eventListener(c.api.events.JWPLAYER_PLAYER_STATE,x(f));}a[f].push(e);return this;};function x(e){return function(i){var j=i.newstate,g=i.oldstate;if(j==e){var h=a[j];if(h){for(var f=0;f<h.length;f++){if(typeof h[f]=="function"){h[f].call(this,{oldstate:g,newstate:j});}}}}};}this.addInternalListener=function(f,e){f.jwAddEventListener(e,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+e+'", dat); }');};this.eventListener=function(f,e){if(!s[f]){s[f]=[];if(w&&t){this.addInternalListener(w,f);}}s[f].push(e);return this;};this.dispatchEvent=function(e){if(s[e]){var f=y(e,arguments[1]);for(var g=0;g<s[e].length;g++){if(typeof s[e][g]=="function"){s[e][g].call(this,f);}}}};function y(g,i){var e=c.utils.extend({},i);if(g==c.api.events.JWPLAYER_FULLSCREEN&&!e.fullscreen){e.fullscreen=e.message=="true"?true:false;delete e.message;}else{if(typeof e.data=="object"){e=c.utils.extend(e,e.data);delete e.data;}}var h=["position","duration","offset"];for(var f in h){if(e[h[f]]){e[h[f]]=Math.round(e[h[f]]*1000)/1000;}}return e;}this.callInternal=function(e,f){if(t){if(typeof w!="undefined"&&typeof w[e]=="function"){if(f!==undefined){return(w[e])(f);}else{return(w[e])();}}return null;}else{v.push({method:e,parameters:f});}};this.playerReady=function(e){t=true;if(!w){this.setPlayer(document.getElementById(e.id));}this.container=document.getElementById(this.id);for(var g in s){this.addInternalListener(w,g);}this.eventListener(c.api.events.JWPLAYER_PLAYLIST_ITEM,function(h){b={};});this.eventListener(c.api.events.JWPLAYER_MEDIA_META,function(h){c.utils.extend(b,h.metadata);});this.dispatchEvent(c.api.events.API_READY);while(v.length>0){var f=v.shift();this.callInternal(f.method,f.parameters);}};this.getItemMeta=function(){return b;};this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex");};function r(g,e,f){var i=[];if(!e){e=0;}if(!f){f=g.length-1;}for(var h=e;h<=f;h++){i.push(g[h]);}return i;}return this;};c.api.selectPlayer=function(b){var f;if(b===undefined){b=0;}if(b.nodeType){f=b;}else{if(typeof b=="string"){f=document.getElementById(b);}}if(f){var a=c.api.playerById(f.id);if(a){return a;}else{return c.api.addPlayer(new c.api(f));}}else{if(typeof b=="number"){return c.getPlayers()[b];}}return null;};c.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem"};c.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};c.api.playerById=function(a){for(var b=0;b<d.length;b++){if(d[b].id==a){return d[b];}}return null;};c.api.addPlayer=function(b){for(var a=0;a<d.length;a++){if(d[a]==b){return b;}}d.push(b);return b;};c.api.destroyPlayer=function(j,m){var k=-1;for(var a=0;a<d.length;a++){if(d[a].id==j){k=a;continue;}}if(k>=0){var n=document.getElementById(d[k].id);if(document.getElementById(d[k].id+"_wrapper")){n=document.getElementById(d[k].id+"_wrapper");}if(n){if(m){c.utils.setOuterHTML(n,m);}else{var b=document.createElement("div");var l=n.id;if(n.id.indexOf("_wrapper")==n.id.length-8){newID=n.id.substring(0,n.id.length-8);}b.setAttribute("id",l);n.parentNode.replaceChild(b,n);}}d.splice(k,1);}return null;};c.getPlayers=function(){return d.slice(0);};})(jwplayer);var _userPlayerReady=(typeof playerReady=="function")?playerReady:undefined;playerReady=function(c){var d=jwplayer.api.playerById(c.id);if(d){d.playerReady(c);}if(_userPlayerReady){_userPlayerReady.call(this,c);}};(function(d){d.embed=function(j){var a={width:400,height:300,components:{controlbar:{position:"over"}}};var k=d.utils.mediaparser.parseMedia(j.container);var l=new d.embed.config(d.utils.extend(a,k,j.config),this);var b=d.plugins.loadPlugins(j.id,l.plugins);function n(e,f){for(var g in f){if(typeof e[g]=="function"){(e[g]).call(e,f[g]);}}}function m(){if(b.getStatus()==d.utils.loaderstatus.COMPLETE){for(var e=0;e<l.modes.length;e++){if(l.modes[e].type&&d.embed[l.modes[e].type]){var g=l;if(l.modes[e].config){g=d.utils.extend(d.utils.clone(l),l.modes[e].config);}var f=new d.embed[l.modes[e].type](document.getElementById(j.id),l.modes[e],g,b,j);if(f.supportsConfig()){f.embed();n(j,l.events);return j;}}}d.utils.log("No suitable players found");new d.embed.logo(d.utils.extend({hide:true},l.components.logo),"none",j.id);}}b.addEventListener(d.events.COMPLETE,m);b.addEventListener(d.events.ERROR,m);b.load();return j;};function c(){if(!document.body){return setTimeout(c,15);}var f=d.utils.selectors.getElementsByTagAndClass("video","jwplayer");for(var b=0;b<f.length;b++){var a=f[b];d(a.id).setup({});}}c();})(jwplayer);(function(j){function p(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}];}function n(a){var b=a.toLowerCase();var c=["left","right","top","bottom"];for(var d=0;d<c.length;d++){if(b==c[d]){return true;}}return false;}function o(a){var b=false;b=(a instanceof Array)||(typeof a=="object"&&!a.position&&!a.size);return b;}function k(a){if(typeof a=="string"){if(parseInt(a).toString()==a||a.toLowerCase().indexOf("px")>-1){return parseInt(a);}}return a;}var m=["playlist","dock","controlbar","logo"];function l(d){var a={};switch(j.utils.typeOf(d.plugins)){case"object":for(var b in d.plugins){a[j.utils.getPluginName(b)]=b;}break;case"string":var e=d.plugins.split(",");for(var c=0;c<e.length;c++){a[j.utils.getPluginName(e[c])]=e[c];}break;}return a;}function i(a,b,c,e){if(j.utils.typeOf(a[b])!="object"){a[b]={};}var d=a[b][c];if(j.utils.typeOf(d)!="object"){a[b][c]=d={};}if(b=="plugins"){var f=j.utils.getPluginName(c);d[e]=a[f+"."+e];delete a[f+"."+e];}else{d[e]=a[c+"."+e];delete a[c+"."+e];}}j.embed.deserialize=function(e){var d=l(e);for(var a in e){if(a.indexOf(".")>-1){var b=a.split(".");var c=b[0];var a=b[1];if(j.utils.isInArray(m,c)){i(e,"components",c,a);}else{if(d[c]){i(e,"plugins",d[c],a);}}}}return e;};j.embed.config=function(r,a){var b=j.utils.extend({},r);var d;if(o(b.playlist)){d=b.playlist;delete b.playlist;}b=j.embed.deserialize(b);b.height=k(b.height);b.width=k(b.width);if(typeof b.plugins=="string"){var h=b.plugins.split(",");if(typeof b.plugins!="object"){b.plugins={};}for(var f=0;f<h.length;f++){var e=j.utils.getPluginName(h[f]);if(typeof b[e]=="object"){b.plugins[h[f]]=b[e];delete b[e];}else{b.plugins[h[f]]={};}}}for(var c=0;c<m.length;c++){if(typeof b[m[c]]=="string"){if(!b.components[m[c]]){b.components[m[c]]={};}if(m[c]=="logo"){b.components[m[c]].file=b[m[c]];}else{b.components[m[c]].position=b[m[c]];}delete b[m[c]];}else{if(typeof b[m[c]]!="undefined"){if(!b.components[m[c]]){b.components[m[c]]={};}j.utils.extend(b.components[m[c]],b[m[c]]);delete b[m[c]];}}if(typeof b[m[c]+"size"]!="undefined"){if(!b.components[m[c]]){b.components[m[c]]={};}b.components[m[c]].size=b[m[c]+"size"];delete b[m[c]+"size"];}}if(typeof b.icons!="undefined"){if(!b.components.display){b.components.display={};}b.components.display.icons=b.icons;delete b.icons;}if(b.players){b.modes=b.players;delete b.players;}var g;if(b.flashplayer&&!b.modes){g=p();g[0].src=b.flashplayer;delete b.flashplayer;}else{if(b.modes){if(typeof b.modes=="string"){g=p();g[0].src=b.modes;}else{if(b.modes instanceof Array){g=b.modes;}else{if(typeof b.modes=="object"&&b.modes.type){g=[b.modes];}}}delete b.modes;}else{g=p();}}b.modes=g;if(d){b.playlist=d;}return b;};})(jwplayer);(function(b){b.embed.download=function(l,h,a,k,i){this.embed=function(){var x=b.utils.extend({},a);var e={};var y=a.width?a.width:480;if(typeof y!="number"){y=parseInt(y,10);}var v=a.height?a.height:320;if(typeof v!="number"){v=parseInt(v,10);}var A,g,u;var c={};if(a.playlist&&a.playlist.length){c.file=a.playlist[0].file;g=a.playlist[0].image;c.levels=a.playlist[0].levels;}else{c.file=a.file;g=a.image;c.levels=a.levels;}if(c.file){A=c.file;}else{if(c.levels&&c.levels.length){A=c.levels[0].file;}}u=A?"pointer":"auto";var w={display:{style:{cursor:u,width:y,height:v,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:u,position:"absolute",display:A?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},display_iconBackground:{style:{cursor:u,position:"absolute",display:A?"block":"none",top:((v-50)/2),left:((y-50)/2),border:0,width:50,height:50,margin:0,padding:0,zIndex:2,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC)"}},display_image:{style:{width:y,height:v,display:g?"block":"none",position:"absolute",cursor:u,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};var z=function(p,n,m){var o=document.createElement(p);if(m){o.id=m;}else{o.id=l.id+"_jwplayer_"+n;}b.utils.css(o,w[n].style);return o;};e.display=z("a","display",l.id);if(A){e.display.setAttribute("href",b.utils.getAbsolutePath(A));}e.display_image=z("img","display_image");e.display_image.setAttribute("alt","Click to download...");if(g){e.display_image.setAttribute("src",b.utils.getAbsolutePath(g));}if(true){e.display_icon=z("div","display_icon");e.display_iconBackground=z("div","display_iconBackground");e.display.appendChild(e.display_image);e.display_iconBackground.appendChild(e.display_icon);e.display.appendChild(e.display_iconBackground);}_css=b.utils.css;_hide=function(m){_css(m,{display:"none"});};function d(m){_imageWidth=e.display_image.naturalWidth;_imageHeight=e.display_image.naturalHeight;B();}function B(){b.utils.stretch(b.utils.stretching.UNIFORM,e.display_image,y,v,_imageWidth,_imageHeight);}e.display_image.onerror=function(m){_hide(e.display_image);};e.display_image.onload=d;l.parentNode.replaceChild(e.display,l);var f=(a.plugins&&a.plugins.logo)?a.plugins.logo:{};e.display.appendChild(new b.embed.logo(a.components.logo,"download",l.id));i.container=document.getElementById(i.id);i.setPlayer(e.display,"download");};this.supportsConfig=function(){if(a){var c=b.utils.getFirstPlaylistItemFromConfig(a);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true;}else{if(c.file){return j(c.file,c.provider,c.playlistfile);}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&j(c.levels[d].file,c.provider,c.playlistfile)){return true;}}}}}}else{return true;}};function j(f,d,g){if(g){return false;}var e=["image","sound","youtube","http"];if(d&&(e.toString().indexOf(d)>-1)){return true;}if(!d||(d&&d=="video")){var c=b.utils.extension(f);if(c&&b.utils.extensionmap[c]){return true;}}return false;}};})(jwplayer);(function(b){b.embed.flash=function(r,q,m,s,o){function a(f,c,e){var d=document.createElement("param");d.setAttribute("name",c);d.setAttribute("value",e);f.appendChild(d);}function n(e,d,c){return function(h){if(c){document.getElementById(o.id+"_wrapper").appendChild(d);}var f=document.getElementById(o.id).getPluginConfig("display");e.resize(f.width,f.height);var g={left:f.x,top:f.y};b.utils.css(d,g);};}function t(f){if(!f){return{};}var d={};for(var g in f){var c=f[g];for(var e in c){d[g+"."+e]=c[e];}}return d;}function p(f,g){if(f[g]){var d=f[g];for(var h in d){var c=d[h];if(typeof c=="string"){if(!f[h]){f[h]=c;}}else{for(var e in c){if(!f[h+"."+e]){f[h+"."+e]=c[e];}}}}delete f[g];}}function v(g){if(!g){return{};}var d={},e=[];for(var c in g){var h=b.utils.getPluginName(c);var i=g[c];e.push(c);for(var f in i){d[h+"."+f]=i[f];}}d.plugins=e.join(",");return d;}function u(d){var c=d.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href)+"&";for(var e in d){if(typeof(d[e])=="object"){c+=e+"="+encodeURIComponent("[[JSON]]"+b.utils.strings.jsonToString(d[e]))+"&";}else{c+=e+"="+encodeURIComponent(d[e])+"&";}}return c.substring(0,c.length-1);}this.embed=function(){m.id=o.id;var i;var e=b.utils.extend({},m);var h=e.width;var k=e.height;if(r.id+"_wrapper"==r.parentNode.id){i=document.getElementById(r.id+"_wrapper");}else{i=document.createElement("div");i.id=r.id+"_wrapper";b.utils.wrap(r,i);b.utils.css(i,{position:"relative",width:h,height:k});}var g=s.setupPlugins(o,e,n);if(g.length>0){b.utils.extend(e,v(g.plugins));}else{delete e.plugins;}var d=["height","width","modes","events"];for(var y=0;y<d.length;y++){delete e[d[y]];}var f="opaque";if(e.wmode){f=e.wmode;}p(e,"components");p(e,"providers");if(typeof e["dock.position"]!="undefined"){if(e["dock.position"].toString().toLowerCase()=="false"){e.dock=e["dock.position"];delete e["dock.position"];}}var j="#000000";var z;if(b.utils.isIE()){var l='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+j+'" width="100%" height="100%" id="'+r.id+'" name="'+r.id+'" tabindex=0"">';l+='<param name="movie" value="'+q.src+'">';l+='<param name="allowfullscreen" value="true">';l+='<param name="allowscriptaccess" value="always">';l+='<param name="seamlesstabbing" value="true">';l+='<param name="wmode" value="'+f+'">';l+='<param name="flashvars" value="'+u(e)+'">';l+="</object>";b.utils.setOuterHTML(r,l);z=document.getElementById(r.id);}else{var c=document.createElement("object");c.setAttribute("type","application/x-shockwave-flash");c.setAttribute("data",q.src);c.setAttribute("width","100%");c.setAttribute("height","100%");c.setAttribute("bgcolor","#000000");c.setAttribute("id",r.id);c.setAttribute("name",r.id);c.setAttribute("tabindex",0);a(c,"allowfullscreen","true");a(c,"allowscriptaccess","always");a(c,"seamlesstabbing","true");a(c,"wmode",f);a(c,"flashvars",u(e));r.parentNode.replaceChild(c,r);z=c;}o.container=z;o.setPlayer(z,"flash");};this.supportsConfig=function(){if(b.utils.hasFlash()){if(m){var d=b.utils.getFirstPlaylistItemFromConfig(m);if(typeof d.file=="undefined"&&typeof d.levels=="undefined"){return true;}else{if(d.file){return flashCanPlay(d.file,d.provider);}else{if(d.levels&&d.levels.length){for(var c=0;c<d.levels.length;c++){if(d.levels[c].file&&flashCanPlay(d.levels[c].file,d.provider)){return true;}}}}}}else{return true;}}return false;};flashCanPlay=function(c,e){var f=["video","http","sound","image"];if(e&&(f.toString().indexOf(e<0))){return true;}var d=b.utils.extension(c);if(!d){return true;}if(b.utils.extensionmap[d]!==undefined&&b.utils.extensionmap[d].flash===undefined){return false;}return true;};};})(jwplayer);(function(b){b.embed.html5=function(l,h,a,k,i){function j(d,c,e){return function(n){var g=document.getElementById(l.id+"_displayarea");if(e){g.appendChild(c);}var f=g.style;d.resize(parseInt(f.width.replace("px","")),parseInt(f.height.replace("px","")));c.left=f.left;c.top=f.top;};}this.embed=function(){if(b.html5){k.setupPlugins(i,a,j);l.innerHTML="";var e=b.utils.extend({screencolor:"0x000000"},a);var f=["plugins","modes","events"];for(var d=0;d<f.length;d++){delete e[f[d]];}if(e.levels&&!e.sources){e.sources=a.levels;}if(e.skin&&e.skin.toLowerCase().indexOf(".zip")>0){e.skin=e.skin.replace(/\.zip/i,".xml");}var c=new (b.html5(l)).setup(e);i.container=document.getElementById(i.id);i.setPlayer(c,"html5");}else{return null;}};this.supportsConfig=function(){var e=document.createElement("video");if(!!e.canPlayType){if(a){var c=b.utils.getFirstPlaylistItemFromConfig(a);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true;}else{if(c.file){return html5CanPlay(e,c.file,c.provider,c.playlistfile);}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&html5CanPlay(e,c.levels[d].file,c.provider,c.playlistfile)){return true;}}}}}}else{return true;}}return false;};html5CanPlay=function(e,f,d,g){if(g){return false;}if(d&&d=="youtube"){return true;}if(d&&d!="video"&&d!="http"&&d!="sound"){return false;}var c=b.utils.extension(f);if(!c||b.utils.extensionmap[c]===undefined){return true;}if(b.utils.extensionmap[c].html5===undefined){return false;}if(b.utils.isLegacyAndroid()&&c.match(/m4v|mp4/)){return true;}return browserCanPlay(e,b.utils.extensionmap[c].html5);};browserCanPlay=function(c,d){if(!d){return true;}return c.canPlayType(d);};};})(jwplayer);(function(b){b.embed.logo=function(r,s,z){var u={prefix:"http://l.longtailvideo.com/"+s+"/",file:"",link:"",margin:8,out:0.5,over:1,timeout:3,hide:false,position:"bottom-left"};_css=b.utils.css;var B;var v;t();function t(){p();A();x();}function p(){if(u.prefix){var c=b.version.split(/\W/).splice(0,2).join("/");if(u.prefix.indexOf(c)<0){u.prefix+=c+"/";}}v=b.utils.extend({},u,r);}function a(){var c={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};c.display=v.hide?"none":"block";var d=v.position.toLowerCase().split("-");for(var e in d){c[d[e]]=v.margin;}return c;}function A(){B=document.createElement("img");B.id=z+"_jwplayer_logo";B.style.display="none";B.onload=function(c){_css(B,a());y();};if(!v.file){return;}if(v.file.indexOf("http://")===0){B.src=v.file;}else{B.src=v.prefix+v.file;}}if(!v.file){return;}function x(){if(v.link){B.onmouseover=w;B.onmouseout=y;B.onclick=q;}else{this.mouseEnabled=false;}}function q(c){if(typeof c!="undefined"){c.preventDefault();c.stopPropagation();}if(v.link){window.open(v.link,"_blank");}return;}function y(c){if(v.link){B.style.opacity=v.out;}return;}function w(c){if(v.hide){B.style.opacity=v.over;}return;}return B;};})(jwplayer);(function(b){b.html5=function(a){var d=a;this.setup=function(c){b.utils.extend(this,new b.html5.api(d,c));return this;};return this;};})(jwplayer);(function(d){var f=d.utils.css;d.html5.view=function(J,K,U){var F=J;var N=K;var C=U;var D;var T;var a;var H;var I;var L;function c(){D=document.createElement("div");D.id=N.id;D.className=N.className;_videowrapper=document.createElement("div");_videowrapper.id=D.id+"_video_wrapper";N.id=D.id+"_video";f(D,{position:"relative",height:C.height,width:C.width,padding:0,backgroundColor:g(),zIndex:0});function g(){if(F.skin.getComponentSettings("display")&&F.skin.getComponentSettings("display").backgroundcolor){return F.skin.getComponentSettings("display").backgroundcolor;}return parseInt("000000",16);}f(N,{width:C.width,height:C.height,top:0,left:0,zIndex:1,margin:"auto",display:"block"});f(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});d.utils.wrap(N,D);d.utils.wrap(N,_videowrapper);H=document.createElement("div");H.id=D.id+"_displayarea";D.appendChild(H);}function P(){for(var h=0;h<C.plugins.order.length;h++){var g=C.plugins.order[h];if(C.plugins.object[g].getDisplayElement!==undefined){C.plugins.object[g].height=R(C.plugins.object[g].getDisplayElement().style.height);C.plugins.object[g].width=R(C.plugins.object[g].getDisplayElement().style.width);C.plugins.config[g].currentPosition=C.plugins.config[g].position;}}E();}function E(h){if(C.getMedia()!==undefined){for(var i=0;i<C.plugins.order.length;i++){var g=C.plugins.order[i];if(C.plugins.object[g].getDisplayElement!==undefined){if(C.getMedia().hasChrome()){C.plugins.config[g].currentPosition=d.html5.view.positions.NONE;}else{C.plugins.config[g].currentPosition=C.plugins.config[g].position;}}}}Q(C.width,C.height);}function R(g){if(typeof g=="string"){if(g===""){return 0;}else{if(g.lastIndexOf("%")>-1){return g;}else{return parseInt(g.replace("px",""),10);}}}return g;}this.setup=function(h){N=h;c();P();F.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_LOADED,E);F.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_META,function(){B();});var g;if(window.onresize!==null){g=window.onresize;}window.onresize=function(k){if(g!==undefined){try{g(k);}catch(i){}}if(F.jwGetFullscreen()){var j=document.body.getBoundingClientRect();C.width=Math.abs(j.left)+Math.abs(j.right);C.height=window.innerHeight;}Q(C.width,C.height);};};function S(g){switch(g.keyCode){case 27:if(F.jwGetFullscreen()){F.jwSetFullscreen(false);}break;case 32:if(F.jwGetState()!=d.api.events.state.IDLE&&F.jwGetState()!=d.api.events.state.PAUSED){F.jwPause();}else{F.jwPlay();}break;}}function Q(g,j){if(D.style.display=="none"){return;}var h=[].concat(C.plugins.order);h.reverse();I=h.length+2;if(!C.fullscreen){C.width=g;C.height=j;T=g;a=j;f(H,{top:0,bottom:0,left:0,right:0,width:g,height:j});f(D,{height:a,width:T});var i=M(G,h);if(i.length>0){I+=i.length;M(O,i,true);}}else{if(navigator.vendor.indexOf("Apple")!==0){M(b,h,true);}}B();}function M(h,k,j){var l=[];for(var m=0;m<k.length;m++){var g=k[m];if(C.plugins.object[g].getDisplayElement!==undefined){if(C.plugins.config[g].currentPosition!=d.html5.view.positions.NONE){var i=h(g,I--);if(!i){l.push(g);}else{C.plugins.object[g].resize(i.width,i.height);if(j){delete i.width;delete i.height;}f(C.plugins.object[g].getDisplayElement(),i);}}else{f(C.plugins.object[g].getDisplayElement(),{display:"none"});}}}return l;}function G(h,g){if(C.plugins.object[h].getDisplayElement!==undefined){if(C.plugins.config[h].position&&e(C.plugins.config[h].position)){if(C.plugins.object[h].getDisplayElement().parentNode===null){D.appendChild(C.plugins.object[h].getDisplayElement());}var i=V(h);i.zIndex=g;return i;}}return false;}function O(h,g){if(C.plugins.object[h].getDisplayElement().parentNode===null){H.appendChild(C.plugins.object[h].getDisplayElement());}var j=C.width,i=C.height;if(typeof C.width=="string"&&C.width.lastIndexOf("%")>-1){percentage=parseFloat(C.width.substring(0,C.width.lastIndexOf("%")))/100;j=Math.round(window.innerWidth*percentage);}if(typeof C.height=="string"&&C.height.lastIndexOf("%")>-1){percentage=parseFloat(C.height.substring(0,C.height.lastIndexOf("%")))/100;i=Math.round(window.innerHeight*percentage);}return{position:"absolute",width:(j-R(H.style.left)-R(H.style.right)),height:(i-R(H.style.top)-R(H.style.bottom)),zIndex:g};}function b(h,g){return{position:"fixed",width:C.width,height:C.height,zIndex:g};}function B(){H.style.position="absolute";C.getMedia().getDisplayElement().style.position="absolute";if(C.getMedia().getDisplayElement().videoWidth==0||C.getMedia().getDisplayElement().videoHeight==0){return;}var i,g;if(H.style.width.toString().lastIndexOf("%")>-1||H.style.width.toString().lastIndexOf("%")>-1){var h=H.getBoundingClientRect();i=Math.abs(h.left)+Math.abs(h.right);g=Math.abs(h.top)+Math.abs(h.bottom);}else{i=R(H.style.width);g=R(H.style.height);}d.utils.stretch(F.jwGetStretching(),C.getMedia().getDisplayElement(),i,g,C.getMedia().getDisplayElement().videoWidth,C.getMedia().getDisplayElement().videoHeight);}function V(h){var g={position:"absolute",margin:0,padding:0,top:null};var i=C.plugins.config[h].currentPosition.toLowerCase();switch(i.toUpperCase()){case d.html5.view.positions.TOP:g.top=R(H.style.top);g.left=R(H.style.left);g.width=T-R(H.style.left)-R(H.style.right);g.height=C.plugins.object[h].height;H.style[i]=R(H.style[i])+C.plugins.object[h].height+"px";H.style.height=R(H.style.height)-g.height+"px";break;case d.html5.view.positions.RIGHT:g.top=R(H.style.top);g.right=R(H.style.right);g.width=g.width=C.plugins.object[h].width;g.height=a-R(H.style.top)-R(H.style.bottom);H.style[i]=R(H.style[i])+C.plugins.object[h].width+"px";H.style.width=R(H.style.width)-g.width+"px";break;case d.html5.view.positions.BOTTOM:g.bottom=R(H.style.bottom);g.left=R(H.style.left);g.width=T-R(H.style.left)-R(H.style.right);g.height=C.plugins.object[h].height;H.style[i]=R(H.style[i])+C.plugins.object[h].height+"px";H.style.height=R(H.style.height)-g.height+"px";break;case d.html5.view.positions.LEFT:g.top=R(H.style.top);g.left=R(H.style.left);g.width=C.plugins.object[h].width;g.height=a-R(H.style.top)-R(H.style.bottom);H.style[i]=R(H.style[i])+C.plugins.object[h].width+"px";H.style.width=R(H.style.width)-g.width+"px";break;default:break;}return g;}this.resize=Q;this.fullscreen=function(g){if(navigator.vendor.indexOf("Apple")===0){if(C.getMedia().getDisplayElement().webkitSupportsFullscreen){if(g){try{C.getMedia().getDisplayElement().webkitEnterFullscreen();}catch(h){}}else{try{C.getMedia().getDisplayElement().webkitExitFullscreen();}catch(h){}}}}else{if(g){document.onkeydown=S;clearInterval(L);var i=document.body.getBoundingClientRect();C.width=Math.abs(i.left)+Math.abs(i.right);C.height=window.innerHeight;var j={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483000};f(D,j);j.zIndex=1;f(C.getMedia().getDisplayElement(),j);j.zIndex=2;f(H,j);}else{document.onkeydown="";C.width=T;C.height=a;f(D,{position:"relative",height:C.height,width:C.width,zIndex:0});}Q(C.width,C.height);}};};function e(a){return([d.html5.view.positions.TOP,d.html5.view.positions.RIGHT,d.html5.view.positions.BOTTOM,d.html5.view.positions.LEFT].toString().indexOf(a.toUpperCase())>-1);}d.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"};})(jwplayer);(function(d){var c={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:d.html5.view.positions.BOTTOM,idlehide:false,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_css=d.utils.css;_hide=function(a){_css(a,{display:"none"});};_show=function(a){_css(a,{display:"block"});};d.html5.controlbar=function(aI,af){var aJ=aI;var ar=d.utils.extend({},c,aJ.skin.getComponentSettings("controlbar"),af);if(ar.position==d.html5.view.positions.NONE||typeof d.html5.view.positions[ar.position]=="undefined"){return;}if(d.utils.mapLength(aJ.skin.getComponentLayout("controlbar"))>0){ar.layout=aJ.skin.getComponentLayout("controlbar");}var aa;var ai;var ab;var aq;var az="none";var aN;var aK;var Z;var aO;var aP;var aw;var ah={};var aE=false;var aQ={};var ad;var aL=false;function an(){if(!ad){ad=aJ.skin.getSkinElement("controlbar","background");if(!ad){ad={width:0,height:0,src:null};}}return ad;}function aj(){ab=0;aq=0;ai=0;if(!aE){var f={height:an().height,backgroundColor:ar.backgroundcolor};aa=document.createElement("div");aa.id=aJ.id+"_jwplayer_controlbar";_css(aa,f);}var g=(aJ.skin.getSkinElement("controlbar","capLeft"));var h=(aJ.skin.getSkinElement("controlbar","capRight"));if(g){ax("capLeft","left",false,aa);}var e={position:"absolute",height:an().height,left:(g?g.width:0),zIndex:0};ac("background",aa,e,"img");if(an().src){ah.background.src=an().src;}e.zIndex=1;ac("elements",aa,e);if(h){ax("capRight","right",false,aa);}}this.getDisplayElement=function(){return aa;};this.resize=function(e,g){d.utils.cancelAnimation(aa);document.getElementById(aJ.id).onmousemove=av;aP=e;aw=g;av();var f=ay();ao({id:aJ.id,duration:Z,position:aK});aA({id:aJ.id,bufferPercent:aO});return f;};this.show=function(){aL=false;_show(aa);};this.hide=function(){aL=true;_hide(aa);};function aD(){var f=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var e in f){var g=f[e];if(typeof ah[g]!="undefined"){aQ[g]=ah[g].getBoundingClientRect();}}}function av(){if(aL){return;}d.utils.cancelAnimation(aa);if(aM()){d.utils.fadeTo(aa,1,0,1,0);}else{d.utils.fadeTo(aa,0,0.1,1,2);}}function aM(){if(aL){return false;}if(aJ.jwGetState()==d.api.events.state.IDLE||aJ.jwGetState()==d.api.events.state.PAUSED){if(ar.idlehide){return false;}return true;}if(aJ.jwGetFullscreen()){return false;}if(ar.position==d.html5.view.positions.OVER){return false;}return true;}function ac(e,g,f,i){var h;if(!aE){if(!i){i="div";}h=document.createElement(i);ah[e]=h;h.id=aa.id+"_"+e;g.appendChild(h);}else{h=document.getElementById(aa.id+"_"+e);}if(f!==undefined){_css(h,f);}return h;}function ak(){a(ar.layout.left);a(ar.layout.right,-1);a(ar.layout.center);}function a(g,i){var e=g.position=="right"?"right":"left";var f=d.utils.extend([],g.elements);if(i!==undefined){f.reverse();}for(var h=0;h<f.length;h++){at(f[h],e);}}function am(){return ai++;}function at(m,k){var e,g,f,h,i;if(m.type=="divider"){ax("divider"+am(),k,true,undefined,undefined,m.width,m.element);return;}switch(m.name){case"play":ax("playButton",k,false);ax("pauseButton",k,true);ag("playButton","jwPlay");ag("pauseButton","jwPause");break;case"prev":ax("prevButton",k,true);ag("prevButton","jwPlaylistPrev");break;case"next":ax("nextButton",k,true);ag("nextButton","jwPlaylistNext");break;case"elapsed":ax("elapsedText",k,true);break;case"time":g=aJ.skin.getSkinElement("controlbar","timeSliderCapLeft")===undefined?0:aJ.skin.getSkinElement("controlbar","timeSliderCapLeft").width;f=aJ.skin.getSkinElement("controlbar","timeSliderCapRight")===undefined?0:aJ.skin.getSkinElement("controlbar","timeSliderCapRight").width;e=k=="left"?g:f;h=aJ.skin.getSkinElement("controlbar","timeSliderRail").width+g+f;i={height:an().height,position:"absolute",top:0,width:h};i[k]=k=="left"?ab:aq;var l=ac("timeSlider",ah.elements,i);ax("timeSliderCapLeft",k,true,l,k=="left"?0:e);ax("timeSliderRail",k,false,l,e);ax("timeSliderBuffer",k,false,l,e);ax("timeSliderProgress",k,false,l,e);ax("timeSliderThumb",k,false,l,e);ax("timeSliderCapRight",k,true,l,k=="right"?0:e);ae("time");break;case"fullscreen":ax("fullscreenButton",k,false);ax("normalscreenButton",k,true);ag("fullscreenButton","jwSetFullscreen",true);ag("normalscreenButton","jwSetFullscreen",false);break;case"volume":g=aJ.skin.getSkinElement("controlbar","volumeSliderCapLeft")===undefined?0:aJ.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;f=aJ.skin.getSkinElement("controlbar","volumeSliderCapRight")===undefined?0:aJ.skin.getSkinElement("controlbar","volumeSliderCapRight").width;e=k=="left"?g:f;h=aJ.skin.getSkinElement("controlbar","volumeSliderRail").width+g+f;i={height:an().height,position:"absolute",top:0,width:h};i[k]=k=="left"?ab:aq;var j=ac("volumeSlider",ah.elements,i);ax("volumeSliderCapLeft",k,true,j,k=="left"?0:e);ax("volumeSliderRail",k,true,j,e);ax("volumeSliderProgress",k,false,j,e);ax("volumeSliderCapRight",k,true,j,k=="right"?0:e);ae("volume");break;case"mute":ax("muteButton",k,false);ax("unmuteButton",k,true);ag("muteButton","jwSetMute",true);ag("unmuteButton","jwSetMute",false);break;case"duration":ax("durationText",k,true);break;}}function ax(e,m,g,j,o,h,f){if(aJ.skin.getSkinElement("controlbar",e)!==undefined||e.indexOf("Text")>0||e.indexOf("divider")===0){var n={height:an().height,position:"absolute",display:"block",top:0};if((e.indexOf("next")===0||e.indexOf("prev")===0)&&aJ.jwGetPlaylist().length<2){g=false;n.display="none";}var i;if(e.indexOf("Text")>0){e.innerhtml="00:00";n.font=ar.fontsize+"px/"+(an().height+1)+"px "+ar.font;n.color=ar.fontcolor;n.textAlign="center";n.fontWeight=ar.fontweight;n.fontStyle=ar.fontstyle;n.cursor="default";i=14+3*ar.fontsize;}else{if(e.indexOf("divider")===0){if(h){if(!isNaN(parseInt(h))){i=parseInt(h);}}else{if(f){var l=aJ.skin.getSkinElement("controlbar",f);if(l){n.background="url("+l.src+") repeat-x center left";i=l.width;}}else{n.background="url("+aJ.skin.getSkinElement("controlbar","divider").src+") repeat-x center left";i=aJ.skin.getSkinElement("controlbar","divider").width;}}}else{n.background="url("+aJ.skin.getSkinElement("controlbar",e).src+") repeat-x center left";i=aJ.skin.getSkinElement("controlbar",e).width;}}if(m=="left"){n.left=isNaN(o)?ab:o;if(g){ab+=i;}}else{if(m=="right"){n.right=isNaN(o)?aq:o;if(g){aq+=i;}}}if(d.utils.typeOf(j)=="undefined"){j=ah.elements;}n.width=i;if(aE){_css(ah[e],n);}else{var k=ac(e,j,n);if(aJ.skin.getSkinElement("controlbar",e+"Over")!==undefined){k.onmouseover=function(p){k.style.backgroundImage=["url(",aJ.skin.getSkinElement("controlbar",e+"Over").src,")"].join("");};k.onmouseout=function(p){k.style.backgroundImage=["url(",aJ.skin.getSkinElement("controlbar",e).src,")"].join("");};}}}}function ap(){aJ.jwAddEventListener(d.api.events.JWPLAYER_PLAYLIST_LOADED,au);aJ.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_BUFFER,aA);aJ.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,aC);aJ.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_TIME,ao);aJ.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_MUTE,b);aJ.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_VOLUME,aH);aJ.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_COMPLETE,al);}function au(){aj();ak();ay();Y();}function Y(){ao({id:aJ.id,duration:aJ.jwGetDuration(),position:0});aA({id:aJ.id,bufferProgress:0});b({id:aJ.id,mute:aJ.jwGetMute()});aC({id:aJ.id,newstate:d.api.events.state.IDLE});aH({id:aJ.id,volume:aJ.jwGetVolume()});}function ag(f,e,g){if(aE){return;}if(aJ.skin.getSkinElement("controlbar",f)!==undefined){var h=ah[f];if(h!==null){_css(h,{cursor:"pointer"});if(e=="fullscreen"){h.onmouseup=function(i){i.stopPropagation();aJ.jwSetFullscreen(!aJ.jwGetFullscreen());};}else{h.onmouseup=function(i){i.stopPropagation();if(g!==null){aJ[e](g);}else{aJ[e]();}};}}}}function ae(f){if(aE){return;}var e=ah[f+"Slider"];_css(ah.elements,{cursor:"pointer"});_css(e,{cursor:"pointer"});e.onmousedown=function(g){az=f;};e.onmouseup=function(g){g.stopPropagation();X(g.pageX);};e.onmousemove=function(h){if(az=="time"){aN=true;var g=h.pageX-aQ[f+"Slider"].left-window.pageXOffset;_css(ah.timeSliderThumb,{left:g});}};}function X(g){aN=false;var h;if(az=="time"){h=g-aQ.timeSliderRail.left+window.pageXOffset;var f=h/aQ.timeSliderRail.width*Z;if(f<0){f=0;}else{if(f>Z){f=Z-3;}}if(aJ.jwGetState()==d.api.events.state.PAUSED||aJ.jwGetState()==d.api.events.state.IDLE){aJ.jwPlay();}aJ.jwSeek(f);}else{if(az=="volume"){h=g-aQ.volumeSliderRail.left-window.pageXOffset;var e=Math.round(h/aQ.volumeSliderRail.width*100);if(e<0){e=0;}else{if(e>100){e=100;}}if(aJ.jwGetMute()){aJ.jwSetMute(false);}aJ.jwSetVolume(e);}}az="none";}function aA(f){if(f.bufferPercent!==null){aO=f.bufferPercent;}if(aQ.timeSliderRail){var e=aQ.timeSliderRail.width;var g=isNaN(Math.round(e*aO/100))?0:Math.round(e*aO/100);_css(ah.timeSliderBuffer,{width:g});}}function b(e){if(e.mute){_hide(ah.muteButton);_show(ah.unmuteButton);_hide(ah.volumeSliderProgress);}else{_show(ah.muteButton);_hide(ah.unmuteButton);_show(ah.volumeSliderProgress);}}function aC(e){if(e.newstate==d.api.events.state.BUFFERING||e.newstate==d.api.events.state.PLAYING){_show(ah.pauseButton);_hide(ah.playButton);}else{_hide(ah.pauseButton);_show(ah.playButton);}av();if(e.newstate==d.api.events.state.IDLE){_hide(ah.timeSliderBuffer);_hide(ah.timeSliderProgress);_hide(ah.timeSliderThumb);ao({id:aJ.id,duration:aJ.jwGetDuration(),position:0});}else{_show(ah.timeSliderBuffer);if(e.newstate!=d.api.events.state.BUFFERING){_show(ah.timeSliderProgress);_show(ah.timeSliderThumb);}}}function al(e){aA({bufferPercent:0});ao(d.utils.extend(e,{position:0,duration:Z}));}function ao(g){if(g.position!==null){aK=g.position;}if(g.duration!==null){Z=g.duration;}var h=(aK===Z===0)?0:aK/Z;var e=aQ.timeSliderRail;if(e){var i=isNaN(Math.round(e.width*h))?0:Math.round(e.width*h);var f=i;if(ah.timeSliderProgress){ah.timeSliderProgress.style.width=i+"px";if(!aN){if(ah.timeSliderThumb){ah.timeSliderThumb.style.left=f+"px";}}}}if(ah.durationText){ah.durationText.innerHTML=aF(Z);}if(ah.elapsedText){ah.elapsedText.innerHTML=aF(aK);}}function aF(e){str="00:00";if(e>0){str=Math.floor(e/60)<10?"0"+Math.floor(e/60)+":":Math.floor(e/60)+":";str+=Math.floor(e%60)<10?"0"+Math.floor(e%60):Math.floor(e%60);}return str;}function aG(){var f,g;var e=document.getElementById(aa.id+"_elements").childNodes;for(var h in document.getElementById(aa.id+"_elements").childNodes){if(isNaN(parseInt(h,10))){continue;}if(e[h].id.indexOf(aa.id+"_divider")===0&&g&&g.id.indexOf(aa.id+"_divider")===0&&e[h].style.backgroundImage==g.style.backgroundImage){e[h].style.display="none";}else{if(e[h].id.indexOf(aa.id+"_divider")===0&&f&&f.style.display!="none"){e[h].style.display="block";}}if(e[h].style.display!="none"){g=e[h];}f=e[h];}}function ay(){aG();if(aJ.jwGetFullscreen()){_show(ah.normalscreenButton);_hide(ah.fullscreenButton);}else{_hide(ah.normalscreenButton);_show(ah.fullscreenButton);}var h={width:aP};var i={};if(ar.position==d.html5.view.positions.OVER||aJ.jwGetFullscreen()){h.left=ar.margin;h.width-=2*ar.margin;h.top=aw-an().height-ar.margin;h.height=an().height;}else{h.left=0;}var g=aJ.skin.getSkinElement("controlbar","capLeft");var f=aJ.skin.getSkinElement("controlbar","capRight");i.left=g?g.width:0;i.width=h.width-i.left-(f?f.width:0);var e=aJ.skin.getSkinElement("controlbar","timeSliderCapLeft")===undefined?0:aJ.skin.getSkinElement("controlbar","timeSliderCapLeft").width;_css(ah.timeSliderRail,{width:(i.width-ab-aq),left:e});if(ah.timeSliderCapRight!==undefined){_css(ah.timeSliderCapRight,{left:e+(i.width-ab-aq)});}_css(aa,h);_css(ah.elements,i);_css(ah.background,i);aD();return h;}function aH(f){if(ah.volumeSliderRail!==undefined){var h=isNaN(f.volume/100)?1:f.volume/100;var g=parseInt(ah.volumeSliderRail.style.width.replace("px",""),10);var j=isNaN(Math.round(g*h))?0:Math.round(g*h);var e=parseInt(ah.volumeSliderRail.style.right.replace("px",""),10);var i=aJ.skin.getSkinElement("controlbar","volumeSliderCapLeft")===undefined?0:aJ.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(ah.volumeSliderProgress,{width:j,left:i});if(ah.volumeSliderCapLeft!==undefined){_css(ah.volumeSliderCapLeft,{left:0});}}}function aB(){aj();ak();aD();aE=true;ap();Y();aa.style.opacity=ar.idlehide?0:1;}aB();return this;};})(jwplayer);(function(c){var d=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"];c.html5.controller=function(H,K,Z,M){var E=H;var b=Z;var aa=M;var T=K;var N=true;var ab=-1;var G=(b.config.debug!==undefined)&&(b.config.debug.toString().toLowerCase()=="console");var V=new c.html5.eventdispatcher(T.id,G);c.utils.extend(this,V);function R(e){V.sendEvent(e.type,e);}b.addGlobalListener(R);function O(){try{if(b.playlist[b.item].levels[0].file.length>0){if(N||b.state==c.api.events.state.IDLE){b.addEventListener(c.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){b.getMedia().play();});b.addEventListener(c.api.events.JWPLAYER_MEDIA_TIME,function(f){if(f.position>=b.playlist[b.item].start&&ab>=0){b.playlist[b.item].start=ab;ab=-1;}});if(b.config.repeat){b.addEventListener(c.api.events.JWPLAYER_MEDIA_COMPLETE,function(f){setTimeout(Q,25);});}b.getMedia().load(b.playlist[b.item]);N=false;}else{if(b.state==c.api.events.state.PAUSED){b.getMedia().play();}}}return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}function L(){try{if(b.playlist[b.item].levels[0].file.length>0){switch(b.state){case c.api.events.state.PLAYING:case c.api.events.state.BUFFERING:b.getMedia().pause();break;}}return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}function D(f){try{if(b.playlist[b.item].levels[0].file.length>0){if(typeof f!="number"){f=parseFloat(f);}switch(b.state){case c.api.events.state.IDLE:if(ab<0){ab=b.playlist[b.item].start;b.playlist[b.item].start=f;}O();break;case c.api.events.state.PLAYING:case c.api.events.state.PAUSED:case c.api.events.state.BUFFERING:b.seek(f);break;}}return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}function U(){try{if(b.playlist[b.item].levels[0].file.length>0&&b.state!=c.api.events.state.IDLE){b.getMedia().stop();}return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}function X(){try{if(b.playlist[b.item].levels[0].file.length>0){if(b.config.shuffle){P(I());}else{if(b.item+1==b.playlist.length){P(0);}else{P(b.item+1);}}}if(b.state!=c.api.events.state.PLAYING&&b.state!=c.api.events.state.BUFFERING){O();}return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}function Y(){try{if(b.playlist[b.item].levels[0].file.length>0){if(b.config.shuffle){P(I());}else{if(b.item===0){P(b.playlist.length-1);}else{P(b.item-1);}}}if(b.state!=c.api.events.state.PLAYING&&b.state!=c.api.events.state.BUFFERING){O();}return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}function I(){var e=null;if(b.playlist.length>1){while(e===null){e=Math.floor(Math.random()*b.playlist.length);if(e==b.item){e=null;}}}else{e=0;}return e;}function P(f){b.resetEventListeners();b.addGlobalListener(R);try{if(b.playlist[f].levels[0].file.length>0){var e=b.state;if(e!==c.api.events.state.IDLE){U();}b.item=f;N=true;b.setActiveMediaProvider(b.playlist[b.item]);V.sendEvent(c.api.events.JWPLAYER_PLAYLIST_ITEM,{index:f});if(e==c.api.events.state.PLAYING||e==c.api.events.state.BUFFERING||b.config.chromeless||Z.config.autostart===true){O();}}return true;}catch(g){V.sendEvent(c.api.events.JWPLAYER_ERROR,g);}return false;}function a(e){try{switch(typeof(e)){case"number":b.getMedia().volume(e);break;case"string":b.getMedia().volume(parseInt(e,10));break;}return true;}catch(f){V.sendEvent(c.api.events.JWPLAYER_ERROR,f);}return false;}function S(e){try{if(typeof e=="undefined"){b.getMedia().mute(!b.mute);}else{if(e.toString().toLowerCase()=="true"){b.getMedia().mute(true);}else{b.getMedia().mute(false);}}return true;}catch(f){V.sendEvent(c.api.events.JWPLAYER_ERROR,f);}return false;}function W(f,g){try{b.width=f;b.height=g;aa.resize(f,g);V.sendEvent(c.api.events.JWPLAYER_RESIZE,{width:b.width,height:b.height});return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}function F(e){try{if(typeof e=="undefined"){b.fullscreen=!b.fullscreen;aa.fullscreen(!b.fullscreen);}else{if(e.toString().toLowerCase()=="true"){b.fullscreen=true;aa.fullscreen(true);}else{b.fullscreen=false;aa.fullscreen(false);}}V.sendEvent(c.api.events.JWPLAYER_RESIZE,{width:b.width,height:b.height});V.sendEvent(c.api.events.JWPLAYER_FULLSCREEN,{fullscreen:e});return true;}catch(f){V.sendEvent(c.api.events.JWPLAYER_ERROR,f);}return false;}function J(f){try{U();b.loadPlaylist(f);P(b.item);return true;}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e);}return false;}c.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};function Q(){b.resetEventListeners();b.addGlobalListener(R);switch(b.config.repeat.toUpperCase()){case c.html5.controller.repeatoptions.SINGLE:O();break;case c.html5.controller.repeatoptions.ALWAYS:if(b.item==b.playlist.length-1&&!b.config.shuffle){P(0);O();}else{X();}break;case c.html5.controller.repeatoptions.LIST:if(b.item==b.playlist.length-1&&!b.config.shuffle){P(0);}else{X();}break;}}this.play=O;this.pause=L;this.seek=D;this.stop=U;this.next=X;this.prev=Y;this.item=P;this.setVolume=a;this.setMute=S;this.resize=W;this.setFullscreen=F;this.load=J;};})(jwplayer);(function(b){b.html5.defaultSkin=function(){this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.0"><settings><setting name="backcolor" value="0xFFFFFF"/><setting name="frontcolor" value="0x000000"/><setting name="lightcolor" value="0x000000"/><setting name="screencolor" value="0x000000"/></settings><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/></settings><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFJJREFUeNrslLENwAAIwxLU/09j5AiOgD5hVQzNAVY8JK4qEfHMIKBnd2+BQlBINaiRtL/aV2rdzYBsM6CIONbI1NZENTr3RwdB2PlnJgJ6BRgA4hwu5Qg5iswAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEhJREFUeNpiYqABYBo1dNRQ+hr6H4jvA3E8NS39j4SpZvh/LJig4YxEGEqy3kET+w+AOGFQRhTJhrEQkGcczfujhg4CQwECDADpTRWU/B3wHQAAAABJRU5ErkJggg=="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAChJREFUeNpiYBgFo2DwA0YC8v/R1P4nRu+ooaOGUtnQUTAKhgIACDAAFCwQCfAJ4gwAAAAASUVORK5CYII="/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEtJREFUeNpiYBgFo2Dog/9QDAPyQHweTYwiQ/2B+D0Wi8g2tB+JTdBQRiIMJVkvEy0iglhDF9Aq9uOpHVEwoE+NJDUKRsFgAAABBgDe2hqZcNNL0AAAAABJRU5ErkJggg=="/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUeNpiYBgFo2Dog/9AfB6I5dHE/lNqKAi/B2J/ahsKw/3EGMpIhKEk66WJoaR6fz61IyqemhEFSlL61ExSo2AUDAYAEGAAiG4hj+5t7M8AAAAASUVORK5CYII="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADxJREFUeNpiYBgFo2AU0Bwwzluw+D8tLWARFhKiqQ9YuLg4aWsBGxs7bS1gZ6e5BWyjSX0UjIKhDgACDABlYQOGh5pYywAAAABJRU5ErkJggg=="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFo2AU0Bww1jc0/aelBSz8/Pw09QELOzs7bS1gY2OjrQWsrKy09gHraFIfBaNgqAOAAAMAvy0DChXHsZMAAAAASUVORK5CYII="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAClJREFUeNpiYBgFo2AU0BwwAvF/WlrARGsfjFow8BaMglEwCugAAAIMAOHfAQunR+XzAAAAAElFTkSuQmCC"/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAICAYAAAA870V8AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpiZICA/yCCiQEJUJcDEGAAY0gBD1/m7Q0AAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiYBgFIw3MB+L/5Gj8j6yRiRTFyICJXHfTXyMLAXlGati4YDRFDj8AEGAABk8GSqqS4CoAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFgxz8p7bm+cQa+h8LHy7GhEcjIz4bmAjYykiun/8j0fakGPIfTfPgiSr6aB4FVAcAAQYAWdwR1G1Wd2gAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGpJREFUeNpi/P//PwM9ABMDncCoRYPfIqqDZcuW1UPp/6AUDcNM1DQYKtRAlaAj1mCSLSLXYIIWUctgDItoZfDA5aOoqKhGEANIM9LVR7SymGDQUctikuOIXkFNdhHEOFrDjlpEd4sAAgwAriRMub95fu8AAAAASUVORK5CYII="/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFtJREFUeNpi/P//PwM9ABMDncCoRYPfIlqAeij9H5SiYZiqBqPTlFqE02BKLSLaYFItIttgQhZRzWB8FjENiuRJ7aAbsMQwYMl7wDIsWUUQ42gNO2oR3S0CCDAAKhKq6MLLn8oAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAE5JREFUeNpiYBgFo2DQA0YC8v/xqP1PjDlMRDrEgUgxkgHIlfZoriVGjmzLsLFHAW2D6D8eA/9Tw7L/BAwgJE90PvhPpNgoGAVDEQAEGAAMdhTyXcPKcAAAAABJRU5ErkJggg=="/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEZJREFUeNpiYBgFo2DIg/9UUkOUAf8JiFFsyX88fJyAkcQgYMQjNkzBoAgiezyRbE+tFGSPxQJ7auYBmma0UTAKBhgABBgAJAEY6zON61sAAAAASUVORK5CYII="/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC"/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg=="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNrs1jEOgCAMBVAg7t5/8qaoIy4uoobyXsLCxA+0NCUAAADGUWvdQoQ41x4ixNBB2hBvBskdD3w5ZCkl3+33VqI0kjBBlh9rp+uTcyOP33TnolfsU85XX3yIRpQph8ZQY3wTZtU5AACASA4BBgDHoVuY1/fvOQAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWlJREFUeNrsl+1twjAQhsHq/7BBYQLYIBmBDcoGMAIjtBPQTcII2SDtBDBBwrU6pGsUO7YbO470PtKJkz9iH++d4ywWAAAAAABgljRNsyWr2bZzDuJG1rLdZhcMbTjrBCGDyUKsqQLFciJb9bSvuG/WagRVRUVUI6gqy5HVeKWfSgRyJruKIU//TrZTSn2nmlaXThrloi/v9F2STC1W4+Aw5cBzkquRc09bofFNc6YLxEON0VUZS5FPTftO49vMjRsIF3RhOGr7/D/pJw+FKU+q0vDyq8W42jCunDqI3LC5XxNj2wHLU1XjaRnb0Lhykhqhhd8MtSF5J9tbjCv4mXGvKJz/65FF/qJryyaaIvzP2QRxZTX2nTuXjvV/VPFSwyLnW7mpH99yTh1FEVro6JBSd40/pMrRdV8vPtcKl28T2pT8TnFZ4yNosct3Q0io6JfBiz1FlGdqVQH3VHnepAEAAAAAADDzEGAAcTwB10jWgxcAAAAASUVORK5CYII="/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAuhJREFUeNrsWr9rU1EUznuNGqvFQh1ULOhiBx0KDtIuioO4pJuik3FxFfUPaAV1FTdx0Q5d2g4FFxehTnEpZHFoBy20tCIWtGq0TZP4HfkeHB5N8m6Sl/sa74XDybvv3vvOd8/Pe4lXrVZT3dD8VJc0B8QBcUAcEAfESktHGeR5XtMfqFQq/f92zPe/NbtGlKTdCY30kuxrpMGO94BlQCXs+rbh3ONgA6BlzP1p20d80gEI5hmA2A92Qua1Q2PtAFISM+bvjMG8U+Q7oA3rQGASwrYCU6WpNdLGYbA+Pq5jjXIiwi8EEa2UDbQSaKOIuV+SlkcCrfjY8XTI9EpKGwP0C2kru2hLtHqa4zoXtZRWyvi4CLwv9Opr6Hkn6A9HKgEANsQ1iqC3Ub/vRUk2JgmRkatK36kVrnt0qObunwUdUUMXMWYpakJsO5Am8tAw2GBIgwWA+G2S2dMpiw0gDioQRQJoKhRb1QiDwlHZUABYbaXWsm5ae6loTE4ZDxN4CZar8foVzOJ2iyZ2kWF3t7YIevffaMT5yJ70kQb2fQ1sE5SHr2wazs2wgMxgbsEKEAgxAvZUJbQLBGTSBMgNrncJbA6AljtS/eKDJ0Ez+DmrQEzXS2h1Ck25kAg0IZcUOaydCy4sYnN2fOA+2AP16gNoHALlQ+fwH7XO4CxLenUpgj4xr6ugY2roPMbMx+Xs18m/E8CVEIhxsNeg83XWOAN6grG3lGbk8uE5fr4B/WH3cJw+co/l9nTYsSGYCJ/lY5/qv0thn6nrIWmjeJcPSnWOeY++AkF8tpJHIMAUs/MaBBpj3znZfQo5psY+ZrG4gv5HickjEOymKjEeRpgyST6IuZcTcWbnjcgdPi5ghxciRKsl1lDSsgwA1i8fssonJgzmTSqfGUkCENndNdAL7PS6QQ7ZYISTo+1qq0LEWjTWcvY4isa4z+yfQB+7ooyHVg5RI7/i1Ijn/vnggDggDogD4oC00P4KMACd/juEHOrS4AAAAABJRU5ErkJggg=="/></elements></component><component name="dock"><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFBJREFUeNrs0cEJACAQA8Eofu0fu/W6EM5ZSAFDRpKTBs00CQQEBAQEBAQEBAQEBAQEBATkK8iqbY+AgICAgICAgICAgICAgICAgIC86QowAG5PAQzEJ0lKAAAAAElFTkSuQmCC"/></elements></component><component name="playlist"><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHhJREFUeNrs2NEJwCAMBcBYuv/CFuIE9VN47WWCR7iocXR3pdWdGPqqwIoMjYfQeAiNh9B4JHc6MHQVHnjggQceeOCBBx77TifyeOY0iHi8DqIdEY8dD5cL094eePzINB5CO/LwcOTptNB4CP25L4TIbZzpU7UEGAA5wz1uF5rF9AAAAABJRU5ErkJggg=="/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUeNrsy6ENACAMAMHClp2wYxZLAg5Fcu9e3OjuOKqqfTMzbs14CIZhGIZhGIZhGP4VLwEGAK/BBnVFpB0oAAAAAElFTkSuQmCC"/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNrsy7ENACAMBLE8++8caFFKKiRffU53112SGs3ttOohGIZhGIZhGIZh+Fe8BRgAiaUGde6NOSEAAAAASUVORK5CYII="/></elements></component></components></skin>';this.xml=null;if(window.DOMParser){parser=new DOMParser();this.xml=parser.parseFromString(this.text,"text/xml");}else{this.xml=new ActiveXObject("Microsoft.XMLDOM");this.xml.async="false";this.xml.loadXML(this.text);}return this;};})(jwplayer);(function(b){_css=b.utils.css;_hide=function(a){_css(a,{display:"none"});};_show=function(a){_css(a,{display:"block"});};b.html5.display=function(O,a){var J={icons:true};var T=b.utils.extend({},J,a);var E=O;var Z={};var X;var M;var S;var D;var C;var N;var U;var P=E.skin.getComponentSettings("display").bufferrotation===undefined?15:parseInt(E.skin.getComponentSettings("display").bufferrotation,10);var Y=E.skin.getComponentSettings("display").bufferinterval===undefined?100:parseInt(E.skin.getComponentSettings("display").bufferinterval,10);var aa={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:G},display_icon:{style:{cursor:"pointer",position:"absolute",top:((E.skin.getSkinElement("display","background").height-E.skin.getSkinElement("display","playIcon").height)/2),left:((E.skin.getSkinElement("display","background").width-E.skin.getSkinElement("display","playIcon").width)/2),border:0,margin:0,padding:0,zIndex:3}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:((M-E.skin.getSkinElement("display","background").height)/2),left:((X-E.skin.getSkinElement("display","background").width)/2),border:0,backgroundImage:(["url(",E.skin.getSkinElement("display","background").src,")"]).join(""),width:E.skin.getSkinElement("display","background").width,height:E.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2}},display_image:{style:{display:"none",width:X,height:M,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:0.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}};E.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,R);E.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_MUTE,R);E.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,R);E.jwAddEventListener(b.api.events.JWPLAYER_ERROR,H);L();function L(){Z.display=I("div","display");Z.display_text=I("div","display_text");Z.display.appendChild(Z.display_text);Z.display_image=I("img","display_image");Z.display_image.onerror=function(c){_hide(Z.display_image);};Z.display_image.onload=Q;Z.display_icon=I("div","display_icon");Z.display_iconBackground=I("div","display_iconBackground");Z.display.appendChild(Z.display_image);Z.display_iconBackground.appendChild(Z.display_icon);Z.display.appendChild(Z.display_iconBackground);ab();}this.getDisplayElement=function(){return Z.display;};this.resize=function(c,d){X=c;M=d;_css(Z.display,{width:c,height:d});_css(Z.display_text,{width:(c-10),top:((M-Z.display_text.getBoundingClientRect().height)/2)});_css(Z.display_iconBackground,{top:((M-E.skin.getSkinElement("display","background").height)/2),left:((X-E.skin.getSkinElement("display","background").width)/2)});V();R({});};this.show=function(){_show(Z.display_icon);_show(Z.display_iconBackground);};this.hide=function(){K();};function Q(c){S=Z.display_image.naturalWidth;D=Z.display_image.naturalHeight;V();}function V(){b.utils.stretch(E.jwGetStretching(),Z.display_image,X,M,S,D);}function I(e,c){var d=document.createElement(e);d.id=E.id+"_jwplayer_"+c;_css(d,aa[c].style);return d;}function ab(){for(var c in Z){if(aa[c].click!==undefined){Z[c].onclick=aa[c].click;}}}function G(c){if(typeof c.preventDefault!="undefined"){c.preventDefault();}else{c.returnValue=false;}if(E.jwGetState()!=b.api.events.state.PLAYING){E.jwPlay();}else{E.jwPause();}}function W(c){if(U||!T.icons){K();return;}_show(Z.display_iconBackground);Z.display_icon.style.backgroundImage=(["url(",E.skin.getSkinElement("display",c).src,")"]).join("");_css(Z.display_icon,{display:"block",width:E.skin.getSkinElement("display",c).width,height:E.skin.getSkinElement("display",c).height,top:(E.skin.getSkinElement("display","background").height-E.skin.getSkinElement("display",c).height)/2,left:(E.skin.getSkinElement("display","background").width-E.skin.getSkinElement("display",c).width)/2});if(E.skin.getSkinElement("display",c+"Over")!==undefined){Z.display_icon.onmouseover=function(d){Z.display_icon.style.backgroundImage=["url(",E.skin.getSkinElement("display",c+"Over").src,")"].join("");};Z.display_icon.onmouseout=function(d){Z.display_icon.style.backgroundImage=["url(",E.skin.getSkinElement("display",c).src,")"].join("");};}else{Z.display_icon.onmouseover=null;Z.display_icon.onmouseout=null;}}function K(){_hide(Z.display_icon);_hide(Z.display_iconBackground);}function H(c){U=true;K();Z.display_text.innerHTML=c.error;_show(Z.display_text);Z.display_text.style.top=((M-Z.display_text.getBoundingClientRect().height)/2)+"px";}function F(){var c=Z.display_image;Z.display_image=I("img","display_image");Z.display_image.onerror=function(d){_hide(Z.display_image);};Z.display_image.onload=Q;Z.display.replaceChild(Z.display_image,c);}function R(c){if((c.type==b.api.events.JWPLAYER_PLAYER_STATE||c.type==b.api.events.JWPLAYER_PLAYLIST_ITEM)&&U){U=false;_hide(Z.display_text);}if(N!==undefined){clearInterval(N);N=null;b.utils.animations.rotate(Z.display_icon,0);}switch(E.jwGetState()){case b.api.events.state.BUFFERING:W("bufferIcon");C=0;N=setInterval(function(){C+=P;b.utils.animations.rotate(Z.display_icon,C%360);},Y);W("bufferIcon");break;case b.api.events.state.PAUSED:if(E.jwGetPlaylist()[E.jwGetItem()].provider!="sound"){_css(Z.display_image,{background:"transparent no-repeat center center"});}W("playIcon");break;case b.api.events.state.IDLE:if(E.jwGetPlaylist()[E.jwGetItem()].image){_css(Z.display_image,{display:"block"});Z.display_image.src=b.utils.getAbsolutePath(E.jwGetPlaylist()[E.jwGetItem()].image);}else{F();}W("playIcon");break;default:if(E.jwGetMute()&&T.showmute){if(E.jwGetPlaylist()[E.jwGetItem()].provider!="sound"){F();}W("muteIcon");}else{if(E.jwGetPlaylist()[E.jwGetItem()].provider!="sound"){F();}_hide(Z.display_iconBackground);_hide(Z.display_icon);}break;}}return this;};})(jwplayer);(function(b){_css=b.utils.css;b.html5.dock=function(o,s){function p(){return{align:b.html5.view.positions.RIGHT};}var a=b.utils.extend({},p(),s);if(a.align=="FALSE"){return;}var n={};var t=[];var r;var q;var l=document.createElement("div");l.id=o.id+"_jwplayer_dock";this.getDisplayElement=function(){return l;};this.setButton=function(e,d,c,f){if(!d&&n[e]){b.utils.arrays.remove(t,e);l.removeChild(n[e].div);delete n[e];}else{if(d){if(!n[e]){n[e]={};}n[e].handler=d;n[e].outGraphic=c;n[e].overGraphic=f;if(!n[e].div){t.push(e);n[e].div=document.createElement("div");n[e].div.style.position="relative";l.appendChild(n[e].div);n[e].div.appendChild(document.createElement("img"));n[e].div.childNodes[0].style.position="absolute";n[e].div.childNodes[0].style.left=0;n[e].div.childNodes[0].style.top=0;n[e].div.childNodes[0].style.zIndex=10;n[e].div.childNodes[0].style.cursor="pointer";n[e].div.appendChild(document.createElement("img"));n[e].div.childNodes[1].style.position="absolute";n[e].div.childNodes[1].style.left=0;n[e].div.childNodes[1].style.top=0;if(o.skin.getSkinElement("dock","button")){n[e].div.childNodes[1].src=o.skin.getSkinElement("dock","button").src;}n[e].div.childNodes[1].style.zIndex=9;n[e].div.childNodes[1].style.cursor="pointer";n[e].div.onmouseover=function(){if(n[e].overGraphic){n[e].div.childNodes[0].src=n[e].overGraphic;}if(o.skin.getSkinElement("dock","buttonOver")){n[e].div.childNodes[1].src=o.skin.getSkinElement("dock","buttonOver").src;}};n[e].div.onmouseout=function(){if(n[e].outGraphic){n[e].div.childNodes[0].src=n[e].outGraphic;}if(o.skin.getSkinElement("dock","button")){n[e].div.childNodes[1].src=o.skin.getSkinElement("dock","button").src;}};if(n[e].overGraphic){n[e].div.childNodes[0].src=n[e].overGraphic;}if(n[e].outGraphic){n[e].div.childNodes[0].src=n[e].outGraphic;}if(o.skin.getSkinElement("dock","button")){n[e].div.childNodes[1].src=o.skin.getSkinElement("dock","button").src;}}if(d){n[e].div.onclick=function(g){g.preventDefault();b(o.id).callback(e);if(n[e].overGraphic){n[e].div.childNodes[0].src=n[e].overGraphic;}if(o.skin.getSkinElement("dock","button")){n[e].div.childNodes[1].src=o.skin.getSkinElement("dock","button").src;}};}}}m(r,q);};function m(j,d){r=j;q=d;if(t.length>0){var h=10;var f=j-o.skin.getSkinElement("dock","button").width-h;var i=h;var g=-1;if(a.align==b.html5.view.positions.LEFT){g=1;f=h;}for(var c=0;c<t.length;c++){var e=Math.floor(i/d);if((i+o.skin.getSkinElement("dock","button").height+h)>((e+1)*d)){i=((e+1)*d)+h;e=Math.floor(i/d);}n[t[c]].div.style.top=(i%d)+"px";n[t[c]].div.style.left=(f+(o.skin.getSkinElement("dock","button").width+h)*e*g)+"px";i+=o.skin.getSkinElement("dock","button").height+h;}}}this.resize=m;this.show=function(){_css(l,{display:"block"});};this.hide=function(){_css(l,{display:"none"});};return this;};})(jwplayer);(function(b){b.html5.eventdispatcher=function(e,a){var f=new b.events.eventdispatcher(a);b.utils.extend(this,f);this.sendEvent=function(d,c){if(c===undefined){c={};}b.utils.extend(c,{id:e,version:b.version,type:d});f.sendEvent(d,c);};};})(jwplayer);(function(d){var c={prefix:"",file:"",link:"",margin:8,out:0.5,over:1,timeout:3,hide:true,position:"bottom-left"};_css=d.utils.css;d.html5.logo=function(x,w){var a=x;var v;var A;var G;z();function z(){t();F();D();}function t(){if(c.prefix){var e=x.version.split(/\W/).splice(0,2).join("/");if(c.prefix.indexOf(e)<0){c.prefix+=e+"/";}}if(w.position==d.html5.view.positions.OVER){w.position=c.position;}A=d.utils.extend({},c,w);}function F(){G=document.createElement("img");G.id=a.id+"_jwplayer_logo";G.style.display="none";G.onload=function(e){_css(G,b());a.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,H);E();};if(!A.file){return;}if(A.file.indexOf("http://")===0){G.src=A.file;}else{G.src=A.prefix+A.file;}}if(!A.file){return;}this.resize=function(e,f){};this.getDisplayElement=function(){return G;};function D(){if(A.link){G.onmouseover=B;G.onmouseout=E;G.onclick=u;}else{this.mouseEnabled=false;}}function u(e){if(typeof e!="undefined"){e.stopPropagation();}a.jwPause();a.jwSetFullscreen(false);if(A.link){window.open(A.link,"_blank");}return;}function E(e){if(A.link){G.style.opacity=A.out;}return;}function B(e){if(A.hide){G.style.opacity=A.over;}return;}function b(){var e={textDecoration:"none",position:"absolute",cursor:"pointer"};e.display=A.hide?"none":"block";var f=A.position.toLowerCase().split("-");for(var g in f){e[f[g]]=A.margin;}return e;}function y(){if(A.hide){G.style.display="block";G.style.opacity=0;d.utils.fadeTo(G,A.out,0.1,parseFloat(G.style.opacity));v=setTimeout(function(){C();},A.timeout*1000);}}function C(){if(A.hide){d.utils.fadeTo(G,0,0.1,parseFloat(G.style.opacity));}}function H(e){if(e.newstate==d.api.events.state.BUFFERING){clearTimeout(v);y();}}return this;};})(jwplayer);(function(e){var f={ended:e.api.events.state.IDLE,playing:e.api.events.state.PLAYING,pause:e.api.events.state.PAUSED,buffering:e.api.events.state.BUFFERING};var d=e.utils.css;e.html5.mediavideo=function(ay,X){var T={abort:aj,canplay:aq,canplaythrough:aq,durationchange:am,emptied:aj,ended:aq,error:ar,loadeddata:am,loadedmetadata:am,loadstart:aq,pause:aq,play:Q,playing:aq,progress:ab,ratechange:aj,seeked:aq,seeking:aq,stalled:aq,suspend:aq,timeupdate:Q,volumechange:aj,waiting:aq,canshowcurrentframe:aj,dataunavailable:aj,empty:aj,load:az,loadedfirstframe:aj};var S=new e.html5.eventdispatcher();e.utils.extend(this,S);var aw=ay;var af=X;var W;var U;var aA=e.api.events.state.IDLE;var aa=null;var ap;var ax=0;var ac=false;var al=false;var b;var c;var av=[];var a;var Y=false;function ah(){return aA;}function az(g){}function aj(g){}function aq(g){if(f[g.type]){ak(f[g.type]);}}function ak(i){if(Y){return;}if(ap){i=e.api.events.state.IDLE;}if(i==e.api.events.state.PAUSED&&aA==e.api.events.state.IDLE){return;}if(i==e.api.events.state.PLAYING&&aA==e.api.events.state.IDLE){ak(e.api.events.state.BUFFERING);S.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:aw.buffer});ad();return;}if(aA!=i){var h=aA;aw.state=i;aA=i;var g=false;if(i==e.api.events.state.IDLE){an();if(aw.position>=aw.duration&&(aw.position>0||aw.duration>0)){g=true;}if(af.style.display!="none"&&!aw.config.chromeless){af.style.display="none";}}S.sendEvent(e.api.events.JWPLAYER_PLAYER_STATE,{oldstate:h,newstate:i});if(g){S.sendEvent(e.api.events.JWPLAYER_MEDIA_COMPLETE);}}ap=false;}function am(h){var g={height:h.target.videoHeight,width:h.target.videoWidth,duration:Math.round(h.target.duration*10)/10};if(aw.duration===0||isNaN(aw.duration)){aw.duration=Math.round(h.target.duration*10)/10;}aw.playlist[aw.item]=e.utils.extend(aw.playlist[aw.item],g);S.sendEvent(e.api.events.JWPLAYER_MEDIA_META,{metadata:g});}function Q(g){if(ap){return;}if(g!==undefined&&g.target!==undefined){if(aw.duration===0||isNaN(aw.duration)){aw.duration=Math.round(g.target.duration*10)/10;}if(!ac&&af.readyState>0){ak(e.api.events.state.PLAYING);}if(aA==e.api.events.state.PLAYING){if(!ac&&af.readyState>0){ac=true;try{af.currentTime=aw.playlist[aw.item].start;}catch(h){}af.volume=aw.volume/100;af.muted=aw.mute;}aw.position=Math.round(g.target.currentTime*10)/10;S.sendEvent(e.api.events.JWPLAYER_MEDIA_TIME,{position:g.target.currentTime,duration:g.target.duration});}}ab(g);}function ad(){if(W===false&&aA==e.api.events.state.BUFFERING){S.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER_FULL);W=true;}}function V(){var g=(av[av.length-1]-av[0])/av.length;a=setTimeout(function(){if(!U){ab({lengthComputable:true,loaded:1,total:1});}},g*10);}function ab(g){var h,i;if(g!==undefined&&g.lengthComputable&&g.total){ao();h=g.loaded/g.total*100;i=h/100*(aw.duration-af.currentTime);if(50<h&&!U){clearTimeout(a);V();}}else{if((af.buffered!==undefined)&&(af.buffered.length>0)){maxBufferIndex=0;if(maxBufferIndex>=0){h=af.buffered.end(maxBufferIndex)/af.duration*100;i=af.buffered.end(maxBufferIndex)-af.currentTime;}}}ad();if(!U){if(h==100&&U===false){U=true;}if(h!==null&&(h>aw.buffer)){aw.buffer=Math.round(h);S.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(h)});}}}function ag(){if(aa===null){aa=setInterval(function(){Q();},100);}}function an(){clearInterval(aa);aa=null;}function ar(g){var h="There was an error: ";if((g.target.error&&g.target.tagName.toLowerCase()=="video")||g.target.parentNode.error&&g.target.parentNode.tagName.toLowerCase()=="video"){var i=g.target.error===undefined?g.target.parentNode.error:g.target.error;switch(i.code){case i.MEDIA_ERR_ABORTED:h="You aborted the video playback: ";break;case i.MEDIA_ERR_NETWORK:h="A network error caused the video download to fail part-way: ";break;case i.MEDIA_ERR_DECODE:h="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case i.MEDIA_ERR_SRC_NOT_SUPPORTED:h="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:h="An unknown error occurred: ";break;}}else{if(g.target.tagName.toLowerCase()=="source"){c--;if(c>0){return;}h="The video could not be loaded, either because the server or network failed or because the format is not supported: ";}else{e.utils.log("Erroneous error received. Continuing...");return;}}ai();h+=au();Y=true;S.sendEvent(e.api.events.JWPLAYER_ERROR,{error:h});return;}function au(){var h="";for(var i in b.levels){var j=b.levels[i];var g=af.ownerDocument.createElement("source");h+=e.utils.getAbsolutePath(j.file);if(i<(b.levels.length-1)){h+=", ";}}return h;}this.getDisplayElement=function(){return af;};this.play=function(){if(aA!=e.api.events.state.PLAYING){if(af.style.display!="block"){af.style.display="block";}af.play();ag();if(W){ak(e.api.events.state.PLAYING);}}};this.pause=function(){af.pause();ak(e.api.events.state.PAUSED);};this.seek=function(g){if(!(aw.duration===0||isNaN(aw.duration))&&!(aw.position===0||isNaN(aw.position))){af.currentTime=g;af.play();}};function ai(){af.pause();af.removeAttribute("src");var h=af.getElementsByTagName("source");for(var g=0;g<h.length;g++){af.removeChild(h[g]);}if(typeof af.load=="function"){af.load();}an();aw.position=0;ap=true;ak(e.api.events.state.IDLE);}this.stop=ai;this.volume=function(g){af.volume=g/100;aw.volume=g;S.sendEvent(e.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(g)});};this.mute=function(g){af.muted=g;aw.mute=g;S.sendEvent(e.api.events.JWPLAYER_MEDIA_MUTE,{mute:g});};this.resize=function(g,h){if(false){d(af,{width:g,height:h});}S.sendEvent(e.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:aw.fullscreen,width:g,hieght:h});};this.fullscreen=function(g){if(g===true){this.resize("100%","100%");}else{this.resize(aw.config.width,aw.config.height);}};this.load=function(g){R(g);S.sendEvent(e.api.events.JWPLAYER_MEDIA_LOADED);W=false;U=false;ac=false;if(!aw.config.chromeless&&!al){av=[];ao();ak(e.api.events.state.BUFFERING);setTimeout(function(){Q();},25);}};function ao(){var g=new Date().getTime();av.push(g);}this.hasChrome=function(){return al;};function R(g){switch(g.provider){case"youtube":at(g);break;default:Z(g,document.createElement("video"));break;}}function Z(n,h){aw.duration=n.duration;al=false;b=n;h.preload="none";h.setAttribute("x-webkit-airplay","allow");Y=false;c=0;for(var l=0;l<n.levels.length;l++){var m=n.levels[l];var k;var g=e.utils.extension(m.file);if(m.type===undefined){if(e.utils.extensionmap[g]!==undefined&&e.utils.extensionmap[g].html5!==undefined){k=e.utils.extensionmap[g].html5;}}else{k=m.type;}if(!k||h.canPlayType(k)||(e.utils.isLegacyAndroid()&&g.match(/m4v|mp4/))){var i=af.ownerDocument.createElement("source");i.src=e.utils.getAbsolutePath(m.file);if(k&&!e.utils.isLegacyAndroid()){i.type=k;}c++;h.appendChild(i);}}if(c===0){Y=true;S.sendEvent(e.api.events.JWPLAYER_ERROR,{error:"The media could not be loaded because the format is not supported by your browser: "+au()});}if(aw.config.chromeless){h.poster=e.utils.getAbsolutePath(n.image);h.controls="controls";}h.style.top=af.style.top;h.style.left=af.style.left;h.style.width=af.style.width;h.style.height=af.style.height;h.style.zIndex=af.style.zIndex;h.onload=az;h.volume=0;af.parentNode.replaceChild(h,af);h.id=af.id;af=h;for(var j in T){af.addEventListener(j,function(o){if(o.target.parentNode!==null){T[o.type](o);}},true);}}function at(o){var g=o.levels[0].file;var l=document.createElement("object");g=["http://www.youtube.com/v/",ae(g),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");var i={movie:g,allowFullScreen:"true",allowscriptaccess:"always"};for(var m in i){var n=document.createElement("param");n.name=m;n.value=i[m];l.appendChild(n);}var h=document.createElement("embed");var k={src:g,type:"application/x-shockwave-flash",allowscriptaccess:"always",allowfullscreen:"true",width:document.getElementById(ay.id).style.width,height:document.getElementById(ay.id).style.height};for(var j in k){h[j]=k[j];}l.appendChild(h);l.style.position=af.style.position;l.style.top=af.style.top;l.style.left=af.style.left;l.style.width=document.getElementById(ay.id).style.width;l.style.height=document.getElementById(ay.id).style.height;l.style.zIndex=2147483000;af.parentNode.replaceChild(l,af);l.id=af.id;af=l;al=true;}function ae(i){var j=i.split(/\?|\#\!/);var g="";for(var h=0;h<j.length;h++){if(j[h].substr(0,2)=="v="){g=j[h].substr(2);}}if(g==""){if(i.indexOf("/v/")>=0){g=i.substr(i.indexOf("/v/")+3);}else{if(i.indexOf("youtu.be")>=0){g=i.substr(i.indexOf("youtu.be/")+9);}else{g=i;}}}if(g.indexOf("?")>-1){g=g.substr(0,g.indexOf("?"));}if(g.indexOf("&")>-1){g=g.substr(0,g.indexOf("&"));}return g;}this.embed=R;return this;};})(jwplayer);(function(jwplayer){var _configurableStateVariables=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];jwplayer.html5.model=function(api,container,options){var _api=api;var _container=container;var _model={id:_container.id,playlist:[],state:jwplayer.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:90,mute:false,fullscreen:false,repeat:"none",stretching:jwplayer.utils.stretching.UNIFORM,autostart:false,debug:undefined,screencolor:undefined}};var _media;var _eventDispatcher=new jwplayer.html5.eventdispatcher();var _components=["display","logo","controlbar","dock"];jwplayer.utils.extend(_model,_eventDispatcher);for(var option in options){if(typeof options[option]=="string"){var type=/color$/.test(option)?"color":null;options[option]=jwplayer.utils.typechecker(options[option],type);}var config=_model.config;var path=option.split(".");for(var edge in path){if(edge==path.length-1){config[path[edge]]=options[option];}else{if(config[path[edge]]===undefined){config[path[edge]]={};}config=config[path[edge]];}}}for(var index in _configurableStateVariables){var configurableStateVariable=_configurableStateVariables[index];_model[configurableStateVariable]=_model.config[configurableStateVariable];}var pluginorder=_components.concat([]);if(_model.plugins!==undefined){if(typeof _model.plugins=="string"){var userplugins=_model.plugins.split(",");for(var userplugin in userplugins){if(typeof userplugins[userplugin]=="string"){pluginorder.push(userplugins[userplugin].replace(/^\s+|\s+$/g,""));}}}}if(typeof _model.config.chromeless=="undefined"&&jwplayer.utils.isIOS()){_model.config.chromeless=true;}if(_model.config.chromeless){pluginorder=["logo"];if(_model.config.repeat===undefined||_model.config.repeat=="none"){_model.config.repeat="list";}}_model.plugins={order:pluginorder,config:{},object:{}};if(typeof _model.config.components!="undefined"){for(var component in _model.config.components){_model.plugins.config[component]=_model.config.components[component];}}for(var pluginIndex in _model.plugins.order){var pluginName=_model.plugins.order[pluginIndex];var pluginConfig=_model.config[pluginName]===undefined?{}:_model.config[pluginName];_model.plugins.config[pluginName]=_model.plugins.config[pluginName]===undefined?pluginConfig:jwplayer.utils.extend(_model.plugins.config[pluginName],pluginConfig);if(typeof _model.plugins.config[pluginName].position=="undefined"){_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.OVER;}else{_model.plugins.config[pluginName].position=_model.plugins.config[pluginName].position.toString().toUpperCase();}}if(typeof _model.plugins.config.dock!="undefined"){if(typeof _model.plugins.config.dock!="object"){var position=_model.plugins.config.dock.toString().toUpperCase();_model.plugins.config.dock={position:position};}if(typeof _model.plugins.config.dock.position!="undefined"){_model.plugins.config.dock.align=_model.plugins.config.dock.position;_model.plugins.config.dock.position=jwplayer.html5.view.positions.OVER;}}_model.loadPlaylist=function(arg,ready){var input;if(typeof arg=="string"){try{input=eval(arg);}catch(err){input=arg;}}else{input=arg;}var config;switch(jwplayer.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input};break;}_model.playlist=new jwplayer.html5.playlist(config);if(_model.config.shuffle){_model.item=_getShuffleItem();}else{if(_model.config.item>=_model.playlist.length){_model.config.item=_model.playlist.length-1;}else{if(_model.config.item<0){_model.config.item=0;}}_model.item=_model.config.item;}if(!ready){_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:_model.playlist});}_model.setActiveMediaProvider(_model.playlist[_model.item]);};function _getShuffleItem(){var result=null;if(_model.playlist.length>1){while(result===null){result=Math.floor(Math.random()*_model.playlist.length);if(result==_model.item){result=null;}}}else{result=0;}return result;}function forward(evt){if(evt.type==jwplayer.api.events.JWPLAYER_MEDIA_LOADED){_container=_media.getDisplayElement();}_eventDispatcher.sendEvent(evt.type,evt);}_model.setActiveMediaProvider=function(playlistItem){if(_media!==undefined){_media.resetEventListeners();}_media=new jwplayer.html5.mediavideo(_model,_container);_media.addGlobalListener(forward);if(_model.config.chromeless){_media.load(playlistItem);}return true;};_model.getMedia=function(){return _media;};_model.seek=function(pos){_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_SEEK,{position:_model.position,offset:pos});return _media.seek(pos);};_model.setupPlugins=function(){for(var plugin in _model.plugins.order){try{var pluginName=_model.plugins.order[plugin];if(jwplayer.html5[pluginName]!==undefined){_model.plugins.object[pluginName]=new jwplayer.html5[pluginName](_api,_model.plugins.config[pluginName]);}else{_model.plugins.order.splice(plugin,plugin+1);}}catch(err){jwplayer.utils.log("Could not setup "+pluginName);}}};return _model;};})(jwplayer);(function(b){b.html5.playlist=function(a){var e=[];if(a.playlist&&a.playlist instanceof Array&&a.playlist.length>0){for(var f in a.playlist){if(!isNaN(parseInt(f))){e.push(new b.html5.playlistitem(a.playlist[f]));}}}else{e.push(new b.html5.playlistitem(a));}return e;};})(jwplayer);(function(c){c.html5.playlistitem=function(b){var a={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]};var f=c.utils.extend({},a,b);if(f.type){f.provider=f.type;delete f.type;}if(f.levels.length===0){f.levels[0]=new c.html5.playlistitemlevel(f);}if(!f.provider){f.provider=d(f.levels[0]);}else{f.provider=f.provider.toLowerCase();}return f;};function d(b){if(c.utils.isYouTube(b.file)){return"youtube";}else{var a=c.utils.extension(b.file);var h;if(a&&c.utils.extensionmap[a]){h=c.utils.extensionmap[a].html5;}else{if(b.type){h=b.type;}}if(h){var g=h.split("/")[0];if(g=="audio"){return"sound";}else{if(g=="video"){return g;}}}}return"";}})(jwplayer);(function(b){b.html5.playlistitemlevel=function(a){var e={file:"",streamer:"",bitrate:0,width:0};for(var f in e){if(a[f]!==undefined){e[f]=a[f];}}return e;};})(jwplayer);(function(b){b.html5.skin=function(){var a={};var d=false;this.load=function(f,c){new b.html5.skinloader(f,function(e){d=true;a=e;c();},function(){new b.html5.skinloader("",function(e){d=true;a=e;c();});});};this.getSkinElement=function(h,g){if(d){try{return a[h].elements[g];}catch(c){b.utils.log("No such skin component / element: ",[h,g]);}}return null;};this.getComponentSettings=function(c){if(d){return a[c].settings;}return null;};this.getComponentLayout=function(c){if(d){return a[c].layout;}return null;};};})(jwplayer);(function(b){b.html5.skinloader=function(B,t,y){var u={};var E=t;var x=y;var C=true;var z;var v=B;var a=false;function w(){if(typeof v!="string"||v===""){D(b.html5.defaultSkin().xml);}else{b.utils.ajax(b.utils.getAbsolutePath(v),function(d){try{if(d.responseXML!==null){D(d.responseXML);return;}}catch(c){}D(b.html5.defaultSkin().xml);},function(c){D(b.html5.defaultSkin().xml);});}}function D(n){var V=n.getElementsByTagName("component");if(V.length===0){return;}for(var q=0;q<V.length;q++){var X=V[q].getAttribute("name");var h={settings:{},elements:{},layout:{}};u[X]=h;var R=V[q].getElementsByTagName("elements")[0].getElementsByTagName("element");for(var T=0;T<R.length;T++){F(R[T],X);}var l=V[q].getElementsByTagName("settings")[0];if(l!==undefined&&l.childNodes.length>0){var k=l.getElementsByTagName("setting");for(var d=0;d<k.length;d++){var c=k[d].getAttribute("name");var o=k[d].getAttribute("value");var p=/color$/.test(c)?"color":null;u[X].settings[c]=b.utils.typechecker(o,p);}}var i=V[q].getElementsByTagName("layout")[0];if(i!==undefined&&i.childNodes.length>0){var g=i.getElementsByTagName("group");for(var P=0;P<g.length;P++){var j=g[P];u[X].layout[j.getAttribute("position")]={elements:[]};for(var e=0;e<j.attributes.length;e++){var W=j.attributes[e];u[X].layout[j.getAttribute("position")][W.name]=W.value;}var f=j.getElementsByTagName("*");for(var Q=0;Q<f.length;Q++){var U=f[Q];u[X].layout[j.getAttribute("position")].elements.push({type:U.tagName});for(var S=0;S<U.attributes.length;S++){var m=U.attributes[S];u[X].layout[j.getAttribute("position")].elements[Q][m.name]=m.value;}if(u[X].layout[j.getAttribute("position")].elements[Q].name===undefined){u[X].layout[j.getAttribute("position")].elements[Q].name=U.tagName;}}}}C=false;r();}}function r(){clearInterval(z);if(!a){z=setInterval(function(){s();},100);}}function F(d,e){var f=new Image();var i=d.getAttribute("name");var g=d.getAttribute("src");var j;if(g.indexOf("data:image/png;base64,")===0){j=g;}else{var h=b.utils.getAbsolutePath(v);var c=h.substr(0,h.lastIndexOf("/"));j=[c,e,g].join("/");}u[e].elements[i]={height:0,width:0,src:"",ready:false};f.onload=function(k){A(f,i,e);};f.onerror=function(k){a=true;r();x();};f.src=j;}function s(){for(var d in u){if(d!="properties"){for(var c in u[d].elements){if(!u[d].elements[c].ready){return;}}}}if(C===false){clearInterval(z);E(u);}}function A(e,c,d){u[d].elements[c].height=e.height;u[d].elements[c].width=e.width;u[d].elements[c].src=e.src;u[d].elements[c].ready=true;r();}w();};})(jwplayer);(function(b){b.html5.api=function(v,a){var m={};var r=document.createElement("div");v.parentNode.replaceChild(r,v);r.id=v.id;m.version=b.version;m.id=r.id;var n=new b.html5.model(m,r,a);var p=new b.html5.view(m,r,n);var o=new b.html5.controller(m,r,n,p);m.skin=new b.html5.skin();m.jwPlay=function(c){if(typeof c=="undefined"){s();}else{if(c.toString().toLowerCase()=="true"){o.play();}else{o.pause();}}};m.jwPause=function(c){if(typeof c=="undefined"){s();}else{if(c.toString().toLowerCase()=="true"){o.pause();}else{o.play();}}};function s(){if(n.state==b.api.events.state.PLAYING||n.state==b.api.events.state.BUFFERING){o.pause();}else{o.play();}}m.jwStop=o.stop;m.jwSeek=o.seek;m.jwPlaylistItem=o.item;m.jwPlaylistNext=o.next;m.jwPlaylistPrev=o.prev;m.jwResize=o.resize;m.jwLoad=o.load;function q(c){return function(){return n[c];};}function t(c,d,e){return function(){var f=n.plugins.object[c];if(f&&f[d]&&typeof f[d]=="function"){f[d].apply(f,e);}};}m.jwGetItem=q("item");m.jwGetPosition=q("position");m.jwGetDuration=q("duration");m.jwGetBuffer=q("buffer");m.jwGetWidth=q("width");m.jwGetHeight=q("height");m.jwGetFullscreen=q("fullscreen");m.jwSetFullscreen=o.setFullscreen;m.jwGetVolume=q("volume");m.jwSetVolume=o.setVolume;m.jwGetMute=q("mute");m.jwSetMute=o.setMute;m.jwGetStretching=q("stretching");m.jwGetState=q("state");m.jwGetVersion=function(){return m.version;};m.jwGetPlaylist=function(){return n.playlist;};m.jwGetPlaylistIndex=m.jwGetItem;m.jwAddEventListener=o.addEventListener;m.jwRemoveEventListener=o.removeEventListener;m.jwSendEvent=o.sendEvent;m.jwDockSetButton=function(d,c,f,e){if(n.plugins.object.dock&&n.plugins.object.dock.setButton){n.plugins.object.dock.setButton(d,c,f,e);}};m.jwShowControlbar=t("controlbar","show");m.jwHideControlbar=t("controlbar","hide");m.jwShowDock=t("dock","show");m.jwHideDock=t("dock","hide");m.jwShowDisplay=t("display","show");m.jwHideDisplay=t("display","hide");m.jwGetLevel=function(){};m.jwGetBandwidth=function(){};m.jwGetLockState=function(){};m.jwLock=function(){};m.jwUnlock=function(){};function u(d,e,c){return function(){d.loadPlaylist(d.config,true);d.setupPlugins();e.setup(d.getMedia().getDisplayElement());var f={id:m.id,version:m.version};c.sendEvent(b.api.events.JWPLAYER_READY,f);if(playerReady!==undefined){playerReady(f);}if(window[d.config.playerReady]!==undefined){window[d.config.playerReady](f);}d.sendEvent(b.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:d.playlist});c.item(d.item);};}if(n.config.chromeless){setTimeout(u(n,p,o),25);}else{m.skin.load(n.config.skin,u(n,p,o));}return m;};})(jwplayer);}
