/*!
 * GolGolGol
 */
/*!
 * jQuery JavaScript Library v1.7
 * 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 Nov 3 16:18:21 2011 -0400
 */
(function(bi,R){var aA=bi.document,bC=bi.navigator,bt=bi.location;var c=(function(){var bN=function(b9,ca){return new bN.fn.init(b9,ca,bL)},b3=bi.jQuery,bP=bi.$,bL,b7=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bV=/\S/,bR=/^\s+/,bM=/\s+$/,bQ=/\d/,bI=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bW=/^[\],:{}\s]*$/,b5=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bY=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bS=/(?:^|:|,)(?:\s*\[)+/g,bG=/(webkit)[ \/]([\w.]+)/,b0=/(opera)(?:.*version)?[ \/]([\w.]+)/,bZ=/(msie) ([\w.]+)/,b1=/(mozilla)(?:.*? rv:([\w.]+))?/,bJ=/-([a-z]|[0-9])/ig,b8=/^-ms-/,b2=function(b9,ca){return(ca+"").toUpperCase()},b6=bC.userAgent,b4,bK,e,bU=Object.prototype.toString,bO=Object.prototype.hasOwnProperty,bH=Array.prototype.push,bT=Array.prototype.slice,bX=String.prototype.trim,bD=Array.prototype.indexOf,bF={};bN.fn=bN.prototype={constructor:bN,init:function(b9,cd,cc){var cb,ce,ca,cf;if(!b9){return this}if(b9.nodeType){this.context=this[0]=b9;this.length=1;return this}if(b9==="body"&&!cd&&aA.body){this.context=aA;this[0]=aA.body;this.selector=b9;this.length=1;return this}if(typeof b9==="string"){if(b9.charAt(0)==="<"&&b9.charAt(b9.length-1)===">"&&b9.length>=3){cb=[null,b9,null]}else{cb=b7.exec(b9)}if(cb&&(cb[1]||!cd)){if(cb[1]){cd=cd instanceof bN?cd[0]:cd;cf=(cd?cd.ownerDocument||cd:aA);ca=bI.exec(b9);if(ca){if(bN.isPlainObject(cd)){b9=[aA.createElement(ca[1])];bN.fn.attr.call(b9,cd,true)}else{b9=[cf.createElement(ca[1])]}}else{ca=bN.buildFragment([cb[1]],[cf]);b9=(ca.cacheable?bN.clone(ca.fragment):ca.fragment).childNodes}return bN.merge(this,b9)}else{ce=aA.getElementById(cb[2]);if(ce&&ce.parentNode){if(ce.id!==cb[2]){return cc.find(b9)}this.length=1;this[0]=ce}this.context=aA;this.selector=b9;return this}}else{if(!cd||cd.jquery){return(cd||cc).find(b9)}else{return this.constructor(cd).find(b9)}}}else{if(bN.isFunction(b9)){return cc.ready(b9)}}if(b9.selector!==R){this.selector=b9.selector;this.context=b9.context}return bN.makeArray(b9,this)},selector:"",jquery:"1.7",length:0,size:function(){return this.length},toArray:function(){return bT.call(this,0)},get:function(b9){return b9==null?this.toArray():(b9<0?this[this.length+b9]:this[b9])},pushStack:function(ca,cc,b9){var cb=this.constructor();if(bN.isArray(ca)){bH.apply(cb,ca)}else{bN.merge(cb,ca)}cb.prevObject=this;cb.context=this.context;if(cc==="find"){cb.selector=this.selector+(this.selector?" ":"")+b9}else{if(cc){cb.selector=this.selector+"."+cc+"("+b9+")"}}return cb},each:function(ca,b9){return bN.each(this,ca,b9)},ready:function(b9){bN.bindReady();bK.add(b9);return this},eq:function(b9){return b9===-1?this.slice(b9):this.slice(b9,+b9+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bT.apply(this,arguments),"slice",bT.call(arguments).join(","))},map:function(b9){return this.pushStack(bN.map(this,function(cb,ca){return b9.call(cb,ca,cb)}))},end:function(){return this.prevObject||this.constructor(null)},push:bH,sort:[].sort,splice:[].splice};bN.fn.init.prototype=bN.fn;bN.extend=bN.fn.extend=function(){var ci,cb,b9,ca,cf,cg,ce=arguments[0]||{},cd=1,cc=arguments.length,ch=false;if(typeof ce==="boolean"){ch=ce;ce=arguments[1]||{};cd=2}if(typeof ce!=="object"&&!bN.isFunction(ce)){ce={}}if(cc===cd){ce=this;--cd}for(;cd<cc;cd++){if((ci=arguments[cd])!=null){for(cb in ci){b9=ce[cb];ca=ci[cb];if(ce===ca){continue}if(ch&&ca&&(bN.isPlainObject(ca)||(cf=bN.isArray(ca)))){if(cf){cf=false;cg=b9&&bN.isArray(b9)?b9:[]}else{cg=b9&&bN.isPlainObject(b9)?b9:{}}ce[cb]=bN.extend(ch,cg,ca)}else{if(ca!==R){ce[cb]=ca}}}}}return ce};bN.extend({noConflict:function(b9){if(bi.$===bN){bi.$=bP}if(b9&&bi.jQuery===bN){bi.jQuery=b3}return bN},isReady:false,readyWait:1,holdReady:function(b9){if(b9){bN.readyWait++}else{bN.ready(true)}},ready:function(b9){if((b9===true&&!--bN.readyWait)||(b9!==true&&!bN.isReady)){if(!aA.body){return setTimeout(bN.ready,1)}bN.isReady=true;if(b9!==true&&--bN.readyWait>0){return}bK.fireWith(aA,[bN]);if(bN.fn.trigger){bN(aA).trigger("ready").unbind("ready")}}},bindReady:function(){if(bK){return}bK=bN.Callbacks("once memory");if(aA.readyState==="complete"){return setTimeout(bN.ready,1)}if(aA.addEventListener){aA.addEventListener("DOMContentLoaded",e,false);bi.addEventListener("load",bN.ready,false)}else{if(aA.attachEvent){aA.attachEvent("onreadystatechange",e);bi.attachEvent("onload",bN.ready);var b9=false;try{b9=bi.frameElement==null}catch(ca){}if(aA.documentElement.doScroll&&b9){bE()}}}},isFunction:function(b9){return bN.type(b9)==="function"},isArray:Array.isArray||function(b9){return bN.type(b9)==="array"},isWindow:function(b9){return b9&&typeof b9==="object"&&"setInterval" in b9},isNumeric:function(b9){return b9!=null&&bQ.test(b9)&&!isNaN(b9)},type:function(b9){return b9==null?String(b9):bF[bU.call(b9)]||"object"},isPlainObject:function(cb){if(!cb||bN.type(cb)!=="object"||cb.nodeType||bN.isWindow(cb)){return false}try{if(cb.constructor&&!bO.call(cb,"constructor")&&!bO.call(cb.constructor.prototype,"isPrototypeOf")){return false}}catch(ca){return false}var b9;for(b9 in cb){}return b9===R||bO.call(cb,b9)},isEmptyObject:function(ca){for(var b9 in ca){return false}return true},error:function(b9){throw b9},parseJSON:function(b9){if(typeof b9!=="string"||!b9){return null}b9=bN.trim(b9);if(bi.JSON&&bi.JSON.parse){return bi.JSON.parse(b9)}if(bW.test(b9.replace(b5,"@").replace(bY,"]").replace(bS,""))){return(new Function("return "+b9))()}bN.error("Invalid JSON: "+b9)},parseXML:function(cb){var b9,ca;try{if(bi.DOMParser){ca=new DOMParser();b9=ca.parseFromString(cb,"text/xml")}else{b9=new ActiveXObject("Microsoft.XMLDOM");b9.async="false";b9.loadXML(cb)}}catch(cc){b9=R}if(!b9||!b9.documentElement||b9.getElementsByTagName("parsererror").length){bN.error("Invalid XML: "+cb)}return b9},noop:function(){},globalEval:function(b9){if(b9&&bV.test(b9)){(bi.execScript||function(ca){bi["eval"].call(bi,ca)})(b9)}},camelCase:function(b9){return b9.replace(b8,"ms-").replace(bJ,b2)},nodeName:function(ca,b9){return ca.nodeName&&ca.nodeName.toUpperCase()===b9.toUpperCase()},each:function(cc,cf,cb){var ca,cd=0,ce=cc.length,b9=ce===R||bN.isFunction(cc);if(cb){if(b9){for(ca in cc){if(cf.apply(cc[ca],cb)===false){break}}}else{for(;cd<ce;){if(cf.apply(cc[cd++],cb)===false){break}}}}else{if(b9){for(ca in cc){if(cf.call(cc[ca],ca,cc[ca])===false){break}}}else{for(;cd<ce;){if(cf.call(cc[cd],cd,cc[cd++])===false){break}}}}return cc},trim:bX?function(b9){return b9==null?"":bX.call(b9)}:function(b9){return b9==null?"":b9.toString().replace(bR,"").replace(bM,"")},makeArray:function(cc,ca){var b9=ca||[];if(cc!=null){var cb=bN.type(cc);if(cc.length==null||cb==="string"||cb==="function"||cb==="regexp"||bN.isWindow(cc)){bH.call(b9,cc)}else{bN.merge(b9,cc)}}return b9},inArray:function(cb,cc,ca){var b9;if(cc){if(bD){return bD.call(cc,cb,ca)}b9=cc.length;ca=ca?ca<0?Math.max(0,b9+ca):ca:0;for(;ca<b9;ca++){if(ca in cc&&cc[ca]===cb){return ca}}}return -1},merge:function(cd,cb){var cc=cd.length,ca=0;if(typeof cb.length==="number"){for(var b9=cb.length;ca<b9;ca++){cd[cc++]=cb[ca]}}else{while(cb[ca]!==R){cd[cc++]=cb[ca++]}}cd.length=cc;return cd},grep:function(ca,cf,b9){var cb=[],ce;b9=!!b9;for(var cc=0,cd=ca.length;cc<cd;cc++){ce=!!cf(ca[cc],cc);if(b9!==ce){cb.push(ca[cc])}}return cb},map:function(b9,cg,ch){var ce,cf,cd=[],cb=0,ca=b9.length,cc=b9 instanceof bN||ca!==R&&typeof ca==="number"&&((ca>0&&b9[0]&&b9[ca-1])||ca===0||bN.isArray(b9));if(cc){for(;cb<ca;cb++){ce=cg(b9[cb],cb,ch);if(ce!=null){cd[cd.length]=ce}}}else{for(cf in b9){ce=cg(b9[cf],cf,ch);if(ce!=null){cd[cd.length]=ce}}}return cd.concat.apply([],cd)},guid:1,proxy:function(cd,cc){if(typeof cc==="string"){var cb=cd[cc];cc=cd;cd=cb}if(!bN.isFunction(cd)){return R}var b9=bT.call(arguments,2),ca=function(){return cd.apply(cc,b9.concat(bT.call(arguments)))};ca.guid=cd.guid=cd.guid||ca.guid||bN.guid++;return ca},access:function(b9,ch,cf,cb,ce,cg){var ca=b9.length;if(typeof ch==="object"){for(var cc in ch){bN.access(b9,cc,ch[cc],cb,ce,cf)}return b9}if(cf!==R){cb=!cg&&cb&&bN.isFunction(cf);for(var cd=0;cd<ca;cd++){ce(b9[cd],ch,cb?cf.call(b9[cd],cd,ce(b9[cd],ch)):cf,cg)}return b9}return ca?ce(b9[0],ch):R},now:function(){return(new Date()).getTime()},uaMatch:function(ca){ca=ca.toLowerCase();var b9=bG.exec(ca)||b0.exec(ca)||bZ.exec(ca)||ca.indexOf("compatible")<0&&b1.exec(ca)||[];return{browser:b9[1]||"",version:b9[2]||"0"}},sub:function(){function b9(cc,cd){return new b9.fn.init(cc,cd)}bN.extend(true,b9,this);b9.superclass=this;b9.fn=b9.prototype=this();b9.fn.constructor=b9;b9.sub=this.sub;b9.fn.init=function cb(cc,cd){if(cd&&cd instanceof bN&&!(cd instanceof b9)){cd=b9(cd)}return bN.fn.init.call(this,cc,cd,ca)};b9.fn.init.prototype=b9.fn;var ca=b9(aA);return b9},browser:{}});bN.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(ca,b9){bF["[object "+b9+"]"]=b9.toLowerCase()});b4=bN.uaMatch(b6);if(b4.browser){bN.browser[b4.browser]=true;bN.browser.version=b4.version}if(bN.browser.webkit){bN.browser.safari=true}if(bV.test("\xA0")){bR=/^[\s\xA0]+/;bM=/[\s\xA0]+$/}bL=bN(aA);if(aA.addEventListener){e=function(){aA.removeEventListener("DOMContentLoaded",e,false);bN.ready()}}else{if(aA.attachEvent){e=function(){if(aA.readyState==="complete"){aA.detachEvent("onreadystatechange",e);bN.ready()}}}}function bE(){if(bN.isReady){return}try{aA.documentElement.doScroll("left")}catch(b9){setTimeout(bE,1);return}bN.ready()}if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return bN})}return bN})();var a9={};function ad(e){var bD=a9[e]={},bE,bF;e=e.split(/\s+/);for(bE=0,bF=e.length;bE<bF;bE++){bD[e[bE]]=true}return bD}c.Callbacks=function(bE){bE=bE?(a9[bE]||ad(bE)):{};var bJ=[],bK=[],bF,bG,bD,bH,bI,bM=function(bN){var bO,bR,bQ,bP,bS;for(bO=0,bR=bN.length;bO<bR;bO++){bQ=bN[bO];bP=c.type(bQ);if(bP==="array"){bM(bQ)}else{if(bP==="function"){if(!bE.unique||!bL.has(bQ)){bJ.push(bQ)}}}}},e=function(bO,bN){bN=bN||[];bF=!bE.memory||[bO,bN];bG=true;bI=bD||0;bD=0;bH=bJ.length;for(;bJ&&bI<bH;bI++){if(bJ[bI].apply(bO,bN)===false&&bE.stopOnFalse){bF=true;break}}bG=false;if(bJ){if(!bE.once){if(bK&&bK.length){bF=bK.shift();bL.fireWith(bF[0],bF[1])}}else{if(bF===true){bL.disable()}else{bJ=[]}}}},bL={add:function(){if(bJ){var bN=bJ.length;bM(arguments);if(bG){bH=bJ.length}else{if(bF&&bF!==true){bD=bN;e(bF[0],bF[1])}}}return this},remove:function(){if(bJ){var bN=arguments,bP=0,bQ=bN.length;for(;bP<bQ;bP++){for(var bO=0;bO<bJ.length;bO++){if(bN[bP]===bJ[bO]){if(bG){if(bO<=bH){bH--;if(bO<=bI){bI--}}}bJ.splice(bO--,1);if(bE.unique){break}}}}}return this},has:function(bO){if(bJ){var bN=0,bP=bJ.length;for(;bN<bP;bN++){if(bO===bJ[bN]){return true}}}return false},empty:function(){bJ=[];return this},disable:function(){bJ=bK=bF=R;return this},disabled:function(){return !bJ},lock:function(){bK=R;if(!bF||bF===true){bL.disable()}return this},locked:function(){return !bK},fireWith:function(bO,bN){if(bK){if(bG){if(!bE.once){bK.push([bO,bN])}}else{if(!(bE.once&&bF)){e(bO,bN)}}}return this},fire:function(){bL.fireWith(this,arguments);return this},fired:function(){return !!bF}};return bL};var aP=[].slice;c.extend({Deferred:function(bG){var bF=c.Callbacks("once memory"),bE=c.Callbacks("once memory"),bD=c.Callbacks("memory"),e="pending",bI={resolve:bF,reject:bE,notify:bD},bK={done:bF.add,fail:bE.add,progress:bD.add,state:function(){return e},isResolved:bF.fired,isRejected:bE.fired,then:function(bM,bL,bN){bJ.done(bM).fail(bL).progress(bN);return this},always:function(){return bJ.done.apply(bJ,arguments).fail.apply(bJ,arguments)},pipe:function(bN,bM,bL){return c.Deferred(function(bO){c.each({done:[bN,"resolve"],fail:[bM,"reject"],progress:[bL,"notify"]},function(bQ,bT){var bP=bT[0],bS=bT[1],bR;if(c.isFunction(bP)){bJ[bQ](function(){bR=bP.apply(this,arguments);if(bR&&c.isFunction(bR.promise)){bR.promise().then(bO.resolve,bO.reject,bO.notify)}else{bO[bS+"With"](this===bJ?bO:this,[bR])}})}else{bJ[bQ](bO[bS])}})}).promise()},promise:function(bM){if(bM==null){bM=bK}else{for(var bL in bK){bM[bL]=bK[bL]}}return bM}},bJ=bK.promise({}),bH;for(bH in bI){bJ[bH]=bI[bH].fire;bJ[bH+"With"]=bI[bH].fireWith}bJ.done(function(){e="resolved"},bE.disable,bD.lock).fail(function(){e="rejected"},bF.disable,bD.lock);if(bG){bG.call(bJ,bJ)}return bJ},when:function(bI){var bF=aP.call(arguments,0),bD=0,e=bF.length,bJ=new Array(e),bE=e,bG=e,bK=e<=1&&bI&&c.isFunction(bI.promise)?bI:c.Deferred(),bM=bK.promise();function bL(bN){return function(bO){bF[bN]=arguments.length>1?aP.call(arguments,0):bO;if(!(--bE)){bK.resolveWith(bK,bF)}}}function bH(bN){return function(bO){bJ[bN]=arguments.length>1?aP.call(arguments,0):bO;bK.notifyWith(bM,bJ)}}if(e>1){for(;bD<e;bD++){if(bF[bD]&&bF[bD].promise&&c.isFunction(bF[bD].promise)){bF[bD].promise().then(bL(bD),bK.reject,bH(bD))}else{--bE}}if(!bE){bK.resolveWith(bK,bF)}}else{if(bK!==bI){bK.resolveWith(bK,e?[bI]:[])}}return bM}});c.support=(function(){var bN=aA.createElement("div"),bU=aA.documentElement,bG,bV,bO,bE,bM,bH,bK,bD,bL,bP,bJ,bT,bR,bF,bI,bQ,bW;bN.setAttribute("className","t");bN.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/><nav></nav>";bG=bN.getElementsByTagName("*");bV=bN.getElementsByTagName("a")[0];if(!bG||!bG.length||!bV){return{}}bO=aA.createElement("select");bE=bO.appendChild(aA.createElement("option"));bM=bN.getElementsByTagName("input")[0];bK={leadingWhitespace:(bN.firstChild.nodeType===3),tbody:!bN.getElementsByTagName("tbody").length,htmlSerialize:!!bN.getElementsByTagName("link").length,style:/top/.test(bV.getAttribute("style")),hrefNormalized:(bV.getAttribute("href")==="/a"),opacity:/^0.55/.test(bV.style.opacity),cssFloat:!!bV.style.cssFloat,unknownElems:!!bN.getElementsByTagName("nav").length,checkOn:(bM.value==="on"),optSelected:bE.selected,getSetAttribute:bN.className!=="t",enctype:!!aA.createElement("form").enctype,submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bM.checked=true;bK.noCloneChecked=bM.cloneNode(true).checked;bO.disabled=true;bK.optDisabled=!bE.disabled;try{delete bN.test}catch(bS){bK.deleteExpando=false}if(!bN.addEventListener&&bN.attachEvent&&bN.fireEvent){bN.attachEvent("onclick",function(){bK.noCloneEvent=false});bN.cloneNode(true).fireEvent("onclick")}bM=aA.createElement("input");bM.value="t";bM.setAttribute("type","radio");bK.radioValue=bM.value==="t";bM.setAttribute("checked","checked");bN.appendChild(bM);bD=aA.createDocumentFragment();bD.appendChild(bN.lastChild);bK.checkClone=bD.cloneNode(true).cloneNode(true).lastChild.checked;bN.innerHTML="";bN.style.width=bN.style.paddingLeft="1px";bL=aA.getElementsByTagName("body")[0];bJ=aA.createElement(bL?"div":"body");bT={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};if(bL){c.extend(bT,{position:"absolute",left:"-999px",top:"-999px"})}for(bQ in bT){bJ.style[bQ]=bT[bQ]}bJ.appendChild(bN);bP=bL||bU;bP.insertBefore(bJ,bP.firstChild);bK.appendChecked=bM.checked;bK.boxModel=bN.offsetWidth===2;if("zoom" in bN.style){bN.style.display="inline";bN.style.zoom=1;bK.inlineBlockNeedsLayout=(bN.offsetWidth===2);bN.style.display="";bN.innerHTML="<div style='width:4px;'></div>";bK.shrinkWrapBlocks=(bN.offsetWidth!==2)}bN.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";bR=bN.getElementsByTagName("td");bW=(bR[0].offsetHeight===0);bR[0].style.display="";bR[1].style.display="none";bK.reliableHiddenOffsets=bW&&(bR[0].offsetHeight===0);bN.innerHTML="";if(aA.defaultView&&aA.defaultView.getComputedStyle){bH=aA.createElement("div");bH.style.width="0";bH.style.marginRight="0";bN.appendChild(bH);bK.reliableMarginRight=(parseInt((aA.defaultView.getComputedStyle(bH,null)||{marginRight:0}).marginRight,10)||0)===0}if(bN.attachEvent){for(bQ in {submit:1,change:1,focusin:1}){bI="on"+bQ;bW=(bI in bN);if(!bW){bN.setAttribute(bI,"return;");bW=(typeof bN[bI]==="function")}bK[bQ+"Bubbles"]=bW}}c(function(){var bY,b5,b6,b4,bZ,b0,bX=1,b3="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",b2="visibility:hidden;border:0;",e="style='"+b3+"border:5px solid #000;padding:0;'",b1="<div "+e+"><div></div></div><table "+e+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";bL=aA.getElementsByTagName("body")[0];if(!bL){return}bY=aA.createElement("div");bY.style.cssText=b2+"width:0;height:0;position:static;top:0;margin-top:"+bX+"px";bL.insertBefore(bY,bL.firstChild);bJ=aA.createElement("div");bJ.style.cssText=b3+b2;bJ.innerHTML=b1;bY.appendChild(bJ);b5=bJ.firstChild;b6=b5.firstChild;bZ=b5.nextSibling.firstChild.firstChild;b0={doesNotAddBorder:(b6.offsetTop!==5),doesAddBorderForTableAndCells:(bZ.offsetTop===5)};b6.style.position="fixed";b6.style.top="20px";b0.fixedPosition=(b6.offsetTop===20||b6.offsetTop===15);b6.style.position=b6.style.top="";b5.style.overflow="hidden";b5.style.position="relative";b0.subtractsBorderForOverflowNotVisible=(b6.offsetTop===-5);b0.doesNotIncludeMarginInBodyOffset=(bL.offsetTop!==bX);bL.removeChild(bY);bJ=bY=null;c.extend(bK,b0)});bJ.innerHTML="";bP.removeChild(bJ);bJ=bD=bO=bE=bL=bH=bN=bM=null;return bK})();c.boxModel=c.support.boxModel;var aY=/^(?:\{.*\}|\[.*\])$/,aF=/([A-Z])/g;c.extend({cache:{},uuid:0,expando:"jQuery"+(c.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?c.cache[e[c.expando]]:e[c.expando];return !!e&&!Z(e)},data:function(bF,bD,bH,bG){if(!c.acceptData(bF)){return}var bO,bI,bL,bM=c.expando,bK=typeof bD==="string",bN=bF.nodeType,e=bN?c.cache:bF,bE=bN?bF[c.expando]:bF[c.expando]&&c.expando,bJ=bD==="events";if((!bE||!e[bE]||(!bJ&&!bG&&!e[bE].data))&&bK&&bH===R){return}if(!bE){if(bN){bF[c.expando]=bE=++c.uuid}else{bE=c.expando}}if(!e[bE]){e[bE]={};if(!bN){e[bE].toJSON=c.noop}}if(typeof bD==="object"||typeof bD==="function"){if(bG){e[bE]=c.extend(e[bE],bD)}else{e[bE].data=c.extend(e[bE].data,bD)}}bO=bI=e[bE];if(!bG){if(!bI.data){bI.data={}}bI=bI.data}if(bH!==R){bI[c.camelCase(bD)]=bH}if(bJ&&!bI[bD]){return bO.events}if(bK){bL=bI[bD];if(bL==null){bL=bI[c.camelCase(bD)]}}else{bL=bI}return bL},removeData:function(bF,bD,bG){if(!c.acceptData(bF)){return}var bJ,bI,bH,bK=c.expando,bL=bF.nodeType,e=bL?c.cache:bF,bE=bL?bF[c.expando]:c.expando;if(!e[bE]){return}if(bD){bJ=bG?e[bE]:e[bE].data;if(bJ){if(c.isArray(bD)){bD=bD}else{if(bD in bJ){bD=[bD]}else{bD=c.camelCase(bD);if(bD in bJ){bD=[bD]}else{bD=bD.split(" ")}}}for(bI=0,bH=bD.length;bI<bH;bI++){delete bJ[bD[bI]]}if(!(bG?Z:c.isEmptyObject)(bJ)){return}}}if(!bG){delete e[bE].data;if(!Z(e[bE])){return}}if(c.support.deleteExpando||!e.setInterval){delete e[bE]}else{e[bE]=null}if(bL){if(c.support.deleteExpando){delete bF[c.expando]}else{if(bF.removeAttribute){bF.removeAttribute(c.expando)}else{bF[c.expando]=null}}}},_data:function(bD,e,bE){return c.data(bD,e,bE,true)},acceptData:function(bD){if(bD.nodeName){var e=c.noData[bD.nodeName.toLowerCase()];if(e){return !(e===true||bD.getAttribute("classid")!==e)}}return true}});c.fn.extend({data:function(bG,bI){var bJ,e,bE,bH=null;if(typeof bG==="undefined"){if(this.length){bH=c.data(this[0]);if(this[0].nodeType===1&&!c._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var bF=0,bD=e.length;bF<bD;bF++){bE=e[bF].name;if(bE.indexOf("data-")===0){bE=c.camelCase(bE.substring(5));bc(this[0],bE,bH[bE])}}c._data(this[0],"parsedAttrs",true)}}return bH}else{if(typeof bG==="object"){return this.each(function(){c.data(this,bG)})}}bJ=bG.split(".");bJ[1]=bJ[1]?"."+bJ[1]:"";if(bI===R){bH=this.triggerHandler("getData"+bJ[1]+"!",[bJ[0]]);if(bH===R&&this.length){bH=c.data(this[0],bG);bH=bc(this[0],bG,bH)}return bH===R&&bJ[1]?this.data(bJ[0]):bH}else{return this.each(function(){var bL=c(this),bK=[bJ[0],bI];bL.triggerHandler("setData"+bJ[1]+"!",bK);c.data(this,bG,bI);bL.triggerHandler("changeData"+bJ[1]+"!",bK)})}},removeData:function(e){return this.each(function(){c.removeData(this,e)})}});function bc(bF,bE,bG){if(bG===R&&bF.nodeType===1){var bD="data-"+bE.replace(aF,"-$1").toLowerCase();bG=bF.getAttribute(bD);if(typeof bG==="string"){try{bG=bG==="true"?true:bG==="false"?false:bG==="null"?null:c.isNumeric(bG)?parseFloat(bG):aY.test(bG)?c.parseJSON(bG):bG}catch(bH){}c.data(bF,bE,bG)}else{bG=R}}return bG}function Z(bD){for(var e in bD){if(e==="data"&&c.isEmptyObject(bD[e])){continue}if(e!=="toJSON"){return false}}return true}function bp(bG,bF,bI){var bE=bF+"defer",bD=bF+"queue",e=bF+"mark",bH=c._data(bG,bE);if(bH&&(bI==="queue"||!c._data(bG,bD))&&(bI==="mark"||!c._data(bG,e))){setTimeout(function(){if(!c._data(bG,bD)&&!c._data(bG,e)){c.removeData(bG,bE,true);bH.fire()}},0)}}c.extend({_mark:function(bD,e){if(bD){e=(e||"fx")+"mark";c._data(bD,e,(c._data(bD,e)||0)+1)}},_unmark:function(bG,bF,bD){if(bG!==true){bD=bF;bF=bG;bG=false}if(bF){bD=bD||"fx";var e=bD+"mark",bE=bG?0:((c._data(bF,e)||1)-1);if(bE){c._data(bF,e,bE)}else{c.removeData(bF,e,true);bp(bF,bD,"mark")}}},queue:function(bD,e,bF){var bE;if(bD){e=(e||"fx")+"queue";bE=c._data(bD,e);if(bF){if(!bE||c.isArray(bF)){bE=c._data(bD,e,c.makeArray(bF))}else{bE.push(bF)}}return bE||[]}},dequeue:function(bG,bF){bF=bF||"fx";var bD=c.queue(bG,bF),bE=bD.shift(),e={};if(bE==="inprogress"){bE=bD.shift()}if(bE){if(bF==="fx"){bD.unshift("inprogress")}c._data(bG,bF+".run",e);bE.call(bG,function(){c.dequeue(bG,bF)},e)}if(!bD.length){c.removeData(bG,bF+"queue "+bF+".run",true);bp(bG,bF,"queue")}}});c.fn.extend({queue:function(e,bD){if(typeof e!=="string"){bD=e;e="fx"}if(bD===R){return c.queue(this[0],e)}return this.each(function(){var bE=c.queue(this,e,bD);if(e==="fx"&&bE[0]!=="inprogress"){c.dequeue(this,e)}})},dequeue:function(e){return this.each(function(){c.dequeue(this,e)})},delay:function(bD,e){bD=c.fx?c.fx.speeds[bD]||bD:bD;e=e||"fx";return this.queue(e,function(bF,bE){var bG=setTimeout(bF,bD);bE.stop=function(){clearTimeout(bG)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(bL,bE){if(typeof bL!=="string"){bE=bL;bL=R}bL=bL||"fx";var e=c.Deferred(),bD=this,bG=bD.length,bJ=1,bH=bL+"defer",bI=bL+"queue",bK=bL+"mark",bF;function bM(){if(!(--bJ)){e.resolveWith(bD,[bD])}}while(bG--){if((bF=c.data(bD[bG],bH,R,true)||(c.data(bD[bG],bI,R,true)||c.data(bD[bG],bK,R,true))&&c.data(bD[bG],bH,c.Callbacks("once memory"),true))){bJ++;bF.add(bM)}}bM();return e.promise()}});var aV=/[\n\t\r]/g,al=/\s+/,a0=/\r/g,h=/^(?:button|input)$/i,J=/^(?:button|input|object|select|textarea)$/i,o=/^a(?:rea)?$/i,au=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,L=c.support.getSetAttribute,bl,a4,aK;c.fn.extend({attr:function(e,bD){return c.access(this,e,bD,true,c.attr)},removeAttr:function(e){return this.each(function(){c.removeAttr(this,e)})},prop:function(e,bD){return c.access(this,e,bD,true,c.prop)},removeProp:function(e){e=c.propFix[e]||e;return this.each(function(){try{this[e]=R;delete this[e]}catch(bD){}})},addClass:function(bG){var bI,bE,bD,bF,bH,bJ,e;if(c.isFunction(bG)){return this.each(function(bK){c(this).addClass(bG.call(this,bK,this.className))})}if(bG&&typeof bG==="string"){bI=bG.split(al);for(bE=0,bD=this.length;bE<bD;bE++){bF=this[bE];if(bF.nodeType===1){if(!bF.className&&bI.length===1){bF.className=bG}else{bH=" "+bF.className+" ";for(bJ=0,e=bI.length;bJ<e;bJ++){if(!~bH.indexOf(" "+bI[bJ]+" ")){bH+=bI[bJ]+" "}}bF.className=c.trim(bH)}}}}return this},removeClass:function(bH){var bI,bE,bD,bG,bF,bJ,e;if(c.isFunction(bH)){return this.each(function(bK){c(this).removeClass(bH.call(this,bK,this.className))})}if((bH&&typeof bH==="string")||bH===R){bI=(bH||"").split(al);for(bE=0,bD=this.length;bE<bD;bE++){bG=this[bE];if(bG.nodeType===1&&bG.className){if(bH){bF=(" "+bG.className+" ").replace(aV," ");for(bJ=0,e=bI.length;bJ<e;bJ++){bF=bF.replace(" "+bI[bJ]+" "," ")}bG.className=c.trim(bF)}else{bG.className=""}}}}return this},toggleClass:function(bF,bD){var bE=typeof bF,e=typeof bD==="boolean";if(c.isFunction(bF)){return this.each(function(bG){c(this).toggleClass(bF.call(this,bG,this.className,bD),bD)})}return this.each(function(){if(bE==="string"){var bI,bH=0,bG=c(this),bJ=bD,bK=bF.split(al);while((bI=bK[bH++])){bJ=e?bJ:!bG.hasClass(bI);bG[bJ?"addClass":"removeClass"](bI)}}else{if(bE==="undefined"||bE==="boolean"){if(this.className){c._data(this,"__className__",this.className)}this.className=this.className||bF===false?"":c._data(this,"__className__")||""}}})},hasClass:function(e){var bF=" "+e+" ",bE=0,bD=this.length;for(;bE<bD;bE++){if(this[bE].nodeType===1&&(" "+this[bE].className+" ").replace(aV," ").indexOf(bF)>-1){return true}}return false},val:function(bF){var e,bD,bG,bE=this[0];if(!arguments.length){if(bE){e=c.valHooks[bE.nodeName.toLowerCase()]||c.valHooks[bE.type];if(e&&"get" in e&&(bD=e.get(bE,"value"))!==R){return bD}bD=bE.value;return typeof bD==="string"?bD.replace(a0,""):bD==null?"":bD}return R}bG=c.isFunction(bF);return this.each(function(bI){var bH=c(this),bJ;if(this.nodeType!==1){return}if(bG){bJ=bF.call(this,bI,bH.val())}else{bJ=bF}if(bJ==null){bJ=""}else{if(typeof bJ==="number"){bJ+=""}else{if(c.isArray(bJ)){bJ=c.map(bJ,function(bK){return bK==null?"":bK+""})}}}e=c.valHooks[this.nodeName.toLowerCase()]||c.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bJ,"value")===R){this.value=bJ}})}});c.extend({valHooks:{option:{get:function(e){var bD=e.attributes.value;return !bD||bD.specified?e.value:e.text}},select:{get:function(e){var bI,bD,bH,bF,bG=e.selectedIndex,bJ=[],bK=e.options,bE=e.type==="select-one";if(bG<0){return null}bD=bE?bG:0;bH=bE?bG+1:bK.length;for(;bD<bH;bD++){bF=bK[bD];if(bF.selected&&(c.support.optDisabled?!bF.disabled:bF.getAttribute("disabled")===null)&&(!bF.parentNode.disabled||!c.nodeName(bF.parentNode,"optgroup"))){bI=c(bF).val();if(bE){return bI}bJ.push(bI)}}if(bE&&!bJ.length&&bK.length){return c(bK[bG]).val()}return bJ},set:function(bD,bE){var e=c.makeArray(bE);c(bD).find("option").each(function(){this.selected=c.inArray(c(this).val(),e)>=0});if(!e.length){bD.selectedIndex=-1}return e}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(bI,bF,bJ,bH){var bE,e,bG,bD=bI.nodeType;if(!bI||bD===3||bD===8||bD===2){return R}if(bH&&bF in c.attrFn){return c(bI)[bF](bJ)}if(!("getAttribute" in bI)){return c.prop(bI,bF,bJ)}bG=bD!==1||!c.isXMLDoc(bI);if(bG){bF=bF.toLowerCase();e=c.attrHooks[bF]||(au.test(bF)?a4:bl)}if(bJ!==R){if(bJ===null){c.removeAttr(bI,bF);return R}else{if(e&&"set" in e&&bG&&(bE=e.set(bI,bJ,bF))!==R){return bE}else{bI.setAttribute(bF,""+bJ);return bJ}}}else{if(e&&"get" in e&&bG&&(bE=e.get(bI,bF))!==null){return bE}else{bE=bI.getAttribute(bF);return bE===null?R:bE}}},removeAttr:function(bF,bH){var bG,bI,bD,e,bE=0;if(bF.nodeType===1){bI=(bH||"").split(al);e=bI.length;for(;bE<e;bE++){bD=bI[bE].toLowerCase();bG=c.propFix[bD]||bD;c.attr(bF,bD,"");bF.removeAttribute(L?bD:bG);if(au.test(bD)&&bG in bF){bF[bG]=false}}}},attrHooks:{type:{set:function(e,bD){if(h.test(e.nodeName)&&e.parentNode){c.error("type property can't be changed")}else{if(!c.support.radioValue&&bD==="radio"&&c.nodeName(e,"input")){var bE=e.value;e.setAttribute("type",bD);if(bE){e.value=bE}return bD}}}},value:{get:function(bD,e){if(bl&&c.nodeName(bD,"button")){return bl.get(bD,e)}return e in bD?bD.value:null},set:function(bD,bE,e){if(bl&&c.nodeName(bD,"button")){return bl.set(bD,bE,e)}bD.value=bE}}},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(bH,bF,bI){var bE,e,bG,bD=bH.nodeType;if(!bH||bD===3||bD===8||bD===2){return R}bG=bD!==1||!c.isXMLDoc(bH);if(bG){bF=c.propFix[bF]||bF;e=c.propHooks[bF]}if(bI!==R){if(e&&"set" in e&&(bE=e.set(bH,bI,bF))!==R){return bE}else{return(bH[bF]=bI)}}else{if(e&&"get" in e&&(bE=e.get(bH,bF))!==null){return bE}else{return bH[bF]}}},propHooks:{tabIndex:{get:function(bD){var e=bD.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):J.test(bD.nodeName)||o.test(bD.nodeName)&&bD.href?0:R}}}});c.attrHooks.tabindex=c.propHooks.tabIndex;a4={get:function(bD,e){var bF,bE=c.prop(bD,e);return bE===true||typeof bE!=="boolean"&&(bF=bD.getAttributeNode(e))&&bF.nodeValue!==false?e.toLowerCase():R},set:function(bD,bF,e){var bE;if(bF===false){c.removeAttr(bD,e)}else{bE=c.propFix[e]||e;if(bE in bD){bD[bE]=true}bD.setAttribute(e,e.toLowerCase())}return e}};if(!L){aK={name:true,id:true};bl=c.valHooks.button={get:function(bE,bD){var e;e=bE.getAttributeNode(bD);return e&&(aK[bD]?e.nodeValue!=="":e.specified)?e.nodeValue:R},set:function(bE,bF,bD){var e=bE.getAttributeNode(bD);if(!e){e=aA.createAttribute(bD);bE.setAttributeNode(e)}return(e.nodeValue=bF+"")}};c.attrHooks.tabindex.set=bl.set;c.each(["width","height"],function(bD,e){c.attrHooks[e]=c.extend(c.attrHooks[e],{set:function(bE,bF){if(bF===""){bE.setAttribute(e,"auto");return bF}}})});c.attrHooks.contenteditable={get:bl.get,set:function(bD,bE,e){if(bE===""){bE="false"}bl.set(bD,bE,e)}}}if(!c.support.hrefNormalized){c.each(["href","src","width","height"],function(bD,e){c.attrHooks[e]=c.extend(c.attrHooks[e],{get:function(bF){var bE=bF.getAttribute(e,2);return bE===null?R:bE}})})}if(!c.support.style){c.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||R},set:function(e,bD){return(e.style.cssText=""+bD)}}}if(!c.support.optSelected){c.propHooks.selected=c.extend(c.propHooks.selected,{get:function(bD){var e=bD.parentNode;if(e){e.selectedIndex;if(e.parentNode){e.parentNode.selectedIndex}}return null}})}if(!c.support.enctype){c.propFix.enctype="encoding"}if(!c.support.checkOn){c.each(["radio","checkbox"],function(){c.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}})}c.each(["radio","checkbox"],function(){c.valHooks[this]=c.extend(c.valHooks[this],{set:function(e,bD){if(c.isArray(bD)){return(e.checked=c.inArray(c(e).val(),bD)>=0)}}})});var a6=/\.(.*)$/,bk=/^(?:textarea|input|select)$/i,U=/\./g,bq=/ /g,aM=/[^\w\s.|`]/g,r=/^([^\.]*)?(?:\.(.+))?$/,P=/\bhover(\.\S+)?/,aU=/^key/,bm=/^(?:mouse|contextmenu)|click/,aa=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,ae=function(e){var bD=aa.exec(e);if(bD){bD[1]=(bD[1]||"").toLowerCase();bD[3]=bD[3]&&new RegExp("(?:^|\\s)"+bD[3]+"(?:\\s|$)")}return bD},m=function(bD,e){return((!e[1]||bD.nodeName.toLowerCase()===e[1])&&(!e[2]||bD.id===e[2])&&(!e[3]||e[3].test(bD.className)))},bB=function(e){return c.event.special.hover?e:e.replace(P,"mouseenter$1 mouseleave$1")};c.event={add:function(bF,bK,bR,bI,bG){var bL,bJ,bS,bQ,bP,bN,e,bO,bD,bH,bE,bM;if(bF.nodeType===3||bF.nodeType===8||!bK||!bR||!(bL=c._data(bF))){return}if(bR.handler){bD=bR;bR=bD.handler}if(!bR.guid){bR.guid=c.guid++}bS=bL.events;if(!bS){bL.events=bS={}}bJ=bL.handle;if(!bJ){bL.handle=bJ=function(bT){return typeof c!=="undefined"&&(!bT||c.event.triggered!==bT.type)?c.event.dispatch.apply(bJ.elem,arguments):R};bJ.elem=bF}bK=bB(bK).split(" ");for(bQ=0;bQ<bK.length;bQ++){bP=r.exec(bK[bQ])||[];bN=bP[1];e=(bP[2]||"").split(".").sort();bM=c.event.special[bN]||{};bN=(bG?bM.delegateType:bM.bindType)||bN;bM=c.event.special[bN]||{};bO=c.extend({type:bN,origType:bP[1],data:bI,handler:bR,guid:bR.guid,selector:bG,namespace:e.join(".")},bD);if(bG){bO.quick=ae(bG);if(!bO.quick&&c.expr.match.POS.test(bG)){bO.isPositional=true}}bE=bS[bN];if(!bE){bE=bS[bN]=[];bE.delegateCount=0;if(!bM.setup||bM.setup.call(bF,bI,e,bJ)===false){if(bF.addEventListener){bF.addEventListener(bN,bJ,false)}else{if(bF.attachEvent){bF.attachEvent("on"+bN,bJ)}}}}if(bM.add){bM.add.call(bF,bO);if(!bO.handler.guid){bO.handler.guid=bR.guid}}if(bG){bE.splice(bE.delegateCount++,0,bO)}else{bE.push(bO)}c.event.global[bN]=true}bF=null},global:{},remove:function(bE,bJ,bP,bF){var bK=c.hasData(bE)&&c._data(bE),bQ,bR,bM,bD,bG,bH,bO,bL,bI,e,bN;if(!bK||!(bO=bK.events)){return}bJ=bB(bJ||"").split(" ");for(bQ=0;bQ<bJ.length;bQ++){bR=r.exec(bJ[bQ])||[];bM=bR[1];bD=bR[2];if(!bM){bD=bD?"."+bD:"";for(bH in bO){c.event.remove(bE,bH+bD,bP,bF)}return}bL=c.event.special[bM]||{};bM=(bF?bL.delegateType:bL.bindType)||bM;e=bO[bM]||[];bG=e.length;bD=bD?new RegExp("(^|\\.)"+bD.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(bP||bD||bF||bL.remove){for(bH=0;bH<e.length;bH++){bN=e[bH];if(!bP||bP.guid===bN.guid){if(!bD||bD.test(bN.namespace)){if(!bF||bF===bN.selector||bF==="**"&&bN.selector){e.splice(bH--,1);if(bN.selector){e.delegateCount--}if(bL.remove){bL.remove.call(bE,bN)}}}}}}else{e.length=0}if(e.length===0&&bG!==e.length){if(!bL.teardown||bL.teardown.call(bE,bD)===false){c.removeEvent(bE,bM,bK.handle)}delete bO[bM]}}if(c.isEmptyObject(bO)){bI=bK.handle;if(bI){bI.elem=null}c.removeData(bE,["events","handle"],true)}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(bD,bL,bI,bR){if(bI&&(bI.nodeType===3||bI.nodeType===8)){return}var bO=bD.type||bD,bF=[],e,bE,bK,bP,bH,bG,bN,bM,bJ,bQ;if(bO.indexOf("!")>=0){bO=bO.slice(0,-1);bE=true}if(bO.indexOf(".")>=0){bF=bO.split(".");bO=bF.shift();bF.sort()}if((!bI||c.event.customEvent[bO])&&!c.event.global[bO]){return}bD=typeof bD==="object"?bD[c.expando]?bD:new c.Event(bO,bD):new c.Event(bO);bD.type=bO;bD.isTrigger=true;bD.exclusive=bE;bD.namespace=bF.join(".");bD.namespace_re=bD.namespace?new RegExp("(^|\\.)"+bF.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;bG=bO.indexOf(":")<0?"on"+bO:"";if(bR||!bI){bD.preventDefault()}if(!bI){e=c.cache;for(bK in e){if(e[bK].events&&e[bK].events[bO]){c.event.trigger(bD,bL,e[bK].handle.elem,true)}}return}bD.result=R;if(!bD.target){bD.target=bI}bL=bL!=null?c.makeArray(bL):[];bL.unshift(bD);bN=c.event.special[bO]||{};if(bN.trigger&&bN.trigger.apply(bI,bL)===false){return}bJ=[[bI,bN.bindType||bO]];if(!bR&&!bN.noBubble&&!c.isWindow(bI)){bQ=bN.delegateType||bO;bH=null;for(bP=bI.parentNode;bP;bP=bP.parentNode){bJ.push([bP,bQ]);bH=bP}if(bH&&bH===bI.ownerDocument){bJ.push([bH.defaultView||bH.parentWindow||bi,bQ])}}for(bK=0;bK<bJ.length;bK++){bP=bJ[bK][0];bD.type=bJ[bK][1];bM=(c._data(bP,"events")||{})[bD.type]&&c._data(bP,"handle");if(bM){bM.apply(bP,bL)}bM=bG&&bP[bG];if(bM&&c.acceptData(bP)){bM.apply(bP,bL)}if(bD.isPropagationStopped()){break}}bD.type=bO;if(!bD.isDefaultPrevented()){if((!bN._default||bN._default.apply(bI.ownerDocument,bL)===false)&&!(bO==="click"&&c.nodeName(bI,"a"))&&c.acceptData(bI)){if(bG&&bI[bO]&&((bO!=="focus"&&bO!=="blur")||bD.target.offsetWidth!==0)&&!c.isWindow(bI)){bH=bI[bG];if(bH){bI[bG]=null}c.event.triggered=bO;bI[bO]();c.event.triggered=R;if(bH){bI[bG]=bH}}}}return bD.result},dispatch:function(bO){bO=c.event.fix(bO||bi.event);var bK=((c._data(this,"events")||{})[bO.type]||[]),bJ=bK.delegateCount,bF=[].slice.call(arguments,0),bL=!bO.exclusive&&!bO.namespace,bH=(c.event.special[bO.type]||{}).handle,bD=[],bQ,bN,bG,bS,bP,bI,bE,e,bM,bR,bT;bF[0]=bO;bO.delegateTarget=this;if(bJ&&!bO.target.disabled&&!(bO.button&&bO.type==="click")){for(bG=bO.target;bG!=this;bG=bG.parentNode||this){bP={};bE=[];for(bQ=0;bQ<bJ;bQ++){e=bK[bQ];bM=e.selector;bR=bP[bM];if(e.isPositional){bR=(bR||(bP[bM]=c(bM))).index(bG)>=0}else{if(bR===R){bR=bP[bM]=(e.quick?m(bG,e.quick):c(bG).is(bM))}}if(bR){bE.push(e)}}if(bE.length){bD.push({elem:bG,matches:bE})}}}if(bK.length>bJ){bD.push({elem:this,matches:bK.slice(bJ)})}for(bQ=0;bQ<bD.length&&!bO.isPropagationStopped();bQ++){bI=bD[bQ];bO.currentTarget=bI.elem;for(bN=0;bN<bI.matches.length&&!bO.isImmediatePropagationStopped();bN++){e=bI.matches[bN];if(bL||(!bO.namespace&&!e.namespace)||bO.namespace_re&&bO.namespace_re.test(e.namespace)){bO.data=e.data;bO.handleObj=e;bS=(bH||e.handler).apply(bI.elem,bF);if(bS!==R){bO.result=bS;if(bS===false){bO.preventDefault();bO.stopPropagation()}}}}}return bO.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(bD,e){if(bD.which==null){bD.which=e.charCode!=null?e.charCode:e.keyCode}return bD}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement wheelDelta".split(" "),filter:function(bF,bE){var bG,bH,e,bD=bE.button,bI=bE.fromElement;if(bF.pageX==null&&bE.clientX!=null){bG=bF.target.ownerDocument||aA;bH=bG.documentElement;e=bG.body;bF.pageX=bE.clientX+(bH&&bH.scrollLeft||e&&e.scrollLeft||0)-(bH&&bH.clientLeft||e&&e.clientLeft||0);bF.pageY=bE.clientY+(bH&&bH.scrollTop||e&&e.scrollTop||0)-(bH&&bH.clientTop||e&&e.clientTop||0)}if(!bF.relatedTarget&&bI){bF.relatedTarget=bI===bF.target?bE.toElement:bI}if(!bF.which&&bD!==R){bF.which=(bD&1?1:(bD&2?3:(bD&4?2:0)))}return bF}},fix:function(bE){if(bE[c.expando]){return bE}var bD,bH,e=bE,bF=c.event.fixHooks[bE.type]||{},bG=bF.props?this.props.concat(bF.props):this.props;bE=c.Event(e);for(bD=bG.length;bD;){bH=bG[--bD];bE[bH]=e[bH]}if(!bE.target){bE.target=e.srcElement||aA}if(bE.target.nodeType===3){bE.target=bE.target.parentNode}if(bE.metaKey===R){bE.metaKey=bE.ctrlKey}return bF.filter?bF.filter(bE,e):bE},special:{ready:{setup:c.bindReady},focus:{delegateType:"focusin",noBubble:true},blur:{delegateType:"focusout",noBubble:true},beforeunload:{setup:function(bE,bD,e){if(c.isWindow(this)){this.onbeforeunload=e}},teardown:function(bD,e){if(this.onbeforeunload===e){this.onbeforeunload=null}}}},simulate:function(bE,bG,bF,bD){var bH=c.extend(new c.Event(),bF,{type:bE,isSimulated:true,originalEvent:{}});if(bD){c.event.trigger(bH,null,bG)}else{c.event.dispatch.call(bG,bH)}if(bH.isDefaultPrevented()){bF.preventDefault()}}};c.event.handle=c.event.dispatch;c.removeEvent=aA.removeEventListener?function(bD,e,bE){if(bD.removeEventListener){bD.removeEventListener(e,bE,false)}}:function(bD,e,bE){if(bD.detachEvent){bD.detachEvent("on"+e,bE)}};c.Event=function(bD,e){if(!(this instanceof c.Event)){return new c.Event(bD,e)}if(bD&&bD.type){this.originalEvent=bD;this.type=bD.type;this.isDefaultPrevented=(bD.defaultPrevented||bD.returnValue===false||bD.getPreventDefault&&bD.getPreventDefault())?l:bs}else{this.type=bD}if(e){c.extend(this,e)}this.timeStamp=bD&&bD.timeStamp||c.now();this[c.expando]=true};function bs(){return false}function l(){return true}c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=l;var bD=this.originalEvent;if(!bD){return}if(bD.preventDefault){bD.preventDefault()}else{bD.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=l;var bD=this.originalEvent;if(!bD){return}if(bD.stopPropagation){bD.stopPropagation()}bD.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=l;this.stopPropagation()},isDefaultPrevented:bs,isPropagationStopped:bs,isImmediatePropagationStopped:bs};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(bD,e){c.event.special[bD]=c.event.special[e]={delegateType:e,bindType:e,handle:function(bH){var bK=this,bJ=bH.relatedTarget,bG=bH.handleObj,bE=bG.selector,bI,bF;if(!bJ||bG.origType===bH.type||(bJ!==bK&&!c.contains(bK,bJ))){bI=bH.type;bH.type=bG.origType;bF=bG.handler.apply(this,arguments);bH.type=bI}return bF}}});if(!c.support.submitBubbles){c.event.special.submit={setup:function(){if(c.nodeName(this,"form")){return false}c.event.add(this,"click._submit keypress._submit",function(bF){var bE=bF.target,bD=c.nodeName(bE,"input")||c.nodeName(bE,"button")?bE.form:R;if(bD&&!bD._submit_attached){c.event.add(bD,"submit._submit",function(e){if(this.parentNode){c.event.simulate("submit",this.parentNode,e,true)}});bD._submit_attached=true}})},teardown:function(){if(c.nodeName(this,"form")){return false}c.event.remove(this,"._submit")}}}if(!c.support.changeBubbles){c.event.special.change={setup:function(){if(bk.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){c.event.add(this,"propertychange._change",function(e){if(e.originalEvent.propertyName==="checked"){this._just_changed=true}});c.event.add(this,"click._change",function(e){if(this._just_changed){this._just_changed=false;c.event.simulate("change",this,e,true)}})}return false}c.event.add(this,"beforeactivate._change",function(bE){var bD=bE.target;if(bk.test(bD.nodeName)&&!bD._change_attached){c.event.add(bD,"change._change",function(e){if(this.parentNode&&!e.isSimulated){c.event.simulate("change",this.parentNode,e,true)}});bD._change_attached=true}})},handle:function(bD){var e=bD.target;if(this!==e||bD.isSimulated||bD.isTrigger||(e.type!=="radio"&&e.type!=="checkbox")){return bD.handleObj.handler.apply(this,arguments)}},teardown:function(){c.event.remove(this,"._change");return bk.test(this.nodeName)}}}if(!c.support.focusinBubbles){c.each({focus:"focusin",blur:"focusout"},function(bF,e){var bD=0,bE=function(bG){c.event.simulate(e,bG.target,c.event.fix(bG),true)};c.event.special[e]={setup:function(){if(bD++===0){aA.addEventListener(bF,bE,true)}},teardown:function(){if(--bD===0){aA.removeEventListener(bF,bE,true)}}}})}c.fn.extend({on:function(bE,e,bH,bG,bD){var bI,bF;if(typeof bE==="object"){if(typeof e!=="string"){bH=e;e=R}for(bF in bE){this.on(bF,e,bH,bE[bF],bD)}return this}if(bH==null&&bG==null){bG=e;bH=e=R}else{if(bG==null){if(typeof e==="string"){bG=bH;bH=R}else{bG=bH;bH=e;e=R}}}if(bG===false){bG=bs}else{if(!bG){return this}}if(bD===1){bI=bG;bG=function(bJ){c().off(bJ);return bI.apply(this,arguments)};bG.guid=bI.guid||(bI.guid=c.guid++)}return this.each(function(){c.event.add(this,bE,bG,bH,e)})},one:function(bD,e,bF,bE){return this.on.call(this,bD,e,bF,bE,1)},off:function(bE,e,bG){if(bE&&bE.preventDefault&&bE.handleObj){var bD=bE.handleObj;c(bE.delegateTarget).off(bD.namespace?bD.type+"."+bD.namespace:bD.type,bD.selector,bD.handler);return this}if(typeof bE==="object"){for(var bF in bE){this.off(bF,e,bE[bF])}return this}if(e===false||typeof e==="function"){bG=e;e=R}if(bG===false){bG=bs}return this.each(function(){c.event.remove(this,bE,bG,e)})},bind:function(e,bE,bD){return this.on(e,null,bE,bD)},unbind:function(e,bD){return this.off(e,null,bD)},live:function(e,bE,bD){c(this.context).on(e,this.selector,bE,bD);return this},die:function(e,bD){c(this.context).off(e,this.selector||"**",bD);return this},delegate:function(e,bD,bF,bE){return this.on(bD,e,bF,bE)},undelegate:function(e,bD,bE){return arguments.length==1?this.off(e,"**"):this.off(bD,e,bE)},trigger:function(e,bD){return this.each(function(){c.event.trigger(e,bD,this)})},triggerHandler:function(e,bD){if(this[0]){return c.event.trigger(e,bD,this[0],true)}},toggle:function(bF){var bD=arguments,e=bF.guid||c.guid++,bE=0,bG=function(bH){var bI=(c._data(this,"lastToggle"+bF.guid)||0)%bE;c._data(this,"lastToggle"+bF.guid,bI+1);bH.preventDefault();return bD[bI].apply(this,arguments)||false};bG.guid=e;while(bE<bD.length){bD[bE++].guid=e}return this.click(bG)},hover:function(e,bD){return this.mouseenter(e).mouseleave(bD||e)}});c.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu").split(" "),function(bD,e){c.fn[e]=function(bF,bE){if(bE==null){bE=bF;bF=null}return arguments.length>0?this.bind(e,bF,bE):this.trigger(e)};if(c.attrFn){c.attrFn[e]=true}if(aU.test(e)){c.event.fixHooks[e]=c.event.keyHooks}if(bm.test(e)){c.event.fixHooks[e]=c.event.mouseHooks}});
/*!
 * Sizzle CSS Selector Engine
 *  Copyright 2011, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var bP=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bK="sizcache"+(Math.random()+"").replace(".",""),bQ=0,bT=Object.prototype.toString,bJ=false,bI=true,bS=/\\/g,bW=/\r\n/g,bY=/\W/;[0,0].sort(function(){bI=false;return 0});var bG=function(b3,e,b6,b7){b6=b6||[];e=e||aA;var b9=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!b3||typeof b3!=="string"){return b6}var b0,cb,ce,bZ,ca,cd,cc,b5,b2=true,b1=bG.isXML(e),b4=[],b8=b3;do{bP.exec("");b0=bP.exec(b8);if(b0){b8=b0[3];b4.push(b0[1]);if(b0[2]){bZ=b0[3];break}}}while(b0);if(b4.length>1&&bL.exec(b3)){if(b4.length===2&&bM.relative[b4[0]]){cb=bU(b4[0]+b4[1],e,b7)}else{cb=bM.relative[b4[0]]?[e]:bG(b4.shift(),e);while(b4.length){b3=b4.shift();if(bM.relative[b3]){b3+=b4.shift()}cb=bU(b3,cb,b7)}}}else{if(!b7&&b4.length>1&&e.nodeType===9&&!b1&&bM.match.ID.test(b4[0])&&!bM.match.ID.test(b4[b4.length-1])){ca=bG.find(b4.shift(),e,b1);e=ca.expr?bG.filter(ca.expr,ca.set)[0]:ca.set[0]}if(e){ca=b7?{expr:b4.pop(),set:bN(b7)}:bG.find(b4.pop(),b4.length===1&&(b4[0]==="~"||b4[0]==="+")&&e.parentNode?e.parentNode:e,b1);cb=ca.expr?bG.filter(ca.expr,ca.set):ca.set;if(b4.length>0){ce=bN(cb)}else{b2=false}while(b4.length){cd=b4.pop();cc=cd;if(!bM.relative[cd]){cd=""}else{cc=b4.pop()}if(cc==null){cc=e}bM.relative[cd](ce,cc,b1)}}else{ce=b4=[]}}if(!ce){ce=cb}if(!ce){bG.error(cd||b3)}if(bT.call(ce)==="[object Array]"){if(!b2){b6.push.apply(b6,ce)}else{if(e&&e.nodeType===1){for(b5=0;ce[b5]!=null;b5++){if(ce[b5]&&(ce[b5]===true||ce[b5].nodeType===1&&bG.contains(e,ce[b5]))){b6.push(cb[b5])}}}else{for(b5=0;ce[b5]!=null;b5++){if(ce[b5]&&ce[b5].nodeType===1){b6.push(cb[b5])}}}}}else{bN(ce,b6)}if(bZ){bG(bZ,b9,b6,b7);bG.uniqueSort(b6)}return b6};bG.uniqueSort=function(bZ){if(bR){bJ=bI;bZ.sort(bR);if(bJ){for(var e=1;e<bZ.length;e++){if(bZ[e]===bZ[e-1]){bZ.splice(e--,1)}}}}return bZ};bG.matches=function(e,bZ){return bG(e,null,null,bZ)};bG.matchesSelector=function(e,bZ){return bG(bZ,null,null,[e]).length>0};bG.find=function(b5,e,b6){var b4,b0,b2,b1,b3,bZ;if(!b5){return[]}for(b0=0,b2=bM.order.length;b0<b2;b0++){b3=bM.order[b0];if((b1=bM.leftMatch[b3].exec(b5))){bZ=b1[1];b1.splice(1,1);if(bZ.substr(bZ.length-1)!=="\\"){b1[1]=(b1[1]||"").replace(bS,"");b4=bM.find[b3](b1,e,b6);if(b4!=null){b5=b5.replace(bM.match[b3],"");break}}}}if(!b4){b4=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName("*"):[]}return{set:b4,expr:b5}};bG.filter=function(b9,b8,cc,b2){var b4,e,b7,ce,cb,bZ,b1,b3,ca,b0=b9,cd=[],b6=b8,b5=b8&&b8[0]&&bG.isXML(b8[0]);while(b9&&b8.length){for(b7 in bM.filter){if((b4=bM.leftMatch[b7].exec(b9))!=null&&b4[2]){bZ=bM.filter[b7];b1=b4[1];e=false;b4.splice(1,1);if(b1.substr(b1.length-1)==="\\"){continue}if(b6===cd){cd=[]}if(bM.preFilter[b7]){b4=bM.preFilter[b7](b4,b6,cc,cd,b2,b5);if(!b4){e=ce=true}else{if(b4===true){continue}}}if(b4){for(b3=0;(cb=b6[b3])!=null;b3++){if(cb){ce=bZ(cb,b4,b3,b6);ca=b2^ce;if(cc&&ce!=null){if(ca){e=true}else{b6[b3]=false}}else{if(ca){cd.push(cb);e=true}}}}}if(ce!==R){if(!cc){b6=cd}b9=b9.replace(bM.match[b7],"");if(!e){return[]}break}}}if(b9===b0){if(e==null){bG.error(b9)}else{break}}b0=b9}return b6};bG.error=function(e){throw"Syntax error, unrecognized expression: "+e};var bE=bG.getText=function(b2){var b0,b1,e=b2.nodeType,bZ="";if(e){if(e===1){if(typeof b2.textContent==="string"){return b2.textContent}else{if(typeof b2.innerText==="string"){return b2.innerText.replace(bW,"")}else{for(b2=b2.firstChild;b2;b2=b2.nextSibling){bZ+=bE(b2)}}}}else{if(e===3||e===4){return b2.nodeValue}}}else{for(b0=0;(b1=b2[b0]);b0++){if(b1.nodeType!==8){bZ+=bE(b1)}}}return bZ};var bM=bG.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(b4,bZ){var b1=typeof bZ==="string",b3=b1&&!bY.test(bZ),b5=b1&&!b3;if(b3){bZ=bZ.toLowerCase()}for(var b0=0,e=b4.length,b2;b0<e;b0++){if((b2=b4[b0])){while((b2=b2.previousSibling)&&b2.nodeType!==1){}b4[b0]=b5||b2&&b2.nodeName.toLowerCase()===bZ?b2||false:b2===bZ}}if(b5){bG.filter(bZ,b4,true)}},">":function(b4,bZ){var b3,b2=typeof bZ==="string",b0=0,e=b4.length;if(b2&&!bY.test(bZ)){bZ=bZ.toLowerCase();for(;b0<e;b0++){b3=b4[b0];if(b3){var b1=b3.parentNode;b4[b0]=b1.nodeName.toLowerCase()===bZ?b1:false}}}else{for(;b0<e;b0++){b3=b4[b0];if(b3){b4[b0]=b2?b3.parentNode:b3.parentNode===bZ}}if(b2){bG.filter(bZ,b4,true)}}},"":function(b1,bZ,b3){var b2,b0=bQ++,e=bV;if(typeof bZ==="string"&&!bY.test(bZ)){bZ=bZ.toLowerCase();b2=bZ;e=bD}e("parentNode",bZ,b0,b1,b2,b3)},"~":function(b1,bZ,b3){var b2,b0=bQ++,e=bV;if(typeof bZ==="string"&&!bY.test(bZ)){bZ=bZ.toLowerCase();b2=bZ;e=bD}e("previousSibling",bZ,b0,b1,b2,b3)}},find:{ID:function(bZ,b0,b1){if(typeof b0.getElementById!=="undefined"&&!b1){var e=b0.getElementById(bZ[1]);return e&&e.parentNode?[e]:[]}},NAME:function(b0,b3){if(typeof b3.getElementsByName!=="undefined"){var bZ=[],b2=b3.getElementsByName(b0[1]);for(var b1=0,e=b2.length;b1<e;b1++){if(b2[b1].getAttribute("name")===b0[1]){bZ.push(b2[b1])}}return bZ.length===0?null:bZ}},TAG:function(e,bZ){if(typeof bZ.getElementsByTagName!=="undefined"){return bZ.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(b1,bZ,b0,e,b4,b5){b1=" "+b1[1].replace(bS,"")+" ";if(b5){return b1}for(var b2=0,b3;(b3=bZ[b2])!=null;b2++){if(b3){if(b4^(b3.className&&(" "+b3.className+" ").replace(/[\t\n\r]/g," ").indexOf(b1)>=0)){if(!b0){e.push(b3)}}else{if(b0){bZ[b2]=false}}}}return false},ID:function(e){return e[1].replace(bS,"")},TAG:function(bZ,e){return bZ[1].replace(bS,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){bG.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var bZ=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bZ[1]+(bZ[2]||1))-0;e[3]=bZ[3]-0}else{if(e[2]){bG.error(e[0])}}e[0]=bQ++;return e},ATTR:function(b2,bZ,b0,e,b3,b4){var b1=b2[1]=b2[1].replace(bS,"");if(!b4&&bM.attrMap[b1]){b2[1]=bM.attrMap[b1]}b2[4]=(b2[4]||b2[5]||"").replace(bS,"");if(b2[2]==="~="){b2[4]=" "+b2[4]+" "}return b2},PSEUDO:function(b2,bZ,b0,e,b3){if(b2[1]==="not"){if((bP.exec(b2[3])||"").length>1||/^\w/.test(b2[3])){b2[3]=bG(b2[3],null,null,bZ)}else{var b1=bG.filter(b2[3],bZ,b0,true^b3);if(!b0){e.push.apply(e,b1)}return false}}else{if(bM.match.POS.test(b2[0])||bM.match.CHILD.test(b2[0])){return true}}return b2},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(b0,bZ,e){return !!bG(e[3],b0).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(b0){var e=b0.getAttribute("type"),bZ=b0.type;return b0.nodeName.toLowerCase()==="input"&&"text"===bZ&&(e===bZ||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(bZ){var e=bZ.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===bZ.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(bZ){var e=bZ.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===bZ.type},button:function(bZ){var e=bZ.nodeName.toLowerCase();return e==="input"&&"button"===bZ.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(bZ,e){return e===0},last:function(b0,bZ,e,b1){return bZ===b1.length-1},even:function(bZ,e){return e%2===0},odd:function(bZ,e){return e%2===1},lt:function(b0,bZ,e){return bZ<e[3]-0},gt:function(b0,bZ,e){return bZ>e[3]-0},nth:function(b0,bZ,e){return e[3]-0===bZ},eq:function(b0,bZ,e){return e[3]-0===bZ}},filter:{PSEUDO:function(b0,b5,b4,b6){var e=b5[1],bZ=bM.filters[e];if(bZ){return bZ(b0,b4,b5,b6)}else{if(e==="contains"){return(b0.textContent||b0.innerText||bE([b0])||"").indexOf(b5[3])>=0}else{if(e==="not"){var b1=b5[3];for(var b3=0,b2=b1.length;b3<b2;b3++){if(b1[b3]===b0){return false}}return true}else{bG.error(e)}}}},CHILD:function(b0,b2){var b1,b8,b4,b7,e,b3,b6,b5=b2[1],bZ=b0;switch(b5){case"only":case"first":while((bZ=bZ.previousSibling)){if(bZ.nodeType===1){return false}}if(b5==="first"){return true}bZ=b0;case"last":while((bZ=bZ.nextSibling)){if(bZ.nodeType===1){return false}}return true;case"nth":b1=b2[2];b8=b2[3];if(b1===1&&b8===0){return true}b4=b2[0];b7=b0.parentNode;if(b7&&(b7[bK]!==b4||!b0.nodeIndex)){b3=0;for(bZ=b7.firstChild;bZ;bZ=bZ.nextSibling){if(bZ.nodeType===1){bZ.nodeIndex=++b3}}b7[bK]=b4}b6=b0.nodeIndex-b8;if(b1===0){return b6===0}else{return(b6%b1===0&&b6/b1>=0)}}},ID:function(bZ,e){return bZ.nodeType===1&&bZ.getAttribute("id")===e},TAG:function(bZ,e){return(e==="*"&&bZ.nodeType===1)||!!bZ.nodeName&&bZ.nodeName.toLowerCase()===e},CLASS:function(bZ,e){return(" "+(bZ.className||bZ.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(b3,b1){var b0=b1[1],e=bG.attr?bG.attr(b3,b0):bM.attrHandle[b0]?bM.attrHandle[b0](b3):b3[b0]!=null?b3[b0]:b3.getAttribute(b0),b4=e+"",b2=b1[2],bZ=b1[4];return e==null?b2==="!=":!b2&&bG.attr?e!=null:b2==="="?b4===bZ:b2==="*="?b4.indexOf(bZ)>=0:b2==="~="?(" "+b4+" ").indexOf(bZ)>=0:!bZ?b4&&e!==false:b2==="!="?b4!==bZ:b2==="^="?b4.indexOf(bZ)===0:b2==="$="?b4.substr(b4.length-bZ.length)===bZ:b2==="|="?b4===bZ||b4.substr(0,bZ.length+1)===bZ+"-":false},POS:function(b2,bZ,b0,b3){var e=bZ[2],b1=bM.setFilters[e];if(b1){return b1(b2,b0,bZ,b3)}}}};var bL=bM.match.POS,bF=function(bZ,e){return"\\"+(e-0+1)};for(var bH in bM.match){bM.match[bH]=new RegExp(bM.match[bH].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bM.leftMatch[bH]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bM.match[bH].source.replace(/\\(\d+)/g,bF))}var bN=function(bZ,e){bZ=Array.prototype.slice.call(bZ,0);if(e){e.push.apply(e,bZ);return e}return bZ};try{Array.prototype.slice.call(aA.documentElement.childNodes,0)[0].nodeType}catch(bX){bN=function(b2,b1){var b0=0,bZ=b1||[];if(bT.call(b2)==="[object Array]"){Array.prototype.push.apply(bZ,b2)}else{if(typeof b2.length==="number"){for(var e=b2.length;b0<e;b0++){bZ.push(b2[b0])}}else{for(;b2[b0];b0++){bZ.push(b2[b0])}}}return bZ}}var bR,bO;if(aA.documentElement.compareDocumentPosition){bR=function(bZ,e){if(bZ===e){bJ=true;return 0}if(!bZ.compareDocumentPosition||!e.compareDocumentPosition){return bZ.compareDocumentPosition?-1:1}return bZ.compareDocumentPosition(e)&4?-1:1}}else{bR=function(b6,b5){if(b6===b5){bJ=true;return 0}else{if(b6.sourceIndex&&b5.sourceIndex){return b6.sourceIndex-b5.sourceIndex}}var b3,bZ,b0=[],e=[],b2=b6.parentNode,b4=b5.parentNode,b7=b2;if(b2===b4){return bO(b6,b5)}else{if(!b2){return -1}else{if(!b4){return 1}}}while(b7){b0.unshift(b7);b7=b7.parentNode}b7=b4;while(b7){e.unshift(b7);b7=b7.parentNode}b3=b0.length;bZ=e.length;for(var b1=0;b1<b3&&b1<bZ;b1++){if(b0[b1]!==e[b1]){return bO(b0[b1],e[b1])}}return b1===b3?bO(b6,e[b1],-1):bO(b0[b1],b5,1)};bO=function(bZ,e,b0){if(bZ===e){return b0}var b1=bZ.nextSibling;while(b1){if(b1===e){return -1}b1=b1.nextSibling}return 1}}(function(){var bZ=aA.createElement("div"),b0="script"+(new Date()).getTime(),e=aA.documentElement;bZ.innerHTML="<a name='"+b0+"'/>";e.insertBefore(bZ,e.firstChild);if(aA.getElementById(b0)){bM.find.ID=function(b2,b3,b4){if(typeof b3.getElementById!=="undefined"&&!b4){var b1=b3.getElementById(b2[1]);return b1?b1.id===b2[1]||typeof b1.getAttributeNode!=="undefined"&&b1.getAttributeNode("id").nodeValue===b2[1]?[b1]:R:[]}};bM.filter.ID=function(b3,b1){var b2=typeof b3.getAttributeNode!=="undefined"&&b3.getAttributeNode("id");return b3.nodeType===1&&b2&&b2.nodeValue===b1}}e.removeChild(bZ);e=bZ=null})();(function(){var e=aA.createElement("div");e.appendChild(aA.createComment(""));if(e.getElementsByTagName("*").length>0){bM.find.TAG=function(bZ,b3){var b2=b3.getElementsByTagName(bZ[1]);if(bZ[1]==="*"){var b1=[];for(var b0=0;b2[b0];b0++){if(b2[b0].nodeType===1){b1.push(b2[b0])}}b2=b1}return b2}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bM.attrHandle.href=function(bZ){return bZ.getAttribute("href",2)}}e=null})();if(aA.querySelectorAll){(function(){var e=bG,b1=aA.createElement("div"),b0="__sizzle__";b1.innerHTML="<p class='TEST'></p>";if(b1.querySelectorAll&&b1.querySelectorAll(".TEST").length===0){return}bG=function(cc,b3,b7,cb){b3=b3||aA;if(!cb&&!bG.isXML(b3)){var ca=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(cc);if(ca&&(b3.nodeType===1||b3.nodeType===9)){if(ca[1]){return bN(b3.getElementsByTagName(cc),b7)}else{if(ca[2]&&bM.find.CLASS&&b3.getElementsByClassName){return bN(b3.getElementsByClassName(ca[2]),b7)}}}if(b3.nodeType===9){if(cc==="body"&&b3.body){return bN([b3.body],b7)}else{if(ca&&ca[3]){var b6=b3.getElementById(ca[3]);if(b6&&b6.parentNode){if(b6.id===ca[3]){return bN([b6],b7)}}else{return bN([],b7)}}}try{return bN(b3.querySelectorAll(cc),b7)}catch(b8){}}else{if(b3.nodeType===1&&b3.nodeName.toLowerCase()!=="object"){var b4=b3,b5=b3.getAttribute("id"),b2=b5||b0,ce=b3.parentNode,cd=/^\s*[+~]/.test(cc);if(!b5){b3.setAttribute("id",b2)}else{b2=b2.replace(/'/g,"\\$&")}if(cd&&ce){b3=b3.parentNode}try{if(!cd||ce){return bN(b3.querySelectorAll("[id='"+b2+"'] "+cc),b7)}}catch(b9){}finally{if(!b5){b4.removeAttribute("id")}}}}}return e(cc,b3,b7,cb)};for(var bZ in e){bG[bZ]=e[bZ]}b1=null})()}(function(){var e=aA.documentElement,b0=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(b0){var b2=!b0.call(aA.createElement("div"),"div"),bZ=false;try{b0.call(aA.documentElement,"[test!='']:sizzle")}catch(b1){bZ=true}bG.matchesSelector=function(b4,b6){b6=b6.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!bG.isXML(b4)){try{if(bZ||!bM.match.PSEUDO.test(b6)&&!/!=/.test(b6)){var b3=b0.call(b4,b6);if(b3||!b2||b4.document&&b4.document.nodeType!==11){return b3}}}catch(b5){}}return bG(b6,null,null,[b4]).length>0}}})();(function(){var e=aA.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}bM.order.splice(1,0,"CLASS");bM.find.CLASS=function(bZ,b0,b1){if(typeof b0.getElementsByClassName!=="undefined"&&!b1){return b0.getElementsByClassName(bZ[1])}};e=null})();function bD(bZ,b4,b3,b7,b5,b6){for(var b1=0,b0=b7.length;b1<b0;b1++){var e=b7[b1];if(e){var b2=false;e=e[bZ];while(e){if(e[bK]===b3){b2=b7[e.sizset];break}if(e.nodeType===1&&!b6){e[bK]=b3;e.sizset=b1}if(e.nodeName.toLowerCase()===b4){b2=e;break}e=e[bZ]}b7[b1]=b2}}}function bV(bZ,b4,b3,b7,b5,b6){for(var b1=0,b0=b7.length;b1<b0;b1++){var e=b7[b1];if(e){var b2=false;e=e[bZ];while(e){if(e[bK]===b3){b2=b7[e.sizset];break}if(e.nodeType===1){if(!b6){e[bK]=b3;e.sizset=b1}if(typeof b4!=="string"){if(e===b4){b2=true;break}}else{if(bG.filter(b4,[e]).length>0){b2=e;break}}}e=e[bZ]}b7[b1]=b2}}}if(aA.documentElement.contains){bG.contains=function(bZ,e){return bZ!==e&&(bZ.contains?bZ.contains(e):true)}}else{if(aA.documentElement.compareDocumentPosition){bG.contains=function(bZ,e){return !!(bZ.compareDocumentPosition(e)&16)}}else{bG.contains=function(){return false}}}bG.isXML=function(e){var bZ=(e?e.ownerDocument||e:0).documentElement;return bZ?bZ.nodeName!=="HTML":false};var bU=function(b0,e,b4){var b3,b5=[],b2="",b6=e.nodeType?[e]:e;while((b3=bM.match.PSEUDO.exec(b0))){b2+=b3[0];b0=b0.replace(bM.match.PSEUDO,"")}b0=bM.relative[b0]?b0+"*":b0;for(var b1=0,bZ=b6.length;b1<bZ;b1++){bG(b0,b6[b1],b5,b4)}return bG.filter(b2,b5)};bG.attr=c.attr;bG.selectors.attrMap={};c.find=bG;c.expr=bG.selectors;c.expr[":"]=c.expr.filters;c.unique=bG.uniqueSort;c.text=bG.getText;c.isXMLDoc=bG.isXML;c.contains=bG.contains})();var ah=/Until$/,aw=/^(?:parents|prevUntil|prevAll)/,bg=/,/,bx=/^.[^:#\[\.,]*$/,W=Array.prototype.slice,N=c.expr.match.POS,aD={children:true,contents:true,next:true,prev:true};c.fn.extend({find:function(e){var bE=this,bG,bD;if(typeof e!=="string"){return c(e).filter(function(){for(bG=0,bD=bE.length;bG<bD;bG++){if(c.contains(bE[bG],this)){return true}}})}var bF=this.pushStack("","find",e),bI,bJ,bH;for(bG=0,bD=this.length;bG<bD;bG++){bI=bF.length;c.find(e,this[bG],bF);if(bG>0){for(bJ=bI;bJ<bF.length;bJ++){for(bH=0;bH<bI;bH++){if(bF[bH]===bF[bJ]){bF.splice(bJ--,1);break}}}}}return bF},has:function(bD){var e=c(bD);return this.filter(function(){for(var bF=0,bE=e.length;bF<bE;bF++){if(c.contains(this,e[bF])){return true}}})},not:function(e){return this.pushStack(aL(this,e,false),"not",e)},filter:function(e){return this.pushStack(aL(this,e,true),"filter",e)},is:function(e){return !!e&&(typeof e==="string"?N.test(e)?c(e,this.context).index(this[0])>=0:c.filter(e,this).length>0:this.filter(e).length>0)},closest:function(bG,bF){var bD=[],bE,e,bH=this[0];if(c.isArray(bG)){var bJ=1;while(bH&&bH.ownerDocument&&bH!==bF){for(bE=0;bE<bG.length;bE++){if(c(bH).is(bG[bE])){bD.push({selector:bG[bE],elem:bH,level:bJ})}}bH=bH.parentNode;bJ++}return bD}var bI=N.test(bG)||typeof bG!=="string"?c(bG,bF||this.context):0;for(bE=0,e=this.length;bE<e;bE++){bH=this[bE];while(bH){if(bI?bI.index(bH)>-1:c.find.matchesSelector(bH,bG)){bD.push(bH);break}else{bH=bH.parentNode;if(!bH||!bH.ownerDocument||bH===bF||bH.nodeType===11){break}}}}bD=bD.length>1?c.unique(bD):bD;return this.pushStack(bD,"closest",bG)},index:function(e){if(!e){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof e==="string"){return c.inArray(this[0],c(e))}return c.inArray(e.jquery?e[0]:e,this)},add:function(e,bD){var bF=typeof e==="string"?c(e,bD):c.makeArray(e&&e.nodeType?[e]:e),bE=c.merge(this.get(),bF);return this.pushStack(I(bF[0])||I(bE[0])?bE:c.unique(bE))},andSelf:function(){return this.add(this.prevObject)}});function I(e){return !e||!e.parentNode||e.parentNode.nodeType===11}c.each({parent:function(bD){var e=bD.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return c.dir(e,"parentNode")},parentsUntil:function(bD,e,bE){return c.dir(bD,"parentNode",bE)},next:function(e){return c.nth(e,2,"nextSibling")},prev:function(e){return c.nth(e,2,"previousSibling")},nextAll:function(e){return c.dir(e,"nextSibling")},prevAll:function(e){return c.dir(e,"previousSibling")},nextUntil:function(bD,e,bE){return c.dir(bD,"nextSibling",bE)},prevUntil:function(bD,e,bE){return c.dir(bD,"previousSibling",bE)},siblings:function(e){return c.sibling(e.parentNode.firstChild,e)},children:function(e){return c.sibling(e.firstChild)},contents:function(e){return c.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:c.makeArray(e.childNodes)}},function(e,bD){c.fn[e]=function(bH,bE){var bG=c.map(this,bD,bH),bF=W.call(arguments);if(!ah.test(e)){bE=bH}if(bE&&typeof bE==="string"){bG=c.filter(bE,bG)}bG=this.length>1&&!aD[e]?c.unique(bG):bG;if((this.length>1||bg.test(bE))&&aw.test(e)){bG=bG.reverse()}return this.pushStack(bG,e,bF.join(","))}});c.extend({filter:function(bE,e,bD){if(bD){bE=":not("+bE+")"}return e.length===1?c.find.matchesSelector(e[0],bE)?[e[0]]:[]:c.find.matches(bE,e)},dir:function(bE,bD,bG){var e=[],bF=bE[bD];while(bF&&bF.nodeType!==9&&(bG===R||bF.nodeType!==1||!c(bF).is(bG))){if(bF.nodeType===1){e.push(bF)}bF=bF[bD]}return e},nth:function(bG,e,bE,bF){e=e||1;var bD=0;for(;bG;bG=bG[bE]){if(bG.nodeType===1&&++bD===e){break}}return bG},sibling:function(bE,bD){var e=[];for(;bE;bE=bE.nextSibling){if(bE.nodeType===1&&bE!==bD){e.push(bE)}}return e}});function aL(bF,bE,e){bE=bE||0;if(c.isFunction(bE)){return c.grep(bF,function(bH,bG){var bI=!!bE.call(bH,bG,bH);return bI===e})}else{if(bE.nodeType){return c.grep(bF,function(bH,bG){return(bH===bE)===e})}else{if(typeof bE==="string"){var bD=c.grep(bF,function(bG){return bG.nodeType===1});if(bx.test(bE)){return c.filter(bE,bD,!e)}else{bE=c.filter(bE,bD)}}}}return c.grep(bF,function(bH,bG){return(c.inArray(bH,bE)>=0)===e})}function b(e){var bE=aX.split(" "),bD=e.createDocumentFragment();if(bD.createElement){while(bE.length){bD.createElement(bE.pop())}}return bD}var aX="abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",am=/ jQuery\d+="(?:\d+|null)"/g,ax=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,f=/<([\w:]+)/,C=/<tbody/i,ac=/<|&#?\w+;/,ak=/<(?:script|style)/i,V=/<(?:script|object|embed|option|style)/i,an=new RegExp("<(?:"+aX.replace(" ","|")+")","i"),s=/checked\s*(?:[^=]|=\s*.checked.)/i,bu=/\/(java|ecma)script/i,aT=/^\s*<!(?:\[CDATA\[|\-\-)/,aC={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,"",""]},ai=b(aA);aC.optgroup=aC.option;aC.tbody=aC.tfoot=aC.colgroup=aC.caption=aC.thead;aC.th=aC.td;if(!c.support.htmlSerialize){aC._default=[1,"div<div>","</div>"]}c.fn.extend({text:function(e){if(c.isFunction(e)){return this.each(function(bE){var bD=c(this);bD.text(e.call(this,bE,bD.text()))})}if(typeof e!=="object"&&e!==R){return this.empty().append((this[0]&&this[0].ownerDocument||aA).createTextNode(e))}return c.text(this)},wrapAll:function(e){if(c.isFunction(e)){return this.each(function(bE){c(this).wrapAll(e.call(this,bE))})}if(this[0]){var bD=c(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bD.insertBefore(this[0])}bD.map(function(){var bE=this;while(bE.firstChild&&bE.firstChild.nodeType===1){bE=bE.firstChild}return bE}).append(this)}return this},wrapInner:function(e){if(c.isFunction(e)){return this.each(function(bD){c(this).wrapInner(e.call(this,bD))})}return this.each(function(){var bD=c(this),bE=bD.contents();if(bE.length){bE.wrapAll(e)}else{bD.append(e)}})},wrap:function(e){return this.each(function(){c(this).wrapAll(e)})},unwrap:function(){return this.parent().each(function(){if(!c.nodeName(this,"body")){c(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(bD){this.parentNode.insertBefore(bD,this)})}else{if(arguments.length){var e=c(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(bD){this.parentNode.insertBefore(bD,this.nextSibling)})}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,c(arguments[0]).toArray());return e}}},remove:function(e,bF){for(var bD=0,bE;(bE=this[bD])!=null;bD++){if(!e||c.filter(e,[bE]).length){if(!bF&&bE.nodeType===1){c.cleanData(bE.getElementsByTagName("*"));c.cleanData([bE])}if(bE.parentNode){bE.parentNode.removeChild(bE)}}}return this},empty:function(){for(var e=0,bD;(bD=this[e])!=null;e++){if(bD.nodeType===1){c.cleanData(bD.getElementsByTagName("*"))}while(bD.firstChild){bD.removeChild(bD.firstChild)}}return this},clone:function(bD,e){bD=bD==null?false:bD;e=e==null?bD:e;return this.map(function(){return c.clone(this,bD,e)})},html:function(bF){if(bF===R){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(am,""):null}else{if(typeof bF==="string"&&!ak.test(bF)&&(c.support.leadingWhitespace||!ax.test(bF))&&!aC[(f.exec(bF)||["",""])[1].toLowerCase()]){bF=bF.replace(Y,"<$1></$2>");try{for(var bE=0,bD=this.length;bE<bD;bE++){if(this[bE].nodeType===1){c.cleanData(this[bE].getElementsByTagName("*"));this[bE].innerHTML=bF}}}catch(bG){this.empty().append(bF)}}else{if(c.isFunction(bF)){this.each(function(bH){var e=c(this);e.html(bF.call(this,bH,e.html()))})}else{this.empty().append(bF)}}}return this},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(c.isFunction(e)){return this.each(function(bF){var bE=c(this),bD=bE.html();bE.replaceWith(e.call(this,bF,bD))})}if(typeof e!=="string"){e=c(e).detach()}return this.each(function(){var bE=this.nextSibling,bD=this.parentNode;c(this).remove();if(bE){c(bE).before(e)}else{c(bD).append(e)}})}else{return this.length?this.pushStack(c(c.isFunction(e)?e():e),"replaceWith",e):this}},detach:function(e){return this.remove(e,true)},domManip:function(bJ,bN,bM){var bF,bG,bI,bL,bK=bJ[0],bD=[];if(!c.support.checkClone&&arguments.length===3&&typeof bK==="string"&&s.test(bK)){return this.each(function(){c(this).domManip(bJ,bN,bM,true)})}if(c.isFunction(bK)){return this.each(function(bP){var bO=c(this);bJ[0]=bK.call(this,bP,bN?bO.html():R);bO.domManip(bJ,bN,bM)})}if(this[0]){bL=bK&&bK.parentNode;if(c.support.parentNode&&bL&&bL.nodeType===11&&bL.childNodes.length===this.length){bF={fragment:bL}}else{bF=c.buildFragment(bJ,this,bD)}bI=bF.fragment;if(bI.childNodes.length===1){bG=bI=bI.firstChild}else{bG=bI.firstChild}if(bG){bN=bN&&c.nodeName(bG,"tr");for(var bE=0,e=this.length,bH=e-1;bE<e;bE++){bM.call(bN?bh(this[bE],bG):this[bE],bF.cacheable||(e>1&&bE<bH)?c.clone(bI,true,true):bI)}}if(bD.length){c.each(bD,bw)}}return this}});function bh(e,bD){return c.nodeName(e,"table")?(e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody"))):e}function z(bJ,bD){if(bD.nodeType!==1||!c.hasData(bJ)){return}var bG,bF,e,bI=c._data(bJ),bH=c._data(bD,bI),bE=bI.events;if(bE){delete bH.handle;bH.events={};for(bG in bE){for(bF=0,e=bE[bG].length;bF<e;bF++){c.event.add(bD,bG+(bE[bG][bF].namespace?".":"")+bE[bG][bF].namespace,bE[bG][bF],bE[bG][bF].data)}}}if(bH.data){bH.data=c.extend({},bH.data)}}function ao(bD,e){var bE;if(e.nodeType!==1){return}if(e.clearAttributes){e.clearAttributes()}if(e.mergeAttributes){e.mergeAttributes(bD)}bE=e.nodeName.toLowerCase();if(bE==="object"){e.outerHTML=bD.outerHTML}else{if(bE==="input"&&(bD.type==="checkbox"||bD.type==="radio")){if(bD.checked){e.defaultChecked=e.checked=bD.checked}if(e.value!==bD.value){e.value=bD.value}}else{if(bE==="option"){e.selected=bD.defaultSelected}else{if(bE==="input"||bE==="textarea"){e.defaultValue=bD.defaultValue}}}}e.removeAttribute(c.expando)}c.buildFragment=function(bH,bF,bD){var bG,e,bE,bI,bJ=bH[0];if(bF&&bF[0]){bI=bF[0].ownerDocument||bF[0]}if(!bI.createDocumentFragment){bI=aA}if(bH.length===1&&typeof bJ==="string"&&bJ.length<512&&bI===aA&&bJ.charAt(0)==="<"&&!V.test(bJ)&&(c.support.checkClone||!s.test(bJ))&&(!c.support.unknownElems&&an.test(bJ))){e=true;bE=c.fragments[bJ];if(bE&&bE!==1){bG=bE}}if(!bG){bG=bI.createDocumentFragment();c.clean(bH,bI,bG,bD)}if(e){c.fragments[bJ]=bE?bG:1}return{fragment:bG,cacheable:e}};c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,bD){c.fn[e]=function(bE){var bH=[],bK=c(bE),bJ=this.length===1&&this[0].parentNode;if(bJ&&bJ.nodeType===11&&bJ.childNodes.length===1&&bK.length===1){bK[bD](this[0]);return this}else{for(var bI=0,bF=bK.length;bI<bF;bI++){var bG=(bI>0?this.clone(true):this).get();c(bK[bI])[bD](bG);bH=bH.concat(bG)}return this.pushStack(bH,e,bK.selector)}}});function bn(e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName("*")}else{if(typeof e.querySelectorAll!=="undefined"){return e.querySelectorAll("*")}else{return[]}}}function aE(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked}}function K(e){var bD=(e.nodeName||"").toLowerCase();if(bD==="input"){aE(e)}else{if(bD!=="script"&&typeof e.getElementsByTagName!=="undefined"){c.grep(e.getElementsByTagName("input"),aE)}}}c.extend({clone:function(bG,bI,bE){var bH=bG.cloneNode(true),e,bD,bF;if((!c.support.noCloneEvent||!c.support.noCloneChecked)&&(bG.nodeType===1||bG.nodeType===11)&&!c.isXMLDoc(bG)){ao(bG,bH);e=bn(bG);bD=bn(bH);for(bF=0;e[bF];++bF){if(bD[bF]){ao(e[bF],bD[bF])}}}if(bI){z(bG,bH);if(bE){e=bn(bG);bD=bn(bH);for(bF=0;e[bF];++bF){z(e[bF],bD[bF])}}}e=bD=null;return bH},clean:function(bE,bG,bP,bI){var bN;bG=bG||aA;if(typeof bG.createElement==="undefined"){bG=bG.ownerDocument||bG[0]&&bG[0].ownerDocument||aA}var bQ=[],bJ;for(var bM=0,bH;(bH=bE[bM])!=null;bM++){if(typeof bH==="number"){bH+=""}if(!bH){continue}if(typeof bH==="string"){if(!ac.test(bH)){bH=bG.createTextNode(bH)}else{bH=bH.replace(Y,"<$1></$2>");var bS=(f.exec(bH)||["",""])[1].toLowerCase(),bF=aC[bS]||aC._default,bL=bF[0],bD=bG.createElement("div");if(bG===aA){ai.appendChild(bD)}else{b(bG).appendChild(bD)}bD.innerHTML=bF[1]+bH+bF[2];while(bL--){bD=bD.lastChild}if(!c.support.tbody){var e=C.test(bH),bK=bS==="table"&&!e?bD.firstChild&&bD.firstChild.childNodes:bF[1]==="<table>"&&!e?bD.childNodes:[];for(bJ=bK.length-1;bJ>=0;--bJ){if(c.nodeName(bK[bJ],"tbody")&&!bK[bJ].childNodes.length){bK[bJ].parentNode.removeChild(bK[bJ])}}}if(!c.support.leadingWhitespace&&ax.test(bH)){bD.insertBefore(bG.createTextNode(ax.exec(bH)[0]),bD.firstChild)}bH=bD.childNodes}}var bO;if(!c.support.appendChecked){if(bH[0]&&typeof(bO=bH.length)==="number"){for(bJ=0;bJ<bO;bJ++){K(bH[bJ])}}else{K(bH)}}if(bH.nodeType){bQ.push(bH)}else{bQ=c.merge(bQ,bH)}}if(bP){bN=function(bT){return !bT.type||bu.test(bT.type)};for(bM=0;bQ[bM];bM++){if(bI&&c.nodeName(bQ[bM],"script")&&(!bQ[bM].type||bQ[bM].type.toLowerCase()==="text/javascript")){bI.push(bQ[bM].parentNode?bQ[bM].parentNode.removeChild(bQ[bM]):bQ[bM])}else{if(bQ[bM].nodeType===1){var bR=c.grep(bQ[bM].getElementsByTagName("script"),bN);bQ.splice.apply(bQ,[bM+1,0].concat(bR))}bP.appendChild(bQ[bM])}}}return bQ},cleanData:function(bD){var bG,bE,e=c.cache,bJ=c.event.special,bI=c.support.deleteExpando;for(var bH=0,bF;(bF=bD[bH])!=null;bH++){if(bF.nodeName&&c.noData[bF.nodeName.toLowerCase()]){continue}bE=bF[c.expando];if(bE){bG=e[bE];if(bG&&bG.events){for(var bK in bG.events){if(bJ[bK]){c.event.remove(bF,bK)}else{c.removeEvent(bF,bK,bG.handle)}}if(bG.handle){bG.handle.elem=null}}if(bI){delete bF[c.expando]}else{if(bF.removeAttribute){bF.removeAttribute(c.expando)}}delete e[bE]}}}});function bw(e,bD){if(bD.src){c.ajax({url:bD.src,async:false,dataType:"script"})}else{c.globalEval((bD.text||bD.textContent||bD.innerHTML||"").replace(aT,"/*$0*/"))}if(bD.parentNode){bD.parentNode.removeChild(bD)}}var aq=/alpha\([^)]*\)/i,az=/opacity=([^)]*)/,F=/([A-Z]|^ms)/g,bj=/^-?\d+(?:px)?$/i,bv=/^-?\d/,O=/^([\-+])=([\-+.\de]+)/,be={position:"absolute",visibility:"hidden",display:"block"},at=["Left","Right"],a8=["Top","Bottom"],af,aO,a3;c.fn.css=function(e,bD){if(arguments.length===2&&bD===R){return this}return c.access(this,e,bD,true,function(bF,bE,bG){return bG!==R?c.style(bF,bE,bG):c.css(bF,bE)})};c.extend({cssHooks:{opacity:{get:function(bE,bD){if(bD){var e=af(bE,"opacity","opacity");return e===""?"1":e}else{return bE.style.opacity}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(bF,bE,bL,bG){if(!bF||bF.nodeType===3||bF.nodeType===8||!bF.style){return}var bJ,bK,bH=c.camelCase(bE),bD=bF.style,bM=c.cssHooks[bH];bE=c.cssProps[bH]||bH;if(bL!==R){bK=typeof bL;if(bK==="string"&&(bJ=O.exec(bL))){bL=(+(bJ[1]+1)*+bJ[2])+parseFloat(c.css(bF,bE));bK="number"}if(bL==null||bK==="number"&&isNaN(bL)){return}if(bK==="number"&&!c.cssNumber[bH]){bL+="px"}if(!bM||!("set" in bM)||(bL=bM.set(bF,bL))!==R){try{bD[bE]=bL}catch(bI){}}}else{if(bM&&"get" in bM&&(bJ=bM.get(bF,false,bG))!==R){return bJ}return bD[bE]}},css:function(bG,bF,bD){var bE,e;bF=c.camelCase(bF);e=c.cssHooks[bF];bF=c.cssProps[bF]||bF;if(bF==="cssFloat"){bF="float"}if(e&&"get" in e&&(bE=e.get(bG,true,bD))!==R){return bE}else{if(af){return af(bG,bF)}}},swap:function(bF,bE,bG){var e={};for(var bD in bE){e[bD]=bF.style[bD];bF.style[bD]=bE[bD]}bG.call(bF);for(bD in bE){bF.style[bD]=e[bD]}}});c.curCSS=c.css;c.each(["height","width"],function(bD,e){c.cssHooks[e]={get:function(bG,bF,bE){var bH;if(bF){if(bG.offsetWidth!==0){return t(bG,e,bE)}else{c.swap(bG,be,function(){bH=t(bG,e,bE)})}return bH}},set:function(bE,bF){if(bj.test(bF)){bF=parseFloat(bF);if(bF>=0){return bF+"px"}}else{return bF}}}});if(!c.support.opacity){c.cssHooks.opacity={get:function(bD,e){return az.test((e&&bD.currentStyle?bD.currentStyle.filter:bD.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""},set:function(bG,bH){var bF=bG.style,bD=bG.currentStyle,e=c.isNumeric(bH)?"alpha(opacity="+bH*100+")":"",bE=bD&&bD.filter||bF.filter||"";bF.zoom=1;if(bH>=1&&c.trim(bE.replace(aq,""))===""){bF.removeAttribute("filter");if(bD&&!bD.filter){return}}bF.filter=aq.test(bE)?bE.replace(aq,e):bE+" "+e}}}c(function(){if(!c.support.reliableMarginRight){c.cssHooks.marginRight={get:function(bE,bD){var e;c.swap(bE,{display:"inline-block"},function(){if(bD){e=af(bE,"margin-right","marginRight")}else{e=bE.style.marginRight}});return e}}}});if(aA.defaultView&&aA.defaultView.getComputedStyle){aO=function(bG,bE){var bD,bF,e;bE=bE.replace(F,"-$1").toLowerCase();if(!(bF=bG.ownerDocument.defaultView)){return R}if((e=bF.getComputedStyle(bG,null))){bD=e.getPropertyValue(bE);if(bD===""&&!c.contains(bG.ownerDocument.documentElement,bG)){bD=c.style(bG,bE)}}return bD}}if(aA.documentElement.currentStyle){a3=function(bH,bE){var bI,e,bG,bD=bH.currentStyle&&bH.currentStyle[bE],bF=bH.style;if(bD===null&&bF&&(bG=bF[bE])){bD=bG}if(!bj.test(bD)&&bv.test(bD)){bI=bF.left;e=bH.runtimeStyle&&bH.runtimeStyle.left;if(e){bH.runtimeStyle.left=bH.currentStyle.left}bF.left=bE==="fontSize"?"1em":(bD||0);bD=bF.pixelLeft+"px";bF.left=bI;if(e){bH.runtimeStyle.left=e}}return bD===""?"auto":bD}}af=aO||a3;function t(bE,bD,e){var bG=bD==="width"?bE.offsetWidth:bE.offsetHeight,bF=bD==="width"?at:a8;if(bG>0){if(e!=="border"){c.each(bF,function(){if(!e){bG-=parseFloat(c.css(bE,"padding"+this))||0}if(e==="margin"){bG+=parseFloat(c.css(bE,e+this))||0}else{bG-=parseFloat(c.css(bE,"border"+this+"Width"))||0}})}return bG+"px"}bG=af(bE,bD,bD);if(bG<0||bG==null){bG=bE.style[bD]||0}bG=parseFloat(bG)||0;if(e){c.each(bF,function(){bG+=parseFloat(c.css(bE,"padding"+this))||0;if(e!=="padding"){bG+=parseFloat(c.css(bE,"border"+this+"Width"))||0}if(e==="margin"){bG+=parseFloat(c.css(bE,e+this))||0}})}return bG+"px"}if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(bE){var bD=bE.offsetWidth,e=bE.offsetHeight;return(bD===0&&e===0)||(!c.support.reliableHiddenOffsets&&((bE.style&&bE.style.display)||c.css(bE,"display"))==="none")};c.expr.filters.visible=function(e){return !c.expr.filters.hidden(e)}}var n=/%20/g,av=/\[\]$/,bA=/\r?\n/g,by=/#.*$/,aI=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,a5=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aS=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,aW=/^(?:GET|HEAD)$/,d=/^\/\//,S=/\?/,bd=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,u=/^(?:select|textarea)/i,k=/\s+/,bz=/([?&])_=[^&]*/,Q=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,G=c.fn.load,ag={},v={},aJ,w,a1=["*/"]+["*"];try{aJ=bt.href}catch(aB){aJ=aA.createElement("a");aJ.href="";aJ=aJ.href}w=Q.exec(aJ.toLowerCase())||[];function g(e){return function(bG,bI){if(typeof bG!=="string"){bI=bG;bG="*"}if(c.isFunction(bI)){var bF=bG.toLowerCase().split(k),bE=0,bH=bF.length,bD,bJ,bK;for(;bE<bH;bE++){bD=bF[bE];bK=/^\+/.test(bD);if(bK){bD=bD.substr(1)||"*"}bJ=e[bD]=e[bD]||[];bJ[bK?"unshift":"push"](bI)}}}}function a2(bD,bM,bH,bL,bJ,bF){bJ=bJ||bM.dataTypes[0];bF=bF||{};bF[bJ]=true;var bI=bD[bJ],bE=0,e=bI?bI.length:0,bG=(bD===ag),bK;for(;bE<e&&(bG||!bK);bE++){bK=bI[bE](bM,bH,bL);if(typeof bK==="string"){if(!bG||bF[bK]){bK=R}else{bM.dataTypes.unshift(bK);bK=a2(bD,bM,bH,bL,bK,bF)}}}if((bG||!bK)&&!bF["*"]){bK=a2(bD,bM,bH,bL,"*",bF)}return bK}function ar(bE,bF){var bD,e,bG=c.ajaxSettings.flatOptions||{};for(bD in bF){if(bF[bD]!==R){(bG[bD]?bE:(e||(e={})))[bD]=bF[bD]}}if(e){c.extend(true,bE,e)}}c.fn.extend({load:function(bE,bH,bI){if(typeof bE!=="string"&&G){return G.apply(this,arguments)}else{if(!this.length){return this}}var bG=bE.indexOf(" ");if(bG>=0){var e=bE.slice(bG,bE.length);bE=bE.slice(0,bG)}var bF="GET";if(bH){if(c.isFunction(bH)){bI=bH;bH=R}else{if(typeof bH==="object"){bH=c.param(bH,c.ajaxSettings.traditional);bF="POST"}}}var bD=this;c.ajax({url:bE,type:bF,dataType:"html",data:bH,complete:function(bK,bJ,bL){bL=bK.responseText;if(bK.isResolved()){bK.done(function(bM){bL=bM});bD.html(e?c("<div>").append(bL.replace(bd,"")).find(e):bL)}if(bI){bD.each(bI,[bL,bJ,bK])}}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||u.test(this.nodeName)||a5.test(this.type))}).map(function(e,bD){var bE=c(this).val();return bE==null?null:c.isArray(bE)?c.map(bE,function(bG,bF){return{name:bD.name,value:bG.replace(bA,"\r\n")}}):{name:bD.name,value:bE.replace(bA,"\r\n")}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,bD){c.fn[bD]=function(bE){return this.bind(bD,bE)}});c.each(["get","post"],function(e,bD){c[bD]=function(bE,bG,bH,bF){if(c.isFunction(bG)){bF=bF||bH;bH=bG;bG=R}return c.ajax({type:bD,url:bE,data:bG,success:bH,dataType:bF})}});c.extend({getScript:function(e,bD){return c.get(e,R,bD,"script")},getJSON:function(e,bD,bE){return c.get(e,bD,bE,"json")},ajaxSetup:function(bD,e){if(e){ar(bD,c.ajaxSettings)}else{e=bD;bD=c.ajaxSettings}ar(bD,e);return bD},ajaxSettings:{url:aJ,isLocal:aS.test(w[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","*":a1},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":bi.String,"text html":true,"text json":c.parseJSON,"text xml":c.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:g(ag),ajaxTransport:g(v),ajax:function(bH,bF){if(typeof bH==="object"){bF=bH;bH=R}bF=bF||{};var bL=c.ajaxSetup({},bF),b0=bL.context||bL,bO=b0!==bL&&(b0.nodeType||b0 instanceof c)?c(b0):c.event,bZ=c.Deferred(),bV=c.Callbacks("once memory"),bJ=bL.statusCode||{},bK,bP={},bW={},bY,bG,bT,bM,bQ,bI=0,bE,bS,bR={readyState:0,setRequestHeader:function(b1,b2){if(!bI){var e=b1.toLowerCase();b1=bW[e]=bW[e]||b1;bP[b1]=b2}return this},getAllResponseHeaders:function(){return bI===2?bY:null},getResponseHeader:function(b1){var e;if(bI===2){if(!bG){bG={};while((e=aI.exec(bY))){bG[e[1].toLowerCase()]=e[2]}}e=bG[b1.toLowerCase()]}return e===R?null:e},overrideMimeType:function(e){if(!bI){bL.mimeType=e}return this},abort:function(e){e=e||"abort";if(bT){bT.abort(e)}bN(0,e);return this}};function bN(b7,b2,b8,b4){if(bI===2){return}bI=2;if(bM){clearTimeout(bM)}bT=R;bY=b4||"";bR.readyState=b7>0?4:0;var b1,cc,cb,b5=b2,b6=b8?br(bL,bR,b8):R,b3,ca;if(b7>=200&&b7<300||b7===304){if(bL.ifModified){if((b3=bR.getResponseHeader("Last-Modified"))){c.lastModified[bK]=b3}if((ca=bR.getResponseHeader("Etag"))){c.etag[bK]=ca}}if(b7===304){b5="notmodified";b1=true}else{try{cc=M(bL,b6);b5="success";b1=true}catch(b9){b5="parsererror";cb=b9}}}else{cb=b5;if(!b5||b7){b5="error";if(b7<0){b7=0}}}bR.status=b7;bR.statusText=""+(b2||b5);if(b1){bZ.resolveWith(b0,[cc,b5,bR])}else{bZ.rejectWith(b0,[bR,b5,cb])}bR.statusCode(bJ);bJ=R;if(bE){bO.trigger("ajax"+(b1?"Success":"Error"),[bR,bL,b1?cc:cb])}bV.fireWith(b0,[bR,b5]);if(bE){bO.trigger("ajaxComplete",[bR,bL]);if(!(--c.active)){c.event.trigger("ajaxStop")}}}bZ.promise(bR);bR.success=bR.done;bR.error=bR.fail;bR.complete=bV.add;bR.statusCode=function(b1){if(b1){var e;if(bI<2){for(e in b1){bJ[e]=[bJ[e],b1[e]]}}else{e=b1[bR.status];bR.then(e,e)}}return this};bL.url=((bH||bL.url)+"").replace(by,"").replace(d,w[1]+"//");bL.dataTypes=c.trim(bL.dataType||"*").toLowerCase().split(k);if(bL.crossDomain==null){bQ=Q.exec(bL.url.toLowerCase());bL.crossDomain=!!(bQ&&(bQ[1]!=w[1]||bQ[2]!=w[2]||(bQ[3]||(bQ[1]==="http:"?80:443))!=(w[3]||(w[1]==="http:"?80:443))))}if(bL.data&&bL.processData&&typeof bL.data!=="string"){bL.data=c.param(bL.data,bL.traditional)}a2(ag,bL,bF,bR);if(bI===2){return false}bE=bL.global;bL.type=bL.type.toUpperCase();bL.hasContent=!aW.test(bL.type);if(bE&&c.active++===0){c.event.trigger("ajaxStart")}if(!bL.hasContent){if(bL.data){bL.url+=(S.test(bL.url)?"&":"?")+bL.data;delete bL.data}bK=bL.url;if(bL.cache===false){var bD=c.now(),bX=bL.url.replace(bz,"$1_="+bD);bL.url=bX+((bX===bL.url)?(S.test(bL.url)?"&":"?")+"_="+bD:"")}}if(bL.data&&bL.hasContent&&bL.contentType!==false||bF.contentType){bR.setRequestHeader("Content-Type",bL.contentType)}if(bL.ifModified){bK=bK||bL.url;if(c.lastModified[bK]){bR.setRequestHeader("If-Modified-Since",c.lastModified[bK])}if(c.etag[bK]){bR.setRequestHeader("If-None-Match",c.etag[bK])}}bR.setRequestHeader("Accept",bL.dataTypes[0]&&bL.accepts[bL.dataTypes[0]]?bL.accepts[bL.dataTypes[0]]+(bL.dataTypes[0]!=="*"?", "+a1+"; q=0.01":""):bL.accepts["*"]);for(bS in bL.headers){bR.setRequestHeader(bS,bL.headers[bS])}if(bL.beforeSend&&(bL.beforeSend.call(b0,bR,bL)===false||bI===2)){bR.abort();return false}for(bS in {success:1,error:1,complete:1}){bR[bS](bL[bS])}bT=a2(v,bL,bF,bR);if(!bT){bN(-1,"No Transport")}else{bR.readyState=1;if(bE){bO.trigger("ajaxSend",[bR,bL])}if(bL.async&&bL.timeout>0){bM=setTimeout(function(){bR.abort("timeout")},bL.timeout)}try{bI=1;bT.send(bP,bN)}catch(bU){if(bI<2){bN(-1,bU)}else{c.error(bU)}}}return bR},param:function(e,bE){var bD=[],bG=function(bH,bI){bI=c.isFunction(bI)?bI():bI;bD[bD.length]=encodeURIComponent(bH)+"="+encodeURIComponent(bI)};if(bE===R){bE=c.ajaxSettings.traditional}if(c.isArray(e)||(e.jquery&&!c.isPlainObject(e))){c.each(e,function(){bG(this.name,this.value)})}else{for(var bF in e){B(bF,e[bF],bE,bG)}}return bD.join("&").replace(n,"+")}});function B(bE,bG,bD,bF){if(c.isArray(bG)){c.each(bG,function(bI,bH){if(bD||av.test(bE)){bF(bE,bH)}else{B(bE+"["+(typeof bH==="object"||c.isArray(bH)?bI:"")+"]",bH,bD,bF)}})}else{if(!bD&&bG!=null&&typeof bG==="object"){for(var e in bG){B(bE+"["+e+"]",bG[e],bD,bF)}}else{bF(bE,bG)}}}c.extend({active:0,lastModified:{},etag:{}});function br(bL,bK,bH){var bD=bL.contents,bJ=bL.dataTypes,bE=bL.responseFields,bG,bI,bF,e;for(bI in bE){if(bI in bH){bK[bE[bI]]=bH[bI]}}while(bJ[0]==="*"){bJ.shift();if(bG===R){bG=bL.mimeType||bK.getResponseHeader("content-type")}}if(bG){for(bI in bD){if(bD[bI]&&bD[bI].test(bG)){bJ.unshift(bI);break}}}if(bJ[0] in bH){bF=bJ[0]}else{for(bI in bH){if(!bJ[0]||bL.converters[bI+" "+bJ[0]]){bF=bI;break}if(!e){e=bI}}bF=bF||e}if(bF){if(bF!==bJ[0]){bJ.unshift(bF)}return bH[bF]}}function M(bP,bH){if(bP.dataFilter){bH=bP.dataFilter(bH,bP.dataType)}var bL=bP.dataTypes,bO={},bI,bM,bE=bL.length,bJ,bK=bL[0],bF,bG,bN,bD,e;for(bI=1;bI<bE;bI++){if(bI===1){for(bM in bP.converters){if(typeof bM==="string"){bO[bM.toLowerCase()]=bP.converters[bM]}}}bF=bK;bK=bL[bI];if(bK==="*"){bK=bF}else{if(bF!=="*"&&bF!==bK){bG=bF+" "+bK;bN=bO[bG]||bO["* "+bK];if(!bN){e=R;for(bD in bO){bJ=bD.split(" ");if(bJ[0]===bF||bJ[0]==="*"){e=bO[bJ[1]+" "+bK];if(e){bD=bO[bD];if(bD===true){bN=e}else{if(e===true){bN=bD}}break}}}}if(!(bN||e)){c.error("No conversion from "+bG.replace(" "," to "))}if(bN!==true){bH=bN?bN(bH):e(bD(bH))}}}}return bH}var aH=c.now(),A=/(\=)\?(&|$)|\?\?/i;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return c.expando+"_"+(aH++)}});c.ajaxPrefilter("json jsonp",function(bL,bI,bK){var bF=bL.contentType==="application/x-www-form-urlencoded"&&(typeof bL.data==="string");if(bL.dataTypes[0]==="jsonp"||bL.jsonp!==false&&(A.test(bL.url)||bF&&A.test(bL.data))){var bJ,bE=bL.jsonpCallback=c.isFunction(bL.jsonpCallback)?bL.jsonpCallback():bL.jsonpCallback,bH=bi[bE],e=bL.url,bG=bL.data,bD="$1"+bE+"$2";if(bL.jsonp!==false){e=e.replace(A,bD);if(bL.url===e){if(bF){bG=bG.replace(A,bD)}if(bL.data===bG){e+=(/\?/.test(e)?"&":"?")+bL.jsonp+"="+bE}}}bL.url=e;bL.data=bG;bi[bE]=function(bM){bJ=[bM]};bK.always(function(){bi[bE]=bH;if(bJ&&c.isFunction(bH)){bi[bE](bJ[0])}});bL.converters["script json"]=function(){if(!bJ){c.error(bE+" was not called")}return bJ[0]};bL.dataTypes[0]="json";return"script"}});c.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){c.globalEval(e);return e}}});c.ajaxPrefilter("script",function(e){if(e.cache===R){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});c.ajaxTransport("script",function(bE){if(bE.crossDomain){var e,bD=aA.head||aA.getElementsByTagName("head")[0]||aA.documentElement;return{send:function(bF,bG){e=aA.createElement("script");e.async="async";if(bE.scriptCharset){e.charset=bE.scriptCharset}e.src=bE.url;e.onload=e.onreadystatechange=function(bI,bH){if(bH||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(bD&&e.parentNode){bD.removeChild(e)}e=R;if(!bH){bG(200,"success")}}};bD.insertBefore(e,bD.firstChild)},abort:function(){if(e){e.onload(0,1)}}}}});var H=bi.ActiveXObject?function(){for(var e in T){T[e](0,1)}}:false,E=0,T;function aR(){try{return new bi.XMLHttpRequest()}catch(bD){}}function ap(){try{return new bi.ActiveXObject("Microsoft.XMLHTTP")}catch(bD){}}c.ajaxSettings.xhr=bi.ActiveXObject?function(){return !this.isLocal&&aR()||ap()}:aR;(function(e){c.extend(c.support,{ajax:!!e,cors:!!e&&("withCredentials" in e)})})(c.ajaxSettings.xhr());if(c.support.ajax){c.ajaxTransport(function(e){if(!e.crossDomain||c.support.cors){var bD;return{send:function(bJ,bE){var bI=e.xhr(),bH,bG;if(e.username){bI.open(e.type,e.url,e.async,e.username,e.password)}else{bI.open(e.type,e.url,e.async)}if(e.xhrFields){for(bG in e.xhrFields){bI[bG]=e.xhrFields[bG]}}if(e.mimeType&&bI.overrideMimeType){bI.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!bJ["X-Requested-With"]){bJ["X-Requested-With"]="XMLHttpRequest"}try{for(bG in bJ){bI.setRequestHeader(bG,bJ[bG])}}catch(bF){}bI.send((e.hasContent&&e.data)||null);bD=function(bS,bM){var bN,bL,bK,bQ,bP;try{if(bD&&(bM||bI.readyState===4)){bD=R;if(bH){bI.onreadystatechange=c.noop;if(H){delete T[bH]}}if(bM){if(bI.readyState!==4){bI.abort()}}else{bN=bI.status;bK=bI.getAllResponseHeaders();bQ={};bP=bI.responseXML;if(bP&&bP.documentElement){bQ.xml=bP}bQ.text=bI.responseText;try{bL=bI.statusText}catch(bR){bL=""}if(!bN&&e.isLocal&&!e.crossDomain){bN=bQ.text?200:404}else{if(bN===1223){bN=204}}}}}catch(bO){if(!bM){bE(-1,bO)}}if(bQ){bE(bN,bL,bQ,bK)}};if(!e.async||bI.readyState===4){bD()}else{bH=++E;if(H){if(!T){T={};c(bi).unload(H)}T[bH]=bD}bI.onreadystatechange=bD}},abort:function(){if(bD){bD(0,1)}}}}})}var X={},bf,q,aG=/^(?:toggle|show|hide)$/,aZ=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ba,aN=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],bb;c.fn.extend({show:function(bF,bI,bH){var bE,bG;if(bF||bF===0){return this.animate(a7("show",3),bF,bI,bH)}else{for(var bD=0,e=this.length;bD<e;bD++){bE=this[bD];if(bE.style){bG=bE.style.display;if(!c._data(bE,"olddisplay")&&bG==="none"){bG=bE.style.display=""}if(bG===""&&c.css(bE,"display")==="none"){c._data(bE,"olddisplay",D(bE.nodeName))}}}for(bD=0;bD<e;bD++){bE=this[bD];if(bE.style){bG=bE.style.display;if(bG===""||bG==="none"){bE.style.display=c._data(bE,"olddisplay")||""}}}return this}},hide:function(bF,bI,bH){if(bF||bF===0){return this.animate(a7("hide",3),bF,bI,bH)}else{var bE,bG,bD=0,e=this.length;for(;bD<e;bD++){bE=this[bD];if(bE.style){bG=c.css(bE,"display");if(bG!=="none"&&!c._data(bE,"olddisplay")){c._data(bE,"olddisplay",bG)}}}for(bD=0;bD<e;bD++){if(this[bD].style){this[bD].style.display="none"}}return this}},_toggle:c.fn.toggle,toggle:function(bE,bD,bF){var e=typeof bE==="boolean";if(c.isFunction(bE)&&c.isFunction(bD)){this._toggle.apply(this,arguments)}else{if(bE==null||e){this.each(function(){var bG=e?bE:c(this).is(":hidden");c(this)[bG?"show":"hide"]()})}else{this.animate(a7("toggle",3),bE,bD,bF)}}return this},fadeTo:function(e,bF,bE,bD){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:bF},e,bE,bD)},animate:function(bH,bE,bG,bF){var e=c.speed(bE,bG,bF);if(c.isEmptyObject(bH)){return this.each(e.complete,[false])}bH=c.extend({},bH);function bD(){if(e.queue===false){c._mark(this)}var bM=c.extend({},e),bS=this.nodeType===1,bQ=bS&&c(this).is(":hidden"),bJ,bN,bL,bR,bP,bK,bO,bT,bI;bM.animatedProperties={};for(bL in bH){bJ=c.camelCase(bL);if(bL!==bJ){bH[bJ]=bH[bL];delete bH[bL]}bN=bH[bJ];if(c.isArray(bN)){bM.animatedProperties[bJ]=bN[1];bN=bH[bJ]=bN[0]}else{bM.animatedProperties[bJ]=bM.specialEasing&&bM.specialEasing[bJ]||bM.easing||"swing"}if(bN==="hide"&&bQ||bN==="show"&&!bQ){return bM.complete.call(this)}if(bS&&(bJ==="height"||bJ==="width")){bM.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(c.css(this,"display")==="inline"&&c.css(this,"float")==="none"){if(!c.support.inlineBlockNeedsLayout||D(this.nodeName)==="inline"){this.style.display="inline-block"}else{this.style.zoom=1}}}}if(bM.overflow!=null){this.style.overflow="hidden"}for(bL in bH){bR=new c.fx(this,bM,bL);bN=bH[bL];if(aG.test(bN)){bI=c._data(this,"toggle"+bL)||(bN==="toggle"?bQ?"show":"hide":0);if(bI){c._data(this,"toggle"+bL,bI==="show"?"hide":"show");bR[bI]()}else{bR[bN]()}}else{bP=aZ.exec(bN);bK=bR.cur();if(bP){bO=parseFloat(bP[2]);bT=bP[3]||(c.cssNumber[bL]?"":"px");if(bT!=="px"){c.style(this,bL,(bO||1)+bT);bK=((bO||1)/bR.cur())*bK;c.style(this,bL,bK+bT)}if(bP[1]){bO=((bP[1]==="-="?-1:1)*bO)+bK}bR.custom(bK,bO,bT)}else{bR.custom(bK,bN,"")}}}return true}return e.queue===false?this.each(bD):this.queue(e.queue,bD)},stop:function(bE,bD,e){if(typeof bE!=="string"){e=bD;bD=bE;bE=R}if(bD&&bE!==false){this.queue(bE||"fx",[])}return this.each(function(){var bG,bF=false,bI=c.timers,bH=c._data(this);if(!e){c._unmark(true,this)}function bJ(bM,bN,bL){var bK=bN[bL];c.removeData(bM,bL,true);bK.stop(e)}if(bE==null){for(bG in bH){if(bH[bG].stop&&bG.indexOf(".run")===bG.length-4){bJ(this,bH,bG)}}}else{if(bH[bG=bE+".run"]&&bH[bG].stop){bJ(this,bH,bG)}}for(bG=bI.length;bG--;){if(bI[bG].elem===this&&(bE==null||bI[bG].queue===bE)){if(e){bI[bG](true)}else{bI[bG].saveState()}bF=true;bI.splice(bG,1)}}if(!(e&&bF)){c.dequeue(this,bE)}})}});function bo(){setTimeout(ay,0);return(bb=c.now())}function ay(){bb=R}function a7(bD,e){var bE={};c.each(aN.concat.apply([],aN.slice(0,e)),function(){bE[this]=bD});return bE}c.each({slideDown:a7("show",1),slideUp:a7("hide",1),slideToggle:a7("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,bD){c.fn[e]=function(bE,bG,bF){return this.animate(bD,bE,bG,bF)}});c.extend({speed:function(bE,bF,bD){var e=bE&&typeof bE==="object"?c.extend({},bE):{complete:bD||!bD&&bF||c.isFunction(bE)&&bE,duration:bE,easing:bD&&bF||bF&&!c.isFunction(bF)&&bF};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;if(e.queue==null||e.queue===true){e.queue="fx"}e.old=e.complete;e.complete=function(bG){if(c.isFunction(e.old)){e.old.call(this)}if(e.queue){c.dequeue(this,e.queue)}else{if(bG!==false){c._unmark(this)}}};return e},easing:{linear:function(bE,bF,e,bD){return e+bD*bE},swing:function(bE,bF,e,bD){return((-Math.cos(bE*Math.PI)/2)+0.5)*bD+e}},timers:[],fx:function(bD,e,bE){this.options=e;this.elem=bD;this.prop=bE;e.orig=e.orig||{}}});c.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(c.fx.step[this.prop]||c.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,bD=c.css(this.elem,this.prop);return isNaN(e=parseFloat(bD))?!bD||bD==="auto"?0:bD:e},custom:function(bH,bG,bF){var e=this,bE=c.fx;this.startTime=bb||bo();this.end=bG;this.now=this.start=bH;this.pos=this.state=0;this.unit=bF||this.unit||(c.cssNumber[this.prop]?"":"px");function bD(bI){return e.step(bI)}bD.queue=this.options.queue;bD.elem=this.elem;bD.saveState=function(){if(e.options.hide&&c._data(e.elem,"fxshow"+e.prop)===R){c._data(e.elem,"fxshow"+e.prop,e.start)}};if(bD()&&c.timers.push(bD)&&!ba){ba=setInterval(bE.tick,bE.interval)}},show:function(){var e=c._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=e||c.style(this.elem,this.prop);this.options.show=true;if(e!==R){this.custom(this.cur(),e)}else{this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur())}c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c._data(this.elem,"fxshow"+this.prop)||c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(bG){var bI,bJ,bD,bF=bb||bo(),e=true,bH=this.elem,bE=this.options;if(bG||bF>=bE.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();bE.animatedProperties[this.prop]=true;for(bI in bE.animatedProperties){if(bE.animatedProperties[bI]!==true){e=false}}if(e){if(bE.overflow!=null&&!c.support.shrinkWrapBlocks){c.each(["","X","Y"],function(bK,bL){bH.style["overflow"+bL]=bE.overflow[bK]})}if(bE.hide){c(bH).hide()}if(bE.hide||bE.show){for(bI in bE.animatedProperties){c.style(bH,bI,bE.orig[bI]);c.removeData(bH,"fxshow"+bI,true);c.removeData(bH,"toggle"+bI,true)}}bD=bE.complete;if(bD){bE.complete=false;bD.call(bH)}}return false}else{if(bE.duration==Infinity){this.now=bF}else{bJ=bF-this.startTime;this.state=bJ/bE.duration;this.pos=c.easing[bE.animatedProperties[this.prop]](this.state,bJ,0,1,bE.duration);this.now=this.start+((this.end-this.start)*this.pos)}this.update()}return true}};c.extend(c.fx,{tick:function(){var bE,bD=c.timers,e=0;for(;e<bD.length;e++){bE=bD[e];if(!bE()&&bD[e]===bE){bD.splice(e--,1)}}if(!bD.length){c.fx.stop()}},interval:13,stop:function(){clearInterval(ba);ba=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){c.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.now+e.unit}else{e.elem[e.prop]=e.now}}}});c.each(["width","height"],function(e,bD){c.fx.step[bD]=function(bE){c.style(bE.elem,bD,Math.max(0,bE.now))}});if(c.expr&&c.expr.filters){c.expr.filters.animated=function(e){return c.grep(c.timers,function(bD){return e===bD.elem}).length}}function D(bF){if(!X[bF]){var e=aA.body,bD=c("<"+bF+">").appendTo(e),bE=bD.css("display");bD.remove();if(bE==="none"||bE===""){if(!bf){bf=aA.createElement("iframe");bf.frameBorder=bf.width=bf.height=0}e.appendChild(bf);if(!q||!bf.createElement){q=(bf.contentWindow||bf.contentDocument).document;q.write((aA.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");q.close()}bD=q.createElement(bF);q.body.appendChild(bD);bE=c.css(bD,"display");e.removeChild(bf)}X[bF]=bE}return X[bF]}var ab=/^t(?:able|d|h)$/i,aj=/^(?:body|html)$/i;if("getBoundingClientRect" in aA.documentElement){c.fn.offset=function(bQ){var bG=this[0],bJ;if(bQ){return this.each(function(e){c.offset.setOffset(this,bQ,e)})}if(!bG||!bG.ownerDocument){return null}if(bG===bG.ownerDocument.body){return c.offset.bodyOffset(bG)}try{bJ=bG.getBoundingClientRect()}catch(bN){}var bP=bG.ownerDocument,bE=bP.documentElement;if(!bJ||!c.contains(bE,bG)){return bJ?{top:bJ.top,left:bJ.left}:{top:0,left:0}}var bK=bP.body,bL=aQ(bP),bI=bE.clientTop||bK.clientTop||0,bM=bE.clientLeft||bK.clientLeft||0,bD=bL.pageYOffset||c.support.boxModel&&bE.scrollTop||bK.scrollTop,bH=bL.pageXOffset||c.support.boxModel&&bE.scrollLeft||bK.scrollLeft,bO=bJ.top+bD-bI,bF=bJ.left+bH-bM;return{top:bO,left:bF}}}else{c.fn.offset=function(bN){var bH=this[0];if(bN){return this.each(function(bO){c.offset.setOffset(this,bN,bO)})}if(!bH||!bH.ownerDocument){return null}if(bH===bH.ownerDocument.body){return c.offset.bodyOffset(bH)}var bK,bE=bH.offsetParent,bD=bH,bM=bH.ownerDocument,bF=bM.documentElement,bI=bM.body,bJ=bM.defaultView,e=bJ?bJ.getComputedStyle(bH,null):bH.currentStyle,bL=bH.offsetTop,bG=bH.offsetLeft;while((bH=bH.parentNode)&&bH!==bI&&bH!==bF){if(c.support.fixedPosition&&e.position==="fixed"){break}bK=bJ?bJ.getComputedStyle(bH,null):bH.currentStyle;bL-=bH.scrollTop;bG-=bH.scrollLeft;if(bH===bE){bL+=bH.offsetTop;bG+=bH.offsetLeft;if(c.support.doesNotAddBorder&&!(c.support.doesAddBorderForTableAndCells&&ab.test(bH.nodeName))){bL+=parseFloat(bK.borderTopWidth)||0;bG+=parseFloat(bK.borderLeftWidth)||0}bD=bE;bE=bH.offsetParent}if(c.support.subtractsBorderForOverflowNotVisible&&bK.overflow!=="visible"){bL+=parseFloat(bK.borderTopWidth)||0;bG+=parseFloat(bK.borderLeftWidth)||0}e=bK}if(e.position==="relative"||e.position==="static"){bL+=bI.offsetTop;bG+=bI.offsetLeft}if(c.support.fixedPosition&&e.position==="fixed"){bL+=Math.max(bF.scrollTop,bI.scrollTop);bG+=Math.max(bF.scrollLeft,bI.scrollLeft)}return{top:bL,left:bG}}}c.offset={bodyOffset:function(e){var bE=e.offsetTop,bD=e.offsetLeft;if(c.support.doesNotIncludeMarginInBodyOffset){bE+=parseFloat(c.css(e,"marginTop"))||0;bD+=parseFloat(c.css(e,"marginLeft"))||0}return{top:bE,left:bD}},setOffset:function(bF,bO,bI){var bJ=c.css(bF,"position");if(bJ==="static"){bF.style.position="relative"}var bH=c(bF),bD=bH.offset(),e=c.css(bF,"top"),bM=c.css(bF,"left"),bN=(bJ==="absolute"||bJ==="fixed")&&c.inArray("auto",[e,bM])>-1,bL={},bK={},bE,bG;if(bN){bK=bH.position();bE=bK.top;bG=bK.left}else{bE=parseFloat(e)||0;bG=parseFloat(bM)||0}if(c.isFunction(bO)){bO=bO.call(bF,bI,bD)}if(bO.top!=null){bL.top=(bO.top-bD.top)+bE}if(bO.left!=null){bL.left=(bO.left-bD.left)+bG}if("using" in bO){bO.using.call(bF,bL)}else{bH.css(bL)}}};c.fn.extend({position:function(){if(!this[0]){return null}var bE=this[0],bD=this.offsetParent(),bF=this.offset(),e=aj.test(bD[0].nodeName)?{top:0,left:0}:bD.offset();bF.top-=parseFloat(c.css(bE,"marginTop"))||0;bF.left-=parseFloat(c.css(bE,"marginLeft"))||0;e.top+=parseFloat(c.css(bD[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(bD[0],"borderLeftWidth"))||0;return{top:bF.top-e.top,left:bF.left-e.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||aA.body;while(e&&(!aj.test(e.nodeName)&&c.css(e,"position")==="static")){e=e.offsetParent}return e})}});c.each(["Left","Top"],function(bD,e){var bE="scroll"+e;c.fn[bE]=function(bH){var bF,bG;if(bH===R){bF=this[0];if(!bF){return null}bG=aQ(bF);return bG?("pageXOffset" in bG)?bG[bD?"pageYOffset":"pageXOffset"]:c.support.boxModel&&bG.document.documentElement[bE]||bG.document.body[bE]:bF[bE]}return this.each(function(){bG=aQ(this);if(bG){bG.scrollTo(!bD?bH:c(bG).scrollLeft(),bD?bH:c(bG).scrollTop())}else{this[bE]=bH}})}});function aQ(e){return c.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}c.each(["Height","Width"],function(bD,e){var bE=e.toLowerCase();c.fn["inner"+e]=function(){var bF=this[0];return bF?bF.style?parseFloat(c.css(bF,bE,"padding")):this[bE]():null};c.fn["outer"+e]=function(bG){var bF=this[0];return bF?bF.style?parseFloat(c.css(bF,bE,bG?"margin":"border")):this[bE]():null};c.fn[bE]=function(bH){var bI=this[0];if(!bI){return bH==null?null:this}if(c.isFunction(bH)){return this.each(function(bM){var bL=c(this);bL[bE](bH.call(this,bM,bL[bE]()))})}if(c.isWindow(bI)){var bJ=bI.document.documentElement["client"+e],bF=bI.document.body;return bI.document.compatMode==="CSS1Compat"&&bJ||bF&&bF["client"+e]||bJ}else{if(bI.nodeType===9){return Math.max(bI.documentElement["client"+e],bI.body["scroll"+e],bI.documentElement["scroll"+e],bI.body["offset"+e],bI.documentElement["offset"+e])}else{if(bH===R){var bK=c.css(bI,bE),bG=parseFloat(bK);return c.isNumeric(bG)?bG:bK}else{return this.css(bE,typeof bH==="string"?bH:bH+"px")}}}}});bi.jQuery=bi.$=c})(window);(function(){function w(b){console.log("$f.fireEvent",[].slice.call(b))}function s(b){if(!b||typeof b!="object"){return b}var d=new b.constructor();for(var c in b){if(b.hasOwnProperty(c)){d[c]=s(b[c])}}return d}function q(b,e){if(!b){return}var g,f=0,d=b.length;if(d===undefined){for(g in b){if(e.call(b[g],g,b[g])===false){break}}}else{for(var c=b[0];f<d&&e.call(c,f,c)!==false;c=b[++f]){}}return b}function C(b){return document.getElementById(b)}function u(b,c,d){if(typeof c!="object"){return b}if(b&&c){q(c,function(f,e){if(!d||typeof e!="function"){b[f]=e}})}return b}function o(b){var d=b.indexOf(".");if(d!=-1){var e=b.slice(0,d)||"*";var f=b.slice(d+1,b.length);var c=[];q(document.getElementsByTagName(e),function(){if(this.className&&this.className.indexOf(f)!=-1){c.push(this)}});return c}}function z(b){b=b||window.event;if(b.preventDefault){b.stopPropagation();b.preventDefault()}else{b.returnValue=false;b.cancelBubble=true}return false}function t(b,d,c){b[d]=b[d]||[];b[d].push(c)}function A(){return"_"+(""+Math.random()).slice(2,10)}var v=function(c,e,d){var f=this,g={},b={};f.index=e;if(typeof c=="string"){c={url:c}}u(this,c,true);q(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var l="on"+this;if(l.indexOf("*")!=-1){l=l.slice(0,l.length-1);var k="onBefore"+l.slice(2);f[k]=function(m){t(b,k,m);return f}}f[l]=function(m){t(b,l,m);return f};if(e==-1){if(f[k]){d[k]=f[k]}if(f[l]){d[l]=f[l]}}});u(this,{onCuepoint:function(k,l){if(arguments.length==1){g.embedded=[null,k];return f}if(typeof k=="number"){k=[k]}var m=A();g[m]=[k,l];if(d.isLoaded()){d._api().fp_addCuepoints(k,e,m)}return f},update:function(l){u(f,l);if(d.isLoaded()){d._api().fp_updateClip(l,e)}var m=d.getConfig();var k=(e==-1)?m.clip:m.playlist[e];u(k,l,true)},_fireEvent:function(n,G,m,l){if(n=="onLoad"){q(g,function(I,H){if(H[0]){d._api().fp_addCuepoints(H[0],e,I)}});return false}l=l||f;if(n=="onCuepoint"){var F=g[G];if(F){return F[1].call(d,l,m)}}if(G&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(n)!=-1){u(l,G);if(G.metaData){if(!l.duration){l.duration=G.metaData.duration}else{l.fullDuration=G.metaData.duration}}}var k=true;q(b[n],function(){k=this.call(d,l,G,m)});return k}});if(c.onCuepoint){var h=c.onCuepoint;f.onCuepoint.apply(f,typeof h=="function"?[h]:h);delete c.onCuepoint}q(c,function(l,k){if(typeof k=="function"){t(b,l,k);delete c[l]}});if(e==-1){d.onCuepoint=this.onCuepoint}};var r=function(g,e,f,c){var h=this,d={},b=false;if(c){u(d,c)}q(e,function(l,k){if(typeof k=="function"){d[l]=k;delete e[l]}});u(this,{animate:function(F,n,k){if(!F){return h}if(typeof n=="function"){k=n;n=500}if(typeof F=="string"){var l=F;F={};F[l]=n;n=500}if(k){var m=A();d[m]=k}if(n===undefined){n=500}e=f._api().fp_animate(g,F,n,m);return h},css:function(l,k){if(k!==undefined){var m={};m[l]=k;l=m}e=f._api().fp_css(g,l);u(h,e);return h},show:function(){this.display="block";f._api().fp_showPlugin(g);return h},hide:function(){this.display="none";f._api().fp_hidePlugin(g);return h},toggle:function(){this.display=f._api().fp_togglePlugin(g);return h},fadeTo:function(n,k,l){if(typeof k=="function"){l=k;k=500}if(l){var m=A();d[m]=l}this.display=f._api().fp_fadeTo(g,n,k,m);this.opacity=n;return h},fadeIn:function(k,l){return h.fadeTo(1,k,l)},fadeOut:function(k,l){return h.fadeTo(0,k,l)},getName:function(){return g},getPlayer:function(){return f},_fireEvent:function(m,n,l){if(m=="onUpdate"){var F=f._api().fp_getPlugin(g);if(!F){return}u(h,F);delete h.methods;if(!b){q(F.methods,function(){var H=""+this;h[H]=function(){var J=[].slice.call(arguments);var I=f._api().fp_invoke(g,H,J);return I==="undefined"||I===undefined?h:I}});b=true}}var k=d[m];if(k){var G=k.apply(h,n);if(m.slice(0,1)=="_"){delete d[m]}return G}return h}})};function D(L,f,m){var e=this,g=null,H=false,k,n,h=[],c={},d={},l,J,N,I,O,M;u(e,{id:function(){return l},isLoaded:function(){return(g!==null&&g.fp_play!==undefined&&!H)},getParent:function(){return L},hide:function(F){if(F){L.style.height="0px"}if(e.isLoaded()){g.style.height="0px"}return e},show:function(){L.style.height=M+"px";if(e.isLoaded()){g.style.height=O+"px"}return e},isHidden:function(){return e.isLoaded()&&parseInt(g.style.height,10)===0},load:function(F){if(!e.isLoaded()&&e._fireEvent("onBeforeLoad")!==false){var P=function(){k=L.innerHTML;if(k&&!flashembed.isSupported(f.version)){L.innerHTML=""}if(F){F.cached=true;t(d,"onLoad",F)}flashembed(L,f,{config:m})};var G=0;q(E,function(){this.unload(function(Q){if(++G==E.length){P()}})})}return e},unload:function(F){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){if(F){F(false)}return e}if(k.replace(/\s/g,"")!==""){if(e._fireEvent("onBeforeUnload")===false){if(F){F(false)}return e}H=true;try{if(g){g.fp_close();e._fireEvent("onUnload")}}catch(P){}var G=function(){g=null;L.innerHTML=k;H=false;if(F){F(true)}};setTimeout(G,50)}else{if(F){F(false)}}return e},getClip:function(F){if(F===undefined){F=I}return h[F]},getCommonClip:function(){return n},getPlaylist:function(){return h},getPlugin:function(P){var F=c[P];if(!F&&e.isLoaded()){var G=e._api().fp_getPlugin(P);if(G){F=new r(P,G,e);c[P]=F}}return F},getScreen:function(){return e.getPlugin("screen")},getControls:function(){return e.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return e.getPlugin("logo")._fireEvent("onUpdate")}catch(F){}},getPlay:function(){return e.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(F){return F?s(m):m},getFlashParams:function(){return f},loadPlugin:function(G,P,T,F){if(typeof T=="function"){F=T;T={}}var Q=F?A():"_";e._api().fp_loadPlugin(G,P,T,Q);var R={};R[Q]=F;var S=new r(G,null,e,R);c[G]=S;return S},getState:function(){return e.isLoaded()?g.fp_getState():-1},play:function(G,P){var F=function(){if(G!==undefined){e._api().fp_play(G,P)}else{e._api().fp_play()}};if(e.isLoaded()){F()}else{if(H){setTimeout(function(){e.play(G,P)},50)}else{e.load(function(){F()})}}return e},getVersion:function(){var F="flowplayer.js 3.2.6";if(e.isLoaded()){var G=g.fp_getVersion();G.push(F);return G}return F},_api:function(){if(!e.isLoaded()){throw"Flowplayer "+e.id()+" not loaded when calling an API method"}return g},setClip:function(F){e.setPlaylist([F]);return e},getIndex:function(){return N},_swfHeight:function(){return g.clientHeight}});q(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var G="on"+this;if(G.indexOf("*")!=-1){G=G.slice(0,G.length-1);var F="onBefore"+G.slice(2);e[F]=function(P){t(d,F,P);return e}}e[G]=function(P){t(d,G,P);return e}});q(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled").split(","),function(){var F=this;e[F]=function(P,Q){if(!e.isLoaded()){return e}var G=null;if(P!==undefined&&Q!==undefined){G=g["fp_"+F](P,Q)}else{G=(P===undefined)?g["fp_"+F]():g["fp_"+F](P)}return G==="undefined"||G===undefined?e:G}});e._fireEvent=function(G){if(typeof G=="string"){G=[G]}var F=G[0],T=G[1],V=G[2],W=G[3],X=0;if(m.debug){w(G)}if(!e.isLoaded()&&F=="onLoad"&&T=="player"){g=g||C(J);O=e._swfHeight();q(h,function(){this._fireEvent("onLoad")});q(c,function(Q,P){P._fireEvent("onUpdate")});n._fireEvent("onLoad")}if(F=="onLoad"&&T!="player"){return}if(F=="onError"){if(typeof T=="string"||(typeof T=="number"&&typeof V=="number")){T=V;V=W}}if(F=="onContextMenu"){q(m.contextMenu[T],function(Q,P){P.call(e)});return}if(F=="onPluginEvent"||F=="onBeforePluginEvent"){var aa=T.name||T;var Z=c[aa];if(Z){Z._fireEvent("onUpdate",T);return Z._fireEvent(V,G.slice(3))}return}if(F=="onPlaylistReplace"){h=[];var U=0;q(T,function(){h.push(new v(this,U++,e))})}if(F=="onClipAdd"){if(T.isInStream){return}T=new v(T,V,e);h.splice(V,0,T);for(X=V+1;X<h.length;X++){h[X].index++}}var S=true;if(typeof T=="number"&&T<h.length){I=T;var Y=h[T];if(Y){S=Y._fireEvent(F,V,W)}if(!Y||S!==false){S=n._fireEvent(F,V,W,Y)}}q(d[F],function(){S=this.call(e,T,V);if(this.cached){d[F].splice(X,1)}if(S===false){return false}X++});return S};function K(){if($f(L)){$f(L).getParent().innerHTML="";N=$f(L).getIndex();E[N]=e}else{E.push(e);N=E.length-1}M=parseInt(L.style.height,10)||L.clientHeight;l=L.id||"fp"+A();J=f.id||l+"_api";f.id=J;m.playerId=l;if(typeof m=="string"){m={clip:{url:m}}}if(typeof m.clip=="string"){m.clip={url:m.clip}}m.clip=m.clip||{};if(L.getAttribute("href",2)&&!m.clip.url){m.clip.url=L.getAttribute("href",2)}n=new v(m.clip,-1,e);m.playlist=m.playlist||[m.clip];var G=0;q(m.playlist,function(){var Q=this;if(typeof Q=="object"&&Q.length){Q={url:""+Q}}q(m.clip,function(R,S){if(S!==undefined&&Q[R]===undefined&&typeof S!="function"){Q[R]=S}});m.playlist[G]=Q;Q=new v(Q,G,e);h.push(Q);G++});q(m,function(R,Q){if(typeof Q=="function"){if(n[R]){n[R](Q)}else{t(d,R,Q)}delete m[R]}});q(m.plugins,function(R,Q){if(Q){c[R]=new r(R,Q,e)}});if(!m.plugins||m.plugins.controls===undefined){c.controls=new r("controls",null,e)}c.canvas=new r("canvas",null,e);k=L.innerHTML;function F(Q){var R=e.hasiPadSupport&&e.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(h[0].url)&&!R){return true}if(!e.isLoaded()&&e._fireEvent("onBeforeClick")!==false){e.load()}return z(Q)}function P(){if(k.replace(/\s/g,"")!==""){if(L.addEventListener){L.addEventListener("click",F,false)}else{if(L.attachEvent){L.attachEvent("onclick",F)}}}else{if(L.addEventListener){L.addEventListener("click",z,false)}e.load()}}setTimeout(P,0)}if(typeof L=="string"){var b=C(L);if(!b){throw"Flowplayer cannot access element: "+L}L=b;K()}else{K()}}var E=[];function B(b){this.length=b.length;this.each=function(c){q(b,c)};this.size=function(){return b.length}}window.flowplayer=window.$f=function(){var f=null;var g=arguments[0];if(!arguments.length){q(E,function(){if(this.isLoaded()){f=this;return false}});return f||E[0]}if(arguments.length==1){if(typeof g=="number"){return E[g]}else{if(g=="*"){return new B(E)}q(E,function(){if(this.id()==g.id||this.id()==g||this.getParent()==g){f=this;return false}});return f}}if(arguments.length>1){var b=arguments[1],e=(arguments.length==3)?arguments[2]:{};if(typeof b=="string"){b={src:b}}b=u({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:false},b);if(typeof g=="string"){if(g.indexOf(".")!=-1){var c=[];q(o(g),function(){c.push(new D(this,s(b),s(e)))});return new B(c)}else{var d=C(g);return new D(d!==null?d:g,b,e)}}else{if(g){return new D(g,b,e)}}}return null};u(window.$f,{fireEvent:function(){var c=[].slice.call(arguments);var b=$f(c[0]);return b?b._fireEvent(c.slice(1)):null},addPlugin:function(c,b){D.prototype[c]=b;return $f},each:q,extend:u});if(typeof jQuery=="function"){jQuery.fn.flowplayer=function(b,c){if(!arguments.length||typeof arguments[0]=="number"){var d=[];this.each(function(){var e=$f(this);if(e){d.push(e)}});return arguments.length?d[arguments[0]]:new B(d)}return this.each(function(){$f(this,s(b),c?s(c):{})})}}})();(function(){var q=typeof jQuery=="function";var l={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(q){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:l}}function k(){if(s.done){return false}var b=document;if(b&&b.getElementsByTagName&&b.getElementById&&b.body){clearInterval(s.timer);s.timer=null;for(var c=0;c<s.ready.length;c++){s.ready[c].call()}s.ready=null;s.done=true}}var s=q?jQuery:function(b){if(s.done){return b()}if(s.timer){s.ready.push(b)}else{s.ready=[b];s.timer=setInterval(k,13)}};function o(b,c){if(c){for(key in c){if(c.hasOwnProperty(key)){b[key]=c[key]}}}return b}function n(d){switch(m(d)){case"string":d=d.replace(new RegExp('(["\\\\])',"g"),"\\$1");d=d.replace(/^\s?(\d+)%/,"$1pct");return'"'+d+'"';case"array":return"["+t(d,function(e){return n(e)}).join(",")+"]";case"function":return'"function()"';case"object":var c=[];for(var b in d){if(d.hasOwnProperty(b)){c.push('"'+b+'":'+n(d[b]))}}return"{"+c.join(",")+"}"}return String(d).replace(/\s/g," ").replace(/\'/g,'"')}function m(b){if(b===null||b===undefined){return false}var c=typeof b;return(c=="object"&&b.push)?"array":c}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function t(d,e){var b=[];for(var c in d){if(d.hasOwnProperty(c)){b[c]=e(d[c])}}return b}function u(f,d){var g=o({},f);var e=document.all;var v='<object width="'+g.width+'" height="'+g.height+'"';if(e&&!g.id){g.id="_"+(""+Math.random()).substring(9)}if(g.id){v+=' id="'+g.id+'"'}if(g.cachebusting){g.src+=((g.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(g.w3c||!e){v+=' data="'+g.src+'" type="application/x-shockwave-flash"'}else{v+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}v+=">";if(g.w3c||e){v+='<param name="movie" value="'+g.src+'" />'}g.width=g.height=g.id=g.w3c=g.src=null;for(var c in g){if(g[c]!==null){v+='<param name="'+c+'" value="'+g[c]+'" />'}}var h="";if(d){for(var b in d){if(d[b]!==null){h+=b+"="+(typeof d[b]=="object"?n(d[b]):d[b])+"&"}}h=h.substring(0,h.length-1);v+='<param name="flashvars" value=\''+h+"' />"}v+="</object>";return v}function r(b,g,c){var d=flashembed.getVersion();o(this,{getContainer:function(){return b},getConf:function(){return g},getVersion:function(){return d},getFlashvars:function(){return c},getApi:function(){return b.firstChild},getHTML:function(){return u(g,c)}});var f=g.version;var e=g.expressInstall;var h=!f||flashembed.isSupported(f);if(h){g.onFail=g.version=g.expressInstall=null;b.innerHTML=u(g,c)}else{if(f&&e&&flashembed.isSupported([6,65])){o(g,{src:e});c={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};b.innerHTML=u(g,c)}else{if(b.innerHTML.replace(/\s/g,"")!==""){}else{b.innerHTML="<h2>Flash version "+f+" or greater is required</h2><h3>"+(d[0]>0?"Your version is "+d:"You have no flash plugin installed")+"</h3>"+(b.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(b.tagName=="A"){b.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!h&&g.onFail){var v=g.onFail.call(this);if(typeof v=="string"){b.innerHTML=v}}if(document.all){window[g.id]=document.getElementById(g.id)}}window.flashembed=function(c,b,d){if(typeof c=="string"){var f=document.getElementById(c);if(f){c=f}else{s(function(){flashembed(c,b,d)});return}}if(!c){return}if(typeof b=="string"){b={src:b}}var e=o({},l);o(e,b);return new r(c,e,d)};o(window.flashembed,{getVersion:function(){var b=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var c=navigator.plugins["Shockwave Flash"].description;if(typeof c!="undefined"){c=c.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var v=parseInt(c.replace(/^(.*)\..*$/,"$1"),10);var e=/r/.test(c)?parseInt(c.replace(/^.*r(.*)$/,"$1"),10):0;b=[v,e]}}else{if(window.ActiveXObject){try{var g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(f){try{g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b=[6,0];g.AllowScriptAccess="always"}catch(d){if(b[0]==6){return b}}try{g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(h){}}if(typeof g=="object"){c=g.GetVariable("$version");if(typeof c!="undefined"){c=c.replace(/^\S+\s+(.*)$/,"$1").split(",");b=[parseInt(c[0],10),parseInt(c[2],10)]}}}}return b},isSupported:function(d){var b=flashembed.getVersion();var c=(b[0]>d[0])||(b[0]==d[0]&&b[1]>=d[1]);return c},domReady:s,asString:n,getHTML:u});if(q){jQuery.fn.flashembed=function(c,d){var b=null;this.each(function(){b=flashembed(this,c,d)});return c.api===false?this:b}}})();(function(b){dOptions={expires:365,domain:"",secure:false,path:"/"};b.cookie=function(c){return b.getCookie(c)};b.getCookie=function(k){var g=null;if(document.cookie&&document.cookie!=""){var f=document.cookie.split(";");for(var d=0;d<f.length;d++){var c=jQuery.trim(f[d]);if(c.substring(0,k.length+1)==(k+"=")){g=decodeURIComponent(c.substring(k.length+1));break}}}try{return JSON.parse(g)}catch(h){return g}};b.subCookie=function(d,c){return b.getSubCookie(d,c)};b.getSubCookie=function(d,c){var d=b.getCookie(d);if(!d||typeof d!="object"){return null}return d[c]};b.setCookie=function(l,k,e){var e=typeof e!="undefined"?b.extend(dOptions,e):dOptions;var h="; path="+(e.path);var f=e.domain?"; domain="+(e.domain):"";var g=e.secure?"; secure":"";if(k&&(typeof k=="function"||typeof k=="object")){k=JSON.stringify(k)}k=encodeURIComponent(k);var d;if(typeof e.expires=="number"){d=new Date();d.setTime(d.getTime()+(e.expires*24*60*60*1000))}else{d=e.expires}var c=e.expires==""?"":"; expires="+d.toUTCString();document.cookie=[l,"=",k,c,h,f,g].join("")};b.setSubCookie=function(f,e,h,d){var d=typeof d!="undefined"?b.extend(dOptions,d):dOptions;var c=b.getCookie(f);var g=c&&typeof c=="object"?c:{};g[e]=h;b.setCookie(f,g,d)};b.removeSubCookie=function(d,c){var e=b.getCookie(d);if(e&&typeof e=="object"&&typeof e[c]!="undefined"){delete e[c];b.setCookie(d,e)}};b.removeCookie=function(d,c){if(b.getCookie(d)){b.setCookie(d,"",{expires:-1},c)}};b.clearCookie=function(c){b.setCookie(c,"")}})(jQuery);if(!this.JSON){this.JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());
/*!	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
var swfobject=function(){var J="undefined",v="object",Y="Shockwave Flash",ac="ShockwaveFlash.ShockwaveFlash",u="application/x-shockwave-flash",X="SWFObjectExprInst",D="onreadystatechange",U=window,m=document,z=navigator,Z=false,aa=[k],s=[],T=[],O=[],o,W,K,H,P=false,b=false,r,M,q=true,S=function(){var ag=typeof m.getElementById!=J&&typeof m.getElementsByTagName!=J&&typeof m.createElement!=J,an=z.userAgent.toLowerCase(),ae=z.platform.toLowerCase(),ak=ae?/win/.test(ae):/win/.test(an),ai=ae?/mac/.test(ae):/mac/.test(an),al=/webkit/.test(an)?parseFloat(an.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ad=!+"\v1",am=[0,0,0],ah=null;if(typeof z.plugins!=J&&typeof z.plugins[Y]==v){ah=z.plugins[Y].description;if(ah&&!(typeof z.mimeTypes!=J&&z.mimeTypes[u]&&!z.mimeTypes[u].enabledPlugin)){Z=true;ad=false;ah=ah.replace(/^.*\s+(\S+\s+\S+$)/,"$1");am[0]=parseInt(ah.replace(/^(.*)\..*$/,"$1"),10);am[1]=parseInt(ah.replace(/^.*\.(.*)\s.*$/,"$1"),10);am[2]=/[a-zA-Z]/.test(ah)?parseInt(ah.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof U.ActiveXObject!=J){try{var aj=new ActiveXObject(ac);if(aj){ah=aj.GetVariable("$version");if(ah){ad=true;ah=ah.split(" ")[1].split(",");am=[parseInt(ah[0],10),parseInt(ah[1],10),parseInt(ah[2],10)]}}}catch(af){}}}return{w3:ag,pv:am,wk:al,ie:ad,win:ak,mac:ai}}(),n=function(){if(!S.w3){return}if((typeof m.readyState!=J&&m.readyState=="complete")||(typeof m.readyState==J&&(m.getElementsByTagName("body")[0]||m.body))){g()}if(!P){if(typeof m.addEventListener!=J){m.addEventListener("DOMContentLoaded",g,false)}if(S.ie&&S.win){m.attachEvent(D,function(){if(m.readyState=="complete"){m.detachEvent(D,arguments.callee);g()}});if(U==top){(function(){if(P){return}try{m.documentElement.doScroll("left")}catch(ad){setTimeout(arguments.callee,0);return}g()})()}}if(S.wk){(function(){if(P){return}if(!/loaded|complete/.test(m.readyState)){setTimeout(arguments.callee,0);return}g()})()}w(g)}}();function g(){if(P){return}try{var af=m.getElementsByTagName("body")[0].appendChild(I("span"));af.parentNode.removeChild(af)}catch(ag){return}P=true;var ad=aa.length;for(var ae=0;ae<ad;ae++){aa[ae]()}}function Q(ad){if(P){ad()}else{aa[aa.length]=ad}}function w(ae){if(typeof U.addEventListener!=J){U.addEventListener("load",ae,false)}else{if(typeof m.addEventListener!=J){m.addEventListener("load",ae,false)}else{if(typeof U.attachEvent!=J){l(U,"onload",ae)}else{if(typeof U.onload=="function"){var ad=U.onload;U.onload=function(){ad();ae()}}else{U.onload=ae}}}}}function k(){if(Z){ab()}else{N()}}function ab(){var ad=m.getElementsByTagName("body")[0];var ag=I(v);ag.setAttribute("type",u);var af=ad.appendChild(ag);if(af){var ae=0;(function(){if(typeof af.GetVariable!=J){var ah=af.GetVariable("$version");if(ah){ah=ah.split(" ")[1].split(",");S.pv=[parseInt(ah[0],10),parseInt(ah[1],10),parseInt(ah[2],10)]}}else{if(ae<10){ae++;setTimeout(arguments.callee,10);return}}ad.removeChild(ag);af=null;N()})()}else{N()}}function N(){var am=s.length;if(am>0){for(var al=0;al<am;al++){var ae=s[al].id;var ah=s[al].callbackFn;var ag={success:false,id:ae};if(S.pv[0]>0){var ak=d(ae);if(ak){if(L(s[al].swfVersion)&&!(S.wk&&S.wk<312)){C(ae,true);if(ah){ag.success=true;ag.ref=F(ae);ah(ag)}}else{if(s[al].expressInstall&&G()){var ao={};ao.data=s[al].expressInstall;ao.width=ak.getAttribute("width")||"0";ao.height=ak.getAttribute("height")||"0";if(ak.getAttribute("class")){ao.styleclass=ak.getAttribute("class")}if(ak.getAttribute("align")){ao.align=ak.getAttribute("align")}var an={};var ad=ak.getElementsByTagName("param");var ai=ad.length;for(var aj=0;aj<ai;aj++){if(ad[aj].getAttribute("name").toLowerCase()!="movie"){an[ad[aj].getAttribute("name")]=ad[aj].getAttribute("value")}}V(ao,an,ae,ah)}else{t(ak);if(ah){ah(ag)}}}}}else{C(ae,true);if(ah){var af=F(ae);if(af&&typeof af.SetVariable!=J){ag.success=true;ag.ref=af}ah(ag)}}}}}function F(ag){var ad=null;var ae=d(ag);if(ae&&ae.nodeName=="OBJECT"){if(typeof ae.SetVariable!=J){ad=ae}else{var af=ae.getElementsByTagName(v)[0];if(af){ad=af}}}return ad}function G(){return !b&&L("6.0.65")&&(S.win||S.mac)&&!(S.wk&&S.wk<312)}function V(ag,ah,ad,af){b=true;K=af||null;H={success:false,id:ad};var ak=d(ad);if(ak){if(ak.nodeName=="OBJECT"){o=h(ak);W=null}else{o=ak;W=ad}ag.id=X;if(typeof ag.width==J||(!/%$/.test(ag.width)&&parseInt(ag.width,10)<310)){ag.width="310"}if(typeof ag.height==J||(!/%$/.test(ag.height)&&parseInt(ag.height,10)<137)){ag.height="137"}m.title=m.title.slice(0,47)+" - Flash Player Installation";var aj=S.ie&&S.win?"ActiveX":"PlugIn",ai="MMredirectURL="+U.location.toString().replace(/&/g,"%26")+"&MMplayerType="+aj+"&MMdoctitle="+m.title;if(typeof ah.flashvars!=J){ah.flashvars+="&"+ai}else{ah.flashvars=ai}if(S.ie&&S.win&&ak.readyState!=4){var ae=I("div");ad+="SWFObjectNew";ae.setAttribute("id",ad);ak.parentNode.insertBefore(ae,ak);ak.style.display="none";(function(){if(ak.readyState==4){ak.parentNode.removeChild(ak)}else{setTimeout(arguments.callee,10)}})()}A(ag,ah,ad)}}function t(ae){if(S.ie&&S.win&&ae.readyState!=4){var ad=I("div");ae.parentNode.insertBefore(ad,ae);ad.parentNode.replaceChild(h(ae),ad);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}else{ae.parentNode.replaceChild(h(ae),ae)}}function h(ah){var ag=I("div");if(S.win&&S.ie){ag.innerHTML=ah.innerHTML}else{var ae=ah.getElementsByTagName(v)[0];if(ae){var ai=ae.childNodes;if(ai){var ad=ai.length;for(var af=0;af<ad;af++){if(!(ai[af].nodeType==1&&ai[af].nodeName=="PARAM")&&!(ai[af].nodeType==8)){ag.appendChild(ai[af].cloneNode(true))}}}}}return ag}function A(ao,am,ae){var ad,ag=d(ae);if(S.wk&&S.wk<312){return ad}if(ag){if(typeof ao.id==J){ao.id=ae}if(S.ie&&S.win){var an="";for(var ak in ao){if(ao[ak]!=Object.prototype[ak]){if(ak.toLowerCase()=="data"){am.movie=ao[ak]}else{if(ak.toLowerCase()=="styleclass"){an+=' class="'+ao[ak]+'"'}else{if(ak.toLowerCase()!="classid"){an+=" "+ak+'="'+ao[ak]+'"'}}}}}var al="";for(var aj in am){if(am[aj]!=Object.prototype[aj]){al+='<param name="'+aj+'" value="'+am[aj]+'" />'}}ag.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+an+">"+al+"</object>";T[T.length]=ao.id;ad=d(ao.id)}else{var af=I(v);af.setAttribute("type",u);for(var ai in ao){if(ao[ai]!=Object.prototype[ai]){if(ai.toLowerCase()=="styleclass"){af.setAttribute("class",ao[ai])}else{if(ai.toLowerCase()!="classid"){af.setAttribute(ai,ao[ai])}}}}for(var ah in am){if(am[ah]!=Object.prototype[ah]&&ah.toLowerCase()!="movie"){f(af,ah,am[ah])}}ag.parentNode.replaceChild(af,ag);ad=af}}return ad}function f(af,ad,ae){var ag=I("param");ag.setAttribute("name",ad);ag.setAttribute("value",ae);af.appendChild(ag)}function E(ae){var ad=d(ae);if(ad&&ad.nodeName=="OBJECT"){if(S.ie&&S.win){ad.style.display="none";(function(){if(ad.readyState==4){c(ae)}else{setTimeout(arguments.callee,10)}})()}else{ad.parentNode.removeChild(ad)}}}function c(af){var ae=d(af);if(ae){for(var ad in ae){if(typeof ae[ad]=="function"){ae[ad]=null}}ae.parentNode.removeChild(ae)}}function d(af){var ad=null;try{ad=m.getElementById(af)}catch(ae){}return ad}function I(ad){return m.createElement(ad)}function l(af,ad,ae){af.attachEvent(ad,ae);O[O.length]=[af,ad,ae]}function L(af){var ae=S.pv,ad=af.split(".");ad[0]=parseInt(ad[0],10);ad[1]=parseInt(ad[1],10)||0;ad[2]=parseInt(ad[2],10)||0;return(ae[0]>ad[0]||(ae[0]==ad[0]&&ae[1]>ad[1])||(ae[0]==ad[0]&&ae[1]==ad[1]&&ae[2]>=ad[2]))?true:false}function B(ai,ae,aj,ah){if(S.ie&&S.mac){return}var ag=m.getElementsByTagName("head")[0];if(!ag){return}var ad=(aj&&typeof aj=="string")?aj:"screen";if(ah){r=null;M=null}if(!r||M!=ad){var af=I("style");af.setAttribute("type","text/css");af.setAttribute("media",ad);r=ag.appendChild(af);if(S.ie&&S.win&&typeof m.styleSheets!=J&&m.styleSheets.length>0){r=m.styleSheets[m.styleSheets.length-1]}M=ad}if(S.ie&&S.win){if(r&&typeof r.addRule==v){r.addRule(ai,ae)}}else{if(r&&typeof m.createTextNode!=J){r.appendChild(m.createTextNode(ai+" {"+ae+"}"))}}}function C(af,ad){if(!q){return}var ae=ad?"visible":"hidden";if(P&&d(af)){d(af).style.visibility=ae}else{B("#"+af,"visibility:"+ae)}}function R(ae){var af=/[\\\"<>\.;]/;var ad=af.exec(ae)!=null;return ad&&typeof encodeURIComponent!=J?encodeURIComponent(ae):ae}var e=function(){if(S.ie&&S.win){window.attachEvent("onunload",function(){var ai=O.length;for(var ah=0;ah<ai;ah++){O[ah][0].detachEvent(O[ah][1],O[ah][2])}var af=T.length;for(var ag=0;ag<af;ag++){E(T[ag])}for(var ae in S){S[ae]=null}S=null;for(var ad in swfobject){swfobject[ad]=null}swfobject=null})}}();return{registerObject:function(ah,ad,ag,af){if(S.w3&&ah&&ad){var ae={};ae.id=ah;ae.swfVersion=ad;ae.expressInstall=ag;ae.callbackFn=af;s[s.length]=ae;C(ah,false)}else{if(af){af({success:false,id:ah})}}},getObjectById:function(ad){if(S.w3){return F(ad)}},embedSWF:function(ah,an,ak,am,ae,ag,af,aj,al,ai){var ad={success:false,id:an};if(S.w3&&!(S.wk&&S.wk<312)&&ah&&an&&ak&&am&&ae){C(an,false);Q(function(){ak+="";am+="";var ap={};if(al&&typeof al===v){for(var ar in al){ap[ar]=al[ar]}}ap.data=ah;ap.width=ak;ap.height=am;var at={};if(aj&&typeof aj===v){for(var aq in aj){at[aq]=aj[aq]}}if(af&&typeof af===v){for(var ao in af){if(typeof at.flashvars!=J){at.flashvars+="&"+ao+"="+af[ao]}else{at.flashvars=ao+"="+af[ao]}}}if(L(ae)){var au=A(ap,at,an);if(ap.id==an){C(an,true)}ad.success=true;ad.ref=au}else{if(ag&&G()){ap.data=ag;V(ap,at,an,ai);return}else{C(an,true)}}if(ai){ai(ad)}})}else{if(ai){ai(ad)}}},switchOffAutoHideShow:function(){q=false},ua:S,getFlashPlayerVersion:function(){return{major:S.pv[0],minor:S.pv[1],release:S.pv[2]}},hasFlashPlayerVersion:L,createSWF:function(af,ae,ad){if(S.w3){return A(af,ae,ad)}else{return undefined}},showExpressInstall:function(af,ag,ad,ae){if(S.w3&&G()){V(af,ag,ad,ae)}},removeSWF:function(ad){if(S.w3){E(ad)}},createCSS:function(ag,af,ae,ad){if(S.w3){B(ag,af,ae,ad)}},addDomLoadEvent:Q,addLoadEvent:w,getQueryParamValue:function(ag){var af=m.location.search||m.location.hash;if(af){if(/\?/.test(af)){af=af.split("?")[1]}if(ag==null){return R(af)}var ae=af.split("&");for(var ad=0;ad<ae.length;ad++){if(ae[ad].substring(0,ae[ad].indexOf("="))==ag){return R(ae[ad].substring((ae[ad].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(b){var ad=d(X);if(ad&&o){ad.parentNode.replaceChild(o,ad);if(W){C(W,true);if(S.ie&&S.win){o.style.display="block"}}if(K){K(H)}}b=false}}}}();function cert_getReferrer14(){var b=document.referrer;try{if(self!=top){b=top.document.referrer}}catch(c){b=document.referrer}return b}DEFAULT_PIVOT_NAME="cert_Pivot";DEFAULT_REDIRECT_TIME=3000;DEFAULT_PERIODIC_REDIRECT_TIME=60000;DEFAULT_ORIGIN_COOKIE_NAME="cert_Origin";var cert_CustomCounters=null;var cert_CustomAttributes=null;function cert_qVal(g){var f=String(document.location).indexOf("?");if(f!=-1){var c=String(document.location).substring(f+1);var d=c.split("&");for(var b=0;b<d.length;b++){var e=d[b].split("=");if(e[0]==g){return e[1]}}}return null}function cert_getCookie(f){var c=document.cookie;var e=f+"=";var d=c.indexOf("; "+e);if(d==-1){d=c.indexOf(e);if(d!=0){return null}}else{d+=2}var b=document.cookie.indexOf(";",d);if(b==-1){b=c.length}return unescape(c.substring(d+e.length,b))}function cert_setCookie(f,g,e,c,b,d){document.cookie=f+"="+escape(g)+((e)?"; expires="+e.toGMTString():"")+((c)?"; path="+c:"")+((b)?"; domain="+b:"")+((d)?"; secure":"")}function cert_getReferrer(){var referrer=document.referrer;if(self.cert_getReferrer14){return cert_getReferrer14();
/*@cc_on
  @if(@_jscript_version >= 5 )
   try { 
      if ( self != top ) referrer = top.document.referrer;
   } catch(e) {};
  @end
  @*/
}return referrer}function cert_getProtocol(){if(window&&window.location&&window.location.protocol){return window.location.protocol}return null}function cert_setOrigin(){var g=cert_getCookie(DEFAULT_ORIGIN_COOKIE_NAME);if(!g){var d=cert_getReferrer();if(d){var f=new RegExp("https?://([^/]+)");var b=f.exec(d);if(b){var e=f.exec(document.location);if(e){if(b[1]!=e[1]){g=b[1]}}}}if(!g){g="directo"}cert_setCookie(DEFAULT_ORIGIN_COOKIE_NAME,g)}}function cert_getFlashVersion(){var flashVersion=-1;if(navigator.plugins&&navigator.plugins.length){var objFlash=navigator.plugins["Shockwave Flash"];if(objFlash){if(objFlash.description){flashDesc=objFlash.description;flashVersion=flashDesc.charAt(flashDesc.indexOf(".")-1)}}if(navigator.plugins["Shockwave Flash 2.0"]){flashVersion=2}}else{if(navigator.mimeTypes&&navigator.mimeTypes.length){x=navigator.mimeTypes["application/x-shockwave-flash"];if(x&&x.enabledPlugin){flashVersion=0}
/*@cc_on
	for(var i = 10; i > 0; i--) {
		try {
			var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);
			flashVersion = i;
			break;
		} catch(e){}
	}	
	@*/
}}return flashVersion}function cert_getURL(g,b,e){var d,c;d="otro";var h=cert_qVal("url_origen");var f=cert_getProtocol();if(f!="https:"){f="http:"}if(h!=null&&h!=""){d=h}else{d=escape(cert_getReferrer())}c=f+"//hits.e.cl/cert/hit.dll?sitio_id="+g+"&path="+b+"&referer="+d;c+="&java="+navigator.javaEnabled()+"&flash="+cert_getFlashVersion();if(e){c+=e}return c}function cert_addCustomAttribute(c,b){if(!cert_CustomAttributes){cert_CustomAttributes=new Object()}cert_CustomAttributes[c]=b}function cert_addCustomCounter(c,b){if(b&&b>0){if(!cert_CustomCounters){cert_CustomCounters=new Object()}if(cert_CustomCounters[c]){cert_CustomCounters[c]+=b}else{cert_CustomCounters[c]=b}}}function cert_getCustomTags(){var c="";var e="",d="";if(cert_CustomAttributes){e="ct_atrib=";for(var b in cert_CustomAttributes){e+=b+":"+cert_CustomAttributes[b]+";"}}if(cert_CustomCounters){d="ct_acum=";for(var b in cert_CustomCounters){d+=b+":"+cert_CustomCounters[b]+";"}}if(e||d){if(e){c+="&"+e}if(d){c+="&"+d}}return c}function cert_getURL_eCommerce(e,b,f){var d=null;if((d=cert_getCookie(DEFAULT_ORIGIN_COOKIE_NAME))){cert_addCustomAttribute("origin",d)}if(f){cert_addCustomCounter("money",f)}var c=cert_getCustomTags();return cert_getURL(e,b,c)}function cert_registerHit(d,b,e){var c="&cert_cachebuster="+(1+Math.floor(Math.random()*10000));if(!e){e=DEFAULT_PIVOT_NAME}if(document.images){if(document.images[e]){document.images[e].src=cert_getURL(d,b,c)}}}function cert_registerHitAndRedirect(e,c,b,d){cert_registerHit(c,b,d);setTimeout("location.href = '"+e+"'",DEFAULT_REDIRECT_TIME)}function cert_registerHitAndOpenWindow(f,d,b,e,h,c,g){cert_registerHit(d,b,e);if(!h){h="Downloads"}if(!c){c="toolbar=no,location=no,directories=no,status=yes,menubar=no, scrollbars=no,resizable=no,width=425,height=510,screenX=20,screenY=20"}window.open(f,h,c,g);return false}function cert_registerHitAndReplaceOtherFrame(e,f,c,b,d){cert_registerHitAndOpenWindow(e,c,b,d,f,0,true)}function cert_registerHitAndReplaceThisFrame(e,c,b,d){cert_registerHitAndRedirect(e,c,b,d)}function cert_registerHitAndDownloadFile(e,c,b,d){cert_registerHitAndRedirect(e,c,b,d)}function cert_getAnchor(b){return'<img src="'+b+'" width="1" height="1" border="0" alt="Certifica.com">'}function tagCertifica(c,b){document.writeln(cert_getAnchor(cert_getURL(c,b)))}function tagCertifica_eCommerce(d,c,b){document.writeln(cert_getAnchor(cert_getURL_eCommerce(d,c,b)))}function cert_registerPeriodicHit(c,b,d,e){if(!d){d=DEFAULT_PIVOT_NAME}if(!e){e=DEFAULT_PERIODIC_REDIRECT_TIME}cert_registerHit(c,b,d);setTimeout("cert_registerPeriodicHit( "+c+', "'+b+'", "'+d+'", '+e+")",e)}cert_setOrigin();var Formatos={texto:0,TEXTO:0,galeria:1,GALERIA:1,video:2,VIDEO:2,otro:3,OTRO:3};var GrupoTematica=1;var Temas={deportes:0,DEPORTES:0,noticias:1,NOTICIAS:1,entretenimiento:2,ENTRETENIMIENTO:2,blogs:3,BLOGS:3};function hitNota(c,f,g,e,d){if(d==undefined){var b=f.split("/");d=b[0];if(d==""){d=b[1]}}if(e==undefined){e=Formatos.TEXTO}g=edit_normalizaString(g);d=edit_normalizaString(d);edit_generarHit(c,f,g,e,d)}function hitNotaTematica(c,g,h,e,d,f){if(d==undefined){var b=g.split("/");d=b[0];if(d==""){d=b[1]}}if(e==undefined){e=Formatos.TEXTO}h=edit_normalizaString(h);d=edit_normalizaString(d);if(f==undefined){f=Temas.OTRO}edit_generarHitTematica(c,g,h,e,d,f)}function edit_generarHit(c,h,k,f,e){var b="&proc_id=editorial&nombre="+k+"&formato="+f+"&seccion="+e;var d=cert_getURL(c,h,b);var g=Math.round(Math.random()*1000000);d=d+"&rand="+g;(new Image).src=d}function edit_generarHitTematica(f,l,h,k,d,e){var c="&proc_id=editorial&nombre="+h+"&formato="+k+"&seccion="+d;c+="&tg="+GrupoTematica+"&tc="+e+"&t=1";var b=cert_getURL(f,l,c);var g=Math.round(Math.random()*1000000);b=b+"&rand="+g;(new Image).src=b}function edit_normalizaString(b){var c=b;c=c.toLowerCase();c=c.replace(/[\xE1]/g,"a");c=c.replace(/[\xE9]/g,"e");c=c.replace(/[\xED]/g,"i");c=c.replace(/[\xF3]/g,"o");c=c.replace(/[\xFA]/g,"u");c=c.replace(/[^0-9a-z]/g,"_");return c}function changeMinTab(b){var c="tab."+b;if(window.lastMinTab&&window.lastMinTab!=b){var d={"calendar.minamin.match":"Ver Fecha","calendar.minamin.nextmatch":"Ver PrÃ³xima Fecha","calendar.minamin.positions":"Ver Posiciones","calendar.minamin.live":"Ver En Vivo"};addGAEvent("Calendario y Posiciones",d[b])}if(c){c=$(toObject(c));c.parent().children("li").removeClass("selected");c.addClass("selected")}c=$(toObject(b));c.parent().children("div").hide();c.fadeIn("slow");if(toObject(b).innerHTML==""){toObject(b).innerHTML="<br /><br /><br />";updateMinList(toObject("minCalendarFilter").value,b)}window.lastMinTab=b}function updateMinList(c,b,d){if(d){addGAEvent("Calendario y Posiciones","Cambiar a "+$("#minCalendarFilter option:selected").text());var e=$(toObject(b));e.parent().children().html("");e.html("<br /><br /><br />")}window.lastMinTab=b;requestInto(null,intra_base_url+"services/",b,{service:b,action:"list",option:c})}function changeMinAMinTab(b,c){if(window.lastMinAMinTab&&window.lastMinAMinTab!=b){var d={"minamin.previous":"Ver Previa","minamin.minamin":"Ver Minuto A Minuto","minamin.chronicle":"Ver CrÃ³nica"};addGAEvent("Minuto A Minuto",d[b])}if(c){c=$(c);c.parent().children("li").removeClass("selected");c.addClass("selected")}c=$(toObject(b));c.parent().children("div").hide();c.fadeIn("slow");window.lastMinAMinTab=b}function toggleMinTeam(c,b){toggleMinEvents("t"+c,b);$("#te"+c+" input").attr("checked",b)}function toggleMinPlayer(c,b){toggleMinEvents("p"+c,b)}function toggleMinEvents(c,b){if(b){showMinEvents(c)}else{hideMinEvents(c)}}function hideMinEvents(b){var c=$("#mmEventsList ."+b);c.slideUp()}function showMinEvents(b){var c=$("#mmEventsList ."+b);c.slideDown()}function highlightPlayer(b){$("#pc"+b).addClass("highlight");$("#mmEventsList div.p"+b).addClass("highlight");$("#mmGList div.p"+b).addClass("highlight")}function unHighlightPlayer(b){$("#pc"+b).removeClass("highlight");$("#mmEventsList div.p"+b).removeClass("highlight");$("#mmGList div.p"+b).removeClass("highlight")}function initMinAMinActions(){$("#mmEventsList div.e").each(function(b){var d=this.className.split(" ");for(var e=0;e<d.length;e++){if(d[e].indexOf("p")==0){$(this).data("player",d[e].replace("p",""))}else{if(d[e].indexOf("t")==0){$(this).data("team",d[e].replace("t",""))}}}});$("#mmGList div.g").each(function(b){var d=this.className.split(" ");for(var e=0;e<d.length;e++){if(d[e].indexOf("p")==0){$(this).data("player",d[e].replace("p",""))}else{if(d[e].indexOf("t")==0){$(this).data("team",d[e].replace("t",""))}}}});$(".mmTEvents div.p").each(function(b){$(this).data("player",this.id.replace("pc",""))});$(".mmTEvents").delegate("div.p","mouseover mouseleave",function(b){if(b.type=="mouseover"){highlightPlayer($(this).data("player"))}else{unHighlightPlayer($(this).data("player"))}});$("#mmEventsList").delegate("div.e","mouseover mouseleave",function(b){if($(this).data("player")){if(b.type=="mouseover"){highlightPlayer($(this).data("player"))}else{unHighlightPlayer($(this).data("player"))}}});$("#mmGList").delegate("div.g","mouseover mouseleave",function(b){if($(this).data("player")){if(b.type=="mouseover"){highlightPlayer($(this).data("player"))}else{unHighlightPlayer($(this).data("player"))}}});$(".mmTEvents div.p").delegate("input","click",function(b){toggleMinPlayer(this.id.replace("pl",""),this.checked)})}window.MMatches={};function registerMinAMinMatch(e,f,b,d,c){window.MMatches[e]=new MINMatch(e,f,b,d,c)}function MINMatch(e,f,b,d,c){this.idMatch=e;this.idLocal=f;this.idVisitor=b;this.state=Number(c);this.initTime=d;this.matchTime=0;this.localTime=Math.round((new Date()).getTime()/1000);this.initLocalTime=this.localTime-d;this.states=new Array("No Iniciado",'<span class="wait">%T</span>',"%T","%T","%T",'<span class="wait">Medio Tiempo</span>',"%T","%T","%T","Finalizado","No Iniciado",'<span class="wait">Pausado</span>',"%T",'<span class="wait">2do. Medio Tiempo</span>',"%T","%T","%T","%T","%T","Finalizado");this.timeUpdate=function(){this.localTime=Math.round((new Date()).getTime()/1000);this.matchTime=this.localTime-this.initLocalTime;var o="";if(this.matchTime<0){var k=Math.floor(-this.matchTime/3600);var m=Math.floor((-this.matchTime-(k*3600))/60);var n=Math.floor((-this.matchTime-(k*3600)-(m*60)));o=(k<=9?"0":"")+k+":"+(m<=9?"0":"")+m+":"+(n<=9?"0":"")+n}else{if(this.state==1){this.state=2;this.eventsUpdate()}var h=Math.floor(this.matchTime/60);var g=this.matchTime-(h*60);o=(h<=9?"0":"")+h+":"+(g<=9?"0":"")+g}$("#mmTime").html(this.states[this.state].replace(/%T/,(this.matchTime<0?"-":"")+o));var m=976;var r=(m-90)/(95*60);var q=(m-76)/r;var l=Math.round(Math.min(q,Math.abs((this.matchTime>0?this.matchTime:0))));$("#mmTimeLine").css("background-position",("-"+(m-Math.round(l*r))+"px")+" 22px");if(this.state==9||this.state==19){$("#mmEventsList").children().removeClass("highlight");clearInterval(this.timeInterval);clearInterval(this.eventsInterval)}};this.timeUpdate();this.timeInterval=setInterval(new Function("window.MMatches["+this.idMatch+"].timeUpdate( )"),200);this.shapeEvents=function(B){if(Number(B.pr.cd)>1){this.state=Number(B.pr.cd)}var h=new Array();var u=$("#mmEventsList");u.children().removeClass("echange");u.children().addClass("fLaG");var k=0;var w=0;var g=0;var o=0;for(var l in B.ev){for(var r in B.ev[l]){for(var C=0;C<B.ev[l][r].length;C++){var z=B.ev[l][r][C];switch(r){case"ogoal":if(z.tm==this.idLocal){w++}else{k++}break;case"dpenalty":if(z.tm==this.idLocal){g++}else{o++}break;case"goal":case"penalty":if(z.tm==this.idLocal){k++}else{w++}break}var D=$("#evt"+z.ev);z.code=l+r+z.ds+z.pl+z.rl+z.st+z.tm+z.tp;D.removeClass("fLaG");if(D.length==0||!D.data("event")||D.data("event").code!=z.code){var t=$(document.createElement("div"));t.attr("id","evt"+z.ev);t.addClass("m"+l+" p"+(r=="init"?1:z.pl)+" t"+(Number(z.pl)>1?z.tm:"")+" "+(z.rl?"url":"")+" e"+r+" e "+(z.lc=="1"?"elocal":"evisitor")+(D.data("event")!=null?" echange":""));t.append('<div class="time">'+l+"&prime;</div>");t.append('<div class="icon"></div>');t.append('<div class="text">'+z.ds+"</div>");t.append('<div class="opts"></div>');t.append('<div class="time visitor">'+l+"&prime;</div>");if(z.rl){t.click(function(){showMinVideo("/videos"+$(this).data("event").rl,"<b>"+l+"&prime;</b> "+$(this).data("event").ds)})}if(D.length==0){t.slideUp("fast");u.prepend(t)}else{D.replaceWith(t)}D=t;D.data("event",z);D.data("player",z.pl);D.data("team",z.tm);D.mouseover(function(){if($(this).data("player")){highlightPlayer($(this).data("player"))}});D.mouseout(function(){if($(this).data("player")){unHighlightPlayer($(this).data("player"))}})}}}}var m=$("div.mmTEvents");m.children(".p").addClass("fLaG");for(var q in B.pl){var v=$("#pc"+q);var A=B.pl[q];v.removeClass("fLaG");if(v.length==0){var s=$("#te"+A.tm);var n=$(document.createElement("div"));n.attr("id","pc"+q);n.attr("title",A.fn+" "+A.ln);n.html('<label for="pl'+q+'">'+A.fn+" "+A.ln+'<input type="checkbox" id="pl'+q+'" checked="checked" /></label>');n.data("player",q);n.mouseover(function(){if($(this).data("player")){highlightPlayer($(this).data("player"))}});n.mouseout(function(){if($(this).data("player")){unHighlightPlayer($(this).data("player"))}});s.append(n)}}u.children(".echange").slideDown();u.children(".fLaG").slideUp(function(){$(this).remove()});m.children(".fLaG").slideUp(function(){$(this).remove()});if(this.state!=0&&this.state!=1&&this.state!=9&&this.state!=19){this.eventsInterval=setTimeout(new Function("window.MMatches["+this.idMatch+"].eventsUpdate( )"),1000*30)}};this.eventsUpdate=function(){$.getJSON("/matches/"+this.idMatch+"Match.json?localTime="+(new Date()).getTime(),new Function("window.MMatches["+this.idMatch+"].shapeEvents( arguments[0] )"))};this.eventsUpdate();return this}function showMinVideo(b,c){$("#mmVideoDesc").html(c);showVideo("mmVideoHolder",b);addGAEvent("Videos","Ver Gol",b);$("#mmVideos").slideDown()}function changeNoticesTab(b,c){window.lastNoticeTab=b;if(c){c=$(c);c.parent().children("div").removeClass("selected");c.addClass("selected")}c=$(toObject(b));c.parent().children("div").hide();c.fadeIn("slow");if(toObject(b).innerHTML==""){toObject(b).innerHTML="<br /><br /><br />";updateNoticesList(toObject("calendarFilter").value,toObject("teamFilter").value,b,0)}}function updateNoticesList(c,f,b,g,d){if(d){var e=$(toObject(b));e.parent().children().html("");e.html("<br /><br /><br />")}window.lastNoticeTab=b;requestInto(null,intra_base_url+"services/",b,{service:b,action:"list",option:c,search:f,start:g})}function changeNoticeHomeTab(b,d){var c="tab."+b;window.lastNoticeHomeTab=b;if(c){c=$(toObject(c));c.parent().children("li").removeClass("selected");c.addClass("selected")}c=$(toObject(b));c.parent().children("div").hide();c.fadeIn("slow");if(toObject(b).innerHTML==""){toObject(b).innerHTML="<br /><br /><br />";updateNoticeHomeList(toObject("notCalendarFilter").value,b,d)}}function updateNoticeHomeList(c,b,f,d){if(d){var e=$(toObject(b));e.parent().children().html("");e.html("<br /><br /><br />")}window.lastNoticeHomeTab=b;requestInto(null,intra_base_url+"services/",b,{service:b,action:"list",option:c,start:f})}function validateAudioAuth(b){addJSLoad("http://widgets.digg.com/buttons.js");addJSLoad("http://www.google.com/buzz/api/button.js");addJSLoad("http://platform.twitter.com/widgets.js");addJSLoad("http://connect.facebook.net/es_ES/all.js#xfbml=1");addJSLoad("http://static.ak.fbcdn.net/connect.php/js/FB.Share");requestInto(null,intra_base_url+"Scripts/sendComent.php","commentsAuth",{idFile:b,service:"audio.auth",action:"form"});updateCommentCount(b,intra_base_url);updateGalleryCommentList(b);if(window.currrentUser==null){}}function updateAudioCommentList(b,c){if(!c||c<0){c=0}requestInto(null,intra_base_url+"servlet/readComments.php","commentsHolder",{idFile:b,start:c})}window.audioProperties={plugins:{controls:{timeColor:"rgba(250, 141, 25, 1)",height:20,borderRadius:"9",bufferGradient:"none",autoHide:false,fullscreen:false,backgroundColor:"rgba(0,0,0,1)",bufferColor:"rgba(10, 24, 50, 1)",progressGradient:"medium",opacity:1,volumeSliderColor:"rgba(10, 24, 50, 1)",buttonColor:"#FFFFFF",mute:true,backgroundGradient:[0.5,0.2,0],buttonOverColor:"rgba(10, 24, 50, 1)",timeBgColor:"rgba(0, 0, 0, 0)",scrubberBarHeightRatio:0.7,sliderColor:"#000000",spacing:{time:2,volume:6,scrubber:3,all:4},tooltipColor:"rgba(10, 24, 50, 1)",durationColor:"rgba(255, 255, 255, 1)",timeBorder:"1px solid rgba(0, 0, 0, 0.3)",progressColor:"rgba(250, 141, 25, 1)",volume:true,scrubber:true,builtIn:false,sliderHeightRatio:0.4,barHeightRatio:1,volumeSliderHeightRatio:0.4,volumeBarHeightRatio:1,volumeColor:"rgba(250, 141, 25, 1)",margins:[2,6,2,6],zIndex:0,bottom:0,tooltips:null}},clip:{autoPlay:true,url:null,onBegin:function(b){if(b.type=="audio"){addGAEvent("Audios - Detalle","Iniciado",b.url)}},onStart:function(b){if(b.type=="audio"){addGAEvent("Audios - Detalle","Reproducir",b.url)}},onPause:function(b){if(b.type=="audio"){addGAEvent("Audios - Detalle","Pausar",b.url,parseInt(this.getTime()))}},onResume:function(b){if(b.type=="audio"){addGAEvent("Audios - Detalle","Reanudar",b.url,parseInt(this.getTime()))}},onSeek:function(b){if(b.type=="audio"){addGAEvent("Audios - Detalle","Posicionar",b.url,parseInt(this.getTime()))}},onStop:function(b){if(b.type=="audio"){addGAEvent("Audios - Detalle","Detener",b.url,parseInt(this.getTime()))}},onFinish:function(b){if(b.type=="audio"){addGAEvent("Audios - Detalle","Terminado",b.url,parseInt(this.getTime()))}}},screen:{height:60,top:0},onLoad:function(){if(this.getClip().type=="audio"){addGAEvent("Audios - Detalle","Inicializado",this.getClip().url)}},onFullscreen:function(){if(this.getClip().type=="audio"){addGAEvent("Audios - Detalle","Maximizar",this.getClip().url)}},onFullscreenExit:function(){if(this.getClip().type=="audio"){addGAEvent("Audios - Detalle","Restaurar",this.getClip().url)}},onVolume:function(b){if(this.getClip().type=="audio"){addGAEvent("Audios - Detalle","Volumen",this.getClip().url,parseInt(b))}}};function showAudio(b,c){window.audioProperties.clip.url=c;if($f(b)&&$f(b).isLoaded()){$f(b).stop();$f(b).play(window.audioProperties.url)}else{$f(b,intra_base_url+"site/media/flowplayer-3.2.7.swf",window.audioProperties)}}function changeBlogsTab(b,c){window.lastBlogTab=b;if(c){c=$(c);c.parent().children("div").removeClass("selected");c.addClass("selected")}c=$(toObject(b));c.parent().children("div").hide();c.fadeIn("slow");if(toObject(b).innerHTML==""){toObject(b).innerHTML="<br /><br /><br />";updateBlogsList(toObject("calendarFilter").value,toObject("teamFilter").value,toObject("bloggerFilter").value,b,0)}}function updateBlogsList(c,g,e,b,h,d){if(d){var f=$(toObject(b));f.parent().children().html("");f.html("<br /><br /><br />")}window.lastBlogTab=b;requestInto(null,intra_base_url+"services/",b,{service:b,action:"list",option:c,search:g,restrict:e,start:h})}function bloggerZoneInit(){window.bZS=null;var b=Math.floor(Math.random()*10);$("#bloggersContent a").each(function(c){this.selected=false;$(this).fadeTo("slow",0.4);$(this).mouseenter(function(){if(!this.selected){$(this).css("opacity",0.8)}});$(this).mouseleave(function(){if(!this.selected){$(this).css("opacity",0.4)}});if(c==b){$(this).click()}})}function bloggerZoneSelect(b){if(b!=window.bZS){if(window.bZS){$("#bblogger_"+window.bZS).get(0).selected=false;$("#bblogger_"+window.bZS).css("opacity",0.4)}window.bZS=b;$("#bblogger_"+window.bZS).get(0).selected=true;$("#bblogger_"+window.bZS).css("opacity",1);requestInto(null,intra_base_url+"services/","bloggerZone",{service:"blog.home.blogger",action:"view",search:b})}}window.lastIndexImage=0;function showImage(e,f,d,c){$("#"+f).fadeOut(1000,function(){$(this).attr("src",e);$(this).load(function(){$(this).fadeIn("slow")}).error(function(){$(this).attr("src",intra_base_url+"site/images/empty.gif")})});var b=$(d).parent().parent().find("a");b.removeClass("selected");$(d).addClass("selected");window.lastIndexImage=c;$("#galleryImageLeft").toggle(window.lastIndexImage>0);$("#galleryImageRight").toggle(window.lastIndexImage<b.length-1)}function nextImage(c){var b=$("#"+c).find("a");if(window.lastIndexImage<b.length-1){b.eq(window.lastIndexImage+1).click()}}function previousImage(c){var b=$("#"+c).find("a");if(window.lastIndexImage>0){b.eq(window.lastIndexImage-1).click()}}function validateGalleryAuth(b){addJSLoad("http://widgets.digg.com/buttons.js");addJSLoad("http://www.google.com/buzz/api/button.js");addJSLoad("http://platform.twitter.com/widgets.js");addJSLoad("http://connect.facebook.net/es_ES/all.js#xfbml=1");addJSLoad("http://static.ak.fbcdn.net/connect.php/js/FB.Share");requestInto(null,intra_base_url+"Scripts/sendComent.php","commentsAuth",{idFile:b,service:"gallery.auth",action:"form"});updateCommentCount(b,intra_base_url);updateGalleryCommentList(b);if(window.currrentUser==null){}}function updateGalleryCommentList(b,c){if(!c||c<0){c=0}requestInto(null,intra_base_url+"servlet/readComments.php","commentsHolder",{idFile:b,start:c})}function validateImageAuth(b){addJSLoad("http://widgets.digg.com/buttons.js");addJSLoad("http://www.google.com/buzz/api/button.js");addJSLoad("http://platform.twitter.com/widgets.js");addJSLoad("http://connect.facebook.net/es_ES/all.js#xfbml=1");addJSLoad("http://static.ak.fbcdn.net/connect.php/js/FB.Share");requestInto(null,intra_base_url+"Scripts/sendComent.php","commentsAuth",{idFile:b,service:"gallery.auth",action:"form"});updateCommentCount(b,intra_base_url);updateImageCommentList(b);if(window.currrentUser==null){}}function updateImageCommentList(b,c){if(!c||c<0){c=0}requestInto(null,intra_base_url+"servlet/readComments.php","commentsHolder",{idFile:b,start:c})}function changeImagesTab(b,c){window.lastImagesTab=b;if(c){c=$(c);c.parent().children("div").removeClass("selected");c.addClass("selected")}c=$(toObject(b));c.parent().children("div").hide();c.fadeIn("slow");if(toObject(b).innerHTML==""){toObject(b).innerHTML="<br /><br /><br />";updateImagesList(toObject("imagesFilter").value,toObject("subImagesFilter").value,b,0)}}function updateImagesList(c,f,b,g,d){if(d){var e=$(toObject(b));e.parent().children().html("");e.html("<br /><br /><br />")}window.lastImagesTab=b;requestInto(null,intra_base_url+"services/",b,{service:b,action:"list",option:c,search:f,start:g})}function changeMediaTab(b,c,f){hideActualMediaAudio();if(window.lastMediaTab&&window.lastMediaTab!=b){var e={"media.images":"Ver Imágenes","media.videos":"Ver Videos","media.audios":"Ver Audios"};addGAEvent("Multimedia",e[b])}if(c){c=$(c);c.parent().children("li").removeClass("selected");c.addClass("selected")}c=$(toObject(b));c.parent().children("div").hide();c.fadeIn("slow");if(toObject(b).innerHTML==""){toObject(b).innerHTML="<br /><br /><br />";f=(!isNaN(f)?f:0);updateMediaList(toObject("calendarFilter").value,toObject("teamFilter").value,b,f)}else{var d=$.getCookie(window.gGalCode);d.section=b;d["start"+b]=f;d.calendarFilter=toObject("calendarFilter").value;d.teamFilter=toObject("teamFilter").value;$.setCookie(window.gGalCode,d)}window.lastMediaTab=b}function updateMediaList(c,f,b,h,d){if(d){if(window.lastMediaOption!=c){addGAEvent("Multimedia","Filtrar "+$("#calendarFilter option:selected").text())}if(f&&window.lastMediaSearch!=f){addGAEvent("Multimedia","Filtrar "+$("#teamFilter option:selected").text())}var e=$(toObject(b));e.parent().children().html("");e.html("<br /><br /><br />")}window.lastMediaTab=b;window.lastMediaOption=c;window.lastMediaSearch=f;hideActualMediaAudio();var g=$.getCookie(window.gGalCode);if(g){g.section=b;g["start"+b]=h;g.calendarFilter=toObject("calendarFilter").value;g.teamFilter=toObject("teamFilter").value;$.setCookie(window.gGalCode,g)}requestInto(null,intra_base_url+"services/",b,{service:b,action:"list",option:c,search:f,start:h})}window.actualMediaAudio=null;function hideActualMediaAudio(){if(window.actualMediaAudio){$f("pHoldPlayer_"+window.actualMediaAudio).close();$("#pHold_"+window.actualMediaAudio).html("");$("#pHold_"+window.actualMediaAudio).slideUp("slow");window.actualMediaAudio=null}}function showMediaAudio(b,c){if(window.actualMediaAudio==b){$f("pHoldPlayer_"+window.actualMediaAudio).close();return}hideActualMediaAudio();window.actualMediaAudio=b;$("#pHold_"+window.actualMediaAudio).html('<div id="pHoldPlayer_'+window.actualMediaAudio+'" style="width:100%;height:20px;"></div>');showAudio("pHoldPlayer_"+window.actualMediaAudio,c);$("#pHold_"+window.actualMediaAudio).slideDown("slow")}function changeMediaHomeTab(b){var c="tab."+b;if(window.lastMediaHomeTab&&window.lastMediaHomeTab!=b){var d={"media.home.image":"Ver Imágenes","media.home.video":"Ver Videos","media.home.audio":"Ver Audios"};addGAEvent("Multimedia",d[b])}if(window.lastMediaHomeTab!=b&&c){c=$(toObject(c));c.parent().children("div").removeClass("selected");c.addClass("selected")}c=$(toObject(b));c.parent().children("div").hide();c.fadeIn("slow");if(toObject(b).innerHTML==""){toObject(b).innerHTML="<br /><br /><br />";updateMediaHomeList(b,0)}window.lastMediaHomeTab=b}function updateMediaHomeList(b,c){window.lastMediaHomeTab=b;requestInto(null,intra_base_url+"services/",b,{service:b,action:"list",option:toObject("media.home.dates").value,search:toObject("media.home.sections").value,restrict:toObject("media.home.viewed").value,start:c})}function registerPollActions(c,b){$(document).ready(new Function("shapePoll("+c+","+(b?b:"null")+");"))}function shapePoll(k,g){var f=$("#voteQ"+k);var c=$("#voteR"+k);var e=c.parent();var d=Math.max(f.height(),c.height());var b=(g?g:300);e.addClass("layers");e.height(d);e.width(b);f.addClass("layer");f.height(d);f.width(b);c.addClass("layer");c.height(d);c.width(b);f.show();c.hide()}function voteOnPoll(e,d){var c=$("#voteQ"+e);var b=c.find("input:checked");if(b.length<=0){c.find("input:eq(0)").focus();alert(unescape("%A1Debe seleccionar una opci%F3n!"))}else{zone=$("#voting"+e);zone.removeClass("btn L right");zone.html("Enviando voto...<br />");$("#voteQ"+e).fadeOut(null,function(){$("#voteQ"+e).remove()});$("#voteR"+e).fadeIn();requestInto(null,intra_base_url+"services/",zone.get(0),{idFile:e,idAnswer:b.val(),service:"poll.vote",action:"add"})}}function validateVideoAuth(b){addJSLoad("http://widgets.digg.com/buttons.js");addJSLoad("http://www.google.com/buzz/api/button.js");addJSLoad("http://platform.twitter.com/widgets.js");addJSLoad("http://connect.facebook.net/es_ES/all.js#xfbml=1");addJSLoad("http://static.ak.fbcdn.net/connect.php/js/FB.Share");requestInto(null,intra_base_url+"Scripts/sendComent.php","commentsAuth",{idFile:b,service:"gallery.auth",action:"form"});updateCommentCount(b,intra_base_url);updateGalleryCommentList(b);if(window.currrentUser==null){}}function updateVideoCommentList(b,c){if(!c||c<0){c=0}requestInto(null,intra_base_url+"servlet/readComments.php","commentsHolder",{idFile:b,start:c})}window.videoPrerollsRandPerPlay=true;window.videoPrerollsLimitPerPlay=1;window.videoPrerolls=new Array();window.videoProperties={plugins:{controls:{timeColor:"rgba(250, 141, 25, 1)",borderRadius:"9",bufferGradient:"none",autoHide:{enabled:true,fullsccreenOnly:false,hideDelay:2000},fullscreen:true,backgroundColor:"rgba(0,0,0,1)",bufferColor:"rgba(10, 24, 50, 1)",progressGradient:"medium",opacity:1,volumeSliderColor:"rgba(10, 24, 50, 1)",buttonColor:"#FFFFFF",mute:false,backgroundGradient:[0.5,0.2,0],buttonOverColor:"rgba(10, 24, 50, 1)",timeBgColor:"rgba(0, 0, 0, 0)",scrubberBarHeightRatio:0.3,sliderColor:"#000000",spacing:{time:2,volume:6,scrubber:3,all:4},tooltipColor:"rgba(10, 24, 50, 1)",durationColor:"rgba(255, 255, 255, 1)",timeBorder:"1px solid rgba(0, 0, 0, 0.3)",progressColor:"rgba(250, 141, 25, 1)",volume:true,scrubber:true,builtIn:false,sliderHeightRatio:0.25,barHeightRatio:0.3,scrubberHeightRatio:0.25,volumeSliderHeightRatio:0.3,volumeBarHeightRatio:0.25,volumeColor:"rgba(250, 141, 25, 1)",margins:[2,6,2,6],zIndex:0,bottom:0,playlist:true,fastBackward:false,fastForward:true}},clip:{autoBuffering:false,url:null,metaData:false,onBegin:function(b){if(b.preroll||b.type!="video"){this.getPlugin("controls").enable({all:false,fullscreen:true,volume:true})}else{this.getPlugin("controls").enable({all:true,fullscreen:true,volume:true})}if(b.preroll){for(var d=0;d<window.videoPrerolls.length;d++){if(window.videoPrerolls[d].url==b.url){window.videoPrerolls[d].played=true}}}if(b.type=="video"){addGAEvent("Videos - Detalle","Iniciado",b.url)}},onStart:function(b){if(b.type=="video"){addGAEvent("Videos - Detalle","Reproducir",b.url)}},onPause:function(b){if(b.type=="video"){addGAEvent("Videos - Detalle","Pausar",b.url,parseInt(this.getTime()))}},onResume:function(b){if(b.type=="video"){addGAEvent("Videos - Detalle","Reanudar",b.url,parseInt(this.getTime()))}},onSeek:function(b){if(b.type=="video"){addGAEvent("Videos - Detalle","Posicionar",b.url,parseInt(this.getTime()))}},onStop:function(b){if(b.type=="video"){addGAEvent("Videos - Detalle","Detener",b.url,parseInt(this.getTime()))}},onFinish:function(b){if(b.type=="video"){addGAEvent("Videos - Detalle","Terminado",b.url,parseInt(this.getTime()))}}},onLoad:function(){if(this.getClip().type=="video"){addGAEvent("Videos - Detalle","Inicializado",this.getClip().url)}},onFullscreen:function(){if(this.getClip().type=="video"){addGAEvent("Videos - Detalle","Maximizar",this.getClip().url)}},onFullscreenExit:function(){if(this.getClip().type=="video"){addGAEvent("Videos - Detalle","Restaurar",this.getClip().url)}},onVolume:function(b){if(this.getClip().type=="video"){addGAEvent("Videos - Detalle","Volumen",this.getClip().url,parseInt(b))}}};function showVideo(b,g){var e=[];var d=false;if(typeof(g)=="string"){g=[{url:g,autoPlay:true}]}for(var h=0;h<g.length;h++){if(g[h].type=="image"){g[h].duration=0;e.push(g[h])}}var f=0;if(window.videoPrerollsRandPerPlay&&Math.round(Math.random())==0){f=window.videoPrerollsLimitPerPlay}for(var h=0;h<window.videoPrerolls.length&&f<window.videoPrerollsLimitPerPlay;h++){if(!window.videoPrerolls[h].played){window.videoPrerolls[h].preroll=true;window.videoPrerolls[h].autoPlay=d;d=true;e.push(window.videoPrerolls[h]);f++}}for(var h=0;h<g.length;h++){if(g[h].type!="image"){g[h].autoPlay=d;d=true;e.push(g[h])}}window.videoProperties.playlist=e;if($f(b)&&$f(b).isLoaded()){$f(b).stop();$f(b).play(window.videoProperties.playlist)}else{$f(b,intra_base_url+"site/media/flowplayer-3.2.7.swf",window.videoProperties)}}function stopVideo(b){$f(b).stop()}function initTableRanks(){$("#rankTables table").delegate("td","mouseover mouseleave",function(d){if(d.type=="mouseover"){var g=$(this).parent();var b=$(this).parent().parent().parent();var c=b.parent().children(".submenuopts");var h=b.children("colgroup").eq($(this).index());$(this).addClass("hover");g.addClass("hover");h.addClass("hover");var f=$.trim(g.children("td").eq(1).text())+" "+parseInt($.trim(g.children("td").eq(0).text()),10)+"<sup>o</sup>";if($(this).index()>1){f+=" con: <b>"+$.trim($(this).text())+"</b> <em>"+b.find(".titles th").eq($(this).index()).attr("title")+"</em>";$(this).attr("title",$.trim(g.children("td").eq(1).text())+" "+$.trim($(this).text())+" "+b.find(".titles th").eq($(this).index()).attr("title"))}c.html(f)}else{var g=$(this).parent();var b=$(this).parent().parent().parent();var c=b.parent().children(".submenuopts");var h=b.children("colgroup").eq($(this).index());$(this).removeClass("hover");g.removeClass("hover");h.removeClass("hover");c.text("")}});$("#rankTables table").each(function(b){$(this).children("colgroup").each(hlTableRank)})}function hlTableRank(f){colsg=$(this);if(colsg.hasClass("avoid")){return}var m=colsg.parent().find("tbody tr");var n=Number($.trim(m.eq(0).children("td").eq(f).text()).replace(",","."));var l=n;var k={};for(var b=0;b<m.length;b++){var e=m.eq(b).children("td").eq(f);var d=Number($.trim(e.text()).replace(",","."));k["i"+d]=k["i"+d]||[];k["i"+d].push(e);if(d<=n){n=d}if(d>=l){l=d}}var g=colsg.hasClass("reverse");if(n!=l){if(k["i"+n]&&k["i"+n].length<=3){for(var h=0;h<k["i"+n].length;h++){$(k["i"+n][h]).addClass((!g?"min":"max"))}}if(k["i"+l]&&k["i"+l].length<=3){for(var h=0;h<k["i"+l].length;h++){$(k["i"+l][h]).addClass((!g?"max":"min"))}}}}function changeRankTab(b){var c="tab."+b;if(window.lastRankTab&&window.lastRankTab!=b){var d={"rank.clas":"Ver Clasificación","rank.recl":"Ver Reclasificación","rank.desc":"Ver Descenso"};addGAEvent("Posiciones",d[b])}if(c){c=$(toObject(c));c.parent().children("li").removeClass("selected");c.addClass("selected")}c=$(toObject(b));c.parent().children("div").hide();c.fadeIn("slow");window.lastRankTab=b}function changeRankPage(b,c){if(!c){addGAEvent("Posiciones","Cambiar a "+$("#rankCalendarFilter option:selected").text())}else{addGAEvent("Posiciones","Cambiar a "+$("#rankCalendarFilter option:selected").text()+" - "+$("#rankFaseFilter option:selected").text())}document.location="?idFile="+b+(c?"&fase="+c:"")}function changeRankGroup(b){$(toObject("rank.clas.g"+b)).parent().children("div").hide();$(toObject("rank.clas.g"+b)).show();addGAEvent("Posiciones","Cambiar a "+$("#rankCalendarFilter option:selected").text()+" - "+$("#rankFaseFilter option:selected").text()+" - "+$("#rankGroupFilter option:selected").text())}function siteSearch(b){addGAEvent(unescape("B%FAsqueda"),"Buscar");addGAEvent(unescape("B%FAsqueda"),"Criterios",b);return true}window.lastSearchTab=null;function changeSearchTab(b,c,f){if(window.lastSearchTab&&window.lastSearchTab!=b){var e={"search.articles":"Ver Noticias","search.blogs":"Ver Blogs","search.galleries":"Ver Galerías","search.videos":"Ver Videos","search.audios":"Ver Audios","search.matchs":"Ver Encuentros"};addGAEvent(unescape("B%FAsqueda"),e[b])}if(c){c=$(c);c.parent().children("li").removeClass("selected");c.addClass("selected")}c=$(toObject(b));c.parent().children("div").hide();c.fadeIn("slow");if(toObject(b).innerHTML==""){toObject(b).innerHTML="<br /><br /><br />";f=(!isNaN(f)?f:0);updateSearchList(b,f)}else{var d=$.getCookie(window.searchCode);d.section=b;d["start"+b]=f;d.searchKeyResults=toObject("searchKeyResults").value;$.setCookie(window.searchCode,d)}window.lastSearchTab=b}function updateSearchList(b,f,c){if(c){var d=$(toObject(b));d.parent().children().html("");d.html("<br /><br /><br />")}window.lastSearchTab=b;var e=$.getCookie(window.searchCode);if(e){e.section=b;e["start"+b]=f;e.searchKeyResults=toObject("searchKeyResults").value;$.setCookie(window.searchCode,e)}requestInto(null,intra_base_url+"services/",b,{service:b,action:"list",search:toObject("searchKeyResults").value,start:f})}function searchHighlight(b){var c=toObject("searchKeyResults").value.replace(/[ ]{2,}/g," ").trim().split(" ");$(toObject(b)).find(".searchText").each(function(d){var e=$(this).text()})}function searchHighlight1(b){var h=toObject("searchKeyResults").value.replace(/[ ]{2,}/g," ").trim().split(" ");var g="("+h.join("|",h)+")";var d="áéíóúâêîôûäëïöüñ";var f="aeiouaeiouaeioun";for(var k=0;k<d.lenght;k++){var e=new RegExp(g[k],"gi");g=g.replace(e,"["+g[k]+f[k]+"]")}$(toObject(b)).find(".searchText").each(function(l){var m=$(this).text();var c=new RegExp(g,"gi");m=m.replace(c,'<span class="searchMatch">$1</span>');$(this).html(m)})}function searchHighlight(b){var g="";if($("#searchKeyResults").attr("regExp")){g=$("#searchKeyResults").attr("regExp")}else{var h=toObject("searchKeyResults").value.replace(/[ ]{2,}/g," ").trim().split(" ");var g="("+h.join("|",h)+")";var d="áéíóúâêîôûäëïöüñç";var f="aeiouaeiouaeiounc";for(var k=0;k<d.length;k++){var e=new RegExp(d[k],"gi");g=g.replace(e,"["+d[k]+f[k]+"]")}for(var k=0;k<f.length;k++){var e=new RegExp(f[k],"gi");g=g.replace(e,"["+d[k]+f[k]+"]")}g=g.replace(/[\]]{1,}/gi,"]{1}");g=g.replace(/\[([^\]\[]+)\[([^\]\[]+)\[([^\]\[]+)\]/gi,"[$1$2$3]");g=g.replace(/\[([^\]\[]+)\[([^\]\[]+)\]/gi,"[$1$2]");$("#searchKeyResults").attr("regExp",g)}var e=new RegExp(g,"gi");$(toObject(b)).find(".searchText").each(function(c){var l=$(this).text();l=l.replace(e,'<span class="searchMatch">$1</span>');$(this).html(l)})}function popup(e,d,g,c,b,h,f){if(typeof(b)=="undefined"){b="center"}if(typeof(h)=="undefined"){h="middle"}if(typeof(f)=="undefined"){f=""}if(b.toLowerCase()=="center"){b=(screen.width-g)/2}else{if(b.toLowerCase()=="right"){b=(screen.width-g-30)}else{if(b<0){b=screen.width-g+b}else{b=0}}}if(h.toLowerCase()=="middle"){h=(screen.height-c)/2}else{if(h.toLowerCase()=="bottom"){h=(screen.height-c-60)}else{if(h<0){b=screen.height-c-h-30}else{h=0}}}if(typeof(d)=="undefined"||typeof(g)=="undefined"||typeof(c)=="undefined"){return open(e)}else{return open(e,d,"width="+g+",height="+c+",screenX="+b+",left="+b+",screenY="+h+",top="+h+","+f)}}function validateEmail(b){var c=0;if(b.length>7&&b.indexOf(" ",0)==-1){c=b.indexOf("@",0);if(c>2&&b.indexOf("@",c)&&b.indexOf(".",c)>(c+2)){c=b.indexOf(".",c);if(c>-1&&c<b.length-2){return true}}}return false}var font_size=9;var MAX=17;var MIN=11;function changeFont(b){font_size+=b;if(font_size>MAX){font_size=MAX}if(font_size<MIN){font_size=MIN}document.getElementsByTagName("body")[0].style.fontSize=font_size+"px"}function toObject(b){if(typeof(b)=="string"){return document.getElementById(b)}if(typeof(b.nodeName)!="undefined"){return b}return null}function jumpTo(b){document.location.href=b}function hideElement(b){b=toObject(b);if(b){b.style.visibility="hidden";b.style.display="none"}}function showElement(b){b=toObject(b);if(b){b.style.visibility="visible";b.style.display="block"}}function changeVisibility(b){b=toObject(b);if(b){if(b.style.visibility=="visible"){hideElement(b)}else{showElement(b)}}}function setElementPosition(c,b,d){c=toObject(c);c.style.position="absolute";c.style.left=b+"px";c.style.top=d+"px"}function isDate(f,g,c){if(f.toString().length==0){return false}if(c==null){g=(g==null)?"-":g;if(f.toString().indexOf(g)==-1){return false}var b=f.toString().split(g);if(b.length!=3){return false}f=b[0];g=b[1];c=b[2]}g=g-1;var d=new Date(f,g,c);var e=(d.getYear()<1000)?d.getYear()+1900:d.getYear();return((e==f)&&(g==d.getMonth())&&(c==d.getDate()))}function imagenChange(c,b){c=toObject(c);if(c){c.src=b}}function checkMaxChars(b,c){b=toObject(b);if(b&&b.value.length>c){b.value=b.value.substring(0,c)}}function innerChange(b,c){b=toObject(b);if(b){while(b.hasChildNodes()){b.removeChild(b.firstChild)}if(typeof(text)=="string"){b.appendChild(document.createTextNode(c))}else{b.appendChild(c)}}}function bookMark(b){var c=new Array();c=b.split("|");if(document.all){window.external.AddFavorite(c[0],c[1])}else{alert("Lo Sentimos, los usuarios de Netscape o Mozilla deben agregar a \nfavoritos manualmente desde el menu o haciendo uso de <Ctrl-D>")}}function moveElement(g,s,r,d,q,m,h,k){g=toObject(g);var c=g.style;var b=0;var t=0;var n=d;var l=q;if(n<=0){n=1}if(l<=0){l=1}var f=Number(c.left.replace("px",""));var o=Number(c.top.replace("px",""));if(Math.abs(s-f)>0){if(m){n=Math.ceil((d)*Math.abs(s-f)/100)}if(Math.abs(s-f)<Math.abs(n)+1){n=Math.abs(s-f)}b=(s-f)>=0?1:-1;f+=n*b;c.left=f+"px"}if(Math.abs(r-o)>0){if(m){l=Math.ceil((l)*Math.abs(r-o)/100)}if(Math.abs(r-o)<Math.abs(l)+1){l=Math.abs(r-o)}t=(r-o)>=0?1:-1;o+=l*t;c.top=o+"px"}if(b==0&&t==0){if(k!=undefined){var e=new Function(k);e()}}else{g.timeout=setTimeout("moveElement ( '"+g.id+"', "+s+", "+r+", "+d+", "+q+", "+m+", "+h+', "'+k+'" )',h)}}function compare(e,d){var c=e.toString().toLowerCase();var b=d.toString().toLowerCase();if(c==b){return 0}if(isNaN(c)&&isNaN(b)){return(c>b)?1:-1}return Number(c)-Number(b)}function sortTable(d){d=toObject(d);if(d){var e=d;while(e&&e.parentNode&&e.parentNode.nodeName.toLowerCase()!="table"){e=e.parentNode}if(e){var b=e.getElementsByTagName("tbody");for(var f=0;f<b.length;f++){sortTableRows(b[f],d.parentNode.cellIndex)}}}}function sortTableRows(g,b){var k=new Array();var e=new Array();for(var h=0;h<g.rows.length;h++){k[h]=g.rows[h].cloneNode(true);e[h]=g.rows[h].sectionRowIndex}var d=new Array();var f=new Array();for(h=0;h<e.length;h++){if(g.rows[h].cells[b]){f[h]=d[h]=[g.rows[h].cells[b].firstChild.nodeValue,e[h]]}else{f[h]=d[h]=["",e[h]]}}d.sort(compare);if(f.toString()==d.toString()){d.reverse()}for(h=0;h<g.rows.length;h++){g.replaceChild(k[d[h][1]],g.rows[h])}}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function MM_findObj(g,f){var e,c,b;if(!f){f=document}if((e=g.indexOf("?"))>0&&parent.frames.length){f=parent.frames[g.substring(e+1)].document;g=g.substring(0,e)}if(!(b=f[g])&&f.all){b=f.all[g]}for(c=0;!b&&c<f.forms.length;c++){b=f.forms[c][g]}for(c=0;!b&&f.layers&&c<f.layers.length;c++){b=MM_findObj(g,f.layers[c].document)}if(!b&&f.getElementById){b=f.getElementById(g)}return b}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}function MM_jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if(restore){selObj.selectedIndex=0}}function MM_nbGroup(f,e){var d,b,g,c=MM_nbGroup.arguments;if(f=="init"&&c.length>2){if((b=MM_findObj(c[2]))!=null&&!b.MM_init){b.MM_init=true;b.MM_up=c[3];b.MM_dn=b.src;if((g=document[e])==null){g=document[e]=new Array()}g[g.length]=b;for(d=4;d<c.length-1;d+=2){if((b=MM_findObj(c[d]))!=null){if(!b.MM_up){b.MM_up=b.src}b.src=b.MM_dn=c[d+1];g[g.length]=b}}}}else{if(f=="over"){document.MM_nbOver=g=new Array();for(d=1;d<c.length-1;d+=3){if((b=MM_findObj(c[d]))!=null){if(!b.MM_up){b.MM_up=b.src}b.src=(b.MM_dn&&c[d+2])?c[d+2]:((c[d+1])?c[d+1]:b.MM_up);g[g.length]=b}}}else{if(f=="out"){for(d=0;d<document.MM_nbOver.length;d++){b=document.MM_nbOver[d];b.src=(b.MM_dn)?b.MM_dn:b.MM_up}}else{if(f=="down"){g=document[e];if(g){for(d=0;d<g.length;d++){b=g[d];b.src=b.MM_up;b.MM_dn=0}}document[e]=g=new Array();for(d=2;d<c.length-1;d+=2){if((b=MM_findObj(c[d]))!=null){if(!b.MM_up){b.MM_up=b.src}b.src=b.MM_dn=(c[d+1])?c[d+1]:b.MM_up;g[g.length]=b}}}}}}}function diagLogin(){obj={divName:"ballingresar",div:diagIngresar};showBaloon(false,obj)}function EnvioAmigo2(b){if(document.getElementById("nombre_enviara").value==""){alert("Debes ingresar tu nombre");document.getElementById("nombre_enviara").focus();return}if(document.getElementById("correo_enviara")){alert("Debes ingresar tu correo electrónico");document.getElementById("correo_enviara").focus();return}if(document.getElementById("nombre_amigo_enviara")){alert("Debes ingresar el nombre de tu amigo");document.getElementById("nombre_amigo_enviara").focus();return}if(document.getElementById("correo_amigo_enviara")){alert("Debes ingresar el correo electrónico de tu amigo");document.getElementById("correo_amigo_enviara").focus();return}if(document.getElementById("texto_enviara")){alert("Debes ingresar un mensaje a enviar");document.getElementById("texto_enviara").focus();return}}window.executeScript=function(text){var startPos=text.indexOf("<script");if(startPos>=0){startPos=text.indexOf(">",startPos)+1}while(startPos>=0){var endPos=text.indexOf("<\/script>",startPos);var script=text.substring(startPos,endPos);if(window.execScript){window.execScript(script)}else{window.eval(script)}if(endPos>startPos){startPos=text.indexOf("<script",endPos);if(startPos>=0){startPos=text.indexOf(">",startPos)+1}}}};function disableDetails(d){if(d==undefined){d="detail"}var e=document.getElementById(d+"Content");var c=document.getElementById(d+"Search");c.style.display="block";e.style.display="none"}function getelement(d,c){var b;var e=d.elements;for(b=0;b<e.length;b++){if(e[b].name==c){return e[b]}}}function changeFormValue(e,d,f,c,h){var g=document.getElementById(e);if(g==undefined){return}var b=getelement(g,d);if(b==undefined){return}b.value=f;sendForm(e,c,h)}function sendForm(d,b,c){if(document.getElementById(d)){document.getElementById(d).method="post"}if(document.getElementById(b)){if(document.getElementById(b).innerHTML==""){document.getElementById(b).innerHTML="<br /><br /><br /><br />"}}requestInto(d,null,b)}var var_page_content=new Object();function sendFormBaseFantasy(f,c,e,h){var b=document.getElementById(c);var d=document.getElementById(f);if(b==undefined){return}if(d==undefined){return}var g={success:function(k){b.innerHTML=k.responseText;var_page_content[h]=k.responseText;executeScript(k.responseText);return false},failure:function(k){b.innerHTML=(e!="silent"?"Error en la Comunicacion.":"")}};if(var_page_content[h]==undefined){requestInto(d,null,null,{},false,g.success)}else{b.innerHTML=var_page_content[h];executeScript(var_page_content[h])}}window.videosHide=new Array();function ShowNomina(f,c,e,b,d){n1=document.getElementById(b);n2=document.getElementById(d);if(n1){n1.style.display="none"}if(n2){n2.style.display="block"}changeFormValue(e,"calendar",f,c)}function hideNomina(b,c){n1=document.getElementById(b);n2=document.getElementById(c);if(n1){n1.style.display="block"}if(n2){n2.style.display="none"}}function showPreviewPlayer(h,c,g,d){var f=document.getElementById(g);if(f){f.style.display="block";var b=getelement(document.getElementById(c),"idFile");if(b.value!=h){document.getElementById(g+"Content").innerHTML="";changeFormValue(c,"idFile",h,g+"Content")}}}function hidePreviewPlayer(c){var b=document.getElementById(c);if(b){b.style.display="none"}}var ctltime=undefined;function reloadForm(d,c,e,b,g,f){if(ctltime!=undefined){changeFormValue(d,c,e,b,g);ctltime=setTimeout('reloadForm("'+d+'", "'+c+'", "'+e+'", "'+b+'", "'+g+'", '+f+")",f)}}function stopReload(){clearTimeout(ctltime);ctltime=undefined}function reloadChat(d,c,e,b,g,f){changeFormValue(d,c,e,b,g);setTimeout('reloadChat("'+d+'", "'+c+'", "'+e+'", "'+b+'", "'+g+'", '+f+")",f)}function mostrarOcultar(b){if(document.getElementById(b).style.display=="none"){document.getElementById(b).style.display=""}else{document.getElementById(b).style.display="none"}}function changeEyelashes(b,e,k,g,c,f){if(c==undefined||!c){c="selected"}if(f==undefined||!f){f="notSelected"}for(var d=0;d<e;d++){var l=document.getElementById(k+d);var h=document.getElementById(g+d);if(l&&h){if(d==b){h.style.display="block";$("#"+l.id).removeClass(f).addClass(c)}else{h.style.display="none";$("#"+l.id).removeClass(c).addClass(f)}}}}function nuevaVentana(b){window.open(b,"nueva","")}var OptionsTmpARQ=new Array();var OptionsTmpDEF=new Array();var OptionsTmpVOL=new Array();var OptionsTmpDEL=new Array();function filterPlayers(d){var b=document.getElementById("teams"+d);for(i=0;i<b.length;i++){if(b[i].selected==true){var f=b[i].value}}var e=document.getElementById("players"+d);switch(d){case"ARQ":for(i=0;i<OptionsTmpARQ.length;i++){e.options[e.length]=OptionsTmpARQ[i]}OptionsTmpARQ=new Array();break;case"DEF":for(i=0;i<OptionsTmpDEF.length;i++){e.options[e.length]=OptionsTmpDEF[i]}OptionsTmpDEF=new Array();break;case"VOL":for(i=0;i<OptionsTmpVOL.length;i++){e.options[e.length]=OptionsTmpVOL[i]}OptionsTmpVOL=new Array();break;case"DEL":for(i=0;i<OptionsTmpDEL.length;i++){e.options[e.length]=OptionsTmpDEL[i]}OptionsTmpDEL=new Array();break}for(i=1;i<e.length;i++){id=e[i].value;tmp=id.split("|");id_team=tmp[0];if(f!=id_team&&f!=0){var c=new Option(e[i].text,e[i].value);switch(d){case"ARQ":OptionsTmpARQ.push(c);break;case"DEF":OptionsTmpDEF.push(c);break;case"VOL":OptionsTmpVOL.push(c);break;case"DEL":OptionsTmpDEL.push(c);break}e[i]=null;i--}}}function savePlayers(){for(j=0;j<players.length;j++){for(i=0;i<players[j].length;i++){if(players[j][i]==0){alertfan("<font size=2 color=white><b>No has seleccionado todos los jugadores.</b></font>");return}}}var_page_content=new Object();sendForm("form_player_store","containerFantasy")}function detailPlayer(g,d,f){var c=false;var b=0;for(j=0;j<players.length&&!c;j++){for(i=0;i<players[j].length&&!c;i++,b++){if(b==g){showPreviewPlayer(players[j][i]+"_"+d,"formPreviewPlayer","previewPlayer",f)}}}}function removePlayer(h){var e=false;var b=0;for(j=0;j<players.length&&!e;j++){for(i=0;i<players[j].length&&!e;i++,b++){if(b==h){players[j][i]=0;teams[j][i]=0;var f=document.getElementById("fan_opt_"+b);if(f){f.style.display="none"}var c=document.getElementById("fan_but_"+b);if(c){c.style.display="none"}var g=document.getElementById("fan_pla_"+b);if(g){if(g.style.filter){g.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='/Scripts/Fantasy/img/default.png')"}else{g.style.backgroundImage="";g.style.backgroundImage="url(/Scripts/Fantasy/img/default.png)"}}var d=document.getElementById("fan_pla_name_"+b);if(d){d.innerHTML=""}e=true}}}}function callToolTipPlayer(b,d){var c=document.getElementById("fan_but_"+b);if(c){c.parentNode.parentNode.parentNode.parentNode.appendChild(c.parentNode.parentNode.parentNode);if(d!=undefined){c.style.display=d?"block":"none"}else{if(c.style.display=="none"){c.style.display="block"}else{c.style.display="none"}}}}function callToolTipPlayerTransferences(b,d){var c=document.getElementById("fan_but_"+b);if(c){c.parentNode.parentNode.parentNode.appendChild(c.parentNode.parentNode);if(d!=undefined){c.style.display=d?"block":"none"}else{if(c.style.display=="none"){c.style.display="block"}else{c.style.display="none"}}}}function alertfan(c){var b=document.getElementById("fan_message");if(b){b.innerHTML=c;document.location.href="#fan_anchor"}else{alert(c)}}function selectPlayer(r,c,e,q){var m=0;var n=0;for(j=0;j<teams.length;j++){for(i=0;i<teams[j].length;i++){if(e==teams[j][i]){m++}if(r==players[j][i]){n++}}}if(m>=3){alertfan("<font size=2 color=white><b>No se pueden seleccionar m\xe1s jugadores de "+teamsName[e]+"</b></font>");return}if(n>0){alertfan("<font size=2 color=white><b>El jugador '"+c+"' ya se encuentra en tu n\xf3mina</b></font>");return}var s=false;var o=0;for(j=0;j<players.length;j++){for(i=0;i<players[j].length;i++,o++){if(q==j&&players[j][i]==0&&!s){players[q][i]=r;teams[q][i]=e;var d=document.getElementById("fan_opt_"+o);if(d){d.style.display="block"}callToolTipPlayer(o);var l=document.getElementById("fan_pla_"+o);if(l){if(l.style.filter){l.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='http://www.golgolgol.net/servlet/ShowImage.php?idFile="+e+"&contentName=player.png')"}else{newurl="url(http://www.golgolgol.net/servlet/ShowImage.php?idFile="+e+"&contentName=player.png)";l.style.backgroundImage="";l.style.backgroundImage=newurl}}var g=document.getElementById("fan_pla_name_"+o);if(g){g.innerHTML=c}var b=document.getElementById("fan_pla_image_"+o);if(b){b.innerHTML="";var k=document.createElement("IMG");k.src="http://www.golgolgol.net/servlet/ShowImage.php?idFile="+r+"&contentName=jugador.jpg";k.height="50";k.style.padding="2px";b.appendChild(k)}var h=document.getElementById("fan_id_player_"+o);if(h){h.value=r}var f=document.getElementById("team_id_player_"+o);if(f){f.value=e}s=true}if(players[j][i]>0&&players[j][i]!=r){callToolTipPlayer(o,0)}}}if(!s){alertfan("<font size=2 color=white><b>Ya seleccionaste a todos los jugadores en esa posici\xf3n</b></font>")}else{alertfan("<font size=2 color=white><b>Se agreg\xf3 el jugador '"+c+"' del equipo '"+teamsName[e]+"'</b></font>")}}function setCaptain(c){var b=0;for(j=0;j<players.length;j++){for(i=0;i<players[j].length;i++,b++){ply=document.getElementById("fan_cap_"+b);input=document.getElementById("id_captain_"+b);if(ply&&input){ply.src=intra_base_url+"site/scripts/juegos/fantasia/img/iconCaptain"+((b==c)?"":"Off")+".png";input.value=(b==c)?"true":"false";if(b==c){callToolTipPlayer(b,0)}}}}}function changePlayer(u){var d=false;var t=0;var f=0;var g=-1;var e=-1;var v=-1;var r=-1;for(j=0;j<players.length&&!d;j++){for(i=0;i<players[j].length;i++,t++){if(t==u){g=i;e=j;d=true}}if(d){v=i-1;r=j;f=t-1}}t=u;var o=document.getElementById("fan_player_container_"+u);var n=document.getElementById("fan_player_container_"+f);var k=document.getElementById("fan_id_player_"+u);var h=document.getElementById("fan_id_player_"+f);var c=document.getElementById("team_id_player_"+u);var b=document.getElementById("team_id_player_"+f);var C=o.innerHTML.replace(/ (id|name)=(["']?)([^0-9]*)([0-9]*)(["']?)/gi," $1=$2$3"+f+"$5").replace(/(["']?)(callToolTipPlayer|changePlayer|detailPlayer|setCaptain)\(([0-9]+)/g,"$1$2("+f);var z=k.value;var w=players[e][g];var s=teams[e][g];var q=c.value;o.innerHTML=n.innerHTML.replace(/ (id|name)=(["']?)([^0-9]*)([0-9]*)(["']?)/gi," $1=$2$3"+u+"$5").replace(/(["']?)(callToolTipPlayer|changePlayer|detailPlayer|setCaptain)\(([0-9]+)/g,"$1$2("+u);k.value=h.value;players[e][g]=players[r][v];teams[e][g]=teams[r][v];c.value=b.value;n.innerHTML=C;h.value=z;players[r][v]=w;teams[r][v]=s;b.value=q;var B=document.getElementById("fan_button_banq_"+u);var m=document.getElementById("fan_button_captain_"+u);var A=document.getElementById("fan_button_banq_"+f);var l=document.getElementById("fan_button_captain_"+f);B.style.display="inline";m.style.display="inline";A.style.display="none";l.style.display="none";callToolTipPlayer(f,0)}function getElementByClass(c){var b=document.getElementsByTagName("div");for(i=0;i<b.length;i++){if(b[i].className==c){return b[i]}}}function showFan(d,b){for(i=0;i<=b;i++){var c=document.getElementById("fantasy_opt"+i);if(c){c.className=(i==d)?"link_cabezote2":"link_cabezote"}}}function reWriteMenu(b){div=getElementByClass("cabezote");div.innerHTML=b}function popUp(URL,w,h){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+w+",height="+h+"');")}function getElementDimensions(c,b,d){return{height:getElementHeight(c,b,d),width:getElementWidth(c,b,d)}}function getElementWidth(m,h,d){var e=0;if(window.getComputedStyle){var b=document.defaultView.getComputedStyle(m,null);if(b.getPropertyValue("display")==="none"){return 0}e=parseInt(b.getPropertyValue("width"));if(/opera/i.test(navigator.userAgent)){e-=parseInt(b.getPropertyValue("padding-left"));e-=parseInt(b.getPropertyValue("padding-right"));e-=parseInt(b.getPropertyValue("border-left-width"));e-=parseInt(b.getPropertyValue("border-right-width"))}if(h){e+=parseInt(b.getPropertyValue("padding-left"));e+=parseInt(b.getPropertyValue("padding-right"))}if(d){e+=parseInt(b.getPropertyValue("border-left-width"));e+=parseInt(b.getPropertyValue("border-right-width"))}}else{if(m.currentStyle.display==="none"){return 0}var l=/thin|medium|thick/;e=m.offsetWidth;if(!d){var g=m.currentStyle.borderLeftWidth;var c=m.currentStyle.borderRightWidth;var n=document.createElement("div");if(m.offsetWidth>m.clientWidth&&m.currentStyle.borderLeftStyle!=="none"){if(!l.test(g)){n.style.width=g;m.parentNode.appendChild(n);e-=Math.round(n.offsetWidth);m.parentNode.removeChild(n)}else{n.style.width="10px";n.style.border=g+" "+m.currentStyle.borderLeftStyle+" #000000";m.parentNode.appendChild(n);e-=Math.round((n.offsetWidth-10)/2);m.parentNode.removeChild(n)}if(!l.test(c)){n.style.width=c;m.parentNode.appendChild(n);e-=Math.round(n.offsetWidth);m.parentNode.removeChild(n)}else{n.style.width="10px";n.style.border=c+" "+m.currentStyle.borderRightStyle+" #000000";m.parentNode.appendChild(n);e-=Math.round((n.offsetWidth-10)/2);m.parentNode.removeChild(n)}}}if(!h){var f=m.currentStyle.paddingLeft;var k=m.currentStyle.paddingRight;var n=document.createElement("div");n.style.width=f;m.parentNode.appendChild(n);e-=Math.round(n.offsetWidth);n.style.width=k;e-=Math.round(n.offsetWidth);m.parentNode.removeChild(n)}}return e}function getElementHeight(k,f,c){var n=0;if(window.getComputedStyle){var b=document.defaultView.getComputedStyle(k,null);if(b.getPropertyValue("display")==="none"){return 0}n=parseInt(b.getPropertyValue("height"));if(/opera/i.test(navigator.userAgent)){n-=parseInt(b.getPropertyValue("padding-top"));n-=parseInt(b.getPropertyValue("padding-bottom"));n-=parseInt(b.getPropertyValue("border-top-width"));n-=parseInt(b.getPropertyValue("border-bottom-width"))}if(f){n+=parseInt(b.getPropertyValue("padding-top"));n+=parseInt(b.getPropertyValue("padding-bottom"))}if(c){n+=parseInt(b.getPropertyValue("border-top-width"));n+=parseInt(b.getPropertyValue("border-bottom-width"))}}else{if(k.currentStyle.display==="none"){return 0}var h=/thin|medium|thick/;n=k.offsetHeight;if(!c){var e=k.currentStyle.borderTopWidth;var g=k.currentStyle.borderBottomWidth;var m=document.createElement("div");if(k.offsetHeight>k.clientHeight&&k.currentStyle.borderTopStyle!=="none"){if(!h.test(e)){m.style.width=e;k.parentNode.appendChild(m);n-=Math.round(m.offsetWidth);k.parentNode.removeChild(m)}else{m.style.width="10px";m.style.border=e+" "+k.currentStyle.borderTopStyle+" #000000";k.parentNode.appendChild(m);n-=Math.round((m.offsetWidth-10)/2);k.parentNode.removeChild(m)}}if(k.offsetHeight>k.clientHeight&&k.currentStyle.borderBottomStyle!=="none"){if(!h.test(g)){m.style.width=g;k.parentNode.appendChild(m);n-=Math.round(m.offsetWidth);k.parentNode.removeChild(m)}else{m.style.width="10px";m.style.border=g+" "+k.currentStyle.borderBottomStyle+" #000000";k.parentNode.appendChild(m);n-=Math.round((m.offsetWidth-10)/2);k.parentNode.removeChild(m)}}}if(!f){var l=k.currentStyle.paddingTop;var d=k.currentStyle.paddingBottom;var m=document.createElement("div");m.style.width=l;k.parentNode.appendChild(m);n-=Math.round(m.offsetWidth);m.style.width=d;n-=Math.round(m.offsetWidth);k.parentNode.removeChild(m)}}return n}function clearTextField(b,c){var d=document.getElementById(b);if(d&&d.tagName=="INPUT"&&d.type=="text"&&d.value==c){setTimeout(d.value="",500)}}function createSWFOverImages(){var b=new SWFObject('/LAYER.swf"',"swfpublicidad","500","280","8");b.addParam("allowscriptaccess","always");b.addParam("allowfullscreen","false");b.addParam("wmode","transparent");b.addVariable("width","500");b.addVariable("height","280");b.addVariable("javascriptid","swfpublicidad");b.addVariable("id","swfpublicidad");b.addVariable("movie","swfpublicidad");b.addVariable("enablejs","true");b.write("divPublicidad")}function findPosX(b){var c=0;if(b.offsetParent){while(1){c+=b.offsetLeft;if(!b.offsetParent){break}b=b.offsetParent}}else{if(b.x){c+=b.x}}return c}function findPosY(c){var b=0;if(c.offsetParent){while(1){b+=c.offsetTop;if(!c.offsetParent){break}c=c.offsetParent}}else{if(c.y){b+=c.y}}return b}function sendImage(c){var b=thisMovie("swfpublicidad");if(b&&b.setImageDay){b.setImageDay(c)}}function showPubImage(b,d){var c=document.getElementById("containerPublicidad");if(c){c.style.display="block";c.style.top=(findPosY(b)+b.height-22)+"px";c.style.left=(findPosX(b)+b.width-337)+"px";setTimeout("sendImage('"+d+"')",500)}}var timepub=undefined;function hiddenPubImage(){var b=document.getElementById("containerPublicidad");if(b){b.style.display="none"}}function clearTimePub(){clearTimeout(timepub);timepub=undefined}function delayPub(){timepub=setTimeout("hiddenPubImage()",1000)}function img_Move(b){document.layers.Menu.left=b.pageX;document.layers.Menu.top=b.pageY}function img_move2(){document.all.Menu.style.left=event.clientX+document.body.scrollLeft;document.all.Menu.style.top=event.clientY+document.body.scrollTop}function img_follow(){if(document.all){img_move2()}}function img_loaded(){if(document.layers){window.captureEvents(event.mousemove);window.onmousemove=img_Move}}HashTable=function(){this.length=0;this.items=new Object();this.setItem=function(b,c){this.items[b]=c;this.length++};this.count=function(){var c=0;for(var b in this.items){c++}return c};this.getValue=function(c){for(var b in this.items){if(b==c){return this.items[b]}}return undefined};this.keys=function(){var c=new Array();for(var b in this.items){c.push(b)}return c};this.removeItem=function(c){for(var b in this.items){if(b==c){}}return true}};function zoom(){var b=document.getElementById("zoomIn");if(b&&b.style.display=="none"){b.style.display="block"}else{if(b&&b.style.display=="block"){b.style.display="none"}}}function changeTabsMenu(e,g){var f=document.getElementById(e);if(f){var b=f.getElementsByTagName("LI");for(var c=0;c<b.length;c++){var d=b[c];if(d.id==g){d.className="selected"}else{d.className="notSelected"}}}}function MM_CheckFlashVersion(reqVerStr,msg){with(navigator){var isIE=(appVersion.indexOf("MSIE")!=-1&&userAgent.indexOf("Opera")==-1);var isWin=(appVersion.toLowerCase().indexOf("win")!=-1);if(!isIE||!isWin){var flashVer=-1;if(plugins&&plugins.length>0){var desc=plugins["Shockwave Flash"]?plugins["Shockwave Flash"].description:"";desc=plugins["Shockwave Flash 2.0"]?plugins["Shockwave Flash 2.0"].description:desc;if(desc==""){flashVer=-1}else{var descArr=desc.split(" ");var tempArrMajor=descArr[2].split(".");var verMajor=tempArrMajor[0];var tempArrMinor=(descArr[3]!="")?descArr[3].split("r"):descArr[4].split("r");var verMinor=(tempArrMinor[1]>0)?tempArrMinor[1]:0;flashVer=parseFloat(verMajor+"."+verMinor)}}else{if(userAgent.toLowerCase().indexOf("webtv")!=-1){flashVer=4}}var verArr=reqVerStr.split(",");var reqVer=parseFloat(verArr[0]+"."+verArr[2]);if(flashVer<reqVer){if(confirm(msg)){window.location="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"}}}}}function thisMovie(b){if(navigator.appName.indexOf("Microsoft")!=-1){return window[b]}else{return document[b]}}function addItem(d,e,b){var c=thisMovie(d);c.addItem(e,b)}function loadFile(c,d){var b=thisMovie(c);b.sendEvent("STOP");b.sendEvent("LOAD",d.file);setTimeout("loadFile2('"+c+"')",2000)}function loadFile2(c,d){var b=thisMovie(c);b.sendEvent("PLAY","true")}function sendEvent(c,d,b){thisMovie(c).sendEvent(d,b)}function cambiarEstrellas(b){for(i=1;i<=5;i++){if(i<=b){document.getElementById("estrella"+i).src=document.getElementById("estrella"+i).src.replace("icono_estrella_g.gif","icono_estrella2_g.gif")}else{document.getElementById("estrella"+i).src=document.getElementById("estrella"+i).src.replace("icono_estrella2_g.gif","icono_estrella_g.gif")}}}function votar(d,b){var c={success:function(e){var f=document.getElementById("resultadosRate");f.innerHTML=e.responseText},failure:function(e){var f=document.getElementById("resultadosRate");f.innerHTML="Error al votar!!!"}}}function cambiarPestana(b,d,c){for(i=1;i<=c;i++){ct=document.getElementById("content"+b+i);if(ct){ct.style.display=((d==i)?"block":"none")}yh=document.getElementById(b+i);if(yh){yh.className=((d==i)?"selected":"notSelected")}}}function cambiarEstrellas2(b){for(i=1;i<=5;i++){if(i<=b){document.getElementById("estrella"+i).src=document.getElementById("estrella"+i).src.replace("estrella_off.gif","estrella_on.gif")}else{document.getElementById("estrella"+i).src=document.getElementById("estrella"+i).src.replace("estrella_on.gif","estrella_off.gif")}}}function loadPanel(){var b=document.getElementById("myPanel");if(b.style.display=="none"){x=moveXbySlicePos(0,document.getElementById("boton_amigos"));y=moveYbySlicePos(0,document.getElementById("boton_amigos"));b.style.left=(x-0)+"px";b.style.top=(y+23)+"px";b.style.display=""}else{b.style.display="none"}}function moveXbySlicePos(b,c){if(!document.layers){var f=navigator.platform?navigator.platform=="Win32":false;var g=document.all&&!f&&getExplorerVersion()==4.5;var e=c;var d=0;while(e){if(e.leftMargin&&!f){b+=parseInt(e.leftMargin)}if((e.offsetLeft!=d)&&e.offsetLeft){b+=parseInt(e.offsetLeft)}if(e.offsetLeft!=0){d=e.offsetLeft}e=g?e.parentElement:e.offsetParent}}else{if(c.x){b+=c.x}}return b}function moveYbySlicePos(g,b){if(!document.layers){var e=navigator.platform?navigator.platform=="Win32":false;var f=document.all&&!e&&getExplorerVersion()==4.5;var d=b;var c=0;while(d){if(d.topMargin&&!e){g+=parseInt(d.topMargin)}if((d.offsetTop!=c)&&d.offsetTop){g+=parseInt(d.offsetTop)}if(d.offsetTop!=0){c=d.offsetTop}d=f?d.parentElement:d.offsetParent}}else{if(b.y>=0){g+=b.y}}return g}function swapTabsArticle(d,b,e){var f=document.getElementById(e);if(f){f.style.display="block";sendForm(d,b)}}function enableTableMatch(f,e){for(i=1;i<=e;i++){var c=document.getElementById("matchtab"+i);var d=document.getElementById("tab_matchtab"+i);var b=document.getElementById("table_matchtab"+i);if(c&&d&&b){if(f==("matchtab"+i)){b.style.display="block";c.className="pestanacuad1a";d.className="pestanacuad1b"}else{b.style.display="none";c.className="pestanacuad2a";d.className="pestanacuad2b"}}}}function addEvent(d,e,c,b){d=toObject(d);if(d.addEventListener){d.addEventListener(e,c,b);return true}else{if(d.attachEvent){return d.attachEvent("on"+e,c)}else{alert("Handler could not be attached.")}}return false}function removeEvent(d,e,c,b){if(d.removeEventListener){d.removeEventListener(e,c,b);return true}else{if(d.detachEvent){return d.detachEvent("on"+e,c)}else{alert("Handler could not be removed.")}}return false}function stopProp(b){if(b&&b.stopPropogation){b.stopPropogation()}else{if(window.event&&window.event.cancelBubble){window.event.cancelBubble=true}}}function stopDef(b){if(b&&b.preventDefault){b.preventDefault()}else{if(window.event&&window.event.returnValue){window.eventReturnValue=false}}}function toObject(b){if(typeof(b)=="string"){return document.getElementById(b)}if(typeof(b.nodeName)!="undefined"){return b}return null}function ImageScroller(d,g,k,h,b,c,e,f){this.holder=toObject(d);this.zones=new Array();this.zonesIndex=g;this.actualZone=-1;this.transition=(f?f:"easeOutQuad");this.leftButton=toObject(b);this.rightButton=toObject(c);this.visibleZones=k;this.zoneWidth=h;this.totalZones=e;this.leftEdge=0;this.onInit=function(m,l){};this.onChange=function(m,l){};this.init=function(){if(!this.holder){return}if(this.totalZones>0){for(var q=0;q<e;q++){var m=toObject(this.zonesIndex+""+q);if(m&&m.style){this.zones.push(m)}}}else{var m=this.holder.firstChild;while(m){if(m&&m.style){this.zones.push(m)}m=m.nextSibling}}var n=Math.ceil(this.zones.length/2)-1;var o=Math.floor((this.visibleZones-1)/2)*this.zoneWidth;for(var q=0;q<n;q++){this.zones.unshift(this.zones.pop())}this.leftEdge=o-(n*this.zoneWidth);if(this.visibleZones<this.totalZones){this.leftButton.scroller=this;this.rightButton.scroller=this;addEvent(this.leftButton,"click",this.moveRight);addEvent(this.rightButton,"click",this.moveLeft)}else{this.leftEdge=Math.round((this.visibleZones-this.zones.length)*this.zoneWidth/2);hideElement(this.leftButton);hideElement(this.rightButton)}var l=this.leftEdge;for(var q=0;q<this.zones.length;q++){var m=this.zones[q];this.onInit(m.id.replace(this.zonesIndex,""),(q==n||this.zones.length<=this.visibleZones));m.style.left=l+"px";l+=this.zoneWidth}this.actualZone=n};this.move=function(n){n=n%2;this.onChange(this.zones[this.actualZone].id.replace(this.zonesIndex,""),false);hideElement(this.leftButton);hideElement(this.rightButton);if(n>0){var m=this.zones.shift();m.style.left=this.leftEdge+(this.zones.length*this.zoneWidth)+"px";this.zones.push(m)}else{var m=this.zones.pop();m.style.left=this.leftEdge+"px";this.zones.unshift(m)}this.onChange(this.zones[this.actualZone].id.replace(this.zonesIndex,""),true);var l=this.leftEdge;for(var q=0;q<this.zones.length;q++){var o={suffix:{left:"px"},transition:this.transition,time:0.75,left:l,onComplete:new Function("showElement( '"+this.leftButton.id+"' );showElement( '"+this.rightButton.id+"' );")};JSTweener.addTween(this.zones[q].style,o);l+=this.zoneWidth}};this.moveLeft=function(m){var l=(m?(m.srcElement?m.srcElement.scroller:m.target.scroller):this);l.move(1)};this.moveRight=function(m){var l=(m?(m.srcElement?m.srcElement.scroller:m.target.scroller):this);l.move(-1)};return this}function popup(e,d,g,c,b,h,f){if(typeof(b)=="undefined"){b="center"}if(typeof(h)=="undefined"){h="middle"}if(typeof(f)=="undefined"){f=""}if(b.toLowerCase()=="center"){b=(screen.width-g)/2}else{if(b.toLowerCase()=="right"){b=(screen.width-g-30)}else{if(b<0){b=screen.width-g+b}else{b=0}}}if(h.toLowerCase()=="middle"){h=(screen.height-c)/2}else{if(h.toLowerCase()=="bottom"){h=(screen.height-c-60)}else{if(h<0){b=screen.height-c-h-30}else{h=0}}}if(typeof(d)=="undefined"||typeof(g)=="undefined"||typeof(c)=="undefined"){return open(e)}else{return open(e,d,"width="+g+",height="+c+",screenX="+b+",left="+b+",screenY="+h+",top="+h+","+f)}}function validateEmail(b){var c=0;if(b.length>7&&b.indexOf(" ",0)==-1){c=b.indexOf("@",0);if(c>2&&b.indexOf("@",c)&&b.indexOf(".",c)>(c+2)){c=b.indexOf(".",c);if(c>-1&&c<b.length-2){return true}}}return false}var font_size=9;var MAX=17;var MIN=11;function changeFont(b){font_size+=b;if(font_size>MAX){font_size=MAX}if(font_size<MIN){font_size=MIN}document.getElementsByTagName("body")[0].style.fontSize=font_size+"px"}function toObject(b){if(typeof(b)=="string"){return document.getElementById(b)}if(typeof(b.nodeName)!="undefined"){return b}return null}function jumpTo(b){document.location.href=b}function hideElement(b){b=toObject(b);if(b){b.style.visibility="hidden";b.style.display="none"}}function showElement(b){b=toObject(b);if(b){b.style.visibility="visible";b.style.display="block"}}function changeVisibility(b){b=toObject(b);if(b){if(b.style.visibility=="visible"){hideElement(b)}else{showElement(b)}}}function setElementPosition(c,b,e,d){c=toObject(c);if(!d){d="absolute"}c.style.position=d;c.style.left=b+"px";c.style.top=e+"px"}function isDate(f,g,c){if(f.toString().length==0){return false}if(c==null){g=(g==null)?"-":g;if(f.toString().indexOf(g)==-1){return false}var b=f.toString().split(g);if(b.length!=3){return false}f=b[0];g=b[1];c=b[2]}g=g-1;var d=new Date(f,g,c);var e=(d.getYear()<1000)?d.getYear()+1900:d.getYear();return((e==f)&&(g==d.getMonth())&&(c==d.getDate()))}function imageChange(c,b){c=toObject(c);if(c){c.src=b}}function isAlphaNumeric(d,c){var b=new RegExp("[^a-no-z0-9_"+(c?c:"")+"]","gi");return !b.test(d)}function isAlpha(d,c){var b=new RegExp("^[A-Za-z"+c+"]+$");if(b.test(d)){return true}return false}function isNumeric(c){var b=new RegExp("^[0-9"+add+"]+$");if(b.test(c)){return true}return false}function justNumbers(b){b=toObject(b);if(b){b.value=b.value.replace(/[^0-9]*/g,"")}}String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.rtrim=function(){return this.replace(/\s+$/,"")};String.prototype.ltrim=function(){return this.replace(/^\s+/,"")};function checkMaxChars(b,c){b=toObject(b);if(b&&b.value.length>c){b.value=b.value.substring(0,c)}}function innerChange(b,c){b=toObject(b);if(b){while(b.hasChildNodes()){b.removeChild(b.firstChild)}if(typeof(text)=="string"){b.appendChild(document.createTextNode(c))}else{b.appendChild(c)}}}function bookMark(b){var c=new Array();c=b.split("|");if(document.all){window.external.AddFavorite(c[0],c[1])}else{alert("Lo Sentimos, los usuarios de Netscape o Mozilla deben agregar a \nfavoritos manualmente desde el menu o haciendo uso de <Ctrl-D>")}}function removeElement(b){b=toObject(b);b.parentNode.removeChild(b)}function clearElement(b){b=toObject(b);b.innerHTML=""}function hideElement(b){b=toObject(b);if(b){b.style.visibility="hidden";b.style.display="none"}}function showElement(b){b=toObject(b);if(b){b.style.visibility="visible";b.style.display="block"}}function changeVisibility(b){b=toObject(b);if(b){if(b.style.visibility=="visible"){hideElement(b)}else{showElement(b)}}}function setElementPosition(c,b,e,d){c=toObject(c);if(!d){d="absolute"}c.style.position=d;c.style.left=b+"px";c.style.top=e+"px"}function setElementOpacity(d,c){var b=d;d=toObject(d);if(!d){alert(d+" "+b)}if(c<0){c=0}else{if(c>1){c/=100}}if(document.all){d.style.filter="alpha(opacity="+(c*100)+")"}else{d.style.MozOpacity=c}d.style.opacity=c}function getAbsolutePosition(b){b=toObject(b);var d={x:b.offsetLeft,y:b.offsetTop};if(b.offsetParent){var c=getAbsolutePosition(b.offsetParent);d.x+=c.x;d.y+=c.y}return d}function getRelativePosition(b){b=toObject(b);return{x:Number(b.style.left.replace("px","")),y:Number(b.style.top.replace("px",""))}}function getRelativeCoordinates(f,c){c=toObject(c);var b,l;f=f||window.event;var d=f.target||f.srcElement;if(!window.opera&&typeof f.offsetX!="undefined"){var k={x:f.offsetX,y:f.offsetY};var g=d;while(g){g.mouseX=k.x;g.mouseY=k.y;k.x+=g.offsetLeft;k.y+=g.offsetTop;g=g.offsetParent}var g=c;var h={x:0,y:0};while(g){if(typeof g.mouseX!="undefined"){b=g.mouseX-h.x;l=g.mouseY-h.y;break}h.x+=g.offsetLeft;h.y+=g.offsetTop;g=g.offsetParent}g=d;while(g){g.mouseX=undefined;g.mouseY=undefined;g=g.offsetParent}}else{var k=getAbsolutePosition(c);b=f.pageX-k.x;l=f.pageY-k.y}return{x:b,y:l}}function getElementDimensions(c,b,d){return{height:getElementHeight(c,b,d),width:getElementWidth(c,b,d)}}function getElementWidth(m,h,d){var e=0;m=toObject(m);if(window.getComputedStyle){var b=document.defaultView.getComputedStyle(m,null);if(b.getPropertyValue("display")==="none"){return 0}e=parseInt(b.getPropertyValue("width"));if(/opera/i.test(navigator.userAgent)){e-=parseInt(b.getPropertyValue("padding-left"));e-=parseInt(b.getPropertyValue("padding-right"));e-=parseInt(b.getPropertyValue("border-left-width"));e-=parseInt(b.getPropertyValue("border-right-width"))}if(h){e+=parseInt(b.getPropertyValue("padding-left"));e+=parseInt(b.getPropertyValue("padding-right"))}if(d){e+=parseInt(b.getPropertyValue("border-left-width"));e+=parseInt(b.getPropertyValue("border-right-width"))}}else{if(m.currentStyle.display==="none"){return 0}var l=/thin|medium|thick/;e=m.offsetWidth;if(!d){var g=m.currentStyle.borderLeftWidth;var c=m.currentStyle.borderRightWidth;var n=document.createElement("div");if(m.offsetWidth>m.clientWidth&&m.currentStyle.borderLeftStyle!=="none"){if(!l.test(g)){n.style.width=g;m.parentNode.appendChild(n);e-=Math.round(n.offsetWidth);m.parentNode.removeChild(n)}else{n.style.width="10px";n.style.border=g+" "+m.currentStyle.borderLeftStyle+" #000000";m.parentNode.appendChild(n);e-=Math.round((n.offsetWidth-10)/2);m.parentNode.removeChild(n)}if(!l.test(c)){n.style.width=c;m.parentNode.appendChild(n);e-=Math.round(n.offsetWidth);m.parentNode.removeChild(n)}else{n.style.width="10px";n.style.border=c+" "+m.currentStyle.borderRightStyle+" #000000";m.parentNode.appendChild(n);e-=Math.round((n.offsetWidth-10)/2);m.parentNode.removeChild(n)}}}if(!h){var f=m.currentStyle.paddingLeft;var k=m.currentStyle.paddingRight;var n=document.createElement("div");n.style.width=f;m.parentNode.appendChild(n);e-=Math.round(n.offsetWidth);n.style.width=k;e-=Math.round(n.offsetWidth);m.parentNode.removeChild(n)}}return e}function getElementHeight(k,f,c){var n=0;k=toObject(k);if(window.getComputedStyle){var b=document.defaultView.getComputedStyle(k,null);if(b.getPropertyValue("display")==="none"){return 0}n=parseInt(b.getPropertyValue("height"));if(/opera/i.test(navigator.userAgent)){n-=parseInt(b.getPropertyValue("padding-top"));n-=parseInt(b.getPropertyValue("padding-bottom"));n-=parseInt(b.getPropertyValue("border-top-width"));n-=parseInt(b.getPropertyValue("border-bottom-width"))}if(f){n+=parseInt(b.getPropertyValue("padding-top"));n+=parseInt(b.getPropertyValue("padding-bottom"))}if(c){n+=parseInt(b.getPropertyValue("border-top-width"));n+=parseInt(b.getPropertyValue("border-bottom-width"))}}else{if(k.currentStyle.display==="none"){return 0}var h=/thin|medium|thick/;n=k.offsetHeight;if(!c){var e=k.currentStyle.borderTopWidth;var g=k.currentStyle.borderBottomWidth;var m=document.createElement("div");if(k.offsetHeight>k.clientHeight&&k.currentStyle.borderTopStyle!=="none"){if(!h.test(e)){m.style.width=e;k.parentNode.appendChild(m);n-=Math.round(m.offsetWidth);k.parentNode.removeChild(m)}else{m.style.width="10px";m.style.border=e+" "+k.currentStyle.borderTopStyle+" #000000";k.parentNode.appendChild(m);n-=Math.round((m.offsetWidth-10)/2);k.parentNode.removeChild(m)}}if(k.offsetHeight>k.clientHeight&&k.currentStyle.borderBottomStyle!=="none"){if(!h.test(g)){m.style.width=g;k.parentNode.appendChild(m);n-=Math.round(m.offsetWidth);k.parentNode.removeChild(m)}else{m.style.width="10px";m.style.border=g+" "+k.currentStyle.borderBottomStyle+" #000000";k.parentNode.appendChild(m);n-=Math.round((m.offsetWidth-10)/2);k.parentNode.removeChild(m)}}}if(!f){var l=k.currentStyle.paddingTop;var d=k.currentStyle.paddingBottom;var m=document.createElement("div");m.style.width=l;k.parentNode.appendChild(m);n-=Math.round(m.offsetWidth);m.style.width=d;n-=Math.round(m.offsetWidth);k.parentNode.removeChild(m)}}return n}function setCookie(c,g,d,l,e,b){d=(d?d:1000)*1000*60*60*24;var f=new Date();var h=new Date(f.getTime()+d);var k=c+"="+escape(g)+((d)?";expires="+h.toGMTString():"")+((l)?";path="+l:"")+((e)?";domain="+e:"")+((b)?";secure":"");document.cookie=k}function getCookie(d){var e=document.cookie.indexOf(d+"=");var b=e+d.length+1;if((!e)&&(d!=document.cookie.substring(0,d.length))){return null}if(e==-1){return null}var c=document.cookie.indexOf(";",b);if(c==-1){c=document.cookie.length}return unescape(document.cookie.substring(b,c))}function addEvent(d,e,c,b){d=toObject(d);if(d.addEventListener){d.addEventListener(e,c,b);return true}else{if(d.attachEvent){return d.attachEvent("on"+e,c)}else{alert("Handler could not be attached.")}}return false}function removeEvent(d,e,c,b){if(d.removeEventListener){d.removeEventListener(e,c,b);return true}else{if(d.detachEvent){return d.detachEvent("on"+e,c)}else{alert("Handler could not be removed.")}}return false}function stopProp(b){if(b&&b.stopPropogation){b.stopPropogation()}else{if(window.event&&window.event.cancelBubble){window.event.cancelBubble=true}}}function stopDef(b){if(b&&b.preventDefault){b.preventDefault()}else{if(window.event&&window.event.returnValue){window.eventReturnValue=false}}}function whenFocusOn(b,c){if(!b.normalClassName){b.normalClassName=b.className.replace(/ ?(focused|modified)$/,"")}if(c&&b.value&&b.value.trim()==c){b.value=""}b.className=(b.normalClassName?b.normalClassName+" ":"")+"focused";addEvent(b,"blur",function(d){b=(d.srcElement?d.srcElement:d.target);whenUnfocusOn(b,c)})}function whenUnfocusOn(b,c){if(c&&(b.value==""||b.value.trim()==c)){b.value=c;b.className=b.normalClassName}else{b.className=(b.normalClassName?b.normalClassName+" ":"")+"modified"}}function createToolTip(c,g,d,b){c=toObject(c);if(c){c.style.cursor="pointer";c.toolTip=g;if(!d){try{addEvent(c,"mouseover",c.showToolTip);addEvent(c,"mouseout",function(){clearTimeout(window.ttInterval);window.ttInterval=setTimeout(hideToolTipZone,1000)})}catch(f){alert('No es posible registrar los evento "over/out" para este elemento.')}c.showToolTip=function(e){c=(e.srcElement?e.srcElement:e.target);if(c){showToolTipZone(c,false)}}}else{c.focus();showToolTipZone(c,b);try{addEvent(c,"change",hideToolTipZone)}catch(f){}}}}function showToolTipZone(b,d){clearTimeout(window.ttInterval);createToolTipZone();var f=toObject("toolTipZone");var e=toObject("toolTipContent");e.className=(d?"error":"");var g=toObject("toolTipArrow");b.toolTip=(b.toolTip?b.toolTip:b.title);b.title="";e.innerHTML=b.toolTip;var k=getAbsolutePosition(b);var c=getElementDimensions(b);f.style.width="auto";showElement(f);var h=getElementDimensions(f);if(h.width>250){f.style.width="250px";h=getElementDimensions(f)}g.style.width=h.width;f.style.left=(k.x+5+c.width)+"px";f.style.top=(k.y)+"px"}function hideToolTipZone(){createToolTipZone()}function createToolTipZone(){clearTimeout(window.ttInterval);var c=toObject("toolTipZone");var b=arrow=null;if(!c){c=document.createElement("div");document.body.insertBefore(c,document.body.firstChild);c.id="toolTipZone";arrow=document.createElement("div");arrow.id="toolTipArrow";c.appendChild(arrow);b=document.createElement("div");b.id="toolTipContent";b.style.cursor="default";addEvent(b,"mouseover",function(){clearTimeout(window.ttInterval)});addEvent(b,"mouseout",function(){clearTimeout(window.ttInterval);window.ttInterval=setTimeout(hideToolTipZone,1000)});addEvent(b,"click",hideToolTipZone);c.appendChild(b)}else{b=toObject("toolTipContent")}hideElement(c);b.innerHTML=""}function popupHTML(e,n){var g=document.getElementById("mPHolder");var l=content=arrow=null;if(!g){g=document.createElement("div");g.id="mPHolder";g.style.position="fixed";g.style.top="0px";g.style.left="0px";g.style.height="100%";g.style.width="100%";document.body.appendChild(g,document.body.firstChild);var h=document.createElement("div");h.id="mPHolderBack";setElementOpacity(h,0.6);h.style.position="fixed";h.style.top="0px";h.style.left="0px";h.style.height="100%";h.style.width="100%";g.appendChild(h);var m=document.createElement("div");m.id="mPHolderHolder";m.style.position="fixed";m.style.top="0px";m.style.left="0px";m.style.height="100%";m.style.width="100%";g.appendChild(m);var b=document.createElement("table");b.cellPadding=b.cellSpacing=0;b.style.height="100%";b.style.width="100%";m.appendChild(b);var c=b.insertRow(0);var k=c.insertCell(0);k.id="mPCellHolder";addEvent(k,"click",function(r){elem=(r.srcElement?r.srcElement:r.target);if(elem&&elem.id=="mPCellHolder"){popupHTMLClose()}});var q=document.createElement("table");q.cellPadding=q.cellSpacing=0;q.align="center";k.appendChild(q);var f=q.insertRow(0);var d=f.insertCell(0);elem=document.createElement("div");elem.id="pHTMLHolder";d.appendChild(elem);button=document.createElement("div");button.id="pHTMLButton";elem.appendChild(button);a=document.createElement("div");a.onclick=popupHTMLClose;button.appendChild(a);l=document.createElement("div");l.id="pHTMLTitle";elem.appendChild(l);content=document.createElement("div");content.id="pHTMLContent";elem.appendChild(content);var o=document.createElement("div");o.id="pHTMLDown";elem.appendChild(o)}l=toObject("pHTMLTitle");content=toObject("pHTMLContent");if(!n){n='<div class="pHTMLWait"></div>'}content.innerHTML=n;l.innerHTML=e;showElement(g)}function popupHTMLClose(){var b=document.getElementById("mPHolder");if(b){hideElement(b)}return false}function objectToString(f,e,d){var g="";var b="";e=(e?Number(e):0);d=(d?Number(d):7);if(d==-1){return""}for(var h=0;h<e;h++){b+="  "}g+=((f&&typeof(f)!="string"&&typeof(f.length)!="undefined")?"array["+f.length+"]":typeof(f))+" ";if(typeof(f)=="object"){for(subObj in f){g+="\n"+b+"  "+subObj+" => "+objectToString(f[subObj],e+1,d-1)}}else{g+=(typeof(f)=="string"?"'"+f+"'":f)}return g}function trace(d,b){var c=document.getElementById("trace_element");if(!c){c=document.createElement("div");c.id="trace_element";c.className="text table_border";c.style.padding="5px";c.style.height=100;c.style.position="absolute";c.style.top="0px";c.style.left="0px";c.style.overflow="auto";document.body.appendChild(c)}if(console&&console.info){console.info(d)}else{c.innerHTML=(b?"":c.innerHTML)+"<br /><pre>"+objectToString(d)+"</pre>"}}function setHover(f){if((navigator.userAgent.indexOf("Win")<0)||navigator.appVersion.substr(22,3)==""||navigator.appVersion.substr(22,3)>="8.0"){return}var b=f.getElementsByTagName("ul");if(navigator.appVersion.substr(22,3)!="5.0"){for(j=0;j<b.length;j++){var d=document.createElement("iframe");if(document.location.protocol=="https:"){d.src="//0"}else{if(window.opera!="undefined"){d.src=""}else{d.src="javascript:false"}}d.scrolling="no";d.frameBorder="0";d.style.width=b[j].offsetWidth+"px";d.style.height=b[j].offsetHeight+"px";d.style.zIndex="-1";b[j].insertBefore(d,b[j].childNodes[0]);b[j].style.zIndex="101"}var e=f.getElementsByTagName("li");for(var c=0;c<e.length;c++){if(e[c]){e[c].onmouseover=function(){if(!/\bsfhover\b/.test(this.className)){this.className+=" sfhover"}};e[c].onmouseout=function(g){this.className=this.className.replace(" sfhover","")}}}}else{var e=document.getElementById("nav").getElementsByTagName("li");for(var c=0;c<e.length;c++){if(e[c]){e[c].onmouseover=function(){this.className+=" sfhover";hideSelects()};e[c].onmouseout=function(){this.className=this.className.replace(" sfhover","");showSelects()}}}}}function hideSelects(){var c=document.getElementsByTagName("select");for(var b=0;b<c.length;b++){c[b].className+=" hide"}}function showSelects(){var c=document.getElementsByTagName("select");for(var b=0;b<c.length;b++){c[b].className=c[b].className.replace(" hide","")}}function ImageScroller(d,g,k,h,b,c,e,f){this.holder=toObject(d);this.zones=new Array();this.zonesIndex=g;this.actualZone=-1;this.transition=(f?f:"easeOutQuad");this.leftButton=toObject(b);this.rightButton=toObject(c);this.visibleZones=k;this.zoneWidth=h;this.totalZones=e;this.leftEdge=0;this.onInit=function(m,l){};this.onChange=function(m,l){};this.init=function(){if(!this.holder){return}if(this.totalZones>0){for(var q=0;q<e;q++){var m=toObject(this.zonesIndex+""+q);if(m&&m.style){this.zones.push(m)}}}else{var m=this.holder.firstChild;while(m){if(m&&m.style){this.zones.push(m)}m=m.nextSibling}}var n=Math.ceil(this.zones.length/2)-1;var o=Math.floor((this.visibleZones-1)/2)*this.zoneWidth;for(var q=0;q<n;q++){this.zones.unshift(this.zones.pop())}this.leftEdge=o-(n*this.zoneWidth);if(this.visibleZones<this.totalZones){this.leftButton.scroller=this;this.rightButton.scroller=this;addEvent(this.leftButton,"click",this.moveRight);addEvent(this.rightButton,"click",this.moveLeft)}else{this.leftEdge=Math.round((this.visibleZones-this.zones.length)*this.zoneWidth/2);hideElement(this.leftButton);hideElement(this.rightButton)}var l=this.leftEdge;for(var q=0;q<this.zones.length;q++){var m=this.zones[q];this.onInit(m.id.replace(this.zonesIndex,""),(q==n||this.zones.length<=this.visibleZones));m.style.left=l+"px";l+=this.zoneWidth}this.actualZone=n};this.move=function(n){n=n%2;this.onChange(this.zones[this.actualZone].id.replace(this.zonesIndex,""),false);hideElement(this.leftButton);hideElement(this.rightButton);if(n>0){var m=this.zones.shift();m.style.left=this.leftEdge+(this.zones.length*this.zoneWidth)+"px";this.zones.push(m)}else{var m=this.zones.pop();m.style.left=this.leftEdge+"px";this.zones.unshift(m)}this.onChange(this.zones[this.actualZone].id.replace(this.zonesIndex,""),true);var l=this.leftEdge;for(var q=0;q<this.zones.length;q++){var o={suffix:{left:"px"},transition:this.transition,time:0.75,left:l,onComplete:new Function("showElement( '"+this.leftButton.id+"' );showElement( '"+this.rightButton.id+"' );")};JSTweener.addTween(this.zones[q].style,o);l+=this.zoneWidth}};this.moveLeft=function(m){var l=(m?(m.srcElement?m.srcElement.scroller:m.target.scroller):this);l.move(1)};this.moveRight=function(m){var l=(m?(m.srcElement?m.srcElement.scroller:m.target.scroller):this);l.move(-1)};return this}function doGameLogin(){requestInto("formLogin",null,"divSecciones",null,false,function(b){if(b.responseText.indexOf("Ingresar")==-1){sendForm("predictorForm","predictorResults")}})}function doCommentRegister(){addGAEvent("Comentarios","Login");requestInto("commentFormLogin",null,"divSecciones",null,false,function(b){if(b.responseText.indexOf("Ingresar")==-1){requestInto("sendComentForm",null,"commentsAuth")}})}function doCommentSave(b){if(!window.currentUser){alert("Ha salido del sistema o su sesion ha caducado.");requestInto(null,intra_base_url+"Scripts/sendComent.php","commentsAuth",{idFile:b,service:"article.auth",action:"form"})}else{if(toObject("comentario").value.trim().length<3){alert("El comentario ingresado es muy corto.")}else{addGAEvent("Comentarios","Agregar");requestInto("commentForm",null,"operationZoneRes",null,false,function(c){result=0;if(!isNaN(c.responseText)){result=parseInt(c.responseText)}if(result>0){updateCommentList(b)}document.getElementById("comentario").value="";updateCommentCount(b);return false})}}}function doSubCommentSave(b,c){if(!window.currentUser){alert("Debe ingresar al sistema antes de responder.");document.location="#comments";requestInto(null,intra_base_url+"Scripts/sendComent.php","commentsAuth",{idFile:b,service:"article.auth",action:"form"})}else{if(toObject("answerTo"+c).value.trim().length<3){alert("El comentario ingresado es muy corto.")}else{doCReply(c);var d=toObject("answerTo"+c).value;toObject("answerTo"+c).value="";addGAEvent("Comentarios","Responder");requestInto(null,intra_base_url+"servlet/ComentarDoc.php",null,{idFile:b,parentComment:c,comentario:d},false,function(){updateCommentList(b,toObject("commentsActualPage"+b))})}}}function doCReply(b){if(window.lastCommentAnswer==b){$("#commentAnswer"+b).slideUp();window.lastCommentAnswer=null}else{if(window.lastCommentAnswer){$("#commentAnswer"+window.lastCommentAnswer).slideUp()}$("#commentAnswer"+b).slideDown(function(){toObject("answerTo"+b).focus()});window.lastCommentAnswer=b}}function doCVote(c,b){if(!window.currentUser){alert("Debe ingresar al sistema antes de votar.");document.location="#comments";return}document.getElementById("addActionComment").name="doVote";document.getElementById("addActionComment").value=b;addGAEvent("Comentarios","Voto "+(b>0?"Positivo":"Negativo"));requestInto("actionsCommentForm",document.getElementById("actionsCommentForm").action,"operationZoneRes",{idComment:c},false,function(d){result=0;if(!isNaN(d.responseText)){result=parseInt(d.responseText)}if(result>0){idObj=(b>0?"o":"b")+"_"+c;if(document.getElementById(idObj)&&!isNaN(document.getElementById(idObj).innerHTML)){document.getElementById(idObj).innerHTML=parseInt(document.getElementById(idObj).innerHTML)+1}}return false})}function doCAbuse(b){if(!window.currentUser){alert("Debe ingresar al sistema antes de reportar abuso.");document.location="#comments";return}addGAEvent("Comentarios","Reporte de Abuso");document.getElementById("addActionComment").name="doAbuse";document.getElementById("addActionComment").value=b;requestInto("actionsCommentForm",document.getElementById("actionsCommentForm").action,"operationZoneRes",null,false,function(c){return false})}function doCRemove(b){if(!window.currentUser){alert("Ha salido del sistema o su sesion ha caducado.");requestInto(null,intra_base_url+"Scripts/sendComent.php","commentsAuth",{idFile:idFile,service:"article.auth",action:"form"});return}$("#commentTable"+b).addClass("remove");if(confirm(unescape("%BFConfirma%20la%20eliminaci%F3n%20del%20comentario%20seleccionado?"))){addGAEvent("Comentarios","Eliminar");document.getElementById("addActionComment").name="doRemove";document.getElementById("addActionComment").value=b;requestInto("actionsCommentForm",document.getElementById("actionsCommentForm").action,"operationZoneRes",null,false,function(c){$("#commentHolder"+b).slideUp("slow");return false})}else{$("#commentTable"+b).removeClass("remove")}}function initTable(o){if(!checkBrowser()){return}var u;var r;var e;var l,k,g;var d,c;var n=false;var b,f;if(o.tagName=="TABLE"){table=o}else{table=document.getElementById(o)}if(table==null){return}if(table.tagName!="TABLE"){return}maxNCol=table.rows[table.rows.length-1].cells.length;rowArray=new Array();colSpanArray=new Array();colTitleFilled=new Array();titleRowArray=new Array();titleRowCellArray=new Array();for(var t=0;t<maxNCol;t++){colTitleFilled[t]=false}nRow=table.rows.length;if(nRow<1){return}actualNRow=0;b=0;f=0;k=0;for(var t=0;t<nRow;t++){l=1,g=0;for(var s=0;s<table.rows[t].cells.length;s++){if(n==false){if(table.rows[t].cells[s].rowSpan>1){if(table.rows[t].cells[s].colSpan<2){titleSpanCellArray[g]=table.rows[t].cells[s];colTitleFilled[g]=true;k++}if(table.rows[t].cells[s].rowSpan-1>b){b=table.rows[t].cells[s].rowSpan-1;if(table.rows[t].cells[s].colSpan>1){f=b+1}}}}if(table.rows[t].cells[s].colSpan>1&&f==0){l=table.rows[t].cells[s].colSpan;g+=l}else{g++}}if(n==false&&l==1&&b==0&&f==0&&n==false){colSpanArray[t]=true;n=true;u=0;for(var s=0;s<table.rows[t].cells.length+k;s++){if(colTitleFilled[s]!=true){titleRowCellArray[s]=table.rows[t].cells[u];u++}else{titleRowCellArray[s]=titleSpanCellArray[s]}}}else{if(n==true&&l==1&&b==0){var d=new Array();for(var s=0;s<table.rows[t].cells.length;s++){var q="";if(table.rows[t].cells[s].rowSpan>1){return}var h=getPropertiesTag(table.rows[t].cells[s].childNodes);var m=new Array();m[0]=(h.title?h.title.value:table.rows[t].cells[s].firstChild.data);q+='style="'+table.rows[t].cells[s].style.cssText+'" ';q+='class="'+table.rows[t].cells[s].className+'" ';q+='width="'+table.rows[t].cells[s].width+'" ';q+='align="'+table.rows[t].cells[s].align+'" ';q+='valign="'+table.rows[t].cells[s].align+'" ';q+='height="'+table.rows[t].cells[s].height+'" ';q+='id="'+table.rows[t].cells[s].id+'" ';q+='name="'+table.rows[t].cells[s].name+'" ';m[1]=q;m[2]=table.rows[t].cells[s];d[s]=m}if(table.rows[t].cells.length>maxNCol){return}actualNRow++;colSpanArray[t]=false}else{if(l==1&&b==0&&f==0&&n==false){colSpanArray[t]=false}else{colSpanArray[t]=true}}}if(b>0){b--}if(f>0){f--}}if(actualNRow<1){return}for(var s=0;s<maxNCol;s++){if(titleRowCellArray[s].childNodes.length==0){return}if(titleRowCellArray[s].firstChild!=null){r=titleRowCellArray[s].firstChild.childNodes.length;e=titleRowCellArray[s].firstChild;while(r!=0){e=e.firstChild;r=e.childNodes.length}c=e.data}else{c="column("+s+")"}titleRowArray[s]=c;var v="<a "+linkEventString+s+',"'+table.id+"\");'><"+titleFace+">"+c+"</"+titleFace+"></a>";titleRowCellArray[s].innerHTML=v;titles[s]=v}}function checkBrowser(){if(navigator.appName=="Microsoft Internet Explorer"&&navigator.appVersion.indexOf("5.")>=0){isIE=true;return true}else{if(navigator.appName=="Netscape"&&navigator.appVersion.indexOf("5.")>=0){isIE=false;return true}else{return false}}}function browser(){if(navigator.appName=="Microsoft Internet Explorer"&&navigator.appVersion.indexOf("5.")>=0){return"IE"}else{if(navigator.appName=="Netscape"&&navigator.appVersion.indexOf("5.")>=0){return"NT"}else{return false}}}function getPropertiesTag(e){var d=e;var b;var c;if(e){for(p=0;p<d.length;p++){b=d[p].nodeName;if(b=="IMG"||b=="INPUT"||b=="A"){c=d[p].attributes;return c}}}return false}function ShowAndHideDiv(b,c){var c=c;var d=document.getElementById(b);if(d){d.innerHTML="";d.style.display="block";pos_y=(browser()=="NT"?c.pageY:(browser()=="IE"?c.y+document.body.scrollTop:0));d.style.top=pos_y+15}}function closePopup(b,d){var d=d;var c=b.parentNode;if(b){while(c){c=c.parentNode;if(c.tagName=="DIV"){c.style.display="none";c=false}}}return true}function HTTPRequest(){this.xmlHttpRequest=null;this.timeout=0;this.cache=false;this.url=null;this.method="GET";this.async=true;this.username=null;this.password=null;this.parameters=new Object();this.requestIndex=HTTPRequest.length+1;this.responseReceived=false;this.groupName=null;this.queryString="";this.responseText=null;this.responseXML=null;this.status=null;this.statusText=null;this.aborted=false;this.onTimeout=null;this.onChangeState=null;this.onLoading=null;this.onLoaded=null;this.onInteractive=null;this.onComplete=null;this.onSuccess=null;this.onCached=null;this.onError=null;this.onGroupBegin=null;this.onGroupEnd=null;this.xmlHttpRequest=HTTPRequest.CreateXMLHTTPRequest();if(!this.xmlHttpRequest){return null}this.abort=function(){this.aborted=true};this.onLoadingInternalHandled=false;this.onLoadedInternalHandled=false;this.onInteractiveInternalHandled=false;this.onCompleteInternalHandled=false;this.onLoadingInternal=function(){if(this.onLoadingInternalHandled){return}HTTPRequest.activeRequests++;if(HTTPRequest.activeRequests==1&&typeof(window.HTTPRequestBegin)=="function"){HTTPRequestBegin()}if(this.groupName!=null){if(typeof(HTTPRequest.ActiveHTTPGroupRequests[this.groupName])=="undefined"){HTTPRequest.activeHTTPGroupRequests[this.groupName]=0}HTTPRequest.activeHTTPGroupRequests[this.groupName]++;if(HTTPRequest.activeHTTPGroupRequests[this.groupName]==1&&typeof(this.onGroupBegin)=="function"){this.onGroupBegin(this.groupName)}}if(typeof(this.onChangeState)=="function"){this.onChangeState(this)}if(typeof(this.onLoading)=="function"){this.onLoading(this)}this.onLoadingInternalHandled=true};this.onLoadedInternal=function(){if(this.onLoadedInternalHandled){return}if(typeof(this.onChangeState)=="function"){this.onChangeState(this)}if(typeof(this.onLoaded)=="function"){this.onLoaded(this)}this.onLoadedInternalHandled=true};this.onInteractiveInternal=function(){if(this.onInteractiveInternalHandled){return}if(typeof(this.onChangeState)=="function"){this.onChangeState(this)}if(typeof(this.onInteractive)=="function"){this.onInteractive(this)}this.onInteractiveInternalHandled=true};this.onCompleteInternal=function(){if(this.onCompleteInternalHandled||this.aborted){return}this.onCompleteInternalHandled=true;HTTPRequest.activeHTTPRequests--;if(HTTPRequest.activeHTTPRequests==0&&typeof(window.HTTPRequestEnd)=="function"){HTTPRequestEnd()}if(this.groupName!=null){HTTPRequest.activeHTTPGroupRequests[this.groupName]--;if(HTTPRequest.activeHTTPGroupRequests[this.groupName]==0&&typeof(this.onGroupEnd)=="function"){this.onGroupEnd(this.groupName)}}this.responseReceived=true;try{this.status=this.xmlHttpRequest.status}catch(c){}this.statusText=this.xmlHttpRequest.statusText;this.responseText=this.xmlHttpRequest.responseText;this.responseXML=this.xmlHttpRequest.responseXML;if(typeof(this.onChangeState)=="function"){this.onChangeState(this)}if(typeof(this.onComplete)=="function"){this.onComplete(this)}if(this.xmlHttpRequest.status==200){if(typeof(this.onSuccess)=="function"){this.onSuccess(this)}}else{if(this.xmlHttpRequest.status==304){if(typeof(this.onCached)=="function"){this.onCached(this)}else{if(typeof(this.onSuccess)=="function"){this.onSuccess(this)}}}else{if(typeof(this.onError)=="function"){this.onError(this)}}}delete this.xmlHttpRequest.onreadystatechange;this.xmlHttpRequest=null};this.onTimeoutInternal=function(){if(this.xmlHttpRequest!=null&&!this.onCompleteInternalHandled){this.aborted=true;this.xmlHttpRequest.abort();HTTPRequest.activeHTTPRequests--;if(HTTPRequest.activeHTTPRequests==0&&typeof(window.HTTPRequestEnd)=="function"){HTTPRequestEnd()}if(this.groupName!=null){HTTPRequest.activeHTTPGroupRequests[this.groupName]--;if(HTTPRequest.activeHTTPGroupRequests[this.groupName]==0&&typeof(this.onGroupEnd)=="function"){this.onGroupEnd(this.groupName)}}if(typeof(this.onTimeout)=="function"){this.onTimeout(this)}delete this.xmlHttpRequest.onreadystatechange;this.xmlHttpRequest=null}};var b=this;this.onreadystatechange=this.xmlHttpRequest.onreadystatechange=function(){if(b.xmlHttpRequest==null){return}b.readyState=b.xmlHttpRequest.readyState;switch(b.readyState){case 0:b.statusText="Â¡Page NOT Found!";if(typeof(b.onError)=="function"){b.onError(b.xmlHttpRequest)}break;case 1:b.onLoadingInternal(b.xmlHttpRequest);break;case 2:b.onLoadedInternal(b.xmlHttpRequest);break;case 3:b.onInteractiveInternal(b.xmlHttpRequest);break;case 4:b.onCompleteInternal(b.xmlHttpRequest)}};return this}HTTPRequest.prototype.process=function(){if(this.xmlHttpRequest!=null&&this.url!=null){this.parameters.ajaxResponse="true";if(!this.cache&&this.method=="GET"){this.parameters.cache=new Date().getTime()+""+this.requestIndex}var c=null;for(var b in this.parameters){if(this.queryString.length>0){this.queryString+="&"}this.queryString+=escape(b)+"="+escape(this.parameters[b])}if(!this.method){this.method="POST"}if(this.method=="GET"){if(this.queryString.length>0){this.url+=((this.url.indexOf("?")>-1)?"&":"?")+this.queryString}}this.xmlHttpRequest.open(this.method,this.url,this.async,this.username,this.password);if(this.method=="POST"){if(typeof(this.xmlHttpRequest.setRequestHeader)!="undefined"){this.xmlHttpRequest.setRequestHeader("Content-type","application/x-www-form-urlencoded")}c=this.queryString}this.xmlHttpRequest.send(c);if(!this.async){this.onreadystatechange()}else{if(this.timeout>0){setTimeout(this.onTimeoutInternal,this.timeout)}}}};HTTPRequest.prototype.handleArguments=function(b){for(var c in b){if(typeof(this[c])=="undefined"){this.parameters[c]=b[c]}else{this[c]=b[c]}}};HTTPRequest.prototype.getResponseHeaders=function(){if(this.xmlHttpRequest!=null&&this.responseReceived){return this.xmlHttpRequest.getAllResponseHeaders()}else{return null}};HTTPRequest.prototype.getResponseHeader=function(b){if(this.xmlHttpRequest!=null&&req.responseReceived){return this.xmlHttpRequest.getResponseHeader(b)}else{return null}};HTTPRequest.requests=0;HTTPRequest.activeRequests=0;HTTPRequest.ActiveHTTPGroupRequests=new Object();HTTPRequest.CreateXMLHTTPRequest=function(){var b=null;if(window.XMLHttpRequest){b=new XMLHttpRequest()}else{if(window.ActiveXObject){try{b=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){}if(!b){try{b=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}}}return b};HTTPRequest.isActive=function(){return(HTTPRequest.activeHTTPRequests>0)};HTTPRequest.get=function(b){return HTTPRequest.doRequest("GET",b)};HTTPRequest.post=function(b){return HTTPRequest.doRequest("POST",b)};HTTPRequest.doRequest=function(d,b){if(typeof(b)!="undefined"&&b!=null){var c=new HTTPRequest();if(c!=null){c.method=d;c.handleArguments(b);c.process();return c}}return null};HTTPRequest.submit=function(b,c){var e=new HTTPRequest();if(e!=null){var d=HTTPRequest.serializeForm(b);e.method=b.method.toUpperCase();e.url=b.action;e.handleArguments(c);e.queryString=d;e.process()}return e};HTTPRequest.serializeForm=function(d){var f=d.elements;var b=f.length;var k="";this.addField=function(c,l){if(k.length>0){k+="&"}k+=escape(c)+"="+escape(l)};for(var h=0;h<b;h++){var g=f[h];if(!g.disabled){switch(g.type){case"text":case"password":case"hidden":case"textarea":this.addField(g.name,g.value);break;case"select-one":if(g.selectedIndex>=0){this.addField(g.name,g.options[g.selectedIndex].value)}break;case"select-multiple":for(var e=0;e<g.options.length;e++){if(g.options[e].selected){this.addField(g.name,g.options[j].value)}}break;case"checkbox":case"radio":if(g.checked){this.addField(g.name,g.value)}break}}}return k};function fatalError(b){if(confirm(b.status+" "+b.statusText+"\nPeticion no procesada!\nIntentar recargar la pagina?")){document.location.href=document.location}}window.cleanScript=function(e){var b="";var d=0;e=e.replace(/^\s+|\s+$/,"");var c=e.indexOf("<script");while(c>=0){b+=e.substring(d,c);d=e.indexOf("<\/script>",c);if(d>=0){d+=9;c=e.indexOf("<script",d)}}b+=e.substring(d);return b};window.executeScript=function(text){var startPos=text.indexOf("<script");if(startPos>=0){startPos=text.indexOf(">",startPos)+1}while(startPos>=0){var endPos=text.indexOf("<\/script>",startPos);var script=text.substring(startPos,endPos);if(window.execScript){window.execScript(script)}else{window.eval(script)}startPos=text.indexOf("<script",endPos);if(startPos>=0){startPos=text.indexOf(">",startPos)+1}}};var requests=new Object();var maintain=new Object();function requestInto(d,b,h,g,l,o,e){if(typeof(d)=="string"){d=document.getElementById(d)}if(!b&&d){b=d.action}if(b&&b[b.length-1]=="/"){b+="index.php"}if(!h&&d&&d.target){h=d.target}var c=(h&&typeof(h)=="object"?h.id:(h?h:b));if(typeof(h)=="string"){h=document.getElementById(h)}if(typeof(o)!="function"){o=new Function(o)}if(requests[c]){requests[c].abort()}var n=function(r){var q=cleanScript(r.responseText);if(q.indexOf("<!DOCTYPE html")==0){alert("La sesion ha caducado\nDebe ingresar al sistema nuevamente.\n");document.location=document.location.href;return}if(h){if($(h.parentNode).hasClass("loading")){$(h.parentNode).fadeTo("slow",1);$(h.parentNode).removeClass("loading")}else{$(h).fadeTo("slow",1);$(h).removeClass("loading")}}if(o(r)!==false){if(h&&q.indexOf("<!--")!=0){if(l){var s=document.createElement("div");s.innerHTML=q;h.appendChild(s)}else{h.innerHTML=q}}executeScript(r.responseText)}};var k=function(q){if(h){if($(h.parentNode).hasClass("loading")){$(h.parentNode).fadeTo("slow",1);$(h.parentNode).removeClass("loading")}else{$(h).fadeTo("slow",1);$(h).removeClass("loading")}}};var f={url:b,async:!e,onSuccess:n,onError:k};if(g){for(var m in g){f[m]=g[m]}}if(h){if($(h.parentNode).hasClass("loading")){$(h.parentNode).fadeTo("slow",0.3)}else{$(h).fadeTo("slow",0.3);$(h).addClass("loading")}}if(d){requests[c]=HTTPRequest.submit(d,f)}else{requests[c]=HTTPRequest.post(f)}}String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.rtrim=function(){return this.replace(/\s+$/,"")};String.prototype.ltrim=function(){return this.replace(/^\s+/,"")};$.urlParam=function(b){var c=new RegExp("[\\?&]"+b+"=([^&#]*)").exec(window.location.href);return(c&&c[1]?unescape(c[1].replace(/\+/g," ")):"")};function registerHScroller(d,e,c,b){this.name="HScroller"+d;if(window[this.name]){return window[this.name]}this.prefix="#"+d;this.zone=(b>1?b/100:(b>0?b:0.3));this.speed=(c>10?c:10);this.time=(e<40?e:40);this.coefficient=1;this.holder=0;this.zoneSize=0;this.content=0;this.interval=null;this.sLayerX=0;$(this.prefix+"Left").hide();$(this.prefix+"Right").hide();this.init=function(){if($(this.prefix+"Content").width()>$(this.prefix+"Holder").width()){this.holder=$(this.prefix+"Holder").width();this.zoneSize=Math.round(this.holder*this.zone);this.content=$(this.prefix+"Content").width();this.coefficient=this.holder/$(this.prefix).width();$(this.prefix+"Content").css("left","0px");$(this.prefix+"Content").css("position","absolute");$(this.prefix+"Right").show();$(this.prefix).get(0).HScroller=this;$(this.prefix).mouseleave(function(f){this.HScroller.stop()});$(this.prefix).mouseenter(function(f){this.HScroller.sLayerX=f.pageX-$(this).offset().left;this.HScroller.play()});$(this.prefix).mousemove(function(f){this.HScroller.sLayerX=f.pageX-$(this).offset().left})}};this.stop=function(){clearInterval(this.interval)};this.play=function(){clearInterval(this.interval);this.interval=setInterval(new Function("window."+this.name+".move( );"),this.time)};this.move=function(){var h=(this.sLayerX*this.coefficient);if(h>this.holder-this.zoneSize){var k=Math.abs(parseInt($(this.prefix+"Content").css("left")));if(k+this.holder<this.content){var g=this.content-this.holder;h-=(this.holder-this.zoneSize);var f=(h>0?Math.min(k+Math.round((h/this.zoneSize)*this.speed),g):k);$(this.prefix+"Content").css("left",-f);$(this.prefix+"Right").toggle((f!=g));$(this.prefix+"Left").toggle((f>0))}}else{if(h<this.zoneSize){var k=parseInt($(this.prefix+"Content").css("left"));if(k<0){var g=0;var f=Math.min(k+(h>0?Math.round((1-(h/this.zoneSize))*this.speed):this.speed),g);$(this.prefix+"Content").css("left",f);$(this.prefix+"Left").toggle((f!=g));$(this.prefix+"Right").toggle((f>this.holder-this.content))}}}};window[this.name]=this;$(document).ready(new Function("window."+this.name+".init( );"));return this}function changeMainTab(c,b){tab=$("#"+c);tab.parent().children("div").fadeOut("slow");tab.fadeIn("slow");if(b){b=$(b);b.parent().children("div").removeClass("selected");b.addClass("selected")}}function changeSummaryTVTab(c,b){tab=$("#"+c);tab.parent().children("div").fadeOut("slow");tab.fadeIn("slow");if(b){b=$(b);b.parent().children("a").removeClass("actualPage");b.addClass("actualPage")}}window.jsloads=null;function addJSLoad(c,b){if(window.jsloads==null){$(function(){doJSLoad()});window.jsloads=new Object()}window.jsloads[c]=(b?b:true)}function doJSLoad(e,d){if(window.jsloads==null){window.jsloads=new Object()}if(e){window.jsloads[e]=(d?d:true)}var b=toObject("lJSHolder");if(!b){b=document.createElement("div");b.id="lJSHolder";document.body.appendChild(b)}for(var e in window.jsloads){var c="";if(window.jsloads[e]==true){c=$(document.createElement("script"));c.attr("type","text/javascript");c.attr("async",true);c.attr("src",e)}else{c='<script language="javascript" type="text/javascript" src="'+e+'" async="true">'+window.jsloads[e]+"<\/script>"}$(b).append(c)}window.jsloads=null}function addGAEvent(c,e,b,d){if(!window.gaPath){window.gaPath="INDEFINIDO"}if(!b){b=window.gaPath}if(typeof(_gaq)!="undefined"){_gaq.push(["_trackEvent",c,e,b,(!isNaN(d)&&d>0?parseInt(d,10):0)])}}function registerShareActions(){$(function(){$(".twitter-share-button").each(function(){$(this).attr("data-count","horizontal");$(this).attr("data-via","golgolgolnet");$(this).attr("data-lang","es")});$(".google-buzz-button").each(function(){$(this).attr("data-button-style","small-count");$(this).attr("data-locale","es")});$(".g-plusone").each(function(){$(this).attr("data-size","medium");$(this).attr("data-locale","es")});$(".liFrame").each(function(){$(this).html("").append('<script class="LinkedIn" type="IN/Share" data-counter="right"><\/script>')});$(".fbIFrame").each(function(b){$(this).html('<iframe src="http://www.facebook.com/plugins/like.php?href='+document.location.href+"&amp;send=false&amp;layout=button_count&amp;width=120&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21&amp;locale=es_ES&amp;fb_ref=MS_"+b+'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:120px; height:21px;" allowTransparency="true"></iframe>')});$(".deliFrame").each(function(c){var b=$(document.createElement("a"));b.attr("href","http://www.delicious.com/save");b.click(function(){popup("http://www.delicious.com/save?v=5&noui&jump=close&url="+encodeURIComponent(document.location.href)+"&title="+encodeURIComponent(document.title),"delicious",550,550,"center","middle","toolbar=no");return false});b.html('<img src="http://www.delicious.com/static/img/delicious.small.gif" height="20" width="20" alt="Delicious" /> <span>0</span>');$(this).html("").append(b)});addJSLoad("http://badges.del.icio.us/feeds/json/url/data?url="+encodeURIComponent(document.location.href)+"&callback=displayDeliUrl")});addJSLoad("http://widgets.digg.com/buttons.js");addJSLoad("http://www.google.com/buzz/api/button.js");addJSLoad("http://platform.twitter.com/widgets.js");addJSLoad("https://apis.google.com/js/plusone.js","{lang: 'es'}");addJSLoad("http://platform.linkedin.com/in.js")}function displayDeliUrl(c){var b=0;if(c.length>0&&c[0].total_posts){b=c[0].total_posts}$(".deliFrame a span").html(b)}function validateCommentsAuth(b){requestInto(null,intra_base_url+"Scripts/sendComent.php","commentsAuth",{idFile:b,service:"article.auth",action:"form"});updateCommentCount(b,intra_base_url);updateCommentList(b);if(window.currrentUser==null){}}function updateCommentCount(b){requestInto(null,intra_base_url+"Scripts/countComments.php",null,{idFile:b},false,function(c){result=0;if(!isNaN(c.responseText)){result=parseInt(c.responseText,10)}$("span.countTotalComments").text(result);return false})}function updateCommentList(b,c){if(!c||c<0){c=0}requestInto(null,intra_base_url+"servlet/readComments.php","commentsHolder",{idFile:b,start:c})}function registerChampionActions(){new registerHScroller("gallery",100,15,0.45);$("#championContentTop").show();this.sheets=new Array();if($("#championNews").get(0)){this.sheets.push($("#championNews"))}this.activeSheet=0;this.activeData=new Array(0,0,0);this.newData=0;this.newSheet=0;this.fadeSpeed=400;this.slideSpeed=10000;this.slideInterval=null;this.init=function(){for(var b=0;b<this.sheets.length;b++){this.sheets[b].removeClass("hidden");this.sheets[b].children(".data").each(this.initData);this.sheets[b].children(".inf").each(this.initInf);this.sheets[b].mouseenter(function(){window.championLayer.stop()});this.sheets[b].mouseleave(function(){window.championLayer.play()});this.sheets[b].toggle(b==0)}this.showSheet(0);$("#championDataTop").hide();$("#championContentTop").fadeOut("slow");this.play()};this.initData=function(c,e){e=$(e);e.removeClass("hidden");var b=e.children(".back");var f=e.children(".info");var d=f.height();f.css("top",(360-d)+"px");b.css("top",(360-d)+"px");b.css("height",d+"px");b.fadeTo(0,0.3);e.toggle(c==0)};this.initInf=function(b,c){c=$(c);c.children(".bar").css("top","0px");c.children(".text").each(window.championLayer.initText)};this.initText=function(b,c){c=$(c);c.mouseenter(new Function("window.championLayer.showData( "+b+" );"))};this.showNewData=function(){var b=this.sheets[this.activeSheet].children(".data");var c=b.eq(this.activeData[this.activeSheet]);c.hide();this.activeData[this.activeSheet]=(this.newData<0||this.newData>b.length-1?0:this.newData);var c=b.eq(this.activeData[this.activeSheet]);c.show();$("#championDataTop").clearQueue();$("#championDataTop").fadeTo(this.fadeSpeed/2,0,function(){$("#championDataTop").css("display","none")})};this.showData=function(c){if(c!=this.activeData[this.activeSheet]||c!=this.newData){var b=this.sheets[this.activeSheet].children(".data");this.newData=(c<0||c>b.length-1?0:c);var d=this.sheets[this.activeSheet].find(".bar");d.clearQueue();d.animate({top:d.height()*this.newData},this.fadeSpeed);$("#championDataTop").css("display","block");$("#championDataTop").fadeTo(this.fadeSpeed/2,1,function(){window.championLayer.showNewData()})}};this.showNewSheet=function(){this.sheets[this.activeSheet].hide();this.sheets[this.activeSheet].show();$("#championDataTop").clearQueue();$("#championDataTop").fadeTo(this.fadeSpeed/2,0,function(){$("#championDataTop").css("display","none")})};this.showSheet=function(b){if(b!=this.activeSheet){this.stop();$("#championDataTop").css("display","block");$("#championDataTop").fadeTo(this.fadeSpeed/2,1,function(){window.championLayer.showNewSheet()})}};this.stop=function(){clearTimeout(this.slideInterval)};this.play=function(){this.stop();this.slideInterval=setTimeout(function(){window.championLayer.playAction()},this.slideSpeed)};this.playAction=function(){this.stop();this.showData(this.activeData[this.activeSheet]+1);this.play()};window.championLayer=this;$(document).ready(function(){window.championLayer.init()});return this}function changeChampionTab(b,c,d){if(c){c=$(c);c.parent().children("li").removeClass("selected");c.addClass("selected")}c=$(toObject(b));c.parent().children("div").hide();c.fadeIn("slow");if(!window.HScrollervideo){new registerHScroller("video",100,15,0.45)}}function validateEmailContact(){if(toObject("Correo").value.length==0){clearInfo("Correo")}else{if(!validateEmail(toObject("Correo").value)){showError("Correo_info","No es correo electr&oacute;nico v&aacute;lido.")}else{showInfo("Correo_info","")}}}function validateContactSite(){if(toObject("Nombre").value.trim().length<3){toObject("Nombre").focus();showError("Nombre_info","El nombre no es correcto.");return}showInfo("Nombre_info","");if(toObject("Apellido").value.trim().length<3){toObject("Apellido").focus();showError("Apellido_info","El apellido no es correcto.");return}showInfo("Apellido_info","");if(toObject("Correo").value.trim().length<3||!toObject("Correo").value.match(/[\w-\.]{3,}@([\w-]{2,}\.)*([\w-]{2,}\.)[\w-]{2,4}/)){toObject("Correo").focus();showError("Correo_info","El Correo electronico no es correcto.");return}showInfo("Correo_info","");if(toObject("Pais").value==""){toObject("Pais").focus();showError("Pais_info","El pa&iacute;s no es correcto.");return}showInfo("Pais_info","");if(toObject("Ciudad").value==""){toObject("Ciudad").focus();showError("Ciudad_info","La ciudad no es correcto.");return}showInfo("Pais_info","");if(toObject("Tipo").value.trim().length<3){toObject("Tipo").focus();showError("Tipo_info","El tipo no es correcto.");return}showInfo("Tipo_info","");if(toObject("Comentario").value.trim().length<3){toObject("Comentario").focus();showError("Comentario_info","El comentario no es correcta.");return}showInfo("Comentario_info","");if(toObject("charsVerify").value.trim().length!=8){toObject("charsVerify").focus();showError("charsVerify_info","Debe digitar los 8 caracteres de verificaci&oacute;n.");return}showInfo("charsVerify_info","");toObject("botton_formact").onclick=function(){return false};requestInto("contact",intra_base_url+"services/","generalResult",{service:"contact.site",action:"emailSend"},false,callbackContact)}function callbackContact(request){var msg="";var status="";try{alert(request.responseText);eval("obj = "+request.responseText);status=obj.status+"";msg=obj.error+"";newkey=obj.newkey}catch(e){showError("generalResult","Error de sistema, por favor intente el env&iacute;o en unos minutos. Gracias")}if(status=="ok"){toObject("botton_form").style.display="none";showInfo("generalResult","&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+msg)}else{if(toObject(msg)){toObject(msg).focus();showError(msg+"_info","Campo incorrecto o no v&aacute;lido.");if(newkey){recaptcha()}toObject("botton_formact").onclick=function(){validateContactSite();return false}}}return false}var OptionsTmpARQ=new Array();var OptionsTmpDEF=new Array();var OptionsTmpVOL=new Array();var OptionsTmpDEL=new Array();function filterPlayers(d){var b=document.getElementById("teams"+d);for(i=0;i<b.length;i++){if(b[i].selected==true){var f=b[i].value}}var e=document.getElementById("players"+d);switch(d){case"ARQ":for(i=0;i<OptionsTmpARQ.length;i++){e.options[e.length]=OptionsTmpARQ[i]}OptionsTmpARQ=new Array();break;case"DEF":for(i=0;i<OptionsTmpDEF.length;i++){e.options[e.length]=OptionsTmpDEF[i]}OptionsTmpDEF=new Array();break;case"VOL":for(i=0;i<OptionsTmpVOL.length;i++){e.options[e.length]=OptionsTmpVOL[i]}OptionsTmpVOL=new Array();break;case"DEL":for(i=0;i<OptionsTmpDEL.length;i++){e.options[e.length]=OptionsTmpDEL[i]}OptionsTmpDEL=new Array();break}for(i=1;i<e.length;i++){id=e[i].value;tmp=id.split("|");id_team=tmp[0];if(f!=id_team&&f!=0){var c=new Option(e[i].text,e[i].value);switch(d){case"ARQ":OptionsTmpARQ.push(c);break;case"DEF":OptionsTmpDEF.push(c);break;case"VOL":OptionsTmpVOL.push(c);break;case"DEL":OptionsTmpDEL.push(c);break}e[i]=null;i--}}}function getPlayer(c){if(c.selectedIndex>0){var b=c.options[c.selectedIndex].value.split("|");var d=c.options[c.selectedIndex].text;if(b[2]=="ARQ"){selectPlayer(b[1],d,b[0],0)}else{if(b[2]=="DEF"){selectPlayer(b[1],d,b[0],1)}else{if(b[2]=="VOL"){selectPlayer(b[1],d,b[0],2)}else{if(b[2]=="DEL"){selectPlayer(b[1],d,b[0],3)}else{alertfan("<font size=2 color=white><b>El jugador '"+d+"' no tiene un a posici\xf3n valida</b></font>")}}}}}}function savePlayers(){for(j=0;j<players.length;j++){for(i=0;i<players[j].length;i++){if(players[j][i]==0){alertfan("<font size=2 color=white><b>No has seleccionado todos los jugadores.</b></font>");return}}}sendForm("form_player_store","containerFantasy")}function detailPlayer(g,d,f){var c=false;var b=0;for(j=0;j<players.length&&!c;j++){for(i=0;i<players[j].length&&!c;i++,b++){if(b==g){showPreviewPlayer(players[j][i]+"_"+d,"formPreviewPlayer","previewPlayer",f)}}}}function removePlayer(h){var e=false;var b=0;for(j=0;j<players.length&&!e;j++){for(i=0;i<players[j].length&&!e;i++,b++){if(b==h){players[j][i]=0;teams[j][i]=0;var f=document.getElementById("fan_opt_"+b);if(f){f.style.display="none"}var c=document.getElementById("fan_but_"+b);if(c){c.style.display="none"}var g=document.getElementById("fan_pla_"+b);if(g){if(g.style.filter){g.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='/Scripts/Fantasy/img/default.png')"}else{g.style.backgroundImage="";g.style.backgroundImage="url(/Scripts/Fantasy/img/default.png)"}}var d=document.getElementById("fan_pla_name_"+b);if(d){d.innerHTML=""}e=true}}}}function callToolTipPlayer(b,d){var c=document.getElementById("fan_but_"+b);if(c){c.parentNode.parentNode.parentNode.parentNode.appendChild(c.parentNode.parentNode.parentNode);c.parentNode.parentNode.parentNode.appendChild(c.parentNode.parentNode);if(d!=undefined){c.style.display=d?"block":"none"}else{if(c.style.display=="none"){c.style.display="block"}else{c.style.display="none"}}}}function alertfan(c){var b=document.getElementById("fan_message");if(b){b.innerHTML=c;document.location.href="#fan_anchor"}else{alert(c)}}function selectPlayer(r,c,e,q){var m=0;var n=0;for(j=0;j<teams.length;j++){for(i=0;i<teams[j].length;i++){if(e==teams[j][i]){m++}if(r==players[j][i]){n++}}}if(m>=3){alertfan("<font size=2 color=white><b>No se pueden seleccionar m\xe1s jugadores de "+teamsName[e]+"</b></font>");return}if(n>0){alertfan("<font size=2 color=white><b>El jugador '"+c+"' ya se encuentra en tu n\xf3mina</b></font>");return}var s=false;var o=0;for(j=0;j<players.length;j++){for(i=0;i<players[j].length;i++,o++){if(q==j&&players[j][i]==0&&!s){players[q][i]=r;teams[q][i]=e;var d=document.getElementById("fan_opt_"+o);if(d){d.style.display="block"}callToolTipPlayer(o);var l=document.getElementById("fan_pla_"+o);if(l){if(l.style.filter){l.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='"+intra_base_url+"servlet/ShowImage.php?idFile="+e+"&contentName=player.png')"}else{newurl="url("+intra_base_url+"servlet/ShowImage.php?idFile="+e+"&contentName=player.png)";l.style.backgroundImage="";l.style.backgroundImage=newurl}}var g=document.getElementById("fan_pla_name_"+o);if(g){g.innerHTML=c}var b=document.getElementById("fan_pla_image_"+o);if(b){b.innerHTML="";var k=document.createElement("IMG");k.src=intra_base_url+"servlet/ShowImage.php?idFile="+r+"&contentName=jugador.jpg";k.height="50";k.style.padding="2px";b.appendChild(k)}var h=document.getElementById("fan_id_player_"+o);if(h){h.value=r}var f=document.getElementById("team_id_player_"+o);if(f){f.value=e}s=true}if(players[j][i]>0&&players[j][i]!=r){callToolTipPlayer(o,0)}}}if(!s){alertfan("<font size=2 color=white><b>Ya seleccionaste a todos los jugadores en esa posici\xf3n</b></font>")}else{alertfan("<font size=2 color=white><b>Se agreg\xf3 el jugador '"+c+"' del equipo '"+teamsName[e]+"'</b></font>")}}function setCaptain(c){var b=0;for(j=0;j<players.length;j++){for(i=0;i<players[j].length;i++,b++){ply=document.getElementById("fan_cap_"+b);input=document.getElementById("id_captain_"+b);if(ply&&input){ply.src="/Scripts/Fantasy/img/"+((b==c)?"iconCaptain":"iconCaptainOff")+".png";input.value=(b==c)?"true":"false";if(b==c){callToolTipPlayer(b,0)}}}}}function changePlayer(u){var d=false;var t=0;var f=0;var g=-1;var e=-1;var v=-1;var r=-1;for(j=0;j<players.length&&!d;j++){for(i=0;i<players[j].length;i++,t++){if(t==u){g=i;e=j;d=true}}if(d){v=i-1;r=j;f=t-1}}t=u;var o=document.getElementById("fan_player_container_"+u);var n=document.getElementById("fan_player_container_"+f);var k=document.getElementById("fan_id_player_"+u);var h=document.getElementById("fan_id_player_"+f);var c=document.getElementById("team_id_player_"+u);var b=document.getElementById("team_id_player_"+f);var C=o.innerHTML.replace(/ (id|name)=(["|'])([^0-9]*)([^"|']*)(["|'])/gi," $1=$2$3"+f+"$5").replace(/(["|'])(callToolTipPlayer|changePlayer|detailPlayer|setCaptain)\(([0-9]+)/g,"$1$2("+f);var z=k.value;var w=players[e][g];var s=teams[e][g];var q=c.value;o.innerHTML=n.innerHTML.replace(/ (id|name)=(["|'])([^0-9]*)([^"|']*)(["|'])/gi," $1=$2$3"+u+"$5").replace(/(["|'])(callToolTipPlayer|changePlayer|detailPlayer|setCaptain)\(([0-9]+)/g,"$1$2("+u);k.value=h.value;players[e][g]=players[r][v];teams[e][g]=teams[r][v];c.value=b.value;n.innerHTML=C;h.value=z;players[r][v]=w;teams[r][v]=s;b.value=q;var B=document.getElementById("fan_button_banq_"+u);var m=document.getElementById("fan_button_captain_"+u);var A=document.getElementById("fan_button_banq_"+f);var l=document.getElementById("fan_button_captain_"+f);B.style.display="inline";m.style.display="inline";A.style.display="none";l.style.display="none";callToolTipPlayer(f,0)}function registerLayerActions(){$("#contentTop").show();this.sheets=new Array();if($("#layerNews").get(0)){this.sheets.push($("#layerNews"))}if($("#layerVids").get(0)){this.sheets.push($("#layerVids"))}if($("#layerImgs").get(0)){this.sheets.push($("#layerImgs"))}this.sheetButtons=$("#layerButtons > div");this.activeSheet=0;this.activeData=new Array(0,0,0);this.newData=0;this.newSheet=0;this.fadeSpeed=400;this.slideSpeed=10000;this.slideInterval=null;this.init=function(){for(var d=0;d<this.sheets.length;d++){this.sheets[d].removeClass("hidden");this.sheets[d].children(".data").each(this.initData);this.sheets[d].children(".inf").each(this.initInf);this.sheets[d].mouseenter(function(){window.mainLayer.stop()});this.sheets[d].mouseleave(function(){window.mainLayer.play()});var b=this.sheetButtons.eq(d);if(b){b.click(new Function("window.mainLayer.showSheet("+d+");addGAEvent( 'Destacados', 'Ver ' + $(this).text( ) );return false;"))}this.sheets[d].toggle(d==0)}this.showSheet(0);$("#dataTop").hide();$("#contentTop").fadeOut("slow");this.play()};this.initData=function(c,e){e=$(e);e.removeClass("hidden");var b=e.children(".back");var f=e.children(".info");var d=f.height();f.css("top",(290-d)+"px");b.css("top",(290-d)+"px");b.css("height",d+"px");b.fadeTo(0,0.3);e.toggle(c==0)};this.initInf=function(b,c){c=$(c);c.children(".bar").css("left","0px");c.children(".text").each(window.mainLayer.initText)};this.initText=function(b,c){c=$(c);c.mouseenter(new Function("window.mainLayer.showData( "+b+" );"))};this.showNewData=function(){var b=this.sheets[this.activeSheet].children(".data");var c=b.eq(this.activeData[this.activeSheet]);c.hide();this.activeData[this.activeSheet]=(this.newData<0||this.newData>b.length-1?0:this.newData);var c=b.eq(this.activeData[this.activeSheet]);c.show();$("#dataTop").clearQueue();$("#dataTop").fadeTo(this.fadeSpeed/2,0,function(){$("#dataTop").css("display","none")})};this.showData=function(c){if(c!=this.activeData[this.activeSheet]||c!=this.newData){var b=this.sheets[this.activeSheet].children(".data");this.newData=(c<0||c>b.length-1?0:c);var d=this.sheets[this.activeSheet].find(".bar");d.clearQueue();d.animate({left:d.width()*this.newData},this.fadeSpeed);$("#dataTop").css("display","block");if(c>b.length-1){$("#dataTop").fadeTo(this.fadeSpeed/2,1);this.showSheet(this.activeSheet+1);var e=b.eq(this.activeData[this.activeSheet]);e.hide();this.activeData[this.activeSheet]=0;e=b.eq(this.activeData[this.activeSheet]);e.show()}else{$("#dataTop").fadeTo(this.fadeSpeed/2,1,function(){window.mainLayer.showNewData()})}}};this.showNewSheet=function(){this.sheets[this.activeSheet].hide();this.activeSheet=(this.newSheet<0||this.newSheet>this.sheetButtons.length-1?0:this.newSheet);this.sheets[this.activeSheet].show();$("#dataTop").clearQueue();$("#dataTop").fadeTo(this.fadeSpeed/2,0,function(){$("#dataTop").css("display","none")})};this.showSheet=function(b){if(b!=this.activeSheet){this.sheetButtons.eq(this.activeSheet).removeClass("selected");this.newSheet=(b<0||b>this.sheetButtons.length-1?0:b);this.sheetButtons.eq(this.newSheet).addClass("selected");this.stop();$("#dataTop").css("display","block");$("#dataTop").fadeTo(this.fadeSpeed/2,1,function(){window.mainLayer.showNewSheet()})}};this.stop=function(){clearTimeout(this.slideInterval)};this.play=function(){this.stop();this.slideInterval=setTimeout(function(){window.mainLayer.playAction()},this.slideSpeed)};this.playAction=function(){this.stop();this.showData(this.activeData[this.activeSheet]+1);this.play()};window.mainLayer=this;$(document).ready(function(){window.mainLayer.init()});return this}function showError(b,c){toObject(b).className="usreg_error";toObject(b).innerHTML=""+c;if(!toObject("tr_"+b)){alert("tr_"+b)}toObject("tr_"+b).bgColor="#F7F2EC";showElement(b)}function showInfo(b,c){toObject(b).className="usreg_info";toObject(b).innerHTML=""+c;if(toObject("tr_"+b)){toObject("tr_"+b).bgColor="#FFFFFF"}showElement(b)}function clearInfo(b){toObject(b).className="";toObject(b).innerHTML="";if(toObject("tr_"+b)){toObject("tr_"+b).bgColor="#FFFFFF"}}function validatePassBlur(b){if(b&&toObject("register_pass_confirm").value.length==0){clearInfo("register_pass_confirm_info")}else{if(toObject("register_pass_confirm").value!=toObject("register_pass").value){toObject("register_pass_confirm").focus();showError("register_pass_confirm_info","La confirmacion de contrase&ntilde;a no es correcta.");return}}return true}function validateContact(){if(toObject("register_fname").value.trim().length<3){toObject("register_fname").focus();showError("register_fname_info","El nombre no es correcto.");return}showInfo("register_fname_info","");if(toObject("register_lname").value.trim().length<3){toObject("register_lname").focus();showError("register_lname_info","El apellido no es correcto.");return}showInfo("register_lname_info","");if(!validateEmail(toObject("register_email").value)){toObject("register_email").focus();showError("register_email_info","El email no es correcto.");return}if(toObject("register_pais").value.length<1){toObject("register_pais").focus();showError("register_pais_info","Favor seleccionar el pais.");return}if(toObject("register_equipo").value.length<1){toObject("register_equipo").focus();showError("register_equipo_info","Favor seleccionar el equipo.");return}if(toObject("register_user").value.length<3){toObject("register_user").focus();showError("register_user_info","El nombre de usuario no es correcto.");return}if(toObject("register_pass").value.trim().length<3){toObject("register_pass").focus();showError("register_pass_info","La contrase&ntilde;a debe tener minimo 4 caracteres.");return}showInfo("register_pass_info","");if(!validatePassBlur()){return}showInfo("register_pass_confirm_info","");if(!toObject("accept").checked){showError("accept_info","Debe aceptar t&eacute;rminos de uso.");return}showInfo("accept_info","");if(toObject("charsVerify").value.trim().length!=8){toObject("charsVerify").focus();showError("charsVerify_info","Debe digitar los 8 caracteres de verificaci&oacute;n.");return}showInfo("charsVerify_info","");requestInto("usreg_register",intra_base_url+"services/","generalResult",{service:"user.register",action:"add"},false,callbackData)}function callbackData(request){response="";msg="";try{eval("obj = "+request.responseText);response=obj.errorCode;msg=obj.msg}catch(e){}if(response=="FNAME"){toObject("register_fname").focus();showError("register_fname_info",msg)}else{if(response=="LNAME"){toObject("register_lname").focus();showError("register_lname_info",msg)}else{if(response=="EMAIL"){toObject("register_email").focus();showError("generalResult",msg);showError("register_email_info",msg)}else{if(response=="EQUIPO"){toObject("register_equipo").focus();showError("generalResult",msg);showError("register_equipo_info",msg)}else{if(response=="PAIS"){toObject("register_pais").focus();showError("generalResult",msg);showError("register_pais_info",msg)}else{if(response=="USER"){toObject("register_user").focus();showError("generalResult",msg);showError("register_user_info",msg)}else{if(response=="PASS"){toObject("register_pass").focus();showError("register_pass_info",msg)}else{if(response=="PINCAPTCHA"){toObject("charsVerify").focus();recaptcha();toObject("charsVerify").value="";showError("charsVerify_info",msg)}else{if(response=="DATA"){showError("generalResult",msg)}else{if(response=="SUCCESS"){showInfo("generalResult",msg);changeInputs()}else{showError("generalResult","En este momento no es posible registrar su usuario.<br />Por favor int&eacute;ntelo en unos minutos.")}}}}}}}}}}return false}function changeInputs(){var d='<div class="usreg_info" style="padding:30px">Creaci&oacute;n satisfactoria de usuario.<br /><br /><b>Bienvenido</b> '+toObject("register_fname").value+" "+toObject("register_lname").value+"</div>";var c=new Array("register_fname","register_lname","register_email","register_user","register_pass","register_pass_confirm","charsVerify");for(var b=0;b<c.length;b++){if(c[b].indexOf("register_pass")==0){toObject(c[b]).parentNode.innerHTML="********"}else{toObject(c[b]).parentNode.innerHTML=toObject(c[b]).value}if(toObject(c[b]+"_info")){showInfo(c[b]+"_info","")}}toObject("tb_down_content").className="creation";toObject("tb_down_content").innerHTML=d}function validateText(c,d,b){if(!d){d=3}if(b&&c.value.length==0){clearInfo(c.id+"_info")}else{if(c.value.trim().length>d){showInfo(c.id+"_info","")}else{showError(c.id+"_info","Debe tener mas de "+d+" caracteres.")}}}function validateUser(b){if(b&&toObject("register_user").value.length==0){clearInfo("register_user_info")}else{if(toObject("register_user").value.trim().length>3){requestInto(null,intra_base_url+"services/","register_user_info",{user:toObject("register_user").value.trim(),service:"helper.register.validation",action:"user",format:"JSON"},false,callbackDataUser)}else{showError("register_user_info","Debe tener mas de 3 caracteres.")}}}function validateEmailService(b){if(toObject("register_email").value.length==0){clearInfo("register_email_info")}else{if(validateEmail(toObject("register_email").value)){requestInto(null,intra_base_url+"services/","register_user_info",{email:toObject("register_email").value.trim(),service:"helper.register.validation",action:"email",format:"JSON"},false,callbackDataEmail)}else{showError("register_email_info","No es correo electr&oacute;nico v&aacute;lido.")}}}function callbackDataUser(request){try{eval("userValidate = "+request.responseText);if(userValidate){if(userValidate.errorCode=="USER_AVAILABLE"){showInfo("register_user_info",userValidate.msg)}else{showError("register_user_info",userValidate.msg)}return false}}catch(e){}showError("generalResult","En este momento no es posible verificar su usuario.");return false}function callbackDataEmail(request){try{eval("userValidate = "+request.responseText);if(userValidate){if(userValidate.errorCode=="EMAIL_AVAILABLE"){showInfo("register_email_info",userValidate.msg)}else{showError("register_email_info",userValidate.msg)}return false}}catch(e){}showError("generalResult","En este momento no es posible verificar su e-mail.");return false}function recaptcha(){toObject("pincaptcha").src+="&amp;"+Math.random()+"="}function registerCopaAmericaActions(){$("#contentTop").show();this.sheets=new Array();if($("#layerNews").get(0)){this.sheets.push($("#layerNews"))}this.sheetButtons=$("#layerButtons > div");this.activeSheet=0;this.activeData=new Array(0,0,0);this.newData=0;this.newSheet=0;this.fadeSpeed=400;this.slideSpeed=5000;this.slideInterval=null;this.init=function(){for(var b=0;b<this.sheets.length;b++){this.sheets[b].find(".caCounter a").each(this.initOptions);this.sheets[b].removeClass("hidden");this.sheets[b].mouseenter(function(){window.caLayer.stop()});this.sheets[b].mouseleave(function(){window.caLayer.play()});this.sheets[b].toggle(b==0)}this.showSheet(0);$("#dataTop").hide();$("#contentTop").fadeOut("slow");this.play()};this.initOptions=function(c,b){$(b).click(new Function("window.caLayer.showData( "+c+" ); return false;"))};this.showNewData=function(){var b=this.sheets[this.activeSheet].children(".data");var c=b.eq(this.activeData[this.activeSheet]);c.hide();this.activeData[this.activeSheet]=(this.newData<0||this.newData>b.length-1?0:this.newData);var c=b.eq(this.activeData[this.activeSheet]);c.show();$("#dataTop").clearQueue();$("#dataTop").fadeTo(this.fadeSpeed/2,0,function(){$("#dataTop").css("display","none")})};this.showData=function(c){if(c!=this.activeData[this.activeSheet]||c!=this.newData){var b=this.sheets[this.activeSheet].children(".data");this.newData=(c<0||c>b.length-1?0:c);var d=this.sheets[this.activeSheet].find(".caCounterArrow");d.clearQueue();d.animate({left:(this.newData*20)+"px"},this.fadeSpeed);$("#dataTop").css("display","block");$("#dataTop").fadeTo(this.fadeSpeed/2,1,function(){window.caLayer.showNewData()})}};this.showNewSheet=function(){this.sheets[this.activeSheet].hide();this.activeSheet=(this.newSheet<0||this.newSheet>this.sheetButtons.length-1?0:this.newSheet);this.sheets[this.activeSheet].show();$("#dataTop").clearQueue();$("#dataTop").fadeTo(this.fadeSpeed/2,0,function(){$("#dataTop").css("display","none")})};this.showSheet=function(b){if(b!=this.activeSheet){this.sheetButtons.eq(this.activeSheet).removeClass("selected");this.newSheet=(b<0||b>this.sheetButtons.length-1?0:b);this.sheetButtons.eq(this.newSheet).addClass("selected");this.stop();$("#dataTop").css("display","block");$("#dataTop").fadeTo(this.fadeSpeed/2,1,function(){window.caLayer.showNewSheet()})}};this.stop=function(){clearTimeout(this.slideInterval)};this.play=function(){this.stop();this.slideInterval=setTimeout(function(){window.caLayer.playAction()},this.slideSpeed)};this.playAction=function(){this.stop();this.showData(this.activeData[this.activeSheet]+1);this.play()};window.caLayer=this;$(document).ready(function(){window.caLayer.init()});return this}function showPlayerFig(b){if(window.figActual){window.figActual.removeClass("selected")}var c=window.figs[b];$("#fImg").html('<img src="'+c.img+'" width="340" height="340" alt="'+c.name+'" />');$("#fFlag").html('<img src="'+c.flag+'" width="128" height="128" alt="'+c.name+'" />');$("#fName").html(c.name);$("#fInfo1").html("<b>Apodo:</b> "+c.nick+"<br /><b>Posici&oacute;n:</b> "+c.pos);$("#fInfo2").html("<b>Nacimiento:</b> "+c.born+"<br /><b>Pa&iacute;s:</b> "+c.place);$("#fData").html(c.perfil);$("#fInfo").html("<div><b>Edad:</b><span>"+c.age+"</span></div><div><b>Altura:</b><span>"+c.h+"</span></div><div><b>Peso:</b><span>"+c.w+"</span></div><div><b>Club Actual:</b><span>"+c.c+"</span></div><div><b>Debut:</b><span>"+c.d+"</span></div><div><b>Goles:</b><span>"+c.gs+" <small>(selecci&oacute;n)</small></span></div><div><b>Goles:</b><span>"+c.gc+" <small>(clubes)</small></span></div>");window.figActual=$("#figureContent td").eq(b);window.figActual.addClass("selected")}function registerSub20Actions(){$("#contentTop").show();this.sheets=new Array();if($("#layerNews").get(0)){this.sheets.push($("#layerNews"))}this.sheetButtons=$("#layerButtons > div");this.activeSheet=0;this.activeData=new Array(0,0,0);this.newData=0;this.newSheet=0;this.fadeSpeed=400;this.slideSpeed=5000;this.slideInterval=null;this.init=function(){for(var b=0;b<this.sheets.length;b++){this.sheets[b].find(".s20Counter a").each(this.initOptions);this.sheets[b].removeClass("hidden");this.sheets[b].mouseenter(function(){window.s20Layer.stop()});this.sheets[b].mouseleave(function(){window.s20Layer.play()});this.sheets[b].toggle(b==0)}this.showSheet(0);$("#dataTop").hide();$("#contentTop").fadeOut("slow");this.play()};this.initOptions=function(c,b){$(b).click(new Function("window.s20Layer.showData( "+c+" ); return false;"))};this.showNewData=function(){var b=this.sheets[this.activeSheet].children(".data");var c=b.eq(this.activeData[this.activeSheet]);c.hide();this.activeData[this.activeSheet]=(this.newData<0||this.newData>b.length-1?0:this.newData);var c=b.eq(this.activeData[this.activeSheet]);c.show();$("#dataTop").clearQueue();$("#dataTop").fadeTo(this.fadeSpeed/2,0,function(){$("#dataTop").css("display","none")})};this.showData=function(c){if(c!=this.activeData[this.activeSheet]||c!=this.newData){var b=this.sheets[this.activeSheet].children(".data");this.newData=(c<0||c>b.length-1?0:c);var d=this.sheets[this.activeSheet].find(".s20CounterArrow");d.clearQueue();d.animate({left:(this.newData*20)+"px"},this.fadeSpeed);$("#dataTop").css("display","block");$("#dataTop").fadeTo(this.fadeSpeed/2,1,function(){window.s20Layer.showNewData()})}};this.showNewSheet=function(){this.sheets[this.activeSheet].hide();this.activeSheet=(this.newSheet<0||this.newSheet>this.sheetButtons.length-1?0:this.newSheet);this.sheets[this.activeSheet].show();$("#dataTop").clearQueue();$("#dataTop").fadeTo(this.fadeSpeed/2,0,function(){$("#dataTop").css("display","none")})};this.showSheet=function(b){if(b!=this.activeSheet){this.sheetButtons.eq(this.activeSheet).removeClass("selected");this.newSheet=(b<0||b>this.sheetButtons.length-1?0:b);this.sheetButtons.eq(this.newSheet).addClass("selected");this.stop();$("#dataTop").css("display","block");$("#dataTop").fadeTo(this.fadeSpeed/2,1,function(){window.s20Layer.showNewSheet()})}};this.stop=function(){clearTimeout(this.slideInterval)};this.play=function(){this.stop();this.slideInterval=setTimeout(function(){window.s20Layer.playAction()},this.slideSpeed)};this.playAction=function(){this.stop();this.showData(this.activeData[this.activeSheet]+1);this.play()};window.s20Layer=this;$(document).ready(function(){window.s20Layer.init()});return this}function showPlayerFigSub20(b){if(window.figActual){window.figActual.removeClass("selected")}var c=window.figs[b];$("#fImg").html('<img src="'+c.img+'" width="340" height="340" alt="'+c.name+'" />');$("#fFlag").html('<img src="'+c.flag+'" width="128" height="128" alt="'+c.name+'" />');$("#fName").html(c.name);$("#fInfo1").html("<b>Apodo:</b> "+c.nick+"<br /><b>Posici&oacute;n:</b> "+c.pos);$("#fInfo2").html("<b>Nacimiento:</b> "+c.born+"<br /><b>Pa&iacute;s:</b> "+c.place);$("#fData").html(c.perfil);$("#fInfo").html((c.age!=""?"<div><b>Edad:</b><span>"+c.age+" -</span></div>":"")+(c.h!=""?"<div><b>Altura:</b><span>"+c.h+" </span></div>":"")+(c.w!=""?"<div><b>Peso:</b><span>"+c.w+" </span></div>":"")+(c.c!=""?"<div><b>Club Actual:</b><span>"+c.c+" </span></div>":"")+(c.d!=""?"<div><b>Debut:</b><span>"+c.d+" </span></div>":"")+(c.gs!=""?"<div><b>Goles:</b><span>"+c.gs+" <small>(selecci&oacute;n)</small></span></div>":"")+(c.gc!=""?"<div><b>Goles:</b><span>"+c.gc+" <small>(clubes)</small></span></div>":""));window.figActual=$("#figureContent td").eq(b);window.figActual.addClass("selected")};
