/*!
 * jQuery JavaScript Library v1.6.1
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Thu May 12 15:04:36 2011 -0400
 */
(function(bg,P){var aw=bg.document,by=bg.navigator,bp=bg.location;var b=(function(){var bI=function(b2,b3){return new bI.fn.init(b2,b3,bG)},bX=bg.jQuery,bK=bg.$,bG,b1=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bQ=/\S/,bM=/^\s+/,bH=/\s+$/,bL=/\d/,bE=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bR=/^[\],:{}\s]*$/,bZ=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bT=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bN=/(?:^|:|,)(?:\s*\[)+/g,bC=/(webkit)[ \/]([\w.]+)/,bV=/(opera)(?:.*version)?[ \/]([\w.]+)/,bU=/(msie) ([\w.]+)/,bW=/(mozilla)(?:.*? rv:([\w.]+))?/,b0=by.userAgent,bY,bF,e,bP=Object.prototype.toString,bJ=Object.prototype.hasOwnProperty,bD=Array.prototype.push,bO=Array.prototype.slice,bS=String.prototype.trim,bz=Array.prototype.indexOf,bB={};bI.fn=bI.prototype={constructor:bI,init:function(b2,b6,b5){var b4,b7,b3,b8;if(!b2){return this}if(b2.nodeType){this.context=this[0]=b2;this.length=1;return this}if(b2==="body"&&!b6&&aw.body){this.context=aw;this[0]=aw.body;this.selector=b2;this.length=1;return this}if(typeof b2==="string"){if(b2.charAt(0)==="<"&&b2.charAt(b2.length-1)===">"&&b2.length>=3){b4=[null,b2,null]}else{b4=b1.exec(b2)}if(b4&&(b4[1]||!b6)){if(b4[1]){b6=b6 instanceof bI?b6[0]:b6;b8=(b6?b6.ownerDocument||b6:aw);b3=bE.exec(b2);if(b3){if(bI.isPlainObject(b6)){b2=[aw.createElement(b3[1])];bI.fn.attr.call(b2,b6,true)}else{b2=[b8.createElement(b3[1])]}}else{b3=bI.buildFragment([b4[1]],[b8]);b2=(b3.cacheable?bI.clone(b3.fragment):b3.fragment).childNodes}return bI.merge(this,b2)}else{b7=aw.getElementById(b4[2]);if(b7&&b7.parentNode){if(b7.id!==b4[2]){return b5.find(b2)}this.length=1;this[0]=b7}this.context=aw;this.selector=b2;return this}}else{if(!b6||b6.jquery){return(b6||b5).find(b2)}else{return this.constructor(b6).find(b2)}}}else{if(bI.isFunction(b2)){return b5.ready(b2)}}if(b2.selector!==P){this.selector=b2.selector;this.context=b2.context}return bI.makeArray(b2,this)},selector:"",jquery:"1.6.1",length:0,size:function(){return this.length},toArray:function(){return bO.call(this,0)},get:function(b2){return b2==null?this.toArray():(b2<0?this[this.length+b2]:this[b2])},pushStack:function(b3,b5,b2){var b4=this.constructor();if(bI.isArray(b3)){bD.apply(b4,b3)}else{bI.merge(b4,b3)}b4.prevObject=this;b4.context=this.context;if(b5==="find"){b4.selector=this.selector+(this.selector?" ":"")+b2}else{if(b5){b4.selector=this.selector+"."+b5+"("+b2+")"}}return b4},each:function(b3,b2){return bI.each(this,b3,b2)},ready:function(b2){bI.bindReady();bF.done(b2);return this},eq:function(b2){return b2===-1?this.slice(b2):this.slice(b2,+b2+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bO.apply(this,arguments),"slice",bO.call(arguments).join(","))},map:function(b2){return this.pushStack(bI.map(this,function(b4,b3){return b2.call(b4,b3,b4)}))},end:function(){return this.prevObject||this.constructor(null)},push:bD,sort:[].sort,splice:[].splice};bI.fn.init.prototype=bI.fn;bI.extend=bI.fn.extend=function(){var cb,b4,b2,b3,b8,b9,b7=arguments[0]||{},b6=1,b5=arguments.length,ca=false;if(typeof b7==="boolean"){ca=b7;b7=arguments[1]||{};b6=2}if(typeof b7!=="object"&&!bI.isFunction(b7)){b7={}}if(b5===b6){b7=this;--b6}for(;b6<b5;b6++){if((cb=arguments[b6])!=null){for(b4 in cb){b2=b7[b4];b3=cb[b4];if(b7===b3){continue}if(ca&&b3&&(bI.isPlainObject(b3)||(b8=bI.isArray(b3)))){if(b8){b8=false;b9=b2&&bI.isArray(b2)?b2:[]}else{b9=b2&&bI.isPlainObject(b2)?b2:{}}b7[b4]=bI.extend(ca,b9,b3)}else{if(b3!==P){b7[b4]=b3}}}}}return b7};bI.extend({noConflict:function(b2){if(bg.$===bI){bg.$=bK}if(b2&&bg.jQuery===bI){bg.jQuery=bX}return bI},isReady:false,readyWait:1,holdReady:function(b2){if(b2){bI.readyWait++}else{bI.ready(true)}},ready:function(b2){if((b2===true&&!--bI.readyWait)||(b2!==true&&!bI.isReady)){if(!aw.body){return setTimeout(bI.ready,1)}bI.isReady=true;if(b2!==true&&--bI.readyWait>0){return}bF.resolveWith(aw,[bI]);if(bI.fn.trigger){bI(aw).trigger("ready").unbind("ready")}}},bindReady:function(){if(bF){return}bF=bI._Deferred();if(aw.readyState==="complete"){return setTimeout(bI.ready,1)}if(aw.addEventListener){aw.addEventListener("DOMContentLoaded",e,false);bg.addEventListener("load",bI.ready,false)}else{if(aw.attachEvent){aw.attachEvent("onreadystatechange",e);bg.attachEvent("onload",bI.ready);var b2=false;try{b2=bg.frameElement==null}catch(b3){}if(aw.documentElement.doScroll&&b2){bA()}}}},isFunction:function(b2){return bI.type(b2)==="function"},isArray:Array.isArray||function(b2){return bI.type(b2)==="array"},isWindow:function(b2){return b2&&typeof b2==="object"&&"setInterval" in b2},isNaN:function(b2){return b2==null||!bL.test(b2)||isNaN(b2)},type:function(b2){return b2==null?String(b2):bB[bP.call(b2)]||"object"},isPlainObject:function(b3){if(!b3||bI.type(b3)!=="object"||b3.nodeType||bI.isWindow(b3)){return false}if(b3.constructor&&!bJ.call(b3,"constructor")&&!bJ.call(b3.constructor.prototype,"isPrototypeOf")){return false}var b2;for(b2 in b3){}return b2===P||bJ.call(b3,b2)},isEmptyObject:function(b3){for(var b2 in b3){return false}return true},error:function(b2){throw b2},parseJSON:function(b2){if(typeof b2!=="string"||!b2){return null}b2=bI.trim(b2);if(bg.JSON&&bg.JSON.parse){return bg.JSON.parse(b2)}if(bR.test(b2.replace(bZ,"@").replace(bT,"]").replace(bN,""))){return(new Function("return "+b2))()}bI.error("Invalid JSON: "+b2)},parseXML:function(b4,b2,b3){if(bg.DOMParser){b3=new DOMParser();b2=b3.parseFromString(b4,"text/xml")}else{b2=new ActiveXObject("Microsoft.XMLDOM");b2.async="false";b2.loadXML(b4)}b3=b2.documentElement;if(!b3||!b3.nodeName||b3.nodeName==="parsererror"){bI.error("Invalid XML: "+b4)}return b2},noop:function(){},globalEval:function(b2){if(b2&&bQ.test(b2)){(bg.execScript||function(b3){bg["eval"].call(bg,b3)})(b2)}},nodeName:function(b3,b2){return b3.nodeName&&b3.nodeName.toUpperCase()===b2.toUpperCase()},each:function(b5,b8,b4){var b3,b6=0,b7=b5.length,b2=b7===P||bI.isFunction(b5);if(b4){if(b2){for(b3 in b5){if(b8.apply(b5[b3],b4)===false){break}}}else{for(;b6<b7;){if(b8.apply(b5[b6++],b4)===false){break}}}}else{if(b2){for(b3 in b5){if(b8.call(b5[b3],b3,b5[b3])===false){break}}}else{for(;b6<b7;){if(b8.call(b5[b6],b6,b5[b6++])===false){break}}}}return b5},trim:bS?function(b2){return b2==null?"":bS.call(b2)}:function(b2){return b2==null?"":b2.toString().replace(bM,"").replace(bH,"")},makeArray:function(b5,b3){var b2=b3||[];if(b5!=null){var b4=bI.type(b5);if(b5.length==null||b4==="string"||b4==="function"||b4==="regexp"||bI.isWindow(b5)){bD.call(b2,b5)}else{bI.merge(b2,b5)}}return b2},inArray:function(b4,b5){if(bz){return bz.call(b5,b4)}for(var b2=0,b3=b5.length;b2<b3;b2++){if(b5[b2]===b4){return b2}}return -1},merge:function(b6,b4){var b5=b6.length,b3=0;if(typeof b4.length==="number"){for(var b2=b4.length;b3<b2;b3++){b6[b5++]=b4[b3]}}else{while(b4[b3]!==P){b6[b5++]=b4[b3++]}}b6.length=b5;return b6},grep:function(b3,b8,b2){var b4=[],b7;b2=!!b2;for(var b5=0,b6=b3.length;b5<b6;b5++){b7=!!b8(b3[b5],b5);if(b2!==b7){b4.push(b3[b5])}}return b4},map:function(b2,b9,ca){var b7,b8,b6=[],b4=0,b3=b2.length,b5=b2 instanceof bI||b3!==P&&typeof b3==="number"&&((b3>0&&b2[0]&&b2[b3-1])||b3===0||bI.isArray(b2));if(b5){for(;b4<b3;b4++){b7=b9(b2[b4],b4,ca);if(b7!=null){b6[b6.length]=b7}}}else{for(b8 in b2){b7=b9(b2[b8],b8,ca);if(b7!=null){b6[b6.length]=b7}}}return b6.concat.apply([],b6)},guid:1,proxy:function(b6,b5){if(typeof b5==="string"){var b4=b6[b5];b5=b6;b6=b4}if(!bI.isFunction(b6)){return P}var b2=bO.call(arguments,2),b3=function(){return b6.apply(b5,b2.concat(bO.call(arguments)))};b3.guid=b6.guid=b6.guid||b3.guid||bI.guid++;return b3},access:function(b2,ca,b8,b4,b7,b9){var b3=b2.length;if(typeof ca==="object"){for(var b5 in ca){bI.access(b2,b5,ca[b5],b4,b7,b8)}return b2}if(b8!==P){b4=!b9&&b4&&bI.isFunction(b8);for(var b6=0;b6<b3;b6++){b7(b2[b6],ca,b4?b8.call(b2[b6],b6,b7(b2[b6],ca)):b8,b9)}return b2}return b3?b7(b2[0],ca):P},now:function(){return(new Date()).getTime()},uaMatch:function(b3){b3=b3.toLowerCase();var b2=bC.exec(b3)||bV.exec(b3)||bU.exec(b3)||b3.indexOf("compatible")<0&&bW.exec(b3)||[];return{browser:b2[1]||"",version:b2[2]||"0"}},sub:function(){function b2(b5,b6){return new b2.fn.init(b5,b6)}bI.extend(true,b2,this);b2.superclass=this;b2.fn=b2.prototype=this();b2.fn.constructor=b2;b2.sub=this.sub;b2.fn.init=function b4(b5,b6){if(b6&&b6 instanceof bI&&!(b6 instanceof b2)){b6=b2(b6)}return bI.fn.init.call(this,b5,b6,b3)};b2.fn.init.prototype=b2.fn;var b3=b2(aw);return b2},browser:{}});bI.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(b3,b2){bB["[object "+b2+"]"]=b2.toLowerCase()});bY=bI.uaMatch(b0);if(bY.browser){bI.browser[bY.browser]=true;bI.browser.version=bY.version}if(bI.browser.webkit){bI.browser.safari=true}if(bQ.test("\xA0")){bM=/^[\s\xA0]+/;bH=/[\s\xA0]+$/}bG=bI(aw);if(aw.addEventListener){e=function(){aw.removeEventListener("DOMContentLoaded",e,false);bI.ready()}}else{if(aw.attachEvent){e=function(){if(aw.readyState==="complete"){aw.detachEvent("onreadystatechange",e);bI.ready()}}}}function bA(){if(bI.isReady){return}try{aw.documentElement.doScroll("left")}catch(b2){setTimeout(bA,1);return}bI.ready()}return bI})();var a="done fail isResolved isRejected promise then always pipe".split(" "),aL=[].slice;b.extend({_Deferred:function(){var bB=[],bC,bz,bA,e={done:function(){if(!bA){var bE=arguments,bF,bI,bH,bG,bD;if(bC){bD=bC;bC=0}for(bF=0,bI=bE.length;bF<bI;bF++){bH=bE[bF];bG=b.type(bH);if(bG==="array"){e.done.apply(e,bH)}else{if(bG==="function"){bB.push(bH)}}}if(bD){e.resolveWith(bD[0],bD[1])}}return this},resolveWith:function(bE,bD){if(!bA&&!bC&&!bz){bD=bD||[];bz=1;try{while(bB[0]){bB.shift().apply(bE,bD)}}finally{bC=[bE,bD];bz=0}}return this},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:function(){return !!(bz||bC)},cancel:function(){bA=1;bB=[];return this}};return e},Deferred:function(bz){var e=b._Deferred(),bB=b._Deferred(),bA;b.extend(e,{then:function(bD,bC){e.done(bD).fail(bC);return this},always:function(){return e.done.apply(e,arguments).fail.apply(this,arguments)},fail:bB.done,rejectWith:bB.resolveWith,reject:bB.resolve,isRejected:bB.isResolved,pipe:function(bD,bC){return b.Deferred(function(bE){b.each({done:[bD,"resolve"],fail:[bC,"reject"]},function(bG,bJ){var bF=bJ[0],bI=bJ[1],bH;if(b.isFunction(bF)){e[bG](function(){bH=bF.apply(this,arguments);if(bH&&b.isFunction(bH.promise)){bH.promise().then(bE.resolve,bE.reject)}else{bE[bI](bH)}})}else{e[bG](bE[bI])}})}).promise()},promise:function(bD){if(bD==null){if(bA){return bA}bA=bD={}}var bC=a.length;while(bC--){bD[a[bC]]=e[a[bC]]}return bD}});e.done(bB.cancel).fail(e.cancel);delete e.cancel;if(bz){bz.call(e,e)}return e},when:function(bE){var bz=arguments,bA=0,bD=bz.length,bC=bD,e=bD<=1&&bE&&b.isFunction(bE.promise)?bE:b.Deferred();function bB(bF){return function(bG){bz[bF]=arguments.length>1?aL.call(arguments,0):bG;if(!(--bC)){e.resolveWith(e,aL.call(bz,0))}}}if(bD>1){for(;bA<bD;bA++){if(bz[bA]&&b.isFunction(bz[bA].promise)){bz[bA].promise().then(bB(bA),e.reject)}else{--bC}}if(!bC){e.resolveWith(e,bz)}}else{if(e!==bE){e.resolveWith(e,bD?[bE]:[])}}return e.promise()}});b.support=(function(){var bJ=aw.createElement("div"),bP=aw.documentElement,bD,bQ,bK,bB,bI,bE,bG,bA,bH,bz,bM,bC,bF,bN,bR;bJ.setAttribute("className","t");bJ.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";bD=bJ.getElementsByTagName("*");bQ=bJ.getElementsByTagName("a")[0];if(!bD||!bD.length||!bQ){return{}}bK=aw.createElement("select");bB=bK.appendChild(aw.createElement("option"));bI=bJ.getElementsByTagName("input")[0];bG={leadingWhitespace:(bJ.firstChild.nodeType===3),tbody:!bJ.getElementsByTagName("tbody").length,htmlSerialize:!!bJ.getElementsByTagName("link").length,style:/top/.test(bQ.getAttribute("style")),hrefNormalized:(bQ.getAttribute("href")==="/a"),opacity:/^0.55$/.test(bQ.style.opacity),cssFloat:!!bQ.style.cssFloat,checkOn:(bI.value==="on"),optSelected:bB.selected,getSetAttribute:bJ.className!=="t",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bI.checked=true;bG.noCloneChecked=bI.cloneNode(true).checked;bK.disabled=true;bG.optDisabled=!bB.disabled;try{delete bJ.test}catch(bO){bG.deleteExpando=false}if(!bJ.addEventListener&&bJ.attachEvent&&bJ.fireEvent){bJ.attachEvent("onclick",function bL(){bG.noCloneEvent=false;bJ.detachEvent("onclick",bL)});bJ.cloneNode(true).fireEvent("onclick")}bI=aw.createElement("input");bI.value="t";bI.setAttribute("type","radio");bG.radioValue=bI.value==="t";bI.setAttribute("checked","checked");bJ.appendChild(bI);bA=aw.createDocumentFragment();bA.appendChild(bJ.firstChild);bG.checkClone=bA.cloneNode(true).cloneNode(true).lastChild.checked;bJ.innerHTML="";bJ.style.width=bJ.style.paddingLeft="1px";bH=aw.createElement("body");bz={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};for(bN in bz){bH.style[bN]=bz[bN]}bH.appendChild(bJ);bP.insertBefore(bH,bP.firstChild);bG.appendChecked=bI.checked;bG.boxModel=bJ.offsetWidth===2;if("zoom" in bJ.style){bJ.style.display="inline";bJ.style.zoom=1;bG.inlineBlockNeedsLayout=(bJ.offsetWidth===2);bJ.style.display="";bJ.innerHTML="<div style='width:4px;'></div>";bG.shrinkWrapBlocks=(bJ.offsetWidth!==2)}bJ.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";bM=bJ.getElementsByTagName("td");bR=(bM[0].offsetHeight===0);bM[0].style.display="";bM[1].style.display="none";bG.reliableHiddenOffsets=bR&&(bM[0].offsetHeight===0);bJ.innerHTML="";if(aw.defaultView&&aw.defaultView.getComputedStyle){bE=aw.createElement("div");bE.style.width="0";bE.style.marginRight="0";bJ.appendChild(bE);bG.reliableMarginRight=(parseInt((aw.defaultView.getComputedStyle(bE,null)||{marginRight:0}).marginRight,10)||0)===0}bH.innerHTML="";bP.removeChild(bH);if(bJ.attachEvent){for(bN in {submit:1,change:1,focusin:1}){bF="on"+bN;bR=(bF in bJ);if(!bR){bJ.setAttribute(bF,"return;");bR=(typeof bJ[bF]==="function")}bG[bN+"Bubbles"]=bR}}return bG})();b.boxModel=b.support.boxModel;var aS=/^(?:\{.*\}|\[.*\])$/,aB=/([a-z])([A-Z])/g;b.extend({cache:{},uuid:0,expando:"jQuery"+(b.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?b.cache[e[b.expando]]:e[b.expando];return !!e&&!Y(e)},data:function(bB,bz,bD,bC){if(!b.acceptData(bB)){return}var bG=b.expando,bF=typeof bz==="string",bE,bH=bB.nodeType,e=bH?b.cache:bB,bA=bH?bB[b.expando]:bB[b.expando]&&b.expando;if((!bA||(bC&&bA&&!e[bA][bG]))&&bF&&bD===P){return}if(!bA){if(bH){bB[b.expando]=bA=++b.uuid}else{bA=b.expando}}if(!e[bA]){e[bA]={};if(!bH){e[bA].toJSON=b.noop}}if(typeof bz==="object"||typeof bz==="function"){if(bC){e[bA][bG]=b.extend(e[bA][bG],bz)}else{e[bA]=b.extend(e[bA],bz)}}bE=e[bA];if(bC){if(!bE[bG]){bE[bG]={}}bE=bE[bG]}if(bD!==P){bE[b.camelCase(bz)]=bD}if(bz==="events"&&!bE[bz]){return bE[bG]&&bE[bG].events}return bF?bE[b.camelCase(bz)]:bE},removeData:function(bC,bA,bD){if(!b.acceptData(bC)){return}var bF=b.expando,bG=bC.nodeType,bz=bG?b.cache:bC,bB=bG?bC[b.expando]:b.expando;if(!bz[bB]){return}if(bA){var bE=bD?bz[bB][bF]:bz[bB];if(bE){delete bE[bA];if(!Y(bE)){return}}}if(bD){delete bz[bB][bF];if(!Y(bz[bB])){return}}var e=bz[bB][bF];if(b.support.deleteExpando||bz!=bg){delete bz[bB]}else{bz[bB]=null}if(e){bz[bB]={};if(!bG){bz[bB].toJSON=b.noop}bz[bB][bF]=e}else{if(bG){if(b.support.deleteExpando){delete bC[b.expando]}else{if(bC.removeAttribute){bC.removeAttribute(b.expando)}else{bC[b.expando]=null}}}}},_data:function(bz,e,bA){return b.data(bz,e,bA,true)},acceptData:function(bz){if(bz.nodeName){var e=b.noData[bz.nodeName.toLowerCase()];if(e){return !(e===true||bz.getAttribute("classid")!==e)}}return true}});b.fn.extend({data:function(bC,bE){var bD=null;if(typeof bC==="undefined"){if(this.length){bD=b.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,bA;for(var bB=0,bz=e.length;bB<bz;bB++){bA=e[bB].name;if(bA.indexOf("data-")===0){bA=b.camelCase(bA.substring(5));a9(this[0],bA,bD[bA])}}}}return bD}else{if(typeof bC==="object"){return this.each(function(){b.data(this,bC)})}}var bF=bC.split(".");bF[1]=bF[1]?"."+bF[1]:"";if(bE===P){bD=this.triggerHandler("getData"+bF[1]+"!",[bF[0]]);if(bD===P&&this.length){bD=b.data(this[0],bC);bD=a9(this[0],bC,bD)}return bD===P&&bF[1]?this.data(bF[0]):bD}else{return this.each(function(){var bH=b(this),bG=[bF[0],bE];bH.triggerHandler("setData"+bF[1]+"!",bG);b.data(this,bC,bE);bH.triggerHandler("changeData"+bF[1]+"!",bG)})}},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function a9(bB,bA,bC){if(bC===P&&bB.nodeType===1){var bz="data-"+bA.replace(aB,"$1-$2").toLowerCase();bC=bB.getAttribute(bz);if(typeof bC==="string"){try{bC=bC==="true"?true:bC==="false"?false:bC==="null"?null:!b.isNaN(bC)?parseFloat(bC):aS.test(bC)?b.parseJSON(bC):bC}catch(bD){}b.data(bB,bA,bC)}else{bC=P}}return bC}function Y(bz){for(var e in bz){if(e!=="toJSON"){return false}}return true}function bl(bC,bB,bE){var bA=bB+"defer",bz=bB+"queue",e=bB+"mark",bD=b.data(bC,bA,P,true);if(bD&&(bE==="queue"||!b.data(bC,bz,P,true))&&(bE==="mark"||!b.data(bC,e,P,true))){setTimeout(function(){if(!b.data(bC,bz,P,true)&&!b.data(bC,e,P,true)){b.removeData(bC,bA,true);bD.resolve()}},0)}}b.extend({_mark:function(bz,e){if(bz){e=(e||"fx")+"mark";b.data(bz,e,(b.data(bz,e,P,true)||0)+1,true)}},_unmark:function(bC,bB,bz){if(bC!==true){bz=bB;bB=bC;bC=false}if(bB){bz=bz||"fx";var e=bz+"mark",bA=bC?0:((b.data(bB,e,P,true)||1)-1);if(bA){b.data(bB,e,bA,true)}else{b.removeData(bB,e,true);bl(bB,bz,"mark")}}},queue:function(bz,e,bB){if(bz){e=(e||"fx")+"queue";var bA=b.data(bz,e,P,true);if(bB){if(!bA||b.isArray(bB)){bA=b.data(bz,e,b.makeArray(bB),true)}else{bA.push(bB)}}return bA||[]}},dequeue:function(bB,bA){bA=bA||"fx";var e=b.queue(bB,bA),bz=e.shift(),bC;if(bz==="inprogress"){bz=e.shift()}if(bz){if(bA==="fx"){e.unshift("inprogress")}bz.call(bB,function(){b.dequeue(bB,bA)})}if(!e.length){b.removeData(bB,bA+"queue",true);bl(bB,bA,"queue")}}});b.fn.extend({queue:function(e,bz){if(typeof e!=="string"){bz=e;e="fx"}if(bz===P){return b.queue(this[0],e)}return this.each(function(){var bA=b.queue(this,e,bz);if(e==="fx"&&bA[0]!=="inprogress"){b.dequeue(this,e)}})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(bz,e){bz=b.fx?b.fx.speeds[bz]||bz:bz;e=e||"fx";return this.queue(e,function(){var bA=this;setTimeout(function(){b.dequeue(bA,e)},bz)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(bH,bA){if(typeof bH!=="string"){bA=bH;bH=P}bH=bH||"fx";var e=b.Deferred(),bz=this,bC=bz.length,bF=1,bD=bH+"defer",bE=bH+"queue",bG=bH+"mark",bB;function bI(){if(!(--bF)){e.resolveWith(bz,[bz])}}while(bC--){if((bB=b.data(bz[bC],bD,P,true)||(b.data(bz[bC],bE,P,true)||b.data(bz[bC],bG,P,true))&&b.data(bz[bC],bD,b._Deferred(),true))){bF++;bB.done(bI)}}bI();return e.promise()}});var aQ=/[\n\t\r]/g,ah=/\s+/,aU=/\r/g,g=/^(?:button|input)$/i,I=/^(?:button|input|object|select|textarea)$/i,n=/^a(?:rea)?$/i,ap=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,bc=/\:/,a7,a1;b.fn.extend({attr:function(e,bz){return b.access(this,e,bz,true,b.attr)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,bz){return b.access(this,e,bz,true,b.prop)},removeProp:function(e){e=b.propFix[e]||e;return this.each(function(){try{this[e]=P;delete this[e]}catch(bz){}})},addClass:function(bF){if(b.isFunction(bF)){return this.each(function(bI){var bH=b(this);bH.addClass(bF.call(this,bI,bH.attr("class")||""))})}if(bF&&typeof bF==="string"){var e=(bF||"").split(ah);for(var bB=0,bA=this.length;bB<bA;bB++){var bz=this[bB];if(bz.nodeType===1){if(!bz.className){bz.className=bF}else{var bC=" "+bz.className+" ",bE=bz.className;for(var bD=0,bG=e.length;bD<bG;bD++){if(bC.indexOf(" "+e[bD]+" ")<0){bE+=" "+e[bD]}}bz.className=b.trim(bE)}}}}return this},removeClass:function(bD){if(b.isFunction(bD)){return this.each(function(bH){var bG=b(this);bG.removeClass(bD.call(this,bH,bG.attr("class")))})}if((bD&&typeof bD==="string")||bD===P){var bE=(bD||"").split(ah);for(var bA=0,bz=this.length;bA<bz;bA++){var bC=this[bA];if(bC.nodeType===1&&bC.className){if(bD){var bB=(" "+bC.className+" ").replace(aQ," ");for(var bF=0,e=bE.length;bF<e;bF++){bB=bB.replace(" "+bE[bF]+" "," ")}bC.className=b.trim(bB)}else{bC.className=""}}}}return this},toggleClass:function(bB,bz){var bA=typeof bB,e=typeof bz==="boolean";if(b.isFunction(bB)){return this.each(function(bD){var bC=b(this);bC.toggleClass(bB.call(this,bD,bC.attr("class"),bz),bz)})}return this.each(function(){if(bA==="string"){var bE,bD=0,bC=b(this),bF=bz,bG=bB.split(ah);while((bE=bG[bD++])){bF=e?bF:!bC.hasClass(bE);bC[bF?"addClass":"removeClass"](bE)}}else{if(bA==="undefined"||bA==="boolean"){if(this.className){b._data(this,"__className__",this.className)}this.className=this.className||bB===false?"":b._data(this,"__className__")||""}}})},hasClass:function(e){var bB=" "+e+" ";for(var bA=0,bz=this.length;bA<bz;bA++){if((" "+this[bA].className+" ").replace(aQ," ").indexOf(bB)>-1){return true}}return false},val:function(bB){var e,bz,bA=this[0];if(!arguments.length){if(bA){e=b.valHooks[bA.nodeName.toLowerCase()]||b.valHooks[bA.type];if(e&&"get" in e&&(bz=e.get(bA,"value"))!==P){return bz}return(bA.value||"").replace(aU,"")}return P}var bC=b.isFunction(bB);return this.each(function(bE){var bD=b(this),bF;if(this.nodeType!==1){return}if(bC){bF=bB.call(this,bE,bD.val())}else{bF=bB}if(bF==null){bF=""}else{if(typeof bF==="number"){bF+=""}else{if(b.isArray(bF)){bF=b.map(bF,function(bG){return bG==null?"":bG+""})}}}e=b.valHooks[this.nodeName.toLowerCase()]||b.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bF,"value")===P){this.value=bF}})}});b.extend({valHooks:{option:{get:function(e){var bz=e.attributes.value;return !bz||bz.specified?e.value:e.text}},select:{get:function(e){var bE,bC=e.selectedIndex,bF=[],bG=e.options,bB=e.type==="select-one";if(bC<0){return null}for(var bz=bB?bC:0,bD=bB?bC+1:bG.length;bz<bD;bz++){var bA=bG[bz];if(bA.selected&&(b.support.optDisabled?!bA.disabled:bA.getAttribute("disabled")===null)&&(!bA.parentNode.disabled||!b.nodeName(bA.parentNode,"optgroup"))){bE=b(bA).val();if(bB){return bE}bF.push(bE)}}if(bB&&!bF.length&&bG.length){return b(bG[bC]).val()}return bF},set:function(bz,bA){var e=b.makeArray(bA);b(bz).find("option").each(function(){this.selected=b.inArray(b(this).val(),e)>=0});if(!e.length){bz.selectedIndex=-1}return e}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attrFix:{tabindex:"tabIndex"},attr:function(bE,bB,bF,bD){var bz=bE.nodeType;if(!bE||bz===3||bz===8||bz===2){return P}if(bD&&bB in b.attrFn){return b(bE)[bB](bF)}if(!("getAttribute" in bE)){return b.prop(bE,bB,bF)}var bA,e,bC=bz!==1||!b.isXMLDoc(bE);bB=bC&&b.attrFix[bB]||bB;e=b.attrHooks[bB];if(!e){if(ap.test(bB)&&(typeof bF==="boolean"||bF===P||bF.toLowerCase()===bB.toLowerCase())){e=a1}else{if(a7&&(b.nodeName(bE,"form")||bc.test(bB))){e=a7}}}if(bF!==P){if(bF===null){b.removeAttr(bE,bB);return P}else{if(e&&"set" in e&&bC&&(bA=e.set(bE,bF,bB))!==P){return bA}else{bE.setAttribute(bB,""+bF);return bF}}}else{if(e&&"get" in e&&bC){return e.get(bE,bB)}else{bA=bE.getAttribute(bB);return bA===null?P:bA}}},removeAttr:function(bz,e){var bA;if(bz.nodeType===1){e=b.attrFix[e]||e;if(b.support.getSetAttribute){bz.removeAttribute(e)}else{b.attr(bz,e,"");bz.removeAttributeNode(bz.getAttributeNode(e))}if(ap.test(e)&&(bA=b.propFix[e]||e) in bz){bz[bA]=false}}},attrHooks:{type:{set:function(e,bz){if(g.test(e.nodeName)&&e.parentNode){b.error("type property can't be changed")}else{if(!b.support.radioValue&&bz==="radio"&&b.nodeName(e,"input")){var bA=e.value;e.setAttribute("type",bz);if(bA){e.value=bA}return bz}}}},tabIndex:{get:function(bz){var e=bz.getAttributeNode("tabIndex");return e&&e.specified?parseInt(e.value,10):I.test(bz.nodeName)||n.test(bz.nodeName)&&bz.href?0:P}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(bD,bB,bE){var bz=bD.nodeType;if(!bD||bz===3||bz===8||bz===2){return P}var bA,e,bC=bz!==1||!b.isXMLDoc(bD);bB=bC&&b.propFix[bB]||bB;e=b.propHooks[bB];if(bE!==P){if(e&&"set" in e&&(bA=e.set(bD,bE,bB))!==P){return bA}else{return(bD[bB]=bE)}}else{if(e&&"get" in e&&(bA=e.get(bD,bB))!==P){return bA}else{return bD[bB]}}},propHooks:{}});a1={get:function(bz,e){return bz[b.propFix[e]||e]?e.toLowerCase():P},set:function(bz,bB,e){var bA;if(bB===false){b.removeAttr(bz,e)}else{bA=b.propFix[e]||e;if(bA in bz){bz[bA]=bB}bz.setAttribute(e,e.toLowerCase())}return e}};b.attrHooks.value={get:function(bz,e){if(a7&&b.nodeName(bz,"button")){return a7.get(bz,e)}return bz.value},set:function(bz,bA,e){if(a7&&b.nodeName(bz,"button")){return a7.set(bz,bA,e)}bz.value=bA}};if(!b.support.getSetAttribute){b.attrFix=b.propFix;a7=b.attrHooks.name=b.valHooks.button={get:function(bA,bz){var e;e=bA.getAttributeNode(bz);return e&&e.nodeValue!==""?e.nodeValue:P},set:function(bA,bB,bz){var e=bA.getAttributeNode(bz);if(e){e.nodeValue=bB;return bB}}};b.each(["width","height"],function(bz,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{set:function(bA,bB){if(bB===""){bA.setAttribute(e,"auto");return bB}}})})}if(!b.support.hrefNormalized){b.each(["href","src","width","height"],function(bz,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{get:function(bB){var bA=bB.getAttribute(e,2);return bA===null?P:bA}})})}if(!b.support.style){b.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||P},set:function(e,bz){return(e.style.cssText=""+bz)}}}if(!b.support.optSelected){b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(bz){var e=bz.parentNode;if(e){e.selectedIndex;if(e.parentNode){e.parentNode.selectedIndex}}}})}if(!b.support.checkOn){b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}})}b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,bz){if(b.isArray(bz)){return(e.checked=b.inArray(b(e).val(),bz)>=0)}}})});var aI=Object.prototype.hasOwnProperty,a3=/\.(.*)$/,bi=/^(?:textarea|input|select)$/i,S=/\./g,bm=/ /g,aH=/[^\w\s.|`]/g,L=function(e){return e.replace(aH,"\\$&")};b.event={add:function(bB,bF,bK,bD){if(bB.nodeType===3||bB.nodeType===8){return}if(bK===false){bK=bo}else{if(!bK){return}}var bz,bJ;if(bK.handler){bz=bK;bK=bz.handler}if(!bK.guid){bK.guid=b.guid++}var bG=b._data(bB);if(!bG){return}var bL=bG.events,bE=bG.handle;if(!bL){bG.events=bL={}}if(!bE){bG.handle=bE=function(bM){return typeof b!=="undefined"&&(!bM||b.event.triggered!==bM.type)?b.event.handle.apply(bE.elem,arguments):P}}bE.elem=bB;bF=bF.split(" ");var bI,bC=0,e;while((bI=bF[bC++])){bJ=bz?b.extend({},bz):{handler:bK,data:bD};if(bI.indexOf(".")>-1){e=bI.split(".");bI=e.shift();bJ.namespace=e.slice(0).sort().join(".")}else{e=[];bJ.namespace=""}bJ.type=bI;if(!bJ.guid){bJ.guid=bK.guid}var bA=bL[bI],bH=b.event.special[bI]||{};if(!bA){bA=bL[bI]=[];if(!bH.setup||bH.setup.call(bB,bD,e,bE)===false){if(bB.addEventListener){bB.addEventListener(bI,bE,false)}else{if(bB.attachEvent){bB.attachEvent("on"+bI,bE)}}}}if(bH.add){bH.add.call(bB,bJ);if(!bJ.handler.guid){bJ.handler.guid=bK.guid}}bA.push(bJ);b.event.global[bI]=true}bB=null},global:{},remove:function(bN,bI,bA,bE){if(bN.nodeType===3||bN.nodeType===8){return}if(bA===false){bA=bo}var bQ,bD,bF,bK,bL=0,bB,bG,bJ,bC,bH,e,bP,bM=b.hasData(bN)&&b._data(bN),bz=bM&&bM.events;if(!bM||!bz){return}if(bI&&bI.type){bA=bI.handler;bI=bI.type}if(!bI||typeof bI==="string"&&bI.charAt(0)==="."){bI=bI||"";for(bD in bz){b.event.remove(bN,bD+bI)}return}bI=bI.split(" ");while((bD=bI[bL++])){bP=bD;e=null;bB=bD.indexOf(".")<0;bG=[];if(!bB){bG=bD.split(".");bD=bG.shift();bJ=new RegExp("(^|\\.)"+b.map(bG.slice(0).sort(),L).join("\\.(?:.*\\.)?")+"(\\.|$)")}bH=bz[bD];if(!bH){continue}if(!bA){for(bK=0;bK<bH.length;bK++){e=bH[bK];if(bB||bJ.test(e.namespace)){b.event.remove(bN,bP,e.handler,bK);bH.splice(bK--,1)}}continue}bC=b.event.special[bD]||{};for(bK=bE||0;bK<bH.length;bK++){e=bH[bK];if(bA.guid===e.guid){if(bB||bJ.test(e.namespace)){if(bE==null){bH.splice(bK--,1)}if(bC.remove){bC.remove.call(bN,e)}}if(bE!=null){break}}}if(bH.length===0||bE!=null&&bH.length===1){if(!bC.teardown||bC.teardown.call(bN,bG)===false){b.removeEvent(bN,bD,bM.handle)}bQ=null;delete bz[bD]}}if(b.isEmptyObject(bz)){var bO=bM.handle;if(bO){bO.elem=null}delete bM.events;delete bM.handle;if(b.isEmptyObject(bM)){b.removeData(bN,P,true)}}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(e,bF,bD,bK){var bI=e.type||e,bA=[],bz;if(bI.indexOf("!")>=0){bI=bI.slice(0,-1);bz=true}if(bI.indexOf(".")>=0){bA=bI.split(".");bI=bA.shift();bA.sort()}if((!bD||b.event.customEvent[bI])&&!b.event.global[bI]){return}e=typeof e==="object"?e[b.expando]?e:new b.Event(bI,e):new b.Event(bI);e.type=bI;e.exclusive=bz;e.namespace=bA.join(".");e.namespace_re=new RegExp("(^|\\.)"+bA.join("\\.(?:.*\\.)?")+"(\\.|$)");if(bK||!bD){e.preventDefault();e.stopPropagation()}if(!bD){b.each(b.cache,function(){var bM=b.expando,bL=this[bM];if(bL&&bL.events&&bL.events[bI]){b.event.trigger(e,bF,bL.handle.elem)}});return}if(bD.nodeType===3||bD.nodeType===8){return}e.result=P;e.target=bD;bF=bF?b.makeArray(bF):[];bF.unshift(e);var bJ=bD,bB=bI.indexOf(":")<0?"on"+bI:"";do{var bG=b._data(bJ,"handle");e.currentTarget=bJ;if(bG){bG.apply(bJ,bF)}if(bB&&b.acceptData(bJ)&&bJ[bB]&&bJ[bB].apply(bJ,bF)===false){e.result=false;e.preventDefault()}bJ=bJ.parentNode||bJ.ownerDocument||bJ===e.target.ownerDocument&&bg}while(bJ&&!e.isPropagationStopped());if(!e.isDefaultPrevented()){var bC,bH=b.event.special[bI]||{};if((!bH._default||bH._default.call(bD.ownerDocument,e)===false)&&!(bI==="click"&&b.nodeName(bD,"a"))&&b.acceptData(bD)){try{if(bB&&bD[bI]){bC=bD[bB];if(bC){bD[bB]=null}b.event.triggered=bI;bD[bI]()}}catch(bE){}if(bC){bD[bB]=bC}b.event.triggered=P}}return e.result},handle:function(bF){bF=b.event.fix(bF||bg.event);var bz=((b._data(this,"events")||{})[bF.type]||[]).slice(0),bE=!bF.exclusive&&!bF.namespace,bC=Array.prototype.slice.call(arguments,0);bC[0]=bF;bF.currentTarget=this;for(var bB=0,e=bz.length;bB<e;bB++){var bD=bz[bB];if(bE||bF.namespace_re.test(bD.namespace)){bF.handler=bD.handler;bF.data=bD.data;bF.handleObj=bD;var bA=bD.handler.apply(this,bC);if(bA!==P){bF.result=bA;if(bA===false){bF.preventDefault();bF.stopPropagation()}}if(bF.isImmediatePropagationStopped()){break}}}return bF.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(bC){if(bC[b.expando]){return bC}var bz=bC;bC=b.Event(bz);for(var bA=this.props.length,bE;bA;){bE=this.props[--bA];bC[bE]=bz[bE]}if(!bC.target){bC.target=bC.srcElement||aw}if(bC.target.nodeType===3){bC.target=bC.target.parentNode}if(!bC.relatedTarget&&bC.fromElement){bC.relatedTarget=bC.fromElement===bC.target?bC.toElement:bC.fromElement}if(bC.pageX==null&&bC.clientX!=null){var bB=bC.target.ownerDocument||aw,bD=bB.documentElement,e=bB.body;bC.pageX=bC.clientX+(bD&&bD.scrollLeft||e&&e.scrollLeft||0)-(bD&&bD.clientLeft||e&&e.clientLeft||0);bC.pageY=bC.clientY+(bD&&bD.scrollTop||e&&e.scrollTop||0)-(bD&&bD.clientTop||e&&e.clientTop||0)}if(bC.which==null&&(bC.charCode!=null||bC.keyCode!=null)){bC.which=bC.charCode!=null?bC.charCode:bC.keyCode}if(!bC.metaKey&&bC.ctrlKey){bC.metaKey=bC.ctrlKey}if(!bC.which&&bC.button!==P){bC.which=(bC.button&1?1:(bC.button&2?3:(bC.button&4?2:0)))}return bC},guid:100000000,proxy:b.proxy,special:{ready:{setup:b.bindReady,teardown:b.noop},live:{add:function(e){b.event.add(this,t(e.origType,e.selector),b.extend({},e,{handler:an,guid:e.handler.guid}))},remove:function(e){b.event.remove(this,t(e.origType,e.selector),e)}},beforeunload:{setup:function(bA,bz,e){if(b.isWindow(this)){this.onbeforeunload=e}},teardown:function(bz,e){if(this.onbeforeunload===e){this.onbeforeunload=null}}}}};b.removeEvent=aw.removeEventListener?function(bz,e,bA){if(bz.removeEventListener){bz.removeEventListener(e,bA,false)}}:function(bz,e,bA){if(bz.detachEvent){bz.detachEvent("on"+e,bA)}};b.Event=function(bz,e){if(!this.preventDefault){return new b.Event(bz,e)}if(bz&&bz.type){this.originalEvent=bz;this.type=bz.type;this.isDefaultPrevented=(bz.defaultPrevented||bz.returnValue===false||bz.getPreventDefault&&bz.getPreventDefault())?k:bo}else{this.type=bz}if(e){b.extend(this,e)}this.timeStamp=b.now();this[b.expando]=true};function bo(){return false}function k(){return true}b.Event.prototype={preventDefault:function(){this.isDefaultPrevented=k;var bz=this.originalEvent;if(!bz){return}if(bz.preventDefault){bz.preventDefault()}else{bz.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=k;var bz=this.originalEvent;if(!bz){return}if(bz.stopPropagation){bz.stopPropagation()}bz.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=k;this.stopPropagation()},isDefaultPrevented:bo,isPropagationStopped:bo,isImmediatePropagationStopped:bo};var ag=function(bA){var bz=bA.relatedTarget;bA.type=bA.data;try{if(bz&&bz!==aw&&!bz.parentNode){return}while(bz&&bz!==this){bz=bz.parentNode}if(bz!==this){b.event.handle.apply(this,arguments)}}catch(bB){}},aX=function(e){e.type=e.data;b.event.handle.apply(this,arguments)};b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(bz,e){b.event.special[bz]={setup:function(bA){b.event.add(this,e,bA&&bA.selector?aX:ag,bz)},teardown:function(bA){b.event.remove(this,e,bA&&bA.selector?aX:ag)}}});if(!b.support.submitBubbles){b.event.special.submit={setup:function(bz,e){if(!b.nodeName(this,"form")){b.event.add(this,"click.specialSubmit",function(bC){var bB=bC.target,bA=bB.type;if((bA==="submit"||bA==="image")&&b(bB).closest("form").length){a0("submit",this,arguments)}});b.event.add(this,"keypress.specialSubmit",function(bC){var bB=bC.target,bA=bB.type;if((bA==="text"||bA==="password")&&b(bB).closest("form").length&&bC.keyCode===13){a0("submit",this,arguments)}})}else{return false}},teardown:function(e){b.event.remove(this,".specialSubmit")}}}if(!b.support.changeBubbles){var br,m=function(bz){var e=bz.type,bA=bz.value;if(e==="radio"||e==="checkbox"){bA=bz.checked}else{if(e==="select-multiple"){bA=bz.selectedIndex>-1?b.map(bz.options,function(bB){return bB.selected}).join("-"):""}else{if(b.nodeName(bz,"select")){bA=bz.selectedIndex}}}return bA},ae=function ae(bB){var bz=bB.target,bA,bC;if(!bi.test(bz.nodeName)||bz.readOnly){return}bA=b._data(bz,"_change_data");bC=m(bz);if(bB.type!=="focusout"||bz.type!=="radio"){b._data(bz,"_change_data",bC)}if(bA===P||bC===bA){return}if(bA!=null||bC){bB.type="change";bB.liveFired=P;b.event.trigger(bB,arguments[1],bz)}};b.event.special.change={filters:{focusout:ae,beforedeactivate:ae,click:function(bB){var bA=bB.target,bz=b.nodeName(bA,"input")?bA.type:"";if(bz==="radio"||bz==="checkbox"||b.nodeName(bA,"select")){ae.call(this,bB)}},keydown:function(bB){var bA=bB.target,bz=b.nodeName(bA,"input")?bA.type:"";if((bB.keyCode===13&&!b.nodeName(bA,"textarea"))||(bB.keyCode===32&&(bz==="checkbox"||bz==="radio"))||bz==="select-multiple"){ae.call(this,bB)}},beforeactivate:function(bA){var bz=bA.target;b._data(bz,"_change_data",m(bz))}},setup:function(bA,bz){if(this.type==="file"){return false}for(var e in br){b.event.add(this,e+".specialChange",br[e])}return bi.test(this.nodeName)},teardown:function(e){b.event.remove(this,".specialChange");return bi.test(this.nodeName)}};br=b.event.special.change.filters;br.focus=br.beforeactivate}function a0(bz,bB,e){var bA=b.extend({},e[0]);bA.type=bz;bA.originalEvent={};bA.liveFired=P;b.event.handle.call(bB,bA);if(bA.isDefaultPrevented()){e[0].preventDefault()}}if(!b.support.focusinBubbles){b.each({focus:"focusin",blur:"focusout"},function(bB,e){var bz=0;b.event.special[e]={setup:function(){if(bz++===0){aw.addEventListener(bB,bA,true)}},teardown:function(){if(--bz===0){aw.removeEventListener(bB,bA,true)}}};function bA(bC){var bD=b.event.fix(bC);bD.type=e;bD.originalEvent={};b.event.trigger(bD,null,bD.target);if(bD.isDefaultPrevented()){bC.preventDefault()}}})}b.each(["bind","one"],function(bz,e){b.fn[e]=function(bF,bG,bE){var bD;if(typeof bF==="object"){for(var bC in bF){this[e](bC,bG,bF[bC],bE)}return this}if(arguments.length===2||bG===false){bE=bG;bG=P}if(e==="one"){bD=function(bH){b(this).unbind(bH,bD);return bE.apply(this,arguments)};bD.guid=bE.guid||b.guid++}else{bD=bE}if(bF==="unload"&&e!=="one"){this.one(bF,bG,bE)}else{for(var bB=0,bA=this.length;bB<bA;bB++){b.event.add(this[bB],bF,bD,bG)}}return this}});b.fn.extend({unbind:function(bC,bB){if(typeof bC==="object"&&!bC.preventDefault){for(var bA in bC){this.unbind(bA,bC[bA])}}else{for(var bz=0,e=this.length;bz<e;bz++){b.event.remove(this[bz],bC,bB)}}return this},delegate:function(e,bz,bB,bA){return this.live(bz,bB,bA,e)},undelegate:function(e,bz,bA){if(arguments.length===0){return this.unbind("live")}else{return this.die(bz,null,bA,e)}},trigger:function(e,bz){return this.each(function(){b.event.trigger(e,bz,this)})},triggerHandler:function(e,bz){if(this[0]){return b.event.trigger(e,bz,this[0],true)}},toggle:function(bB){var bz=arguments,e=bB.guid||b.guid++,bA=0,bC=function(bD){var bE=(b.data(this,"lastToggle"+bB.guid)||0)%bA;b.data(this,"lastToggle"+bB.guid,bE+1);bD.preventDefault();return bz[bE].apply(this,arguments)||false};bC.guid=e;while(bA<bz.length){bz[bA++].guid=e}return this.click(bC)},hover:function(e,bz){return this.mouseenter(e).mouseleave(bz||e)}});var aV={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};b.each(["live","die"],function(bz,e){b.fn[e]=function(bJ,bG,bL,bC){var bK,bH=0,bI,bB,bN,bE=bC||this.selector,bA=bC?this:b(this.context);if(typeof bJ==="object"&&!bJ.preventDefault){for(var bM in bJ){bA[e](bM,bG,bJ[bM],bE)}return this}if(e==="die"&&!bJ&&bC&&bC.charAt(0)==="."){bA.unbind(bC);return this}if(bG===false||b.isFunction(bG)){bL=bG||bo;bG=P}bJ=(bJ||"").split(" ");while((bK=bJ[bH++])!=null){bI=a3.exec(bK);bB="";if(bI){bB=bI[0];bK=bK.replace(a3,"")}if(bK==="hover"){bJ.push("mouseenter"+bB,"mouseleave"+bB);continue}bN=bK;if(aV[bK]){bJ.push(aV[bK]+bB);bK=bK+bB}else{bK=(aV[bK]||bK)+bB}if(e==="live"){for(var bF=0,bD=bA.length;bF<bD;bF++){b.event.add(bA[bF],"live."+t(bK,bE),{data:bG,selector:bE,handler:bL,origType:bK,origHandler:bL,preType:bN})}}else{bA.unbind("live."+t(bK,bE),bL)}}return this}});function an(bJ){var bG,bB,bP,bD,e,bL,bI,bK,bH,bO,bF,bE,bN,bM=[],bC=[],bz=b._data(this,"events");if(bJ.liveFired===this||!bz||!bz.live||bJ.target.disabled||bJ.button&&bJ.type==="click"){return}if(bJ.namespace){bE=new RegExp("(^|\\.)"+bJ.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")}bJ.liveFired=this;var bA=bz.live.slice(0);for(bI=0;bI<bA.length;bI++){e=bA[bI];if(e.origType.replace(a3,"")===bJ.type){bC.push(e.selector)}else{bA.splice(bI--,1)}}bD=b(bJ.target).closest(bC,bJ.currentTarget);for(bK=0,bH=bD.length;bK<bH;bK++){bF=bD[bK];for(bI=0;bI<bA.length;bI++){e=bA[bI];if(bF.selector===e.selector&&(!bE||bE.test(e.namespace))&&!bF.elem.disabled){bL=bF.elem;bP=null;if(e.preType==="mouseenter"||e.preType==="mouseleave"){bJ.type=e.preType;bP=b(bJ.relatedTarget).closest(e.selector)[0];if(bP&&b.contains(bL,bP)){bP=bL}}if(!bP||bP!==bL){bM.push({elem:bL,handleObj:e,level:bF.level})}}}}for(bK=0,bH=bM.length;bK<bH;bK++){bD=bM[bK];if(bB&&bD.level>bB){break}bJ.currentTarget=bD.elem;bJ.data=bD.handleObj.data;bJ.handleObj=bD.handleObj;bN=bD.handleObj.origHandler.apply(bD.elem,arguments);if(bN===false||bJ.isPropagationStopped()){bB=bD.level;if(bN===false){bG=false}if(bJ.isImmediatePropagationStopped()){break}}}return bG}function t(bz,e){return(bz&&bz!=="*"?bz+".":"")+e.replace(S,"`").replace(bm,"&")}b.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(bz,e){b.fn[e]=function(bB,bA){if(bA==null){bA=bB;bB=null}return arguments.length>0?this.bind(e,bB,bA):this.trigger(e)};if(b.attrFn){b.attrFn[e]=true}});
/*!
 * Sizzle CSS Selector Engine
 *  Copyright 2011, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var bJ=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bK=0,bN=Object.prototype.toString,bE=false,bD=true,bL=/\\/g,bR=/\W/;[0,0].sort(function(){bD=false;return 0});var bB=function(bW,e,bZ,b0){bZ=bZ||[];e=e||aw;var b2=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!bW||typeof bW!=="string"){return bZ}var bT,b4,b7,bS,b3,b6,b5,bY,bV=true,bU=bB.isXML(e),bX=[],b1=bW;do{bJ.exec("");bT=bJ.exec(b1);if(bT){b1=bT[3];bX.push(bT[1]);if(bT[2]){bS=bT[3];break}}}while(bT);if(bX.length>1&&bF.exec(bW)){if(bX.length===2&&bG.relative[bX[0]]){b4=bO(bX[0]+bX[1],e)}else{b4=bG.relative[bX[0]]?[e]:bB(bX.shift(),e);while(bX.length){bW=bX.shift();if(bG.relative[bW]){bW+=bX.shift()}b4=bO(bW,b4)}}}else{if(!b0&&bX.length>1&&e.nodeType===9&&!bU&&bG.match.ID.test(bX[0])&&!bG.match.ID.test(bX[bX.length-1])){b3=bB.find(bX.shift(),e,bU);e=b3.expr?bB.filter(b3.expr,b3.set)[0]:b3.set[0]}if(e){b3=b0?{expr:bX.pop(),set:bH(b0)}:bB.find(bX.pop(),bX.length===1&&(bX[0]==="~"||bX[0]==="+")&&e.parentNode?e.parentNode:e,bU);b4=b3.expr?bB.filter(b3.expr,b3.set):b3.set;if(bX.length>0){b7=bH(b4)}else{bV=false}while(bX.length){b6=bX.pop();b5=b6;if(!bG.relative[b6]){b6=""}else{b5=bX.pop()}if(b5==null){b5=e}bG.relative[b6](b7,b5,bU)}}else{b7=bX=[]}}if(!b7){b7=b4}if(!b7){bB.error(b6||bW)}if(bN.call(b7)==="[object Array]"){if(!bV){bZ.push.apply(bZ,b7)}else{if(e&&e.nodeType===1){for(bY=0;b7[bY]!=null;bY++){if(b7[bY]&&(b7[bY]===true||b7[bY].nodeType===1&&bB.contains(e,b7[bY]))){bZ.push(b4[bY])}}}else{for(bY=0;b7[bY]!=null;bY++){if(b7[bY]&&b7[bY].nodeType===1){bZ.push(b4[bY])}}}}}else{bH(b7,bZ)}if(bS){bB(bS,b2,bZ,b0);bB.uniqueSort(bZ)}return bZ};bB.uniqueSort=function(bS){if(bM){bE=bD;bS.sort(bM);if(bE){for(var e=1;e<bS.length;e++){if(bS[e]===bS[e-1]){bS.splice(e--,1)}}}}return bS};bB.matches=function(e,bS){return bB(e,null,null,bS)};bB.matchesSelector=function(e,bS){return bB(bS,null,null,[e]).length>0};bB.find=function(bY,e,bZ){var bX;if(!bY){return[]}for(var bU=0,bT=bG.order.length;bU<bT;bU++){var bV,bW=bG.order[bU];if((bV=bG.leftMatch[bW].exec(bY))){var bS=bV[1];bV.splice(1,1);if(bS.substr(bS.length-1)!=="\\"){bV[1]=(bV[1]||"").replace(bL,"");bX=bG.find[bW](bV,e,bZ);if(bX!=null){bY=bY.replace(bG.match[bW],"");break}}}}if(!bX){bX=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName("*"):[]}return{set:bX,expr:bY}};bB.filter=function(b2,b1,b5,bV){var bX,e,bT=b2,b7=[],bZ=b1,bY=b1&&b1[0]&&bB.isXML(b1[0]);while(b2&&b1.length){for(var b0 in bG.filter){if((bX=bG.leftMatch[b0].exec(b2))!=null&&bX[2]){var b6,b4,bS=bG.filter[b0],bU=bX[1];e=false;bX.splice(1,1);if(bU.substr(bU.length-1)==="\\"){continue}if(bZ===b7){b7=[]}if(bG.preFilter[b0]){bX=bG.preFilter[b0](bX,bZ,b5,b7,bV,bY);if(!bX){e=b6=true}else{if(bX===true){continue}}}if(bX){for(var bW=0;(b4=bZ[bW])!=null;bW++){if(b4){b6=bS(b4,bX,bW,bZ);var b3=bV^!!b6;if(b5&&b6!=null){if(b3){e=true}else{bZ[bW]=false}}else{if(b3){b7.push(b4);e=true}}}}}if(b6!==P){if(!b5){bZ=b7}b2=b2.replace(bG.match[b0],"");if(!e){return[]}break}}}if(b2===bT){if(e==null){bB.error(b2)}else{break}}bT=b2}return bZ};bB.error=function(e){throw"Syntax error, unrecognized expression: "+e};var bG=bB.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(bX,bS){var bU=typeof bS==="string",bW=bU&&!bR.test(bS),bY=bU&&!bW;if(bW){bS=bS.toLowerCase()}for(var bT=0,e=bX.length,bV;bT<e;bT++){if((bV=bX[bT])){while((bV=bV.previousSibling)&&bV.nodeType!==1){}bX[bT]=bY||bV&&bV.nodeName.toLowerCase()===bS?bV||false:bV===bS}}if(bY){bB.filter(bS,bX,true)}},">":function(bX,bS){var bW,bV=typeof bS==="string",bT=0,e=bX.length;if(bV&&!bR.test(bS)){bS=bS.toLowerCase();for(;bT<e;bT++){bW=bX[bT];if(bW){var bU=bW.parentNode;bX[bT]=bU.nodeName.toLowerCase()===bS?bU:false}}}else{for(;bT<e;bT++){bW=bX[bT];if(bW){bX[bT]=bV?bW.parentNode:bW.parentNode===bS}}if(bV){bB.filter(bS,bX,true)}}},"":function(bU,bS,bW){var bV,bT=bK++,e=bP;if(typeof bS==="string"&&!bR.test(bS)){bS=bS.toLowerCase();bV=bS;e=bz}e("parentNode",bS,bT,bU,bV,bW)},"~":function(bU,bS,bW){var bV,bT=bK++,e=bP;if(typeof bS==="string"&&!bR.test(bS)){bS=bS.toLowerCase();bV=bS;e=bz}e("previousSibling",bS,bT,bU,bV,bW)}},find:{ID:function(bS,bT,bU){if(typeof bT.getElementById!=="undefined"&&!bU){var e=bT.getElementById(bS[1]);return e&&e.parentNode?[e]:[]}},NAME:function(bT,bW){if(typeof bW.getElementsByName!=="undefined"){var bS=[],bV=bW.getElementsByName(bT[1]);for(var bU=0,e=bV.length;bU<e;bU++){if(bV[bU].getAttribute("name")===bT[1]){bS.push(bV[bU])}}return bS.length===0?null:bS}},TAG:function(e,bS){if(typeof bS.getElementsByTagName!=="undefined"){return bS.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(bU,bS,bT,e,bX,bY){bU=" "+bU[1].replace(bL,"")+" ";if(bY){return bU}for(var bV=0,bW;(bW=bS[bV])!=null;bV++){if(bW){if(bX^(bW.className&&(" "+bW.className+" ").replace(/[\t\n\r]/g," ").indexOf(bU)>=0)){if(!bT){e.push(bW)}}else{if(bT){bS[bV]=false}}}}return false},ID:function(e){return e[1].replace(bL,"")},TAG:function(bS,e){return bS[1].replace(bL,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){bB.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var bS=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bS[1]+(bS[2]||1))-0;e[3]=bS[3]-0}else{if(e[2]){bB.error(e[0])}}e[0]=bK++;return e},ATTR:function(bV,bS,bT,e,bW,bX){var bU=bV[1]=bV[1].replace(bL,"");if(!bX&&bG.attrMap[bU]){bV[1]=bG.attrMap[bU]}bV[4]=(bV[4]||bV[5]||"").replace(bL,"");if(bV[2]==="~="){bV[4]=" "+bV[4]+" "}return bV},PSEUDO:function(bV,bS,bT,e,bW){if(bV[1]==="not"){if((bJ.exec(bV[3])||"").length>1||/^\w/.test(bV[3])){bV[3]=bB(bV[3],null,null,bS)}else{var bU=bB.filter(bV[3],bS,bT,true^bW);if(!bT){e.push.apply(e,bU)}return false}}else{if(bG.match.POS.test(bV[0])||bG.match.CHILD.test(bV[0])){return true}}return bV},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(bT,bS,e){return !!bB(e[3],bT).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(bT){var e=bT.getAttribute("type"),bS=bT.type;return bT.nodeName.toLowerCase()==="input"&&"text"===bS&&(e===bS||e===null)},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type},submit:function(bS){var e=bS.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===bS.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(bS){var e=bS.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===bS.type},button:function(bS){var e=bS.nodeName.toLowerCase();return e==="input"&&"button"===bS.type||e==="button"},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(bS,e){return e===0},last:function(bT,bS,e,bU){return bS===bU.length-1},even:function(bS,e){return e%2===0},odd:function(bS,e){return e%2===1},lt:function(bT,bS,e){return bS<e[3]-0},gt:function(bT,bS,e){return bS>e[3]-0},nth:function(bT,bS,e){return e[3]-0===bS},eq:function(bT,bS,e){return e[3]-0===bS}},filter:{PSEUDO:function(bT,bY,bX,bZ){var e=bY[1],bS=bG.filters[e];if(bS){return bS(bT,bX,bY,bZ)}else{if(e==="contains"){return(bT.textContent||bT.innerText||bB.getText([bT])||"").indexOf(bY[3])>=0}else{if(e==="not"){var bU=bY[3];for(var bW=0,bV=bU.length;bW<bV;bW++){if(bU[bW]===bT){return false}}return true}else{bB.error(e)}}}},CHILD:function(e,bU){var bX=bU[1],bS=e;switch(bX){case"only":case"first":while((bS=bS.previousSibling)){if(bS.nodeType===1){return false}}if(bX==="first"){return true}bS=e;case"last":while((bS=bS.nextSibling)){if(bS.nodeType===1){return false}}return true;case"nth":var bT=bU[2],b0=bU[3];if(bT===1&&b0===0){return true}var bW=bU[0],bZ=e.parentNode;if(bZ&&(bZ.sizcache!==bW||!e.nodeIndex)){var bV=0;for(bS=bZ.firstChild;bS;bS=bS.nextSibling){if(bS.nodeType===1){bS.nodeIndex=++bV}}bZ.sizcache=bW}var bY=e.nodeIndex-b0;if(bT===0){return bY===0}else{return(bY%bT===0&&bY/bT>=0)}}},ID:function(bS,e){return bS.nodeType===1&&bS.getAttribute("id")===e},TAG:function(bS,e){return(e==="*"&&bS.nodeType===1)||bS.nodeName.toLowerCase()===e},CLASS:function(bS,e){return(" "+(bS.className||bS.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(bW,bU){var bT=bU[1],e=bG.attrHandle[bT]?bG.attrHandle[bT](bW):bW[bT]!=null?bW[bT]:bW.getAttribute(bT),bX=e+"",bV=bU[2],bS=bU[4];return e==null?bV==="!=":bV==="="?bX===bS:bV==="*="?bX.indexOf(bS)>=0:bV==="~="?(" "+bX+" ").indexOf(bS)>=0:!bS?bX&&e!==false:bV==="!="?bX!==bS:bV==="^="?bX.indexOf(bS)===0:bV==="$="?bX.substr(bX.length-bS.length)===bS:bV==="|="?bX===bS||bX.substr(0,bS.length+1)===bS+"-":false},POS:function(bV,bS,bT,bW){var e=bS[2],bU=bG.setFilters[e];if(bU){return bU(bV,bT,bS,bW)}}}};var bF=bG.match.POS,bA=function(bS,e){return"\\"+(e-0+1)};for(var bC in bG.match){bG.match[bC]=new RegExp(bG.match[bC].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bG.leftMatch[bC]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bG.match[bC].source.replace(/\\(\d+)/g,bA))}var bH=function(bS,e){bS=Array.prototype.slice.call(bS,0);if(e){e.push.apply(e,bS);return e}return bS};try{Array.prototype.slice.call(aw.documentElement.childNodes,0)[0].nodeType}catch(bQ){bH=function(bV,bU){var bT=0,bS=bU||[];if(bN.call(bV)==="[object Array]"){Array.prototype.push.apply(bS,bV)}else{if(typeof bV.length==="number"){for(var e=bV.length;bT<e;bT++){bS.push(bV[bT])}}else{for(;bV[bT];bT++){bS.push(bV[bT])}}}return bS}}var bM,bI;if(aw.documentElement.compareDocumentPosition){bM=function(bS,e){if(bS===e){bE=true;return 0}if(!bS.compareDocumentPosition||!e.compareDocumentPosition){return bS.compareDocumentPosition?-1:1}return bS.compareDocumentPosition(e)&4?-1:1}}else{bM=function(bZ,bY){if(bZ===bY){bE=true;return 0}else{if(bZ.sourceIndex&&bY.sourceIndex){return bZ.sourceIndex-bY.sourceIndex}}var bW,bS,bT=[],e=[],bV=bZ.parentNode,bX=bY.parentNode,b0=bV;if(bV===bX){return bI(bZ,bY)}else{if(!bV){return -1}else{if(!bX){return 1}}}while(b0){bT.unshift(b0);b0=b0.parentNode}b0=bX;while(b0){e.unshift(b0);b0=b0.parentNode}bW=bT.length;bS=e.length;for(var bU=0;bU<bW&&bU<bS;bU++){if(bT[bU]!==e[bU]){return bI(bT[bU],e[bU])}}return bU===bW?bI(bZ,e[bU],-1):bI(bT[bU],bY,1)};bI=function(bS,e,bT){if(bS===e){return bT}var bU=bS.nextSibling;while(bU){if(bU===e){return -1}bU=bU.nextSibling}return 1}}bB.getText=function(e){var bS="",bU;for(var bT=0;e[bT];bT++){bU=e[bT];if(bU.nodeType===3||bU.nodeType===4){bS+=bU.nodeValue}else{if(bU.nodeType!==8){bS+=bB.getText(bU.childNodes)}}}return bS};(function(){var bS=aw.createElement("div"),bT="script"+(new Date()).getTime(),e=aw.documentElement;bS.innerHTML="<a name='"+bT+"'/>";e.insertBefore(bS,e.firstChild);if(aw.getElementById(bT)){bG.find.ID=function(bV,bW,bX){if(typeof bW.getElementById!=="undefined"&&!bX){var bU=bW.getElementById(bV[1]);return bU?bU.id===bV[1]||typeof bU.getAttributeNode!=="undefined"&&bU.getAttributeNode("id").nodeValue===bV[1]?[bU]:P:[]}};bG.filter.ID=function(bW,bU){var bV=typeof bW.getAttributeNode!=="undefined"&&bW.getAttributeNode("id");return bW.nodeType===1&&bV&&bV.nodeValue===bU}}e.removeChild(bS);e=bS=null})();(function(){var e=aw.createElement("div");e.appendChild(aw.createComment(""));if(e.getElementsByTagName("*").length>0){bG.find.TAG=function(bS,bW){var bV=bW.getElementsByTagName(bS[1]);if(bS[1]==="*"){var bU=[];for(var bT=0;bV[bT];bT++){if(bV[bT].nodeType===1){bU.push(bV[bT])}}bV=bU}return bV}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bG.attrHandle.href=function(bS){return bS.getAttribute("href",2)}}e=null})();if(aw.querySelectorAll){(function(){var e=bB,bU=aw.createElement("div"),bT="__sizzle__";bU.innerHTML="<p class='TEST'></p>";if(bU.querySelectorAll&&bU.querySelectorAll(".TEST").length===0){return}bB=function(b5,bW,b0,b4){bW=bW||aw;if(!b4&&!bB.isXML(bW)){var b3=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b5);if(b3&&(bW.nodeType===1||bW.nodeType===9)){if(b3[1]){return bH(bW.getElementsByTagName(b5),b0)}else{if(b3[2]&&bG.find.CLASS&&bW.getElementsByClassName){return bH(bW.getElementsByClassName(b3[2]),b0)}}}if(bW.nodeType===9){if(b5==="body"&&bW.body){return bH([bW.body],b0)}else{if(b3&&b3[3]){var bZ=bW.getElementById(b3[3]);if(bZ&&bZ.parentNode){if(bZ.id===b3[3]){return bH([bZ],b0)}}else{return bH([],b0)}}}try{return bH(bW.querySelectorAll(b5),b0)}catch(b1){}}else{if(bW.nodeType===1&&bW.nodeName.toLowerCase()!=="object"){var bX=bW,bY=bW.getAttribute("id"),bV=bY||bT,b7=bW.parentNode,b6=/^\s*[+~]/.test(b5);if(!bY){bW.setAttribute("id",bV)}else{bV=bV.replace(/'/g,"\\$&")}if(b6&&b7){bW=bW.parentNode}try{if(!b6||b7){return bH(bW.querySelectorAll("[id='"+bV+"'] "+b5),b0)}}catch(b2){}finally{if(!bY){bX.removeAttribute("id")}}}}}return e(b5,bW,b0,b4)};for(var bS in e){bB[bS]=e[bS]}bU=null})()}(function(){var e=aw.documentElement,bT=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(bT){var bV=!bT.call(aw.createElement("div"),"div"),bS=false;try{bT.call(aw.documentElement,"[test!='']:sizzle")}catch(bU){bS=true}bB.matchesSelector=function(bX,bZ){bZ=bZ.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!bB.isXML(bX)){try{if(bS||!bG.match.PSEUDO.test(bZ)&&!/!=/.test(bZ)){var bW=bT.call(bX,bZ);if(bW||!bV||bX.document&&bX.document.nodeType!==11){return bW}}}catch(bY){}}return bB(bZ,null,null,[bX]).length>0}}})();(function(){var e=aw.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}bG.order.splice(1,0,"CLASS");bG.find.CLASS=function(bS,bT,bU){if(typeof bT.getElementsByClassName!=="undefined"&&!bU){return bT.getElementsByClassName(bS[1])}};e=null})();function bz(bS,bX,bW,b0,bY,bZ){for(var bU=0,bT=b0.length;bU<bT;bU++){var e=b0[bU];if(e){var bV=false;e=e[bS];while(e){if(e.sizcache===bW){bV=b0[e.sizset];break}if(e.nodeType===1&&!bZ){e.sizcache=bW;e.sizset=bU}if(e.nodeName.toLowerCase()===bX){bV=e;break}e=e[bS]}b0[bU]=bV}}}function bP(bS,bX,bW,b0,bY,bZ){for(var bU=0,bT=b0.length;bU<bT;bU++){var e=b0[bU];if(e){var bV=false;e=e[bS];while(e){if(e.sizcache===bW){bV=b0[e.sizset];break}if(e.nodeType===1){if(!bZ){e.sizcache=bW;e.sizset=bU}if(typeof bX!=="string"){if(e===bX){bV=true;break}}else{if(bB.filter(bX,[e]).length>0){bV=e;break}}}e=e[bS]}b0[bU]=bV}}}if(aw.documentElement.contains){bB.contains=function(bS,e){return bS!==e&&(bS.contains?bS.contains(e):true)}}else{if(aw.documentElement.compareDocumentPosition){bB.contains=function(bS,e){return !!(bS.compareDocumentPosition(e)&16)}}else{bB.contains=function(){return false}}}bB.isXML=function(e){var bS=(e?e.ownerDocument||e:0).documentElement;return bS?bS.nodeName!=="HTML":false};var bO=function(e,bY){var bW,bU=[],bV="",bT=bY.nodeType?[bY]:bY;while((bW=bG.match.PSEUDO.exec(e))){bV+=bW[0];e=e.replace(bG.match.PSEUDO,"")}e=bG.relative[e]?e+"*":e;for(var bX=0,bS=bT.length;bX<bS;bX++){bB(e,bT[bX],bU)}return bB.filter(bV,bU)};b.find=bB;b.expr=bB.selectors;b.expr[":"]=b.expr.filters;b.unique=bB.uniqueSort;b.text=bB.getText;b.isXMLDoc=bB.isXML;b.contains=bB.contains})();var ad=/Until$/,ar=/^(?:parents|prevUntil|prevAll)/,be=/,/,bu=/^.[^:#\[\.,]*$/,U=Array.prototype.slice,M=b.expr.match.POS,az={children:true,contents:true,next:true,prev:true};b.fn.extend({find:function(e){var bA=this,bC,bz;if(typeof e!=="string"){return b(e).filter(function(){for(bC=0,bz=bA.length;bC<bz;bC++){if(b.contains(bA[bC],this)){return true}}})}var bB=this.pushStack("","find",e),bE,bF,bD;for(bC=0,bz=this.length;bC<bz;bC++){bE=bB.length;b.find(e,this[bC],bB);if(bC>0){for(bF=bE;bF<bB.length;bF++){for(bD=0;bD<bE;bD++){if(bB[bD]===bB[bF]){bB.splice(bF--,1);break}}}}}return bB},has:function(bz){var e=b(bz);return this.filter(function(){for(var bB=0,bA=e.length;bB<bA;bB++){if(b.contains(this,e[bB])){return true}}})},not:function(e){return this.pushStack(aG(this,e,false),"not",e)},filter:function(e){return this.pushStack(aG(this,e,true),"filter",e)},is:function(e){return !!e&&(typeof e==="string"?b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(bI,bz){var bF=[],bC,bA,bH=this[0];if(b.isArray(bI)){var bE,bB,bD={},e=1;if(bH&&bI.length){for(bC=0,bA=bI.length;bC<bA;bC++){bB=bI[bC];if(!bD[bB]){bD[bB]=M.test(bB)?b(bB,bz||this.context):bB}}while(bH&&bH.ownerDocument&&bH!==bz){for(bB in bD){bE=bD[bB];if(bE.jquery?bE.index(bH)>-1:b(bH).is(bE)){bF.push({selector:bB,elem:bH,level:e})}}bH=bH.parentNode;e++}}return bF}var bG=M.test(bI)||typeof bI!=="string"?b(bI,bz||this.context):0;for(bC=0,bA=this.length;bC<bA;bC++){bH=this[bC];while(bH){if(bG?bG.index(bH)>-1:b.find.matchesSelector(bH,bI)){bF.push(bH);break}else{bH=bH.parentNode;if(!bH||!bH.ownerDocument||bH===bz||bH.nodeType===11){break}}}}bF=bF.length>1?b.unique(bF):bF;return this.pushStack(bF,"closest",bI)},index:function(e){if(!e||typeof e==="string"){return b.inArray(this[0],e?b(e):this.parent().children())}return b.inArray(e.jquery?e[0]:e,this)},add:function(e,bz){var bB=typeof e==="string"?b(e,bz):b.makeArray(e&&e.nodeType?[e]:e),bA=b.merge(this.get(),bB);return this.pushStack(H(bB[0])||H(bA[0])?bA:b.unique(bA))},andSelf:function(){return this.add(this.prevObject)}});function H(e){return !e||!e.parentNode||e.parentNode.nodeType===11}b.each({parent:function(bz){var e=bz.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(bz,e,bA){return b.dir(bz,"parentNode",bA)},next:function(e){return b.nth(e,2,"nextSibling")},prev:function(e){return b.nth(e,2,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(bz,e,bA){return b.dir(bz,"nextSibling",bA)},prevUntil:function(bz,e,bA){return b.dir(bz,"previousSibling",bA)},siblings:function(e){return b.sibling(e.parentNode.firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.makeArray(e.childNodes)}},function(e,bz){b.fn[e]=function(bD,bA){var bC=b.map(this,bz,bD),bB=U.call(arguments);if(!ad.test(e)){bA=bD}if(bA&&typeof bA==="string"){bC=b.filter(bA,bC)}bC=this.length>1&&!az[e]?b.unique(bC):bC;if((this.length>1||be.test(bA))&&ar.test(e)){bC=bC.reverse()}return this.pushStack(bC,e,bB.join(","))}});b.extend({filter:function(bA,e,bz){if(bz){bA=":not("+bA+")"}return e.length===1?b.find.matchesSelector(e[0],bA)?[e[0]]:[]:b.find.matches(bA,e)},dir:function(bA,bz,bC){var e=[],bB=bA[bz];while(bB&&bB.nodeType!==9&&(bC===P||bB.nodeType!==1||!b(bB).is(bC))){if(bB.nodeType===1){e.push(bB)}bB=bB[bz]}return e},nth:function(bC,e,bA,bB){e=e||1;var bz=0;for(;bC;bC=bC[bA]){if(bC.nodeType===1&&++bz===e){break}}return bC},sibling:function(bA,bz){var e=[];for(;bA;bA=bA.nextSibling){if(bA.nodeType===1&&bA!==bz){e.push(bA)}}return e}});function aG(bB,bA,e){bA=bA||0;if(b.isFunction(bA)){return b.grep(bB,function(bD,bC){var bE=!!bA.call(bD,bC,bD);return bE===e})}else{if(bA.nodeType){return b.grep(bB,function(bD,bC){return(bD===bA)===e})}else{if(typeof bA==="string"){var bz=b.grep(bB,function(bC){return bC.nodeType===1});if(bu.test(bA)){return b.filter(bA,bz,!e)}else{bA=b.filter(bA,bz)}}}}return b.grep(bB,function(bD,bC){return(b.inArray(bD,bA)>=0)===e})}var ai=/ jQuery\d+="(?:\d+|null)"/g,at=/^\s+/,X=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,d=/<([\w:]+)/,B=/<tbody/i,aa=/<|&#?\w+;/,T=/<(?:script|object|embed|option|style)/i,q=/checked\s*(?:[^=]|=\s*.checked.)/i,bq=/\/(java|ecma)script/i,aP=/^\s*<!(?:\[CDATA\[|\-\-)/,ay={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,"",""]};ay.optgroup=ay.option;ay.tbody=ay.tfoot=ay.colgroup=ay.caption=ay.thead;ay.th=ay.td;if(!b.support.htmlSerialize){ay._default=[1,"div<div>","</div>"]}b.fn.extend({text:function(e){if(b.isFunction(e)){return this.each(function(bA){var bz=b(this);bz.text(e.call(this,bA,bz.text()))})}if(typeof e!=="object"&&e!==P){return this.empty().append((this[0]&&this[0].ownerDocument||aw).createTextNode(e))}return b.text(this)},wrapAll:function(e){if(b.isFunction(e)){return this.each(function(bA){b(this).wrapAll(e.call(this,bA))})}if(this[0]){var bz=b(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bz.insertBefore(this[0])}bz.map(function(){var bA=this;while(bA.firstChild&&bA.firstChild.nodeType===1){bA=bA.firstChild}return bA}).append(this)}return this},wrapInner:function(e){if(b.isFunction(e)){return this.each(function(bz){b(this).wrapInner(e.call(this,bz))})}return this.each(function(){var bz=b(this),bA=bz.contents();if(bA.length){bA.wrapAll(e)}else{bz.append(e)}})},wrap:function(e){return this.each(function(){b(this).wrapAll(e)})},unwrap:function(){return this.parent().each(function(){if(!b.nodeName(this,"body")){b(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.insertBefore(e,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bz){this.parentNode.insertBefore(bz,this)})}else{if(arguments.length){var e=b(arguments[0]);e.push.apply(e,this.toArray());return this.pushStack(e,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bz){this.parentNode.insertBefore(bz,this.nextSibling)})}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,b(arguments[0]).toArray());return e}}},remove:function(e,bB){for(var bz=0,bA;(bA=this[bz])!=null;bz++){if(!e||b.filter(e,[bA]).length){if(!bB&&bA.nodeType===1){b.cleanData(bA.getElementsByTagName("*"));b.cleanData([bA])}if(bA.parentNode){bA.parentNode.removeChild(bA)}}}return this},empty:function(){for(var e=0,bz;(bz=this[e])!=null;e++){if(bz.nodeType===1){b.cleanData(bz.getElementsByTagName("*"))}while(bz.firstChild){bz.removeChild(bz.firstChild)}}return this},clone:function(bz,e){bz=bz==null?false:bz;e=e==null?bz:e;return this.map(function(){return b.clone(this,bz,e)})},html:function(bB){if(bB===P){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ai,""):null}else{if(typeof bB==="string"&&!T.test(bB)&&(b.support.leadingWhitespace||!at.test(bB))&&!ay[(d.exec(bB)||["",""])[1].toLowerCase()]){bB=bB.replace(X,"<$1></$2>");try{for(var bA=0,bz=this.length;bA<bz;bA++){if(this[bA].nodeType===1){b.cleanData(this[bA].getElementsByTagName("*"));this[bA].innerHTML=bB}}}catch(bC){this.empty().append(bB)}}else{if(b.isFunction(bB)){this.each(function(bD){var e=b(this);e.html(bB.call(this,bD,e.html()))})}else{this.empty().append(bB)}}}return this},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(b.isFunction(e)){return this.each(function(bB){var bA=b(this),bz=bA.html();bA.replaceWith(e.call(this,bB,bz))})}if(typeof e!=="string"){e=b(e).detach()}return this.each(function(){var bA=this.nextSibling,bz=this.parentNode;b(this).remove();if(bA){b(bA).before(e)}else{b(bz).append(e)}})}else{return this.length?this.pushStack(b(b.isFunction(e)?e():e),"replaceWith",e):this}},detach:function(e){return this.remove(e,true)},domManip:function(bF,bJ,bI){var bB,bC,bE,bH,bG=bF[0],bz=[];if(!b.support.checkClone&&arguments.length===3&&typeof bG==="string"&&q.test(bG)){return this.each(function(){b(this).domManip(bF,bJ,bI,true)})}if(b.isFunction(bG)){return this.each(function(bL){var bK=b(this);bF[0]=bG.call(this,bL,bJ?bK.html():P);bK.domManip(bF,bJ,bI)})}if(this[0]){bH=bG&&bG.parentNode;if(b.support.parentNode&&bH&&bH.nodeType===11&&bH.childNodes.length===this.length){bB={fragment:bH}}else{bB=b.buildFragment(bF,this,bz)}bE=bB.fragment;if(bE.childNodes.length===1){bC=bE=bE.firstChild}else{bC=bE.firstChild}if(bC){bJ=bJ&&b.nodeName(bC,"tr");for(var bA=0,e=this.length,bD=e-1;bA<e;bA++){bI.call(bJ?bf(this[bA],bC):this[bA],bB.cacheable||(e>1&&bA<bD)?b.clone(bE,true,true):bE)}}if(bz.length){b.each(bz,bt)}}return this}});function bf(e,bz){return b.nodeName(e,"table")?(e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody"))):e}function y(e,bF){if(bF.nodeType!==1||!b.hasData(e)){return}var bE=b.expando,bB=b.data(e),bC=b.data(bF,bB);if((bB=bB[bE])){var bG=bB.events;bC=bC[bE]=b.extend({},bB);if(bG){delete bC.handle;bC.events={};for(var bD in bG){for(var bA=0,bz=bG[bD].length;bA<bz;bA++){b.event.add(bF,bD+(bG[bD][bA].namespace?".":"")+bG[bD][bA].namespace,bG[bD][bA],bG[bD][bA].data)}}}}}function aj(bz,e){var bA;if(e.nodeType!==1){return}if(e.clearAttributes){e.clearAttributes()}if(e.mergeAttributes){e.mergeAttributes(bz)}bA=e.nodeName.toLowerCase();if(bA==="object"){e.outerHTML=bz.outerHTML}else{if(bA==="input"&&(bz.type==="checkbox"||bz.type==="radio")){if(bz.checked){e.defaultChecked=e.checked=bz.checked}if(e.value!==bz.value){e.value=bz.value}}else{if(bA==="option"){e.selected=bz.defaultSelected}else{if(bA==="input"||bA==="textarea"){e.defaultValue=bz.defaultValue}}}}e.removeAttribute(b.expando)}b.buildFragment=function(bD,bB,bz){var bC,e,bA,bE=(bB&&bB[0]?bB[0].ownerDocument||bB[0]:aw);if(bD.length===1&&typeof bD[0]==="string"&&bD[0].length<512&&bE===aw&&bD[0].charAt(0)==="<"&&!T.test(bD[0])&&(b.support.checkClone||!q.test(bD[0]))){e=true;bA=b.fragments[bD[0]];if(bA&&bA!==1){bC=bA}}if(!bC){bC=bE.createDocumentFragment();b.clean(bD,bE,bC,bz)}if(e){b.fragments[bD[0]]=bA?bC:1}return{fragment:bC,cacheable:e}};b.fragments={};b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,bz){b.fn[e]=function(bA){var bD=[],bG=b(bA),bF=this.length===1&&this[0].parentNode;if(bF&&bF.nodeType===11&&bF.childNodes.length===1&&bG.length===1){bG[bz](this[0]);return this}else{for(var bE=0,bB=bG.length;bE<bB;bE++){var bC=(bE>0?this.clone(true):this).get();b(bG[bE])[bz](bC);bD=bD.concat(bC)}return this.pushStack(bD,e,bG.selector)}}});function bj(e){if("getElementsByTagName" in e){return e.getElementsByTagName("*")}else{if("querySelectorAll" in e){return e.querySelectorAll("*")}else{return[]}}}function aA(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked}}function J(e){if(b.nodeName(e,"input")){aA(e)}else{if(e.getElementsByTagName){b.grep(e.getElementsByTagName("input"),aA)}}}b.extend({clone:function(bC,bE,bA){var bD=bC.cloneNode(true),e,bz,bB;if((!b.support.noCloneEvent||!b.support.noCloneChecked)&&(bC.nodeType===1||bC.nodeType===11)&&!b.isXMLDoc(bC)){aj(bC,bD);e=bj(bC);bz=bj(bD);for(bB=0;e[bB];++bB){aj(e[bB],bz[bB])}}if(bE){y(bC,bD);if(bA){e=bj(bC);bz=bj(bD);for(bB=0;e[bB];++bB){y(e[bB],bz[bB])}}}return bD},clean:function(bA,bC,bL,bE){var bJ;bC=bC||aw;if(typeof bC.createElement==="undefined"){bC=bC.ownerDocument||bC[0]&&bC[0].ownerDocument||aw}var bM=[],bF;for(var bI=0,bD;(bD=bA[bI])!=null;bI++){if(typeof bD==="number"){bD+=""}if(!bD){continue}if(typeof bD==="string"){if(!aa.test(bD)){bD=bC.createTextNode(bD)}else{bD=bD.replace(X,"<$1></$2>");var bO=(d.exec(bD)||["",""])[1].toLowerCase(),bB=ay[bO]||ay._default,bH=bB[0],bz=bC.createElement("div");bz.innerHTML=bB[1]+bD+bB[2];while(bH--){bz=bz.lastChild}if(!b.support.tbody){var e=B.test(bD),bG=bO==="table"&&!e?bz.firstChild&&bz.firstChild.childNodes:bB[1]==="<table>"&&!e?bz.childNodes:[];for(bF=bG.length-1;bF>=0;--bF){if(b.nodeName(bG[bF],"tbody")&&!bG[bF].childNodes.length){bG[bF].parentNode.removeChild(bG[bF])}}}if(!b.support.leadingWhitespace&&at.test(bD)){bz.insertBefore(bC.createTextNode(at.exec(bD)[0]),bz.firstChild)}bD=bz.childNodes}}var bK;if(!b.support.appendChecked){if(bD[0]&&typeof(bK=bD.length)==="number"){for(bF=0;bF<bK;bF++){J(bD[bF])}}else{J(bD)}}if(bD.nodeType){bM.push(bD)}else{bM=b.merge(bM,bD)}}if(bL){bJ=function(bP){return !bP.type||bq.test(bP.type)};for(bI=0;bM[bI];bI++){if(bE&&b.nodeName(bM[bI],"script")&&(!bM[bI].type||bM[bI].type.toLowerCase()==="text/javascript")){bE.push(bM[bI].parentNode?bM[bI].parentNode.removeChild(bM[bI]):bM[bI])}else{if(bM[bI].nodeType===1){var bN=b.grep(bM[bI].getElementsByTagName("script"),bJ);bM.splice.apply(bM,[bI+1,0].concat(bN))}bL.appendChild(bM[bI])}}}return bM},cleanData:function(bz){var bC,bA,e=b.cache,bH=b.expando,bF=b.event.special,bE=b.support.deleteExpando;for(var bD=0,bB;(bB=bz[bD])!=null;bD++){if(bB.nodeName&&b.noData[bB.nodeName.toLowerCase()]){continue}bA=bB[b.expando];if(bA){bC=e[bA]&&e[bA][bH];if(bC&&bC.events){for(var bG in bC.events){if(bF[bG]){b.event.remove(bB,bG)}else{b.removeEvent(bB,bG,bC.handle)}}if(bC.handle){bC.handle.elem=null}}if(bE){delete bB[b.expando]}else{if(bB.removeAttribute){bB.removeAttribute(b.expando)}}delete e[bA]}}}});function bt(e,bz){if(bz.src){b.ajax({url:bz.src,async:false,dataType:"script"})}else{b.globalEval((bz.text||bz.textContent||bz.innerHTML||"").replace(aP,"/*$0*/"))}if(bz.parentNode){bz.parentNode.removeChild(bz)}}var am=/alpha\([^)]*\)/i,av=/opacity=([^)]*)/,aZ=/-([a-z])/ig,E=/([A-Z]|^ms)/g,bh=/^-?\d+(?:px)?$/i,bs=/^-?\d/,N=/^[+\-]=/,al=/[^+\-\.\de]+/g,bb={position:"absolute",visibility:"hidden",display:"block"},ao=["Left","Right"],a5=["Top","Bottom"],ab,aK,aY,p=function(e,bz){return bz.toUpperCase()};b.fn.css=function(e,bz){if(arguments.length===2&&bz===P){return this}return b.access(this,e,bz,true,function(bB,bA,bC){return bC!==P?b.style(bB,bA,bC):b.css(bB,bA)})};b.extend({cssHooks:{opacity:{get:function(bA,bz){if(bz){var e=ab(bA,"opacity","opacity");return e===""?"1":e}else{return bA.style.opacity}}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true,widows:true,orphans:true},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(bB,bA,bH,bC){if(!bB||bB.nodeType===3||bB.nodeType===8||!bB.style){return}var bF,bG,bD=b.camelCase(bA),bz=bB.style,bI=b.cssHooks[bD];bA=b.cssProps[bD]||bD;if(bH!==P){bG=typeof bH;if(bG==="number"&&isNaN(bH)||bH==null){return}if(bG==="string"&&N.test(bH)){bH=+bH.replace(al,"")+parseFloat(b.css(bB,bA))}if(bG==="number"&&!b.cssNumber[bD]){bH+="px"}if(!bI||!("set" in bI)||(bH=bI.set(bB,bH))!==P){try{bz[bA]=bH}catch(bE){}}}else{if(bI&&"get" in bI&&(bF=bI.get(bB,false,bC))!==P){return bF}return bz[bA]}},css:function(bC,bB,bz){var bA,e;bB=b.camelCase(bB);e=b.cssHooks[bB];bB=b.cssProps[bB]||bB;if(bB==="cssFloat"){bB="float"}if(e&&"get" in e&&(bA=e.get(bC,true,bz))!==P){return bA}else{if(ab){return ab(bC,bB)}}},swap:function(bB,bA,bC){var e={};for(var bz in bA){e[bz]=bB.style[bz];bB.style[bz]=bA[bz]}bC.call(bB);for(bz in bA){bB.style[bz]=e[bz]}},camelCase:function(e){return e.replace(aZ,p)}});b.curCSS=b.css;b.each(["height","width"],function(bz,e){b.cssHooks[e]={get:function(bC,bB,bA){var bD;if(bB){if(bC.offsetWidth!==0){bD=s(bC,e,bA)}else{b.swap(bC,bb,function(){bD=s(bC,e,bA)})}if(bD<=0){bD=ab(bC,e,e);if(bD==="0px"&&aY){bD=aY(bC,e,e)}if(bD!=null){return bD===""||bD==="auto"?"0px":bD}}if(bD<0||bD==null){bD=bC.style[e];return bD===""||bD==="auto"?"0px":bD}return typeof bD==="string"?bD:bD+"px"}},set:function(bA,bB){if(bh.test(bB)){bB=parseFloat(bB);if(bB>=0){return bB+"px"}}else{return bB}}}});if(!b.support.opacity){b.cssHooks.opacity={get:function(bz,e){return av.test((e&&bz.currentStyle?bz.currentStyle.filter:bz.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""},set:function(bC,bD){var bB=bC.style,bz=bC.currentStyle;bB.zoom=1;var e=b.isNaN(bD)?"":"alpha(opacity="+bD*100+")",bA=bz&&bz.filter||bB.filter||"";bB.filter=am.test(bA)?bA.replace(am,e):bA+" "+e}}}b(function(){if(!b.support.reliableMarginRight){b.cssHooks.marginRight={get:function(bA,bz){var e;b.swap(bA,{display:"inline-block"},function(){if(bz){e=ab(bA,"margin-right","marginRight")}else{e=bA.style.marginRight}});return e}}}});if(aw.defaultView&&aw.defaultView.getComputedStyle){aK=function(bC,bA){var bz,bB,e;bA=bA.replace(E,"-$1").toLowerCase();if(!(bB=bC.ownerDocument.defaultView)){return P}if((e=bB.getComputedStyle(bC,null))){bz=e.getPropertyValue(bA);if(bz===""&&!b.contains(bC.ownerDocument.documentElement,bC)){bz=b.style(bC,bA)}}return bz}}if(aw.documentElement.currentStyle){aY=function(bC,bA){var bD,bz=bC.currentStyle&&bC.currentStyle[bA],e=bC.runtimeStyle&&bC.runtimeStyle[bA],bB=bC.style;if(!bh.test(bz)&&bs.test(bz)){bD=bB.left;if(e){bC.runtimeStyle.left=bC.currentStyle.left}bB.left=bA==="fontSize"?"1em":(bz||0);bz=bB.pixelLeft+"px";bB.left=bD;if(e){bC.runtimeStyle.left=e}}return bz===""?"auto":bz}}ab=aK||aY;function s(bA,bz,e){var bC=bz==="width"?ao:a5,bB=bz==="width"?bA.offsetWidth:bA.offsetHeight;if(e==="border"){return bB}b.each(bC,function(){if(!e){bB-=parseFloat(b.css(bA,"padding"+this))||0}if(e==="margin"){bB+=parseFloat(b.css(bA,"margin"+this))||0}else{bB-=parseFloat(b.css(bA,"border"+this+"Width"))||0}});return bB}if(b.expr&&b.expr.filters){b.expr.filters.hidden=function(bA){var bz=bA.offsetWidth,e=bA.offsetHeight;return(bz===0&&e===0)||(!b.support.reliableHiddenOffsets&&(bA.style.display||b.css(bA,"display"))==="none")};b.expr.filters.visible=function(e){return !b.expr.filters.hidden(e)}}var l=/%20/g,aq=/\[\]$/,bx=/\r?\n/g,bv=/#.*$/,aE=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,a2=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aO=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,aR=/^(?:GET|HEAD)$/,c=/^\/\//,Q=/\?/,ba=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,u=/^(?:select|textarea)/i,h=/\s+/,bw=/([?&])_=[^&]*/,O=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,F=b.fn.load,ac={},w={},aF,x;try{aF=bp.href}catch(ax){aF=aw.createElement("a");aF.href="";aF=aF.href}x=O.exec(aF.toLowerCase())||[];function f(e){return function(bC,bE){if(typeof bC!=="string"){bE=bC;bC="*"}if(b.isFunction(bE)){var bB=bC.toLowerCase().split(h),bA=0,bD=bB.length,bz,bF,bG;for(;bA<bD;bA++){bz=bB[bA];bG=/^\+/.test(bz);if(bG){bz=bz.substr(1)||"*"}bF=e[bz]=e[bz]||[];bF[bG?"unshift":"push"](bE)}}}}function aW(bz,bI,bD,bH,bF,bB){bF=bF||bI.dataTypes[0];bB=bB||{};bB[bF]=true;var bE=bz[bF],bA=0,e=bE?bE.length:0,bC=(bz===ac),bG;for(;bA<e&&(bC||!bG);bA++){bG=bE[bA](bI,bD,bH);if(typeof bG==="string"){if(!bC||bB[bG]){bG=P}else{bI.dataTypes.unshift(bG);bG=aW(bz,bI,bD,bH,bG,bB)}}}if((bC||!bG)&&!bB["*"]){bG=aW(bz,bI,bD,bH,"*",bB)}return bG}b.fn.extend({load:function(bA,bD,bE){if(typeof bA!=="string"&&F){return F.apply(this,arguments)}else{if(!this.length){return this}}var bC=bA.indexOf(" ");if(bC>=0){var e=bA.slice(bC,bA.length);bA=bA.slice(0,bC)}var bB="GET";if(bD){if(b.isFunction(bD)){bE=bD;bD=P}else{if(typeof bD==="object"){bD=b.param(bD,b.ajaxSettings.traditional);bB="POST"}}}var bz=this;b.ajax({url:bA,type:bB,dataType:"html",data:bD,complete:function(bG,bF,bH){bH=bG.responseText;if(bG.isResolved()){bG.done(function(bI){bH=bI});bz.html(e?b("<div>").append(bH.replace(ba,"")).find(e):bH)}if(bE){bz.each(bE,[bH,bF,bG])}}});return this},serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?b.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||u.test(this.nodeName)||a2.test(this.type))}).map(function(e,bz){var bA=b(this).val();return bA==null?null:b.isArray(bA)?b.map(bA,function(bC,bB){return{name:bz.name,value:bC.replace(bx,"\r\n")}}):{name:bz.name,value:bA.replace(bx,"\r\n")}}).get()}});b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,bz){b.fn[bz]=function(bA){return this.bind(bz,bA)}});b.each(["get","post"],function(e,bz){b[bz]=function(bA,bC,bD,bB){if(b.isFunction(bC)){bB=bB||bD;bD=bC;bC=P}return b.ajax({type:bz,url:bA,data:bC,success:bD,dataType:bB})}});b.extend({getScript:function(e,bz){return b.get(e,P,bz,"script")},getJSON:function(e,bz,bA){return b.get(e,bz,bA,"json")},ajaxSetup:function(bA,e){if(!e){e=bA;bA=b.extend(true,b.ajaxSettings,e)}else{b.extend(true,bA,b.ajaxSettings,e)}for(var bz in {context:1,url:1}){if(bz in e){bA[bz]=e[bz]}else{if(bz in b.ajaxSettings){bA[bz]=b.ajaxSettings[bz]}}}return bA},ajaxSettings:{url:aF,isLocal:aO.test(x[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":bg.String,"text html":true,"text json":b.parseJSON,"text xml":b.parseXML}},ajaxPrefilter:f(ac),ajaxTransport:f(w),ajax:function(bD,bB){if(typeof bD==="object"){bB=bD;bD=P}bB=bB||{};var bH=b.ajaxSetup({},bB),bW=bH.context||bH,bK=bW!==bH&&(bW.nodeType||bW instanceof b)?b(bW):b.event,bV=b.Deferred(),bR=b._Deferred(),bF=bH.statusCode||{},bG,bL={},bS={},bU,bC,bP,bI,bM,bE=0,bA,bO,bN={readyState:0,setRequestHeader:function(bX,bY){if(!bE){var e=bX.toLowerCase();bX=bS[e]=bS[e]||bX;bL[bX]=bY}return this},getAllResponseHeaders:function(){return bE===2?bU:null},getResponseHeader:function(bX){var e;if(bE===2){if(!bC){bC={};while((e=aE.exec(bU))){bC[e[1].toLowerCase()]=e[2]}}e=bC[bX.toLowerCase()]}return e===P?null:e},overrideMimeType:function(e){if(!bE){bH.mimeType=e}return this},abort:function(e){e=e||"abort";if(bP){bP.abort(e)}bJ(0,e);return this}};function bJ(b2,b0,b3,bZ){if(bE===2){return}bE=2;if(bI){clearTimeout(bI)}bP=P;bU=bZ||"";bN.readyState=b2?4:0;var bX,b7,b6,b1=b3?bn(bH,bN,b3):P,bY,b5;if(b2>=200&&b2<300||b2===304){if(bH.ifModified){if((bY=bN.getResponseHeader("Last-Modified"))){b.lastModified[bG]=bY}if((b5=bN.getResponseHeader("Etag"))){b.etag[bG]=b5}}if(b2===304){b0="notmodified";bX=true}else{try{b7=K(bH,b1);b0="success";bX=true}catch(b4){b0="parsererror";b6=b4}}}else{b6=b0;if(!b0||b2){b0="error";if(b2<0){b2=0}}}bN.status=b2;bN.statusText=b0;if(bX){bV.resolveWith(bW,[b7,b0,bN])}else{bV.rejectWith(bW,[bN,b0,b6])}bN.statusCode(bF);bF=P;if(bA){bK.trigger("ajax"+(bX?"Success":"Error"),[bN,bH,bX?b7:b6])}bR.resolveWith(bW,[bN,b0]);if(bA){bK.trigger("ajaxComplete",[bN,bH]);if(!(--b.active)){b.event.trigger("ajaxStop")}}}bV.promise(bN);bN.success=bN.done;bN.error=bN.fail;bN.complete=bR.done;bN.statusCode=function(bX){if(bX){var e;if(bE<2){for(e in bX){bF[e]=[bF[e],bX[e]]}}else{e=bX[bN.status];bN.then(e,e)}}return this};bH.url=((bD||bH.url)+"").replace(bv,"").replace(c,x[1]+"//");bH.dataTypes=b.trim(bH.dataType||"*").toLowerCase().split(h);if(bH.crossDomain==null){bM=O.exec(bH.url.toLowerCase());bH.crossDomain=!!(bM&&(bM[1]!=x[1]||bM[2]!=x[2]||(bM[3]||(bM[1]==="http:"?80:443))!=(x[3]||(x[1]==="http:"?80:443))))}if(bH.data&&bH.processData&&typeof bH.data!=="string"){bH.data=b.param(bH.data,bH.traditional)}aW(ac,bH,bB,bN);if(bE===2){return false}bA=bH.global;bH.type=bH.type.toUpperCase();bH.hasContent=!aR.test(bH.type);if(bA&&b.active++===0){b.event.trigger("ajaxStart")}if(!bH.hasContent){if(bH.data){bH.url+=(Q.test(bH.url)?"&":"?")+bH.data}bG=bH.url;if(bH.cache===false){var bz=b.now(),bT=bH.url.replace(bw,"$1_="+bz);bH.url=bT+((bT===bH.url)?(Q.test(bH.url)?"&":"?")+"_="+bz:"")}}if(bH.data&&bH.hasContent&&bH.contentType!==false||bB.contentType){bN.setRequestHeader("Content-Type",bH.contentType)}if(bH.ifModified){bG=bG||bH.url;if(b.lastModified[bG]){bN.setRequestHeader("If-Modified-Since",b.lastModified[bG])}if(b.etag[bG]){bN.setRequestHeader("If-None-Match",b.etag[bG])}}bN.setRequestHeader("Accept",bH.dataTypes[0]&&bH.accepts[bH.dataTypes[0]]?bH.accepts[bH.dataTypes[0]]+(bH.dataTypes[0]!=="*"?", */*; q=0.01":""):bH.accepts["*"]);for(bO in bH.headers){bN.setRequestHeader(bO,bH.headers[bO])}if(bH.beforeSend&&(bH.beforeSend.call(bW,bN,bH)===false||bE===2)){bN.abort();return false}for(bO in {success:1,error:1,complete:1}){bN[bO](bH[bO])}bP=aW(w,bH,bB,bN);if(!bP){bJ(-1,"No Transport")}else{bN.readyState=1;if(bA){bK.trigger("ajaxSend",[bN,bH])}if(bH.async&&bH.timeout>0){bI=setTimeout(function(){bN.abort("timeout")},bH.timeout)}try{bE=1;bP.send(bL,bJ)}catch(bQ){if(status<2){bJ(-1,bQ)}else{b.error(bQ)}}}return bN},param:function(e,bA){var bz=[],bC=function(bD,bE){bE=b.isFunction(bE)?bE():bE;bz[bz.length]=encodeURIComponent(bD)+"="+encodeURIComponent(bE)};if(bA===P){bA=b.ajaxSettings.traditional}if(b.isArray(e)||(e.jquery&&!b.isPlainObject(e))){b.each(e,function(){bC(this.name,this.value)})}else{for(var bB in e){A(bB,e[bB],bA,bC)}}return bz.join("&").replace(l,"+")}});function A(bA,bC,bz,bB){if(b.isArray(bC)){b.each(bC,function(bE,bD){if(bz||aq.test(bA)){bB(bA,bD)}else{A(bA+"["+(typeof bD==="object"||b.isArray(bD)?bE:"")+"]",bD,bz,bB)}})}else{if(!bz&&bC!=null&&typeof bC==="object"){for(var e in bC){A(bA+"["+e+"]",bC[e],bz,bB)}}else{bB(bA,bC)}}}b.extend({active:0,lastModified:{},etag:{}});function bn(bH,bG,bD){var bz=bH.contents,bF=bH.dataTypes,bA=bH.responseFields,bC,bE,bB,e;for(bE in bA){if(bE in bD){bG[bA[bE]]=bD[bE]}}while(bF[0]==="*"){bF.shift();if(bC===P){bC=bH.mimeType||bG.getResponseHeader("content-type")}}if(bC){for(bE in bz){if(bz[bE]&&bz[bE].test(bC)){bF.unshift(bE);break}}}if(bF[0] in bD){bB=bF[0]}else{for(bE in bD){if(!bF[0]||bH.converters[bE+" "+bF[0]]){bB=bE;break}if(!e){e=bE}}bB=bB||e}if(bB){if(bB!==bF[0]){bF.unshift(bB)}return bD[bB]}}function K(bL,bD){if(bL.dataFilter){bD=bL.dataFilter(bD,bL.dataType)}var bH=bL.dataTypes,bK={},bE,bI,bA=bH.length,bF,bG=bH[0],bB,bC,bJ,bz,e;for(bE=1;bE<bA;bE++){if(bE===1){for(bI in bL.converters){if(typeof bI==="string"){bK[bI.toLowerCase()]=bL.converters[bI]}}}bB=bG;bG=bH[bE];if(bG==="*"){bG=bB}else{if(bB!=="*"&&bB!==bG){bC=bB+" "+bG;bJ=bK[bC]||bK["* "+bG];if(!bJ){e=P;for(bz in bK){bF=bz.split(" ");if(bF[0]===bB||bF[0]==="*"){e=bK[bF[1]+" "+bG];if(e){bz=bK[bz];if(bz===true){bJ=e}else{if(e===true){bJ=bz}}break}}}}if(!(bJ||e)){b.error("No conversion from "+bC.replace(" "," to "))}if(bJ!==true){bD=bJ?bJ(bD):e(bz(bD))}}}}return bD}var aD=b.now(),z=/(\=)\?(&|$)|\?\?/i;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return b.expando+"_"+(aD++)}});b.ajaxPrefilter("json jsonp",function(bH,bE,bG){var bB=bH.contentType==="application/x-www-form-urlencoded"&&(typeof bH.data==="string");if(bH.dataTypes[0]==="jsonp"||bH.jsonp!==false&&(z.test(bH.url)||bB&&z.test(bH.data))){var bF,bA=bH.jsonpCallback=b.isFunction(bH.jsonpCallback)?bH.jsonpCallback():bH.jsonpCallback,bD=bg[bA],e=bH.url,bC=bH.data,bz="$1"+bA+"$2";if(bH.jsonp!==false){e=e.replace(z,bz);if(bH.url===e){if(bB){bC=bC.replace(z,bz)}if(bH.data===bC){e+=(/\?/.test(e)?"&":"?")+bH.jsonp+"="+bA}}}bH.url=e;bH.data=bC;bg[bA]=function(bI){bF=[bI]};bG.always(function(){bg[bA]=bD;if(bF&&b.isFunction(bD)){bg[bA](bF[0])}});bH.converters["script json"]=function(){if(!bF){b.error(bA+" was not called")}return bF[0]};bH.dataTypes[0]="json";return"script"}});b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){b.globalEval(e);return e}}});b.ajaxPrefilter("script",function(e){if(e.cache===P){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});b.ajaxTransport("script",function(bA){if(bA.crossDomain){var e,bz=aw.head||aw.getElementsByTagName("head")[0]||aw.documentElement;return{send:function(bB,bC){e=aw.createElement("script");e.async="async";if(bA.scriptCharset){e.charset=bA.scriptCharset}e.src=bA.url;e.onload=e.onreadystatechange=function(bE,bD){if(bD||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(bz&&e.parentNode){bz.removeChild(e)}e=P;if(!bD){bC(200,"success")}}};bz.insertBefore(e,bz.firstChild)},abort:function(){if(e){e.onload(0,1)}}}}});var G=bg.ActiveXObject?function(){for(var e in R){R[e](0,1)}}:false,D=0,R;function aN(){try{return new bg.XMLHttpRequest()}catch(bz){}}function ak(){try{return new bg.ActiveXObject("Microsoft.XMLHTTP")}catch(bz){}}b.ajaxSettings.xhr=bg.ActiveXObject?function(){return !this.isLocal&&aN()||ak()}:aN;(function(e){b.extend(b.support,{ajax:!!e,cors:!!e&&("withCredentials" in e)})})(b.ajaxSettings.xhr());if(b.support.ajax){b.ajaxTransport(function(e){if(!e.crossDomain||b.support.cors){var bz;return{send:function(bF,bA){var bE=e.xhr(),bD,bC;if(e.username){bE.open(e.type,e.url,e.async,e.username,e.password)}else{bE.open(e.type,e.url,e.async)}if(e.xhrFields){for(bC in e.xhrFields){bE[bC]=e.xhrFields[bC]}}if(e.mimeType&&bE.overrideMimeType){bE.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!bF["X-Requested-With"]){bF["X-Requested-With"]="XMLHttpRequest"}try{for(bC in bF){bE.setRequestHeader(bC,bF[bC])}}catch(bB){}bE.send((e.hasContent&&e.data)||null);bz=function(bO,bI){var bJ,bH,bG,bM,bL;try{if(bz&&(bI||bE.readyState===4)){bz=P;if(bD){bE.onreadystatechange=b.noop;if(G){delete R[bD]}}if(bI){if(bE.readyState!==4){bE.abort()}}else{bJ=bE.status;bG=bE.getAllResponseHeaders();bM={};bL=bE.responseXML;if(bL&&bL.documentElement){bM.xml=bL}bM.text=bE.responseText;try{bH=bE.statusText}catch(bN){bH=""}if(!bJ&&e.isLocal&&!e.crossDomain){bJ=bM.text?200:404}else{if(bJ===1223){bJ=204}}}}}catch(bK){if(!bI){bA(-1,bK)}}if(bM){bA(bJ,bH,bM,bG)}};if(!e.async||bE.readyState===4){bz()}else{bD=++D;if(G){if(!R){R={};b(bg).unload(G)}R[bD]=bz}bE.onreadystatechange=bz}},abort:function(){if(bz){bz(0,1)}}}}})}var V={},bd,o,aC=/^(?:toggle|show|hide)$/,aT=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,a6,aJ=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],a8,W=bg.webkitRequestAnimationFrame||bg.mozRequestAnimationFrame||bg.oRequestAnimationFrame;b.fn.extend({show:function(bB,bE,bD){var bA,bC;if(bB||bB===0){return this.animate(a4("show",3),bB,bE,bD)}else{for(var bz=0,e=this.length;bz<e;bz++){bA=this[bz];if(bA.style){bC=bA.style.display;if(!b._data(bA,"olddisplay")&&bC==="none"){bC=bA.style.display=""}if(bC===""&&b.css(bA,"display")==="none"){b._data(bA,"olddisplay",C(bA.nodeName))}}}for(bz=0;bz<e;bz++){bA=this[bz];if(bA.style){bC=bA.style.display;if(bC===""||bC==="none"){bA.style.display=b._data(bA,"olddisplay")||""}}}return this}},hide:function(bA,bD,bC){if(bA||bA===0){return this.animate(a4("hide",3),bA,bD,bC)}else{for(var bz=0,e=this.length;bz<e;bz++){if(this[bz].style){var bB=b.css(this[bz],"display");if(bB!=="none"&&!b._data(this[bz],"olddisplay")){b._data(this[bz],"olddisplay",bB)}}}for(bz=0;bz<e;bz++){if(this[bz].style){this[bz].style.display="none"}}return this}},_toggle:b.fn.toggle,toggle:function(bA,bz,bB){var e=typeof bA==="boolean";if(b.isFunction(bA)&&b.isFunction(bz)){this._toggle.apply(this,arguments)}else{if(bA==null||e){this.each(function(){var bC=e?bA:b(this).is(":hidden");b(this)[bC?"show":"hide"]()})}else{this.animate(a4("toggle",3),bA,bz,bB)}}return this},fadeTo:function(e,bB,bA,bz){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:bB},e,bA,bz)},animate:function(bC,bz,bB,bA){var e=b.speed(bz,bB,bA);if(b.isEmptyObject(bC)){return this.each(e.complete,[false])}bC=b.extend({},bC);return this[e.queue===false?"each":"queue"](function(){if(e.queue===false){b._mark(this)}var bG=b.extend({},e),bN=this.nodeType===1,bK=bN&&b(this).is(":hidden"),bD,bH,bF,bM,bL,bJ,bE,bI,bO;bG.animatedProperties={};for(bF in bC){bD=b.camelCase(bF);if(bF!==bD){bC[bD]=bC[bF];delete bC[bF]}bH=bC[bD];if(b.isArray(bH)){bG.animatedProperties[bD]=bH[1];bH=bC[bD]=bH[0]}else{bG.animatedProperties[bD]=bG.specialEasing&&bG.specialEasing[bD]||bG.easing||"swing"}if(bH==="hide"&&bK||bH==="show"&&!bK){return bG.complete.call(this)}if(bN&&(bD==="height"||bD==="width")){bG.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(b.css(this,"display")==="inline"&&b.css(this,"float")==="none"){if(!b.support.inlineBlockNeedsLayout){this.style.display="inline-block"}else{bM=C(this.nodeName);if(bM==="inline"){this.style.display="inline-block"}else{this.style.display="inline";this.style.zoom=1}}}}}if(bG.overflow!=null){this.style.overflow="hidden"}for(bF in bC){bL=new b.fx(this,bG,bF);bH=bC[bF];if(aC.test(bH)){bL[bH==="toggle"?bK?"show":"hide":bH]()}else{bJ=aT.exec(bH);bE=bL.cur();if(bJ){bI=parseFloat(bJ[2]);bO=bJ[3]||(b.cssNumber[bF]?"":"px");if(bO!=="px"){b.style(this,bF,(bI||1)+bO);bE=((bI||1)/bL.cur())*bE;b.style(this,bF,bE+bO)}if(bJ[1]){bI=((bJ[1]==="-="?-1:1)*bI)+bE}bL.custom(bE,bI,bO)}else{bL.custom(bE,bH,"")}}}return true})},stop:function(bz,e){if(bz){this.queue([])}this.each(function(){var bB=b.timers,bA=bB.length;if(!e){b._unmark(true,this)}while(bA--){if(bB[bA].elem===this){if(e){bB[bA](true)}bB.splice(bA,1)}}});if(!e){this.dequeue()}return this}});function bk(){setTimeout(au,0);return(a8=b.now())}function au(){a8=P}function a4(bz,e){var bA={};b.each(aJ.concat.apply([],aJ.slice(0,e)),function(){bA[this]=bz});return bA}b.each({slideDown:a4("show",1),slideUp:a4("hide",1),slideToggle:a4("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,bz){b.fn[e]=function(bA,bC,bB){return this.animate(bz,bA,bC,bB)}});b.extend({speed:function(bA,bB,bz){var e=bA&&typeof bA==="object"?b.extend({},bA):{complete:bz||!bz&&bB||b.isFunction(bA)&&bA,duration:bA,easing:bz&&bB||bB&&!b.isFunction(bB)&&bB};e.duration=b.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in b.fx.speeds?b.fx.speeds[e.duration]:b.fx.speeds._default;e.old=e.complete;e.complete=function(bC){if(e.queue!==false){b.dequeue(this)}else{if(bC!==false){b._unmark(this)}}if(b.isFunction(e.old)){e.old.call(this)}};return e},easing:{linear:function(bA,bB,e,bz){return e+bz*bA},swing:function(bA,bB,e,bz){return((-Math.cos(bA*Math.PI)/2)+0.5)*bz+e}},timers:[],fx:function(bz,e,bA){this.options=e;this.elem=bz;this.prop=bA;e.orig=e.orig||{}}});b.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(b.fx.step[this.prop]||b.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var e,bz=b.css(this.elem,this.prop);return isNaN(e=parseFloat(bz))?!bz||bz==="auto"?0:bz:e},custom:function(bE,bD,bB){var e=this,bA=b.fx,bC;this.startTime=a8||bk();this.start=bE;this.end=bD;this.unit=bB||this.unit||(b.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;function bz(bF){return e.step(bF)}bz.elem=this.elem;if(bz()&&b.timers.push(bz)&&!a6){if(W){a6=1;bC=function(){if(a6){W(bC);bA.tick()}};W(bC)}else{a6=setInterval(bA.tick,bA.interval)}}},show:function(){this.options.orig[this.prop]=b.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());b(this.elem).show()},hide:function(){this.options.orig[this.prop]=b.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(bC){var bB=a8||bk(),e=true,bD=this.elem,bz=this.options,bA,bF;if(bC||bB>=bz.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();bz.animatedProperties[this.prop]=true;for(bA in bz.animatedProperties){if(bz.animatedProperties[bA]!==true){e=false}}if(e){if(bz.overflow!=null&&!b.support.shrinkWrapBlocks){b.each(["","X","Y"],function(bG,bH){bD.style["overflow"+bH]=bz.overflow[bG]})}if(bz.hide){b(bD).hide()}if(bz.hide||bz.show){for(var bE in bz.animatedProperties){b.style(bD,bE,bz.orig[bE])}}bz.complete.call(bD)}return false}else{if(bz.duration==Infinity){this.now=bB}else{bF=bB-this.startTime;this.state=bF/bz.duration;this.pos=b.easing[bz.animatedProperties[this.prop]](this.state,bF,0,1,bz.duration);this.now=this.start+((this.end-this.start)*this.pos)}this.update()}return true}};b.extend(b.fx,{tick:function(){for(var bz=b.timers,e=0;e<bz.length;++e){if(!bz[e]()){bz.splice(e--,1)}}if(!bz.length){b.fx.stop()}},interval:13,stop:function(){clearInterval(a6);a6=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){b.style(e.elem,"opacity",e.now)},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null){e.elem.style[e.prop]=(e.prop==="width"||e.prop==="height"?Math.max(0,e.now):e.now)+e.unit}else{e.elem[e.prop]=e.now}}}});if(b.expr&&b.expr.filters){b.expr.filters.animated=function(e){return b.grep(b.timers,function(bz){return e===bz.elem}).length}}function C(bA){if(!V[bA]){var e=b("<"+bA+">").appendTo("body"),bz=e.css("display");e.remove();if(bz==="none"||bz===""){if(!bd){bd=aw.createElement("iframe");bd.frameBorder=bd.width=bd.height=0}aw.body.appendChild(bd);if(!o||!bd.createElement){o=(bd.contentWindow||bd.contentDocument).document;o.write("<!doctype><html><body></body></html>")}e=o.createElement(bA);o.body.appendChild(e);bz=b.css(e,"display");aw.body.removeChild(bd)}V[bA]=bz}return V[bA]}var Z=/^t(?:able|d|h)$/i,af=/^(?:body|html)$/i;if("getBoundingClientRect" in aw.documentElement){b.fn.offset=function(bM){var bC=this[0],bF;if(bM){return this.each(function(e){b.offset.setOffset(this,bM,e)})}if(!bC||!bC.ownerDocument){return null}if(bC===bC.ownerDocument.body){return b.offset.bodyOffset(bC)}try{bF=bC.getBoundingClientRect()}catch(bJ){}var bL=bC.ownerDocument,bA=bL.documentElement;if(!bF||!b.contains(bA,bC)){return bF?{top:bF.top,left:bF.left}:{top:0,left:0}}var bG=bL.body,bH=aM(bL),bE=bA.clientTop||bG.clientTop||0,bI=bA.clientLeft||bG.clientLeft||0,bz=bH.pageYOffset||b.support.boxModel&&bA.scrollTop||bG.scrollTop,bD=bH.pageXOffset||b.support.boxModel&&bA.scrollLeft||bG.scrollLeft,bK=bF.top+bz-bE,bB=bF.left+bD-bI;return{top:bK,left:bB}}}else{b.fn.offset=function(bJ){var bD=this[0];if(bJ){return this.each(function(bK){b.offset.setOffset(this,bJ,bK)})}if(!bD||!bD.ownerDocument){return null}if(bD===bD.ownerDocument.body){return b.offset.bodyOffset(bD)}b.offset.initialize();var bG,bA=bD.offsetParent,bz=bD,bI=bD.ownerDocument,bB=bI.documentElement,bE=bI.body,bF=bI.defaultView,e=bF?bF.getComputedStyle(bD,null):bD.currentStyle,bH=bD.offsetTop,bC=bD.offsetLeft;while((bD=bD.parentNode)&&bD!==bE&&bD!==bB){if(b.offset.supportsFixedPosition&&e.position==="fixed"){break}bG=bF?bF.getComputedStyle(bD,null):bD.currentStyle;bH-=bD.scrollTop;bC-=bD.scrollLeft;if(bD===bA){bH+=bD.offsetTop;bC+=bD.offsetLeft;if(b.offset.doesNotAddBorder&&!(b.offset.doesAddBorderForTableAndCells&&Z.test(bD.nodeName))){bH+=parseFloat(bG.borderTopWidth)||0;bC+=parseFloat(bG.borderLeftWidth)||0}bz=bA;bA=bD.offsetParent}if(b.offset.subtractsBorderForOverflowNotVisible&&bG.overflow!=="visible"){bH+=parseFloat(bG.borderTopWidth)||0;bC+=parseFloat(bG.borderLeftWidth)||0}e=bG}if(e.position==="relative"||e.position==="static"){bH+=bE.offsetTop;bC+=bE.offsetLeft}if(b.offset.supportsFixedPosition&&e.position==="fixed"){bH+=Math.max(bB.scrollTop,bE.scrollTop);bC+=Math.max(bB.scrollLeft,bE.scrollLeft)}return{top:bH,left:bC}}}b.offset={initialize:function(){var e=aw.body,bz=aw.createElement("div"),bC,bE,bD,bF,bA=parseFloat(b.css(e,"marginTop"))||0,bB="<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>";b.extend(bz.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});bz.innerHTML=bB;e.insertBefore(bz,e.firstChild);bC=bz.firstChild;bE=bC.firstChild;bF=bC.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(bE.offsetTop!==5);this.doesAddBorderForTableAndCells=(bF.offsetTop===5);bE.style.position="fixed";bE.style.top="20px";this.supportsFixedPosition=(bE.offsetTop===20||bE.offsetTop===15);bE.style.position=bE.style.top="";bC.style.overflow="hidden";bC.style.position="relative";this.subtractsBorderForOverflowNotVisible=(bE.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(e.offsetTop!==bA);e.removeChild(bz);b.offset.initialize=b.noop},bodyOffset:function(e){var bA=e.offsetTop,bz=e.offsetLeft;b.offset.initialize();if(b.offset.doesNotIncludeMarginInBodyOffset){bA+=parseFloat(b.css(e,"marginTop"))||0;bz+=parseFloat(b.css(e,"marginLeft"))||0}return{top:bA,left:bz}},setOffset:function(bB,bK,bE){var bF=b.css(bB,"position");if(bF==="static"){bB.style.position="relative"}var bD=b(bB),bz=bD.offset(),e=b.css(bB,"top"),bI=b.css(bB,"left"),bJ=(bF==="absolute"||bF==="fixed")&&b.inArray("auto",[e,bI])>-1,bH={},bG={},bA,bC;if(bJ){bG=bD.position();bA=bG.top;bC=bG.left}else{bA=parseFloat(e)||0;bC=parseFloat(bI)||0}if(b.isFunction(bK)){bK=bK.call(bB,bE,bz)}if(bK.top!=null){bH.top=(bK.top-bz.top)+bA}if(bK.left!=null){bH.left=(bK.left-bz.left)+bC}if("using" in bK){bK.using.call(bB,bH)}else{bD.css(bH)}}};b.fn.extend({position:function(){if(!this[0]){return null}var bA=this[0],bz=this.offsetParent(),bB=this.offset(),e=af.test(bz[0].nodeName)?{top:0,left:0}:bz.offset();bB.top-=parseFloat(b.css(bA,"marginTop"))||0;bB.left-=parseFloat(b.css(bA,"marginLeft"))||0;e.top+=parseFloat(b.css(bz[0],"borderTopWidth"))||0;e.left+=parseFloat(b.css(bz[0],"borderLeftWidth"))||0;return{top:bB.top-e.top,left:bB.left-e.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||aw.body;while(e&&(!af.test(e.nodeName)&&b.css(e,"position")==="static")){e=e.offsetParent}return e})}});b.each(["Left","Top"],function(bz,e){var bA="scroll"+e;b.fn[bA]=function(bD){var bB,bC;if(bD===P){bB=this[0];if(!bB){return null}bC=aM(bB);return bC?("pageXOffset" in bC)?bC[bz?"pageYOffset":"pageXOffset"]:b.support.boxModel&&bC.document.documentElement[bA]||bC.document.body[bA]:bB[bA]}return this.each(function(){bC=aM(this);if(bC){bC.scrollTo(!bz?bD:b(bC).scrollLeft(),bz?bD:b(bC).scrollTop())}else{this[bA]=bD}})}});function aM(e){return b.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}b.each(["Height","Width"],function(bz,e){var bA=e.toLowerCase();b.fn["inner"+e]=function(){return this[0]?parseFloat(b.css(this[0],bA,"padding")):null};b.fn["outer"+e]=function(bB){return this[0]?parseFloat(b.css(this[0],bA,bB?"margin":"border")):null};b.fn[bA]=function(bC){var bD=this[0];if(!bD){return bC==null?null:this}if(b.isFunction(bC)){return this.each(function(bH){var bG=b(this);bG[bA](bC.call(this,bH,bG[bA]()))})}if(b.isWindow(bD)){var bE=bD.document.documentElement["client"+e];return bD.document.compatMode==="CSS1Compat"&&bE||bD.document.body["client"+e]||bE}else{if(bD.nodeType===9){return Math.max(bD.documentElement["client"+e],bD.body["scroll"+e],bD.documentElement["scroll"+e],bD.body["offset"+e],bD.documentElement["offset"+e])}else{if(bC===P){var bF=b.css(bD,bA),bB=parseFloat(bF);return b.isNaN(bB)?bF:bB}else{return this.css(bA,typeof bC==="string"?bC:bC+"px")}}}}});bg.jQuery=bg.$=b})(window);
/*!
 * jQuery UI 1.8.11
 *
 * 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
 */
(function(d,b){function a(c){return !d(c).parents().andSelf().filter(function(){return d.curCSS(this,"visibility")==="hidden"||d.expr.filters.hidden(this)}).length}d.ui=d.ui||{};if(!d.ui.version){d.extend(d.ui,{version:"1.8.11",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,WINDOWS:91}});d.fn.extend({_focus:d.fn.focus,focus:function(e,c){return typeof e==="number"?this.each(function(){var f=this;setTimeout(function(){d(f).focus();c&&c.call(f)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var c;c=d.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(d.curCSS(this,"position",1))&&/(auto|scroll)/.test(d.curCSS(this,"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(d.curCSS(this,"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!c.length?d(document):c},zIndex:function(e){if(e!==b){return this.css("zIndex",e)}if(this.length){e=d(this[0]);for(var c;e.length&&e[0]!==document;){c=e.css("position");if(c==="absolute"||c==="relative"||c==="fixed"){c=parseInt(e.css("zIndex"),10);if(!isNaN(c)&&c!==0){return c}}e=e.parent()}}return 0},disableSelection:function(){return this.bind((d.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(c){c.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});d.each(["Width","Height"],function(f,c){function m(o,n,h,e){d.each(l,function(){n-=parseFloat(d.curCSS(o,"padding"+this,true))||0;if(h){n-=parseFloat(d.curCSS(o,"border"+this+"Width",true))||0}if(e){n-=parseFloat(d.curCSS(o,"margin"+this,true))||0}});return n}var l=c==="Width"?["Left","Right"]:["Top","Bottom"],k=c.toLowerCase(),g={innerWidth:d.fn.innerWidth,innerHeight:d.fn.innerHeight,outerWidth:d.fn.outerWidth,outerHeight:d.fn.outerHeight};d.fn["inner"+c]=function(e){if(e===b){return g["inner"+c].call(this)}return this.each(function(){d(this).css(k,m(this,e)+"px")})};d.fn["outer"+c]=function(h,e){if(typeof h!=="number"){return g["outer"+c].call(this,h)}return this.each(function(){d(this).css(k,m(this,h,true,e)+"px")})}});d.extend(d.expr[":"],{data:function(e,c,f){return !!d.data(e,f[3])},focusable:function(e){var c=e.nodeName.toLowerCase(),f=d.attr(e,"tabindex");if("area"===c){c=e.parentNode;f=c.name;if(!e.href||!f||c.nodeName.toLowerCase()!=="map"){return false}e=d("img[usemap=#"+f+"]")[0];return !!e&&a(e)}return(/input|select|textarea|button|object/.test(c)?!e.disabled:"a"==c?e.href||!isNaN(f):!isNaN(f))&&a(e)},tabbable:function(e){var c=d.attr(e,"tabindex");return(isNaN(c)||c>=0)&&d(e).is(":focusable")}});d(function(){var e=document.body,c=e.appendChild(c=document.createElement("div"));d.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});d.support.minHeight=c.offsetHeight===100;d.support.selectstart="onselectstart" in c;e.removeChild(c).style.display="none"});d.extend(d.ui,{plugin:{add:function(f,c,h){f=d.ui[f].prototype;for(var g in h){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,h[g]])}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g<c.length;g++){f.options[c[g][0]]&&c[g][1].apply(f.element,h)}}}},contains:function(e,c){return document.compareDocumentPosition?e.compareDocumentPosition(c)&16:e!==c&&e.contains(c)},hasScroll:function(e,c){if(d(e).css("overflow")==="hidden"){return false}c=c&&c==="left"?"scrollLeft":"scrollTop";var f=false;if(e[c]>0){return true}e[c]=1;f=e[c]>0;e[c]=0;return f},isOverAxis:function(e,c,f){return e>c&&e<c+f},isOver:function(f,c,m,l,k,g){return d.ui.isOverAxis(f,m,k)&&d.ui.isOverAxis(c,l,g)}})}})(jQuery);
/*!
 * jQuery UI Widget 1.8.11
 *
 * 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(a,e){if(a.cleanData){var d=a.cleanData;a.cleanData=function(b){for(var g=0,f;(f=b[g])!=null;g++){a(f).triggerHandler("remove")}d(b)}}else{var c=a.fn.remove;a.fn.remove=function(b,f){return this.each(function(){if(!f){if(!b||a.filter(b,[this]).length){a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")})}}return c.call(a(this),b,f)})}}a.widget=function(b,l,k){var h=b.split(".")[0],g;b=b.split(".")[1];g=h+"-"+b;if(!k){k=l;l=a.Widget}a.expr[":"][g]=function(f){return !!a.data(f,b)};a[h]=a[h]||{};a[h][b]=function(f,m){arguments.length&&this._createWidget(f,m)};l=new l;l.options=a.extend(true,{},l.options);a[h][b].prototype=a.extend(true,l,{namespace:h,widgetName:b,widgetEventPrefix:a[h][b].prototype.widgetEventPrefix||b,widgetBaseClass:g},k);a.widget.bridge(b,a[h][b])};a.widget.bridge=function(b,f){a.fn[b]=function(m){var l=typeof m==="string",k=Array.prototype.slice.call(arguments,1),g=this;m=!l&&k.length?a.extend.apply(null,[true,m].concat(k)):m;if(l&&m.charAt(0)==="_"){return g}l?this.each(function(){var n=a.data(this,b),h=n&&a.isFunction(n[m])?n[m].apply(n,k):n;if(h!==n&&h!==e){g=h;return false}}):this.each(function(){var h=a.data(this,b);h?h.option(m||{})._init():a.data(this,b,new f(m,this))});return g}};a.Widget=function(b,f){arguments.length&&this._createWidget(b,f)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,g){a.data(g,this.widgetName,this);this.element=a(g);this.options=a.extend(true,{},this.options,this._getCreateOptions(),b);var f=this;this.element.bind("remove."+this.widgetName,function(){f.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.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(b,g){var f=b;if(arguments.length===0){return a.extend({},this.options)}if(typeof b==="string"){if(g===e){return this.options[b]}f={};f[b]=g}this._setOptions(f);return this},_setOptions:function(b){var f=this;a.each(b,function(h,g){f._setOption(h,g)});return this},_setOption:function(b,f){this.options[b]=f;if(b==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(b,l,k){var h=this.options[b];l=a.Event(l);l.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();k=k||{};if(l.originalEvent){b=a.event.props.length;for(var g;b;){g=a.event.props[--b];l[g]=l.originalEvent[g]}}this.element.trigger(l,k);return !(a.isFunction(h)&&h.call(this.element[0],l,k)===false||l.isDefaultPrevented())}}})(jQuery);
/*!
 * jQuery UI Mouse 1.8.11
 *
 * 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/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(d){return b._mouseDown(d)}).bind("click."+this.widgetName,function(d){if(true===a.data(d.target,b.widgetName+".preventClickEvent")){a.removeData(d.target,b.widgetName+".preventClickEvent");d.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(!b.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(b);this._mouseDownEvent=b;var h=this,g=b.which==1,d=typeof this.options.cancel=="string"?a(b.target).parents().add(b.target).filter(this.options.cancel).length:false;if(!g||d||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){h.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==false;if(!this._mouseStarted){b.preventDefault();return true}}true===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(c){return h._mouseMove(c)};this._mouseUpDelegate=function(c){return h._mouseUp(c)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.preventDefault();return b.originalEvent.mouseHandled=true}},_mouseMove:function(b){if(a.browser.msie&&!(document.documentMode>=9)&&!b.button){return this._mouseUp(b)}if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false)?this._mouseDrag(b):this._mouseUp(b)}return !this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",true);this._mouseStop(b)}return false},_mouseDistanceMet:function(b){return Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))){this.element[0].style.position="relative"}this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(d){var c=this.options;if(this.helper||c.disabled||a(d.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(d);if(!this.handle){return false}return true},_mouseStart:function(d){var c=this.options;this.helper=this._createHelper(d);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);c.containment&&this._setContainment();if(this._trigger("start",d)===false){this._clear();return false}this._cacheHelperProportions();a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,d);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(d,true);return true},_mouseDrag:function(d,c){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");if(!c){c=this._uiHash();if(this._trigger("drag",d,c)===false){this._mouseUp({});return false}this.position=c.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}a.ui.ddmanager&&a.ui.ddmanager.drag(this,d);return false},_mouseStop:function(e){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,e)}if(this.dropped){d=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original"){return false}if(this.options.revert=="invalid"&&!d||this.options.revert=="valid"&&d||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)){var f=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",e)!==false&&f._clear()})}else{this._trigger("stop",e)!==false&&this._clear()}return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(d){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==d.target){c=true}});return c},_createHelper:function(d){var c=this.options;d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[d])):c.helper=="clone"?this.element.clone():this.element;d.parents("body").length||d.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo);d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute");return d},_adjustOffsetFromHelper:function(b){if(typeof b=="string"){b=b.split(" ")}if(a.isArray(b)){b={left:+b[0],top:+b[1]||0}}if("left" in b){this.offset.click.left=b.left+this.margins.left}if("right" in b){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if("top" in b){this.offset.click.top=b.top+this.margins.top}if("bottom" in b){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[(e.containment=="document"?0:a(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(e.containment=="document"?0:a(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(e.containment=="document"?0:a(window).scrollLeft())+a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(e.containment=="document"?0:a(window).scrollTop())+(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(e.containment)&&e.containment.constructor!=Array){var d=a(e.containment)[0];if(d){e=a(e.containment).offset();var f=a(d).css("overflow")!="hidden";this.containment=[e.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0),e.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0),e.left+(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,e.top+(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom]}}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(e,d){if(!d){d=this.position}e=e=="absolute"?1:-1;var h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(h[0].tagName);return{top:d.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:h.scrollTop())*e),left:d.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:h.scrollLeft())*e)}},_generatePosition:function(h){var d=this.options,n=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=/(html|body)/i.test(n[0].tagName),m=h.pageX,k=h.pageY;if(this.originalPosition){if(this.containment){if(h.pageX-this.offset.click.left<this.containment[0]){m=this.containment[0]+this.offset.click.left}if(h.pageY-this.offset.click.top<this.containment[1]){k=this.containment[1]+this.offset.click.top}if(h.pageX-this.offset.click.left>this.containment[2]){m=this.containment[2]+this.offset.click.left}if(h.pageY-this.offset.click.top>this.containment[3]){k=this.containment[3]+this.offset.click.top}}if(d.grid){k=this.originalPageY+Math.round((k-this.originalPageY)/d.grid[1])*d.grid[1];k=this.containment?!(k-this.offset.click.top<this.containment[1]||k-this.offset.click.top>this.containment[3])?k:!(k-this.offset.click.top<this.containment[1])?k-d.grid[1]:k+d.grid[1]:k;m=this.originalPageX+Math.round((m-this.originalPageX)/d.grid[0])*d.grid[0];m=this.containment?!(m-this.offset.click.left<this.containment[0]||m-this.offset.click.left>this.containment[2])?m:!(m-this.offset.click.left<this.containment[0])?m-d.grid[0]:m+d.grid[0]:m}}return{top:k-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():l?0:n.scrollTop()),left:m-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:n.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(e,d,f){f=f||this._uiHash();a.ui.plugin.call(this,e,[d,f]);if(e=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.Widget.prototype._trigger.call(this,e,d,f)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.11"});a.ui.plugin.add("draggable","connectToSortable",{start:function(g,d){var l=a(this).data("draggable"),h=l.options,k=a.extend({},d,{item:l.element});l.sortables=[];a(h.connectToSortable).each(function(){var b=a.data(this,"sortable");if(b&&!b.options.disabled){l.sortables.push({instance:b,shouldRevert:b.options.revert});b.refreshPositions();b._trigger("activate",g,k)}})},stop:function(e,d){var h=a(this).data("draggable"),g=a.extend({},d,{item:h.element});a.each(h.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;h.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(e);this.instance.options.helper=this.instance.options._helper;h.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",e,g)}})},drag:function(e,d){var h=a(this).data("draggable"),g=this;a.each(h.sortables,function(){this.instance.positionAbs=h.positionAbs;this.instance.helperProportions=h.helperProportions;this.instance.offset.click=h.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(g).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return d.helper[0]};e.target=this.instance.currentItem[0];this.instance._mouseCapture(e,true);this.instance._mouseStart(e,true,true);this.instance.offset.click.top=h.offset.click.top;this.instance.offset.click.left=h.offset.click.left;this.instance.offset.parent.left-=h.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=h.offset.parent.top-this.instance.offset.parent.top;h._trigger("toSortable",e);h.dropped=this.instance.element;h.currentItem=h.element;this.instance.fromOutside=h}this.instance.currentItem&&this.instance._mouseDrag(e)}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",e,this.instance._uiHash(this.instance));this.instance._mouseStop(e,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();h._trigger("fromSortable",e);h.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var d=a("body"),c=a(this).data("draggable").options;if(d.css("cursor")){c._cursor=d.css("cursor")}d.css("cursor",c.cursor)},stop:function(){var b=a(this).data("draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}});a.ui.plugin.add("draggable","iframeFix",{start:function(){var b=a(this).data("draggable").options;a(b.iframeFix===true?"iframe":b.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})},stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(d,c){d=a(c.helper);c=a(this).data("draggable").options;if(d.css("opacity")){c._opacity=d.css("opacity")}d.css("opacity",c.opacity)},stop:function(d,c){d=a(this).data("draggable").options;d._opacity&&a(c.helper).css("opacity",d._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset()}},drag:function(e){var d=a(this).data("draggable"),h=d.options,g=false;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!h.axis||h.axis!="x"){if(d.overflowOffset.top+d.scrollParent[0].offsetHeight-e.pageY<h.scrollSensitivity){d.scrollParent[0].scrollTop=g=d.scrollParent[0].scrollTop+h.scrollSpeed}else{if(e.pageY-d.overflowOffset.top<h.scrollSensitivity){d.scrollParent[0].scrollTop=g=d.scrollParent[0].scrollTop-h.scrollSpeed}}}if(!h.axis||h.axis!="y"){if(d.overflowOffset.left+d.scrollParent[0].offsetWidth-e.pageX<h.scrollSensitivity){d.scrollParent[0].scrollLeft=g=d.scrollParent[0].scrollLeft+h.scrollSpeed}else{if(e.pageX-d.overflowOffset.left<h.scrollSensitivity){d.scrollParent[0].scrollLeft=g=d.scrollParent[0].scrollLeft-h.scrollSpeed}}}}else{if(!h.axis||h.axis!="x"){if(e.pageY-a(document).scrollTop()<h.scrollSensitivity){g=a(document).scrollTop(a(document).scrollTop()-h.scrollSpeed)}else{if(a(window).height()-(e.pageY-a(document).scrollTop())<h.scrollSensitivity){g=a(document).scrollTop(a(document).scrollTop()+h.scrollSpeed)}}}if(!h.axis||h.axis!="y"){if(e.pageX-a(document).scrollLeft()<h.scrollSensitivity){g=a(document).scrollLeft(a(document).scrollLeft()-h.scrollSpeed)}else{if(a(window).width()-(e.pageX-a(document).scrollLeft())<h.scrollSensitivity){g=a(document).scrollLeft(a(document).scrollLeft()+h.scrollSpeed)}}}}g!==false&&a.ui.ddmanager&&!h.dropBehaviour&&a.ui.ddmanager.prepareOffsets(d,e)}});a.ui.plugin.add("draggable","snap",{start:function(){var d=a(this).data("draggable"),c=d.options;d.snapElements=[];a(c.snap.constructor!=String?c.snap.items||":data(draggable)":c.snap).each(function(){var e=a(this),b=e.offset();this!=d.element[0]&&d.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:b.top,left:b.left})})},drag:function(M,L){for(var K=a(this).data("draggable"),I=K.options,J=I.snapTolerance,H=L.offset.left,A=H+K.helperProportions.width,B=L.offset.top,z=B+K.helperProportions.height,G=K.snapElements.length-1;G>=0;G--){var F=K.snapElements[G].left,D=F+K.snapElements[G].width,E=K.snapElements[G].top,C=E+K.snapElements[G].height;if(F-J<H&&H<D+J&&E-J<B&&B<C+J||F-J<H&&H<D+J&&E-J<z&&z<C+J||F-J<A&&A<D+J&&E-J<B&&B<C+J||F-J<A&&A<D+J&&E-J<z&&z<C+J){if(I.snapMode!="inner"){var y=Math.abs(E-z)<=J,x=Math.abs(C-B)<=J,w=Math.abs(F-A)<=J,u=Math.abs(D-H)<=J;if(y){L.position.top=K._convertPositionTo("relative",{top:E-K.helperProportions.height,left:0}).top-K.margins.top}if(x){L.position.top=K._convertPositionTo("relative",{top:C,left:0}).top-K.margins.top}if(w){L.position.left=K._convertPositionTo("relative",{top:0,left:F-K.helperProportions.width}).left-K.margins.left}if(u){L.position.left=K._convertPositionTo("relative",{top:0,left:D}).left-K.margins.left}}var d=y||x||w||u;if(I.snapMode!="outer"){y=Math.abs(E-B)<=J;x=Math.abs(C-z)<=J;w=Math.abs(F-H)<=J;u=Math.abs(D-A)<=J;if(y){L.position.top=K._convertPositionTo("relative",{top:E,left:0}).top-K.margins.top}if(x){L.position.top=K._convertPositionTo("relative",{top:C-K.helperProportions.height,left:0}).top-K.margins.top}if(w){L.position.left=K._convertPositionTo("relative",{top:0,left:F}).left-K.margins.left}if(u){L.position.left=K._convertPositionTo("relative",{top:0,left:D-K.helperProportions.width}).left-K.margins.left}}if(!K.snapElements[G].snapping&&(y||x||w||u||d)){K.options.snap.snap&&K.options.snap.snap.call(K.element,M,a.extend(K._uiHash(),{snapItem:K.snapElements[G].item}))}K.snapElements[G].snapping=y||x||w||u||d}else{K.snapElements[G].snapping&&K.options.snap.release&&K.options.snap.release.call(K.element,M,a.extend(K._uiHash(),{snapItem:K.snapElements[G].item}));K.snapElements[G].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var d=a(this).data("draggable").options;d=a.makeArray(a(d.stack)).sort(function(e,b){return(parseInt(a(e).css("zIndex"),10)||0)-(parseInt(a(b).css("zIndex"),10)||0)});if(d.length){var c=parseInt(d[0].style.zIndex)||0;a(d).each(function(b){this.style.zIndex=c+b});this[0].style.zIndex=c+d.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(d,c){d=a(c.helper);c=a(this).data("draggable").options;if(d.css("zIndex")){c._zIndex=d.css("zIndex")}d.css("zIndex",c.zIndex)},stop:function(d,c){d=a(this).data("draggable").options;d._zIndex&&a(c.helper).css("zIndex",d._zIndex)}})})(jQuery);(function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var d=this.options,c=d.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(c)?c:function(b){return b.is(c)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[d.scope]=a.ui.ddmanager.droppables[d.scope]||[];a.ui.ddmanager.droppables[d.scope].push(this);d.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var d=a.ui.ddmanager.droppables[this.options.scope],c=0;c<d.length;c++){d[c]==this&&d.splice(c,1)}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(d,c){if(d=="accept"){this.accept=a.isFunction(c)?c:function(b){return b.is(c)}}a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(d){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);c&&this._trigger("activate",d,this.ui(c))},_deactivate:function(d){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);c&&this._trigger("deactivate",d,this.ui(c))},_over:function(d){var c=a.ui.ddmanager.current;if(!(!c||(c.currentItem||c.element)[0]==this.element[0])){if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger("over",d,this.ui(c))}}},_out:function(d){var c=a.ui.ddmanager.current;if(!(!c||(c.currentItem||c.element)[0]==this.element[0])){if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",d,this.ui(c))}}},_drop:function(f,d){var h=d||a.ui.ddmanager.current;if(!h||(h.currentItem||h.element)[0]==this.element[0]){return false}var g=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var b=a.data(this,"droppable");if(b.options.greedy&&!b.options.disabled&&b.options.scope==h.options.scope&&b.accept.call(b.element[0],h.currentItem||h.element)&&a.ui.intersect(h,a.extend(b,{offset:b.element.offset()}),b.options.tolerance)){g=true;return false}});if(g){return false}if(this.accept.call(this.element[0],h.currentItem||h.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",f,this.ui(h));return this.element}return false},ui:function(b){return{draggable:b.currentItem||b.element,helper:b.helper,position:b.position,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.11"});a.ui.intersect=function(x,w,u){if(!w.offset){return false}var t=(x.positionAbs||x.position.absolute).left,q=t+x.helperProportions.width,s=(x.positionAbs||x.position.absolute).top,p=s+x.helperProportions.height,o=w.offset.left,m=o+w.proportions.width,n=w.offset.top,d=n+w.proportions.height;switch(u){case"fit":return o<=t&&q<=m&&n<=s&&p<=d;case"intersect":return o<t+x.helperProportions.width/2&&q-x.helperProportions.width/2<m&&n<s+x.helperProportions.height/2&&p-x.helperProportions.height/2<d;case"pointer":return a.ui.isOver((x.positionAbs||x.position.absolute).top+(x.clickOffset||x.offset.click).top,(x.positionAbs||x.position.absolute).left+(x.clickOffset||x.offset.click).left,n,o,w.proportions.height,w.proportions.width);case"touch":return(s>=n&&s<=d||p>=n&&p<=d||s<n&&p>d)&&(t>=o&&t<=m||q>=o&&q<=m||t<o&&q>m);default:return false}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(k,d){var p=a.ui.ddmanager.droppables[k.options.scope]||[],o=d?d.type:null,m=(k.currentItem||k.element).find(":data(droppable)").andSelf(),n=0;k:for(;n<p.length;n++){if(!(p[n].options.disabled||k&&!p[n].accept.call(p[n].element[0],k.currentItem||k.element))){for(var l=0;l<m.length;l++){if(m[l]==p[n].element[0]){p[n].proportions.height=0;continue k}}p[n].visible=p[n].element.css("display")!="none";if(p[n].visible){o=="mousedown"&&p[n]._activate.call(p[n],d);p[n].offset=p[n].element.offset();p[n].proportions={width:p[n].element[0].offsetWidth,height:p[n].element[0].offsetHeight}}}}},drop:function(e,d){var f=false;a.each(a.ui.ddmanager.droppables[e.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&a.ui.intersect(e,this,this.options.tolerance)){f=f||this._drop.call(this,d)}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)){this.isout=1;this.isover=0;this._deactivate.call(this,d)}}});return f},drag:function(d,c){d.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(d,c);a.each(a.ui.ddmanager.droppables[d.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var h=a.ui.intersect(d,this,this.options.tolerance);if(h=!h&&this.isover==1?"isout":h&&this.isover==0?"isover":null){var f;if(this.options.greedy){var b=this.element.parents(":data(droppable):eq(0)");if(b.length){f=a.data(b[0],"droppable");f.greedyChild=h=="isover"?1:0}}if(f&&h=="isover"){f.isover=0;f.isout=1;f._out.call(f,c)}this[h]=1;this[h=="isout"?"isover":"isout"]=0;this[h=="isover"?"_over":"_out"].call(this,c);if(f&&h=="isout"){f.isout=0;f.isover=1;f._over.call(f,c)}}}})}}})(jQuery);(function(a){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var b=this.items.length-1;b>=0;b--){this.items[b].item.removeData("sortable-item")}return this},_setOption:function(d,c){if(d==="disabled"){this.options[d]=c;this.widget()[c?"addClass":"removeClass"]("ui-sortable-disabled")}else{a.Widget.prototype._setOption.apply(this,arguments)}},_mouseCapture:function(g,d){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(g);var l=null,k=this;a(g.target).parents().each(function(){if(a.data(this,"sortable-item")==k){l=a(this);return false}});if(a.data(g.target,"sortable-item")==k){l=a(g.target)}if(!l){return false}if(this.options.handle&&!d){var h=false;a(this.options.handle,l).find("*").andSelf().each(function(){if(this==g.target){h=true}});if(!h){return false}}this.currentItem=l;this._removeCurrentsFromItems();return true},_mouseStart:function(f,d,h){d=this.options;var g=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(f);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,{click:{left:f.pageX-this.offset.left,top:f.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(f);this.originalPageX=f.pageX;this.originalPageY=f.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();d.containment&&this._setContainment();if(d.cursor){if(a("body").css("cursor")){this._storedCursor=a("body").css("cursor")}a("body").css("cursor",d.cursor)}if(d.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",d.opacity)}if(d.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",d.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",f,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!h){for(h=this.containers.length-1;h>=0;h--){this.containers[h]._trigger("activate",f,g._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,f);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(f);return true},_mouseDrag:function(g){this.position=this._generatePosition(g);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var d=this.options,l=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-g.pageY<d.scrollSensitivity){this.scrollParent[0].scrollTop=l=this.scrollParent[0].scrollTop+d.scrollSpeed}else{if(g.pageY-this.overflowOffset.top<d.scrollSensitivity){this.scrollParent[0].scrollTop=l=this.scrollParent[0].scrollTop-d.scrollSpeed}}if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-g.pageX<d.scrollSensitivity){this.scrollParent[0].scrollLeft=l=this.scrollParent[0].scrollLeft+d.scrollSpeed}else{if(g.pageX-this.overflowOffset.left<d.scrollSensitivity){this.scrollParent[0].scrollLeft=l=this.scrollParent[0].scrollLeft-d.scrollSpeed}}}else{if(g.pageY-a(document).scrollTop()<d.scrollSensitivity){l=a(document).scrollTop(a(document).scrollTop()-d.scrollSpeed)}else{if(a(window).height()-(g.pageY-a(document).scrollTop())<d.scrollSensitivity){l=a(document).scrollTop(a(document).scrollTop()+d.scrollSpeed)}}if(g.pageX-a(document).scrollLeft()<d.scrollSensitivity){l=a(document).scrollLeft(a(document).scrollLeft()-d.scrollSpeed)}else{if(a(window).width()-(g.pageX-a(document).scrollLeft())<d.scrollSensitivity){l=a(document).scrollLeft(a(document).scrollLeft()+d.scrollSpeed)}}}l!==false&&a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,g)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}for(d=this.items.length-1;d>=0;d--){l=this.items[d];var k=l.item[0],h=this._intersectsWithPointer(l);if(h){if(k!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=k&&!a.ui.contains(this.placeholder[0],k)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],k):true)){this.direction=h==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(l)){this._rearrange(g,l)}else{break}this._trigger("change",g,this._uiHash());break}}}this._contactContainers(g);a.ui.ddmanager&&a.ui.ddmanager.drag(this,g);this._trigger("sort",g,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(e,d){if(e){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,e);if(this.options.revert){var f=this;d=f.placeholder.offset();f.reverting=true;a(this.helper).animate({left:d.left-this.offset.parent.left-f.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-f.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){f._clear(e)})}else{this._clear(e,d)}return false}},cancel:function(){var d=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var c=this.containers.length-1;c>=0;c--){this.containers[c]._trigger("deactivate",null,d._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",null,d._uiHash(this));this.containers[c].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(e){var d=this._getItemsAsjQuery(e&&e.connected),f=[];e=e||{};a(d).each(function(){var b=(a(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);if(b){f.push((e.key||b[1]+"[]")+"="+(e.key&&e.expression?b[1]:b[2]))}});!f.length&&e.key&&f.push(e.key+"=");return f.join("&")},toArray:function(e){var d=this._getItemsAsjQuery(e&&e.connected),f=[];e=e||{};d.each(function(){f.push(a(e.item||this).attr(e.attribute||"id")||"")});return f},_intersectsWith:function(x){var w=this.positionAbs.left,u=w+this.helperProportions.width,t=this.positionAbs.top,s=t+this.helperProportions.height,q=x.left,p=q+x.width,o=x.top,m=o+x.height,n=this.offset.click.top,d=this.offset.click.left;n=t+n>o&&t+n<m&&w+d>q&&w+d<p;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>x[this.floating?"width":"height"]?n:q<w+this.helperProportions.width/2&&u-this.helperProportions.width/2<p&&o<t+this.helperProportions.height/2&&s-this.helperProportions.height/2<m},_intersectsWithPointer:function(e){var d=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height);e=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);d=d&&e;e=this._getDragVerticalDirection();var f=this._getDragHorizontalDirection();if(!d){return false}return this.floating?f&&f=="right"||e=="down"?2:1:e&&(e=="down"?2:1)},_intersectsWithSides:function(f){var d=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,f.top+f.height/2,f.height);f=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,f.left+f.width/2,f.width);var h=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();return this.floating&&g?g=="right"&&f||g=="left"&&!f:h&&(h=="down"&&d||h=="up"&&!d)},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions();return this},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(k){var d=[],p=[],o=this._connectWith();if(o&&k){for(k=o.length-1;k>=0;k--){for(var n=a(o[k]),m=n.length-1;m>=0;m--){var l=a.data(n[m],"sortable");if(l&&l!=this&&!l.options.disabled){p.push([a.isFunction(l.options.items)?l.options.items.call(l.element):a(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l])}}}}p.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(k=p.length-1;k>=0;k--){p[k][0].each(function(){d.push(this)})}return a(d)},_removeCurrentsFromItems:function(){for(var e=this.currentItem.find(":data(sortable-item)"),d=0;d<this.items.length;d++){for(var f=0;f<e.length;f++){e[f]==this.items[d].item[0]&&this.items.splice(d,1)}}},_refreshItems:function(k){this.items=[];this.containers=[this];var d=this.items,q=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],k,{item:this.currentItem}):a(this.options.items,this.element),this]],p=this._connectWith();if(p){for(var o=p.length-1;o>=0;o--){for(var n=a(p[o]),m=n.length-1;m>=0;m--){var l=a.data(n[m],"sortable");if(l&&l!=this&&!l.options.disabled){q.push([a.isFunction(l.options.items)?l.options.items.call(l.element[0],k,{item:this.currentItem}):a(l.options.items,l.element),l]);this.containers.push(l)}}}}for(o=q.length-1;o>=0;o--){k=q[o][1];p=q[o][0];m=0;for(n=p.length;m<n;m++){l=a(p[m]);l.data("sortable-item",k);d.push({item:l,instance:k,width:0,height:0,left:0,top:0})}}},refreshPositions:function(f){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var d=this.items.length-1;d>=0;d--){var h=this.items[d],g=this.options.toleranceElement?a(this.options.toleranceElement,h.item):h.item;if(!f){h.width=g.outerWidth();h.height=g.outerHeight()}g=g.offset();h.left=g.left;h.top=g.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(d=this.containers.length-1;d>=0;d--){g=this.containers[d].element.offset();this.containers[d].containerCache.left=g.left;this.containers[d].containerCache.top=g.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}}return this},_createPlaceholder:function(f){var d=f||this,h=d.options;if(!h.placeholder||h.placeholder.constructor==String){var g=h.placeholder;h.placeholder={element:function(){var b=a(document.createElement(d.currentItem[0].nodeName)).addClass(g||d.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!g){b.style.visibility="hidden"}return b},update:function(c,b){if(!(g&&!h.forcePlaceholderSize)){b.height()||b.height(d.currentItem.innerHeight()-parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10));b.width()||b.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||0,10))}}}}d.placeholder=a(h.placeholder.element.call(d.element,d.currentItem));d.currentItem.after(d.placeholder);h.placeholder.update(d,d.placeholder)},_contactContainers:function(k){for(var d=null,p=null,o=this.containers.length-1;o>=0;o--){if(!a.ui.contains(this.currentItem[0],this.containers[o].element[0])){if(this._intersectsWith(this.containers[o].containerCache)){if(!(d&&a.ui.contains(this.containers[o].element[0],d.element[0]))){d=this.containers[o];p=o}}else{if(this.containers[o].containerCache.over){this.containers[o]._trigger("out",k,this._uiHash(this));this.containers[o].containerCache.over=0}}}}if(d){if(this.containers.length===1){this.containers[p]._trigger("over",k,this._uiHash(this));this.containers[p].containerCache.over=1}else{if(this.currentContainer!=this.containers[p]){d=10000;o=null;for(var n=this.positionAbs[this.containers[p].floating?"left":"top"],m=this.items.length-1;m>=0;m--){if(a.ui.contains(this.containers[p].element[0],this.items[m].item[0])){var l=this.items[m][this.containers[p].floating?"left":"top"];if(Math.abs(l-n)<d){d=Math.abs(l-n);o=this.items[m]}}}if(o||this.options.dropOnEmpty){this.currentContainer=this.containers[p];o?this._rearrange(k,o,null,true):this._rearrange(k,null,this.containers[p].element,true);this._trigger("change",k,this._uiHash());this.containers[p]._trigger("change",k,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[p]._trigger("over",k,this._uiHash(this));this.containers[p].containerCache.over=1}}}}},_createHelper:function(d){var c=this.options;d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[d,this.currentItem])):c.helper=="clone"?this.currentItem.clone():this.currentItem;d.parents("body").length||a(c.appendTo!="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]);if(d[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(d[0].style.width==""||c.forceHelperSize){d.width(this.currentItem.width())}if(d[0].style.height==""||c.forceHelperSize){d.height(this.currentItem.height())}return d},_adjustOffsetFromHelper:function(b){if(typeof b=="string"){b=b.split(" ")}if(a.isArray(b)){b={left:+b[0],top:+b[1]||0}}if("left" in b){this.offset.click.left=b.left+this.margins.left}if("right" in b){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if("top" in b){this.offset.click.top=b.top+this.margins.top}if("bottom" in b){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(e.containment)){var d=a(e.containment)[0];e=a(e.containment).offset();var f=a(d).css("overflow")!="hidden";this.containment=[e.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,e.left+(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(f,d){if(!d){d=this.position}f=f=="absolute"?1:-1;var h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(h[0].tagName);return{top:d.top+this.offset.relative.top*f+this.offset.parent.top*f-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:h.scrollTop())*f),left:d.left+this.offset.relative.left*f+this.offset.parent.left*f-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:h.scrollLeft())*f)}},_generatePosition:function(h){var d=this.options,n=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,m=/(html|body)/i.test(n[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var l=h.pageX,k=h.pageY;if(this.originalPosition){if(this.containment){if(h.pageX-this.offset.click.left<this.containment[0]){l=this.containment[0]+this.offset.click.left}if(h.pageY-this.offset.click.top<this.containment[1]){k=this.containment[1]+this.offset.click.top}if(h.pageX-this.offset.click.left>this.containment[2]){l=this.containment[2]+this.offset.click.left}if(h.pageY-this.offset.click.top>this.containment[3]){k=this.containment[3]+this.offset.click.top}}if(d.grid){k=this.originalPageY+Math.round((k-this.originalPageY)/d.grid[1])*d.grid[1];k=this.containment?!(k-this.offset.click.top<this.containment[1]||k-this.offset.click.top>this.containment[3])?k:!(k-this.offset.click.top<this.containment[1])?k-d.grid[1]:k+d.grid[1]:k;l=this.originalPageX+Math.round((l-this.originalPageX)/d.grid[0])*d.grid[0];l=this.containment?!(l-this.offset.click.left<this.containment[0]||l-this.offset.click.left>this.containment[2])?l:!(l-this.offset.click.left<this.containment[0])?l-d.grid[0]:l+d.grid[0]:l}}return{top:k-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():m?0:n.scrollTop()),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():m?0:n.scrollLeft())}},_rearrange:function(h,d,n,m){n?n[0].appendChild(this.placeholder[0]):d.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?d.item[0]:d.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var l=this,k=this.counter;window.setTimeout(function(){k==l.counter&&l.refreshPositions(!m)},0)},_clear:function(f,d){this.reverting=false;var h=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var g in this._storedCSS){if(this._storedCSS[g]=="auto"||this._storedCSS[g]=="static"){this._storedCSS[g]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}this.fromOutside&&!d&&h.push(function(b){this._trigger("receive",b,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!d){h.push(function(b){this._trigger("update",b,this._uiHash())})}if(!a.ui.contains(this.element[0],this.currentItem[0])){d||h.push(function(b){this._trigger("remove",b,this._uiHash())});for(g=this.containers.length-1;g>=0;g--){if(a.ui.contains(this.containers[g].element[0],this.currentItem[0])&&!d){h.push(function(b){return function(c){b._trigger("receive",c,this._uiHash(this))}}.call(this,this.containers[g]));h.push(function(b){return function(c){b._trigger("update",c,this._uiHash(this))}}.call(this,this.containers[g]))}}}for(g=this.containers.length-1;g>=0;g--){d||h.push(function(b){return function(c){b._trigger("deactivate",c,this._uiHash(this))}}.call(this,this.containers[g]));if(this.containers[g].containerCache.over){h.push(function(b){return function(c){b._trigger("out",c,this._uiHash(this))}}.call(this,this.containers[g]));this.containers[g].containerCache.over=0}}this._storedCursor&&a("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!d){this._trigger("beforeStop",f,this._uiHash());for(g=0;g<h.length;g++){h[g].call(this,f)}this._trigger("stop",f,this._uiHash())}return false}d||this._trigger("beforeStop",f,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!d){for(g=0;g<h.length;g++){h[g].call(this,f)}this._trigger("stop",f,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(d){var c=d||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:d?d.element:null}}});a.extend(a.ui.sortable,{version:"1.8.11"})})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,n,m){var k=1.70158;var l=0;var g=n;if(h==0){return e}if((h/=m)==1){return e+n}if(!l){l=m*0.3}if(g<Math.abs(n)){g=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*m-k)*(2*Math.PI)/l))+e},easeOutElastic:function(f,h,e,n,m){var k=1.70158;var l=0;var g=n;if(h==0){return e}if((h/=m)==1){return e+n}if(!l){l=m*0.3}if(g<Math.abs(n)){g=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/g)}return g*Math.pow(2,-10*h)*Math.sin((h*m-k)*(2*Math.PI)/l)+n+e},easeInOutElastic:function(f,h,e,n,m){var k=1.70158;var l=0;var g=n;if(h==0){return e}if((h/=m/2)==2){return e+n}if(!l){l=m*(0.3*1.5)}if(g<Math.abs(n)){g=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*m-k)*(2*Math.PI)/l))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*m-k)*(2*Math.PI)/l)*0.5+n+e},easeInBack:function(e,f,a,k,h,g){if(g==undefined){g=1.70158}return k*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,k,h,g){if(g==undefined){g=1.70158}return k*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,k,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return k/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return k/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});jQuery.fx.interval=26;var bskyb={};bskyb.cookie={get:function(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null},set:function(c,f,h,e){if(h&&h!=""){var b=new Date();b.setTime(b.getTime()+(h*24*60*60*1000));var a="; expires="+b.toGMTString()}else{a=""}var g="domain=";if(!e||e==" "){g=" "}document.cookie=c+"="+f+a+";"+g+e+"; path=/"},kill:function(){}};window.getCookie=bskyb.cookie.get,window.setCookie=bskyb.cookie.set;(function(c){var a=[];function b(e,g,f){if(e.match(/undefined/)){e=""}var d=a[e]||(a[e]={loaded:false,callbacks:[]});if(d.loaded){return g.apply(f)}d.callbacks.push({fn:g,context:f});if(d.callbacks.length==1){c.ajax({type:"GET",url:e,dataType:"script",async:false,cache:true,complete:function(h){d.loaded=true;c.each(d.callbacks,function(){try{this.fn.apply(this.context)}catch(k){}});d.callbacks.length=0}})}}c.getScripts=function(f,h,g,e){if(typeof e==="undefined"&&g&&g.hasOwnProperty("parallel")){e=g;g=window}e=c.extend({parallel:true},e);if(!c.isArray(f)){return b(f,h,g)}var d=0;if(e.parallel){return c.each(f,function(){b(this,function(){if(++d==f.length){h.apply(g)}})})}(function(){if(d==f.length){return h.apply(g)}b(f[d++],arguments.callee)})()};c.getScripts.registerLoaded=function(d){c.each(c.makeArray(d),function(){(a[d]||(a[d]={})).loaded=true})}})(jQuery);(function(d,g){var f=d.jQuery||d.Cowboy||(d.Cowboy={}),e;f.throttle=e=function(m,l,a,b){var c,n=0;if(typeof l!=="boolean"){b=a;a=l;l=g}function k(){var s=this,h=+new Date()-n,t=arguments;function p(){n=+new Date();a.apply(s,t)}function q(){c=g}if(b&&!c){p()}c&&clearTimeout(c);if(b===g&&h>m){p()}else{if(l!==true){c=setTimeout(b?q:p,b===g?m-h:m)}}}if(f.guid){k.guid=a.guid=a.guid||f.guid++}return k};f.debounce=function(c,b,a){return a===g?e(c,b,false):e(c,a,b!==false)}})(this);(function(a){a.belowthefold=function(c,d){var b=a(window).height()+a(window).scrollTop();return b<=a(c).offset().top-d.threshold};a.abovethetop=function(b,c){var d=a(window).scrollTop();return d>=a(b).offset().top+a(b).height()-c.threshold};a.rightofscreen=function(c,d){var b=a(window).width()+a(window).scrollLeft();return b<=a(c).offset().left-d.threshold};a.leftofscreen=function(b,c){var d=a(window).scrollLeft();return d>=a(b).offset().left+a(b).width()-c.threshold};a.inviewport=function(d,e){var c=a(d);var k=c.offset();var h=a(window);var g=h.scrollTop();var b=e.threshold;if(k.top-b<g){if(k.top+c.height()+b>=g){}else{return false}}else{if(k.top-b<=g+h.height()){}else{return false}}var f=h.scrollLeft();if(k.left-b<f){if(k.left+c.width()+b>=f){}else{return false}}else{if(k.left-b<=f+h.width()){}else{return false}}return true};a.extend(a.expr[":"],{"below-the-fold":function(c,d,b){return a.belowthefold(c,{threshold:0})},"above-the-top":function(c,d,b){return a.abovethetop(c,{threshold:0})},"left-of-screen":function(c,d,b){return a.leftofscreen(c,{threshold:0})},"right-of-screen":function(c,d,b){return a.rightofscreen(c,{threshold:0})},"in-viewport":function(c,d,b){return a.inviewport(c,{threshold:0})}})})(jQuery);(function($){var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s={array:function(x){var a=["["],b,f,i,l=x.length,v;for(i=0;i<l;i+=1){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=","}a[a.length]=v;b=true}}}a[a.length]="]";return a.join("")},"boolean":function(x){return String(x)},"null":function(x){return"null"},number:function(x){return isFinite(x)?String(x):"null"},object:function(x){if(x){if(x instanceof Array){return s.array(x)}var a=["{"],b,f,i,v;for(i in x){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=","}a.push(s.string(i),":",v);b=true}}}a[a.length]="}";return a.join("")}return"null"},string:function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c}c=b.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})}return'"'+x+'"'}};$.toJSON=function(v){var f=isNaN(v)?s[typeof v]:s.number;if(f){return f(v)}};$.evalJSON=function(v,safe){if(safe===undefined){safe=$.evalJSON.safe}if(safe&&!/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/.test(v)){return undefined}return eval("("+v+")")};$.evalJSON.safe=false})(jQuery);(function(a){a.event.special.load={add:function(b){if(this.nodeType===1&&this.tagName.toLowerCase()==="img"&&this.src!==""){if(this.complete||this.readyState===4){b.handler.apply(this)}else{if(this.readyState==="uninitialized"&&this.src.indexOf("data:")===0){a(this).trigger("error")}else{a(this).bind("load",b.handler)}}}}}}(jQuery));jQuery.fn.reverse=function(){return this.pushStack(this.get().reverse(),arguments)};document.write("<style type=text/css> .js-inv{visibility:hidden} .js-hdn,.tabs-hide{display:none} div.ms-select ul {z-index:20001;display:none;position:absolute;min-height:80px;max-height:200px;_height:200px;} * object{display:inline!important} .js-preload .carousel-hero-holder, .js-preload .carousel-list-holder {visibility:hidden} div.v5-tabs-t6 {display:block!important;} .v5-select .select-body{position:absolute;display:none }</style>");if(navigator.userAgent.match(/iP/g)){document.write("<style type=text/css>body button.v5-btn-t2 div,body button.v5-btn-t1 div{margin-right:-5px!important}.v5-form-textarea{min-height:160px}</style>")}bskyb.styleswitcher=function(a){}($(function(){$("a[rel='live'],a[rel^='pop']").live("click",function(){var g=Math.floor(Math.random()*1111111);var c=$(this).attr("rel").split("|"),k,f,m,o,n,d,a,e;switch(c[0].toLowerCase()){case"live":m=1018,f=680,n=((screen.height-680)/2),d=((screen.width-1018)/2),o="0",a="yes",e="fullWindow",k=screen.height<770?"yes":"no";break;case"popup":m=c[1],f=c[2],o=c[3]||"1",k="no",a="yes",n=((screen.height-c[2])/2),d=((screen.width-c[1])/2);break}window.open(this.href,g,"width="+m+",height="+f+",top="+n+",left="+d+",type="+e+",resizable="+a+",scrollbars="+o+",channelmode="+k);return false})}));bskyb.util={checkFunc:function(a,b){if(a){return b("done")}else{window.checkF=setInterval(function(c){if(c){clearInterval(window.checkF);return b("done")}},300)}},ordinal:function(c){var a=["th","st","nd","rd"];var b=c%100;return c+(a[(b-20)%10]||a[b]||a[0])},hasFlash:function(){var b=false;var a=null;if(window.ActiveXObject){var d=null;try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(c){a=0}if(d){b=true;a=d.GetVariable("$version").substring(4);a=a.split(",");a=parseFloat(a[0]+"."+a[1])}}else{if(navigator.plugins["Shockwave Flash"]){a=navigator.plugins["Shockwave Flash"].description;a=a.split(".")[0];a=parseInt(a.split("Flash ")[1])}else{a=0}}return a},getquery:function(d){var c=window.location.search.substring(1);c=c.replace("&amp;","&");var a=c.split("&");for(var b=0;b<a.length;b++){var e=a[b].split("=");return(e[0]==d)?e[1]:false}},getoptions:function(b){var a=b.def||"false";if(b.opts&&b.opts.length>1){var c=b.opts.split("&");$(c).each(function(d){c[d].split("=")[0]==b.val&&(a=c[d].split("=")[1])})}return b.parse?parseInt(a):a},getStyleProperty:function(g,d){var f=["Moz","Webkit","Khtml","O","Ms"];d=d||document.documentElement;var e=d.style,a;if(typeof e[g]=="string"){return g}g=g.charAt(0).toUpperCase()+g.slice(1);for(var c=0,b=f.length;c<b;c++){a=f[c]+g;if(typeof e[a]=="string"){return a}}},debug:function(a){if(location.href.match("demodesign2")){if(window.console){console.log(a)}else{alert(a)}}}};window.getquery=bskyb.util.getquery;bskyb.ads={init:function(a,d,b){if(bskyb.util.hasFlash()==0){return false}bskyb.ads.el=b||$("#base-ad-leaderboard")[0]||$("#ss-ad-sponsor-expand")[0];bskyb.ads.f=$("#connect-sponsorAd1")[0]||0;!d&&(d="dropDownSponsor");!a&&(a=8);a=a*1000;if(bskyb.cookie.get(d)!="false"){$(bskyb.ads.el).animate({height:308,opacity:100},250,function(){bskyb.ads.f!=0&&bskyb.ads.f.GotoFrame("2");setTimeout(function(){bskyb.ads.f!=0&&bskyb.ads.f.GotoFrame("3")|$(bskyb.ads.el).animate({height:115,opacity:100},300)},a);bskyb.cookie.set(d,"false")})}},open:function(){$(bskyb.ads.el).animate({height:308,opacity:100},300)},close:function(){$(bskyb.ads.el).animate({height:115,opacity:100},300)}};window.initSponsor=bskyb.ads.init,window.openSponsor=bskyb.ads.open,window.closeSponsor=bskyb.ads.close;bskyb.browserie=$.browser;var useragent=navigator.userAgent.toLowerCase();bskyb.browser="";if(bskyb.browserie.msie==true){document.execCommand("BackgroundImageCache",false,true);bskyb.browser="ie ie"+parseInt(bskyb.browserie.version)}if(useragent.match(/safari/)){bskyb.browser="safari"}if(useragent.match(/firefox/)){var v=parseFloat(useragent.split("firefox/")[1]).toFixed(1),pre="";bskyb.browser="firefox firefox"+v.toString().replace(".","-")}if(useragent.match(/chrome/)){bskyb.browser="chrome"}if(useragent.match(/opera/)){bskyb.browser="opera"}if(navigator.userAgent.match(/iP/g)){bskyb.browser="ios"}$("html").addClass(bskyb.browser);var segQS;navBuild=function(){$("div.ms-select-t2").addClass("select-ul-t2");$("div.ms-select").live("mouseenter mouseleave",function(a){if(a.type=="mouseover"){$(this).click(function(){$(this).children("ul").show()})}else{$(this).children("ul").hide()}})};jQuery.fn.validationAideEnable=function(){var a=$(this);$.getScripts(window.scriptpath+"validationaide.js",function(){a.validationAideEnable()})};var basescriptpath=document.getElementById("base-script");basescriptpath?eval(basescriptpath.innerHTML):window.scriptpath="/scripts/";(function(e,b){function d(){}function x(G){c=[G]}function o(G){f.insertBefore(G,f.firstChild)}function n(I,G,H){return I&&I.apply(G.context||G,H)}function m(G){var H=/\?/;return H.test(G)?"&":"?"}var p="async",w="charset",t="",E="error",u="_jqjsp",A="on",q=A+"click",s=A+E,a=A+"load",k=A+"readystatechange",D="removeChild",g="<script/>",z="success",C="timeout",B=e.browser,f=e("head")[0]||document.documentElement,y={},l=0,c,h={callback:u,url:location.href};function F(G){G=e.extend({},h,G);var U=G.complete,I=G.dataFilter,Q=G.callbackParameter,V=G.callback,K=G.cache,N=G.pageCache,M=G.charset,H=G.url,P=G.data,T=G.timeout,S,O=0,L=d;G.abort=function(){!O++&&L()};if(n(G.beforeSend,G,[G])===false||O){return G}H=H||t;P=P?((typeof P)=="string"?P:e.param(P,G.traditional)):t;H+=P?(m(H)+P):t;Q&&(H+=m(H)+encodeURIComponent(Q)+"=?");!K&&!N&&(H+=m(H)+"_"+(new Date()).getTime()+"=");H=H.replace(/\=\?(&|$)/,"="+V+"$1");function R(W){!O++&&b(function(){L();N&&(y[H]={s:[W]});I&&(W=I.apply(G,[W]));n(G.success,G,[W,z]);n(U,G,[G,z])},0)}function J(W){!O++&&b(function(){L();N&&W!=C&&(y[H]=W);n(G.error,G,[G,W]);n(U,G,[G,W])},0)}N&&(S=y[H])?(S.s?R(S.s[0]):J(S)):b(function(X,W,Y){if(!O){Y=T>0&&b(function(){J(C)},T);L=function(){Y&&clearTimeout(Y);X[k]=X[q]=X[a]=X[s]=null;f[D](X);W&&f[D](W)};window[V]=x;X=e(g)[0];X.id=u+l++;if(M){X[w]=M}function Z(aa){(X[q]||d)();aa=c;c=undefined;aa?R(aa[0]):J(E)}if(B.msie){X.event=q;X.htmlFor=X.id;X[k]=function(){/loaded|complete/.test(X.readyState)&&Z()}}else{X[s]=X[a]=Z;B.opera?((W=e(g)[0]).text="jQuery('#"+X.id+"')[0]."+s+"()"):X[p]=p}X.src=H;o(X);W&&o(W)}},0);return G}F.setup=function(G){e.extend(h,G)};e.jsonp=F})(jQuery,setTimeout);typeof(bskyb)!="object"&&(bskyb={});jQuery.ajaxSetup({cache:true});bskyb.pod={init:function(a){var b=[];if(typeof(bskyb.tooltip)!="function"){b.push(window.scriptpath+"bskyb.tooltip.js")}if(typeof(bskyb.thickbox)!="object"){b.push(window.scriptpath+"bskyb.thickbox.js")}if(typeof(jQuery.fn.draggable)!="function"){b.push(window.scriptpath+"jquery-ui-min.js")}b.length==0?bskyb.pod.initIB(a):$.getScripts(b,function(){bskyb.pod.initIB(a)})},initIB:function(a){if(a.loggedin==1){bskyb.pod.instance={loggedin:a.loggedin,subscriber:a.subscriber,timer:a.timer||6000,cookie:a.cookie||"bskyb-pod-settings",domain:a.domain||"http://my.skysports.com",teamslist:a.teamslist||"/infobar/settings/teams/?",savejson:a.savejson||"/infobar/save_settings?",teampods:a.teampods||"/infobar/main?",scorespath:a.scorespath||"/infobar/scores?",dontmiss:a.dontmiss||"/infobar/dontmiss?",cookiepath:a.cookiepath||"skysports.com",tickerpath:a.tickerpath||"/infobar_rss/",settingspage:a.settingspage||"/infobar/preferences",getsslink:a.getsslink||"http://packages.sky.com/",signuplink:a.signuplink||"https://skyid.sky.com/signup/sports?successUrl="+location.href,skysportslink:a.skysportslink||a.signuplink||"http://www.skysports.com",data:{},bypass:a.bypass||"",userid:0,changed:0,session:1,imagepath:{"1":"http://img.skysports.com/football/badges/","2":"http://img.skysports.com/rugbyunion/badges/","3":"http://img.skysports.com/rugbyleague/badges/","4":"http://img.skysports.com/cricket/badges/"},imageprefix:{"1":"","2":"","3":"","4":""},sports:{"1":"/football","2":"/rugbyunion","3":"/rugbyleague","4":"/cricket"}};bskyb.pod.instance.session=1;if(a.subscriber==1){bskyb.pod.readsettings()}}if(a.loggedin==1&a.subscriber==0){bskyb.pod.instance.getsslink=a.getsslink||"http://packages.sky.com/";bskyb.pod.nosub()}if(a.loggedin==0){bskyb.pod.instance={signuplink:a.signuplink||"https://skyid.sky.com/signup/sports?successUrl=/"+location.href,skysportslink:a.skysportslink||a.signuplink||"http://www.skysports.com"};bskyb.pod.nologgin()}},omniture:function(a){if(window.sky){sky.tracking.featuredContentClickManual("infobar",a)}},addBetaPromo:function(a){if(!bskyb.cookie.get("bskyb-pod-beta-seen")){$(".pod-bar-inner").append("<a class='js-hdn pod-bar-promospecial' onclick='bskyb.pod.omniture(\"infobar beta page\")' href='"+bskyb.pod.instance.skysportslink+"'><img src='/Images/skysports/max/info-bar-promo.png' /></a>")}},showhide:function(a){var b=a;if(window.bskyb.pod.instance.data){if(bskyb.pod.instance.data.showbar){b=parseInt(bskyb.pod.instance.data.showbar)}else{b==1}}if(bskyb.cookie.get("pod-bar-show")){b=parseInt(bskyb.cookie.get("pod-bar-show"))}if(b==1){$(".pod-bar").css({overflow:"visible"});$(".pod-bar-promospecial").show();$(".pod-bar").css({height:39});$(".pod-bar-min").css({height:0})}$(".pod-never-show").click(function(){$(".pod-bar").css({overflow:"hidden"});var c=500;if($("#pod-holder").height()==0||$("#pod-bar-min-util")[0]){c=80}$("#pod-holder,#pod-bar-min-util").animate({height:0},c,function(){$(".pod-bar-promospecial").hide();$("#pod-holder span.inner,.pod-badge").html("");$(".pod-tab").removeClass("on");$(".pod-bar").animate({height:0},500);$(".pod-bar-min").animate({height:25},500);if(window.bskyb.pod.instance.data){bskyb.pod.instance.data.showbar=0;bskyb.pod.save({showbar:true})}bskyb.cookie.set("pod-bar-show","0",365,bskyb.pod.instance.cookiepath)})});$(".pod-bar-min").click(function(){$(".pod-bar").css({overflow:"visible"});$(".pod-bar").animate({height:39},500,function(){$(".pod-bar-promospecial").show()});$(".pod-bar-min").animate({height:0},500);if(window.bskyb.pod.instance.data){bskyb.pod.instance.data.showbar=1;bskyb.pod.save({showbar:true})}bskyb.cookie.set("pod-bar-show","1",365,bskyb.pod.instance.cookiepath)})},nologgin:function(){if(navigator.userAgent.match(/Android/)!=null||navigator.userAgent.match(/iP/)!=null||screen.width<800){return false}$(function(){$("body").append('<div class="pod-bar" id="pod-bar" ><div class="pod-bar-inner"><a onclick="bskyb.pod.omniture(\'infobar beta page\')" href="'+bskyb.pod.instance.skysportslink+'"><h2></h2></a><ul class="pod-bar-loggedout"><li class="pod-what"><a options="title=Sky Sports Subscribers can customise this bar for all the latest news and info from their favourite clubs.&type=bubble&addclass=tooltip-bubble"  onclick="bskyb.pod.omniture(\'infobar beta page\')" href="'+bskyb.pod.instance.signuplink+'">What\'s this?</a></li><li class="pod-never-show"> </li></ul><div id="pod-bar-min-util" style="visibility:hidden"></div></div></div><div class="pod-bar-min"> </div>');bskyb.pod.addBetaPromo();IF;bskyb.tooltip({el:".pod-what a",type:"bubble"});bskyb.pod.showhide(1);bskyb.pod.ipad()})},nosub:function(){if(navigator.userAgent.match(/Android/)!=null||navigator.userAgent.match(/iP/)!=null||screen.width<800){return false}$(function(){$("body").append('<div class="pod-bar" id="pod-bar" ><div class="pod-bar-inner"><a onclick="bskyb.pod.omniture(\'infobar beta page\')" href="'+bskyb.pod.instance.skysportslink+'"><h2></h2></a><ul class="pod-bar-loggedout"><li class="pod-what"><a options="title=Sky Sports subscribers can customise this bar with all the latest news, scores and video from your favourite teams. Click to find out more.&type=bubble&addclass=tooltip-bubble" onclick="bskyb.pod.omniture(\'get sky sports link\')" href="'+bskyb.pod.instance.getsslink+'">Get Sky Sports</a></li><li class="pod-never-show"> </li></ul><div id="pod-bar-min-util" style="visibility:hidden"></div></div></div><div class="pod-bar-min"> </div>');bskyb.pod.addBetaPromo();bskyb.tooltip({el:".pod-what a",type:"bubble"});bskyb.pod.showhide(1);bskyb.pod.ipad()})},readsettings:function(a){bskyb.pod.instance.interactive=decodeURIComponent(bskyb.cookie.get("interactive"));bskyb.pod.instance.interactive=$.evalJSON(bskyb.pod.instance.interactive);if(!bskyb.pod.instance.interactive){bskyb.pod.instance.interactive={id:"null",n:"null"}}bskyb.pod.instance.userid=bskyb.pod.instance.interactive.sid;bskyb.pod.instance.username=bskyb.pod.instance.interactive.n;if(bskyb.pod.instance.session==1){if(!bskyb.cookie.get(bskyb.pod.instance.cookie)){bskyb.cookie.set(bskyb.pod.instance.cookie,'{"showbar":"1"}',365,bskyb.pod.instance.cookiepath)}if(bskyb.cookie.get(bskyb.pod.instance.cookie)){var b=decodeURIComponent(bskyb.cookie.get(bskyb.pod.instance.cookie));bskyb.pod.instance.data=$.evalJSON(b);bskyb.pod.instance.showbar=bskyb.pod.instance.data.showbar;if(bskyb.pod.instance.subscriber==1){$(function(){bskyb.pod.writebar()})}else{$(function(){bskyb.pod.nologgin()})}}}else{$.jsonp({url:bskyb.pod.instance.loadjson,callbackParameter:"callback",cache:true,success:function(c,e){var d=c;bskyb.pod.instance.data=d;bskyb.cookie.set(bskyb.pod.instance.cookie,$.toJSON(d),365,bskyb.pod.instance.cookiepath);$(function(){bskyb.pod.writebar()})}})}},writesettings:function(d,b){bskyb.pod.instance.data.date=new Date().getTime();var c=$.toJSON(bskyb.pod.instance.data);c=encodeURIComponent(c);bskyb.cookie.set(bskyb.pod.instance.cookie,c,365,bskyb.pod.instance.cookiepath);var a=bskyb.pod.instance.domain+bskyb.pod.instance.savejson+"bypass="+bskyb.pod.instance.bypass+"&k=bskyb-pod-settings&uid="+bskyb.pod.instance.userid+"&v="+c+"&force=1";window.onbeforeunload=null;window.onbeforeunload=function(){if(bskyb.pod.instance.changed==1){$.jsonp({url:a,callbackParameter:"callback",success:function(e,f){}})}};if(d&&d.server){$.jsonp({url:a,callbackParameter:"callback",success:function(e,g){var f=e;if(f.result){b&&b(f.result)}}})}},save:function(d){if(d.changed!=0){bskyb.pod.instance.changed=1}if(d.changeteams){if(typeof(bskyb.pod.instance.data.teams)!="object"){bskyb.pod.instance.data={teams:[],tabs:[{n:"My Scores",id:"scores",o:0,x:0},{n:"Faves",id:"faves",o:0,x:0},{n:"Don't Miss",id:"dont",o:0,x:0}],showbar:1}}var b=bskyb.pod.instance.data.teams;bskyb.pod.instance.data.teams=[];$(b).each(function(e){$(d.teams.teams).each(function(f){if(d.teams.teams[f]){if(d.teams.teams[f].id==b[e].id&&d.teams.teams[f].s==b[e].s){if(d.teams.teams[f].h==1){b[e].h=1}else{b[e].h=0}bskyb.pod.instance.data.teams.push(b[e]);delete d.teams.teams[f]}}})});$(d.teams.teams).each(function(){if(this.id){bskyb.pod.instance.data.teams.push(this)}});bskyb.pod.writesettings({server:true})}if(d.tabopen){var a=bskyb.pod.instance.data.teams.length;$(bskyb.pod.instance.data.teams).each(function(){this["o"]=0});$(bskyb.pod.instance.data.tabs).each(function(){this["o"]=0});bskyb.pod.settabdata({attr:"o",val:1,tab:d.tabopen});bskyb.pod.writesettings()}if(d.railleft){bskyb.pod.settabdata({attr:"x",val:d.railleft,tab:d.tabopen});bskyb.pod.writesettings()}if(d.podorder){var c=[];$(".pod").each(function(e){var f=$(this).attr("id");c[e]=f.split("pod-")[1];$(this).hasClass("closed")&&(c[e]=f.split("pod-")[1]+"-x")});bskyb.pod.settabdata({attr:"p",val:c,tab:bskyb.pod.instance.tabopen});bskyb.pod.writesettings()}if(d.showbar){$(bskyb.pod.instance.data.teams).each(function(){this["o"]=0});$(bskyb.pod.instance.data.tabs).each(function(){this["o"]=0});bskyb.pod.writesettings()}},ff:function(){if(bskyb.pod.instance.data.ffselected&&bskyb.pod.instance.data.ffselected!="noffteam"){bskyb.pod.instance.podbar.find(".pod-teams").before("<div class='pod-tab' style='float:left' typ='ff'><img src='/Images/skysports/ff/ff-icon-24.png' /></div>")}},writebar:function(b){bskyb.pod.writeJumpList();if(navigator.userAgent.match(/Android/)!=null||navigator.userAgent.match(/iP/)!=null||screen.width<800){return false}if($(bskyb.pod.instance.data.teams).length>0){$("body").append('<div class="pod-bar js-inv" id="pod-bar"><div class="pod-never-show"> </div><div class="pod-bar-inner"><a onclick="bskyb.pod.omniture(\'infobar beta page\')" href="'+bskyb.pod.instance.skysportslink+'"><h2></h2></a><ul class="pod-teams"></ul><div class="pod-ticker"><ul style="top:0"> </ul></div><div class="pod-settings"><a onclick="bskyb.pod.omniture(\'infobar settings\')" href="'+bskyb.pod.instance.settingspage+'">Settings</a></div><ul class="pod-tools"></ul></div></div><div class="pod-holder" id="pod-holder"><div class="pod-glint"></div><img src="/Images/skysports/max/ajax-loader2.gif" class="ajaxloader" /><div class="pod-holder-frame-outer js-inv"><div class="pod-arrow-right"> </div><div class="pod-arrow-left"> </div><div class="pod-badge"></div><div class="pod-holder-frame"><div class="pod-holder-rail"><span class="inner"></span></div><div class="pod-overflow"></div></div></div></div><div class="pod-bar-min"> </div>');bskyb.pod.ipad()}else{$("body").append('<div class="pod-bar" id="pod-bar" ><div class="pod-bar-inner"><a onclick="bskyb.pod.omniture(\'infobar beta page\')" href="'+bskyb.pod.instance.skysportslink+'"><h2></h2></a><ul class="pod-bar-loggedout"><li class="pod-add-teams"><a  onclick="bskyb.pod.omniture(\'infobar settings\')" href="'+bskyb.pod.instance.settingspage+'">Add teams</a></li><li class="pod-never-show"> </li></ul><div id="pod-bar-min-util" style="visibility:hidden"></div></div></div><div class="pod-bar-min"> </div>');bskyb.pod.addBetaPromo();bskyb.pod.ipad();bskyb.pod.showhide(1);return false}bskyb.pod.showhide(1);bskyb.pod.instance.podbar=$("#pod-bar");$(bskyb.pod.instance.data.teams).each(function(f){var h=this["id"],g=this["s"],e=this["n"];bskyb.pod.instance.podbar.find(".pod-teams").append("<li class='pod-tab' typ='teams' sport='"+g+"' id='"+h+"' name='"+e+"'></li>");var d=new Image();$(d).load(function(){if($.browser.msie==true&&$.browser.version<1){$('.pod-teams li[sport="'+g+'"][id="'+h+'"]').html('<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" /><v:rect style="width:20px;height:24px;border:0px" filled="f" stroked="f"><v:imagedata src="'+this.src+'" /></v:rect>')}else{$('.pod-teams li[sport="'+g+'"][id="'+h+'"]').append("<img src='"+this.src+"' />")}}).error(function(){if($.browser.msie==true&&$.browser.version<1){$('.pod-teams li[sport="'+g+'"][id="'+h+'"]').html('<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" /><v:rect style="width:20px;height:24px;border:0px" filled="f" stroked="f"><v:imagedata src="/Images/skysports/max/pod-badge-error-24.png" /></v:rect>')}else{$('.pod-teams li[sport="'+g+'"][id="'+h+'"]').html('<img src="/Images/skysports/max/pod-badge-error-24.png" height="24px" />')}}).attr("src",bskyb.pod.instance.imagepath[g]+"24x24/"+bskyb.pod.instance.imageprefix[g]+h+".png")});$($(bskyb.pod.instance.data.tabs).get().reverse()).each(function(d){var e=this["n"].replace(/\+/g," ");bskyb.pod.instance.podbar.find(".pod-tools").append("<li class='pod-tab' typ='"+this["id"]+"' sport='"+this["s"]+"' id='"+this["id"]+"'>"+e+"</li>")});bskyb.pod.ff();bskyb.pod.instance.podbar.find(".pod-tab").click(function(g,d){$("#pod-delete").droppable("destroy");$(".pod-arrow-left,.pod-arrow-right").hide();bskyb.pod.instance.tabopen=bskyb.pod.instance.podbar.find("li.pod-tab").index($(this));var l=$(this).attr("sport"),k=$(this).attr("id"),f=$(this).attr("typ"),e=$(this).attr("name");if($(this).hasClass("on")){$("#pod-holder").animate({height:0},{queue:false,complete:function(){$(".pod-badge").html("");$(this).find("span.inner").html("");$(".pod-overflow").html("");$(".pod-arrow-left,.pod-arrow-right").hide()}});$(this).removeClass("on");bskyb.pod.save({tabopen:[-1]})}else{if(f=="teams"){bskyb.pod.omniture("team"+(bskyb.pod.instance.tabopen+1))}else{bskyb.pod.omniture(f)}bskyb.pod.instance.podbar.find(".pod-tab").removeClass("on");$(this).addClass("on");$("#pod-holder span.inner").html("");$(".pod-overflow").html("");$("#pod-holder").animate({height:150},{queue:false,complete:function(){if($(".pod-tab.on").attr("typ")=="teams"){$(".pod-badge").show().html("");var m=new Image();$(m).load(function(){if($.browser.msie==true&&$.browser.version<1){$(".pod-badge").html('<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" /><v:rect style="width:64px;height:64px;border:0px" filled="f" stroked="f"><v:imagedata src="'+this.src+'" /></v:rect>')}else{$(".pod-badge").html('<img src="'+this.src+'" height="64px" />')}$(".pod-badge img").unbind("click").bind("click",function(){var n="http://"+location.hostname+bskyb.pod.instance.sports[l]+"/teams/"+e;n=n.toLowerCase().replace(/\s/g,"");n=n.replace("dagenham&redbridge","dagandred");location.href=n})}).error(function(){if($.browser.msie==true&&$.browser.version<1){$(".pod-badge").html('<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" /><v:rect style="width:64px;height:64px;border:0px" filled="f" stroked="f"><v:imagedata src="/Images/skysports/max/pod-badge-error-64.png" /></v:rect>')}else{$(".pod-badge").html('<img src="/Images/skysports/max/pod-badge-error-64.png" height="64px" />')}}).attr("src",bskyb.pod.instance.imagepath[l]+"64x64/"+bskyb.pod.instance.imageprefix[l]+k+".png")}else{$(".pod-badge").hide()}bskyb.pod.load({sport:l,type:f,load:bskyb.pod.instance.domain+bskyb.pod.instance.teampods+"sportId="+l+"&teamId="+k})}});var h;d=="x"?h=0:h=1;bskyb.pod.save({tabopen:[bskyb.pod.instance.tabopen],changed:h})}});var a=bskyb.pod.gettabindex({attr:"o",val:"1"});if(location.hash.match(/infobar-/)){var c=parseInt(location.hash.replace("#infobar-",""));!c&&(c=0);$("#pod-holder").css({height:150});bskyb.pod.instance.podbar.find(".pod-tab:eq("+c+")").trigger("click","x")}setTimeout(function(){var d=$(".pod-tools").offset().left-$(".pod-ticker").offset().left;$(".pod-ticker").css({width:d-2});bskyb.pod.ticker();$("#pod-bar").removeClass("js-inv")},500)},loads:function(d,f){var c=[],b="",a=0;typeof(d)=="object"?c=d:c[0]=d;if(c.length>1){while(a<c.length){$.ajax({url:c[a],dataType:"html",async:false,error:function(h,g){if(a==c.length-1){f(b,g)}a++},success:function(h,g){if(a==c.length-1){b=b+h;f(b,g)}else{g=="success"&&(b=b+h)}a++}})}}else{var e=$("<div />");$(e).load(c[0],function(h,g,k){g=="success"&&(b=b+h);f(b,g)})}},load:function(b){$("#pod-delete").droppable("destroy");$(".ajaxloader").show();$(".pod-holder-frame").removeClass("pods-cricket").removeClass("pod-fave-bar").removeClass("pod-fave-scores").removeClass("nobadge");var c;switch(b.type){case"teams":b.sport=="4"&&$(".pod-holder-frame").addClass("pods-cricket");c=b.load;break;case"scores":$(".pod-holder-frame").addClass("pod-fave-scores").addClass("nobadge");var a="";$(bskyb.pod.instance.data.teams).each(function(d){a+="teams[]="+this.s+"_"+this.id+"&"});a=a.replace(/\&$/,"");c=bskyb.pod.instance.domain+bskyb.pod.instance.scorespath+a;$(".pod-arrow-left,.pod-arrow-right").hide();break;case"faves":$(".pod-holder-frame").addClass("nobadge").addClass("pod-fave-bar");bskyb.pod.fave();$(".pod-arrow-left,.pod-arrow-right").hide();return false;break;case"dont":$(".pod-holder-frame").addClass("nobadge");c=bskyb.pod.instance.domain+bskyb.pod.instance.dontmiss;$(".pod-arrow-left,.pod-arrow-right").hide();break;case"ff":$(".pod-holder-frame").addClass("nobadge");c=bskyb.pod.instance.domain+"/api/ff/team-info/u/"+bskyb.pod.instance.data.ffuserid+"/t/"+bskyb.pod.instance.data.ffselected;$(".pod-arrow-left,.pod-arrow-right").hide();break}$.jsonp({url:c,callbackParameter:"callback",cache:true,timeout:60000,success:function(d,g){data=d;if(data.length==0){$("#pod-holder span.inner").html("<div class='pod-error'>Sorry, this content doesn't appear to be available. <a href='#'>Click here to try again</a></div>");$(".ajaxloader").hide();bskyb.pod.behaviour.set({disable:true});$(".pod-error a").click(function(){bskyb.pod.load({type:b.type,load:b.load});return false})}else{$(".pod-holder-rail").css({width:10000});$(".pod-holder-rail .inner").html("").html(data.html);$(".pod-holder-rail").css({width:$(".pod-holder-rail .inner").width()+10});$(".ajaxloader").hide();$("#pod-holder span.inner .pod").each(function(e){if(b.type=="scores"){$(this).attr("id","pod-"+e+"score")}if(b.type=="dont"){$(this).attr("id","pod-"+e+"dont")}$(this).attr("realwidth",$(this).width())});if(b.type=="ff"){bskyb.pod.behaviour.set({disable:true})}else{try{bskyb.pod.behaviour.set({disable:false})}catch(f){}}}$(".pod-holder-frame-outer").removeClass("js-inv")}})},settabdata:function(b){if(b.tab!=-1){var a=bskyb.pod.instance.data.teams.length;b.tab<=(a-1)?(bskyb.pod.instance.data.teams[b.tab][b.attr]=b.val):(bskyb.pod.instance.data.tabs[b.tab-a][b.attr]=b.val)}},gettabdata:function(b){var a=bskyb.pod.instance.data.teams.length;return b.tab<=(a-1)?bskyb.pod.instance.data.teams[b.tab][b.attr]:bskyb.pod.instance.data.tabs[b.tab-a][b.attr]},gettabindex:function(c){var b=-1;var a=bskyb.pod.instance.data.teams.length;$(bskyb.pod.instance.data.teams).each(function(d){if(this[c.attr]==c.val){b=d}});$(bskyb.pod.instance.data.tabs).each(function(d){if(bskyb.pod.instance.data.tabs[d][c.attr]==c.val){b=d+a}});return b},behaviour:{set:function(d){$(".pod-arrow-left,.pod-arrow-right").unbind("click");$(".pod-arrow-left,.pod-arrow-right").click(function(){var g=$(".pod-holder-rail").css("left");if($(this).hasClass("disablearrow")==false){if($(this).hasClass("pod-arrow-right")){$(".pod-holder-rail").animate({left:parseInt(g)-80},200,function(){f()})}else{if(parseInt(g)+80>10){g=-70}$(".pod-holder-rail").animate({left:parseInt(g)+80},200,function(){f()})}}});function f(){var h=$(".pod-holder-rail").css("left");var g=$(".pod-holder-rail .inner").width();bskyb.pod.save({railleft:h,tabopen:bskyb.pod.instance.tabopen});$(".pod-arrow-left,.pod-arrow-right").show().removeClass("disablearrow");if((parseInt(h)<0)&&((parseInt(g)+parseInt(h))-902)<10){$(".pod-arrow-right").addClass("disablearrow")}if((parseInt(h)>-5)&&((parseInt(g)+parseInt(h))-902)>10){$(".pod-arrow-left").addClass("disablearrow")}if((parseInt(h)<-5)&&((parseInt(g)+parseInt(h))-902)>10){$(".pod-arrow-left,.pod-arrow-right").removeClass("disablearrow")}if(g<910){$(".pod-arrow-left,.pod-arrow-right").hide()}}if(d.disable===true){$(".pod-holder-rail").draggable("destroy").css({left:0})}else{bskyb.tooltip({el:".closed .pod-close,.pod-gallery li,.pod-video li"});$(".pod-inner ul.pod-match:first").addClass("firstmatch");if(bskyb.pod.gettabdata({tab:bskyb.pod.instance.tabopen,attr:"p"})&&bskyb.pod.gettabdata({tab:bskyb.pod.instance.tabopen,attr:"p"}).length>0){var e=bskyb.pod.gettabdata({tab:bskyb.pod.instance.tabopen,attr:"p"});$(e).each(function(){if(this[0]&&this.match("-x")){$(".pod-overflow").append($("#pod-holder").find("#pod-"+(this.replace("-x",""))));$("#pod-holder").find("#pod-"+(this.replace("-x",""))).addClass("closed").css({width:16,height:14})}else{$("#pod-holder span.inner").append($("#pod-holder").find("#pod-"+this))}})}var a=$(".pod-holder-frame").offset().left;var b=$(".pod-holder-rail .inner").width();$(".pod-holder-rail")[0].onselectstart=function(){return false};$(".pod-holder-rail").css({width:b+10,left:bskyb.pod.gettabdata({tab:bskyb.pod.instance.tabopen,attr:"x"})});$(".pod-holder-rail").draggable("destroy");f();$(".pod-holder-rail").draggable({axis:"x",cancel:".pod h4",containment:[a-(b-892),0,(a+1),0],stop:function(){f()}});$(".pod-holder-rail").mousedown(function(){$(this).css({cursor:"url(/Images/skysports/v5/grabbing.cur), -moz-grabbing"})});$(".pod-holder-rail").mouseup(function(){$(this).css({cursor:"url(/Images/skysports/v5/grab.cur), -moz-grab"})});if(b<903){$(".pod-holder-rail").css({left:1}).draggable("option","containment",[a+1,0,(a+1),0])}$(window).resize($.debounce(250,false,function(){try{var g=$(".pod-holder-frame").offset().left,h=$(".pod-holder-rail .inner").width();$(".pod-holder-rail").draggable("option","containment",[g-(h-892),0,(g+1),0]);if(h<903){$(".pod-holder-rail").draggable("option","containment",[g+1,0,(g+1),0])}f()}catch(k){}}));function c(){if($(".pod-holder-rail span").width()>950){$(document).keydown(function(k){if(k.keyCode==39){var g=parseInt($(".pod-holder-rail").css("left"));g=g+158;if(g>0){g=1}$(".pod-holder-rail").animate({left:g},{duration:300,queue:false});f()}if(k.keyCode==37){var h=$(".pod-holder-rail span").width()*-1,g=parseInt($(".pod-holder-rail").css("left"));if((g-902)<h){g==h}else{g=g-158}$(".pod-holder-rail").animate({left:(g)},{queue:false});f()}bskyb.pod.save({railleft:g,tabopen:bskyb.pod.instance.tabopen})})}}$("#pod-holder").hover(function(){c()},function(){$(document).unbind("keydown")});$(".pod-holder-rail span.inner").sortable({handle:"h4",axis:"x",revert:"true",opacity:0.8,start:function(){$(".pod-holder-rail").draggable("disable")},stop:function(){$(".pod-holder-rail").draggable("enable");bskyb.pod.save({podorder:true})}});$(".pod .pod-close").click(function(){var g=$(this).parents(".pod");if(g.hasClass("closed")){$("#tooltip").remove();g.animate({top:-90},500,function(){$(".pod-holder-rail").css({width:5000,left:0});$(".pod-holder-rail .inner").prepend($(this));$(this).css({top:0}).removeClass("closed");$(this).animate({height:85,width:$(this).attr("realwidth")},300,function(){bskyb.pod.save({podorder:true});$(".pod-holder-rail").css({width:$(".pod-holder-rail .inner").width()+10});$(window).trigger("resize")})})}else{g.animate({width:16,height:14},300,function(){$(this).addClass("closed");$(this).animate({top:87},400,function(){$(".pod-overflow").append($(this));$(this).css({top:0});bskyb.pod.save({podorder:true});$(".pod-holder-rail").css({width:$(".pod-holder-rail .inner").width()+10});$(window).trigger("resize")})})}})}}},ticker:function(d){function a(e){if(window.ActiveXObject&&window.GetObject){var f=new ActiveXObject("Microsoft.XMLDOM");f.loadXML(e);return f}if(window.DOMParser){return new DOMParser().parseFromString(e,"text/xml")}throw new Error("No XML parser available")}function c(m){var g=0;function k(l){g++;var h=$(".pod-ticker ul");$(".pod-ticker ul").animate({top:parseInt(h.css("top"))-l},5,function(){if(g==h.find("li").length-1){$(".pod-ticker ul").css({top:0});g=0}})}var e=$(".pod-ticker ul");e.append($(e).find("li:first").clone());var f=e.find("li:first").height();window.podtickerInt=setInterval(function(){k(f)},5000);$(".pod-ticker ul li").hover(function(){clearTimeout(window.podtickerInt)},function(){window.podtickerInt=setInterval(function(){k(f)},5000)})}var b=[];$(bskyb.pod.instance.data.teams).each(function(e){b[e]=bskyb.pod.instance.tickerpath+"0,,"+this.s+"_"+this.id+",00.xml"});bskyb.pod.instance.tickerdata=[];bskyb.pod.loads(b,function(f,e){f="<ticker>"+f+"</ticker>";var g=a(f);$(g).find("item").each(function(k){var h={};h.date=parseInt($(this).find("priority").text());h.title=$(this).find("title").text();h.link=$(this).find("link").text();bskyb.pod.instance.tickerdata.push(h)});bskyb.pod.instance.tickerdata.sort(function(k,h){return k.date-h.date});$(bskyb.pod.instance.tickerdata).each(function(){$(".pod-ticker ul").append("<li><a onclick='bskyb.pod.omniture(\"ticker\")' href='"+this.link+"'>"+this.title+"</a></li>")});c()})},fave:function(h){function a(){$(".pod-fave-my .pod-fave-item").draggable("destroy");$("#pod-delete").droppable("destroy");$(".pod-fave-my .pod-fave-item").draggable({revert:true,containment:".pod-fave-bar",scroll:false});$("#pod-delete").droppable({drop:function(k,l){if(l.draggable.attr("tit")==$(".pod-fave-current .pod-fave-item").attr("tit")){$(".pod-fave-save").removeClass("disabled")}$("body").append(l.draggable.hide());$(this).removeClass("delete-on");f()},over:function(k,l){l.draggable.css({opacity:0.5});$(this).addClass("delete-on")},out:function(k,l){l.draggable.css({opacity:1});$(this).removeClass("delete-on")}});$(".pod-holder-frame-outer").removeClass("js-inv")}function e(k){$(".pod-fave-my").html("");$(bskyb.pod.instance.faves.pages).length==0?$("#pod-delete").css({opacity:0.4}):$("#pod-delete").css({opacity:1});$(bskyb.pod.instance.faves.pages).each(function(m){var l=this["t"].replace(/\+/g," ").replace(/\'/g,"&#39;");$(".pod-fave-my").append("<div class='pod-fave-item' tit='"+l+"' href='"+this["l"]+"'>"+l+"</div>");if(this["t"]==$(".pod-fave-current .pod-fave-item").text()||m==7){$(".pod-fave-save").addClass("disabled")}});$(".pod-fave-my .pod-fave-item").live("click",function(){location.href=$(this).attr("href")});a()}function f(m){$(".pod-fave-my .pod-fave-item").length==0?$("#pod-delete").css({opacity:0.4}):$("#pod-delete").css({opacity:1});bskyb.pod.instance.faves.pages=[];$(".pod-fave-save").removeClass("disabled");$(".pod-fave-my .pod-fave-item").each(function(p){var o=$(this).text(),n=$(this).attr("href");if(p==7){$(".pod-fave-save").addClass("disabled")}if(o==$(".pod-fave-current .pod-fave-item").text()){$(".pod-fave-save").addClass("disabled")}var q={};q.t=o;q.l=n;bskyb.pod.instance.faves.pages.push(q)});var l=encodeURIComponent($.toJSON(bskyb.pod.instance.faves));bskyb.cookie.set("bskyb-pod-faves",l,"",bskyb.pod.instance.cookiepath);var k=bskyb.pod.instance.domain+bskyb.pod.instance.savejson+"bypass="+bskyb.pod.instance.bypass+"&k=bskyb-pod-faves&uid="+bskyb.pod.instance.userid+"&v="+l+"&force=1";$.jsonp({url:k,callbackParameter:"callback"})}function d(o){var n=0;bskyb.cookie.get("bskyb.pod.faves.session")&&(n=1);n=1;if(n==0){$.jsonp({url:bskyb.pod.instance.favepath+"?type=load&force=1",cache:true,callbackParameter:"callback",success:function(p,s){var q=p;bskyb.cookie.set("bskyb-pod-faves",$.toJSON(q),"",bskyb.pod.instance.cookiepath);bskyb.pod.instance.faves=q;bskyb.cookie.set("bskyb.pod.faves.session","1","",bskyb.pod.instance.cookiepath);e()}})}else{var l=decodeURIComponent(bskyb.cookie.get("bskyb-pod-faves"));var k;try{k=$.evalJSON(l)}catch(m){}k?bskyb.pod.instance.faves=k:bskyb.pod.instance.faves={pages:[]};e()}}bskyb.pod.behaviour.set({disable:true});$("#pod-holder span.inner").html("<div class='pod-fave-current'><div class='pod-fave-current-inner'></div></div><div class='pod-fave-my'></div><div id='pod-delete'> </div><div class='pod-fave-social'><a name='fb_share' type='button_count' href='http://www.facebook.com/sharer.php' class='enable-tooltip' options='title=Share with facebook'></a><a href='#' class='pod-fave-twitter enable-tooltip' options='title=Post to Twitter'><span>0</span></a></div>");$.getScript("http://static.ak.fbcdn.net/connect.php/js/FB.Share");var c=location.href;c=c.replace("http://staging","http://www");c=c.replace("#","");$.jsonp({url:"http://api.tweetmeme.com/url_info.jsonc?url="+c,callbackParameter:"callback",success:function(k,n){var m=k;if(m.status=="success"){var l=m.story.tm_link.split("/");l=l[l.length-1];$(".pod-fave-twitter span").html(m.story.url_count);$(".pod-fave-twitter").attr({rel:"popup|500|400",href:"http://tweetmeme.com/popup/tweet?url_id="+l})}else{return false}}});var g=$("title").html();g=g.split("|");g=g[0].replace(/^[ \t]+|[ \t]+$/,"");var b=location.href;$(".pod-fave-current").append('<div class="pod-fave-item" href="'+b+'" tit="'+g+'">'+g+'</div><div class="pod-fave-save">Save to read later</div> <div class="pod-fave-other"><em>or</em> add to</div>');$(".ajaxloader").hide();$('.pod-fave-current .pod-fave-save:not(".disabled")').click(function(){$(".pod-fave-current .pod-fave-save").addClass("disabled");var k=0;var l=$(".pod-fave-current .pod-fave-item").text();$(".pod-fave-my .pod-fave-item").each(function(n){if($(this).text()==l||n>=7){k=1}});if(k==0){var m=$(".pod-fave-current .pod-fave-item").clone();$(".pod-fave-my").prepend(m);f();a()}});d()},usersettings:{write:function(){$(function(){if(bskyb.cookie.get("skySSO")){$(".base-form-settings").removeClass("js-inv");bskyb.pod.usersettings.writer()}else{$(".base-form-settings fieldset,.base-form-settings button").remove();$(".base-form-settings form").append("<fieldset><h3>You are not logged in.</h3><p class='base-form-caption'>Your login has expired. <a href='https://skyid.sky.com/signin/sports?successUrl="+location.href+"'>Please sign in to your Sky iD here</a></p>");$(".base-form-settings").removeClass("js-inv")}})},writer:function(){$.getScript(window.scriptpath+"bskyb.tooltip.js",function(){bskyb.tooltip({el:".enable-jstooltip"})});if(!bskyb.pod.instance){return false}$.jsonp({url:bskyb.pod.instance.domain+bskyb.pod.instance.teamslist+"force=1",cache:true,callbackParameter:"callback",success:function(b,h){var c=b;var g=$("<div />");g.attr({id:"selector-teamlist"}).hide();g.append(c.html);$("body").append(g);$("#base-select-fieldset").prepend($("#selector-teamlist #user_sport")).prepend('<p><label for="user_sport">Select teams</label>').append('<ul name="all_teams" id="all_teams" loaded="" size="8" class="base-select-menu"></ul><div class="base-select-menu-add"><span></span></div><ul name="user_teams" id="user-teams" size="8" class="base-select-menu select-user-teams"></ul>');var e;if(bskyb.cookie.get("bskyb-pod-settings")=="0"||!bskyb.cookie.get("bskyb-pod-settings")){e={}}else{e=decodeURIComponent(bskyb.cookie.get("bskyb-pod-settings"));e=$.evalJSON(e)}$(e.teams).each(function(d){$("#user-teams").append("<li sport="+e.teams[d].s+" value="+e.teams[d].id+">"+e.teams[d].n.replace(/\+/g," ")+"<div class='user-teams-delete enable-jstooltip' options='title=Delete this team'></div><div class='user-teams-fave enable-jstooltip' options='title=Set this team as your favourite'></div></li>");if(e.teams[d].h=="1"){$("#user-teams li:eq("+d+") .user-teams-fave").addClass("on").css({backgroundPosition:"-146px 0px"})}});function f(m){var d="";var l=0;$("#selector-teamlist li").each(function(n){if(m.text()==$(this).text()){l++;if(l>1){d=" ("+$("#user_sport li.on").text()+")";l=0}}});if($("#user-teams li").length<4){var k=m.clone();k.html(k.text()+d);k.append("<div class='user-teams-delete enable-jstooltip' options='title=Delete this team'></div><div class='user-teams-fave enable-jstooltip' options='title=Set this team as your favourite'></div>");$("#user-teams").append(k);m.addClass("disabled");if($("#user-teams li").length==1){$("#user-teams li .user-teams-fave").addClass("on").css({backgroundPosition:"-146px 0px"})}}else{bskyb.thickbox.launch({w:400,h:140,type:"alert",button:"Close",message:"You can add up to 4 teams into your favourite teams section, please delete a team if you wish to continue."})}}$("#all_teams").delegate("li:not('.disabled')","click dblclick",function(d){if($(this).find("h4")[0]){return false}$("#all_teams li").removeClass("on");$(this).addClass("on");$(".base-select-menu-add span").addClass("on");if(d.type=="dblclick"){$(".base-select-menu-add span").removeClass("on");f($(this))}});$(".base-select-menu-add").delegate("span.on","click",function(){f($("#all_teams li.on"));$(".base-select-menu-add span").removeClass("on")});$("#user-teams").delegate("div.user-teams-fave","click",function(){$("#user-teams .user-teams-fave").removeClass("on").css({backgroundPosition:"-127px 0px"});$(this).addClass("on").css({backgroundPosition:"-146px 0px"})});$("#user-teams").delegate("div.user-teams-delete","click",function(){var d=$(this).parent("li"),k;$("#all_teams li.disabled[value='"+d.attr("value")+"']").removeClass("disabled").removeClass("on");d.find(".user-teams-fave").hasClass("on")&&(k=true);d.remove();$("#tooltip").remove();k==true&&$("#user-teams li:first .user-teams-fave").addClass("on").css({backgroundPosition:"-146px 0px"})});$("#user_sport li").click(function(){$(".base-select-menu-add span").removeClass("on");$("#user_sport li").removeClass("on");$(this).addClass("on");var d=$(this).attr("value");$("#all_teams").html($("#selector-teamlist .base-select-teamlist[value='"+d+"']").html());$("#user-teams li").each(function(){$('#all_teams li[value="'+$(this).attr("value")+'"][sport="'+$(this).attr("sport")+'"]').addClass("disabled")})})}});var a=false;bskyb.pod.instance.data.ffuserid&&(a=bskyb.pod.instance.data.ffuserid);bskyb.cookie.get("SkyManager")&&(a=bskyb.cookie.get("SkyManager").split("-")[0]);if(a){bskyb.pod.instance.data.ffuserid=a;$.getJSON(bskyb.pod.instance.domain+"/api/ff/team-list/u/"+a+"?callback=?",function(b){ffdata=b;if(ffdata.teams.length>0){$("#ff-login p").remove();$("#ff-login h3").after('<p class="base-form-caption">Add your Fantasy Football team to the Infobar to get direct access to your latest points and team information.</p><p class="base-form-caption">Select which team to add:</p><div class="base-form-radiogroup"></div>');var d="false";$(ffdata.teams).each(function(){$("#ff-login .base-form-radiogroup").append("<span><input "+d+' type="radio" value="'+this.id+'" name="ffteam" id="'+this.id+'" /><label for="'+this.id+'">'+this.n+"</label></span>")});$("#ff-login .base-form-radiogroup").append("<br /><span><input checked type='radio' value='noteam' name='ffteam' id='noffteam' /><label for='noffteam'>Don't show Fantasy Football in Infobar</label></span>");$("#ff-login #"+bskyb.pod.instance.data.ffselected).attr("checked","checked")}})}},update:function(){bskyb.pod.instance.data.ffselected=$("#ff-login .base-form-radiogroup input:checked").attr("id");var a={teams:[]};$("#user-teams li").each(function(b){a.teams[b]={};a.teams[b].n=$(this).text();a.teams[b].s=$(this).attr("sport");a.teams[b].id=$(this).attr("value");$(this).find(".user-teams-fave").hasClass("on")?a.teams[b].h="1":a.teams[b].h="0"});bskyb.pod.save({changeteams:true,teams:a,server:true});bskyb.pod.writeJumpList()}},reload:function(){$(".pod-bar,.pod-holder,.pod-bar-min").remove();clearInterval(window.podtickerInt);bskyb.pod.instance.subscriber==0?bskyb.pod.nologgin():bskyb.pod.writebar()},ipad:function(){if(navigator.userAgent.match(/Android/)!=null||navigator.userAgent.match(/iP/)!=null||screen.width<800){$(".pod-bar").hide()}},writeJumpList:function(){try{if(window.external.msIsSiteMode()&&bskyb.pod.instance.data.teams.length>0){window.external.msSiteModeClearJumplist();window.external.msSiteModeCreateJumplist("My Info Bar");$(bskyb.pod.instance.data.teams).each(function(c){var e=this.n;var b=this.s;var d=bskyb.pod.instance.sports[b]+"/teams/"+e+"#infobar-"+c;d=d.toLowerCase().replace(/\s/g,"");d=d.replace("dagenham&redbridge","dagandred");window.external.msSiteModeAddJumpListItem(e,d,"/favicon.ico")});window.external.msSiteModeShowJumplist();bskyb.cookie.set("w7init",1,365,".skysports.com")}}catch(a){}}};(function(c){var a=c.scrollTo=function(d,f,g){c(window).scrollTo(d,f,g)};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};a.window=function(d){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){var d=this,f=!d.nodeName||c.inArray(d.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!f){return d}var g=(d.contentWindow||d).document||d.ownerDocument||d;return c.browser.safari||g.compatMode=="BackCompat"?g.body:g.documentElement})};c.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={onAfter:d}}if(f=="max"){f=9000000000}d=c.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=b(d.offset);d.over=b(d.over);return this._scrollable().each(function(){var p=this,n=c(p),o=f,l,m={},h=n.is("html,body");switch(typeof o){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(o)){o=b(o);break}o=c(o,this);case"object":if(o.is||o.style){l=(o=c(o)).offset()}}c.each(d.axis.split(""),function(s,t){var w=t=="x"?"Left":"Top",u=w.toLowerCase(),y="scroll"+w,q=p[y],g=a.max(p,t);if(l){m[y]=l[u]+(h?0:q-n.offset()[u]);if(d.margin){m[y]-=parseInt(o.css("margin"+w))||0;m[y]-=parseInt(o.css("border"+w+"Width"))||0}m[y]+=d.offset[u]||0;if(d.over[u]){m[y]+=o[t=="x"?"width":"height"]()*d.over[u]}}else{var x=o[u];m[y]=x.slice&&x.slice(-1)=="%"?parseFloat(x)/100*g:x}if(/^\d+$/.test(m[y])){m[y]=m[y]<=0?0:Math.min(m[y],g)}if(!s&&d.queue){if(q!=m[y]){k(d.onAfterFirst)}delete m[y]}});k(d.onAfter);function k(g){n.animate(m,e,d.easing,g&&function(){g.call(this,f,d)})}}).end()};a.max=function(g,k){var o=k=="x"?"Width":"Height",n="scroll"+o;if(!c(g).is("html,body")){return g[n]-c(g)[o.toLowerCase()]()}var p="client"+o,f=g.ownerDocument.documentElement,d=g.ownerDocument.body;return Math.max(f[n],d[n])-Math.min(f[p],d[p])};function b(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);typeof(bskyb)!="object"&&(bskyb={});bskyb.scrollto=function(){$(".enable-scrollto").each(function(){$(this).click(function(){var a=$(this).attr("href");if(!a){return false}a=="#top"&&(a=0);$.scrollTo(a,400);return false})})};bskyb.slider=function(a){$(".enable-content-slider").each(function(){var e=$(this);var g=$(".content-links",e);var b=$("li",g);var c=false;var d;var f=$(".btn-close",e);b.live("click",function(){if(!c){c=true;var l=$(this);var o=l.find("a").attr("rel");var k=l.find("a").attr("href");var n=l.find("a").html();if($("#"+o,e).length>0){d=$("#"+o,e);f=$(".btn-close",d)}else{var m='<div class="content-holder" id="'+o+'">\n';m+="<h3>"+n+"</h3>\n";m+='<p class="loading">loading</p>\n';m+='<p class="btn-close">back</p>\n';m+="</div>";e.append($(m).css("left","101%"));d=$("#"+o,e);f=$(".btn-close",d);var h=$(".loading",d);$.ajax({url:k,success:function(p){h.fadeOut().remove();d.append(p)}})}g.fadeOut(200,function(){d.animate({left:0},300,function(){c=false})})}return false});f.live("click",function(){d.animate({left:"101%"},300,function(){g.fadeIn(200,function(){c=false})});return false})})};typeof(bskyb)!="object"&&(bskyb={});bskyb.interact={initComments:function(){if(typeof commentsCount!=="undefined"){var a=20;loadYoursayComments("prepend",storyId,1,a,"comments",5,1,function(){bskyb.interact.bskybformHideReply(commentsAllowPost)});$(".more-comments").live("click",function(){var b=$(this).attr("rel");var c=parseInt(b)+1;$(this).attr("rel",c);loadYoursayComments("append",storyId,c,a,"comments",5,1,function(){bskyb.forms.likeMe()});return false});$(".showmore-reply li a").live("click",function(){var b=$(this).attr("rel");var d=1;var c=a;$(".showmore-reply").hide();loadYoursayComments("prepend",b,d,c,"replies",9,1,function(){});return false})}else{$("#list-showmore").hide()}$("#firstname").live("keyup",function(){$('input[name="nickname"]').val($('input[name="firstname"]').val())});$("#nickname").keyup(function(){var b=$('input[name="nickname"]').val();b=b.toLowerCase().replace(/ /g,"-");$('input[name="nickname"]').val(b)});$(".enable-form button").live("click",function(){if($(this).parents("form").validate().form()){if($("#rememberform:checked").length==1){bskyb.cookie.set($(this).parents("form").attr("id"),$(this).parents("form").find(":input.remember").serialize(),365)}else{bskyb.cookie.set($(this).parents("form").attr("id"),"",-1)}bskyb.interact.postSSYourSayComment($(this).parents("form"),false,true)}return false})},initMemoriesComments:function(){var a=3;loadMemoryComments(storyId,1,a,5,1,function(){});$(".more-memories").live("click",function(){var b=$(this).attr("rel");var d=parseInt(b)+1;$(this).attr("rel",d);var c=$(this).attr("assocId");loadMemoryComments(c,d,a,5,1,function(){});return false});$("#submit-memory").live("click",function(){if($(this).parents("form").validate().form()){bskyb.cookie.set($(this).parents("form").attr("id"),"",-1);bskyb.interact.postSSYourSayComment($(this).parents("form"),false,true)}return false})},postSSYourSayComment:function(b,a,d){$(b).find("#v5-yoursat-post").hide();$(b).find("#displayresults").html("Your comment is being submitted. Please wait ..... <img src='/images/v5/ajax-loader-light.gif' alt='loading' />");var c=shakServer+"/yoursay/process.html";postData={emailAddress:$(b).find("input[name='youremail']").val(),forename:$(b).find("input[name='firstname']").val(),surname:$(b).find("input[name='lastname']").val(),nickname:$(b).find("input[name='nickname']").val(),assocTypeId:$(b).find("input[name='assocTypeId']").val(),assocId:$(b).find("input[name='assocId']").val(),siteId:$(b).find("input[name='siteId']").val(),ysComment:$(b).find("textarea[name='comments']").val(),skysportscontactme:$(b).find("input[name='skysportscontactme']:checked").val(),skysportszine:$(b).find("input[name='skysportszine']:checked").val(),topAssocId:$(b).find("input[name='topAssocId']").val(),topAssocTypeId:$(b).find("input[name='topAssocTypeId']").val(),callingPage:$(b).find("input[name='callingPage']").val()};jQuery.ajax({type:"GET",url:c,dataType:"jsonp",jsonp:"postcommentcallback",jsonpCallback:"postcommentcallback",data:postData,success:function(f){var e=f;if(f.result&&f.result=="OK"){e="<h3 class='v5-hdr-4'>Thank you</h3><p></p><p class='v5-txt-cpt'>Your comment has been submitted for approval.</p>";$(".v5-btn-t2").addClass("button_disabled").attr("disabled",false)}$(b).find("#displayresults").html(e).fadeIn(1500,function(){setTimeout(function(){$(b).find("#displayresults").fadeOut();$(b).find("#v5-yoursat-post").fadeIn()},5000)});f.result&&f.result=="OK"&&$('textarea[name="comments"]').val("")}});return false},bskybformHideReply:function(a){if(a==0){$(".art-reply-bar a.art-reply-lnk").hide();$("#commentForm").hide()}else{$(".art-reply-bar a.art-reply-lnk").show()}}};function loadYoursayComments(c,h,k,g,a,b,e,d){jsonURL=shakServer+"/yoursay/commentList/byAssoc/"+k+"/"+g+"/"+h+"/"+b+"/"+e+"/";$.ajax({url:jsonURL,jsonp:"loadcommentscallback",jsonpCallback:"loadcommentscallback",dataType:"jsonp",success:function(m){var l=m.count;var n=m.totalApproved;var f=$("span.comment-count:first").text();if(k==1&&f!=n){$("span.comment-count").text(n)}if(m.count>0){if($("#yoursaycomments h3").length==0){title='<h3 class="v5-hdr-4">Your Comments <em>(<span class="comment-count">'+n+"</span>)</em>";if(commentsAllowPost==1){title+='<a href="#post-comment" class="hdr-sublink enable-scrollto">post a comment</a>'}title+="</h3>";$("#yoursaycomments").prepend(title)}var o="";$.each(m.ysc,function(p,q){if(a=="comments"){if(q.editor&&q.user.id==q.editor.userId){o+='<div class="v5-art-reply art-reply-ed">';o+='<h4 class="user-name"> Editor <em> says </em><span> '+q.dateCreated+" </span></h4>";o+='<p class="user-comment"> ';if(q.editor.image){o+='<img class="art-reply-avatar" src="'+q.editor.image+'" alt="alt" />'}o+=q.comment+" </p>"}else{o+='<div class="v5-art-reply">';o+='<h4 class="user-name"> '+q.user.nickname+" <em> says </em><span> "+q.dateCreated+" </span></h4>";o+='<p class="user-comment"> '+q.comment+" </p>"}o+='<span class="art-reply-bar">';o+='<a href="#post-comment" rel="'+q.id+'" class="art-reply-lnk">Reply</a>';$.each(q.ratings,function(s,t){if(t.type=="thumbs-down"){o+='<div class="v5-btn-t5 btn-dislike"><a id="'+q.id+'" href="#" class="enable-tooltip" alt="" title="Dislike this comment" oldtitle="Dislike this comment" >'+t.total+"</a></div>"}else{o+='<div class="v5-btn-t5 btn-like"><a id="'+q.id+'" href="#" class="enable-tooltip" alt="" title="Like this comment" oldtitle="Like this comment" >'+t.total+"</a></div>"}});o+="</span></div>";if($.isArray(q.reply)){replyHTML="";$.each(q.reply,function(t,s){if(t==2){replyHTML+='<div id="more-replies"></div>';replyHTML+='<ul class="v5-list-showmore showmore-reply">';replyHTML+='<li><div class="v5-btn-t5"><a href="#" rel="'+q.id+'">more replies</a></div></li>';replyHTML+="</ul>";return false}replyHTML+='<div class="v5-art-reply art-reply-indented">';if(s.editor){replyHTML+='<h4 class="user-name"> Editor <em> says </em><span> '+s.dateCreated+" </span></h4>";if(s.editor&&s.editor.image){replyHTML+='<img class="art-reply-avatar" src="'+s.editor.image+'" alt="editorial image" />'}}else{replyHTML+='<h4 class="user-name"> '+s.user.nickname+" <em> says </em><span> "+s.dateCreated+" </span></h4>"}replyHTML+='<p class="user-comment"> '+s.comment+" </p>";replyHTML+="</div>"});o+=replyHTML}if(q.editorsResponse){o+='<div class="v5-art-reply art-reply-ed art-reply-indented">';o+='<h4 class="user-name"> Editor <em> says </em></h4>';o+='<p class="user-comment">';if(q.editor&&q.editor.image){o+='<img class="art-reply-avatar" src="'+q.editor.image+'" alt="editorial image" />'}o+=q.editorsResponse+" </p>";o+="</div>"}}else{if(p>1){o+='<div class="v5-art-reply art-reply-indented">';o+='<h4 class="user-name"> '+q.user.nickname+" <em> says </em><span> "+q.dateCreated+" </span></h4>";o+='<p class="user-comment"> '+q.comment+" </p>";o+="</div>"}}});if(a=="comments"){if(c=="append"){$(o).appendTo("#yoursaycomments").fadeIn("slow")}else{$(o).appendTo("#yoursaycomments")}if(l<g){$("#view-comments .more-btn").hide()}}else{$("#more-replies").append(o).fadeIn("slow")}if(k>1&&typeof SKY_TRACKING!="undefined"){SKY_TRACKING.contentType="article comments";SKY_TRACKING.pagination="page "+k;sky.tracking.launch(SKY_TRACKING)}d()}else{if(commentsAllowPost==1){if(k==1&&$("#yoursaycomments h3").length==0){$("#yoursaycomments").prepend('<h3 class="v5-hdr-4 v5-1st-comment-hdr">Be the first to post a comment</h3>');$("#list-showmore").hide()}}}}})}function loadMemoryComments(e,g,d,a,c,b){jsonURL=shakServer+"/yoursay/commentList/byAssoc/"+g+"/"+d+"/"+e+"/"+a+"/"+c+"/";$.ajax({url:jsonURL,jsonp:"loadcommentscallback",jsonpCallback:"loadcommentscallback",dataType:"jsonp",success:function(h){var f=h.count;var k="";if(h.count>0){$.each(h.ysc,function(l,m){k+='<div class="mem-comment">';k+="<p> "+m.comment+" </p>";k+='<p class="user"> '+m.user.nickname+" </p>";k+="</div>"});$("#yoursaycomments").html(k);if(f<d){$(".mem-con .more-btn").hide()}else{$(".mem-con .more-btn").show()}if(g>1&&typeof SKY_TRACKING!="undefined"){SKY_TRACKING.contentType="memory comments";SKY_TRACKING.pagination="page "+g;sky.tracking.launch(SKY_TRACKING)}b()}else{if(g==1){k+='<div class="mem-comment">';k+="<h4>Be the first to leave a memory for this era</h4>";k+="</div>";$("#yoursaycomments").html(k)}$(".mem-con .more-btn").hide()}}})}function rateItem(c,d,b,g,a){var e=3;var f=shakServer+"/rate/site/"+c+"/"+e+"/"+d+"/"+b+"/ratearticlescallback=?";if(a==""){a=c}allowRating=1;if(allowRating==1){$.getJSON(f,{tagmode:"any",format:"json",async:false},function(h){if(h.result=="success"){outcome="success"}else{if(h.result=="already voted"){outcome="already voted"}else{if(h.result=="fail"){outcome="Sorry. There was a problem casting your vote"}}}})}return false}function submitCompetition(t,b,s){var h=document.compEntryForm;var F=$(h).find("input[name='numQs']").val();var m=$(h).find("input[name='homeNumber']").val();var e=new Array();var u="";var q=$(h).find("input[name='questionGroupId']").val();var w=$(h).find("select#nametitle option:selected").val();var B=$(h).find("input[name='firstname']").val();var l=$(h).find("input[name='lastname']").val();var f=$(h).find("input[name='youremail']").val();var c=$(h).find("input[name='housenumber']").val();var p=$(h).find("input[name='street']").val();var C=$(h).find("input[name='town']").val();var g=$(h).find("input[name='postCode']").val();var a=$(h).find("input[name='mobileNumber']").val();var n=$(h).find("select#dobMonth option:selected").val();var E=$(h).find("select.dobYear option:selected").val();var k=$(h).find("select#dobDay option:selected").val();var z=$(h).find("input[name='county']").val();var x=new Array();$.each($(h).find("input[name='optInTypeId']"),function(G,H){x[H.value]=new Array();x[H.value].push(H.checked)});for(var y=0;y<F;y++){var d=$(h).find("input[name='questionId_"+y+"']").val();var D=$(h).find("input[name='opt"+y+"']:checked").val();var A=$(h).find("input[name='answer"+y+"']").val();if(!D&&A==undefined){if(u.length>0){u+=", "}u+=y+1}else{if(A==undefined){e[y.toString()]=d+":"+D+":o"}else{e[y.toString()]=d+":"+A+":a"}}}if(u.length>0){$("#comp-msg").html("<b> You have not answered the question </b>").fadeIn(500)}else{theURL="/competition/process";postData={"userOptions[]":e,"optInTypes[]":x,questionGroupId:q,nametitle:w,firstname:B,lastname:l,youremail:f,houseNumber:c,street:p,town:C,postCode:g,phoneNumber:a,homeNumber:m,dobYear:E,dobMonth:n,dobDay:k,county:z,competitionId:$(h).find("input[name='competitionId']").val()};var o=false;$.ajax({type:"POST",data:postData,url:theURL,dataType:"html",complete:function(G){var H=G.responseText;if(H.match("OK")){$(h).find("#comp-msg").empty();$("#competition-form").html("<h2>Thank You! Your competition entry has been submitted.</h2>").fadeIn(1500,function(){});if(typeof SKY_TRACKING!="undefined"){SKY_TRACKING.events="enterCompetition";sky.tracking.launch(SKY_TRACKING)}var I=s+"-"+q;setCookie(I,true,30)}else{if(H.match("already entered")){$("#competition-form").html("<h2>You have already entered this competition.</h2>")}else{$(h).find("#comp-msg").html("<b>Sorry!</b>  There seems to be a problem submitting your competition entry.  Please contact our Service Desk.").fadeIn(500).addClass("submitted error")}}},async:false})}return false}typeof(bskyb)!="object"&&(bskyb={});bskyb.thickbox={bind:function(a){$(".enable-thickbox").live("click",function(){var b=$(this).attr("options");var c={width:bskyb.util.getoptions({opts:b,val:"width"}),height:bskyb.util.getoptions({opts:b,val:"height"}),type:bskyb.util.getoptions({opts:b,val:"type"}),toload:bskyb.util.getoptions({opts:b,val:"load",def:$(this).attr("href")}),resize:bskyb.util.getoptions({opts:b,val:"resize"}),caption:bskyb.util.getoptions({opts:b,val:"caption",def:$(this).attr("title")}),scroll:bskyb.util.getoptions({opts:b,val:"scroll",def:"hidden"}),button:bskyb.util.getoptions({opts:b,val:"button"}),message:bskyb.util.getoptions({opts:b,val:"message"}),showclose:bskyb.util.getoptions({opts:b,val:"showclose"}),addclass:bskyb.util.getoptions({opts:b,val:"addclass",def:" "})};c.scroll!="hidden"&&(c.scroll="auto");bskyb.thickbox.launch({w:c.width,h:c.height,type:c.type,load:c.toload,caption:c.caption,scroll:c.scroll,button:c.button,message:c.message,showclose:c.showclose,addclass:c.addclass,caption:c.caption});return false})},launch:function(e){$("body").append('<div class="base-thickbox-overlay v5-thickbox-overlay" style="display:none"> <div class="base-thickbox-loader v5-thickbox-loader"><img src="/Images/skysports/max/ajax-loader2.gif"></div></div><div class="base-thickbox-frame v5-thickbox-frame js-inv '+e.addclass+'"><div class="thickbox-close" onclick="bskyb.thickbox.remove()"><div class="thickbox-close-inner">&times;</div></div><div class="base-thickbox-frame-inner v5-thickbox-frame-inner"></div></div>');if($.browser.msie&&$.browser.version<7){$("html").css({overflow:"hidden"})}if(!e.type||e.type=="false"){if(e.load.match(/^#/)){e.w=="false"?e.w=640:e.w=parseInt(e.w);e.h=="false"?e.h=480:e.h=parseInt(e.h);$(".base-thickbox-frame-inner").append($(e.load).html());$(".base-thickbox-frame").css({overflow:e.scroll,width:e.w,height:e.h,marginLeft:(e.w/2)*-1,marginTop:(e.h/1.8)*-1}).removeClass("js-inv").addClass("thickbox-inline");bskyb.thickbox.closeButton(e);bskyb.thickbox.overlay()}else{var b=e.load.split("?");if(b[0].match(/\.jpg$|\.jpeg$|\.gif$|\.png$/)){e.w=="false"?e.w=10000:e.w=parseInt(e.w);e.h=="false"?e.h=10000:e.h=parseInt(e.h);e.h>$(document).height()&&(e.h=$(document).height()-20);e.w>$(document).width()&&(e.w=$(document).width()-20);if(!e.caption){e.caption=""}else{$(".base-thickbox-frame").append('<div class="base-thickbox-caption"><span></span><p>'+e.caption+"</p></div>")}function c(g){e.w>g.width&&(e.w=g.width);e.h>g.height&&(e.h=g.height);$(".base-thickbox-frame-inner").append(g);$(".base-thickbox-frame").css({width:e.w,height:e.h,marginLeft:(e.w/2)*-1,marginTop:(e.h/2)*-1}).removeClass("js-inv").addClass("thickbox-image");bskyb.thickbox.closeButton(e)}var d=$("<img />").attr({src:e.load});if(d[0].complete){c(d[0])}else{d.load(function(){c(this)})}var f=$(".base-thickbox-frame").height()/24;$(".base-thickbox-caption p").css({paddingTop:f-1,paddingBottom:f+1});bskyb.thickbox.overlay()}else{$(".base-thickbox-frame-inner").load(e.load,function(){e.w=="false"?e.w=640:e.w=parseInt(e.w);e.h=="false"?e.h=480:e.h=parseInt(e.h);$(".base-thickbox-frame").css({overflow:e.scroll,width:e.w,height:e.h,marginLeft:(e.w/2)*-1,marginTop:(e.h/2)*-1}).removeClass("js-inv").addClass("thickbox-load");bskyb.thickbox.closeButton(e);bskyb.thickbox.overlay()})}}}if(e.type=="iframe"){e.w=="false"?e.w=640:e.w=parseInt(e.w);e.h=="false"?e.h=480:e.h=parseInt(e.h);e.scroll=="hidden"&&(e.scroll="no");$(".base-thickbox-frame-inner").append("<iframe scrolling='"+e.scroll+"' frameborder='0' ALLOWTRANSPARENCY='true' width='"+e.w+"px' height='"+e.h+"px' src='"+e.load+"'></iframe>");$(".base-thickbox-frame").css({allowTransparency:"true",width:e.w,height:e.h,marginLeft:(e.w/2)*-1,marginTop:(e.h/2)*-1}).removeClass("js-inv").addClass("thickbox-iframe");bskyb.thickbox.closeButton(e);bskyb.thickbox.overlay()}if(e.type=="alert"){e.w=="false"?e.w=410:e.w=parseInt(e.w);e.h=="false"?e.h=200:e.h=parseInt(e.h);(!e.button||e.button=="false")&&(e.button="close");(!e.caption||e.caption=="false")&&(e.caption="Alert");$(".base-thickbox-frame-inner").append("<h4>"+e.caption+"</h4><div class='thickbox-alert-inner' style='height:"+(e.h-85)+"px'><p>"+e.message+"</p></div><div class='thickbox-alert-button' onclick='bskyb.thickbox.remove()'>"+e.button+"</div>");if(!e.message){$(".base-thickbox-frame-inner .thickbox-alert-inner").html($(e.load).html())}$(".base-thickbox-frame").css({overflow:"visible",width:e.w,height:1,minHeight:e.h,_height:e.h,marginLeft:(e.w/2)*-1,marginTop:(e.h/2)*-1}).addClass("thickbox-alert").removeClass("js-inv");bskyb.thickbox.closeButton(e)}if($.browser.msie&&$.browser.version<7){$(".base-thickbox-overlay").css({height:$(document).height()})[0].style.display="block"}else{var a=$(".base-thickbox-overlay").css("filter");$(".base-thickbox-overlay").css({filter:a});$(".base-thickbox-overlay").fadeIn(400)}},remove:function(){$(".base-thickbox-loader").remove();$(".base-thickbox-frame").fadeOut(240,function(){$(this).remove();$(".base-thickbox-overlay").remove();if($.browser.msie&&$.browser.version<7){$("html").css({overflow:""})}})},closeButton:function(b){b.showclose=="true"&&$(".thickbox-close").hide();var a=$(".thickbox-close").width();if(a<16||$(".base-thickbox-frame").hasClass("thickbox-alert")){$(".thickbox-close").css({width:16});a=16}$(".thickbox-close").css({height:a,marginTop:a/1.7,marginLeft:((a*-1)*1.5)+"px"});$(".thickbox-close-inner").css({lineHeight:(a-1.5)+"px",fontSize:(a+2)+"px"})},overlay:function(){$(".base-thickbox-overlay").click(function(){bskyb.thickbox.remove()});document.onkeyup=function(a){a==null?keycode=event.keyCode:keycode=a.which;keycode==27&&bskyb.thickbox.remove()}}};typeof(bskyb)!="object"&&(bskyb={});bskyb.galleryPromo=function(){$(".enable-gallerypromo").each(function(f){var d=$(this).attr("data-options");var a={el:$(this),imagepath:bskyb.util.getoptions({opts:d,val:"imagepath"}),type:bskyb.util.getoptions({opts:d,val:"type",def:"hover"}),length:$(this).find(".gallery-thumbs li").length,thickbox:bskyb.util.getoptions({opts:d,val:"thickbox"})};var h=0;var e=0;var c=false;var b=$(".gallery-thumbs");var g=$(".gallery-thumbs li").length-1;if(a.length>0){b.before('<ul class="gallery-pic"></ul>\n');$("li",b).eq(0).addClass("on").end().mouseover(function(){if(c){var k=$(this).index();$(".gallery-thumbs li, .gallery-pic li").removeClass("on");$(this).addClass("on");$(".gallery-pic li").eq(k).addClass("on")}}).each(function(n){$(".gallery-pic").append("<li></li>");var m=$(this).find("a").attr("href");var l=new Image();var k=$(this).find("a").attr("rel");var o=$(this).find("img").attr("src");var q=o.split("/");var p=$(this).find("a").attr("title");q[5]=a.imagepath;o=q.join("/");$(l).bind("load",function(s){$(".gallery-pic li").eq(n).append('<a href="'+m+'" class="image-'+n+'" ><img src="'+o+'" alt="'+p+'" /><div class="gallery-details"><h4>'+p+'</h4><p class="gallery-count">'+k+"</p></div></a>");if(n==g){c=true;$(".gallery-pic").find("li:first-child").addClass("on")}}).error(function(){}).attr("src",o)})}})};typeof(bskyb)!="object"&&(bskyb={});bskyb.tabs=function(){$(".enable-tabs").each(function(c){var b=$(this).attr("options");var e={thistab:$(this),remember:bskyb.util.getoptions({opts:b,val:"remember"}),resize:bskyb.util.getoptions({opts:b,val:"resize"}),slide:bskyb.util.getoptions({opts:b,val:"slide"}),auto:bskyb.util.getoptions({opts:b,val:"auto"}),length:$(this).find(".tab-anchors li").length,ajax:bskyb.util.getoptions({opts:b,val:"ajax"})};if(e.slide!="false"){e.thistab.find(".tab-section").wrapAll('<div class="tab-slide-outer"><div class="tab-slide-inner"></div></div>')}if(e.resize!="false"){e.tabheight=e.thistab.find(".tab-anchors").height();e.thistab.css({overflow:"hidden",height:$(this).outerHeight()});e.thistab.find(".tab-section").each(function(){$(this).attr("realheight",$(this).outerHeight()).css({height:"100%"})})}if(e.auto!="false"){e.tabinterval=setInterval(function(){var g=e.thistab.find(".tab-anchors li").index(e.thistab.find(".tab-anchors li.on"));g==e.length-1?g=-1:0;e.thistab.find(".tab-anchors li:eq("+(g+1)+")").trigger("click","x")},e.auto)}var f;e.thistab.find(".tab-anchors li").click(function(u,s){if(e.ajax=="true"&&!$(this).hasClass("no-ajax")){u.preventDefault();var n=$(this);var q=n.find("a");var m=q.attr("href").split("#")[1];e.thistab.find(".tab-anchors li").removeClass("on");var t=e.thistab.find(".tab-section").outerHeight();e.thistab.find(".tab-section").hide();$(n).addClass("on");if($(".tab-section#"+m).length>0){$(".tab-section#"+m).show()}else{var g=q.attr("href").split("#")[0];e.thistab.append('<div class="tab-section" id="'+m+'"><p class="loading"></p></div>');$("#"+m).css({height:t}).show();$.ajax({type:"GET",url:g,success:function(h){$("#"+m).append(h).css({height:"auto"}).hide().fadeIn();if($("#"+m+" .enable-scroller").length>0){bskyb.scroller($("#"+m+" .enable-scroller"))}},error:function(){alert("error")},complete:function(){$("#"+m).find(".loading").remove()}})}}else{if($(".base-table-form-overlay:visible")[0]){f=e.thistab.find(".tab-anchors li").index(e.thistab.find(".tab-anchors li.on"));$(".base-table-form-overlay").hide()}if(s!="x"){clearInterval(e.tabinterval)}var k=$(this).find("a").attr("href");if(e.slide!="false"){var l=e.thistab.find(".tab-slide-outer").width();var p=e.thistab.find(".tab-anchors li").index($(this));e.thistab.find(".tab-section").show();e.thistab.find(".tab-anchors li").removeClass("on");$(this).addClass("on");e.thistab.find(".tab-slide-inner").animate({marginLeft:(p*l)*-1},{queue:false,duration:parseInt(e.slide),complete:function(){bskyb.cookie.set(e.remember,k)}});return false}else{if($(this).find("a")[0]){if($(this).find("a").attr("href").match(/^\#/)==null){if($(this).find("a").attr("target")=="external"){window.open($(this).find("a").attr("href"),"external");return false}else{location.href=$(this).find("a").attr("href")}}else{e.thistab.find(".tab-anchors li").removeClass("on");e.thistab.find(".tab-section").hide();bskyb.cookie.set(e.remember,k);$(this).addClass("on");if(e.thistab.find(".tab-anchors li").index($(this).addClass("on"))==f){$(".base-table-form-overlay").show()}if($(this).find("a").attr("href")){var o=parseInt($($(this).find("a").attr("href")).attr("realheight"));$($(this).find("a").attr("href")).show();if(e.resize=="yes"){e.thistab.animate({height:o+e.tabheight},300)}return false}}}}}});if(e.remember!="false"){var d=bskyb.cookie.get(e.remember);e.thistab.find(".tab-anchors li a[href='"+d+"']").parents("li").trigger("click","x")}else{if(!e.thistab.find(".tab-anchors li.on")[0]){e.thistab.find(".tab-anchors li:eq(0)").addClass("on")}}});try{if($(".tab-section#"+location.hash)[0]){$(".tab-anchors li a[href='"+location.hash+"']").trigger("click")}}catch(a){}};typeof(bskyb)!="object"&&(bskyb={});bskyb.poll=function(){$(".enable-poll").each(function(){var o=$(this).attr("data-options");var b;var e;var h=0;var n=1;var d;var f;var k=false;var g={container:$(this),url:bskyb.util.getoptions({opts:o,val:"url"}),submit:bskyb.util.getoptions({opts:o,val:"submit"}),onsubmit:bskyb.util.getoptions({opts:o,val:"onsubmit",def:"results"}),method:bskyb.util.getoptions({opts:o,val:"method",def:"POST"}),expired:bskyb.util.getoptions({opts:o,val:"show",def:"false"}),ajax:bskyb.util.getoptions({opts:o,val:"type",def:"true"}),updateinterval:function(){}};$.ajax({url:g.url,dataType:"jsonp",jsonp:"pollcallback",jsonpCallback:"pollcallback",success:function(p){e=p;if(e.poll_id!=null){c()}if(bskyb.cookie.get("poll"+e.question_id)||e.expired=="true"||g.expired=="true"){if(g.onsubmit=="thanks"){m()}else{k=true;f=bskyb.cookie.get("poll"+e.question_id);a()}}g.container.trigger("pollLoaded")},error:function(){},beforeSend:function(){g.container.html('<p class="loading">loading poll...</p>')},complete:function(p){g.container.find(".loading").remove()}});function c(){var p='<form method="'+g.method+'" name="pollform" onsubmit="return validate()" action="'+g.submit+'" id="'+e.question_id+'" rel="'+e.votes+'">\n';p+='<p class="v5-poll-question">'+e.legend+"</p>\n";p+='<ul class="v5-poll-options">\n';for(i in e.options){p+='<li id="'+e.options[i].option_id+'" rel="'+e.options[i].votes+'"><a href="#" class="option">'+e.options[i].name+'</a><div class="bar"></div></li>\n'}p+="</ul>\n";p+='<div class="v5-poll-message"></div>\n';p+='<button class="v5-poll-submit disabled">Vote Now</button>';p+='<p class="v5-poll-status"><a href="#">View results</a></p>\n';p+="</form>\n";g.container.html(p);b=g.container.find("form");g.container.find(".bar").hide()}function a(){g.container.find(".v5-poll-options").addClass("results");var s=Number(b.find("ul").width())-12;var w=Number(b.attr("rel"));var p=0;var q=0;var u=new Array();if(k){w+=1;g.container.find("#"+f).addClass("on")}g.container.find(".v5-poll-submit,").hide();g.container.find(".v5-poll-status").addClass("on");g.container.find(".v5-poll-status a").html("Vote in this poll");g.container.find(".v5-poll-options li").each(function(x){u[x]=Number($(this).attr("rel"));if(k){b.find(".v5-poll-status").hide();if($(this).hasClass("on")){u[x]+=1;$(this).attr("rel",u)}}if(u[x]>q){q=u[x]}});var t=(q/w)*100;g.container.find(".v5-poll-options li").each(function(y){var B=$(this).find(".bar");var x=$(this).find("a").html();var A=u[y]/w*100;$(this).find("a").remove();B.html('<h5 class="label">'+x+"</h5><p>"+Math.round(A)+"%</p>");if(y==0){p=g.container.outerWidth()/1.75;n=(s-p)/t}var z=Math.round(n*A)+p;B.show().animate({width:z},800);$(".label").width()})}function m(){g.container.html('<p class="v5-poll-question">'+e.legend+'</p>\n<p class="v5-poll-message">Thanks for voting...</p>')}function l(p){if(p.success=true){k=true;d=p;bskyb.cookie.set("poll"+b.attr("id"),d.vote,365);if(g.onsubmit=="results"){a()}else{if(g.onsubmit=="thanks"){m()}}}g.container.trigger("pollResults",[p])}$(".v5-poll-options:not(.results) li",g.container).live("click",function(){$(".v5-poll-options li").each(function(){$(this).removeClass("on")});$(this).toggleClass("on");b.find(".v5-poll-submit").removeClass("disabled");return false});$(".v5-poll-status",g.container).live("click",function(){if($(this).hasClass("on")){$(this).removeClass("on");g.container.find(".v5-poll-options").removeClass("results");c()}else{$(".v5-poll-options li",g.container).removeClass("on");a()}return false});$(".v5-poll-submit",g.container).live("click",function(w){$(".v5-poll-message",b).html("");if(g.ajax=="true"){w.preventDefault();var s=$(this);if(!s.hasClass("disabled")){var q=b.attr("action")+"?callback=?";var p=b.attr("id");var u=b.find(".v5-poll-options li.on").attr("id");if(u!=undefined){var t={question_id:p,vote_id:u};$.ajax({url:q,data:t,dataType:"jsonp",jsonpCallback:"pollcallback",success:function(y){try{if(y==null){throw"There was an error submitting your vote. Please try again later."}else{l(y)}}catch(x){$(".v5-poll-message",b).addClass("error").hide().html(x).fadeIn()}}})}}}return false})})};typeof(bskyb)!="object"&&(bskyb={});bskyb.scroller=function(c,b){var a=$(".enable-scroller");if(c&&c.el){a=c.el}$.getScripts([window.scriptpath+"jquery.easing.1.3.js"],function(){a.each(function(){$(this).find(".scroller-nav").remove();var e=$(this).attr("options");var d={thisscroll:$(this),width:$(this).outerWidth(),height:$(this).outerHeight(),left:parseInt($(this).css("marginLeft")),length:$(this).find(".scroller-item").length,scrollwidth:$(this).find(".scroller-item").outerWidth(),items:bskyb.util.getoptions({opts:e,val:"items",parse:true}),scroll:bskyb.util.getoptions({opts:e,val:"scroll",parse:true,def:bskyb.util.getoptions({opts:e,val:"items",parse:true})}),vertical:bskyb.util.getoptions({opts:e,val:"vertical"}),type:bskyb.util.getoptions({opts:e,val:"type"}),circular:bskyb.util.getoptions({opts:e,val:"circular",def:true}),auto:bskyb.util.getoptions({opts:e,val:"auto"}),speed:bskyb.util.getoptions({opts:e,val:"speed",def:800,parse:true}),shownav:bskyb.util.getoptions({opts:e,val:"shownav",def:true}),easing:bskyb.util.getoptions({opts:e,val:"easing",def:"easeInOutQuad"}),keys:bskyb.util.getoptions({opts:e,val:"keys"}),thumbs:bskyb.util.getoptions({opts:e,val:"thumbs"})};d.steps=Math.ceil(d.length/d.scroll);d.items==1&&(d.scroll=1);d.vertical!="false"&&(d.scrollwidth=$(this).find(".scroller-item").outerHeight())|(d.left=parseInt($(this).css("marginTop")));d.type=="console"&&d.thisscroll.addClass("scroller-console")|(d.scrollwidth=$(this).find(".scroller-item").outerWidth());d.move=function(k,f){d.thisscroll.find(".scroller-disable").show();var h=d.vertical=="false"?"marginLeft":"marginTop";var g={};g[h]=k;d.thisscroll.find(".scroller-rail").animate(g,{easing:d.easing,duration:d.speed,complete:function(){d.left=parseInt($(this).css(h));d.thisscroll.find(".scroller-disable").hide();d.thisscroll.trigger("scrolledIn")}})};d.nav=function(m,g){if(m){var k=d.thisscroll.find(".scroller-nav-item").index(d.thisscroll.find(".scroller-nav-item.on"));d.thisscroll.find(".scroller-nav-item").removeClass("on");m==1?k++:k--;if(k==d.steps){if(d.circular==true){k=0}else{k=d.steps-1}}if(k==-1){if(d.circular==true){k=d.steps-1}else{k=0}}d.thisscroll.find(".scroller-nav-item:eq("+k+")").addClass("on");if(d.circular!=true){k==0?d.thisscroll.find(".prev").addClass("disabled"):d.thisscroll.find(".prev").removeClass("disabled");k==(d.steps-1)?d.thisscroll.find(".next").addClass("disabled"):d.thisscroll.find(".next").removeClass("disabled")}}if(!m&&d.shownav!="false"){d.thisscroll.find(".scroller-nav").removeClass("js-inv");d.thisscroll.find(".scroller-nav-item").click(function(){clearInterval(d.scrollInt);d.thisscroll.find(".scroller-nav-item").removeClass("on");$(this).addClass("on");var h=parseInt($(this).attr("pos"));h=d.thisscroll.find(".scroller-item[pos='"+h+"']");h=d.thisscroll.find(".scroller-item").index(h);h=h*d.scrollwidth;d.move(h*-1);if(d.circular!=true){d.thisscroll.find(".scroller-arrows").removeClass("disabled");$(this).hasClass("last")&&d.thisscroll.find(".next").addClass("disabled");$(this).hasClass("first")&&d.thisscroll.find(".prev").addClass("disabled")}return false})}if(!m&&d.shownav=="rollover"){var f=parseInt(d.thisscroll.find(".scroller-nav").css("bottom"));var l=d.thisscroll.find(".scroller-nav").height();d.thisscroll.find(".scroller-nav").css({bottom:l*-1}).removeClass("js-inv");d.thisscroll.hover(function(){clearTimeout(d.rollint);d.thisscroll.find(".scroller-nav").animate({bottom:f})},function(){d.rollint=setTimeout(function(){d.thisscroll.find(".scroller-nav").animate({bottom:l*-1})},500)})}};actions=function(f){d.nav();d.thisscroll.find(".scroller-arrows").click(function(l,g){g!="x"&&clearInterval(d.scrollInt);var k=$(this).hasClass("next");var m=d.vertical=="false"?"marginLeft":"marginTop";var h={};h[m]=0;switch(k){case true:if(d.left==((d.steps-1)*(d.scrollwidth*d.scroll)*-1)){if(d.circular==true&&d.scroll!=1){var n=d.thisscroll.find(".scroller-item").slice(0,d.scroll);h[m]=d.left+(d.scrollwidth*d.scroll);d.thisscroll.find(".scroller-rail").append(n).css(h);d.move(d.left)}if(d.circular==true&&d.scroll==1){var n=d.thisscroll.find(".scroller-item:first");h[m]=d.left+(d.scrollwidth);d.thisscroll.find(".scroller-rail").append(n).css(h);d.move(d.left)}}else{d.move(d.left-((d.scrollwidth*d.scroll)))}d.nav(1,g);break;case false:if(d.left==0){if(d.circular==true&&d.scroll!=1){var n=d.thisscroll.find(".scroller-item").slice(d.length-d.scroll,d.length);h[m]=(d.items*d.scrollwidth)*-1;d.thisscroll.find(".scroller-rail").prepend(n).css(h);d.move(0)}if(d.circular==true&&d.scroll==1){var n=d.thisscroll.find(".scroller-item:last");h[m]=d.scrollwidth*-1;d.thisscroll.find(".scroller-rail").prepend(n).css(h);d.move(0)}}else{d.move(d.left+((d.scrollwidth*d.scroll)))}d.nav(-1,g);break}return false});if(d.keys!="false"){d.thisscroll.click(function(){d.thisscroll.find("input").trigger("focus")});d.thisscroll.find("input").keyup($.debounce(250,false,function(g){g==null?keycode=event.keyCode:keycode=g.which;keycode==39&&d.thisscroll.find(".next").trigger("click");keycode==37&&d.thisscroll.find(".prev").trigger("click")}))}d.thisscroll.removeClass("js-inv")};draw=function(t){if(d.vertical=="false"){var f=d.thisscroll.find(".scroller-item").outerWidth()*d.items;d.thisscroll.find(".scroller-con").css({width:f,overflow:"hidden"})}else{var f=d.thisscroll.find(".scroller-item").outerWidth();d.thisscroll.find(".scroller-item").css({"float":"none"});d.thisscroll.find(".scroller-con").css({width:f,height:(d.scrollwidth*d.items),overflow:"hidden"})}d.gap=(d.scroll-(d.length%d.scroll));if(d.gap!=d.scroll){var z=d.thisscroll.find(".scroller-item").slice(0,d.gap).clone().html("");d.thisscroll.find(".scroller-rail").append(z);d.length=d.length+d.gap}if(d.steps==d.length){d.steps=d.steps-(d.items-1)}d.thisscroll.find(".scroller-item").each(function(p){$(this).attr("pos",p)});d.thisscroll.append("<div class='scroller-disable' style='position:absolute;width:100%;height:100%;z-index:1000;top:0px;left:0px;display:none;'></div><div class='scroller-arrows prev'><span></span></div><div class='scroller-arrows next'><span></span></div><div class='scroller-nav js-inv'></div><input type'text' style='position:absolute;left:-100000px;height:1px;width:1px' />");d.circular!=true&&d.thisscroll.find(".prev").addClass("disabled");var o;for(j=0;j<d.steps;j++){var n="";j==0?o="on":o="";j==0&&(n="first");j==d.steps-1&&(n="last");var l=d.thisscroll.find(".scroller-item:eq("+(j*d.scroll)+")").attr("pos");var u="<div class='scroller-nav-item "+o+" "+n+" nav-"+l+"' pos='"+l+"'><span></span></div>";if(d.thumbs!=="false"){var s=$(".scroller-item",d.thisscroll);var A=s.eq(l).find("img:first").attr("src");var m=s.eq(l).find("h2:first");var C=m.html();if(m.find("a").length>0){C=m.find("a").html()}var h=A.split("/");h[5]=d.thumbs;A=h.join("/");u="<div class='scroller-nav-item "+o+" "+n+"' class='nav-"+l+"' pos='"+l+"'><span><img src='"+A+"' class='enable-tooltip' options='title="+C+"' /></span></div>"}d.thisscroll.find(".scroller-nav").append(u)}if(d.type=="console"){d.thisscroll.find(".scroller-nav").append(d.thisscroll.find(".next")).prepend(d.thisscroll.find(".prev"));var q=0;d.thisscroll.find(".scroller-nav div").each(function(p){q+=$(this).outerWidth();q+=parseInt($(this).css("marginRight"))});var g=d.thisscroll.find(".scroller-nav-item").outerWidth();q=q+(g*2);d.thisscroll.find(".scroller-nav").css({position:"absolute",width:q,left:"50%",marginLeft:(q/2)*-1})}else{if(d.type=="center"){var k=0;d.thisscroll.find(".scroller-nav-item").each(function(){var w=$(this).css("margin-left").split("px")[0]*2;k+=$(this).outerWidth();k+=w});var x=(d.width/2);var B=(k/2);var y=x-B;d.thisscroll.find(".scroller-nav").css({left:y,width:k})}else{var k=d.thisscroll.find(".scroller-nav").outerWidth();d.thisscroll.find(".scroller-nav").css({left:d.width-k,width:k})}}actions()};draw();if(d.auto!="false"){d.scrollInt=setInterval(function(){d.thisscroll.find(".next").trigger("click","x")},parseInt(d.auto))}})})};typeof(bskyb)!="object"&&(bskyb={});bskyb.tooltip=function(b){!b?b={}:b.el+",.enable-tooltip";!b.el&&(b.el=".enable-tooltip");if($(".enable-tooltip[options^='child=']").length>0){$(".enable-tooltip[options^='child=']").each(function(){$(this).removeClass("enable-tooltip");$(this).children($(this).attr("options").split("child=")[1]).addClass("enable-tooltip")})}var a={};update=function(l){var f=$("#tooltip").outerWidth(),g=$("#tooltip").outerHeight(),d=l.pageX,m=l.pageY,c=($(window).height()+$(window).scrollTop())-(m+g),k=($(window).width()+$(window).scrollLeft())-(d+f);k<20&&(d=l.pageX-(f+20));c<20&&(m=l.pageY-(g+20));$("#tooltip").css({left:d,top:m})};$(b.el).live("mouseenter",function(k){window.tooltiprndid="tooltip"+Math.floor(Math.random()*11111111);if($.browser.msie&&$.browser.version<9){$("html").css({"overflow-x":"hidden"})}if($(this).hasClass("disabled")||$(this).parent().hasClass("disabled")){$(this).attr("title","");$(this).click(function(){return false});return false}k.stopPropagation();options=$(this).attr("options");a.el=$(this);a.title=bskyb.util.getoptions({opts:options,val:"title"});a.ajax=bskyb.util.getoptions({opts:options,val:"ajax"});a.content=bskyb.util.getoptions({opts:options,val:"content"});a.addclass=bskyb.util.getoptions({opts:options,val:"addclass",def:b.addclass});a.type=bskyb.util.getoptions({opts:options,val:"type",def:b.type});a.before=bskyb.util.getoptions({opts:options,val:"before",def:b.before});a.after=bskyb.util.getoptions({opts:options,val:"after",def:b.after});a.title=="false"&&(a.title=$(this).attr("title")||$(this).attr("alt"));$(this).attr({title:"",alt:"",oldtitle:a.title});$(this).children("img,a").removeAttr("alt").removeAttr("title").children("img").removeAttr("alt");a.addclass=a.addclass.replace("*"," ");if(!$("#tooltip")[0]){$("body").prepend('<div id="tooltip" class="'+window.tooltiprndid+" "+a.addclass+'"></div>')}var h=a.title;a.content!="false"&&(h=$(a.content+":eq(0)").clone());a.before!="false"&&(h=a.before+h);a.after!="false"&&(h=h+a.after);if(a.ajax!="false"){var h=".";bskyb.tooltip.customHTML(a.el,function(e){h=e;$("#tooltip").html(h)})}if(a.type=="bubble"){$("#tooltip").html(h);var g=a.el.offset().top;var l=a.el.offset().left;var d=a.el.width();var n=$("#tooltip").outerHeight();var f=$("#tooltip").outerWidth();$("#tooltip").css({top:(g-n)-10,left:(l+(d/2))-(f/2)}).fadeIn();var c=($(window).width()+$(window).scrollLeft())-($("#tooltip").offset().left+$("#tooltip").outerWidth());c<10&&(c-=10)|$("#tooltip").css({marginLeft:(c)})}else{$("#tooltip").css({marginTop:-13,marginLeft:13}).html(h);var m=$("#tooltip").width();$("#tooltip").css({width:m,left:(k.pageX),top:(k.pageY)}).fadeIn(200)}bskyb.tvlogo()});$(b.el).live("mousemove",function(c){if(a.type!="fixed"&&a.type!="bubble"){update(c)}});$(b.el).live("mouseleave",function(c){$("#tooltip").remove();$(this).attr("title",$(this).attr("oldtitle"));($.browser.msie&&$.browser.version<9)&&$("html").css({"overflow-x":""})})};var gotArr=new Array();var callbackInfo=new Array();function fb_wdw_bet_callback(a){bet_callback(a)}function tn_win_bet_callback(a){bet_callback(a)}function bet_callback(f){var g=new Array();var b=new Array();var d=0;var c="";if(f.event.event_id){bId=f.event.event_id;$("#betLink-"+callbackInfo.betId).attr("href","http://www.skybet.com/skybet?action=GoEvEv&aff=2405&SS_FixRes_Promo&id="+bId)}count=0;for(var e in f.event.market.selections){if(f.event.market.selections[e]&&f.event.market.selections[e].attributes.displayed=="Y"){g[count]=f.event.market.selections[e].description;b[count]=f.event.market.selections[e].price;count++}d++}if(d>0){c='<ul class="bet-type-'+callbackInfo.type+'"><li class="sublinks"><a href="#">&nbsp;</a></li>';for(var a=0;a<count;a++){c+='<li class="bet-item-'+a+'">'+g[a]+' <a href="#">'+b[a]+"</a></li>"}c+="</ul>"}else{c='<ul><li class="sublinks">No bets available</li></ul>'}gotArr[callbackInfo.betId]=c;$("#tooltip.bet-tooltip").html(c)}bskyb.tooltip.customHTML=function(el,callback){var type=el.attr("type");var betId=el.attr("bid");var url="http://live.skysports.com/Betting/blinked/"+type+"/json/Quick/"+betId+".json";callback('<ul><li class="sublinks">Bet Now!</li></ul>');if(type&&betId&&gotArr[betId]==undefined){callbackInfo.type=type;callbackInfo.betId=betId;$.ajax({url:url,dataType:"jsonp",jsonpCallback:"callback",success:function(data){eval(data)}})}else{if(gotArr[betId]){callback(gotArr[betId])}}};typeof(bskyb)!="object"&&(bskyb={});bskyb.accordian=function(b){var a;if(b){a=b}else{a=".enable-accordian"}$(a).each(function(){var d=$(this).attr("options");var c={acc:$(this),speed:bskyb.util.getoptions({opts:d,val:"speed",parse:true,def:500}),remember:bskyb.util.getoptions({opts:d,val:"remember"}),multi:bskyb.util.getoptions({opts:d,val:"multi"}),delay:bskyb.util.getoptions({opts:d,val:"delay"}),open:bskyb.util.getoptions({opts:d,val:"open"}),"static":bskyb.util.getoptions({opts:d,val:"static"})};if(c["static"]!="false"){c.acc.find(".accordian-head").css({backgroundPosition:"10000px -10000px",cursor:"default"}).addClass("on")}else{c.remember!="false"&&c.acc.attr("id",c.remember);remember=function(){if(c.open=="false"){var f="";c.acc.children("ul").children(".accordian-item").each(function(g){if($(this).children(".accordian-head").hasClass("on")){f+=g+"|"}});bskyb.cookie.set(c.remember,f.replace(/\|$/,""),365)}};if(c.multi!="false"){c.acc.children("ul").children(".accordian-item").children(".accordian-head").click(function(){var g=false;if($(this).attr("url")&&$(this).hasClass("ajaxed")==false){g=$(this).attr("url")}var f=$(this);if($(this).hasClass("on")){f.closest(".accordian-item").children(".accordian-section:visible").slideUp(c.speed,function(){f.removeClass("on");remember()})}else{if(g){f.closest(".accordian-item").children(".accordian-head").addClass("ajaxed");f.closest(".accordian-item").children(".accordian-section:hidden").load(g,function(){f.closest(".accordian-item").children(".accordian-section:hidden").slideDown(c.speed,function(){f.addClass("on");remember()})})}else{f.closest(".accordian-item").children(".accordian-section:hidden").slideDown(c.speed,function(){f.addClass("on");remember()})}}return false})}if(c.multi=="false"){c.acc.children("ul").children(".accordian-item").children(".accordian-head").click(function(){if(c["static"]!="false"){return false}var g=false;if($(this).attr("url")&&$(this).hasClass("ajaxed")==false){g=$(this).attr("url")}var f=$(this);if(f.hasClass("on")){f.closest(".accordian-item").children(".accordian-section:visible").slideUp(c.speed,function(){f.removeClass("on");remember()})}else{var h=c.acc.children("ul").children(".accordian-item").children(".accordian-section:visible");if(h[0]){h.slideUp(c.speed,function(){$(this).parents(".accordian-items").children(".accordian-item").children(".accordian-head").removeClass("on");f.closest(".accordian-item").children(".accordian-head").addClass("on");if(g){f.closest(".accordian-item").children(".accordian-head").addClass("ajaxed");f.closest(".accordian-item").children(".accordian-section:hidden").load(g,function(){f.closest(".accordian-item").children(".accordian-section:hidden").slideDown(c.speed,function(){remember()})})}else{f.closest(".accordian-item").children(".accordian-section:hidden").slideDown(c.speed,function(){remember()})}})}else{f.closest(".accordian-item").children(".accordian-head").addClass("on");f.closest(".accordian-item").children(".accordian-section:hidden").slideDown(c.speed,function(){remember()})}}return false})}if(c.open!="false"){c.acc.children("ul").children(".accordian-item").children(".accordian-section").hide();c.acc.children("ul").children(".accordian-item").children(".accordian-head").removeClass("on");c.acc.children("ul").children(".accordian-item:eq("+(c.open-1)+")").children(".accordian-section").show();c.acc.children("ul").children(".accordian-item:eq("+(c.open-1)+")").children(".accordian-head").addClass("on")}else{c.acc.children("ul").children(".accordian-item").children(".accordian-section").hide();c.acc.children("ul").children(".accordian-item").children(".accordian-head").removeClass("on");c.acc.children("ul").children(".accordian-item:eq(0)").children(".accordian-section").show();c.acc.children("ul").children(".accordian-item:eq(0)").children(".accordian-head").addClass("on")}if(c.remember!="false"&&bskyb.cookie.get(c.remember)){$("#"+c.remember).children("ul").children(".accordian-item").children(".accordian-section").hide();$("#"+c.remember).children("ul").children(".accordian-item").children(".accordian-head").removeClass("on");var e=bskyb.cookie.get(c.remember).split("|");$(e).each(function(){$("#"+c.remember).children("ul").children(".accordian-item:eq("+(this)+")").children(".accordian-section").show();$("#"+c.remember).children("ul").children(".accordian-item:eq("+(this)+")").children(".accordian-head").addClass("on")})}}});$(".accordian-close").click(function(){var c=$(this).attr("targetacc");$(this).addClass("on");$(this).parents("ul").find(".accordian-open").removeClass("on");c?$(c).find("div.accordian-section").slideUp(300):$("div.accordian-section").slideUp(300);c?$(c).find("tr.accordian-section").hide():$("tr.accordian-section").hide();return false});$(".accordian-open").click(function(){var d=$(this);var c=$(this).attr("targetacc");$(this).addClass("on");$(this).parents("ul").find(".accordian-close").removeClass("on");if($(this).attr("href").length>2&&$(this).hasClass("ajaxed")==false){$(c).find("div.accordian-section").load($(this).attr("href"),function(){d.addClass("ajaxed");c?$(c).find("div.accordian-section").slideDown(300):$("div.accordian-section").slideDown(300);c?$(c).find("tr.accordian-section").show():$("tr.accordian-section").show()})}else{c?$(c).find("div.accordian-section").slideDown(300):$("div.accordian-section").slideDown(300);c?$(c).find("tr.accordian-section").show():$("tr.accordian-section").show()}return false})};typeof(bskyb)!="object"&&(bskyb={});bskyb.compheader=function(){$(".enable-comp-hdr").each(function(){var b=$(this);var a=new Image();var c=b.find(".comp-hdr-logo img").attr("src");!c&&(c=b.find(".comp-hdr-con img:first").attr("src"));$(a).bind("load",function(){var f=b.width();var d=b.find(".comp-hdr-logo").outerWidth();var g=parseInt(b.find(".comp-hdr-con").css("right"));var k=(f-d)-g;b.find(".comp-hdr-con").css({marginLeft:d,width:k});var e=b.find(".comp-hdr-rail li").reverse();var h=(k/(e.length))-e.width();e.css({marginLeft:Math.floor(h)}).find("a").addClass("enable-tooltip");b.find(".comp-hdr-con,.comp-hdr-logo").css({visibility:"visible"})}).attr("src",c)})};typeof(bskyb)!="object"&&(bskyb={});bskyb.inlinegallery=function(){$(".enable-inlinegallery").each(function(c){var b=$(this).attr("options");var a={el:$(this),imagepath:bskyb.util.getoptions({opts:b,val:"imagepath"}),nav:bskyb.util.getoptions({opts:b,val:"nav"}),showthumbs:bskyb.util.getoptions({opts:b,val:"showthumbs"}),timer:bskyb.util.getoptions({opts:b,val:"timer"}),length:$(this).find(".base-gallery-thumbs li").length,thickbox:bskyb.util.getoptions({opts:b,val:"thickbox"})};if(a.length>0){if(a.timer!="false"){a.el.append("<div class='base-gallery-control' style='visisbility:hidden'><div class='base-gallery-timer'> </div> <em class='base-gallery-count'>1 of "+a.length+"</em></div>");if(a.timer=="yes"){a.timer=5}a.el.find(".base-gallery-timer").click(function(){if($(this).hasClass("on")==false){$(this).addClass("on");window[a.el.attr("id")]=setInterval(function(){a.el.find(".forwardone").trigger("click","x")},a.timer)}else{clearInterval(window[a.el.attr("id")]);$(this).removeClass("on")}})}a.el.append("<div class=base-gallery-panel-toggle> </div>");a.el.find(".base-gallery-panel-toggle").click(function(){if(a.el.find(".base-gallery-thumbs:hidden")[0]){$(this).addClass("on");a.el.find(".base-gallery-thumbs:hidden").slideDown()}else{$(this).removeClass("on");a.el.find(".base-gallery-thumbs").slideUp()}});a.el.append("<div class='base-gallery-mainnav' style='visibility:hidden'><em> </em></div><div class='base-gallery-mainnav forwardone' style='visibility:hidden'><em> </em></div>");a.el.find(".base-gallery-mainnav").click(function(f,d){if(d!="x"){clearInterval(window[a.el.attr("id")]);a.el.find(".base-gallery-timer").removeClass("on")}var e=a.el.find(".base-gallery-thumbs li").index(a.el.find(".base-gallery-thumbs li.on"));if($(this).hasClass("forwardone")==true){e++;if(e>a.length-1){e=0}a.el.find(".base-gallery-thumbs li:eq("+e+")").trigger("click",d)}else{e--;if(e<0){e=a.length-1}a.el.find(".base-gallery-thumbs li:eq("+e+")").trigger("click",d)}})}if(a.showthumbs=="false"){a.el.find(".base-gallery-thumbs").show()}if(a.nav!="false"){a.el.find(".base-gallery-mainnav").css({visibility:"visible"})}if(a.length==1){a.el.find(".base-gallery-thumbs,.base-gallery-mainnav,.base-gallery-timer,.base-gallery-count,.base-gallery-panel-toggle").hide()}a.el.find(".base-gallery-thumbs li").click(function(o,n){if(n!="x"){clearInterval(window[a.el.attr("id")]);a.el.find(".base-gallery-timer").removeClass("on")}a.el.find(".base-gallery-thumbs li").removeClass("on");$(this).addClass("on");var g=a.el.find(".base-gallery-thumbs li").index($(this));a.el.find(".base-gallery-count").html((g+1)+" of "+a.length);var k=$(this).find("a").attr("href");var h=$(this).find("a").hasClass("tool-tip");var m=$(this).find("a").attr("title")||$(this).find("a").attr("oldtitle");var l=$(this).find("img").attr("src");var f=/\/\d{2,3}x\d{2,3}\//gi;newim=l.replace(f,"/"+a.imagepath+"/");function d(q){a.el.find(".base-gallery-pic span").append(q);a.el.find(".base-gallery-pic span").fadeIn(500,function(){a.el.find(".base-text-caption").html(m);k?a.el.find(".base-gallery-pic").html("<span></span><a href='"+k+"'><img src='"+newim+"' /></a>"):a.el.find(".base-gallery-pic").html("<span></span><img src='"+newim+"' />");k.match(/\.jpg$|\.jpeg$|\.gif$|\.png$/)&&a.el.find(".base-gallery-pic a").addClass("enable-thickbox").attr({options:"width=800&height=600&caption="+m+""})});$.getScripts(window.scriptpath+"bskyb.thickbox.js",function(){})}var e=$("<img />").attr({src:newim});if(e[0].complete){d(e[0])}else{e.load(function(){d(this)})}return false});a.interval!="false"&&a.el.find(".base-gallery-timer").trigger("click")})};typeof(bskyb)!="object"&&(bskyb={});bskyb.nav=function(){$(".nav-enable").not(".nav-enabled").each(function(){$(this).addClass("nav-enabled");var b=$(this);var a=$(this).attr("options");var d={anim:bskyb.util.getoptions({opts:a,val:"animate"}),speed:bskyb.util.getoptions({opts:a,val:"speed",parse:true,def:300}),offspeed:bskyb.util.getoptions({opts:a,val:"offspeed",parse:true,def:100}),height:bskyb.util.getoptions({opts:a,val:"height",parse:true,def:200}),lowlight:bskyb.util.getoptions({opts:a,val:"lowlight"})};var c=$(this).width();$(this).find(".base-nav-item").each(function(){var k=$(this).position().left;var g=$(this).find(".base-nav-drop").width();var e=(k+g)-c;if(e>0){$(this).find(".base-nav-drop").css({marginLeft:(e*-1)-12})}if(d.anim=="slide"){var f=$(this).find(".base-nav-drop").height();$(this).find(".base-nav-drop").attr("realheight",f).css({height:0,overflow:"hidden"})}});if(d.anim=="slide"){$(this).find(".base-nav-item").hover(function(){if(d.lowlight!="false"){b.find(".base-nav-item").addClass("off");clearTimeout(window.settempnav)}if($(this).hasClass("on")){$(this).addClass("orig")}$(this).addClass("on").removeClass("off");Nheight=$(this).find(".base-nav-drop").attr("realheight");$(this).find(".base-nav-drop").stop().animate({height:Nheight},{queue:false,duration:Nspeed})},function(){window.settempnav=setTimeout(function(){b.find(".base-nav-item").removeClass("off")},200);if(!$(this).hasClass("orig")){$(this).removeClass("on")}$(this).removeClass("drop");$(this).find(".base-nav-drop").stop().animate({height:"0px"},{queue:false,duration:(d.offspeed+1),complete:function(){$(this).hide()}})})}if(d.anim=="false"||d.anim=="undefined"||d.anim=="off"||d.anim=="no"){$(this).find(".base-nav-item").hover(function(){if(d.lowlight!="false"){b.find(".base-nav-item").addClass("off");clearTimeout(window.settempnav)}if($(this).find(".base-nav-drop")[0]){$(this).addClass("drop")}if($(this).hasClass("on")){$(this).addClass("orig")}$(this).addClass("on").removeClass("off");$(this).find(".base-nav-drop").show()},function(){window.settempnav=setTimeout(function(){b.find(".base-nav-item").removeClass("off")},200);if($(this).hasClass("orig")==false){$(this).removeClass("on")}else{$(this).removeClass("orig")}$(this).find(".base-nav-drop").hide();$(this).removeClass("drop")})}$(this).find(".base-nav-link").click(function(){if($(this).attr("href")=="#"){return false}});$(this).find(".nav-drop-link").click(function(){if($(this).attr("id")){var e="1";if(getCookie($(this).attr("id"))){e="2"}setCookie($(this).attr("id"),e,3)}});$(this).find(".nav-drop-link").each(function(){if(getCookie($(this).attr("id"))){$(this).addClass("weighted1");if(getCookie($(this).attr("id"))=="2"){$(this).addClass("weighted2")}}})})};bskyb.teamselector={write:function(){$("#team-selector-football .base-button-t1").click(function(){bskyb.thickbox.launch({w:"590",h:"410",type:"false",load:$(this).attr("href"),addclass:"thick-chromeless"});return false});bskyb.teamselector.teamsArray={};$("[id^='team-selector']").each(function(a){var b=$(this).attr("id");if(typeof(bskyb.teamselector.teamsArray[$(this).attr("id")])!="object"){bskyb.teamselector.teamsArray[$(this).attr("id")]=[];if(getCookie($(this).attr("id"))){bskyb.teamselector.teamsArray[b]=$.evalJSON(bskyb.cookie.get(b));$(bskyb.teamselector.teamsArray[b]).each(function(c){if(c<3){$(".base-nav-t2 ul[id="+b+"]").prepend("<li><a href='"+bskyb.teamselector.teamsArray[b][c].url+"'>"+bskyb.teamselector.teamsArray[b][c].team+"</a></li>");$(".base-nav-drop #"+b).append("<li class='nav-drop-link'><a href='"+bskyb.teamselector.teamsArray[b][c].url+"'>"+bskyb.teamselector.teamsArray[b][c].team+"</a></li>")}if(c>2){delete bskyb.teamselector.teamsArray[b][c]}})}bskyb.teamselector.add(b)}})},add:function(a){$(".ms-select #"+a+" li a, .base-finder-links .nav-drop-links li a").click(function(){var b=$(this).attr("href");var e=$(this).text();var h=false;$(bskyb.teamselector.teamsArray[a]).each(function(c){if(this.team==e){h=true}});if(h==false){bskyb.teamselector.teamsArray[a].unshift({team:e,url:b})}bskyb.teamselector.teamsArray[a].length=3;var g=$.toJSON(bskyb.teamselector.teamsArray[a]);var f=$.toJSON(bskyb.teamselector.teamsArray);bskyb.cookie.set(a,g,360)})}};$(function(){if(window.teamselectdone!=1){bskyb.teamselector.write()}window.teamselectdone=1});typeof(bskyb)!="object"&&(bskyb={});bskyb.carousel=function(a){$(".enable-carousel").each(function(){var s=$(this).attr("options");var c={};c.el=$(this);c.length=$(this).find(".carousel-list-item").length;c.heros=$(this).find(".carousel-hero-item").clone();c.listheight=($(this).find(".carousel-list-item").height()+parseInt($(this).find(".carousel-list-item").css("marginBottom")))*-1;c.speed=bskyb.util.getoptions({opts:s,val:"speed",parse:true,def:500});c.auto=bskyb.util.getoptions({opts:s,val:"auto"});c.fixed=bskyb.util.getoptions({opts:s,val:"fixed"});c.nocycle=bskyb.util.getoptions({opts:s,val:"nocycle"});function p(u){try{sky.tracking.featuredContentClickManual("carousel",u)}catch(t){}}function m(t){var e=c.el.find(".carousel-disabled");c.el.find(".carousel-disabled:visible")[0]?e.hide():e.show()}function k(t){c.heros.removeClass("js-hdn");var e=c.heros.find(".gallery-placeholder").clone();c.heros.find(".enable-gallery").html("").append(e);c.el.find(".carousel-hero-item:gt(0)").remove();c.el.find(".carousel-hero-item").attr({rel:"0"});c.el.find(".carousel-list-item").each(function(w){$(this).attr({rel:w});c.heros.eq(w).attr({rel:w})});c.el.find(".carousel-list-rail").prepend(c.el.find(".carousel-list-rail li:last").clone());c.el.find(".carousel-list-rail").append(c.el.find(".carousel-list-rail li:eq(1)").clone());c.el.find(".carousel-list-rail").append(c.el.find(".carousel-list-rail li:eq(2)").clone());c.el.find(".carousel-list-rail").css({marginTop:c.listheight*2});if(c.fixed=="false"){c.el.append('<div class="carousel-controls"><div class="carousel-butt butt-bw"></div><ul></ul><div class="carousel-butt butt-fw"></div></div><span class="disabled"></span>');for(i=0;i<c.length;i++){var u="";i==0&&(u="disabled");c.el.find(".carousel-controls ul").append('<li class="'+u+' currentitem" rel="'+i+'"></li>')}c.el.append('<div class="carousel-disabled"></div>')}c.el.delegate(".hero-link-overlay","click",function(w){location.href=$(this).attr("href")});c.el.delegate(".hero-link-overlay","mouseover",function(w){c.el.find(".hero-hdl,.hero-byl").addClass("on")});c.el.delegate(".hero-link-overlay","mouseout",function(w){c.el.find(".hero-hdl,.hero-byl").removeClass("on")});c.el.delegate("#tab-latest div.carousel-hero-item","click",function(x){var w=$(this).attr("rel");p("carousel-item-"+w)});$(".v5-carousel .carousel-hero-item").show();c.heros.css({display:"block"});c.el.find(".carousel-list-rail li").css({visibility:"visible"});c.el.find(".carousel-list-rail").css({backgroundImage:"none"});c.el.addClass("loaded").css({backgroundImage:"none"})}function d(e){if(c.heros.length<2){return false}if(typeof(e.auto)=="undefined"){clearTimeout(window.carouselInterval);c.auto="false";c.nocycle="false";c.el.find(".carousel-list-item").removeClass("disabled")}else{}if(c.fixed!="false"){c.nocycle="true"}if(e.item==c.length){e.item=0}if(e.item==-1){e.item=c.length-1}if(e.item!="x"){m();f({item:e.item,nocycle:c.nocycle},function(t){if(c.fixed=="false"){if(c.nocycle=="false"){c.el.find(".carousel-controls ul li").removeClass("disabled");c.el.find(".carousel-controls ul li:eq("+e.item+")").addClass("disabled")}c.el.find(".carousel-controls ul li").removeClass("currentitem");c.el.find(".carousel-controls ul li:eq("+e.item+")").addClass("currentitem");g({item:e.item,direction:e.direction,skip:e.skip})}})}if(e.item=="x"){c.el.find(".carousel-controls ul li").click(function(){p("dot nav");if($(this).hasClass("disabled")==false){d({item:$(this).attr("rel")})}})}if(e.scroll){}}function b(e){c.el.find(".carousel-butt").click(function(u,t){!t&&p("back and forward arrows");var w=c.el.find(".carousel-controls ul li").index(c.el.find(".carousel-controls ul li.currentitem"));if($(this).hasClass("butt-fw")){d({item:w+1,direction:"forwards",auto:t})}else{d({item:w-1,direction:"backwards",auto:t})}})}function g(u){if(u.direction=="forwards"){if(u.skip==1){c.el.find(".carousel-list-rail").css({marginTop:0})}if(parseInt(c.el.find(".carousel-list-rail").css("marginTop"))==c.listheight*(c.length+1)){c.el.find(".carousel-list-rail").css({marginTop:c.listheight})}c.el.find(".carousel-list-rail").animate({marginTop:c.listheight*(parseInt(u.item+2))},c.speed,function(){if(u.item==c.length-1){c.el.find(".carousel-list-rail").css({marginTop:c.listheight})}})}if(u.direction=="backwards"){if(u.item!=c.length-1){var e=parseInt(c.el.find(".carousel-list-rail").css("marginTop"));c.el.find(".carousel-list-rail").animate({marginTop:e-c.listheight},c.speed)}else{c.el.find(".carousel-list-rail").animate({marginTop:c.listheight},c.speed,function(){c.el.find(".carousel-list-rail").css({marginTop:c.listheight*(c.length+1)})})}}if(!u.direction){c.el.find(".carousel-list-rail").animate({marginTop:c.listheight*(parseInt(u.item)+2)},c.speed)}}function o(e){c.el.find(".carousel-list-item").click(function(){p("carousel thumbnails");if($(this).hasClass("disabled")){return false}if(c.fixed!="false"){location.href=$(this).find(".carousel-list-link").attr("href")}else{if($(this).position().top==0){c.el.find(".butt-fw").trigger("click","x")}else{var u=parseInt($(this).attr("rel")),t;u==0?t=1:t=0;d({direction:"forwards",item:u,skip:t})}return false}})}function f(t,C){function u(J){var I=-660,H=c.speed;C&&C();c.el.find(".carousel-hero-rail").animate({marginLeft:I},H,function(){c.el.find(".carousel-hero-rail").css({marginLeft:0});c.el.find(".carousel-hero-rail").find(".carousel-hero-item:first").remove();m();c.el.find(".overlay-loader").removeClass("js-hdn");switch(D){case"standard":l();break;case"gallery":$(".hero-gallery .v5-gallery:visible").Gallery();break;case"video":l();break}})}var y=c.heros.eq(t.item).clone();var D=y.attr("type");if(c.auto!="false"&&t.nocycle!="false"&&!t.noscroll){D="nocycle"}switch(D){case"standard":var G=y.find(".hero-img").attr("load");if(y.find(".hero-img").attr("load").length>0){var A=new Image();$(A).bind("load",function(H){y.find(".hero-img").attr("src",G);c.el.find(".carousel-hero-rail").append(y);u(y)}).error(function(){C&&C();m()}).attr("src",G)}else{u(y)}break;case"video":var B=y.attr("videoid");var E=y.attr("videoname");var e=y.attr("id");var w=y.attr("pageurl");var x=y.attr("videoposter");var F=y.attr("videowidth")||"662";var z=y.attr("videoheight")||"372";c.el.find(".carousel-hero-rail").append(y);h({videoid:B,hero:y,videoname:E,id:e,videowidth:F,videoheight:z},function(H){$.getJSON("http://api.brightcove.com/services/library?command=find_video_by_id&media_delivery=http&video_fields=name,videoStillURL,renditions&video_id="+B+"&token=FKf2-UXI9EvFQmSk77uLPw5oVfIcmNUcDTXD9Cl_oRc.&callback=?",function(J){$("#"+y.attr("id")).prepend("<h4 class='hero-byl v5-rnd-5'>VIDEO: "+J.name+"</h4><img src='/Images/skysports/v5/ajax-loader-t6.gif' class='overlay-loader js-hdn' /><span class='overlay'></span><img class='v5-vid-thumb'/>");if(t.firstplay==true){c.el.find(".overlay-loader").removeClass("js-hdn")}var I=new Image();if(x||x.length>0){J.videoStillURL=x}$(I).bind("load",function(K){$("#"+y.attr("id")).find(".v5-vid-thumb").attr("src",J.videoStillURL);$("#"+y.attr("id")).find("span.overlay").mouseover(function(){$("#"+y.attr("id")).find(".hero-byl").addClass("on")});$("#"+y.attr("id")).find("span.overlay").mouseout(function(){$("#"+y.attr("id")).find(".hero-byl").removeClass("on")});$("#"+y.attr("id")).find("span.overlay,.hero-byl").click(function(){$("#"+y.attr("id")).find(".hero-byl,span.overlay").hide();$("#"+y.attr("id")).find(".v5-vid-thumb").hide();if(navigator.userAgent.match(/iP/)){y.append("<video controls id='carousel-html5vid' src='"+J.renditions[1].url+"' width='660px' height='350px'></video>");y.find("#carousel-html5vid")[0].play()}else{VCVP[E].loadVideo(B)}clearTimeout(window.carouselInterval);c.auto="false";c.nocycle="false"});if(t.noscroll!=true){u(y)}else{l(t)}}).attr("src",J.videoStillURL);if(navigator.userAgent.match(/iP/)){y.find("span.overlay").css({visibility:"visible"});y.find(".overlay-loader").remove()}})});break;case"gallery":c.el.find(".carousel-hero-rail").append(y);u(y);break;case"nocycle":c.el.find(".carousel-list-item[rel=0]").addClass("disabled");C&&C();m();l();break}}function h(x,u){!x.videowidth&&(x.videowidth=662);!x.videoheight&&(x.videoheight=372);var A="false";if(x.auto){A=x.auto}if(navigator.userAgent.match(/iP/)){u()}else{var y={};y.width=x.videowidth;y.height=x.videoheight;y.bgcolor="#050538";y.playerID="739703908001";y.publisherID="165012893";y.wmode="transparent";y.isVid="true";y.isUI="true";y.dynamicStreaming="true";y.videoSmoothing="true";y.autoStart=x.auto;y.videoId=x.videoid;var t=brightcove.createElement("object");t.id=x.videoname;var z;for(var e in y){z=brightcove.createElement("param");z.name=e;z.value=y[e];t.appendChild(z)}var w=document.getElementById(x.id);brightcove.createExperience(t,w,true);u()}}function l(e){clearInterval(window.carouselInterval);if(c.auto!="false"){c.auto=parseInt(c.auto);window.carouselInterval=setTimeout(function(){c.el.find(".butt-fw").trigger("click","x")},c.auto)}}function q(){k();b();d({item:"x",auto:"x"});o()}try{if(location.hash!="#tab-watch"){q()}}catch(n){}if(c.heros.eq(0).attr("type")=="video"){c.el.find(".carousel-hero-rail .carousel-hero-item").remove();f({item:0,type:"video",noscroll:true,firstplay:true});if(c.nocycle!="false"){c.auto=c.auto}else{clearTimeout(window.carouselInterval);c.auto="false";c.nocycle="false"}}if(c.heros.eq(0).attr("type")=="gallery"){$(".hero-gallery .v5-gallery:visible").Gallery()}if(c.heros.eq(0).attr("type")=="standard"){l()}tabactions=function(){var t=c.el.parents(".enable-tabs");c.el.parents(".enable-tabs").find(".tab-anchors li").click(function(y,e){$(".vp-popout-disabled").hide();c.el.find("video").each(function(){this.pause()});if($(this).hasClass("tab-watch")){function B(E){var C=$(".v-player-container",t);var x=$("li#"+E);var D=x.find("a").attr("href");if(C.find("iframe").length==1){C.html("");__spHost.startPageUrl=D;__spHost.createSyndicatedPlayer()}else{C.html("");__spHost=new SPHost();__spHost.hostId="SKYSPORTS";__spHost.brandName="Sky Sports";__spHost.placeHolder=C.get(0);__spHost.startPageUrl=D;__spHost.createSyndicatedPlayer()}$(".v5-channel-nav li").removeClass("on");x.addClass("on")}function z(){var x=$(".v-player-container",t).html("<img src='/Images/skysports/v5/ajax-loader-t6.gif' class='overlay-loader' />");if(bskyb.browser=="ios"){$.getJSON("http://api.brightcove.com/services/library?command=find_video_by_id&media_delivery=http&video_id=1806217383&token=FKf2-UXI9EvFQmSk77uLPw5oVfIcmNUcDTXD9Cl_oRc.&callback=?",function(C){$("#vp-player-holder").html("<video height='352px' width='662px' src='"+C.videoFullLength.url+"' poster='"+C.videoStillURL+"' controls=controls></video>").find("overlay-loader").remove()})}else{h({videoid:1806217383,auto:true,videoname:"rollingnews",id:"vp-player-holder"},function(){$(".col2",t).find(".v5-channel-nav li").removeClass("on");$(".v5-channel-nav .free",t).parent().addClass("on")})}}function w(){var x={st:0};if(bskyb.cookie.get("interactive")){x=$.evalJSON(decodeURIComponent(bskyb.cookie.get("interactive")))}if(x.st&&x.st==2&&bskyb.cookie.get("skyplayerSSO")){$("#vp-popout-button").show();$("#tab-watch .vp-login-box").remove();$("#tab-watch .disable-nav").remove();$("#tab-watch #vp-channel-nav").animate({opacity:1},function(){$(this).removeClass("disabled")});if(bskyb.cookie.get("tab-watch-channel")){if(bskyb.cookie.get("tab-watch-channel")!="ch-0"){B(bskyb.cookie.get("tab-watch-channel"))}else{z()}}else{z()}}else{$("#vp-popout-button").hide();$("#tab-watch .vp-login-box").show();if(bskyb.cookie.get("tab-watch-channel")=="ch-0"){z()}else{bskyb.cookie.set("tab-watch-channel","ch-0");z()}}}clearInterval(window.bskybgallery0);clearTimeout(window.carouselInterval);c.auto="false";var A=c.el.find(".hero-video").attr("videoname");VCVP[A]&&VCVP[A].pause();if($("#tab-watch",t).children().length==0){$.ajax({url:$(this).attr("url"),success:function(x){$("#tab-watch",t).append(x);w();$(".v5-channel-nav .subscribe",t).bind("click",function(){if(!$(this).parent().hasClass("disabled")){var C=$(this).parents("li").attr("id");bskyb.cookie.set("tab-watch-channel",C);B(C)}return false});$(".v5-channel-nav .free",t).bind("click",function(){var C=$(this).parents("li").attr("id");bskyb.cookie.set("tab-watch-channel",C);z();return false})}})}else{w()}}if($(this).hasClass("tab-latest")){if(c.el.hasClass("loaded")==false){q()}if($(".v-player-container iframe",t).length==1){$(".v-player-container iframe",t).attr("src","")}if(VCVP.rollingnews){VCVP.rollingnews&&VCVP.rollingnews.pause()}}return false});try{if($(".tab-section#"+(location.hash.replace("jumpto-","")))[0]){$(".tab-anchors li a[href='"+(location.hash.replace("jumpto-",""))+"']").trigger("click")}}catch(u){}};tabactions();$(window).scroll($.debounce(600,function(){$("#tab-latest div.enable-carousel:in-viewport")[0]?l():clearTimeout(window.carouselInterval)}))})};function SPHost(h,o,l,k){var c="width=634,height=499,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no";var f="currentPosition";var d="popped";var e="hostId";this.hostId;this.brandName;this.placeHolder;this.startPageUrl;var m="/SVOD/COMMON/STATICPAGES/SYNDICATEDPLAYERHOST/syndicatedPlayerProxy.html";var g={successUrl:encodeURIComponent(window.location)};var b,n,a;SPHost.prototype.createSyndicatedPlayer=function(){function x(y,z){if(document.all){y.innerText=z}else{y.textContent=z}}var w=document.createElement("div");w.className="syndicatedPlayerHeader";var u=document.createElement("h3");w.appendChild(u);var t=document.createElement("a");x(t,this.brandName+" on Sky Player");u.appendChild(t);a=document.createElement("div");a.className="syndicatedPlayerContainer";var s=document.createElement("div");s.className="top";a.appendChild(s);var q=document.createElement("div");q.className="left";a.appendChild(q);a.appendChild(this._buildProxyIframe(this.startPageUrl));this.placeHolder.appendChild(a);var p=document.createElement("div");p.className="right";a.appendChild(p)};this.setSuccessUrl=function(p){g.successUrl=encodeURIComponent(p)};this.setSignInTitle=function(p){g.signInTitle=encodeURIComponent(p)};this.setSignInLinkText=function(p){g.signInLinkText=encodeURIComponent(p)};this.setSignUpTitle=function(p){g.signUpTitle=encodeURIComponent(p)};this.setSignUpLinkText=function(p){g.signUpLinkText=encodeURIComponent(p)};this._buildPlayUrl=function(q){var p=q.indexOf("?")>=0?"&":"?";return q+=p+e+"="+this.hostId};this._buildPlayDetachedUrl=function(p){return this._buildPlayUrl(p)+"&"+f+"=0&"+d+"=true"};this._buildProxyIframe=function(s,q){if(s){n=this.getDomainFromUrl(s)}if(b===undefined){b=document.createElement("iframe");b.setAttribute("scrolling","no");b.setAttribute("verticalscrolling","no");b.setAttribute("allowtransparency","true");b.setAttribute("style","overflow:hidden;position:relative");b.setAttribute("frameborder","0");b.setAttribute("width","660px");b.setAttribute("height","430px");b.id="syndicatedPlayerProxy"}var t;if(n){t=n+m+this.buildQueryString(s,q);if(q===true){var p=b.cloneNode(false);p.src=t;return p}b.src=t;return b}return b};this.buildQueryString=function(t,s){var p=[],u="";for(param in g){p[param]=g[param]}if(s===true){p.playUrl=encodeURIComponent(this._buildPlayDetachedUrl(t))}else{p.playUrl=encodeURIComponent(this._buildPlayUrl(t))}for(var q in p){u+=p[q]!=="null"?q+"="+p[q]+"&":""}return u!==""?"?"+u.substring(0,u.length-1):""};this.getDomainFromUrl=function(q){var s=/(http|https)?(:\/\/)?([\w-.:]+)($\/)?/;var p=s.exec(q);return p?(p[1]+"://"+p[3]):false};this.getDomain=function(){var s=/^(?:[a-zA-Z]{3,5}\:\/\/)?(?:[a-zA-Z\-0-9]+\.)*?([a-zA-Z\-0-9]+(?:\.[a-zA-Z]{2,3}){1,2})(?:\/|$)/;var q=n+"/";var p=s.exec(q);return p[1]};SPHost.prototype.play=function(p){this._buildProxyIframe(p);return false};SPHost.prototype.playDetached=function(s){var q=this._buildProxyIframe(s,true);var p="syndicatePlayer"+Math.floor(Math.random()*1000000);var t=window.open(q.src,p,c);t.document.body.style.width="100%";t.document.body.style.height="100%";t.document.body.style.margin="0px";t.document.body.style.padding="0px";return false}}typeof(bskyb)!="object"&&(bskyb={});bskyb.forms={article:function(){if($(".enable-art-tools")){bskyb.forms.socialTools()}if($(".btn-like")[0]){bskyb.forms.likeMe()}if($(".enable-form")[0]){bskyb.forms.validation(".enable-form")}if($(".enable-expand")[0]){bskyb.forms.textarea(".enable-expand")}},textarea:function(a){if($.browser.msie&&$.browser.version<7){return false}(function(b){b.fn.autogrow=function(c){this.filter("textarea").each(function(){var f=b(this),e=f.height(),d=f.css("lineHeight");var h=b("<div></div>").css({position:"absolute",top:-10000,left:-10000,width:b(this).width()-parseInt(f.css("paddingLeft"))-parseInt(f.css("paddingRight")),fontSize:f.css("fontSize"),fontFamily:f.css("fontFamily"),lineHeight:f.css("lineHeight"),resize:"none"}).appendTo(document.body);var g=function(){var l=function(m,p){for(var n=0,o="";n<p;n++){o+=m}return o};var k=this.value.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&/g,"&amp;").replace(/\n$/,"<br/>&nbsp;").replace(/\n/g,"<br/>").replace(/ {2,}/g,function(m){return l("&nbsp;",m.length-1)+" "});h.html(k);b(this).css("height",Math.max(h.height()+20,e))};b(this).change(g).keyup(g).keydown(g);g.apply(this)});return this}}(jQuery));$(a).autogrow({})},socialTools:function(){$.getScripts(["http://platform.twitter.com/widgets.js","https://apis.google.com/js/plusone.js"],function(){var a=$(".v5-art-head").find(".v5-art-hdl").html();$(".enable-art-tools").each(function(){var b=$(this);var c=$(this).find(".art-tools-twitter").attr("useURL");b.find(".art-tools-twitter").html("<a href='http://twitter.com/share' data-text='"+a+"' data-url='"+c+"' class='twitter-share-button' data-count='horizontal' data-via='SkySports'><span class=js-hdn>Tweet</span></a>");b.find(".art-tools-google").html("<g:plusone size='medium'></g:plusone>");$("body").prepend('<div id="fb-root" style=display:none></div>');b.find(".art-tools-facebook").html('<fb:like show_faces="false" width="400" font="arial"></fb:like>');FB.init({xfbml:true})})})},likeMe:function(){var a=$(".btn-like:not(.btn-off),.btn-dislike:not(.btn-off)");a.each(function(){if(bskyb.cookie.get("liked-"+$(this).find("a").attr("id"))=="1"){$(this).addClass("btn-disable").find("a").attr("title","You have already rated this")}else{$(this).removeClass("btn-disable")}});$(a).live("click",function(){if($(this).hasClass("btn-disable")==false){var d=$(this).hasClass("btn-like");var f=$(this).find("a").attr("id");var e=parseInt($(this).find("a").text());var b=$(this).find("a").attr("likeurl");bskyb.cookie.set("liked-"+f,"1",365);$(".btn-like a[id="+f+"],.btn-dislike a[id="+f+"]").attr({title:"You have already rated this",oldtitle:"You have already rated this"}).parent().addClass("btn-disable");$("#tooltip").remove();if(d==true){$(".btn-like a[id="+f+"]").text(e+1);rateValue=1}else{$(".btn-dislike a[id="+f+"]").text(e+1);rateValue=0}if($(this).attr("type")=="article"){if(window.rateItem){rateItem(rateValue,5,f,false)}}else{if(window.rateItem){rateItem(rateValue,9,f,false)}}}return false});$(".btn-off").click(function(){return false})},validation:function(d){var f=$(d).attr("id");if(bskyb.cookie.get(f)){$("#rememberform").attr("checked","checked").addClass("on");var b=bskyb.cookie.get(f).split("&");$(b).each(function(){var a=this.split("=");$(d).find(":input[name="+a[0]+"]").val(unescape(a[1]));$(d).find("input:radio[name="+a[0]+"][value="+a[1]+"]").attr("checked","checked")})}var e=$(".v5-art-form").clone();$(".art-reply-lnk").click(function(){var c=$(this).parents(".v5-art-reply");e.find("input[name='assocId']").val($(this).attr("rel"));e.find("input[name='assocTypeId']").val(9);e.find(".hdr-text").text("Post Reply");if($(".form-indented")[0]){if(c.next(".form-indented")[0]){$(".form-indented").remove()}else{c.after($(".form-indented"))}}else{e.addClass("form-indented");var a=$(".v5-art-form #rememberform")[0].checked;e.find("#rememberform")[0]&&(e.find("#rememberform")[0].checked=a);c.after(e);$(e).find(".v5-form").validate()}return false});$(".v5-art-form label[for=rememberform]").live("click",function(a){a.preventDefault();if($(this).prev("input:checked")[0]){$(".v5-art-form #rememberform").removeAttr("checked")}else{$(".v5-art-form #rememberform").attr("checked","checked")}});$.getScript(window.scriptpath+"jquery.validate.js",function(){bskyb.util.checkFunc(jQuery().validate,function(a){jQuery.validator.addMethod("letters",function(g,c){return this.optional(c)||/^[A-Za-z\-\']+$/.test(g)},"Field must consist of letters only.");$(d).validate()})})}};typeof(bskyb)!="object"&&(bskyb={});bskyb.table={};bskyb.table.split=function(){$(".enable-splittable").each(function(){$(this).wrap("<div class='v5-split-table' />");var f=$(this);var b=$(this).clone();var a=$(this).parent();f.show();b.css({display:"block",visibility:"hidden",position:"absolute",left:-1000});$("body").append(b);var g=b.find("tbody tr");var e=g.find("td").outerHeight();if(navigator.userAgent.match(/WebKit/i)){e=e+1}f.find("thead").hide();r=0;g.length%2==1&&(r=1);a.css({height:(e*((g.length+r)/2))+7});b.find("tbody").remove();a.before(b.css({visibility:"visible",position:"static"}));var d=$('<div class="v5-split-up disabled">top</div>');var c=$('<div class="v5-split-down">bottom</div>');a.before(d);a.after(c);c.click(function(){$(this).addClass("disabled");d.removeClass("disabled");a.find("table").animate({top:((e*((g.length-r)/2))+2)*-1})});d.click(function(){$(this).addClass("disabled");c.removeClass("disabled");a.find("table").animate({top:0})})})};typeof(bskyb)!="object"&&(bskyb={});bskyb.select=function(){$(".enable-select").each(function(){var k=$(this);var m={"1":"football","2":"rugbyunion","3":"rugbyleague","4":"cricket"};if(bskyb.browser=="ios"){var c=k.html().replace(/<li/g,"<option").replace(/li>/g,"option>").replace(/<ul/g,"<select").replace(/ul>/g,"select>").replace(/\>\<a href/g," value").replace(/<\/a>/g,"");var e="<option>"+k.find(".select-head:first").text()+"</option>";k.html("<form>"+c+"</form>");k.find("select").prepend(e);k.find("select").attr("class","").css({width:"100%"});k.find(".select-head").remove();k.find("select").change(function(){location.href=this.value})}else{var n=k.attr("options");var a={};a.id=k.attr("id");a.login=bskyb.util.getoptions({opts:n,val:"hadrian"});var d=k.find(".select-body");var h=k.find("h3.select-head");h.append("<span> </span>");var g;d.find("li.select-head").after(c);d.css({width:k.width()});function b(){try{var f=$.evalJSON(decodeURIComponent(bskyb.cookie.get("bskyb-pod-settings")));$(f.teams).each(function(q){var p=this.n.replace(/ \(.*\)/,"");!$("#loginteam-"+this.id)[0]&&$("#select-"+m[this.s]+"-team").find("li.select-head").after("<li tabindex='-1'  id='loginteam-"+this.id+"' class='select-item'><a href='/"+m[this.s]+"/teams/"+p.replace(" ","").toLowerCase()+"'>"+p+"</a></li>")});$(f.teams).each(function(p){!$(".select-group-login-"+this.s)[0]&&$("#select-"+m[this.s]+"-team").find("li.select-head").after("<li tabindex='-1'  class='select-group select-group-login-"+this.s+"'>My Teams</li>")|$("#select-"+m[this.s]+"-team").find(".select-group:eq(1)").prepend("<a href='/infobar/preferences/' class='select-login-link'>set your teams here</a>")})}catch(o){}}function l(){g=k.find(".select-item").removeClass("first").removeClass("last");d.find(".select-item:first").addClass("first");d.find(".select-item:eq("+(g.length-1)+")").addClass("last")}l();a.login!="false"&&b();h.click(function(){if($(this).hasClass("on")){d.hide();h.removeClass("on")}else{$(".enable-select .select-body").hide();$(".enable-select .select-head").removeClass("on");$(this).addClass("on");d.show()}});k.click(function(f){f.stopPropagation()});d.hover(function(){$("body").unbind("click")},function(){$("body").bind("click",function(f){d.hide();h.removeClass("on")})});d.keydown(function(o){o.preventDefault();g.length<d.find(".select-item").length?l():0;if(o.keyCode==40){if(g.hasClass("on")==false){d.find(".select-item:first").addClass("on");h.text(d.find(".select-item:first").text())}else{if(d.find(".select-item.on").hasClass("last")==false){d.find(".select-item.on").removeClass("on").nextAll(".select-item:first").addClass("on").focus();h.text(d.find(".select-item.on").text())}}}if(o.keyCode==38){if(d.find(".select-item.on").hasClass("first")==false){d.find(".select-item.on").removeClass("on").prevAll(".select-item:first").addClass("on").focus();h.text(d.find(".select-item.on").text())}else{d.scrollTop(0)}}if(o.keyCode==13){var f=d.find(".select-item.on a").attr("href");f?g.find("a").trigger("click"):0}});g.find("a").click(function(f){f.preventDefault();g.removeClass("on");$(this).addClass("on");var o=$(this).text();h.text(o);d.hide();h.removeClass("on");location.href=$(this).attr("href")})}})};$(function(a){a.fn.Gallery=function(b){var c=a(this);var g=c.attr("data-options");var e={callback:bskyb.util.getoptions({opts:g,val:"callback",def:"callbackGallery"}),captions:bskyb.util.getoptions({opts:g,val:"captions",def:"true"}),data:bskyb.util.getoptions({opts:g,val:"data"}),forceSize:bskyb.util.getoptions({opts:g,val:"forceSize",def:"false"}),navigation:bskyb.util.getoptions({opts:g,val:"nav",def:"true"}),path:bskyb.util.getoptions({opts:g,val:"path"}),rail:bskyb.util.getoptions({opts:g,val:"rail",def:"false"}),size:bskyb.util.getoptions({opts:g,val:"size",def:"800x600"}),slideshow:bskyb.util.getoptions({opts:g,val:"slideshow",def:"true"}),speed:bskyb.util.getoptions({opts:g,val:"size",def:500}),thumbs:bskyb.util.getoptions({opts:g,val:"thumbs",def:"60x54"}),timer:bskyb.util.getoptions({opts:g,val:"auto",def:5000}),transition:bskyb.util.getoptions({opts:g,val:"transition",def:"fade"}),show:bskyb.util.getoptions({opts:g,val:"show",def:"first"})};var f=a.extend(e,b);return c.each(function(J){var k=0;var C=false;var L;var N;var M="backward";var h=a(this);var u;var K;var B;var F;var H;var p;var t;var E;var D="bskybgallery"+J;var q=0;var n=false;var y;var d;var I=false;var z;var l;var o=false;var x;function s(){var O=c.find(".loading");O.fadeOut(200,function(){O.remove()})}function G(O){k=O}function A(O){if(f.captions){if(O==undefined||O==""){c.find(".image-info").css("height","38px")}else{c.find(".image-info").css("height","auto");var O=H.html(O).text();H.html(O).fadeIn(300)}}}function w(O){var P=t[O].imageSrc;var Q=P.split("/");Q[5]=f.thumbs;P=Q.join("/");thumb='<li><img src="'+P+'" /></li>\n';l.append(thumb)}function m(){var Q=l.find("li:first").width();var X=l.find("li:first").height();var ag=Number(l.find("li:first").css("margin-right").split("px")[0]);var P=(Q+ag);var U=(X+ag);var Z=false;var af=false;var W;var V;var ae=0;var ad=0;var Y=false;var ac;var ab;var S;var T;W=q+1;V=Math.round(q/W);for(var aa=0;aa<q;aa++){var R=aa*P;var O=aa*U;if(R>l.width()&&Z==false){Z=true;W=aa-1;ae=(l.width()-(W*P))/2;ae-=ag*1.5}if(O>l.height()&&af==false){af=true;V=aa-1;ad=(l.height()-((V*U)))/2;ad-=ag*1.5}}l.find("li").each(function(ak){var aj=a(this);var an=Math.floor(ak/W);var am=Number(aj.css("margin-top").split("px")[0]);var ao=ad+(an*(X+am));var an=Math.floor(ak/W);var ai=(V-(V-ak))-(an*W);var al=Number(aj.css("margin-left").split("px")[0]);var ah=ae+(ai*(Q+al));aj.css({position:"absolute",left:ah+"px",top:ao+"px",opacity:0.6})})}c.getAjax=function(){a.ajax({url:f.path+"?size="+f.size,dataType:"jsonp",jsonpCallback:f.callback,success:function(P){var O=q;N=P;t=N.images;q=t.length;if(q>0){if(q===1){f.slideshow=false}if(!n){c.init()}else{if(q>O){c.update(O)}}}}})};c.update=function(O){var P=q-1;while(O<=P){w(O);O++}m();c.loadImage(P)};c.showImage=function(P){if(!C){d=y;y=a(".img-"+P);if(n){C=true;p.html(P+1+"/"+q);A(y.find("img:first").attr("alt"));if(o){var R=a(".thumbs li").eq(P);var V=Number(R.css("top").split("px")[0])+(Number(R.find("img").css("padding-top").split("px")[0])*2);var U=Number(R.css("left").split("px")[0])+(Number(R.find("img").css("padding-left").split("px")[0])*2);var T=R.find("img").width();var O=R.find("img").height();l.show().css("z-index","2");y.find("img").css({width:"100%",height:"100%"}).end().css({zIndex:"3",width:T+"px",height:O+"px",top:V,left:U,opacity:0}).animate({width:u,height:B,top:0,left:0,opacity:1},function(){k=P;a(".loading").fadeOut(200,function(){a(".loading").remove()});F.show();H.show();l.hide();C=false;o=false})}else{if(f.transition=="fade"){d.css("z-index","2");y.css("z-index","3").hide().fadeIn(f.speed,function(){d.css("z-index","1");G(P);s();C=false})}if(f.transition=="slide"){var Q=u;if(M=="back"){Q=-u}d.css("z-index","2");y.css({zIndex:"3",left:Q}).show().animate({left:0},f.speed,function(){d.hide();G(P);s();C=false})}}}else{d=y;y.css({position:"absolute",visibility:"hidden",display:"block",zIndex:"3"});if(f.forceSize!=="false"){var S=f.forceSize.split("x");u=S[0];B=S[1]}else{a("img:first",y).css({width:"auto",height:"auto"});u=a("img:first",y).width();B=a("img:first",y).height()}y.css({position:"",visibility:"",display:"",zIndex:0}).hide();h.width(u).height(B);y.fadeIn(function(){n=c.setup();if(n){A(a("img:first",y).attr("alt"));p.html(P+1+"/"+q);s();C=false}c.find(".gallery-placeholder").remove();G(P)})}}};c.loadImage=function(Q){I=false;c.append('<div class="loading"></div>');var T=t[Q].imageSrc;var V=t[Q].imageID;var U=t[Q].imageTitle;var P=t[Q].imageCaption;var S=t[Q].imageRating;var R=a('<li class="img-'+Q+'"></li>');var O=new Image();a(O).bind("load",function(W){x.append(R);R.html(O).find("img").attr({id:V,alt:P,title:U,rel:S});c.showImage(Q)}).error(function(){if(Q>k){G(k+1);c.nextImage()}else{G(k-1);c.prevImage()}}).attr("src",T)};c.prevImage=function(){M="back";var O;if(k==0){O=q-1}else{O=k-1}if(a(".img-"+O).length==0){c.loadImage(O)}else{c.showImage(O)}};c.nextImage=function(){M="forward";var O;if(k==q-1){O=0}else{O=k+1}if(a(".img-"+O).length==0){c.loadImage(O)}else{c.showImage(O)}};c.startTimer=function(){if(f.slideshow=="true"){clearInterval(window[D]);window[D]=setInterval(c.nextImage,f.timer);z.removeClass("play-btn").addClass("pause-btn")}};c.stopTimer=function(){if(f.slideshow=="true"){clearInterval(window[D]);window.carouselInterval?clearTimeout(window.carouselInterval):0;z.addClass("play-btn").removeClass("pause-btn")}};c.init=function(){c.append('\n<ul class="image-list"></ul>\n');x=c.find(".image-list");if(f.show=="last"){k=q-1}if(window.location.hash.match("photo")){var O=document.location.hash;k=parseInt(O.split("photo=")[1])}c.loadImage(k)};c.setup=function(){c.append('<div class="image-info"></div>\n<div class="gallery-overlay"></div>\n');F=c.find(".gallery-overlay").css({width:u,height:B});E=c.find(".image-info");F.append('<div class="gallery-count">1/'+q+"</div>\n");p=a(".gallery-count");if(f.slideshow=="true"){c.addClass("sldshw");F.append('<div class="slideshow-btn"></div>');z=c.find(".slideshow-btn");c.startTimer();z.live("click",function(){if(z.hasClass("play-btn")){c.startTimer()}else{c.stopTimer()}})}if(f.navigation=="true"&&q>1){var R='<div class="gallery-nav"><a href="#" class="prev">Previous</a><a href="#" class="next">Next</a></div>\n';F.append(R);var O=c.find(".gallery-nav").hide().fadeIn();var Q=(B/2)-(c.find(".gallery-nav a").height()/2);O.find("a").css("top",Q);O.find(".prev").live("click",function(){c.stopTimer();c.prevImage();return false});O.find(".next").live("click",function(){c.stopTimer();c.nextImage();return false})}if(f.rail=="true"){c.addClass("rail")}else{c.addClass("grid");var T='\n<ul class="thumbs">\n</ul>\n';var P=false;x.height(B);x.width(u);c.append(T);l=c.find(".thumbs").css({position:"absolute",top:"0px",width:x.width(),height:x.height(),zIndex:0});for(var S=0;S<q;S++){w(S)}m();function V(){if(!C){l.show();var Z=a("li",l).eq(k);var ac=Number(Z.css("top").split("px")[0])+(Number(Z.find("img").css("padding-top").split("px")[0])*2);var ab=Number(Z.css("left").split("px")[0])+(Number(Z.find("img").css("padding-left").split("px")[0])*2);var aa=Z.find("img").width();var Y=Z.find("img").height();o=true;C=true;c.stopTimer();F.hide();H.hide();if(y.html()!=d.html()){d.css("z-index","1")}l.css("z-index","2");y.find("img").css({width:"100%",height:"100%"}).end().animate({top:ac+"px",left:ab+"px",width:aa+"px",height:Y+"px",opacity:0},500,function(){l.css("z-index","3");y.css({width:"100%",height:"100%",left:0,top:0,zIndex:"2",opacity:1});C=false})}}l.find("li").hover(function(){a(this).addClass("on")},function(){a(this).removeClass("on")});l.find("li").live("click",function(){newImage=a(this).index();if(a(".img-"+newImage).length==0){c.loadImage(newImage)}else{c.showImage(newImage)}return false});c.find(".thumb-button").live("click",function(){V();return false});F.append('<div class="thumb-button"></div>\n');l.hide()}if(f.captions=="true"){E.append('<p class="caption"></p>');H=c.find(".caption");var W=Number(H.css("padding-left").replace("px",""));var X=u-(W*2);if(c.find(".thumb-button").length!=0){var U=c.find(".thumb-button");X-=U.outerWidth()+Number(U.css("right").replace("px",""))}if(c.find(".gallery-count").length!=0){}if(c.find(".gallery-count").length!=0){var U=c.find(".gallery-count");X-=U.outerWidth()}if(c.find(".slideshow-btn").length!=0){var U=c.find(".slideshow-btn");X-=U.outerWidth();W+=U.outerWidth()+12}H.css({width:X,paddingLeft:W}).hide().fadeIn()}return true};c.getAjax()})};a(".enable-gallery").not("#live-gallery").each(function(b){a(this).Gallery()})});$(function(a){a.fn.ShowMore=function(b){var c=a(this);var d={url:c.attr("data-url"),loader:'<p class="loader">Loading</p>',el:c.attr("data-el"),page:c.attr("data-start")};var e=a.extend(d,b);return this.each(function(){c.click(function(h){h.preventDefault();c.hide();var f=a(e.loader).insertBefore(c);var g;a.ajax({url:e.url,data:{page:e.page},dataType:"text",success:function(m,l,k){e.page++;var q=c.parents();var o=q.find(e.el);var n=o.length;f.fadeOut(500,function(){a(o[n-1]).after(m);f.remove();if(n===q.find(e.el).length){c.remove()}else{c.show()}a(document).trigger("newContent")})}});return false})})};a("#show-more-btn").ShowMore()});if(brightcove==undefined){var brightcove={};brightcove.getExperience=function(){alert("Please import APIModules_all.js in order to use the API.")}}if(brightcove.experiences==undefined){brightcove.servicesURL="http://c.brightcove.com/services";brightcove.cdnURL="http://admin.brightcove.com";brightcove.secureCDNURL="https://sadmin.brightcove.com";brightcove.secureServicesURL="https://secure.brightcove.com/services";brightcove.pubHost="c.$pubcode$.$zoneprefix$$zone$";brightcove.pubSecureHost="secure.$pubcode$.$zoneprefix$$zone$";brightcove.pubSubdomain="ariessaucetown.local";brightcove.experiences={};brightcove.experienceObjects={};brightcove.timeouts={};brightcove.flashTimeoutInterval=10000;brightcove.htmlTimeoutInterval=10000;brightcove.experienceNum=0;brightcove.majorVersion=9;brightcove.majorRevision=0;brightcove.minorRevision=28;brightcove.servlet={AS3:"federated_f9",HTML:"htmlFederated"};brightcove.playerType={FLASH:"flash",HTML:"html",INSTALLER:"installer",NO_SUPPORT:"nosupport"};brightcove.errorCodes={UNKNOWN:0,DOMAIN_RESTRICTED:1,GEO_RESTRICTED:2,INVALID_ID:3,NO_CONTENT:4,UNAVAILABLE_CONTENT:5,UPGRADE_REQUIRED_FOR_VIDEO:6,UPGRADE_REQUIRED_FOR_PLAYER:7,SERVICE_UNAVAILABLE:8};brightcove.defaultParam={};brightcove.defaultParam.width="100%";brightcove.defaultParam.height="100%";brightcove.defaultFlashParam={};brightcove.defaultFlashParam.allowScriptAccess="always";brightcove.defaultFlashParam.allowFullScreen="true";brightcove.defaultFlashParam.seamlessTabbing=false;brightcove.defaultFlashParam.swliveconnect=true;brightcove.defaultFlashParam.wmode="window";brightcove.defaultFlashParam.quality="high";brightcove.defaultFlashParam.bgcolor="#999999";brightcove.isIE=(window.ActiveXObject!=undefined);brightcove.userAgent=navigator.userAgent;brightcove._queuedAPICalls=[];var brightcoveJS=brightcove;brightcove.createExperiences=function(q,c){var g=[];var u;var o;var a;var b;var f=brightcove.checkFlashSupport();var h=brightcove.checkHtmlSupport();if(c!=null){g.push(document.getElementById(c))}else{g=brightcove.collectExperiences()}if(brightcove.isIE){u=document.getElementsByTagName("param")}var m=brightcove.cacheUrlParams();var l=g.length;for(var t=0;t<l;t++){o=g[t];o=brightcove.copyDefaultParams(o);o=brightcove.copySnippetParams(o,u);o=brightcove.copyUrlParams(o,m,l);var k=brightcove.determinePlayerType(o,f,h);var d=(o.params.secureConnections=="true");if(k==brightcove.playerType.HTML){d=false}if(k==brightcove.playerType.NO_SUPPORT){brightcove.renderInstallGif(o,d);brightcove.reportUpgradeRequired(o);continue}if(k==brightcove.playerType.HTML){delete o.params.linkBaseURL}else{if(o.params.includeAPI&&o.params.templateReadyHandler!=null){o.params.originalTemplateReadyHandler=o.params.templateReadyHandler;var x="templateReadyHandler"+o.id;brightcove[x]=(function(y){return function(A){if(brightcove.internal!=null&&brightcove.internal._instances[y]!=null){brightcove._addModuleToEvent(y,A)}var z=brightcove.experienceObjects[y];brightcove.callHandlerForPlayer(z,"originalTemplateReadyHandler",A)}})(o.id);o.params.templateReadyHandler="brightcove."+x}}var w=brightcove.generateRequestUrl(o,k,d);if(document.location.protocol=="http:"){var s="http://goku.brightcove.com/1pix.gif?";var e=["dcsuri=/viewer/player_load_req","playerType="+k,"playerURL="+encodeURIComponent(document.location||"")];var n=brightcove.createElement("image");for(var p in o.params){e.push([encodeURIComponent(p)+"="+encodeURIComponent(o.params[p])])}s+=e.join("&");n.src=s}brightcove.renderExperience(o,w,k,d)}};brightcove.collectExperiences=function(){var d=[];var a=document.getElementsByTagName("object");var c=a.length;for(var b=0;b<c;b++){if(/\bBrightcoveExperience\b/.test(a[b].className)){if(a[b].type!="application/x-shockwave-flash"){d.push(a[b])}}}return d};brightcove.cacheUrlParams=function(){var a={};a.playerKey=decodeURIComponent(brightcove.getParameter("bckey"));a.playerID=brightcove.getParameter("bcpid");a.titleID=brightcove.getParameter("bctid");a.lineupID=brightcove.getParameter("bclid");a.autoStart=brightcove.getParameter("autoStart");a.debuggerID=brightcove.getParameter("debuggerID");a.forceHTML=brightcove.getParameter("forceHTML");a.debug=brightcove.getParameter("debug");return a};brightcove.copyDefaultParams=function(c){if(!c.params){c.params={}}if(!c.flashParams){c.flashParams={}}for(var b in brightcove.defaultParam){c.params[b]=brightcove.defaultParam[b]}for(var a in brightcove.defaultFlashParam){c.flashParams[a]=brightcove.defaultFlashParam[a]}if(c.id.length>0){c.params.flashID=c.id}else{c.id=c.params.flashID="bcExperienceObj"+(brightcove.experienceNum++)}return c};brightcove.copySnippetParams=function(b,e){if(!brightcove.isIE){e=b.getElementsByTagName("param")}var d=e.length;var c;for(var a=0;a<d;a++){c=e[a];if(brightcove.isIE&&c.parentNode.id!=b.id){continue}b.params[c.name]=c.value}if(b.params.bgcolor!=undefined){b.flashParams.bgcolor=b.params.bgcolor}if(b.params.wmode!=undefined){b.flashParams.wmode=b.params.wmode}if(b.params.seamlessTabbing!=undefined){b.flashParams.seamlessTabbing=b.params.seamlessTabbing}return b};brightcove.copyUrlParams=function(c,b,d){if(c.params.autoStart==undefined&&b.autoStart!=undefined){c.params.autoStart=b.autoStart}if(b.debuggerID!=undefined){c.params.debuggerID=b.debuggerID}if(b.forceHTML!=undefined&&b.forceHTML!=""){c.params.forceHTML=b.forceHTML}if(b.debug!=undefined&&b.debug!=""){c.params.debug=b.debug}var a=(b.playerID.length<1&&b.playerKey.length<1)||(b.playerID==c.params.playerID)||(b.playerKey==c.params.playerKey);if(a){if(b.titleID.length>0){c.params.videoID=b.titleID;c.params["@videoPlayer"]=b.titleID;c.params.autoStart=(c.params.autoStart!="false"&&b.autoStart!="false")}if(b.lineupID.length>0){c.params.lineupID=b.lineupID}}return c};brightcove.determinePlayerType=function(a,c,d){if(c==null&&d==false){return brightcove.playerType.NO_SUPPORT}if(a.params.forceHTML){if(window.console){var b="The forceHTML parameter was used for the Brightcove player. This value should ONLY be used for";b+=" development and testing purposes and is not supported in production environments.";console.log(b)}return brightcove.playerType.HTML}if(c!=null){if(brightcove.isFlashVersionSufficient(a,c)){return brightcove.playerType.FLASH}else{return brightcove.playerType.INSTALLER}}if(d){if(brightcove.isSupportedHTMLDevice()||a.params.htmlFallback){return brightcove.playerType.HTML}}return brightcove.playerType.NO_SUPPORT};brightcove.isFlashVersionSufficient=function(b,e){if(e==null){return false}var a=false;var d;var c;var f;if(b.params.majorVersion!=undefined){d=parseInt(b.params.majorVersion,10);a=true}else{d=brightcove.majorVersion}if(b.params.majorRevision!=undefined){c=parseInt(b.params.majorRevision,10)}else{if(a){c=0}else{c=brightcove.majorRevision}}if(b.params.minorRevision!=undefined){f=parseInt(b.params.minorRevision,10)}else{if(a){f=0}else{f=brightcove.minorRevision}}if(e.majorVersion>d||(e.majorVersion==d&&e.majorRevision>c)||(e.majorVersion==d&&e.majorRevision==c&&e.minorRevision>=f)){return true}return false};brightcove.generateRequestUrl=function(e,g,b){var d;if(g==brightcove.playerType.INSTALLER){d=brightcove.cdnURL+"/viewer/playerProductInstall.swf";var f=brightcove.isIE?"ActiveX":"PlugIn";document.title=document.title.slice(0,47)+" - Flash Player Installation";var a=document.title;d+="?&MMredirectURL="+window.location+"&MMplayerType="+f+"&MMdoctitle="+a;brightcove.reportUpgradeRequired(e)}else{if(b){d=brightcove.getPubURL(brightcove.secureServicesURL,brightcove.pubSecureHost,e.params.pubCode)}else{d=brightcove.getPubURL(brightcove.servicesURL,brightcove.pubHost,e.params.pubCode)}var h=(g==brightcove.playerType.HTML)?brightcove.servlet.HTML:brightcove.servlet.AS3;d+=("/viewer/"+h+"?"+brightcove.getOverrides());for(var c in e.params){d+="&"+encodeURIComponent(c)+"="+encodeURIComponent(e.params[c])}}return d};brightcove.renderInstallGif=function(d,c){var a="_container"+d.id;var b=brightcove.createElement("span");if(d.params.height.charAt(d.params.height.length-1)=="%"){b.style.display="block"}else{b.style.display="inline-block"}b.id=a;var f=c?brightcove.secureCDNURL:brightcove.cdnURL;var e="<a href='http://www.adobe.com/go/getflash/' target='_blank'><img src='"+f+"/viewer/upgrade_flash_player2.gif' alt='Get Flash Player' width='314' height='200' border='0'></a>";d.parentNode.replaceChild(b,d);document.getElementById(a).innerHTML=e};brightcove.renderExperience=function(s,u,o,c){var f;var b=s.id;var m;var h="_container"+b;var k=brightcove.flashTimeoutInterval;if(s.params.playerKey||s.params.playerID||s.params.playerId||s.params.playerid){brightcove.experienceObjects[b]=s;var e=(brightcove.getParameter("unminified")=="true")||(s.params.unminified==="true");if(s.params.includeAPI==="true"&&!(brightcove._apiRequested||brightcove.api)){var q="/js/api/";if(e){q+="unminified/"}q+="SmartPlayerAPI.js";var a=brightcove.createElement("script");a.type="text/javascript";var l=c?brightcove.secureCDNURL:brightcove.cdnURL;a.src=l+q;s.parentNode.appendChild(a);brightcove._apiRequested=true}if(o===brightcove.playerType.FLASH){u+="&startTime="+new Date().getTime()}if(o===brightcove.playerType.HTML){k=brightcove.htmlTimeoutInterval;u+="&startTime="+new Date().getTime();u+="&refURL="+(window.document.referrer?window.document.referrer:"not available");if(e){u+="&unminified=true"}f=brightcove.createElement("iframe");f.id=b;f.width=s.params.width;f.height=s.params.height;f.className=s.className;f.frameborder=0;f.scrolling="no";f.style.borderStyle="none";s.parentNode.replaceChild(f,s);brightcove.experiences[b]=f;s.element=f;if(s.params.videoID||s.params.videoId){u+="&"+encodeURIComponent("@videoPlayer")+"="+encodeURIComponent(s.params.videoID||s.params.videoId)}f.src=u}else{if(brightcove.isIE){m=brightcove.createElement("span");if(s.params.height.charAt(s.params.height.length-1)=="%"){m.style.display="block"}else{m.style.display="inline-block"}m.id=h;s.flashParams.movie=u;var d="";for(var g in s.flashParams){d+='<param name="'+g+'" value="'+s.flashParams[g]+'" />'}var p=c?"https":"http";var t='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+p+"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+brightcove.majorVersion+","+brightcove.majorRevision+","+brightcove.minorRevision+',0" id="'+b+'" width="'+s.params.width+'" height="'+s.params.height+'" type="application/x-shockwave-flash" class="BrightcoveExperience">'+d+"</object>";s.parentNode.replaceChild(m,s);document.getElementById(h).innerHTML=t;brightcove.experiences[b]=m}else{f=brightcove.createElement("object");f.type="application/x-shockwave-flash";f.data=u;f.id=s.params.flashID;f.width=s.params.width;f.height=s.params.height;f.className=s.className;f.setAttribute("seamlesstabbing",s.flashParams.seamlessTabbing);var n;for(var w in s.flashParams){n=brightcove.createElement("param");n.name=w;n.value=s.flashParams[w];f.appendChild(n)}s.parentNode.replaceChild(f,s);brightcove.experiences[b]=f}}brightcove.timeouts[s.id]=setTimeout(function(){brightcove.handleExperienceTimeout(b)},k)}};brightcove.handleExperienceTimeout=function(a){brightcove.executeErrorHandlerForExperience(brightcove.experienceObjects[a],{type:"templateError",errorType:"serviceUnavailable",code:brightcove.errorCodes.SERVICE_UNAVAILABLE,info:a})};brightcove.reportPlayerLoad=function(a){var b=brightcove.timeouts[a];if(b){clearTimeout(b)}};brightcove.reportUpgradeRequired=function(a){brightcove.executeErrorHandlerForExperience(a,{type:"templateError",errorType:"upgradeRequiredForPlayer",code:brightcove.errorCodes.UPGRADE_REQUIRED_FOR_PLAYER,info:a.id})};brightcove.checkFlashSupport=function(){var b=(window.ActiveXObject!=undefined);var a=(b)?brightcove.checkFlashSupportIE():brightcove.checkFlashSupportStandard();return a};brightcove.checkFlashSupportIE=function(){var a;try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");var b=c.GetVariable("$version");a=/ ([0-9]+),([0-9]+),([0-9]+),/.exec(b)}catch(d){return null}return{majorVersion:a[1],majorRevision:a[2],minorRevision:a[3]}};brightcove.checkFlashSupportStandard=function(){var b;var a;var g;var h;try{if(typeof navigator.plugins!="undefined"&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var f=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var e=navigator.plugins["Shockwave Flash"+f].description;var c=navigator.plugins["Shockwave Flash"+f].filename;if(c.match){if(c.toLowerCase().match(/lite/)){throw new Error()}}b=e.split(" ");a=b[2].split(".")[0];g=b[2].split(".")[1];h=b[3];if(h==""){h=b[4]}if(h[0]=="d"){h=h.substring(1)}else{if(h[0]=="r"){h=h.substring(1);if(h.indexOf("d")>0){h=h.substring(0,h.indexOf("d"))}}}}else{throw new Error()}}else{return null}}catch(d){return null}return{majorVersion:a,majorRevision:g,minorRevision:h}};brightcove.checkHtmlSupport=function(){var b=brightcove.createElement("video");var e=brightcove.createElement("canvas");var d=true;if(!brightcove.userAgent.match(new RegExp("android","i"))){d=!!(b.canPlayType&&b.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/,""))}if(brightcove.userAgent.match(/BlackBerry.*Version\/6\.0/)){return false}var a=!!brightcove.createElement("canvas").getContext;return d&&a};brightcove.isSupportedHTMLDevice=function(e){var c=["iPad","iPhone","iPod","android"];var d=c.length;var a=e||brightcove.userAgent;for(var b=0;b<d;b++){if(a.match(new RegExp(c[b],"i"))){return true}}return false};brightcove.getTechnology=function(a){for(var b in brightcove.experiences){if(a==b){return(brightcove.experiences[b].tagName=="object")?brightcove.playerType.FLASH:brightcove.playerType.HTML}}return brightcove.playerType.NO_SUPPORT};brightcove.respondToMessages=function(g){if(brightcove.verifyMessage(g)){var a=g.data.split("::");var d=a[1];var c=a[2].split("\n").join(" ");var b;if(window.JSON){b=window.JSON.parse(c)}else{b=brightcove.json_parse(c)}switch(d){case"error":brightcove.executeMessageCallback(b,brightcove.executeErrorHandlerForExperience);break;case"api":brightcove.handleAPICallForHTML(b);break;case"handler":var f=brightcove.internal._convertDates(b.event);try{brightcove.internal._handlers[b.handler](f)}catch(k){}break;case"asyncGetter":var h=brightcove.internal._convertDates(b.data);brightcove.internal._handlers[b.handler](h);break}}};brightcove.verifyMessage=function(a){return a.data.match(/brightcove.player/)};brightcove.handleAPICallForHTML=function(a){var b=brightcove.experienceObjects[a.id];if(b==null){return}var e=b.id;var d=a.method;switch(d){case"initializeBridge":brightcove.reportPlayerLoad(e);if(a.arguments[0]){if(brightcove.internal!=null){brightcove.internal._setAPICallback(e,null,a.arguments[1]);brightcove.callHandlerForPlayer(b,"templateLoadHandler",e)}else{if(brightcove._apiRequested){brightcove._queuedAPICalls.push(a)}}}break;case"callTemplateReady":if(brightcove._apiRequested&&!brightcove.internal){brightcove._queuedAPICalls.push(a)}else{var c=a.arguments;brightcove._addModuleToEvent(e,c);brightcove.callHandlerForPlayer(b,"templateReadyHandler",c)}break}};brightcove._addModuleToEvent=function(b,a){if(a.type!=null&&brightcove.api){var d=brightcove.api.getExperience(b);if(d){var c=d.getModule("experience");a.target=c}}};brightcove.callHandlerForPlayer=function(a,c,g){if(a&&a.params&&a.params[c]){var b=a.params[c].split(".");var f;if((f=b.length)>1){var e=window;for(var d=0;d<f;d++){e=e[b[d]]}if(typeof e==="function"){e(g)}}else{window[a.params[c]](g)}}};brightcove.executeErrorHandlerForExperience=function(a,b){brightcove.callHandlerForPlayer(a,"templateErrorHandler",b)};brightcove.executeMessageCallback=function(b,a){var c;for(var d in brightcove.experienceObjects){c=brightcove.experienceObjects[d];if(c.element.src===b.__srcUrl){delete b.__srcUrl;a(c,b);break}}};brightcove.createExperience=function(a,c,b){if(!a.id||a.id.length<1){a.id="bcExperienceObj"+(brightcove.experienceNum++)}if(b){c.appendChild(a)}else{c.parentNode.insertBefore(a,c)}brightcove.createExperiences(null,a.id)};brightcove.removeExperience=function(a){if(brightcove.experiences[a]!=null){brightcove.experiences[a].parentNode.removeChild(brightcove.experiences[a])}};brightcove.getURL=function(){var a;if(typeof window.location.search!="undefined"){a=window.location.search}else{a=/(\?.*)$/.exec(document.location.href)}return a};brightcove.getOverrides=function(){var a=brightcove.getURL();var c=new RegExp("@[\\w\\.]+=[^&]+","g");var b=c.exec(a);var d="";while(b!=null){d+="&"+b;b=c.exec(a)}return d};brightcove.getParameter=function(a,e){if(e==null){e=""}var b=brightcove.getURL();var d=new RegExp(a+"=([^&]*)");var c=d.exec(b);if(c!=null){return c[1]}else{return e}};brightcove.createElement=function(a){if(document.createElementNS){return document.createElementNS("http://www.w3.org/1999/xhtml",a)}else{return document.createElement(a)}};brightcove.i18n={BROWSER_TOO_OLD:"The browser you are using is too old. Please upgrade to the latest version of your browser."};brightcove.removeListeners=function(){if(/KHTML/i.test(navigator.userAgent)){clearInterval(checkLoad);document.removeEventListener("load",brightcove.createExperiences,false)}if(typeof document.addEventListener!="undefined"){document.removeEventListener("DOMContentLoaded",brightcove.createExperiences,false);document.removeEventListener("load",brightcove.createExperiences,false)}else{if(typeof window.attachEvent!="undefined"){window.detachEvent("onload",brightcove.createExperiences)}}};brightcove.getPubURL=function(d,c,a){if(!a||a==""){return d}var b=/^([htps]{4,5}\:\/\/)([^\/\:]+)/i;c=c.replace("$pubcode$",a).replace("$zoneprefix$$zone$",brightcove.pubSubdomain);return d.replace(b,"$1"+c)};brightcove.createExperiencesPostLoad=function(){brightcove.removeListeners();brightcove.createExperiences()};brightcove.encode=function(a){a=escape(a);a=a.replace(/\+/g,"%2B");a=a.replace(/\-/g,"%2D");a=a.replace(/\*/g,"%2A");a=a.replace(/\//g,"%2F");a=a.replace(/\./g,"%2E");a=a.replace(/_/g,"%5F");a=a.replace(/@/g,"%40");return a};if(/KHTML/i.test(navigator.userAgent)){var checkLoad=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(checkLoad);brightcove.createExperiencesPostLoad()}},70);document.addEventListener("load",brightcove.createExperiencesPostLoad,false)}if(typeof document.addEventListener!="undefined"){document.addEventListener("DOMContentLoaded",brightcove.createExperiencesPostLoad,false);document.addEventListener("load",brightcove.createExperiencesPostLoad,false);window.addEventListener("message",brightcove.respondToMessages,false)}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",brightcove.createExperiencesPostLoad)}else{alert(brightcove.i18n.BROWSER_TOO_OLD)}}}brightcove.json_parse=(function(){var a,g,b,l,k,e={"\\":"\\",'"':'"',"/":"/",t:"\t",n:"\n",r:"\r",f:"\f",b:"\b"},f={go:function(){a="ok"},firstokey:function(){l=k;a="colon"},okey:function(){l=k;a="colon"},ovalue:function(){a="ocomma"},firstavalue:function(){a="acomma"},avalue:function(){a="acomma"}},d={go:function(){a="ok"},ovalue:function(){a="ocomma"},firstavalue:function(){a="acomma"},avalue:function(){a="acomma"}},c={"{":{go:function(){g.push({state:"ok"});b={};a="firstokey"},ovalue:function(){g.push({container:b,state:"ocomma",key:l});b={};a="firstokey"},firstavalue:function(){g.push({container:b,state:"acomma"});b={};a="firstokey"},avalue:function(){g.push({container:b,state:"acomma"});b={};a="firstokey"}},"}":{firstokey:function(){var m=g.pop();k=b;b=m.container;l=m.key;a=m.state},ocomma:function(){var m=g.pop();b[l]=k;k=b;b=m.container;l=m.key;a=m.state}},"[":{go:function(){g.push({state:"ok"});b=[];a="firstavalue"},ovalue:function(){g.push({container:b,state:"ocomma",key:l});b=[];a="firstavalue"},firstavalue:function(){g.push({container:b,state:"acomma"});b=[];a="firstavalue"},avalue:function(){g.push({container:b,state:"acomma"});b=[];a="firstavalue"}},"]":{firstavalue:function(){var m=g.pop();k=b;b=m.container;l=m.key;a=m.state},acomma:function(){var m=g.pop();b.push(k);k=b;b=m.container;l=m.key;a=m.state}},":":{colon:function(){if(Object.hasOwnProperty.call(b,l)){throw new SyntaxError('Duplicate key "'+l+'"')}a="ovalue"}},",":{ocomma:function(){b[l]=k;a="okey"},acomma:function(){b.push(k);a="avalue"}},"true":{go:function(){k=true;a="ok"},ovalue:function(){k=true;a="ocomma"},firstavalue:function(){k=true;a="acomma"},avalue:function(){k=true;a="acomma"}},"false":{go:function(){k=false;a="ok"},ovalue:function(){k=false;a="ocomma"},firstavalue:function(){k=false;a="acomma"},avalue:function(){k=false;a="acomma"}},"null":{go:function(){k=null;a="ok"},ovalue:function(){k=null;a="ocomma"},firstavalue:function(){k=null;a="acomma"},avalue:function(){k=null;a="acomma"}}};function h(m){return m.replace(/\\(?:u(.{4})|([^u]))/g,function(o,n,p){return n?String.fromCharCode(parseInt(n,16)):e[p]})}return function(q,m){var p,o=/^[\x20\t\n\r]*(?:([,:\[\]{}]|true|false|null)|(-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)|"((?:[^\r\n\t\\\"]|\\(?:["\\\/trnfb]|u[0-9a-fA-F]{4}))*)")/;a="go";g=[];try{for(;;){p=o.exec(q);if(!p){break}if(p[1]){c[p[1]][a]()}else{if(p[2]){k=+p[2];d[a]()}else{k=h(p[3]);f[a]()}}q=q.slice(p[0].length)}}catch(s){a=s}if(a!=="ok"||(/[^\x20\t\n\r]/).test(q)){throw a instanceof SyntaxError?a:new SyntaxError("JSON")}return typeof m==="function"?(function n(x,w){var u,t,y=x[w];if(y&&typeof y==="object"){for(u in y){if(Object.prototype.hasOwnProperty.call(y,u)){t=n(y,u);if(t!==undefined){y[u]=t}else{delete y[u]}}}}return m.call(x,w,y)}({"":k},"")):k}}());var APIModules={};APIModules.EXPERIENCE="experience";APIModules.CONTENT="content";APIModules.VIDEO_PLAYER="videoPlayer";APIModules.SOCIAL="social";APIModules.SEARCH="search";APIModules.CUE_POINTS="cuePoints";APIModules.ADVERTISING="advertising";APIModules.MENU="menu";APIModules.EFFECTS="effects";APIModules.CONVIVA="conviva";APIModules.CAPTIONS="captions";APIModules.HTML5="_html5";if(brightcove==undefined){var brightcove={playerType:{FLASH:"flash",HTML:"html",INSTALLER:"installer",NO_SUPPORT:"nosupport"}}}brightcove.instances={};brightcove.modules={};brightcove.ID_DELIM="|||";var bcPlayer=brightcove;brightcove.getExperience=function(a){if(this.instances[a]==null){if(window.console){console.log("Experience '"+a+"' not found. Please ensure the name is correct and the API for the player is enabled.")}}return this.instances[a]};brightcove.getPlayer=brightcove.getExperience;brightcove.stringify=function(e){var d=typeof e;if(d=="function"||e==undefined){return'""'}else{if(d=="string"){return'"'+e.replace(/"/g,'\\"')+'"'}else{if(e instanceof Array){var b="[";for(var a in e){if(typeof e[a]=="function"){b+=('"",')}else{b+=(this.stringify(e[a])+",")}}if(b.substr(-1)==","){b=b.substr(0,b.length-1)}return b+"]"}else{if(d=="object"){var b="{";var a;var c=e.enumerableProperties;if(c){for(a in c){b+=('"'+c[a]+'":'+this.stringify(e[c[a]])+",")}}else{for(a in e){if(typeof e[a]!="function"&&a!="__proto__"){b+=('"'+a+'":'+this.stringify(e[a])+",")}}}if(b.substr(-1)==","){b=b.substr(0,b.length-1)}return b+"}"}else{return e}}}}};function setAPICallback(b,a,c){brightcove.instances[b]=new BrightcoveExperience(a,b,c)}function BrightcoveExperience(a,b,c){if(a==null){this.type=brightcove.playerType.HTML;this.playerURL=c;this.callback=brightcove.experiences[b].contentWindow}else{this.type=brightcove.playerType.FLASH;this.callback=a}this.modules={}}BrightcoveExperience.prototype.getModule=function(a){if(this.type==brightcove.playerType.HTML){a+=APIModules.HTML5}if(this.modules[a]==null&&brightcove.modules[a]){var b=new brightcove.modules[a](this);b.playerURL=this.playerURL;if(b.isPlayerDefined!=null){if(!b.isPlayerDefined()){return null}}this.modules[a]=b}return this.modules[a]};function APIModule(){this.handlers=[]}APIModule.handlerCount=0;APIModule.getHandler=function(){return"bc_handler"+(APIModule.handlerCount++)};APIModule.callFlash=function(c,e){var b=c.split(brightcove.ID_DELIM);if(b.length<2){return}if(b[0].length<1){return}var d=b[0];var c=b[1];var a=document.getElementById(d);if(a[c]!=null){return a[c](BCXML.convertToXML(e,"js2flash"))}};APIModule.prototype.name="APIModule";APIModule.prototype.addEventListener=function(a,b,d){var c=APIModule.getHandler();this.handlers.push({handler:b,bcHandler:c,event:a});window[c]=b;return this.callMethod("addEventListener",[a,c,d])};APIModule.prototype.removeEventListener=function(b,c){var e=this.handlers.length;for(var d=0;d<e;d++){if(this.handlers[d].event==b&&this.handlers[d].handler==c){var a=this.handlers[d].bcHandler;this.handlers.splice(d,1);break}}if(a==undefined){return}return this.callMethod("removeEventListener",[b,a])};APIModule.prototype.callPlayer=function(a,b){if(this.playerURL!=undefined){return this.callHTML5(b)}else{return APIModule.callFlash(a,b)}};APIModule.prototype.callMethod=function(c,d){var a=[];for(var b=0;b<d.length;b++){a.push(d[b])}return this.callPlayer(this.callback,{module:this.name,method:c,params:a})};APIModule.prototype.callHTML5=function(b){if(!this.callback.postMessage){return null}var a;if(window.JSON){a=window.JSON.stringify(b)}else{a=brightcove.stringify(b)}if(a){this.callback.postMessage(a,this.playerURL)}return null};var BCXML={};BCXML.convertToXML=function(f,a){if(f instanceof Function){return""}var c=BCXML.getType(f);var e="<"+c.name+a+">";if(c.name=="obj"){for(var d in f){e+=BCXML.convertToXML(f[d],d)}}else{if(c.name=="arr"){for(var b=0;b<f.length;b++){e+=BCXML.convertToXML(f[b],b)}}else{if(c.name=="str"){f=BCXML.replaceEntities(f);e+=f}else{e+=f}}}e+="</"+c.name+a+">";return e};BCXML.replaceEntities=function(a){a=a.replace(new RegExp("&","g"),"&amp;");a=a.replace(new RegExp("<","g"),"&lt;");a=a.replace(new RegExp(">","g"),"&gt;");return a};BCXML.getType=function(a){switch(typeof(a)){case"boolean":return{name:"boo",type:Boolean};case"string":return{name:"str",type:String};case"number":return{name:"num",type:Number};default:if(a instanceof Array){return{name:"arr",type:Array}}else{return{name:"obj",type:Object}}}};BCAdvertisingEvent={};BCAdvertisingEvent.AD_COMPLETE="adComplete";BCAdvertisingEvent.AD_POSTROLLS_COMPLETE="adPostRollsComplete";BCAdvertisingEvent.AD_PAUSE="adPause";BCAdvertisingEvent.AD_PROGRESS="adProgress";BCAdvertisingEvent.AD_RESUME="adResume";BCAdvertisingEvent.AD_RECEIVED="adReceived";BCAdvertisingEvent.AD_START="adStart";BCAdvertisingEvent.AD_CLICK="adClick";BCAdvertisingEvent.EXTERNAL_AD="externalAd";BCAdvertisingEvent.AD_RULES_READY="adRulesReady";brightcove.modules[APIModules.ADVERTISING]=AdvertisingAPI;function AdvertisingAPI(a){this.experience=a;this.callback=a.callback;this.name=APIModules.ADVERTISING}var pttp=AdvertisingAPI.prototype=new APIModule();pttp.showAd=function(){return this.callMethod("showAd",arguments)};pttp.resumeAfterExternalAd=function(){return this.callMethod("resumeAfterExternalAd",arguments)};pttp.getEnabledAdFormats=function(){return this.callMethod("getEnabledAdFormats",arguments)};pttp.enableAdFormats=function(){return this.callMethod("enableAdFormats",arguments)};pttp.enableExternalAds=function(){return this.callMethod("enableExternalAds",arguments)};pttp.enableOverrideAds=function(){return this.callMethod("enableOverrideAds",arguments)};pttp.getExternalAdsEnabled=function(){return this.callMethod("getExternalAdsEnabled",arguments)};pttp.getOverrideAdsEnabled=function(){return this.callMethod("getOverrideAdsEnabled",arguments)};pttp.disableForExternalAd=function(){return this.callMethod("disableForExternalAd",arguments)};pttp.getCurrentAdProperties=function(){return this.callMethod("getCurrentAdProperties",arguments)};pttp.showSponsorMessage=function(){return this.callMethod("showSponsorMessage",arguments)};pttp.getShowSponsorMessage=function(){return this.callMethod("getShowSponsorMessage",arguments)};pttp.allowThirdPartyControl=function(){return this.callMethod("allowThirdPartyControl",arguments)};pttp.setThirdPartyTime=function(){return this.callMethod("setThirdPartyTime",arguments)};pttp.getThirdPartyTime=function(){return this.callMethod("getThirdPartyTime",arguments)};pttp.getAdPolicy=function(){return this.callMethod("getAdPolicy",arguments)};pttp.setAdPolicy=function(){return this.callMethod("setAdPolicy",arguments)};pttp.setAdRules=function(){return this.callMethod("setAdRules",arguments)};pttp.getCurrentAdRules=function(){return this.callMethod("getCurrentAdRules",arguments)};pttp.setAdTranslator=function(){return this.callMethod("setAdTranslator",arguments)};pttp.getCurrentAdTranslator=function(){return this.callMethod("getCurrentAdTranslator",arguments)};pttp.requestAd=function(){return this.callMethod("requestAd",arguments)};pttp.getStayInFullScreen=function(){return this.callMethod("getStayInFullScreen",arguments)};pttp.setStayInFullScreen=function(){return this.callMethod("setStayInFullScreen",arguments)};pttp.stopAd=function(){return this.callMethod("stopAd",arguments)};pttp.DEFAULT_AD_TRANSLATOR="defaultAdTranslator";BCCaptionsEvent={};BCCaptionsEvent.DFXP_LOAD_SUCCESS="dfxpLoadSuccess";BCCaptionsEvent.DFXP_LOAD_ERROR="dfxpLoadError";brightcove.modules[APIModules.CAPTIONS]=CaptionsAPI;function CaptionsAPI(a){this.experience=a;this.callback=a.callback;this.name=APIModules.CAPTIONS}var pttp=CaptionsAPI.prototype=new APIModule();pttp.loadDFXP=function(){return this.callMethod("loadDFXP",arguments)};pttp.setLanguage=function(){return this.callMethod("setLanguage",arguments)};pttp.getLanguages=function(){return this.callMethod("getLanguages",arguments)};BCContentEvent={};BCContentEvent.VIDEO_LOAD="videoLoad";BCContentEvent.PLAYLIST_LOAD="playlistLoad";BCContentEvent.MEDIA_LOAD="mediaLoad";BCContentEvent.MEDIA_COLLECTION_LOAD="mediaCollectionLoad";brightcove.modules[APIModules.CONTENT]=ContentAPI;function ContentAPI(a){this.experience=a;if(a){this.callback=a.callback}this.name=APIModules.CONTENT}var pttp=ContentAPI.prototype=new APIModule();pttp.getAllMediaCollections=function(){return this.callMethod("getAllMediaCollections",arguments)};pttp.getAllMediaCollectionIDs=function(){return this.callMethod("getAllMediaCollectionIDs",arguments)};pttp.getAllPlaylists=function(){return this.callMethod("getAllPlaylists",arguments)};pttp.getAllPlaylistIDs=function(){return this.callMethod("getAllPlaylistIDs",arguments)};pttp.getMediaCollection=function(){return this.callMethod("getMediaCollection",arguments)};pttp.getMediaCollectionAsynch=function(){return this.callMethod("getMediaCollectionAsynch",arguments)};pttp.getPlaylist=function(){return this.callMethod("getPlaylist",arguments)};pttp.getPlaylistAsynch=function(){return this.callMethod("getPlaylistAsynch",arguments)};pttp.getMedia=function(){return this.callMethod("getMedia",arguments)};pttp.getMediaAsynch=function(){return this.callMethod("getMediaAsynch",arguments)};pttp.getVideo=function(){return this.callMethod("getVideo",arguments)};pttp.getVideoAsynch=function(){return this.callMethod("getVideoAsynch",arguments)};pttp.purgeAllContent=function(){return this.callMethod("purgeAllContent",arguments)};pttp.purgeMediaCollections=function(){return this.callMethod("purgeMediaCollections",arguments)};pttp.purgeMedia=function(){return this.callMethod("purgeMedia",arguments)};pttp.purgePlaylist=function(){return this.callMethod("purgePlaylist",arguments)};pttp.purgePlaylists=function(){return this.callMethod("purgePlaylists",arguments)};pttp.purgeVideo=function(){return this.callMethod("purgeVideo",arguments)};pttp.purgeVideos=function(){return this.callMethod("purgeVideos",arguments)};pttp.getMediaInGroupAsynch=function(){return this.callMethod("getMediaInGroupAsynch",arguments)};pttp.createRuntimeMediaCollection=function(){return this.callMethod("createRuntimeMediaCollection",arguments)};pttp.updateMedia=function(){return this.callMethod("updateMedia",arguments)};pttp.appendArgsToMediaRequest=function(){return this.callMethod("appendArgsToMediaRequest",arguments)};brightcove.modules[APIModules.CONVIVA]=ConvivaAPI;function ConvivaAPI(a){this.experience=a;this.callback=a.callback;this.name=APIModules.CONVIVA}var pttp=ConvivaAPI.prototype=new APIModule();pttp.sendEvent=function(){return this.callMethod("sendEvent",arguments)};BCCuePointEvent={};BCCuePointEvent.CUE="cuePoint";brightcove.modules[APIModules.CUE_POINTS]=CuePointsAPI;function CuePointsAPI(a){this.experience=a;this.callback=a.callback;this.name=APIModules.CUE_POINTS}var pttp=CuePointsAPI.prototype=new APIModule();pttp.addCuePoints=function(){return this.callMethod("addCuePoints",arguments)};pttp.clearCodeCuePoints=function(){return this.callMethod("clearCodeCuePoints",arguments)};pttp.removeCodeCuePointsAtTime=function(){return this.callMethod("removeCodeCuePointsAtTime",arguments)};pttp.getCuePoints=function(){return this.callMethod("getCuePoints",arguments)};pttp.clearAdCuePoints=function(){return this.callMethod("clearAdCuePoints",arguments)};pttp.removeAdCuePointsAtTime=function(){return this.callMethod("removeAdCuePointsAtTime",arguments)};BCEffectsEvent={};BCEffectsEvent.BEGIN="animationBegin";BCEffectsEvent.COMPLETE="animationComplete";BCEffectsEvent.CHANGE="animationChange";brightcove.modules[APIModules.EFFECTS]=EffectsAPI;function EffectsAPI(a){this.experience=a;this.callback=a.callback;this.name=APIModules.EFFECTS}EffectsAPI.animations={};var pttp=EffectsAPI.prototype=new APIModule();pttp.createAnimation=function(){var a=this.callMethod("createAnimationJS",arguments);return this.getAnimation(a)};pttp.getAnimation=function(){var a=this.callMethod("getAnimationJS",arguments);if(a){return this.getAnimationWrapper(a)}return null};pttp.getAnimationWrapper=function(b){var a=EffectsAPI.animations[b];if(a==undefined){a=new EffectsAPIAnimation(b,this.callback);EffectsAPI.animations[b]=a}return a};function EffectsAPIAnimation(b,a){this.id=b;this.name=APIModules.EFFECTS;this.callback=a}pttp=EffectsAPIAnimation.prototype=new APIModule();pttp.id=-1;pttp.callMethod=function(c,d){if(d==undefined){d=[]}var a=[this.id];for(var b=0;b<d.length;b++){a.push(d[b])}return APIModule.callFlash(this.callback,{module:this.name,method:c,params:a})};pttp.start=function(){return this.callMethod("startJS",arguments)};pttp.stop=function(){return this.callMethod("stopJS",arguments)};pttp.apply=function(b){var a=b.getID();if(a){return this.callMethod("applyJS",[a])}};pttp.addEventListener=function(a,b){var c=APIModule.getHandler();this.handlers.push({handler:b,bcHandler:c,event:a});window[c]=b;return this.callMethod("addEventListenerJS",[a,c])};pttp.removeEventListener=function(b,c){var e=this.handlers.length;for(var d=0;d<e;d++){if(this.handlers[d].event==b&&this.handlers[d].handler==c){var a=this.handlers[d].bcHandler;this.handlers.splice(d,1);break}}if(a==undefined){return}return this.callMethod("removeEventListenerJS",[b,a])};BCExperienceEvent={};BCExperienceEvent.CONTENT_LOAD="contentLoad";BCExperienceEvent.USER_MESSAGE="userMessage";BCExperienceEvent.TEMPLATE_READY="templateReady";BCExperienceEvent.ENTER_FULLSCREEN="enterFullScreen";BCExperienceEvent.EXIT_FULLSCREEN="exitFullScreen";brightcove.modules[APIModules.EXPERIENCE]=ExperienceAPI;BCComponentModules={};function ExperienceAPI(a){this.experience=a;if(a){this.callback=a.callback}this.name=APIModules.EXPERIENCE}var pttp=ExperienceAPI.prototype=new APIModule();pttp.setSize=function(){return this.callMethod("setSize",arguments)};pttp.getPlayerName=function(){return this.callMethod("getPlayerName",arguments)};pttp.getReady=function(){return this.callMethod("getReady",arguments)};pttp.getWidth=function(){return this.callMethod("getWidth",arguments)};pttp.getHeight=function(){return this.callMethod("getHeight",arguments)};pttp.getAdEnabled=function(){return this.callMethod("getAdEnabled",arguments)};pttp.getEnabled=function(){return this.callMethod("getEnabled",arguments)};pttp.setEnabled=function(){return this.callMethod("setEnabled",arguments)};pttp.loadExperience=function(){return this.callMethod("loadExperience",arguments)};pttp.getLayout=function(){return this.callMethod("getLayout",arguments)};pttp.getAffiliateID=function(){return this.callMethod("getAffiliateID",arguments)};pttp.getExperienceID=function(){return this.callMethod("getExperienceID",arguments)};pttp.getPublisherID=function(){return this.callMethod("getPublisherID",arguments)};pttp.getExperienceURL=function(){return this.callMethod("getExperienceURL",arguments)};pttp.getReferrerURL=function(){return this.callMethod("getReferrerURL",arguments)};pttp.getConfiguredPropertiesForID=function(){return this.callMethod("getConfiguredPropertiesForID",arguments)};pttp.getPlayerParameter=function(){return this.callMethod("getPlayerParameter",arguments)};pttp.getLayoutRoot=function(){var a=this.callMethod("getLayoutRootJS",arguments);if(a!=null){if(BCComponentModules[a.elementName]!=null){return new BCComponentModules[a.elementName](this.experience,this.callback,a.elementID)}}return null};pttp.getElementByID=function(){var a=this.callMethod("getJSElementByID",arguments);if(a!=null){if(a=="VideoPlayer"||a=="VideoDisplay"){var b=this.experience.getModule(APIModules.VIDEO_PLAYER);if(b){b.initializeComponentAPI();return b}}else{if(BCComponentModules[a]!=null){return new BCComponentModules[a](this.experience,this.callback,arguments[0])}}}return null};pttp.getElementsByType=function(){var c=this.callMethod("getJSElementsByType",arguments);var d=[];var a;for(var b in c){if(typeof(c[b])!="function"){a=this.getElementByID(c[b]);if(a){d.push(a)}}}return d};pttp.getModules=function(){return this.callMethod("getModules",arguments)};pttp.unload=function(){return this.callMethod("unload",arguments)};pttp.debug=function(){return this.callMethod("debug",arguments)};pttp.getUserCountry=function(){return this.callMethod("getUserCountry",arguments)};pttp.getTranslation=function(){return this.callMethod("getTranslation",arguments)};BCMenuEvent={};BCMenuPage={};BCMenuAdditionalMedia={};BCMenuEvent.MENU_PAGE_OPEN="menuPageOpen";BCMenuEvent.MENU_PAGE_CLOSE="menuPageClose";BCMenuEvent.OVERLAY_MENU_OPEN="overlayMenuOpen";BCMenuEvent.OVERLAY_MENU_CLOSE="overlayMenuClose";BCMenuEvent.OVERLAY_MENU_PLAY_CLICK="overlayMenuPlayClick";BCMenuEvent.ICON_MENU_OPEN="iconMenuOpen";BCMenuEvent.ICON_MENU_CLOSE="iconMenuClose";BCMenuEvent.SEND_EMAIL_CLICK="sendEmailClick";BCMenuEvent.BLOG_POST_CLICK="blogPostClick";BCMenuEvent.COPY_LINK="copyLink";BCMenuEvent.COPY_CODE="copyCode";BCMenuEvent.VIDEO_REQUEST="videoRequest";BCMenuPage.EMAIL="Email";BCMenuPage.SHARE="Share";BCMenuPage.LINK="Link";BCMenuPage.CODE="Embed";BCMenuPage.INFO="Info";BCMenuAdditionalMedia.RELATED_VIDEOS="related videos";BCMenuAdditionalMedia.NEWEST_VIDEOS="newest videos";BCMenuAdditionalMedia.MOST_VIEWED_VIDEOS="most viewed videos";brightcove.modules[APIModules.MENU]=MenuAPI;function MenuAPI(a){this.experience=a;this.callback=a.callback;this.name=APIModules.MENU}var pttp=MenuAPI.prototype=new APIModule();pttp.showIconMenu=function(){return this.callMethod("showIconMenu",arguments)};pttp.isIconMenuShowing=function(){return this.callMethod("isIconMenuShowing",arguments)};pttp.showMenuPage=function(){return this.callMethod("showMenuPage",arguments)};pttp.closeMenuPage=function(){return this.callMethod("closeMenuPage",arguments)};pttp.isMenuPageShowing=function(){return this.callMethod("isMenuPageShowing",arguments)};pttp.isOverlayMenuShowing=function(){return this.callMethod("isOverlayMenuShowing",arguments)};pttp.removeOverlayMenu=function(){return this.callMethod("removeOverlayMenu",arguments)};pttp.getCurrentMenuPage=function(){return this.callMethod("getCurrentMenuPage",arguments)};pttp.setOverlayMenuVisible=function(){return this.callMethod("setOverlayMenuVisible",arguments)};pttp.getOverlayMenuVisible=function(){return this.callMethod("getOverlayMenuVisible",arguments)};pttp.setAdditionalMediaForType=function(){return this.callMethod("setAdditionalMediaForType",arguments)};pttp.getAdditionalMediaForType=function(){return this.callMethod("getAdditionalMediaForType",arguments)};var bcAdditionalMediaCallback;pttp.setAdditionalMediaCallback=function(a,b){bcAdditionalMediaCallback=a;return this.callMethod("setAdditionalMediaCallbackJS",["bcCallAdditionalMediaCallback",b])};function bcCallAdditionalMediaCallback(b,a){return bcAdditionalMediaCallback(b,a)}BCSearchEvent={};BCSearchEvent.RESULT="searchResult";BCSearchEvent.ERROR="searchError";brightcove.modules[APIModules.SEARCH]=SearchAPI;SortOrderType={ASC:"ASC",DESC:"DESC"};SortByType={PUBLISH_DATE:"PUBLISH_DATE",CREATION_DATE:"CREATION_DATE",MODIFIED_DATE:"MODIFIED_DATE",PLAYS_TOTAL:"PLAYS_TOTAL",PLAYS_TRAILING_WEEK:"PLAYS_TRAILING_WEEK"};function SearchAPI(a){this.experience=a;this.callback=a.callback;this.name=APIModules.SEARCH}SearchAPI.searches={};var pttp=SearchAPI.prototype=new APIModule();pttp.findRelatedVideos=function(){var a=this.callMethod("findRelatedVideosJS",arguments);return this.getVideoSearch(a)};pttp.findVideosByText=function(){var a=this.callMethod("findVideosByTextJS",arguments);return this.getVideoSearch(a)};pttp.findVideosByTags=function(){var a=this.callMethod("findVideosByTagsJS",arguments);return this.getVideoSearch(a)};pttp.findAllVideos=function(){var a=this.callMethod("findAllVideosJS",arguments);return this.getVideoSearch(a)};pttp.getVideoSearch=function(b){var a=SearchAPI.searches[b];if(a==undefined){a=new VideoSearch(b,this.callback);SearchAPI.searches[b]=a}return a};pttp.getMaxItemsInMemory=function(){return this.callMethod("getMaxItemsInMemory",arguments)};pttp.setMaxItemsInMemory=function(){return this.callMethod("setMaxItemsInMemory",arguments)};function VideoSearch(b,a){this.id=b;this.name=APIModules.SEARCH;this.callback=a}pttp=VideoSearch.prototype=new APIModule();pttp.id=-1;pttp.callMethod=function(c,d){if(d==undefined){d=[]}var a=[this.id];for(var b=0;b<d.length;b++){a.push(d[b])}return APIModule.callFlash(this.callback,{module:this.name,method:c,params:a})};pttp.getItems=function(){return this.callMethod("getItems",arguments)};pttp.getPage=function(){return this.callMethod("getPage",arguments)};pttp.getPageAsynch=function(){this.pageNumber=this.callMethod("getPageNumber");return this.callMethod("getPageAsynch",arguments)};pttp.getNextPage=function(){return this.callMethod("getNextPage",arguments)};pttp.getNextPageAsynch=function(){return this.callMethod("getNextPageAsynch",arguments)};pttp.getPreviousPage=function(){return this.callMethod("getPreviousPage",arguments)};pttp.getPreviousPageAsynch=function(){return this.callMethod("getPreviousPageAsynch",arguments)};pttp.getRow=function(){return this.callMethod("getRow",arguments)};pttp.getRowOnPage=function(){return this.callMethod("getRowOnPage",arguments)};pttp.purgeAll=function(){return this.callMethod("purgeAll",arguments)};pttp.purgePage=function(){return this.callMethod("purgePage",arguments)};pttp.getTotalRows=function(){return this.callMethod("getTotalRows",arguments)};pttp.getTotalPages=function(){return this.callMethod("getTotalPages",arguments)};pttp.getPageNumber=function(){return this.callMethod("getPageNumber",arguments)};pttp.getPageSize=function(){return this.callMethod("getPageSize",arguments)};pttp.getMaxPagesInMemory=function(){return this.callMethod("getMaxPagesInMemory",arguments)};pttp.setMaxPagesInMemory=function(){return this.callMethod("setMaxPagesInMemory",arguments)};BCSocialEvent={};BCSocialEvent.EMBED_CODE_RETRIEVED="embedCodeRetrieved";BCSocialEvent.LINK_GENERATED="linkGenerated";brightcove.modules[APIModules.SOCIAL]=SocialAPI;function SocialAPI(a){this.experience=a;this.callback=a.callback;this.name=APIModules.SOCIAL}var pttp=SocialAPI.prototype=new APIModule();pttp.shareVideoViaEmail=function(){return this.callMethod("shareVideoViaEmail",arguments)};pttp.getEmbedCode=function(){return this.callMethod("getEmbedCode",arguments)};pttp.setEmbedCode=function(){return this.callMethod("setEmbedCode",arguments)};pttp.setLink=function(){return this.callMethod("setLink",arguments)};pttp.getLink=function(){return this.callMethod("getLink",arguments)};pttp.isURLShortenedForMedia=function(){return this.callMethod("isURLShortenedForMedia",arguments)};pttp.getRSS=function(){return this.callMethod("getRSS",arguments)};pttp.enableBlogging=function(){return this.callMethod("enableBlogging",arguments)};if(BCMediaEvent==undefined){var BCMediaEvent={};BCMediaEvent.BEGIN="mediaBegin";BCMediaEvent.BUFFER_BEGIN="mediaBufferBegin";BCMediaEvent.BUFFER_COMPLETE="mediaBufferComplete";BCMediaEvent.CHANGE="mediaChange";BCMediaEvent.COMPLETE="mediaComplete";BCMediaEvent.ERROR="mediaError";BCMediaEvent.MUTE_CHANGE="mediaMuteChange";BCMediaEvent.PLAY="mediaPlay";BCMediaEvent.PROGRESS="mediaProgress";BCMediaEvent.SEEK="mediaSeek";BCMediaEvent.SEEK_NOTIFY="mediaSeekNotify";BCMediaEvent.STOP="mediaStop";BCMediaEvent.VOLUME_CHANGE="mediaVolumeChange"}var BCVideoEvent={};BCVideoEvent.END_BUFFER="endBuffering";BCVideoEvent.RENDITION_CHANGE="renditionChange";BCVideoEvent.VIDEO_CHANGE="videoChange";BCVideoEvent.VIDEO_COMPLETE="videoComplete";BCVideoEvent.VIDEO_CONNECT="videoConnect";BCVideoEvent.VIDEO_LOAD="videoLoad";BCVideoEvent.VIDEO_PROGRESS="videoProgress";BCVideoEvent.VIDEO_START="videoStart";BCVideoEvent.VIDEO_STOP="videoStop";BCVideoEvent.VIDEO_MUTE="ui_mute";BCVideoEvent.VIDEO_SEEK="seek";BCVideoEvent.START_BUFFER="startBuffering";BCVideoEvent.STREAM_START="streamStart";BCVideoEvent.VOLUME_CHANGE="volumeChange";brightcove.modules[APIModules.VIDEO_PLAYER]=VideoPlayerAPI;function VideoPlayerAPI(a){this.experience=a;if(a){this.callback=a.callback}this.name=APIModules.VIDEO_PLAYER}var pttp=VideoPlayerAPI.prototype=new APIModule();pttp.initializeComponentAPI=function(){return this.callMethod("initializeComponentAPI",arguments)};pttp.getComponentAPI=function(a,b){if(a!=null){if(a=="VideoPlayer"||a=="VideoDisplay"){var c=this.experience.getModule(APIModules.VIDEO_PLAYER);c.initializeComponentAPI();return c}else{if(BCComponentModules[a]!=null){return new BCComponentModules[a](this.experience,this.callback,b)}}}return null};pttp.isPlayerDefined=function(){return this.callMethod("isPlayerDefined",arguments)};pttp.setVideoFilter=function(){return this.callMethod("setVideoFilter",arguments)};pttp.getCurrentVideo=function(){return this.callMethod("getCurrentVideo",arguments)};pttp.getCurrentRendition=function(){return this.callMethod("getCurrentRendition",arguments)};pttp.loadVideo=function(){return this.callMethod("loadVideo",arguments)};pttp.cueVideo=function(){return this.callMethod("cueVideo",arguments)};pttp.play=function(){return this.callMethod("play",arguments)};pttp.stop=function(){return this.callMethod("stop",arguments)};pttp.pause=function(){return this.callMethod("pause",arguments)};pttp.seek=function(){return this.callMethod("seek",arguments)};pttp.mute=function(){return this.callMethod("mute",arguments)};pttp.setVolume=function(){return this.callMethod("setVolume",arguments)};pttp.getVolume=function(){return this.callMethod("getVolume",arguments)};pttp.showVolumeControls=function(){return this.callMethod("showVolumeControls",arguments)};pttp.getVideoPosition=function(){return this.callMethod("getVideoPosition",arguments)};pttp.getVideoDuration=function(){return this.callMethod("getVideoDuration",arguments)};pttp.getVideoBytesLoaded=function(){return this.callMethod("getVideoBytesLoaded",arguments)};pttp.getVideoBytesTotal=function(){return this.callMethod("getVideoBytesTotal",arguments)};pttp.isPlaying=function(){return this.callMethod("isPlaying",arguments)};pttp.isMuted=function(){return this.callMethod("isMuted",arguments)};pttp.getContentTypeDisplayed=function(){return this.callMethod("getContentTypeDisplayed",arguments)};pttp.setSize=function(){return this.callMethod("setSize",arguments)};pttp.move=function(){return this.callMethod("move",arguments)};pttp.getX=function(){return this.callMethod("getX",arguments)};pttp.getY=function(){return this.callMethod("getY",arguments)};pttp.getDefinition=function(){return this.callMethod("getDefinition",arguments)};pttp.getID=function(){return this.callMethod("getID",arguments)};pttp.getWidth=function(){return this.callMethod("getWidth",arguments)};pttp.getHeight=function(){return this.callMethod("getHeight",arguments)};pttp.getDisplayWidth=function(){return this.callMethod("getDisplayWidth",arguments)};pttp.getDisplayHeight=function(){return this.callMethod("getDisplayHeight",arguments)};pttp.getEnabled=function(){return this.callMethod("getEnabled",arguments)};pttp.setStyles=function(){return this.callMethod("setStyles",arguments)};pttp.setEnabled=function(){return this.callMethod("setEnabled",arguments)};pttp.getVisible=function(){return this.callMethod("getVisible",arguments)};pttp.setVisible=function(){return this.callMethod("setVisible",arguments)};pttp.getAlpha=function(){return this.callMethod("getAlpha",arguments)};pttp.setAlpha=function(){return this.callMethod("setAlpha",arguments)};pttp.getBlendMode=function(){return this.callMethod("getBlendMode",arguments)};pttp.setBlendMode=function(){return this.callMethod("setBlendMode",arguments)};pttp.getRotation=function(){return this.callMethod("getRotation",arguments)};pttp.setRotation=function(){return this.callMethod("setRotation",arguments)};pttp.getIndex=function(){return this.callMethod("getIndex",arguments)};pttp.toggleVolumeControls=function(){return this.callMethod("toggleVolumeControls",arguments)};pttp.toggleMenuPage=function(){return this.callMethod("toggleMenuPage",arguments)};pttp.getContainer=function(){var a=this.callMethod("getContainerJS",arguments);if(a){return this.getComponentAPI(a.elementName,a.elementID)}return null};pttp.getNextSibling=function(){var a=this.callMethod("getNextSiblingJS",arguments);if(a){return this.getComponentAPI(a.elementName,a.elementID)}return null};pttp.getPreviousSibling=function(){var a=this.callMethod("getPreviousSiblingJS",arguments);if(a){return this.getComponentAPI(a.elementName,a.elementID)}return null};pttp.getCSS=function(){return this.callMethod("getCSS",arguments)};pttp.mediaIsLive=function(){return this.callMethod("mediaIsLive",arguments)};pttp.setDynamicDeliveryParameters=function(){return this.callMethod("setDynamicDeliveryParameters",arguments)};pttp.removeUserMessage=function(){return this.callMethod("removeUserMessage",arguments)};pttp.enableInitialBandwidthDetection=function(){return this.callMethod("enableInitialBandwidthDetection",arguments)};pttp.getInitialBandwidthDetectionEnabled=function(){return this.callMethod("getInitialBandwidthDetectionEnabled",arguments)};pttp.setDefaultBufferTime=function(){return this.callMethod("setDefaultBufferTime",arguments)};pttp.getDefaultBufferTime=function(){return this.callMethod("getDefaultBufferTime",arguments)};pttp.setConnectOnLoad=function(){return this.callMethod("setConnectOnLoad",arguments)};pttp.setBitRateRange=function(){return this.callMethod("setBitRateRange",arguments)};pttp.requestRenditionChange=function(){return this.callMethod("requestRenditionChange",arguments)};var bcRenditionSelectionCallback;pttp.setRenditionSelectionCallback=function(a){bcRenditionSelectionCallback=a;return this.callMethod("setRenditionSelectionCallbackJS",["bcCallRenditionSelectionCallback"])};function bcCallRenditionSelectionCallback(a){return bcRenditionSelectionCallback(a)}function ComponentAPI(){this.name=APIModules.EXPERIENCE}var pttp=ComponentAPI.prototype=new APIModule();pttp.callMethod=function(c,d){var a=[];for(var b=0;b<d.length;b++){a.push(d[b])}return APIModule.callFlash(this.callback,{module:this.name,element:this.elementID,method:"getComponentAPI",componentMethod:c,params:a})};pttp.getComponentAPI=function(a,b){if(a!=null){if(a=="VideoPlayer"||a=="VideoDisplay"){var c=this.experience.getModule(APIModules.VIDEO_PLAYER);c.initializeComponentAPI();return c}else{if(BCComponentModules[a]!=null){return new BCComponentModules[a](this.experience,this.callback,b)}}}return null};pttp.setSize=function(){return this.callMethod("setSize",arguments)};pttp.move=function(){return this.callMethod("move",arguments)};pttp.getX=function(){return this.callMethod("getX",arguments)};pttp.getY=function(){return this.callMethod("getY",arguments)};pttp.getVisible=function(){return this.callMethod("getVisible",arguments)};pttp.setVisible=function(){return this.callMethod("setVisible",arguments)};pttp.getIncludeInLayout=function(){return this.callMethod("getIncludeInLayout",arguments)};pttp.setIncludeInLayout=function(){return this.callMethod("setIncludeInLayout",arguments)};pttp.getAlpha=function(){return this.callMethod("getAlpha",arguments)};pttp.setAlpha=function(){return this.callMethod("setAlpha",arguments)};pttp.getDefinition=function(){return this.callMethod("getDefinition",arguments)};pttp.getID=function(){return this.callMethod("getID",arguments)};pttp.getWidth=function(){return this.callMethod("getWidth",arguments)};pttp.getHeight=function(){return this.callMethod("getHeight",arguments)};pttp.getIndex=function(){return this.callMethod("getIndex",arguments)};pttp.getContainer=function(){var a=this.callMethod("getContainerJS",arguments);if(a){return this.getComponentAPI(a.elementName,a.elementID)}return null};pttp.getNextSibling=function(){var a=this.callMethod("getNextSiblingJS",arguments);if(a){return this.getComponentAPI(a.elementName,a.elementID)}return null};pttp.getPreviousSibling=function(){var a=this.callMethod("getPreviousSiblingJS",arguments);if(a){return this.getComponentAPI(a.elementName,a.elementID)}return null};function UIObjectAPI(a,b){this.callback=a;this.elementID=b}var pttp=UIObjectAPI.prototype=new ComponentAPI();pttp.getEnabled=function(){return this.callMethod("getEnabled",arguments)};pttp.setEnabled=function(){return this.callMethod("setEnabled",arguments)};pttp.getBlendMode=function(){return this.callMethod("getBlendMode",arguments)};pttp.setBlendMode=function(){return this.callMethod("setBlendMode",arguments)};pttp.getRotation=function(){return this.callMethod("getRotation",arguments)};pttp.setRotation=function(){return this.callMethod("setRotation",arguments)};pttp.setStyles=function(){return this.callMethod("setStyles",arguments)};pttp.getCSS=function(){return this.callMethod("getCSS",arguments)};if(BCMediaEvent==undefined){var BCMediaEvent={};BCMediaEvent.BEGIN="mediaBegin";BCMediaEvent.BUFFER_BEGIN="mediaBufferBegin";BCMediaEvent.BUFFER_COMPLETE="mediaBufferComplete";BCMediaEvent.CHANGE="mediaChange";BCMediaEvent.COMPLETE="mediaComplete";BCMediaEvent.ERROR="mediaError";BCMediaEvent.MUTE_CHANGE="mediaMuteChange";BCMediaEvent.PLAY="mediaPlay";BCMediaEvent.PROGRESS="mediaProgress";BCMediaEvent.SEEK="mediaSeek";BCMediaEvent.STOP="mediaStop";BCMediaEvent.VOLUME_CHANGE="mediaVolumeChange"}BCComponentModules.AudioPlayer=AudioPlayerAPI;function AudioPlayerAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=AudioPlayerAPI.prototype=new ComponentAPI();pttp.play=function(){return this.callMethod("play",arguments)};pttp.pause=function(){return this.callMethod("pause",arguments)};pttp.stop=function(){return this.callMethod("stop",arguments)};pttp.seek=function(){return this.callMethod("seek",arguments)};pttp.mute=function(){return this.callMethod("mute",arguments)};pttp.setVolume=function(){return this.callMethod("setVolume",arguments)};pttp.getVolume=function(){return this.callMethod("getVolume",arguments)};pttp.isPlaying=function(){return this.callMethod("isPlaying",arguments)};pttp.isMuted=function(){return this.callMethod("isMuted",arguments)};pttp.getMediaBytesLoaded=function(){return this.callMethod("getMediaBytesLoaded",arguments)};pttp.getMediaBytesTotal=function(){return this.callMethod("getMediaBytesTotal",arguments)};pttp.getMediaDuration=function(){return this.callMethod("getMediaDuration",arguments)};pttp.getMediaPosition=function(){return this.callMethod("getMediaPosition",arguments)};pttp.getCurrentMedia=function(){return this.callMethod("getCurrentMedia",arguments)};pttp.cueMedia=function(){return this.callMethod("cueMedia",arguments)};pttp.loadMedia=function(){return this.callMethod("loadMedia",arguments)};BCComponentModules.Banner=BannerAPI;function BannerAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=BannerAPI.prototype=new UIObjectAPI();BCComponentModules.Button=ButtonAPI;function ButtonAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=ButtonAPI.prototype=new UIObjectAPI();pttp.getLabel=function(){return this.callMethod("getLabel",arguments)};pttp.setLabel=function(){return this.callMethod("setLabel",arguments)};pttp.setFont=function(){return this.callMethod("setFont",arguments)};pttp.getFont=function(){return this.callMethod("getFont",arguments)};pttp.setLabelSize=function(){return this.callMethod("setLabelSize",arguments)};pttp.getLabelSize=function(){return this.callMethod("getLabelSize",arguments)};pttp.getAutoSize=function(){return this.callMethod("getAutoSize",arguments)};pttp.setAutoSize=function(){return this.callMethod("setAutoSize",arguments)};pttp.getTruncateLabel=function(){return this.callMethod("getTruncateLabel",arguments)};pttp.setTruncateLabel=function(){return this.callMethod("setTruncateLabel",arguments)};pttp.getMultiline=function(){return this.callMethod("getMultiline",arguments)};pttp.setMultiline=function(){return this.callMethod("setMultiline",arguments)};pttp.getIsTruncated=function(){return this.callMethod("getIsTruncated",arguments)};pttp.getLabelWidth=function(){return this.callMethod("getLabelWidth",arguments)};pttp.getShowBack=function(){return this.callMethod("getShowBack",arguments)};pttp.setShowBack=function(){return this.callMethod("setShowBack",arguments)};pttp.getTooltip=function(){return this.callMethod("getTooltip",arguments)};pttp.setTooltip=function(){return this.callMethod("setTooltip",arguments)};pttp.getIconScale=function(){return this.callMethod("getIconScale",arguments)};pttp.setIconScale=function(){return this.callMethod("setIconScale",arguments)};pttp.getIconOffsetX=function(){return this.callMethod("getIconOffsetX",arguments)};pttp.setIconOffsetX=function(){return this.callMethod("setIconOffsetX",arguments)};pttp.getIconOffsetY=function(){return this.callMethod("getIconOffsetY",arguments)};pttp.setIconOffsetY=function(){return this.callMethod("setIconOffsetY",arguments)};pttp.getLabelOffsetX=function(){return this.callMethod("getLabelOffsetX",arguments)};pttp.setLabelOffsetX=function(){return this.callMethod("setLabelOffsetX",arguments)};pttp.getLabelOffsetY=function(){return this.callMethod("getLabelOffsetY",arguments)};pttp.setLabelOffsetY=function(){return this.callMethod("setLabelOffsetY",arguments)};pttp.getLabelBuffer=function(){return this.callMethod("getLabelBuffer",arguments)};pttp.setLabelBuffer=function(){return this.callMethod("setLabelBuffer",arguments)};pttp.getIconAlignmentH=function(){return this.callMethod("getIconAlignmentH",arguments)};pttp.setIconAlignmentH=function(){return this.callMethod("setIconAlignmentH",arguments)};pttp.getIconAlignmentV=function(){return this.callMethod("getIconAlignmentV",arguments)};pttp.setIconAlignmentV=function(){return this.callMethod("setIconAlignmentV",arguments)};pttp.getLabelAlignmentH=function(){return this.callMethod("getLabelAlignmentH",arguments)};pttp.setLabelAlignmentH=function(){return this.callMethod("setLabelAlignmentH",arguments)};pttp.getLabelAlignmentV=function(){return this.callMethod("getLabelAlignmentV",arguments)};pttp.setLabelAlignmentV=function(){return this.callMethod("setLabelAlignmentV",arguments)};pttp.getIconName=function(){return this.callMethod("getIconName",arguments)};pttp.setIconName=function(){return this.callMethod("setIconName",arguments)};BCComponentModules.ChromelessVideoPlayer=ChromelessVideoPlayerAPI;function ChromelessVideoPlayerAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c;this.initializeComponentAPI()}var pttp=ChromelessVideoPlayerAPI.prototype=new VideoPlayerAPI();pttp.callChromelessComponentMethod=function(c,d){var a=[];for(var b=0;b<d.length;b++){a.push(d[b])}return APIModule.callFlash(this.callback,{module:APIModules.EXPERIENCE,element:this.elementID,method:"getComponentAPI",componentMethod:c,params:a})};pttp.getControls=function(){var a=this.callChromelessComponentMethod("getControlsJS",arguments);if(a){return this.getComponentAPI(a.elementName,a.elementID)}return null};pttp.showControls=function(){return this.callChromelessComponentMethod("showControls",arguments)};pttp.getControlsVisible=function(){return this.callChromelessComponentMethod("getControlsVisible",arguments)};pttp.getIncludeInLayout=function(){return this.callChromelessComponentMethod("getIncludeInLayout",arguments)};pttp.setIncludeInLayout=function(){return this.callChromelessComponentMethod("setIncludeInLayout",arguments)};BCComponentModules.ComboBox=ComboBoxAPI;function ComboBoxAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=ComboBoxAPI.prototype=new UIObjectAPI();pttp.setSelectedIndex=function(){return this.callMethod("setSelectedIndex",arguments)};pttp.getSelectedIndex=function(){return this.callMethod("getSelectedIndex",arguments)};pttp.getSelectedData=function(){return this.callMethod("getSelectedData",arguments)};pttp.getDataAtIndex=function(){return this.callMethod("getDataAtIndex",arguments)};pttp.getData=function(){return this.callMethod("getData",arguments)};pttp.setData=function(){return this.callMethod("setData",arguments)};pttp.getNumItems=function(){return this.callMethod("getNumItems",arguments)};pttp.getScrollerWidth=function(){return this.callMethod("getScrollerWidth",arguments)};pttp.setScrollerWidth=function(){return this.callMethod("setScrollerWidth",arguments)};pttp.getScrollerInset=function(){return this.callMethod("getScrollerInset",arguments)};pttp.setScrollerInset=function(){return this.callMethod("setScrollerInset",arguments)};pttp.getItemLeading=function(){return this.callMethod("getItemLeading",arguments)};pttp.setItemLeading=function(){return this.callMethod("setItemLeading",arguments)};pttp.getItemInsetH=function(){return this.callMethod("getItemInsetH",arguments)};pttp.setItemInsetH=function(){return this.callMethod("setItemInsetH",arguments)};pttp.getItemInsetV=function(){return this.callMethod("getItemInsetV",arguments)};pttp.setItemInsetV=function(){return this.callMethod("setItemInsetV",arguments)};pttp.getRowHeight=function(){return this.callMethod("getRowHeight",arguments)};pttp.setRowHeight=function(){return this.callMethod("setRowHeight",arguments)};pttp.getLabelBufferLeft=function(){return this.callMethod("getLabelBufferLeft",arguments)};pttp.setLabelBufferLeft=function(){return this.callMethod("setLabelBufferLeft",arguments)};pttp.getLabelBufferRight=function(){return this.callMethod("getLabelBufferRight",arguments)};pttp.setLabelBufferRight=function(){return this.callMethod("setLabelBufferRight",arguments)};pttp.getLabelBufferTop=function(){return this.callMethod("getLabelBufferTop",arguments)};pttp.setLabelBufferTop=function(){return this.callMethod("setLabelBufferTop",arguments)};pttp.getAnimated=function(){return this.callMethod("getAnimated",arguments)};pttp.setAnimated=function(){return this.callMethod("setAnimated",arguments)};pttp.getLabelField=function(){return this.callMethod("getLabelField",arguments)};pttp.setLabelField=function(){return this.callMethod("setLabelField",arguments)};pttp.getLabel=function(){return this.callMethod("getLabel",arguments)};pttp.setLabel=function(){return this.callMethod("setLabel",arguments)};function ContainerAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=ContainerAPI.prototype=new UIObjectAPI();pttp.getHAlign=function(){return this.callMethod("getHAlign",arguments)};pttp.setHAlign=function(){return this.callMethod("setHAlign",arguments)};pttp.getVAlign=function(){return this.callMethod("getVAlign",arguments)};pttp.setVAlign=function(){return this.callMethod("setVAlign",arguments)};pttp.getBackgroundColor=function(){return this.callMethod("getBackgroundColor",arguments)};pttp.setBackgroundColor=function(){return this.callMethod("setBackgroundColor",arguments)};pttp.getBackgroundImage=function(){return this.callMethod("getBackgroundImage",arguments)};pttp.setBackgroundImage=function(){return this.callMethod("setBackgroundImage",arguments)};pttp.getGutter=function(){return this.callMethod("getGutter",arguments)};pttp.setGutter=function(){return this.callMethod("setGutter",arguments)};pttp.getPadding=function(){return this.callMethod("getPadding",arguments)};pttp.setPadding=function(){return this.callMethod("setPadding",arguments)};pttp.appendChild=function(){return this.callMethod("appendChild",arguments)};pttp.insertChildAt=function(){return this.callMethod("insertChildAt",arguments)};pttp.removeChildByID=function(){return this.callMethod("removeChildByID",arguments)};pttp.getNumChildren=function(){return this.callMethod("getNumChildren",arguments)};pttp.removeChildAt=function(){return this.callMethod("removeChildAt",arguments)};pttp.getChildAt=function(){var a=this.callMethod("getChildAtJS",arguments);if(a){return this.getComponentAPI(a.elementName,a.elementID)}return null};BCComponentModules.ExpandingBanner=ExpandingBannerAPI;function ExpandingBannerAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=ExpandingBannerAPI.prototype=new UIObjectAPI();pttp.expand=function(){return this.callMethod("expand",arguments)};pttp.contract=function(){return this.callMethod("contract",arguments)};pttp.getExpanded=function(){return this.callMethod("getExpanded",arguments)};pttp.synchBannerWithExternal=function(){return this.callMethod("synchBannerWithExternal",arguments)};BCComponentModules.GraphicBlock=GraphicBlockAPI;function GraphicBlockAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=GraphicBlockAPI.prototype=new UIObjectAPI();BCComponentModules.Image=ImageAPI;function ImageAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=ImageAPI.prototype=new UIObjectAPI();pttp.setSource=function(){return this.callMethod("setSource",arguments)};pttp.getSource=function(){return this.callMethod("getSource",arguments)};pttp.getScaleMode=function(){return this.callMethod("getScaleMode",arguments)};pttp.setScaleMode=function(){return this.callMethod("setScaleMode",arguments)};pttp.getHAlign=function(){return this.callMethod("getHAlign",arguments)};pttp.setHAlign=function(){return this.callMethod("setHAlign",arguments)};pttp.getVAlign=function(){return this.callMethod("getVAlign",arguments)};pttp.setVAlign=function(){return this.callMethod("setVAlign",arguments)};pttp.getURL=function(){return this.callMethod("getURL",arguments)};pttp.setURL=function(){return this.callMethod("setURL",arguments)};pttp.getTooltip=function(){return this.callMethod("getTooltip",arguments)};pttp.setTooltip=function(){return this.callMethod("setTooltip",arguments)};pttp.getInset=function(){return this.callMethod("getInset",arguments)};pttp.setInset=function(){return this.callMethod("setInset",arguments)};pttp.getContentWidth=function(){return this.callMethod("getContentWidth",arguments)};pttp.getContentHeight=function(){return this.callMethod("getContentHeight",arguments)};BCComponentModules.Label=LabelAPI;function LabelAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=LabelAPI.prototype=new UIObjectAPI();pttp.setText=function(){return this.callMethod("setText",arguments)};pttp.getText=function(){return this.callMethod("getText",arguments)};pttp.setType=function(){return this.callMethod("setType",arguments)};pttp.getType=function(){return this.callMethod("getType",arguments)};pttp.setFont=function(){return this.callMethod("setFont",arguments)};pttp.getFont=function(){return this.callMethod("getFont",arguments)};pttp.setColor=function(){return this.callMethod("setColor",arguments)};pttp.getColor=function(){return this.callMethod("getColor",arguments)};pttp.setTextSize=function(){return this.callMethod("setTextSize",arguments)};pttp.getTextSize=function(){return this.callMethod("getTextSize",arguments)};pttp.getHAlign=function(){return this.callMethod("getHAlign",arguments)};pttp.setHAlign=function(){return this.callMethod("setHAlign",arguments)};pttp.getVAlign=function(){return this.callMethod("getVAlign",arguments)};pttp.setVAlign=function(){return this.callMethod("setVAlign",arguments)};pttp.setUnderline=function(){return this.callMethod("setUnderline",arguments)};pttp.getUnderline=function(){return this.callMethod("getUnderline",arguments)};pttp.setHTMLEnabled=function(){return this.callMethod("setHTMLEnabled",arguments)};pttp.getHTMLEnabled=function(){return this.callMethod("getHTMLEnabled",arguments)};pttp.setAutoSize=function(){return this.callMethod("setAutoSize",arguments)};pttp.getAutoSize=function(){return this.callMethod("getAutoSize",arguments)};pttp.setTruncate=function(){return this.callMethod("setTruncate",arguments)};pttp.getTruncate=function(){return this.callMethod("getTruncate",arguments)};pttp.setMultiline=function(){return this.callMethod("setMultiline",arguments)};pttp.getMultiline=function(){return this.callMethod("getMultiline",arguments)};pttp.getIsTruncated=function(){return this.callMethod("getIsTruncated",arguments)};pttp.getTextWidth=function(){return this.callMethod("getTextWidth",arguments)};pttp.getTextHeight=function(){return this.callMethod("getTextHeight",arguments)};BCComponentModules.LayoutBox=LayoutBoxAPI;function LayoutBoxAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=LayoutBoxAPI.prototype=new ComponentAPI();pttp.getHAlign=function(){return this.callMethod("getHAlign",arguments)};pttp.setHAlign=function(){return this.callMethod("setHAlign",arguments)};pttp.getVAlign=function(){return this.callMethod("getVAlign",arguments)};pttp.setVAlign=function(){return this.callMethod("setVAlign",arguments)};pttp.getBackgroundColor=function(){return this.callMethod("getBackgroundColor",arguments)};pttp.setBackgroundColor=function(){return this.callMethod("setBackgroundColor",arguments)};pttp.getBackgroundImage=function(){return this.callMethod("getBackgroundImage",arguments)};pttp.setBackgroundImage=function(){return this.callMethod("setBackgroundImage",arguments)};pttp.getGutter=function(){return this.callMethod("getGutter",arguments)};pttp.setGutter=function(){return this.callMethod("setGutter",arguments)};pttp.getPadding=function(){return this.callMethod("getPadding",arguments)};pttp.setPadding=function(){return this.callMethod("setPadding",arguments)};pttp.appendChild=function(){return this.callMethod("appendChild",arguments)};pttp.insertChildAt=function(){return this.callMethod("insertChildAt",arguments)};pttp.removeChildByID=function(){return this.callMethod("removeChildByID",arguments)};pttp.getNumChildren=function(){return this.callMethod("getNumChildren",arguments)};pttp.removeChildAt=function(){return this.callMethod("removeChildAt",arguments)};pttp.getChildAt=function(){var a=this.callMethod("getChildAtJS",arguments);if(a){return this.getComponentAPI(a.elementName,a.elementID)}return null};BCComponentModules.Link=LinkAPI;function LinkAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=LinkAPI.prototype=new UIObjectAPI();pttp.setText=function(){return this.callMethod("setText",arguments)};pttp.getText=function(){return this.callMethod("getText",arguments)};pttp.setAutoSize=function(){return this.callMethod("setAutoSize",arguments)};pttp.getAutoSize=function(){return this.callMethod("getAutoSize",arguments)};pttp.setFont=function(){return this.callMethod("setFont",arguments)};pttp.getFont=function(){return this.callMethod("getFont",arguments)};pttp.setTextSize=function(){return this.callMethod("setTextSize",arguments)};pttp.getTextSize=function(){return this.callMethod("getTextSize",arguments)};pttp.getHAlign=function(){return this.callMethod("getHAlign",arguments)};pttp.setHAlign=function(){return this.callMethod("setHAlign",arguments)};pttp.getVAlign=function(){return this.callMethod("getVAlign",arguments)};pttp.setVAlign=function(){return this.callMethod("setVAlign",arguments)};pttp.setMultiline=function(){return this.callMethod("setMultiline",arguments)};pttp.getMultiline=function(){return this.callMethod("getMultiline",arguments)};pttp.getURL=function(){return this.callMethod("getURL",arguments)};pttp.setURL=function(){return this.callMethod("setURL",arguments)};pttp.getTooltip=function(){return this.callMethod("getTooltip",arguments)};pttp.setTooltip=function(){return this.callMethod("setTooltip",arguments)};BCComponentModules.List=ListAPI;function ListAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=ListAPI.prototype=new UIObjectAPI();pttp.setSelectedIndex=function(){return this.callMethod("setSelectedIndex",arguments)};pttp.getSelectedIndex=function(){return this.callMethod("getSelectedIndex",arguments)};pttp.previous=function(){return this.callMethod("previous",arguments)};pttp.next=function(){return this.callMethod("next",arguments)};pttp.scrollTo=function(){return this.callMethod("scrollTo",arguments)};pttp.getSelectedData=function(){return this.callMethod("getSelectedData",arguments)};pttp.getDataAtIndex=function(){return this.callMethod("getDataAtIndex",arguments)};pttp.getData=function(){return this.callMethod("getData",arguments)};pttp.setData=function(){return this.callMethod("setData",arguments)};pttp.showPlaylist=function(){return this.callMethod("showPlaylist",arguments)};pttp.getNumItems=function(){return this.callMethod("getNumItems",arguments)};pttp.getAutomaticAdvance=function(){return this.callMethod("getAutomaticAdvance",arguments)};pttp.setAutomaticAdvance=function(){return this.callMethod("setAutomaticAdvance",arguments)};pttp.getScrollerWidth=function(){return this.callMethod("getScrollerWidth",arguments)};pttp.setScrollerWidth=function(){return this.callMethod("setScrollerWidth",arguments)};pttp.getScrollerInset=function(){return this.callMethod("getScrollerInset",arguments)};pttp.setScrollerInset=function(){return this.callMethod("setScrollerInset",arguments)};pttp.getItemLeading=function(){return this.callMethod("getItemLeading",arguments)};pttp.setItemLeading=function(){return this.callMethod("setItemLeading",arguments)};pttp.getItemInsetH=function(){return this.callMethod("getItemInsetH",arguments)};pttp.setItemInsetH=function(){return this.callMethod("setItemInsetH",arguments)};pttp.getItemInsetV=function(){return this.callMethod("getItemInsetV",arguments)};pttp.setItemInsetV=function(){return this.callMethod("setItemInsetV",arguments)};pttp.getRowHeight=function(){return this.callMethod("getRowHeight",arguments)};pttp.setRowHeight=function(){return this.callMethod("setRowHeight",arguments)};BCComponentModules.LiveButton=ButtonAPI;BCComponentModules.Mask=MaskAPI;function MaskAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=MaskAPI.prototype=new UIObjectAPI();BCComponentModules.MediaControls=MediaControlsAPI;function MediaControlsAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=MediaControlsAPI.prototype=new ContainerAPI();BCComponentModules.Module=ModuleAPI;function ModuleAPI(a,b,e){this.name=APIModules.EXPERIENCE;this.experience=a;this.callback=b;this.elementID=e;var c=this.experience.getModule("experience").callMethod("getCustomModuleMethods",[e]);var f;for(var d=0;d<c.length;d++){f=c[d];this[f]=(function(g){return function(){return this.callMethod(g,arguments)}})(f)}}var pttp=ModuleAPI.prototype=new APIModule();pttp.callMethod=function(c,d){var a=[];for(var b=0;b<d.length;b++){a.push(d[b])}return APIModule.callFlash(this.callback,{module:this.name,element:this.elementID,method:"getComponentAPI",componentMethod:c,params:a})};BCComponentModules.Playhead=PlayheadAPI;function PlayheadAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=PlayheadAPI.prototype=new UIObjectAPI();pttp.getSliderWidth=function(){return this.callMethod("getSliderWidth",arguments)};pttp.setSliderWidth=function(){return this.callMethod("setSliderWidth",arguments)};pttp.getAutohideSlider=function(){return this.callMethod("getAutohideSlider",arguments)};pttp.setAutohideSlider=function(){return this.callMethod("setAutohideSlider",arguments)};if(BCLoaderEvent==undefined){var BCLoaderEvent={};BCLoaderEvent.PROGRESS="loaderProgress";BCLoaderEvent.INIT="loaderInit";BCLoaderEvent.COMPLETE="loaderComplete";BCLoaderEvent.ERROR="loaderError"}if(BCLoaderState==undefined){var BCLoaderState={};BCLoaderState.DEFAULT="default";BCLoaderState.LOADING="loading";BCLoaderState.LOADED="loaded";BCLoaderState.ERROR="error"}BCComponentModules.SWFLoader=SWFLoaderAPI;function SWFLoaderAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=SWFLoaderAPI.prototype=new UIObjectAPI();pttp.getState=function(){return this.callMethod("getState",arguments)};pttp.setSource=function(){return this.callMethod("setSource",arguments)};pttp.getSource=function(){return this.callMethod("getSource",arguments)};pttp.callSWFMethod=function(){return this.callMethod("callSWFMethod",arguments)};BCComponentModules.TabBar=TabBarAPI;function TabBarAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=TabBarAPI.prototype=new UIObjectAPI();pttp.setSelectedIndex=function(){return this.callMethod("setSelectedIndex",arguments)};pttp.getSelectedIndex=function(){return this.callMethod("getSelectedIndex",arguments)};pttp.getSelectedData=function(){return this.callMethod("getSelectedData",arguments)};pttp.getDataAtIndex=function(){return this.callMethod("getDataAtIndex",arguments)};pttp.getData=function(){return this.callMethod("getData",arguments)};pttp.setData=function(){return this.callMethod("setData",arguments)};pttp.getNumItems=function(){return this.callMethod("getNumItems",arguments)};pttp.getAutoSizeTabs=function(){return this.callMethod("getAutoSizeTabs",arguments)};pttp.setAutoSizeTabs=function(){return this.callMethod("setAutoSizeTabs",arguments)};pttp.getTabWidth=function(){return this.callMethod("getTabWidth",arguments)};pttp.setTabWidth=function(){return this.callMethod("setTabWidth",arguments)};pttp.getLabelBuffer=function(){return this.callMethod("getLabelBuffer",arguments)};pttp.setLabelBuffer=function(){return this.callMethod("setLabelBuffer",arguments)};pttp.getLabelField=function(){return this.callMethod("getLabelField",arguments)};pttp.setLabelField=function(){return this.callMethod("setLabelField",arguments)};pttp.getTabPadding=function(){return this.callMethod("getTabPadding",arguments)};pttp.setTabPadding=function(){return this.callMethod("setTabPadding",arguments)};pttp.getTabAlign=function(){return this.callMethod("getTabAlign",arguments)};pttp.setTabAlign=function(){return this.callMethod("setTabAlign",arguments)};pttp.getIncludeMenu=function(){return this.callMethod("getIncludeMenu",arguments)};pttp.setIncludeMenu=function(){return this.callMethod("setIncludeMenu",arguments)};pttp.getMenuWidth=function(){return this.callMethod("getMenuWidth",arguments)};pttp.setMenuWidth=function(){return this.callMethod("setMenuWidth",arguments)};pttp.getMenuRowHeight=function(){return this.callMethod("getMenuRowHeight",arguments)};pttp.setMenuRowHeight=function(){return this.callMethod("setMenuRowHeight",arguments)};pttp.getMenuItemInset=function(){return this.callMethod("getMenuItemInset",arguments)};pttp.setMenuItemInset=function(){return this.callMethod("setMenuItemInset",arguments)};pttp.getMaxMenuRows=function(){return this.callMethod("getMaxMenuRows",arguments)};pttp.setMaxMenuRows=function(){return this.callMethod("setMaxMenuRows",arguments)};pttp.getHideSingleTab=function(){return this.callMethod("getHideSingleTab",arguments)};pttp.setHideSingleTab=function(){return this.callMethod("setHideSingleTab",arguments)};pttp.appendTab=function(){return this.callMethod("appendTab",arguments)};pttp.insertTabAt=function(){return this.callMethod("insertTabAt",arguments)};pttp.replaceTabAt=function(){return this.callMethod("replaceTabAt",arguments)};pttp.removeTabAt=function(){return this.callMethod("removeTabAt",arguments)};BCComponentModules.TextRegion=TextRegionAPI;function TextRegionAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=TextRegionAPI.prototype=new ContainerAPI();BCComponentModules.TileList=TileListAPI;function TileListAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=TileListAPI.prototype=new UIObjectAPI();pttp.setSelectedIndex=function(){return this.callMethod("setSelectedIndex",arguments)};pttp.getSelectedIndex=function(){return this.callMethod("getSelectedIndex",arguments)};pttp.getSelectedData=function(){return this.callMethod("getSelectedData",arguments)};pttp.getDataAtIndex=function(){return this.callMethod("getDataAtIndex",arguments)};pttp.getData=function(){return this.callMethod("getData",arguments)};pttp.setData=function(){return this.callMethod("setData",arguments)};pttp.showPlaylist=function(){return this.callMethod("showPlaylist",arguments)};pttp.previous=function(){return this.callMethod("previous",arguments)};pttp.next=function(){return this.callMethod("next",arguments)};pttp.getNumItems=function(){return this.callMethod("getNumItems",arguments)};pttp.getAutomaticAdvance=function(){return this.callMethod("getAutomaticAdvance",arguments)};pttp.setAutomaticAdvance=function(){return this.callMethod("setAutomaticAdvance",arguments)};pttp.getButtonOffsetX=function(){return this.callMethod("getButtonOffsetX",arguments)};pttp.setButtonOffsetX=function(){return this.callMethod("setButtonOffsetX",arguments)};pttp.getButtonOffsetY=function(){return this.callMethod("getButtonOffsetY",arguments)};pttp.setButtonOffsetY=function(){return this.callMethod("setButtonOffsetY",arguments)};pttp.getButtonSize=function(){return this.callMethod("getButtonSize",arguments)};pttp.setButtonSize=function(){return this.callMethod("setButtonSize",arguments)};pttp.getNumRows=function(){return this.callMethod("getNumRows",arguments)};pttp.setNumRows=function(){return this.callMethod("setNumRows",arguments)};pttp.getNumColumns=function(){return this.callMethod("getNumColumns",arguments)};pttp.setNumColumns=function(){return this.callMethod("setNumColumns",arguments)};pttp.getRowHeight=function(){return this.callMethod("getRowHeight",arguments)};pttp.setRowHeight=function(){return this.callMethod("setRowHeight",arguments)};pttp.getColumnWidth=function(){return this.callMethod("getColumnWidth",arguments)};pttp.setColumnWidth=function(){return this.callMethod("setColumnWidth",arguments)};pttp.getColumnGutter=function(){return this.callMethod("getColumnGutter",arguments)};pttp.setColumnGutter=function(){return this.callMethod("setColumnGutter",arguments)};pttp.getRowGutter=function(){return this.callMethod("getRowGutter",arguments)};pttp.setRowGutter=function(){return this.callMethod("setRowGutter",arguments)};pttp.getContentInsetV=function(){return this.callMethod("getContentInsetV",arguments)};pttp.setContentInsetV=function(){return this.callMethod("setContentInsetV",arguments)};pttp.getContentInsetH=function(){return this.callMethod("getContentInsetH",arguments)};pttp.setContentInsetH=function(){return this.callMethod("setContentInsetH",arguments)};pttp.setScrollDirection=function(){return this.callMethod("setScrollDirection",arguments)};pttp.getScrollDirection=function(){return this.callMethod("getScrollDirection",arguments)};pttp.getAnimationType=function(){return this.callMethod("getAnimationType",arguments)};pttp.setAnimationType=function(){return this.callMethod("setAnimationType",arguments)};pttp.getUseBlur=function(){return this.callMethod("getUseBlur",arguments)};pttp.setUseBlur=function(){return this.callMethod("setUseBlur",arguments)};pttp.showPage=function(){return this.callMethod("showPage",arguments)};pttp.showNextPage=function(){return this.callMethod("showNextPage",arguments)};pttp.showPreviousPage=function(){return this.callMethod("showPreviousPage",arguments)};pttp.getPageIndex=function(){return this.callMethod("getPageIndex",arguments)};pttp.getNumPages=function(){return this.callMethod("getNumPages",arguments)};pttp.getCenterContent=function(){return this.callMethod("getCenterContent",arguments)};pttp.setCenterContent=function(){return this.callMethod("setCenterContent",arguments)};pttp.getColumnCount=function(){return this.callMethod("getColumnCount",arguments)};pttp.getRowCount=function(){return this.callMethod("getRowCount",arguments)};BCComponentModules.TitleLabel=TitleLabelAPI;function TitleLabelAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=TitleLabelAPI.prototype=new UIObjectAPI();pttp.setText=function(){return this.callMethod("setText",arguments)};pttp.getText=function(){return this.callMethod("getText",arguments)};pttp.setFont=function(){return this.callMethod("setFont",arguments)};pttp.getFont=function(){return this.callMethod("getFont",arguments)};pttp.setTextSize=function(){return this.callMethod("setTextSize",arguments)};pttp.getTextSize=function(){return this.callMethod("getTextSize",arguments)};pttp.getHAlign=function(){return this.callMethod("getHAlign",arguments)};pttp.setHAlign=function(){return this.callMethod("setHAlign",arguments)};pttp.getVAlign=function(){return this.callMethod("getVAlign",arguments)};pttp.setVAlign=function(){return this.callMethod("setVAlign",arguments)};pttp.setAutoSize=function(){return this.callMethod("setAutoSize",arguments)};pttp.getAutoSize=function(){return this.callMethod("getAutoSize",arguments)};pttp.setTruncate=function(){return this.callMethod("setTruncate",arguments)};pttp.getTruncate=function(){return this.callMethod("getTruncate",arguments)};pttp.setMultiline=function(){return this.callMethod("setMultiline",arguments)};pttp.getMultiline=function(){return this.callMethod("getMultiline",arguments)};pttp.getIsTruncated=function(){return this.callMethod("getIsTruncated",arguments)};pttp.getTextWidth=function(){return this.callMethod("getTextWidth",arguments)};pttp.getSelected=function(){return this.callMethod("getSelected",arguments)};pttp.setSelected=function(){return this.callMethod("setSelected",arguments)};BCComponentModules.ToggleButton=ToggleButtonAPI;function ToggleButtonAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=ToggleButtonAPI.prototype=new ButtonAPI();pttp.getToggledLabel=function(){return this.callMethod("getToggledLabel",arguments)};pttp.setToggledLabel=function(){return this.callMethod("setToggledLabel",arguments)};pttp.getToggledTooltip=function(){return this.callMethod("getToggledTooltip",arguments)};pttp.setToggledTooltip=function(){return this.callMethod("setToggledTooltip",arguments)};pttp.getToggledIconName=function(){return this.callMethod("getToggledIconName",arguments)};pttp.setToggledIconName=function(){return this.callMethod("setToggledIconName",arguments)};pttp.getIsToggled=function(){return this.callMethod("getIsToggled",arguments)};pttp.setIsToggled=function(){return this.callMethod("setIsToggled",arguments)};BCComponentModules.ViewStack=ViewStackAPI;function ViewStackAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=ViewStackAPI.prototype=new LayoutBoxAPI();pttp.getSelectedIndex=function(){return this.callMethod("getSelectedIndex",arguments)};pttp.setSelectedIndex=function(){return this.callMethod("setSelectedIndex",arguments)};pttp.getSelectedItemID=function(){return this.callMethod("getSelectedItemID",arguments)};pttp.setSelectedItemID=function(){return this.callMethod("setSelectedItemID",arguments)};BCComponentModules.VolumeControl=VolumeControlAPI;function VolumeControlAPI(a,b,c){this.experience=a;this.callback=b;this.elementID=c}var pttp=VolumeControlAPI.prototype=new UIObjectAPI();pttp.getShowBack=function(){return this.callMethod("getShowBack",arguments)};pttp.setShowBack=function(){return this.callMethod("setShowBack",arguments)};pttp.getTooltip=function(){return this.callMethod("getTooltip",arguments)};pttp.setTooltip=function(){return this.callMethod("setTooltip",arguments)};pttp.getIconScale=function(){return this.callMethod("getIconScale",arguments)};pttp.setIconScale=function(){return this.callMethod("setIconScale",arguments)};pttp.getIconOffsetX=function(){return this.callMethod("getIconOffsetX",arguments)};pttp.setIconOffsetX=function(){return this.callMethod("setIconOffsetX",arguments)};pttp.getIconOffsetY=function(){return this.callMethod("getIconOffsetY",arguments)};pttp.setIconOffsetY=function(){return this.callMethod("setIconOffsetY",arguments)};pttp.getIconAlignmentH=function(){return this.callMethod("getIconAlignmentH",arguments)};pttp.setIconAlignmentH=function(){return this.callMethod("setIconAlignmentH",arguments)};pttp.getIconAlignmentV=function(){return this.callMethod("getIconAlignmentV",arguments)};pttp.setIconAlignmentV=function(){return this.callMethod("setIconAlignmentV",arguments)};pttp.getIconName=function(){return this.callMethod("getIconName",arguments)};pttp.setIconName=function(){return this.callMethod("setIconName",arguments)};pttp.getMutedTooltip=function(){return this.callMethod("getMutedTooltip",arguments)};pttp.setMutedTooltip=function(){return this.callMethod("setMutedTooltip",arguments)};pttp.getMutedIconName=function(){return this.callMethod("getMutedIconName",arguments)};pttp.setMutedIconName=function(){return this.callMethod("setMutedIconName",arguments)};pttp.getIsToggled=function(){return this.callMethod("getIsToggled",arguments)};pttp.setIsToggled=function(){return this.callMethod("setIsToggled",arguments)};pttp.getSliderHeight=function(){return this.callMethod("getSliderHeight",arguments)};pttp.setSliderHeight=function(){return this.callMethod("setSliderHeight",arguments)};pttp.getPopupHeight=function(){return this.callMethod("getPopupHeight",arguments)};pttp.setPopupHeight=function(){return this.callMethod("setPopupHeight",arguments)};pttp.getHorizontalPadding=function(){return this.callMethod("getHorizontalPadding",arguments)};pttp.setHorizontalPadding=function(){return this.callMethod("setHorizontalPadding",arguments)};pttp.getVerticalPadding=function(){return this.callMethod("getVerticalPadding",arguments)};pttp.setVerticalPadding=function(){return this.callMethod("setVerticalPadding",arguments)};pttp.getDirection=function(){return this.callMethod("getDirection",arguments)};pttp.setDirection=function(){return this.callMethod("setDirection",arguments)};pttp.getAnimated=function(){return this.callMethod("getAnimated",arguments)};pttp.setAnimated=function(){return this.callMethod("setAnimated",arguments)};var VCP={};var VCVP={};function onTemplateLoaded(a){VCP[a]=brightcove.getExperience(a);VCVP[a]=VCP[a].getModule(APIModules.VIDEO_PLAYER);pauseState=true;$("#"+a).parents("div").find(".overlay").css({visibility:"visible"});$("#"+a).parents("div").find(".overlay-loader").remove();$(".carousel-hero-item[videoname="+a+"]").find("span.overlay").css({visibility:"visible"});$(".carousel-hero-item[videoname="+a+"]").find(".overlay-loader").remove();$(".v-player-watchonline .overlay-loader ").remove()}function getBC(a){$.getJSON("http://api.brightcove.com/services/library?command=find_video_by_id&media_delivery=http&video_fields=name,videoStillURL,renditions&video_id="+a.id+"&token=FKf2-UXI9EvFQmSk77uLPw5oVfIcmNUcDTXD9Cl_oRc.&callback=?",function(b){if(bskyb.browser=="ios"){$(a.con).html("<video controls=controls height='"+$(a.con).height()+"' width='"+$(a.con).width()+"'></video><p class='v5-txt-cpt'>"+b.name+"</p>").css({paddingBottom:20});$(a.con).find("video")[0].src=b.renditions[0].url;$(a.con).find("video")[0].poster=b.videoStillURL}else{$(a.con).prepend("<img src='/Images/skysports/v5/ajax-loader-dark.gif' class='overlay-loader' /><span class='overlay'></span><img src='"+b.videoStillURL+"' class='v5-vid-thumb' /><p class='v5-txt-cpt'>"+b.name+"</p>")}$(a.con).find("span.overlay").click(function(){$(this).hide();if($(a.con).hasClass("v5-art-box")==true){$(this).parent().find("p").hide();$(a.ob).css({visibility:"hidden"});$(a.con).css({marginLeft:0,marginRight:0}).add($(a.con).find("img")).animate({width:660,height:371},function(){$(a.con).find("img").hide();$(a.ob).css({visibility:"visible"});a.ob=a.ob.replace("#","");VCVP[a.ob].loadVideo(a.id)})}else{$(a.con).find("img").hide();a.ob=a.ob.replace("#","");VCVP[a.ob].loadVideo(a.id)}})})};
