/*
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(window,undefined){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context);},_jQuery=window.jQuery,_$=window.$,document=window.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,userAgent=navigator.userAgent,browserMatch,readyBound=false,readyList=[],DOMContentLoaded,toString=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,push=Array.prototype.push,slice=Array.prototype.slice,indexOf=Array.prototype.indexOf;jQuery.fn=jQuery.prototype={init:function(selector,context){var match,elem,ret,doc;if(!selector){return this;}if(selector.nodeType){this.context=this[0]=selector;this.length=1;return this;}if(selector==="body"&&!context){this.context=document;this[0]=document.body;this.selector="body";this.length=1;return this;}if(typeof selector==="string"){match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){doc=(context?context.ownerDocument||context:document);ret=rsingleTag.exec(selector);if(ret){if(jQuery.isPlainObject(context)){selector=[document.createElement(ret[1])];jQuery.fn.attr.call(selector,context,true);}else{selector=[doc.createElement(ret[1])];}}else{ret=buildFragment([match[1]],[doc]);selector=(ret.cacheable?ret.fragment.cloneNode(true):ret.fragment).childNodes;}return jQuery.merge(this,selector);}else{elem=document.getElementById(match[2]);if(elem){if(elem.id!==match[2]){return rootjQuery.find(selector);}this.length=1;this[0]=elem;}this.context=document;this.selector=selector;return this;}}else{if(!context&&/^\w+$/.test(selector)){this.selector=selector;this.context=document;selector=document.getElementsByTagName(selector);return jQuery.merge(this,selector);}else{if(!context||context.jquery){return(context||rootjQuery).find(selector);}else{return jQuery(context).find(selector);}}}}else{if(jQuery.isFunction(selector)){return rootjQuery.ready(selector);}}if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.context;}return jQuery.makeArray(selector,this);},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length;},toArray:function(){return slice.call(this,0);},get:function(num){return num==null?this.toArray():(num<0?this.slice(num)[0]:this[num]);},pushStack:function(elems,name,selector){var ret=jQuery();if(jQuery.isArray(elems)){push.apply(ret,elems);}else{jQuery.merge(ret,elems);}ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector;}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")";}}return ret;},each:function(callback,args){return jQuery.each(this,callback,args);},ready:function(fn){jQuery.bindReady();if(jQuery.isReady){fn.call(document,jQuery);}else{if(readyList){readyList.push(fn);}}return this;},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1);},first:function(){return this.eq(0);},last:function(){return this.eq(-1);},slice:function(){return this.pushStack(slice.apply(this,arguments),"slice",slice.call(arguments).join(","));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},end:function(){return this.prevObject||jQuery(null);},push:push,sort:[].sort,splice:[].splice};jQuery.fn.init.prototype=jQuery.fn;jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options,name,src,copy;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2;}if(typeof target!=="object"&&!jQuery.isFunction(target)){target={};}if(length===i){target=this;--i;}for(;i<length;i++){if((options=arguments[i])!=null){for(name in options){src=target[name];copy=options[name];if(target===copy){continue;}if(deep&&copy&&(jQuery.isPlainObject(copy)||jQuery.isArray(copy))){var clone=src&&(jQuery.isPlainObject(src)||jQuery.isArray(src))?src:jQuery.isArray(copy)?[]:{};target[name]=jQuery.extend(deep,clone,copy);}else{if(copy!==undefined){target[name]=copy;}}}}}return target;};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery;}return jQuery;},isReady:false,ready:function(){if(!jQuery.isReady){if(!document.body){return setTimeout(jQuery.ready,13);}jQuery.isReady=true;if(readyList){var fn,i=0;while((fn=readyList[i++])){fn.call(document,jQuery);}readyList=null;}if(jQuery.fn.triggerHandler){jQuery(document).triggerHandler("ready");}}},bindReady:function(){if(readyBound){return ;}readyBound=true;if(document.readyState==="complete"){return jQuery.ready();}if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false);window.addEventListener("load",jQuery.ready,false);}else{if(document.attachEvent){document.attachEvent("onreadystatechange",DOMContentLoaded);window.attachEvent("onload",jQuery.ready);var toplevel=false;try{toplevel=window.frameElement==null;}catch(e){}if(document.documentElement.doScroll&&toplevel){doScrollCheck();}}}},isFunction:function(obj){return toString.call(obj)==="[object Function]";},isArray:function(obj){return toString.call(obj)==="[object Array]";},isPlainObject:function(obj){if(!obj||toString.call(obj)!=="[object Object]"||obj.nodeType||obj.setInterval){return false;}if(obj.constructor&&!hasOwnProperty.call(obj,"constructor")&&!hasOwnProperty.call(obj.constructor.prototype,"isPrototypeOf")){return false;}var key;for(key in obj){}return key===undefined||hasOwnProperty.call(obj,key);},isEmptyObject:function(obj){for(var name in obj){return false;}return true;},error:function(msg){throw msg;},parseJSON:function(data){if(typeof data!=="string"||!data){return null;}data=jQuery.trim(data);if(/^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return window.JSON&&window.JSON.parse?window.JSON.parse(data):(new Function("return "+data))();}else{jQuery.error("Invalid JSON: "+data);}},noop:function(){},globalEval:function(data){if(data&&rnotwhite.test(data)){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.support.scriptEval){script.appendChild(document.createTextNode(data));}else{script.text=data;}head.insertBefore(script,head.firstChild);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()===name.toUpperCase();},each:function(object,callback,args){var name,i=0,length=object.length,isObj=length===undefined||jQuery.isFunction(object);if(args){if(isObj){for(name in object){if(callback.apply(object[name],args)===false){break;}}}else{for(;i<length;){if(callback.apply(object[i++],args)===false){break;}}}}else{if(isObj){for(name in object){if(callback.call(object[name],name,object[name])===false){break;}}}else{for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}}return object;},trim:function(text){return(text||"").replace(rtrim,"");},makeArray:function(array,results){var ret=results||[];if(array!=null){if(array.length==null||typeof array==="string"||jQuery.isFunction(array)||(typeof array!=="function"&&array.setInterval)){push.call(ret,array);}else{jQuery.merge(ret,array);}}return ret;},inArray:function(elem,array){if(array.indexOf){return array.indexOf(elem);}for(var i=0,length=array.length;i<length;i++){if(array[i]===elem){return i;}}return -1;},merge:function(first,second){var i=first.length,j=0;if(typeof second.length==="number"){for(var l=second.length;j<l;j++){first[i++]=second[j];}}else{while(second[j]!==undefined){first[i++]=second[j++];}}first.length=i;return first;},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++){if(!inv!==!callback(elems[i],i)){ret.push(elems[i]);}}return ret;},map:function(elems,callback,arg){var ret=[],value;for(var i=0,length=elems.length;i<length;i++){value=callback(elems[i],i,arg);if(value!=null){ret[ret.length]=value;}}return ret.concat.apply([],ret);},guid:1,proxy:function(fn,proxy,thisObject){if(arguments.length===2){if(typeof proxy==="string"){thisObject=fn;fn=thisObject[proxy];proxy=undefined;}else{if(proxy&&!jQuery.isFunction(proxy)){thisObject=proxy;proxy=undefined;}}}if(!proxy&&fn){proxy=function(){return fn.apply(thisObject||this,arguments);};}if(fn){proxy.guid=fn.guid=fn.guid||proxy.guid||jQuery.guid++;}return proxy;},uaMatch:function(ua){ua=ua.toLowerCase();var match=/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||!/compatible/.test(ua)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"};},browser:{}});browserMatch=jQuery.uaMatch(userAgent);if(browserMatch.browser){jQuery.browser[browserMatch.browser]=true;jQuery.browser.version=browserMatch.version;}if(jQuery.browser.webkit){jQuery.browser.safari=true;}if(indexOf){jQuery.inArray=function(elem,array){return indexOf.call(array,elem);};}rootjQuery=jQuery(document);if(document.addEventListener){DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);jQuery.ready();};}else{if(document.attachEvent){DOMContentLoaded=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);jQuery.ready();}};}}function doScrollCheck(){if(jQuery.isReady){return ;}try{document.documentElement.doScroll("left");}catch(error){setTimeout(doScrollCheck,1);return ;}jQuery.ready();}function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:"script"});}else{jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");}if(elem.parentNode){elem.parentNode.removeChild(elem);}}function access(elems,key,value,exec,fn,pass){var length=elems.length;if(typeof key==="object"){for(var k in key){access(elems,k,key[k],exec,fn,value);}return elems;}if(value!==undefined){exec=!pass&&exec&&jQuery.isFunction(value);for(var i=0;i<length;i++){fn(elems[i],key,exec?value.call(elems[i],i,fn(elems[i],key)):value,pass);}return elems;}return length?fn(elems[0],key):undefined;}function now(){return(new Date).getTime();}(function(){jQuery.support={};var root=document.documentElement,script=document.createElement("script"),div=document.createElement("div"),id="script"+now();div.style.display="none";div.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var all=div.getElementsByTagName("*"),a=div.getElementsByTagName("a")[0];if(!all||!all.length||!a){return ;}jQuery.support={leadingWhitespace:div.firstChild.nodeType===3,tbody:!div.getElementsByTagName("tbody").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/red/.test(a.getAttribute("style")),hrefNormalized:a.getAttribute("href")==="/a",opacity:/^0.55$/.test(a.style.opacity),cssFloat:!!a.style.cssFloat,checkOn:div.getElementsByTagName("input")[0].value==="on",optSelected:document.createElement("select").appendChild(document.createElement("option")).selected,parentNode:div.removeChild(div.appendChild(document.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};script.type="text/javascript";try{script.appendChild(document.createTextNode("window."+id+"=1;"));}catch(e){}root.insertBefore(script,root.firstChild);if(window[id]){jQuery.support.scriptEval=true;delete window[id];}try{delete script.test;}catch(e){jQuery.support.deleteExpando=false;}root.removeChild(script);if(div.attachEvent&&div.fireEvent){div.attachEvent("onclick",function click(){jQuery.support.noCloneEvent=false;div.detachEvent("onclick",click);});div.cloneNode(true).fireEvent("onclick");}div=document.createElement("div");div.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var fragment=document.createDocumentFragment();fragment.appendChild(div.firstChild);jQuery.support.checkClone=fragment.cloneNode(true).cloneNode(true).lastChild.checked;jQuery(function(){var div=document.createElement("div");div.style.width=div.style.paddingLeft="1px";document.body.appendChild(div);jQuery.boxModel=jQuery.support.boxModel=div.offsetWidth===2;document.body.removeChild(div).style.display="none";div=null;});var eventSupported=function(eventName){var el=document.createElement("div");eventName="on"+eventName;var isSupported=(eventName in el);if(!isSupported){el.setAttribute(eventName,"return;");isSupported=typeof el[eventName]==="function";}el=null;return isSupported;};jQuery.support.submitBubbles=eventSupported("submit");jQuery.support.changeBubbles=eventSupported("change");root=script=div=all=a=null;})();jQuery.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var expando="jQuery"+now(),uuid=0,windowData={};jQuery.extend({cache:{},expando:expando,noData:{embed:true,object:true,applet:true},data:function(elem,name,data){if(elem.nodeName&&jQuery.noData[elem.nodeName.toLowerCase()]){return ;}elem=elem==window?windowData:elem;var id=elem[expando],cache=jQuery.cache,thisCache;if(!id&&typeof name==="string"&&data===undefined){return null;}if(!id){id=++uuid;}if(typeof name==="object"){elem[expando]=id;thisCache=cache[id]=jQuery.extend(true,{},name);}else{if(!cache[id]){elem[expando]=id;cache[id]={};}}thisCache=cache[id];if(data!==undefined){thisCache[name]=data;}return typeof name==="string"?thisCache[name]:thisCache;},removeData:function(elem,name){if(elem.nodeName&&jQuery.noData[elem.nodeName.toLowerCase()]){return ;}elem=elem==window?windowData:elem;var id=elem[expando],cache=jQuery.cache,thisCache=cache[id];if(name){if(thisCache){delete thisCache[name];if(jQuery.isEmptyObject(thisCache)){jQuery.removeData(elem);}}}else{if(jQuery.support.deleteExpando){delete elem[jQuery.expando];}else{if(elem.removeAttribute){elem.removeAttribute(jQuery.expando);}}delete cache[id];}}});jQuery.fn.extend({data:function(key,value){if(typeof key==="undefined"&&this.length){return jQuery.data(this[0]);}else{if(typeof key==="object"){return this.each(function(){jQuery.data(this,key);});}}var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length){data=jQuery.data(this[0],key);}return data===undefined&&parts[1]?this.data(parts[0]):data;}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});}});jQuery.extend({queue:function(elem,type,data){if(!elem){return ;}type=(type||"fx")+"queue";var q=jQuery.data(elem,type);if(!data){return q||[];}if(!q||jQuery.isArray(data)){q=jQuery.data(elem,type,jQuery.makeArray(data));}else{q.push(data);}return q;},dequeue:function(elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),fn=queue.shift();if(fn==="inprogress"){fn=queue.shift();}if(fn){if(type==="fx"){queue.unshift("inprogress");}fn.call(elem,function(){jQuery.dequeue(elem,type);});}}});jQuery.fn.extend({queue:function(type,data){if(typeof type!=="string"){data=type;type="fx";}if(data===undefined){return jQuery.queue(this[0],type);}return this.each(function(i,elem){var queue=jQuery.queue(this,type,data);if(type==="fx"&&queue[0]!=="inprogress"){jQuery.dequeue(this,type);}});},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type);});},delay:function(time,type){time=jQuery.fx?jQuery.fx.speeds[time]||time:time;type=type||"fx";return this.queue(type,function(){var elem=this;setTimeout(function(){jQuery.dequeue(elem,type);},time);});},clearQueue:function(type){return this.queue(type||"fx",[]);}});var rclass=/[\n\t]/g,rspace=/\s+/,rreturn=/\r/g,rspecialurl=/href|src|style/,rtype=/(button|input)/i,rfocusable=/(button|input|object|select|textarea)/i,rclickable=/^(a|area)$/i,rradiocheck=/radio|checkbox/;jQuery.fn.extend({attr:function(name,value){return access(this,name,value,true,jQuery.attr);},removeAttr:function(name,fn){return this.each(function(){jQuery.attr(this,name,"");if(this.nodeType===1){this.removeAttribute(name);}});},addClass:function(value){if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);self.addClass(value.call(this,i,self.attr("class")));});}if(value&&typeof value==="string"){var classNames=(value||"").split(rspace);for(var i=0,l=this.length;i<l;i++){var elem=this[i];if(elem.nodeType===1){if(!elem.className){elem.className=value;}else{var className=" "+elem.className+" ",setClass=elem.className;for(var c=0,cl=classNames.length;c<cl;c++){if(className.indexOf(" "+classNames[c]+" ")<0){setClass+=" "+classNames[c];}}elem.className=jQuery.trim(setClass);}}}}return this;},removeClass:function(value){if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);self.removeClass(value.call(this,i,self.attr("class")));});}if((value&&typeof value==="string")||value===undefined){var classNames=(value||"").split(rspace);for(var i=0,l=this.length;i<l;i++){var elem=this[i];if(elem.nodeType===1&&elem.className){if(value){var className=(" "+elem.className+" ").replace(rclass," ");for(var c=0,cl=classNames.length;c<cl;c++){className=className.replace(" "+classNames[c]+" "," ");}elem.className=jQuery.trim(className);}else{elem.className="";}}}}return this;},toggleClass:function(value,stateVal){var type=typeof value,isBool=typeof stateVal==="boolean";if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);self.toggleClass(value.call(this,i,self.attr("class"),stateVal),stateVal);});}return this.each(function(){if(type==="string"){var className,i=0,self=jQuery(this),state=stateVal,classNames=value.split(rspace);while((className=classNames[i++])){state=isBool?state:!self.hasClass(className);self[state?"addClass":"removeClass"](className);}}else{if(type==="undefined"||type==="boolean"){if(this.className){jQuery.data(this,"__className__",this.className);}this.className=this.className||value===false?"":jQuery.data(this,"__className__")||"";}}});},hasClass:function(selector){var className=" "+selector+" ";for(var i=0,l=this.length;i<l;i++){if((" "+this[i].className+" ").replace(rclass," ").indexOf(className)>-1){return true;}}return false;},val:function(value){if(value===undefined){var elem=this[0];if(elem){if(jQuery.nodeName(elem,"option")){return(elem.attributes.value||{}).specified?elem.value:elem.text;}if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type==="select-one";if(index<0){return null;}for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery(option).val();if(one){return value;}values.push(value);}}return values;}if(rradiocheck.test(elem.type)&&!jQuery.support.checkOn){return elem.getAttribute("value")===null?"on":elem.value;}return(elem.value||"").replace(rreturn,"");}return undefined;}var isFunction=jQuery.isFunction(value);return this.each(function(i){var self=jQuery(this),val=value;if(this.nodeType!==1){return ;}if(isFunction){val=value.call(this,i,self.val());}if(typeof val==="number"){val+="";}if(jQuery.isArray(val)&&rradiocheck.test(this.type)){this.checked=jQuery.inArray(self.val(),val)>=0;}else{if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(val);jQuery("option",this).each(function(){this.selected=jQuery.inArray(jQuery(this).val(),values)>=0;});if(!values.length){this.selectedIndex=-1;}}else{this.value=val;}}});}});jQuery.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(elem,name,value,pass){if(!elem||elem.nodeType===3||elem.nodeType===8){return undefined;}if(pass&&name in jQuery.attrFn){return jQuery(elem)[name](value);}var notxml=elem.nodeType!==1||!jQuery.isXMLDoc(elem),set=value!==undefined;name=notxml&&jQuery.props[name]||name;if(elem.nodeType===1){var special=rspecialurl.test(name);if(name==="selected"&&!jQuery.support.optSelected){var parent=elem.parentNode;if(parent){parent.selectedIndex;if(parent.parentNode){parent.parentNode.selectedIndex;}}}if(name in elem&&notxml&&!special){if(set){if(name==="type"&&rtype.test(elem.nodeName)&&elem.parentNode){jQuery.error("type property can't be changed");}elem[name]=value;}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name)){return elem.getAttributeNode(name).nodeValue;}if(name==="tabIndex"){var attributeNode=elem.getAttributeNode("tabIndex");return attributeNode&&attributeNode.specified?attributeNode.value:rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?0:undefined;}return elem[name];}if(!jQuery.support.style&&notxml&&name==="style"){if(set){elem.style.cssText=""+value;}return elem.style.cssText;}if(set){elem.setAttribute(name,""+value);}var attr=!jQuery.support.hrefNormalized&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}return jQuery.style(elem,name,value);}});var rnamespaces=/\.(.*)$/,fcleanup=function(nm){return nm.replace(/[^\w\s\.\|`]/g,function(ch){return"\\"+ch;});};jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType===3||elem.nodeType===8){return ;}if(elem.setInterval&&(elem!==window&&!elem.frameElement)){elem=window;}var handleObjIn,handleObj;if(handler.handler){handleObjIn=handler;handler=handleObjIn.handler;}if(!handler.guid){handler.guid=jQuery.guid++;}var elemData=jQuery.data(elem);if(!elemData){return ;}var events=elemData.events=elemData.events||{},eventHandle=elemData.handle,eventHandle;if(!eventHandle){elemData.handle=eventHandle=function(){return typeof jQuery!=="undefined"&&!jQuery.event.triggered?jQuery.event.handle.apply(eventHandle.elem,arguments):undefined;};}eventHandle.elem=elem;types=types.split(" ");var type,i=0,namespaces;while((type=types[i++])){handleObj=handleObjIn?jQuery.extend({},handleObjIn):{handler:handler,data:data};if(type.indexOf(".")>-1){namespaces=type.split(".");type=namespaces.shift();handleObj.namespace=namespaces.slice(0).sort().join(".");}else{namespaces=[];handleObj.namespace="";}handleObj.type=type;handleObj.guid=handler.guid;var handlers=events[type],special=jQuery.event.special[type]||{};if(!handlers){handlers=events[type]=[];if(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){if(elem.addEventListener){elem.addEventListener(type,eventHandle,false);}else{if(elem.attachEvent){elem.attachEvent("on"+type,eventHandle);}}}}if(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid;}}handlers.push(handleObj);jQuery.event.global[type]=true;}elem=null;},global:{},remove:function(elem,types,handler,pos){if(elem.nodeType===3||elem.nodeType===8){return ;}var ret,type,fn,i=0,all,namespaces,namespace,special,eventType,handleObj,origType,elemData=jQuery.data(elem),events=elemData&&elemData.events;if(!elemData||!events){return ;}if(types&&types.type){handler=types.handler;types=types.type;}if(!types||typeof types==="string"&&types.charAt(0)==="."){types=types||"";for(type in events){jQuery.event.remove(elem,type+types);}return ;}types=types.split(" ");while((type=types[i++])){origType=type;handleObj=null;all=type.indexOf(".")<0;namespaces=[];if(!all){namespaces=type.split(".");type=namespaces.shift();namespace=new RegExp("(^|\\.)"+jQuery.map(namespaces.slice(0).sort(),fcleanup).join("\\.(?:.*\\.)?")+"(\\.|$)");}eventType=events[type];if(!eventType){continue;}if(!handler){for(var j=0;j<eventType.length;j++){handleObj=eventType[j];if(all||namespace.test(handleObj.namespace)){jQuery.event.remove(elem,origType,handleObj.handler,j);eventType.splice(j--,1);}}continue;}special=jQuery.event.special[type]||{};for(var j=pos||0;j<eventType.length;j++){handleObj=eventType[j];if(handler.guid===handleObj.guid){if(all||namespace.test(handleObj.namespace)){if(pos==null){eventType.splice(j--,1);}if(special.remove){special.remove.call(elem,handleObj);}}if(pos!=null){break;}}}if(eventType.length===0||pos!=null&&eventType.length===1){if(!special.teardown||special.teardown.call(elem,namespaces)===false){removeEvent(elem,type,elemData.handle);}ret=null;delete events[type];}}if(jQuery.isEmptyObject(events)){var handle=elemData.handle;if(handle){handle.elem=null;}delete elemData.events;delete elemData.handle;if(jQuery.isEmptyObject(elemData)){jQuery.removeData(elem);}}},trigger:function(event,data,elem){var type=event.type||event,bubbling=arguments[3];if(!bubbling){event=typeof event==="object"?event[expando]?event:jQuery.extend(jQuery.Event(type),event):jQuery.Event(type);if(type.indexOf("!")>=0){event.type=type=type.slice(0,-1);event.exclusive=true;}if(!elem){event.stopPropagation();if(jQuery.event.global[type]){jQuery.each(jQuery.cache,function(){if(this.events&&this.events[type]){jQuery.event.trigger(event,data,this.handle.elem);}});}}if(!elem||elem.nodeType===3||elem.nodeType===8){return undefined;}event.result=undefined;event.target=elem;data=jQuery.makeArray(data);data.unshift(event);}event.currentTarget=elem;var handle=jQuery.data(elem,"handle");if(handle){handle.apply(elem,data);}var parent=elem.parentNode||elem.ownerDocument;try{if(!(elem&&elem.nodeName&&jQuery.noData[elem.nodeName.toLowerCase()])){if(elem["on"+type]&&elem["on"+type].apply(elem,data)===false){event.result=false;}}}catch(e){}if(!event.isPropagationStopped()&&parent){jQuery.event.trigger(event,data,parent,true);}else{if(!event.isDefaultPrevented()){var target=event.target,old,isClick=jQuery.nodeName(target,"a")&&type==="click",special=jQuery.event.special[type]||{};if((!special._default||special._default.call(elem,event)===false)&&!isClick&&!(target&&target.nodeName&&jQuery.noData[target.nodeName.toLowerCase()])){try{if(target[type]){old=target["on"+type];if(old){target["on"+type]=null;}jQuery.event.triggered=true;target[type]();}}catch(e){}if(old){target["on"+type]=old;}jQuery.event.triggered=false;}}}},handle:function(event){var all,handlers,namespaces,namespace,events;event=arguments[0]=jQuery.event.fix(event||window.event);event.currentTarget=this;all=event.type.indexOf(".")<0&&!event.exclusive;if(!all){namespaces=event.type.split(".");event.type=namespaces.shift();namespace=new RegExp("(^|\\.)"+namespaces.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");}var events=jQuery.data(this,"events"),handlers=events[event.type];if(events&&handlers){handlers=handlers.slice(0);for(var j=0,l=handlers.length;j<l;j++){var handleObj=handlers[j];if(all||namespace.test(handleObj.namespace)){event.handler=handleObj.handler;event.data=handleObj.data;event.handleObj=handleObj;var ret=handleObj.handler.apply(this,arguments);if(ret!==undefined){event.result=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}if(event.isImmediatePropagationStopped()){break;}}}}return event.result;},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(event){if(event[expando]){return event;}var originalEvent=event;event=jQuery.Event(originalEvent);for(var i=this.props.length,prop;i;){prop=this.props[--i];event[prop]=originalEvent[prop];}if(!event.target){event.target=event.srcElement||document;}if(event.target.nodeType===3){event.target=event.target.parentNode;}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement===event.target?event.toElement:event.fromElement;}if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc&&doc.clientLeft||body&&body.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc&&doc.clientTop||body&&body.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode)){event.which=event.charCode||event.keyCode;}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey;}if(!event.which&&event.button!==undefined){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));}return event;},guid:100000000,proxy:jQuery.proxy,special:{ready:{setup:jQuery.bindReady,teardown:jQuery.noop},live:{add:function(handleObj){jQuery.event.add(this,handleObj.origType,jQuery.extend({},handleObj,{handler:liveHandler}));},remove:function(handleObj){var remove=true,type=handleObj.origType.replace(rnamespaces,"");jQuery.each(jQuery.data(this,"events").live||[],function(){if(type===this.origType.replace(rnamespaces,"")){remove=false;return false;}});if(remove){jQuery.event.remove(this,handleObj.origType,liveHandler);}}},beforeunload:{setup:function(data,namespaces,eventHandle){if(this.setInterval){this.onbeforeunload=eventHandle;}return false;},teardown:function(namespaces,eventHandle){if(this.onbeforeunload===eventHandle){this.onbeforeunload=null;}}}}};var removeEvent=document.removeEventListener?function(elem,type,handle){elem.removeEventListener(type,handle,false);}:function(elem,type,handle){elem.detachEvent("on"+type,handle);};jQuery.Event=function(src){if(!this.preventDefault){return new jQuery.Event(src);}if(src&&src.type){this.originalEvent=src;this.type=src.type;}else{this.type=src;}this.timeStamp=now();this[expando]=true;};function returnFalse(){return false;}function returnTrue(){return true;}jQuery.Event.prototype={preventDefault:function(){this.isDefaultPrevented=returnTrue;var e=this.originalEvent;if(!e){return ;}if(e.preventDefault){e.preventDefault();}e.returnValue=false;},stopPropagation:function(){this.isPropagationStopped=returnTrue;var e=this.originalEvent;if(!e){return ;}if(e.stopPropagation){e.stopPropagation();}e.cancelBubble=true;},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=returnTrue;this.stopPropagation();},isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse};var withinElement=function(event){var parent=event.relatedTarget;try{while(parent&&parent!==this){parent=parent.parentNode;}if(parent!==this){event.type=event.data;jQuery.event.handle.apply(this,arguments);}}catch(e){}},delegate=function(event){event.type=event.data;jQuery.event.handle.apply(this,arguments);};jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(orig,fix){jQuery.event.special[orig]={setup:function(data){jQuery.event.add(this,fix,data&&data.selector?delegate:withinElement,orig);},teardown:function(data){jQuery.event.remove(this,fix,data&&data.selector?delegate:withinElement);}};});if(!jQuery.support.submitBubbles){jQuery.event.special.submit={setup:function(data,namespaces){if(this.nodeName.toLowerCase()!=="form"){jQuery.event.add(this,"click.specialSubmit",function(e){var elem=e.target,type=elem.type;if((type==="submit"||type==="image")&&jQuery(elem).closest("form").length){return trigger("submit",this,arguments);}});jQuery.event.add(this,"keypress.specialSubmit",function(e){var elem=e.target,type=elem.type;if((type==="text"||type==="password")&&jQuery(elem).closest("form").length&&e.keyCode===13){return trigger("submit",this,arguments);}});}else{return false;}},teardown:function(namespaces){jQuery.event.remove(this,".specialSubmit");}};}if(!jQuery.support.changeBubbles){var formElems=/textarea|input|select/i,changeFilters,getVal=function(elem){var type=elem.type,val=elem.value;if(type==="radio"||type==="checkbox"){val=elem.checked;}else{if(type==="select-multiple"){val=elem.selectedIndex>-1?jQuery.map(elem.options,function(elem){return elem.selected;}).join("-"):"";}else{if(elem.nodeName.toLowerCase()==="select"){val=elem.selectedIndex;}}}return val;},testChange=function testChange(e){var elem=e.target,data,val;if(!formElems.test(elem.nodeName)||elem.readOnly){return ;}data=jQuery.data(elem,"_change_data");val=getVal(elem);if(e.type!=="focusout"||elem.type!=="radio"){jQuery.data(elem,"_change_data",val);}if(data===undefined||val===data){return ;}if(data!=null||val){e.type="change";return jQuery.event.trigger(e,arguments[1],elem);}};jQuery.event.special.change={filters:{focusout:testChange,click:function(e){var elem=e.target,type=elem.type;if(type==="radio"||type==="checkbox"||elem.nodeName.toLowerCase()==="select"){return testChange.call(this,e);}},keydown:function(e){var elem=e.target,type=elem.type;if((e.keyCode===13&&elem.nodeName.toLowerCase()!=="textarea")||(e.keyCode===32&&(type==="checkbox"||type==="radio"))||type==="select-multiple"){return testChange.call(this,e);}},beforeactivate:function(e){var elem=e.target;jQuery.data(elem,"_change_data",getVal(elem));}},setup:function(data,namespaces){if(this.type==="file"){return false;}for(var type in changeFilters){jQuery.event.add(this,type+".specialChange",changeFilters[type]);}return formElems.test(this.nodeName);},teardown:function(namespaces){jQuery.event.remove(this,".specialChange");return formElems.test(this.nodeName);}};changeFilters=jQuery.event.special.change.filters;}function trigger(type,elem,args){args[0].type=type;return jQuery.event.handle.apply(elem,args);}if(document.addEventListener){jQuery.each({focus:"focusin",blur:"focusout"},function(orig,fix){jQuery.event.special[fix]={setup:function(){this.addEventListener(orig,handler,true);},teardown:function(){this.removeEventListener(orig,handler,true);}};function handler(e){e=jQuery.event.fix(e);e.type=fix;return jQuery.event.handle.call(this,e);}});}jQuery.each(["bind","one"],function(i,name){jQuery.fn[name]=function(type,data,fn){if(typeof type==="object"){for(var key in type){this[name](key,data,type[key],fn);}return this;}if(jQuery.isFunction(data)){fn=data;data=undefined;}var handler=name==="one"?jQuery.proxy(fn,function(event){jQuery(this).unbind(event,handler);return fn.apply(this,arguments);}):fn;if(type==="unload"&&name!=="one"){this.one(type,data,fn);}else{for(var i=0,l=this.length;i<l;i++){jQuery.event.add(this[i],type,handler,data);}}return this;};});jQuery.fn.extend({unbind:function(type,fn){if(typeof type==="object"&&!type.preventDefault){for(var key in type){this.unbind(key,type[key]);}}else{for(var i=0,l=this.length;i<l;i++){jQuery.event.remove(this[i],type,fn);}}return this;},delegate:function(selector,types,data,fn){return this.live(types,data,fn,selector);},undelegate:function(selector,types,fn){if(arguments.length===0){return this.unbind("live");}else{return this.die(types,null,fn,selector);}},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this);});},triggerHandler:function(type,data){if(this[0]){var event=jQuery.Event(type);event.preventDefault();event.stopPropagation();jQuery.event.trigger(event,data,this[0]);return event.result;}},toggle:function(fn){var args=arguments,i=1;while(i<args.length){jQuery.proxy(fn,args[i++]);}return this.click(jQuery.proxy(fn,function(event){var lastToggle=(jQuery.data(this,"lastToggle"+fn.guid)||0)%i;jQuery.data(this,"lastToggle"+fn.guid,lastToggle+1);event.preventDefault();return args[lastToggle].apply(this,arguments)||false;}));},hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver);}});var liveMap={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};jQuery.each(["live","die"],function(i,name){jQuery.fn[name]=function(types,data,fn,origSelector){var type,i=0,match,namespaces,preType,selector=origSelector||this.selector,context=origSelector?this:jQuery(this.context);if(jQuery.isFunction(data)){fn=data;data=undefined;}types=(types||"").split(" ");while((type=types[i++])!=null){match=rnamespaces.exec(type);namespaces="";if(match){namespaces=match[0];type=type.replace(rnamespaces,"");}if(type==="hover"){types.push("mouseenter"+namespaces,"mouseleave"+namespaces);continue;}preType=type;if(type==="focus"||type==="blur"){types.push(liveMap[type]+namespaces);type=type+namespaces;}else{type=(liveMap[type]||type)+namespaces;}if(name==="live"){context.each(function(){jQuery.event.add(this,liveConvert(type,selector),{data:data,selector:selector,handler:fn,origType:type,origHandler:fn,preType:preType});});}else{context.unbind(liveConvert(type,selector),fn);}}return this;};});function liveHandler(event){var stop,elems=[],selectors=[],args=arguments,related,match,handleObj,elem,j,i,l,data,events=jQuery.data(this,"events");if(event.liveFired===this||!events||!events.live||event.button&&event.type==="click"){return ;}event.liveFired=this;var live=events.live.slice(0);for(j=0;j<live.length;j++){handleObj=live[j];if(handleObj.origType.replace(rnamespaces,"")===event.type){selectors.push(handleObj.selector);}else{live.splice(j--,1);}}match=jQuery(event.target).closest(selectors,event.currentTarget);for(i=0,l=match.length;i<l;i++){for(j=0;j<live.length;j++){handleObj=live[j];if(match[i].selector===handleObj.selector){elem=match[i].elem;related=null;if(handleObj.preType==="mouseenter"||handleObj.preType==="mouseleave"){related=jQuery(event.relatedTarget).closest(handleObj.selector)[0];}if(!related||related!==elem){elems.push({elem:elem,handleObj:handleObj});}}}}for(i=0,l=elems.length;i<l;i++){match=elems[i];event.currentTarget=match.elem;event.data=match.handleObj.data;event.handleObj=match.handleObj;if(match.handleObj.origHandler.apply(match.elem,args)===false){stop=false;break;}}return stop;}function liveConvert(type,selector){return"live."+(type&&type!=="*"?type+".":"")+selector.replace(/\./g,"`").replace(/ /g,"&");}jQuery.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error").split(" "),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};if(jQuery.attrFn){jQuery.attrFn[name]=true;}});if(window.attachEvent&&!window.addEventListener){window.attachEvent("onunload",function(){for(var id in jQuery.cache){if(jQuery.cache[id].handle){try{jQuery.event.remove(jQuery.cache[id].handle.elem);}catch(e){}}}});
/*
 * Sizzle CSS Selector Engine - v1.0
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
}(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0;});var Sizzle=function(selector,context,results,seed){results=results||[];var origContext=context=context||document;if(context.nodeType!==1&&context.nodeType!==9){return[];}if(!selector||typeof selector!=="string"){return results;}var parts=[],m,set,checkSet,extra,prune=true,contextXML=isXML(context),soFar=selector;while((chunker.exec(""),m=chunker.exec(soFar))!==null){soFar=m[3];parts.push(m[1]);if(m[2]){extra=m[3];break;}}if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context);}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector]){selector+=parts.shift();}set=posProcess(selector,set);}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0];}if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0){checkSet=makeArray(set);}else{prune=false;}while(parts.length){var cur=parts.pop(),pop=cur;if(!Expr.relative[cur]){cur="";}else{pop=parts.pop();}if(pop==null){pop=context;}Expr.relative[cur](checkSet,pop,contextXML);}}else{checkSet=parts=[];}}if(!checkSet){checkSet=set;}if(!checkSet){Sizzle.error(cur||selector);}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet);}else{if(context&&context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i]);}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i]);}}}}}else{makeArray(checkSet,results);}if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results);}return results;};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1);}}}}return results;};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set);};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[];}for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.leftMatch[type].exec(expr))){var left=match[1];match.splice(1,1);if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break;}}}}if(!set){set=context.getElementsByTagName("*");}return{set:set,expr:expr};};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.leftMatch[type].exec(expr))!=null&&match[2]){var filter=Expr.filter[type],found,item,left=match[1];anyFound=false;match.splice(1,1);if(left.substr(left.length-1)==="\\"){continue;}if(curLoop===result){result=[];}if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true;}else{if(match===true){continue;}}}if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=true;}else{curLoop[i]=false;}}else{if(pass){result.push(item);anyFound=true;}}}}}if(found!==undefined){if(!inplace){curLoop=result;}expr=expr.replace(Expr.match[type],"");if(!anyFound){return[];}break;}}}if(expr===old){if(anyFound==null){Sizzle.error(expr);}else{break;}}old=expr;}return curLoop;};Sizzle.error=function(msg){throw"Syntax error, unrecognized expression: "+msg;};var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href");}},relative:{"+":function(checkSet,part){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag){part=part.toLowerCase();}for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}checkSet[i]=isPartStrNotTag||elem&&elem.nodeName.toLowerCase()===part?elem||false:elem===part;}}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true);}},">":function(checkSet,part){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=part.toLowerCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName.toLowerCase()===part?parent:false;}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part;}}if(isPartStr){Sizzle.filter(part,checkSet,true);}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck;}checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML);},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck;}checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML);}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[];}},NAME:function(match,context){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i]);}}return ret.length===0?null:ret;}},TAG:function(match,context){return context.getElementsByTagName(match[1]);}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match;}for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").replace(/[\t\n]/g," ").indexOf(match)>=0)){if(!inplace){result.push(elem);}}else{if(inplace){curLoop[i]=false;}}}}return false;},ID:function(match){return match[1].replace(/\\/g,"");},TAG:function(match,curLoop){return match[1].toLowerCase();},CHILD:function(match){if(match[1]==="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]==="even"&&"2n"||match[2]==="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0;}match[0]=done++;return match;},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name];}if(match[2]==="~="){match[4]=" "+match[4]+" ";}return match;},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop);}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret);}return false;}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true;}}return match;},POS:function(match){match.unshift(true);return match;}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden";},disabled:function(elem){return elem.disabled===true;},checked:function(elem){return elem.checked===true;},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true;},parent:function(elem){return !!elem.firstChild;},empty:function(elem){return !elem.firstChild;},has:function(elem,i,match){return !!Sizzle(match[3],elem).length;},header:function(elem){return/h\d/i.test(elem.nodeName);},text:function(elem){return"text"===elem.type;},radio:function(elem){return"radio"===elem.type;},checkbox:function(elem){return"checkbox"===elem.type;},file:function(elem){return"file"===elem.type;},password:function(elem){return"password"===elem.type;},submit:function(elem){return"submit"===elem.type;},image:function(elem){return"image"===elem.type;},reset:function(elem){return"reset"===elem.type;},button:function(elem){return"button"===elem.type||elem.nodeName.toLowerCase()==="button";},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName);}},setFilters:{first:function(elem,i){return i===0;},last:function(elem,i,match,array){return i===array.length-1;},even:function(elem,i){return i%2===0;},odd:function(elem,i){return i%2===1;},lt:function(elem,i,match){return i<match[3]-0;},gt:function(elem,i,match){return i>match[3]-0;},nth:function(elem,i,match){return match[3]-0===i;},eq:function(elem,i,match){return match[3]-0===i;}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array);}else{if(name==="contains"){return(elem.textContent||elem.innerText||getText([elem])||"").indexOf(match[3])>=0;}else{if(name==="not"){var not=match[3];for(var i=0,l=not.length;i<l;i++){if(not[i]===elem){return false;}}return true;}else{Sizzle.error("Syntax error, unrecognized expression: "+name);}}}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return false;}}if(type==="first"){return true;}node=elem;case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false;}}return true;case"nth":var first=match[2],last=match[3];if(first===1&&last===0){return true;}var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count;}}parent.sizcache=doneName;}var diff=elem.nodeIndex-last;if(first===0){return diff===0;}else{return(diff%first===0&&diff/first>=0);}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match;},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName.toLowerCase()===match;},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1;},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!==check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false;},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array);}}}};var origPOS=Expr.match.POS;for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);Expr.leftMatch[type]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Expr.match[type].source.replace(/\\(\d+)/g,function(all,num){return"\\"+(num-0+1);}));}var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);if(results){results.push.apply(results,array);return results;}return array;};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType;}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array);}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ret.push(array[i]);}}else{for(var i=0;array[i];i++){ret.push(array[i]);}}}return ret;};}var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b){hasDuplicate=true;}return a.compareDocumentPosition?-1:1;}var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=true;}return ret;};}else{if("sourceIndex" in document.documentElement){sortOrder=function(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b){hasDuplicate=true;}return a.sourceIndex?-1:1;}var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=true;}return ret;};}else{if(document.createRange){sortOrder=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b){hasDuplicate=true;}return a.ownerDocument?-1:1;}var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.setStart(a,0);aRange.setEnd(a,0);bRange.setStart(b,0);bRange.setEnd(b,0);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=true;}return ret;};}}}function getText(elems){var ret="",elem;for(var i=0;elems[i];i++){elem=elems[i];if(elem.nodeType===3||elem.nodeType===4){ret+=elem.nodeValue;}else{if(elem.nodeType!==8){ret+=getText(elem.childNodes);}}}return ret;}(function(){var form=document.createElement("div"),id="script"+(new Date).getTime();form.innerHTML="<a name='"+id+"'/>";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[];}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match;};}root.removeChild(form);root=form=null;})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i]);}}results=tmp;}return results;};}div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2);};}div=null;})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return ;}Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra);}catch(e){}}return oldSizzle(query,context,extra,seed);};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop];}div=null;})();}(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(!div.getElementsByClassName||div.getElementsByClassName("e").length===0){return ;}div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){return ;}Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1]);}};div=null;})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i;}if(elem.nodeName.toLowerCase()===cur){match=elem;break;}elem=elem[dir];}checkSet[i]=match;}}}function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i;}if(typeof cur!=="string"){if(elem===cur){match=true;break;}}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;break;}}}elem=elem[dir];}checkSet[i]=match;}}}var contains=document.compareDocumentPosition?function(a,b){return !!(a.compareDocumentPosition(b)&16);}:function(a,b){return a!==b&&(a.contains?a.contains(b):true);};var isXML=function(elem){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;return documentElement?documentElement.nodeName!=="HTML":false;};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"");}selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet);}return Sizzle.filter(later,tmpSet);};jQuery.find=Sizzle;jQuery.expr=Sizzle.selectors;jQuery.expr[":"]=jQuery.expr.filters;jQuery.unique=Sizzle.uniqueSort;jQuery.text=getText;jQuery.isXMLDoc=isXML;jQuery.contains=contains;return ;window.Sizzle=Sizzle;})();var runtil=/Until$/,rparentsprev=/^(?:parents|prevUntil|prevAll)/,rmultiselector=/,/,slice=Array.prototype.slice;var winnow=function(elements,qualifier,keep){if(jQuery.isFunction(qualifier)){return jQuery.grep(elements,function(elem,i){return !!qualifier.call(elem,i,elem)===keep;});}else{if(qualifier.nodeType){return jQuery.grep(elements,function(elem,i){return(elem===qualifier)===keep;});}else{if(typeof qualifier==="string"){var filtered=jQuery.grep(elements,function(elem){return elem.nodeType===1;});if(isSimple.test(qualifier)){return jQuery.filter(qualifier,filtered,!keep);}else{qualifier=jQuery.filter(qualifier,filtered);}}}}return jQuery.grep(elements,function(elem,i){return(jQuery.inArray(elem,qualifier)>=0)===keep;});};jQuery.fn.extend({find:function(selector){var ret=this.pushStack("","find",selector),length=0;for(var i=0,l=this.length;i<l;i++){length=ret.length;jQuery.find(selector,this[i],ret);if(i>0){for(var n=length;n<ret.length;n++){for(var r=0;r<length;r++){if(ret[r]===ret[n]){ret.splice(n--,1);break;}}}}}return ret;},has:function(target){var targets=jQuery(target);return this.filter(function(){for(var i=0,l=targets.length;i<l;i++){if(jQuery.contains(this,targets[i])){return true;}}});},not:function(selector){return this.pushStack(winnow(this,selector,false),"not",selector);},filter:function(selector){return this.pushStack(winnow(this,selector,true),"filter",selector);},is:function(selector){return !!selector&&jQuery.filter(selector,this).length>0;},closest:function(selectors,context){if(jQuery.isArray(selectors)){var ret=[],cur=this[0],match,matches={},selector;if(cur&&selectors.length){for(var i=0,l=selectors.length;i<l;i++){selector=selectors[i];if(!matches[selector]){matches[selector]=jQuery.expr.match.POS.test(selector)?jQuery(selector,context||this.context):selector;}}while(cur&&cur.ownerDocument&&cur!==context){for(selector in matches){match=matches[selector];if(match.jquery?match.index(cur)>-1:jQuery(cur).is(match)){ret.push({selector:selector,elem:cur});delete matches[selector];}}cur=cur.parentNode;}}return ret;}var pos=jQuery.expr.match.POS.test(selectors)?jQuery(selectors,context||this.context):null;return this.map(function(i,cur){while(cur&&cur.ownerDocument&&cur!==context){if(pos?pos.index(cur)>-1:jQuery(cur).is(selectors)){return cur;}cur=cur.parentNode;}return null;});},index:function(elem){if(!elem||typeof elem==="string"){return jQuery.inArray(this[0],elem?jQuery(elem):this.parent().children());}return jQuery.inArray(elem.jquery?elem[0]:elem,this);},add:function(selector,context){var set=typeof selector==="string"?jQuery(selector,context||this.context):jQuery.makeArray(selector),all=jQuery.merge(this.get(),set);return this.pushStack(isDisconnected(set[0])||isDisconnected(all[0])?all:jQuery.unique(all));},andSelf:function(){return this.add(this.prevObject);}});function isDisconnected(node){return !node||!node.parentNode||node.parentNode.nodeType===11;}jQuery.each({parent:function(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null;},parents:function(elem){return jQuery.dir(elem,"parentNode");},parentsUntil:function(elem,i,until){return jQuery.dir(elem,"parentNode",until);},next:function(elem){return jQuery.nth(elem,2,"nextSibling");},prev:function(elem){return jQuery.nth(elem,2,"previousSibling");},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");},nextUntil:function(elem,i,until){return jQuery.dir(elem,"nextSibling",until);},prevUntil:function(elem,i,until){return jQuery.dir(elem,"previousSibling",until);},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return jQuery.sibling(elem.firstChild);},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(until,selector){var ret=jQuery.map(this,fn,until);if(!runtil.test(name)){selector=until;}if(selector&&typeof selector==="string"){ret=jQuery.filter(selector,ret);}ret=this.length>1?jQuery.unique(ret):ret;if((this.length>1||rmultiselector.test(selector))&&rparentsprev.test(name)){ret=ret.reverse();}return this.pushStack(ret,name,slice.call(arguments).join(","));};});jQuery.extend({filter:function(expr,elems,not){if(not){expr=":not("+expr+")";}return jQuery.find.matches(expr,elems);},dir:function(elem,dir,until){var matched=[],cur=elem[dir];while(cur&&cur.nodeType!==9&&(until===undefined||cur.nodeType!==1||!jQuery(cur).is(until))){if(cur.nodeType===1){matched.push(cur);}cur=cur[dir];}return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType===1&&++num===result){break;}}return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){r.push(n);}}return r;}});var rinlinejQuery=/ jQuery\d+="(?:\d+|null)"/g,rleadingWhitespace=/^\s+/,rxhtmlTag=/(<([\w:]+)[^>]*?)\/>/g,rselfClosing=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,rtagName=/<([\w:]+)/,rtbody=/<tbody/i,rhtml=/<|&#?\w+;/,rnocache=/<script|<object|<embed|<option|<style/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,fcloseTag=function(all,front,tag){return rselfClosing.test(tag)?all:front+"></"+tag+">";},wrapMap={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};wrapMap.optgroup=wrapMap.option;wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;if(!jQuery.support.htmlSerialize){wrapMap._default=[1,"div<div>","</div>"];}jQuery.fn.extend({text:function(text){if(jQuery.isFunction(text)){return this.each(function(i){var self=jQuery(this);self.text(text.call(this,i,self.text()));});}if(typeof text!=="object"&&text!==undefined){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));}return jQuery.text(this);},wrapAll:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapAll(html.call(this,i));});}if(this[0]){var wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){wrap.insertBefore(this[0]);}wrap.map(function(){var elem=this;while(elem.firstChild&&elem.firstChild.nodeType===1){elem=elem.firstChild;}return elem;}).append(this);}return this;},wrapInner:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapInner(html.call(this,i));});}return this.each(function(){var self=jQuery(this),contents=self.contents();if(contents.length){contents.wrapAll(html);}else{self.append(html);}});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},unwrap:function(){return this.parent().each(function(){if(!jQuery.nodeName(this,"body")){jQuery(this).replaceWith(this.childNodes);}}).end();},append:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1){this.appendChild(elem);}});},prepend:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1){this.insertBefore(elem,this.firstChild);}});},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this);});}else{if(arguments.length){var set=jQuery(arguments[0]);set.push.apply(set,this.toArray());return this.pushStack(set,"before",arguments);}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});}else{if(arguments.length){var set=this.pushStack(this,"after",arguments);set.push.apply(set,jQuery(arguments[0]).toArray());return set;}}},remove:function(selector,keepData){for(var i=0,elem;(elem=this[i])!=null;i++){if(!selector||jQuery.filter(selector,[elem]).length){if(!keepData&&elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"));jQuery.cleanData([elem]);}if(elem.parentNode){elem.parentNode.removeChild(elem);}}}return this;},empty:function(){for(var i=0,elem;(elem=this[i])!=null;i++){if(elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"));}while(elem.firstChild){elem.removeChild(elem.firstChild);}}return this;},clone:function(events){var ret=this.map(function(){if(!jQuery.support.noCloneEvent&&!jQuery.isXMLDoc(this)){var html=this.outerHTML,ownerDocument=this.ownerDocument;if(!html){var div=ownerDocument.createElement("div");div.appendChild(this.cloneNode(true));html=div.innerHTML;}return jQuery.clean([html.replace(rinlinejQuery,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(rleadingWhitespace,"")],ownerDocument)[0];}else{return this.cloneNode(true);}});if(events===true){cloneCopyEvent(this,ret);cloneCopyEvent(this.find("*"),ret.find("*"));}return ret;},html:function(value){if(value===undefined){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(rinlinejQuery,""):null;}else{if(typeof value==="string"&&!rnocache.test(value)&&(jQuery.support.leadingWhitespace||!rleadingWhitespace.test(value))&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=value.replace(rxhtmlTag,fcloseTag);try{for(var i=0,l=this.length;i<l;i++){if(this[i].nodeType===1){jQuery.cleanData(this[i].getElementsByTagName("*"));this[i].innerHTML=value;}}}catch(e){this.empty().append(value);}}else{if(jQuery.isFunction(value)){this.each(function(i){var self=jQuery(this),old=self.html();self.empty().append(function(){return value.call(this,i,old);});});}else{this.empty().append(value);}}}return this;},replaceWith:function(value){if(this[0]&&this[0].parentNode){if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this),old=self.html();self.replaceWith(value.call(this,i,old));});}if(typeof value!=="string"){value=jQuery(value).detach();}return this.each(function(){var next=this.nextSibling,parent=this.parentNode;jQuery(this).remove();if(next){jQuery(next).before(value);}else{jQuery(parent).append(value);}});}else{return this.pushStack(jQuery(jQuery.isFunction(value)?value():value),"replaceWith",value);}},detach:function(selector){return this.remove(selector,true);},domManip:function(args,table,callback){var results,first,value=args[0],scripts=[],fragment,parent;if(!jQuery.support.checkClone&&arguments.length===3&&typeof value==="string"&&rchecked.test(value)){return this.each(function(){jQuery(this).domManip(args,table,callback,true);});}if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);args[0]=value.call(this,i,table?self.html():undefined);self.domManip(args,table,callback);});}if(this[0]){parent=value&&value.parentNode;if(jQuery.support.parentNode&&parent&&parent.nodeType===11&&parent.childNodes.length===this.length){results={fragment:parent};}else{results=buildFragment(args,this,scripts);}fragment=results.fragment;if(fragment.childNodes.length===1){first=fragment=fragment.firstChild;}else{first=fragment.firstChild;}if(first){table=table&&jQuery.nodeName(first,"tr");for(var i=0,l=this.length;i<l;i++){callback.call(table?root(this[i],first):this[i],i>0||results.cacheable||this.length>1?fragment.cloneNode(true):fragment);}}if(scripts.length){jQuery.each(scripts,evalScript);}}return this;function root(elem,cur){return jQuery.nodeName(elem,"table")?(elem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.createElement("tbody"))):elem;}}});function cloneCopyEvent(orig,ret){var i=0;ret.each(function(){if(this.nodeName!==(orig[i]&&orig[i].nodeName)){return ;}var oldData=jQuery.data(orig[i++]),curData=jQuery.data(this,oldData),events=oldData&&oldData.events;if(events){delete curData.handle;curData.events={};for(var type in events){for(var handler in events[type]){jQuery.event.add(this,type,events[type][handler],events[type][handler].data);}}}});}function buildFragment(args,nodes,scripts){var fragment,cacheable,cacheresults,doc=(nodes&&nodes[0]?nodes[0].ownerDocument||nodes[0]:document);if(args.length===1&&typeof args[0]==="string"&&args[0].length<512&&doc===document&&!rnocache.test(args[0])&&(jQuery.support.checkClone||!rchecked.test(args[0]))){cacheable=true;cacheresults=jQuery.fragments[args[0]];if(cacheresults){if(cacheresults!==1){fragment=cacheresults;}}}if(!fragment){fragment=doc.createDocumentFragment();jQuery.clean(args,doc,fragment,scripts);}if(cacheable){jQuery.fragments[args[0]]=cacheresults?fragment:1;}return{fragment:fragment,cacheable:cacheable};}jQuery.fragments={};jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){var ret=[],insert=jQuery(selector),parent=this.length===1&&this[0].parentNode;if(parent&&parent.nodeType===11&&parent.childNodes.length===1&&insert.length===1){insert[original](this[0]);return this;}else{for(var i=0,l=insert.length;i<l;i++){var elems=(i>0?this.clone(true):this).get();jQuery.fn[original].apply(jQuery(insert[i]),elems);ret=ret.concat(elems);}return this.pushStack(ret,name,insert.selector);}};});jQuery.extend({clean:function(elems,context,fragment,scripts){context=context||document;if(typeof context.createElement==="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;}var ret=[];for(var i=0,elem;(elem=elems[i])!=null;i++){if(typeof elem==="number"){elem+="";}if(!elem){continue;}if(typeof elem==="string"&&!rhtml.test(elem)){elem=context.createTextNode(elem);}else{if(typeof elem==="string"){elem=elem.replace(rxhtmlTag,fcloseTag);var tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(),wrap=wrapMap[tag]||wrapMap._default,depth=wrap[0],div=context.createElement("div");div.innerHTML=wrap[1]+elem+wrap[2];while(depth--){div=div.lastChild;}if(!jQuery.support.tbody){var hasBody=rtbody.test(elem),tbody=tag==="table"&&!hasBody?div.firstChild&&div.firstChild.childNodes:wrap[1]==="<table>"&&!hasBody?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j]);}}}if(!jQuery.support.leadingWhitespace&&rleadingWhitespace.test(elem)){div.insertBefore(context.createTextNode(rleadingWhitespace.exec(elem)[0]),div.firstChild);}elem=div.childNodes;}}if(elem.nodeType){ret.push(elem);}else{ret=jQuery.merge(ret,elem);}}if(fragment){for(var i=0;ret[i];i++){if(scripts&&jQuery.nodeName(ret[i],"script")&&(!ret[i].type||ret[i].type.toLowerCase()==="text/javascript")){scripts.push(ret[i].parentNode?ret[i].parentNode.removeChild(ret[i]):ret[i]);}else{if(ret[i].nodeType===1){ret.splice.apply(ret,[i+1,0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))));}fragment.appendChild(ret[i]);}}}return ret;},cleanData:function(elems){var data,id,cache=jQuery.cache,special=jQuery.event.special,deleteExpando=jQuery.support.deleteExpando;for(var i=0,elem;(elem=elems[i])!=null;i++){id=elem[jQuery.expando];if(id){data=cache[id];if(data.events){for(var type in data.events){if(special[type]){jQuery.event.remove(elem,type);}else{removeEvent(elem,type,data.handle);}}}if(deleteExpando){delete elem[jQuery.expando];}else{if(elem.removeAttribute){elem.removeAttribute(jQuery.expando);}}delete cache[id];}}}});var rexclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,ralpha=/alpha\([^)]*\)/,ropacity=/opacity=([^)]*)/,rfloat=/float/i,rdashAlpha=/-([a-z])/ig,rupper=/([A-Z])/g,rnumpx=/^-?\d+(?:px)?$/i,rnum=/^-?\d/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssWidth=["Left","Right"],cssHeight=["Top","Bottom"],getComputedStyle=document.defaultView&&document.defaultView.getComputedStyle,styleFloat=jQuery.support.cssFloat?"cssFloat":"styleFloat",fcamelCase=function(all,letter){return letter.toUpperCase();};jQuery.fn.css=function(name,value){return access(this,name,value,true,function(elem,name,value){if(value===undefined){return jQuery.curCSS(elem,name);}if(typeof value==="number"&&!rexclude.test(name)){value+="px";}jQuery.style(elem,name,value);});};jQuery.extend({style:function(elem,name,value){if(!elem||elem.nodeType===3||elem.nodeType===8){return undefined;}if((name==="width"||name==="height")&&parseFloat(value)<0){value=undefined;}var style=elem.style||elem,set=value!==undefined;if(!jQuery.support.opacity&&name==="opacity"){if(set){style.zoom=1;var opacity=parseInt(value,10)+""==="NaN"?"":"alpha(opacity="+value*100+")";var filter=style.filter||jQuery.curCSS(elem,"filter")||"";style.filter=ralpha.test(filter)?filter.replace(ralpha,opacity):opacity;}return style.filter&&style.filter.indexOf("opacity=")>=0?(parseFloat(ropacity.exec(style.filter)[1])/100)+"":"";}if(rfloat.test(name)){name=styleFloat;}name=name.replace(rdashAlpha,fcamelCase);if(set){style[name]=value;}return style[name];},css:function(elem,name,force,extra){if(name==="width"||name==="height"){var val,props=cssShow,which=name==="width"?cssWidth:cssHeight;function getWH(){val=name==="width"?elem.offsetWidth:elem.offsetHeight;if(extra==="border"){return ;}jQuery.each(which,function(){if(!extra){val-=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;}if(extra==="margin"){val+=parseFloat(jQuery.curCSS(elem,"margin"+this,true))||0;}else{val-=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;}});}if(elem.offsetWidth!==0){getWH();}else{jQuery.swap(elem,props,getWH);}return Math.max(0,Math.round(val));}return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style,filter;if(!jQuery.support.opacity&&name==="opacity"&&elem.currentStyle){ret=ropacity.test(elem.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return ret===""?"1":ret;}if(rfloat.test(name)){name=styleFloat;}if(!force&&style&&style[name]){ret=style[name];}else{if(getComputedStyle){if(rfloat.test(name)){name="float";}name=name.replace(rupper,"-$1").toLowerCase();var defaultView=elem.ownerDocument.defaultView;if(!defaultView){return null;}var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle){ret=computedStyle.getPropertyValue(name);}if(name==="opacity"&&ret===""){ret="1";}}else{if(elem.currentStyle){var camelCase=name.replace(rdashAlpha,fcamelCase);ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!rnumpx.test(ret)&&rnum.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=camelCase==="fontSize"?"1em":(ret||0);ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft;}}}}return ret;},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);for(var name in options){elem.style[name]=old[name];}}});if(jQuery.expr&&jQuery.expr.filters){jQuery.expr.filters.hidden=function(elem){var width=elem.offsetWidth,height=elem.offsetHeight,skip=elem.nodeName.toLowerCase()==="tr";return width===0&&height===0&&!skip?true:width>0&&height>0&&!skip?false:jQuery.curCSS(elem,"display")==="none";};jQuery.expr.filters.visible=function(elem){return !jQuery.expr.filters.hidden(elem);};}var jsc=now(),rscript=/<script(.|\s)*?\/script>/gi,rselectTextarea=/select|textarea/i,rinput=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,jsre=/=\?(&|$)/,rquery=/\?/,rts=/(\?|&)_=.*?(&|$)/,rurl=/^(\w+:)?\/\/([^\/?#]+)/,r20=/%20/g,_load=jQuery.fn.load;jQuery.fn.extend({load:function(url,params,callback){if(typeof url!=="string"){return _load.call(this,url);}else{if(!this.length){return this;}}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null;}else{if(typeof params==="object"){params=jQuery.param(params,jQuery.ajaxSettings.traditional);type="POST";}}}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status==="success"||status==="notmodified"){self.html(selector?jQuery("<div />").append(res.responseText.replace(rscript,"")).find(selector):res.responseText);}if(callback){self.each(callback,[res.responseText,status,res]);}}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||rselectTextarea.test(this.nodeName)||rinput.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){type=type||callback;callback=data;data=null;}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){type=type||callback;callback=data;data={};}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:window.XMLHttpRequest&&(window.location.protocol!=="file:"||!window.ActiveXObject)?function(){return new window.XMLHttpRequest();}:function(){try{return new window.ActiveXObject("Microsoft.XMLHTTP");}catch(e){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(origSettings){var s=jQuery.extend(true,{},jQuery.ajaxSettings,origSettings);var jsonp,status,data,callbackContext=origSettings&&origSettings.context||s,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data,s.traditional);}if(s.dataType==="jsonp"){if(type==="GET"){if(!jsre.test(s.url)){s.url+=(rquery.test(s.url)?"&":"?")+(s.jsonp||"callback")+"=?";}}else{if(!s.data||!jsre.test(s.data)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";}}s.dataType="json";}if(s.dataType==="json"&&(s.data&&jsre.test(s.data)||jsre.test(s.url))){jsonp=s.jsonpCallback||("jsonp"+jsc++);if(s.data){s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");}s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=window[jsonp]||function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}};}if(s.dataType==="script"&&s.cache===null){s.cache=false;}if(s.cache===false&&type==="GET"){var ts=now();var ret=s.url.replace(rts,"$1_="+ts+"$2");s.url=ret+((ret===s.url)?(rquery.test(s.url)?"&":"?")+"_="+ts:"");}if(s.data&&type==="GET"){s.url+=(rquery.test(s.url)?"&":"?")+s.data;}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart");}var parts=rurl.exec(s.url),remote=parts&&(parts[1]&&parts[1]!==location.protocol||parts[2]!==location.host);if(s.dataType==="script"&&type==="GET"&&remote){var head=document.getElementsByTagName("head")[0]||document.documentElement;var script=document.createElement("script");script.src=s.url;if(s.scriptCharset){script.charset=s.scriptCharset;}if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){done=true;success();complete();script.onload=script.onreadystatechange=null;if(head&&script.parentNode){head.removeChild(script);}}};}head.insertBefore(script,head.firstChild);return undefined;}var requestDone=false;var xhr=s.xhr();if(!xhr){return ;}if(s.username){xhr.open(type,s.url,s.async,s.username,s.password);}else{xhr.open(type,s.url,s.async);}try{if(s.data||origSettings&&origSettings.contentType){xhr.setRequestHeader("Content-Type",s.contentType);}if(s.ifModified){if(jQuery.lastModified[s.url]){xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]);}if(jQuery.etag[s.url]){xhr.setRequestHeader("If-None-Match",jQuery.etag[s.url]);}}if(!remote){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");}xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}if(s.beforeSend&&s.beforeSend.call(callbackContext,xhr,s)===false){if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop");}xhr.abort();return false;}if(s.global){trigger("ajaxSend",[xhr,s]);}var onreadystatechange=xhr.onreadystatechange=function(isTimeout){if(!xhr||xhr.readyState===0||isTimeout==="abort"){if(!requestDone){complete();}requestDone=true;if(xhr){xhr.onreadystatechange=jQuery.noop;}}else{if(!requestDone&&xhr&&(xhr.readyState===4||isTimeout==="timeout")){requestDone=true;xhr.onreadystatechange=jQuery.noop;status=isTimeout==="timeout"?"timeout":!jQuery.httpSuccess(xhr)?"error":s.ifModified&&jQuery.httpNotModified(xhr,s.url)?"notmodified":"success";var errMsg;if(status==="success"){try{data=jQuery.httpData(xhr,s.dataType,s);}catch(err){status="parsererror";errMsg=err;}}if(status==="success"||status==="notmodified"){if(!jsonp){success();}}else{jQuery.handleError(s,xhr,status,errMsg);}complete();if(isTimeout==="timeout"){xhr.abort();}if(s.async){xhr=null;}}}};try{var oldAbort=xhr.abort;xhr.abort=function(){if(xhr){oldAbort.call(xhr);}onreadystatechange("abort");};}catch(e){}if(s.async&&s.timeout>0){setTimeout(function(){if(xhr&&!requestDone){onreadystatechange("timeout");}},s.timeout);}try{xhr.send(type==="POST"||type==="PUT"||type==="DELETE"?s.data:null);}catch(e){jQuery.handleError(s,xhr,null,e);complete();}if(!s.async){onreadystatechange();}function success(){if(s.success){s.success.call(callbackContext,data,status,xhr);}if(s.global){trigger("ajaxSuccess",[xhr,s]);}}function complete(){if(s.complete){s.complete.call(callbackContext,xhr,status);}if(s.global){trigger("ajaxComplete",[xhr,s]);}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop");}}function trigger(type,args){(s.context?jQuery(s.context):jQuery.event).trigger(type,args);}return xhr;},handleError:function(s,xhr,status,e){if(s.error){s.error.call(s.context||s,xhr,status,e);}if(s.global){(s.context?jQuery(s.context):jQuery.event).trigger("ajaxError",[xhr,s,e]);}},active:0,httpSuccess:function(xhr){try{return !xhr.status&&location.protocol==="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status===304||xhr.status===1223||xhr.status===0;}catch(e){}return false;},httpNotModified:function(xhr,url){var lastModified=xhr.getResponseHeader("Last-Modified"),etag=xhr.getResponseHeader("Etag");if(lastModified){jQuery.lastModified[url]=lastModified;}if(etag){jQuery.etag[url]=etag;}return xhr.status===304||xhr.status===0;},httpData:function(xhr,type,s){var ct=xhr.getResponseHeader("content-type")||"",xml=type==="xml"||!type&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==="parsererror"){jQuery.error("parsererror");}if(s&&s.dataFilter){data=s.dataFilter(data,type);}if(typeof data==="string"){if(type==="json"||!type&&ct.indexOf("json")>=0){data=jQuery.parseJSON(data);}else{if(type==="script"||!type&&ct.indexOf("javascript")>=0){jQuery.globalEval(data);}}}return data;},param:function(a,traditional){var s=[];if(traditional===undefined){traditional=jQuery.ajaxSettings.traditional;}if(jQuery.isArray(a)||a.jquery){jQuery.each(a,function(){add(this.name,this.value);});}else{for(var prefix in a){buildParams(prefix,a[prefix]);}}return s.join("&").replace(r20,"+");function buildParams(prefix,obj){if(jQuery.isArray(obj)){jQuery.each(obj,function(i,v){if(traditional||/\[\]$/.test(prefix)){add(prefix,v);}else{buildParams(prefix+"["+(typeof v==="object"||jQuery.isArray(v)?i:"")+"]",v);}});}else{if(!traditional&&obj!=null&&typeof obj==="object"){jQuery.each(obj,function(k,v){buildParams(prefix+"["+k+"]",v);});}else{add(prefix,obj);}}}function add(key,value){value=jQuery.isFunction(value)?value():value;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value);}}});var elemdisplay={},rfxtypes=/toggle|show|hide/,rfxnum=/^([+-]=)?([\d+-.]+)(.*)$/,timerId,fxAttrs=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];jQuery.fn.extend({show:function(speed,callback){if(speed||speed===0){return this.animate(genFx("show",3),speed,callback);}else{for(var i=0,l=this.length;i<l;i++){var old=jQuery.data(this[i],"olddisplay");this[i].style.display=old||"";if(jQuery.css(this[i],"display")==="none"){var nodeName=this[i].nodeName,display;if(elemdisplay[nodeName]){display=elemdisplay[nodeName];}else{var elem=jQuery("<"+nodeName+" />").appendTo("body");display=elem.css("display");if(display==="none"){display="block";}elem.remove();elemdisplay[nodeName]=display;}jQuery.data(this[i],"olddisplay",display);}}for(var j=0,k=this.length;j<k;j++){this[j].style.display=jQuery.data(this[j],"olddisplay")||"";}return this;}},hide:function(speed,callback){if(speed||speed===0){return this.animate(genFx("hide",3),speed,callback);}else{for(var i=0,l=this.length;i<l;i++){var old=jQuery.data(this[i],"olddisplay");if(!old&&old!=="none"){jQuery.data(this[i],"olddisplay",jQuery.css(this[i],"display"));}}for(var j=0,k=this.length;j<k;j++){this[j].style.display="none";}return this;}},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){var bool=typeof fn==="boolean";if(jQuery.isFunction(fn)&&jQuery.isFunction(fn2)){this._toggle.apply(this,arguments);}else{if(fn==null||bool){this.each(function(){var state=bool?fn:jQuery(this).is(":hidden");jQuery(this)[state?"show":"hide"]();});}else{this.animate(genFx("toggle",3),fn,fn2);}}return this;},fadeTo:function(speed,to,callback){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);if(jQuery.isEmptyObject(prop)){return this.each(optall.complete);}return this[optall.queue===false?"each":"queue"](function(){var opt=jQuery.extend({},optall),p,hidden=this.nodeType===1&&jQuery(this).is(":hidden"),self=this;for(p in prop){var name=p.replace(rdashAlpha,fcamelCase);if(p!==name){prop[name]=prop[p];delete prop[p];p=name;}if(prop[p]==="hide"&&hidden||prop[p]==="show"&&!hidden){return opt.complete.call(this);}if((p==="height"||p==="width")&&this.style){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}if(jQuery.isArray(prop[p])){(opt.specialEasing=opt.specialEasing||{})[p]=prop[p][1];prop[p]=prop[p][0];}}if(opt.overflow!=null){this.style.overflow="hidden";}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(rfxtypes.test(val)){e[val==="toggle"?hidden?"show":"hide":val](prop);}else{var parts=rfxnum.exec(val),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!=="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}if(parts[1]){end=((parts[1]==="-="?-1:1)*end)+start;}e.custom(start,end,unit);}else{e.custom(start,val,"");}}});return true;});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue){this.queue([]);}this.each(function(){for(var i=timers.length-1;i>=0;i--){if(timers[i].elem===this){if(gotoEnd){timers[i](true);}timers.splice(i,1);}}});if(!gotoEnd){this.dequeue();}return this;}});jQuery.each({slideDown:genFx("show",1),slideUp:genFx("hide",1),slideToggle:genFx("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(name,props){jQuery.fn[name]=function(speed,callback){return this.animate(props,speed,callback);};});jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&typeof speed==="object"?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!jQuery.isFunction(easing)&&easing};opt.duration=jQuery.fx.off?0:typeof opt.duration==="number"?opt.duration:jQuery.fx.speeds[opt.duration]||jQuery.fx.speeds._default;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){jQuery(this).dequeue();}if(jQuery.isFunction(opt.old)){opt.old.call(this);}};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={};}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this);}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block";}},cur:function(force){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];}var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;var self=this;function t(gotoEnd){return self.step(gotoEnd);}t.elem=this.elem;if(t()&&jQuery.timers.push(t)&&!timerId){timerId=setInterval(jQuery.fx.tick,13);}},show:function(){this.options.orig[this.prop]=jQuery.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now(),done=true;if(gotoEnd||t>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false;}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;var old=jQuery.data(this.elem,"olddisplay");this.elem.style.display=old?old:this.options.display;if(jQuery.css(this.elem,"display")==="none"){this.elem.style.display="block";}}if(this.options.hide){jQuery(this.elem).hide();}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.style(this.elem,p,this.options.orig[p]);}}this.options.complete.call(this.elem);}return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;var specialEasing=this.options.specialEasing&&this.options.specialEasing[this.prop];var defaultEasing=this.options.easing||(jQuery.easing.swing?"swing":"linear");this.pos=jQuery.easing[specialEasing||defaultEasing](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};jQuery.extend(jQuery.fx,{tick:function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1);}}if(!timers.length){jQuery.fx.stop();}},stop:function(){clearInterval(timerId);timerId=null;},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(fx){jQuery.style(fx.elem,"opacity",fx.now);},_default:function(fx){if(fx.elem.style&&fx.elem.style[fx.prop]!=null){fx.elem.style[fx.prop]=(fx.prop==="width"||fx.prop==="height"?Math.max(0,fx.now):fx.now)+fx.unit;}else{fx.elem[fx.prop]=fx.now;}}}});if(jQuery.expr&&jQuery.expr.filters){jQuery.expr.filters.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem;}).length;};}function genFx(type,num){var obj={};jQuery.each(fxAttrs.concat.apply([],fxAttrs.slice(0,num)),function(){obj[this]=type;});return obj;}if("getBoundingClientRect" in document.documentElement){jQuery.fn.offset=function(options){var elem=this[0];if(options){return this.each(function(i){jQuery.offset.setOffset(this,options,i);});}if(!elem||!elem.ownerDocument){return null;}if(elem===elem.ownerDocument.body){return jQuery.offset.bodyOffset(elem);}var box=elem.getBoundingClientRect(),doc=elem.ownerDocument,body=doc.body,docElem=doc.documentElement,clientTop=docElem.clientTop||body.clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0,top=box.top+(self.pageYOffset||jQuery.support.boxModel&&docElem.scrollTop||body.scrollTop)-clientTop,left=box.left+(self.pageXOffset||jQuery.support.boxModel&&docElem.scrollLeft||body.scrollLeft)-clientLeft;return{top:top,left:left};};}else{jQuery.fn.offset=function(options){var elem=this[0];if(options){return this.each(function(i){jQuery.offset.setOffset(this,options,i);});}if(!elem||!elem.ownerDocument){return null;}if(elem===elem.ownerDocument.body){return jQuery.offset.bodyOffset(elem);}jQuery.offset.initialize();var offsetParent=elem.offsetParent,prevOffsetParent=elem,doc=elem.ownerDocument,computedStyle,docElem=doc.documentElement,body=doc.body,defaultView=doc.defaultView,prevComputedStyle=defaultView?defaultView.getComputedStyle(elem,null):elem.currentStyle,top=elem.offsetTop,left=elem.offsetLeft;while((elem=elem.parentNode)&&elem!==body&&elem!==docElem){if(jQuery.offset.supportsFixedPosition&&prevComputedStyle.position==="fixed"){break;}computedStyle=defaultView?defaultView.getComputedStyle(elem,null):elem.currentStyle;top-=elem.scrollTop;left-=elem.scrollLeft;if(elem===offsetParent){top+=elem.offsetTop;left+=elem.offsetLeft;if(jQuery.offset.doesNotAddBorder&&!(jQuery.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(elem.nodeName))){top+=parseFloat(computedStyle.borderTopWidth)||0;left+=parseFloat(computedStyle.borderLeftWidth)||0;}prevOffsetParent=offsetParent,offsetParent=elem.offsetParent;}if(jQuery.offset.subtractsBorderForOverflowNotVisible&&computedStyle.overflow!=="visible"){top+=parseFloat(computedStyle.borderTopWidth)||0;left+=parseFloat(computedStyle.borderLeftWidth)||0;}prevComputedStyle=computedStyle;}if(prevComputedStyle.position==="relative"||prevComputedStyle.position==="static"){top+=body.offsetTop;left+=body.offsetLeft;}if(jQuery.offset.supportsFixedPosition&&prevComputedStyle.position==="fixed"){top+=Math.max(docElem.scrollTop,body.scrollTop);left+=Math.max(docElem.scrollLeft,body.scrollLeft);}return{top:top,left:left};};}jQuery.offset={initialize:function(){var body=document.body,container=document.createElement("div"),innerDiv,checkDiv,table,td,bodyMarginTop=parseFloat(jQuery.curCSS(body,"marginTop",true))||0,html="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";jQuery.extend(container.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});container.innerHTML=html;body.insertBefore(container,body.firstChild);innerDiv=container.firstChild;checkDiv=innerDiv.firstChild;td=innerDiv.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(checkDiv.offsetTop!==5);this.doesAddBorderForTableAndCells=(td.offsetTop===5);checkDiv.style.position="fixed",checkDiv.style.top="20px";this.supportsFixedPosition=(checkDiv.offsetTop===20||checkDiv.offsetTop===15);checkDiv.style.position=checkDiv.style.top="";innerDiv.style.overflow="hidden",innerDiv.style.position="relative";this.subtractsBorderForOverflowNotVisible=(checkDiv.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(body.offsetTop!==bodyMarginTop);body.removeChild(container);body=container=innerDiv=checkDiv=table=td=null;jQuery.offset.initialize=jQuery.noop;},bodyOffset:function(body){var top=body.offsetTop,left=body.offsetLeft;jQuery.offset.initialize();if(jQuery.offset.doesNotIncludeMarginInBodyOffset){top+=parseFloat(jQuery.curCSS(body,"marginTop",true))||0;left+=parseFloat(jQuery.curCSS(body,"marginLeft",true))||0;}return{top:top,left:left};},setOffset:function(elem,options,i){if(/static/.test(jQuery.curCSS(elem,"position"))){elem.style.position="relative";}var curElem=jQuery(elem),curOffset=curElem.offset(),curTop=parseInt(jQuery.curCSS(elem,"top",true),10)||0,curLeft=parseInt(jQuery.curCSS(elem,"left",true),10)||0;if(jQuery.isFunction(options)){options=options.call(elem,i,curOffset);}var props={top:(options.top-curOffset.top)+curTop,left:(options.left-curOffset.left)+curLeft};if("using" in options){options.using.call(elem,props);}else{curElem.css(props);}}};jQuery.fn.extend({position:function(){if(!this[0]){return null;}var elem=this[0],offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].nodeName)?{top:0,left:0}:offsetParent.offset();offset.top-=parseFloat(jQuery.curCSS(elem,"marginTop",true))||0;offset.left-=parseFloat(jQuery.curCSS(elem,"marginLeft",true))||0;parentOffset.top+=parseFloat(jQuery.curCSS(offsetParent[0],"borderTopWidth",true))||0;parentOffset.left+=parseFloat(jQuery.curCSS(offsetParent[0],"borderLeftWidth",true))||0;return{top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};},offsetParent:function(){return this.map(function(){var offsetParent=this.offsetParent||document.body;while(offsetParent&&(!/^body|html$/i.test(offsetParent.nodeName)&&jQuery.css(offsetParent,"position")==="static")){offsetParent=offsetParent.offsetParent;}return offsetParent;});}});jQuery.each(["Left","Top"],function(i,name){var method="scroll"+name;jQuery.fn[method]=function(val){var elem=this[0],win;if(!elem){return null;}if(val!==undefined){return this.each(function(){win=getWindow(this);if(win){win.scrollTo(!i?val:jQuery(win).scrollLeft(),i?val:jQuery(win).scrollTop());}else{this[method]=val;}});}else{win=getWindow(elem);return win?("pageXOffset" in win)?win[i?"pageYOffset":"pageXOffset"]:jQuery.support.boxModel&&win.document.documentElement[method]||win.document.body[method]:elem[method];}};});function getWindow(elem){return("scrollTo" in elem&&elem.document)?elem:elem.nodeType===9?elem.defaultView||elem.parentWindow:false;}jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn["inner"+name]=function(){return this[0]?jQuery.css(this[0],type,false,"padding"):null;};jQuery.fn["outer"+name]=function(margin){return this[0]?jQuery.css(this[0],type,false,margin?"margin":"border"):null;};jQuery.fn[type]=function(size){var elem=this[0];if(!elem){return size==null?null:this;}if(jQuery.isFunction(size)){return this.each(function(i){var self=jQuery(this);self[type](size.call(this,i,self[type]()));});}return("scrollTo" in elem&&elem.document)?elem.document.compatMode==="CSS1Compat"&&elem.document.documentElement["client"+name]||elem.document.body["client"+name]:(elem.nodeType===9)?Math.max(elem.documentElement["client"+name],elem.body["scroll"+name],elem.documentElement["scroll"+name],elem.body["offset"+name],elem.documentElement["offset"+name]):size===undefined?jQuery.css(elem,type):this.css(type,typeof size==="string"?size:size+"px");};});window.jQuery=window.$=jQuery;})(window);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");};}}());(function(){function B(G){var E=new Array(Math.ceil(G.length/4)),F;for(F=0;F<E.length;F++){E[F]=G.charCodeAt(F*4)+(G.charCodeAt(F*4+1)<<8)+(G.charCodeAt(F*4+2)<<16)+(G.charCodeAt(F*4+3)<<24);}return E;}function C(F){var E=new Array(F.length),G;for(G=0;G<F.length;G++){E[G]=String.fromCharCode(F[G]&255,F[G]>>>8&255,F[G]>>>16&255,F[G]>>>24&255);}return E.join("");}function D(E){return E.replace(/[\0\t\n\v\f\r\xa0'"!]/g,function(F){return"!"+F.charCodeAt(0)+"!";});}function A(E){return E.replace(/!\d\d?\d?!/g,function(F){return String.fromCharCode(F.slice(1,-1));});}this.TEAencrypt=function(G,R){if(G.length===0){return("");}var H=escape(G).replace(/%20/g," "),S=B(H),K,I,N,O,Q,P,M,E,L,F,J;if(S.length<=1){S[1]=0;}K=B(R.slice(0,16));I=S.length;N=S[I-1];O=S[0];Q=2654435769;E=Math.floor(6+52/I);L=0;while(E-->0){L+=Q;M=L>>>2&3;for(F=0;F<I;F++){O=S[(F+1)%I];P=(N>>>5^O<<2)+(O>>>3^N<<4)^(L^O)+(K[F&3^M]^N);N=S[F]+=P;}}J=C(S);return D(J);};this.TEAdecrypt=function(I,Q){if(I.length===0){return("");}var R=B(A(I)),J=B(Q.slice(0,16)),H=R.length,M=R[H-1],N=R[0],P=2654435769,O,L,E=Math.floor(6+52/H),K=E*P,G,F;while(K!==0){L=K>>>2&3;for(G=H-1;G>=0;G--){M=R[G>0?G-1:H-1];O=(M>>>5^N<<2)+(N>>>3^M<<4)^(K^N)+(J[G&3^L]^M);N=R[G]-=O;}K-=P;}F=C(R);F=F.replace(/\0+$/,"");return unescape(F);};})();(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name;},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata";}var data=$.data(elem,settings.single);if(data){return data;}data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1];}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return ;}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML);}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr;}}}}if(data.indexOf("{")<0){data="{"+data+"}";}data=eval("("+data+")");$.data(elem,settings.single,data);return data;}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts);};})(jQuery);(function(A){A.fn.bgIframe=A.fn.bgiframe=function(C){if(A.browser.msie&&/6.0/.test(navigator.userAgent)){C=A.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},C||{});var D=function(E){return E&&E.constructor==Number?E+"px":E;},B='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+C.src+'"style="display:block;position:absolute;z-index:-1;'+(C.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(C.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":D(C.top))+";left:"+(C.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":D(C.left))+";width:"+(C.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":D(C.width))+";height:"+(C.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":D(C.height))+';"/>';return this.each(function(){if(A("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(B),this.firstChild);}});}return this;};})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(B,C,A,E,D){return jQuery.easing[jQuery.easing.def](B,C,A,E,D);},easeInQuad:function(B,C,A,E,D){return E*(C/=D)*C+A;},easeOutQuad:function(B,C,A,E,D){return -E*(C/=D)*(C-2)+A;},easeInOutQuad:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C+A;}return -E/2*((--C)*(C-2)-1)+A;},easeInCubic:function(B,C,A,E,D){return E*(C/=D)*C*C+A;},easeOutCubic:function(B,C,A,E,D){return E*((C=C/D-1)*C*C+1)+A;},easeInOutCubic:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C+A;}return E/2*((C-=2)*C*C+2)+A;},easeInQuart:function(B,C,A,E,D){return E*(C/=D)*C*C*C+A;},easeOutQuart:function(B,C,A,E,D){return -E*((C=C/D-1)*C*C*C-1)+A;},easeInOutQuart:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C*C+A;}return -E/2*((C-=2)*C*C*C-2)+A;},easeInQuint:function(B,C,A,E,D){return E*(C/=D)*C*C*C*C+A;},easeOutQuint:function(B,C,A,E,D){return E*((C=C/D-1)*C*C*C*C+1)+A;},easeInOutQuint:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C*C*C+A;}return E/2*((C-=2)*C*C*C*C+2)+A;},easeInSine:function(B,C,A,E,D){return -E*Math.cos(C/D*(Math.PI/2))+E+A;},easeOutSine:function(B,C,A,E,D){return E*Math.sin(C/D*(Math.PI/2))+A;},easeInOutSine:function(B,C,A,E,D){return -E/2*(Math.cos(Math.PI*C/D)-1)+A;},easeInExpo:function(B,C,A,E,D){return(C==0)?A:E*Math.pow(2,10*(C/D-1))+A;},easeOutExpo:function(B,C,A,E,D){return(C==D)?A+E:E*(-Math.pow(2,-10*C/D)+1)+A;},easeInOutExpo:function(B,C,A,E,D){if(C==0){return A;}if(C==D){return A+E;}if((C/=D/2)<1){return E/2*Math.pow(2,10*(C-1))+A;}return E/2*(-Math.pow(2,-10*--C)+2)+A;},easeInCirc:function(B,C,A,E,D){return -E*(Math.sqrt(1-(C/=D)*C)-1)+A;},easeOutCirc:function(B,C,A,E,D){return E*Math.sqrt(1-(C=C/D-1)*C)+A;},easeInOutCirc:function(B,C,A,E,D){if((C/=D/2)<1){return -E/2*(Math.sqrt(1-C*C)-1)+A;}return E/2*(Math.sqrt(1-(C-=2)*C)+1)+A;},easeInElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A;}if((D/=G)==1){return A+H;}if(!F){F=G*0.3;}if(C<Math.abs(H)){C=H;var E=F/4;}else{var E=F/(2*Math.PI)*Math.asin(H/C);}return -(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+A;},easeOutElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A;}if((D/=G)==1){return A+H;}if(!F){F=G*0.3;}if(C<Math.abs(H)){C=H;var E=F/4;}else{var E=F/(2*Math.PI)*Math.asin(H/C);}return C*Math.pow(2,-10*D)*Math.sin((D*G-E)*(2*Math.PI)/F)+H+A;},easeInOutElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A;}if((D/=G/2)==2){return A+H;}if(!F){F=G*(0.3*1.5);}if(C<Math.abs(H)){C=H;var E=F/4;}else{var E=F/(2*Math.PI)*Math.asin(H/C);}if(D<1){return -0.5*(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+A;}return C*Math.pow(2,-10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F)*0.5+H+A;},easeInBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158;}return F*(C/=E)*C*((D+1)*C-D)+A;},easeOutBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158;}return F*((C=C/E-1)*C*((D+1)*C+D)+1)+A;},easeInOutBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158;}if((C/=E/2)<1){return F/2*(C*C*(((D*=(1.525))+1)*C-D))+A;}return F/2*((C-=2)*C*(((D*=(1.525))+1)*C+D)+2)+A;},easeInBounce:function(B,C,A,E,D){return E-jQuery.easing.easeOutBounce(B,D-C,0,E,D)+A;},easeOutBounce:function(B,C,A,E,D){if((C/=D)<(1/2.75)){return E*(7.5625*C*C)+A;}else{if(C<(2/2.75)){return E*(7.5625*(C-=(1.5/2.75))*C+0.75)+A;}else{if(C<(2.5/2.75)){return E*(7.5625*(C-=(2.25/2.75))*C+0.9375)+A;}else{return E*(7.5625*(C-=(2.625/2.75))*C+0.984375)+A;}}}},easeInOutBounce:function(B,C,A,E,D){if(C<D/2){return jQuery.easing.easeInBounce(B,C*2,0,E,D)*0.5+A;}return jQuery.easing.easeOutBounce(B,C*2-D,0,E,D)*0.5+E*0.5+A;}});(function(A){A.fn.hoverIntent=function(I,H){var J={sensitivity:7,interval:100,timeout:0};J=A.extend(J,H?{over:I,out:H}:I);var L,K,F,D;var E=function(M){L=M.pageX;K=M.pageY;};var C=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);if((Math.abs(F-L)+Math.abs(D-K))<J.sensitivity){A(M).unbind("mousemove",E);M.hoverIntent_s=1;return J.over.apply(M,[N]);}else{F=L;D=K;M.hoverIntent_t=setTimeout(function(){C(N,M);},J.interval);}};var G=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);M.hoverIntent_s=0;return J.out.apply(M,[N]);};var B=function(P){var O=(P.type=="mouseover"?P.fromElement:P.toElement)||P.relatedTarget;while(O&&O!=this){try{O=O.parentNode;}catch(P){O=this;}}if(O==this){return false;}var N=jQuery.extend({},P);var M=this;if(M.hoverIntent_t){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);}if(P.type=="mouseover"){F=N.pageX;D=N.pageY;A(M).bind("mousemove",E);if(M.hoverIntent_s!=1){M.hoverIntent_t=setTimeout(function(){C(N,M);},J.interval);}}else{A(M).unbind("mousemove",E);if(M.hoverIntent_s==1){M.hoverIntent_t=setTimeout(function(){G(N,M);},J.timeout);}}};return this.mouseover(B).mouseout(B);};})(jQuery);(function(B){B.fn.jcarousel=function(D){return this.each(function(){new A(this,D);});};var C={vertical:false,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,buttonNextHTML:"<div></div>",buttonPrevHTML:"<div></div>",buttonNextEvent:"click",buttonPrevEvent:"click",buttonNextCallback:null,buttonPrevCallback:null};B.jcarousel=function(G,E){this.options=B.extend({},C,E||{});this.locked=false;this.container=null;this.clip=null;this.list=null;this.buttonNext=null;this.buttonPrev=null;this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical?"left":"top";var K="",I=G.className.split(" ");for(var F=0;F<I.length;F++){if(I[F].indexOf("jcarousel-skin")!=-1){B(G).removeClass(I[F]);var K=I[F];break;}}if(G.nodeName=="UL"||G.nodeName=="OL"){this.list=B(G);this.container=this.list.parent();if(this.container.hasClass("jcarousel-clip")){if(!this.container.parent().hasClass("jcarousel-container")){this.container=this.container.wrap("<div></div>");}this.container=this.container.parent();}else{if(!this.container.hasClass("jcarousel-container")){this.container=this.list.wrap("<div></div>").parent();}}}else{this.container=B(G);this.list=B(G).find(">ul,>ol,div>ul,div>ol");}if(K!=""&&this.container.parent()[0].className.indexOf("jcarousel-skin")==-1){this.container.wrap('<div class=" '+K+'"></div>');}this.clip=this.list.parent();if(!this.clip.length||!this.clip.hasClass("jcarousel-clip")){this.clip=this.list.wrap("<div></div>").parent();}this.buttonPrev=B(".jcarousel-prev",this.container);if(this.buttonPrev.size()==0&&this.options.buttonPrevHTML!=null){this.buttonPrev=this.clip.before(this.options.buttonPrevHTML).prev();}this.buttonPrev.addClass(this.className("jcarousel-prev"));this.buttonNext=B(".jcarousel-next",this.container);if(this.buttonNext.size()==0&&this.options.buttonNextHTML!=null){this.buttonNext=this.clip.before(this.options.buttonNextHTML).prev();}this.buttonNext.addClass(this.className("jcarousel-next"));this.clip.addClass(this.className("jcarousel-clip"));this.list.addClass(this.className("jcarousel-list"));this.container.addClass(this.className("jcarousel-container"));var H=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;var J=this.list.children("li");var L=this;if(J.size()>0){var D=0,F=this.options.offset;J.each(function(){L.format(this,F++);D+=L.dimension(this,H);});this.list.css(this.wh,D+"px");if(!E||E.size===undefined){this.options.size=J.size();}}this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display","block");this.funcNext=function(){L.next();};this.funcPrev=function(){L.prev();};this.funcResize=function(){L.reload();};if(this.options.initCallback!=null){this.options.initCallback(this,"init");}if(B.browser.safari){this.buttons(false,false);B(window).bind("load",function(){L.setup();});}else{this.setup();}};var A=B.jcarousel;A.fn=A.prototype={jcarousel:"0.2.3"};A.fn.extend=A.extend=B.extend;A.fn.extend({setup:function(){this.first=null;this.last=null;this.prevFirst=null;this.prevLast=null;this.animating=false;this.timer=null;this.tail=null;this.inTail=false;if(this.locked){return ;}this.list.css(this.lt,this.pos(this.options.offset)+"px");var D=this.pos(this.options.start);this.prevFirst=this.prevLast=null;this.animate(D,false);B(window).unbind("resize",this.funcResize).bind("resize",this.funcResize);},reset:function(){this.list.empty();this.list.css(this.lt,"0px");this.list.css(this.wh,"10px");if(this.options.initCallback!=null){this.options.initCallback(this,"reset");}this.setup();},reload:function(){if(this.tail!=null&&this.inTail){this.list.css(this.lt,A.intval(this.list.css(this.lt))+this.tail);}this.tail=null;this.inTail=false;if(this.options.reloadCallback!=null){this.options.reloadCallback(this);}if(this.options.visible!=null){var F=this;var G=Math.ceil(this.clipping()/this.options.visible),E=0,D=0;B("li",this.list).each(function(H){E+=F.dimension(this,G);if(H+1<F.first){D=E;}});this.list.css(this.wh,E+"px");this.list.css(this.lt,-D+"px");}this.scroll(this.first,false);},lock:function(){this.locked=true;this.buttons();},unlock:function(){this.locked=false;this.buttons();},size:function(D){if(D!=undefined){this.options.size=D;if(!this.locked){this.buttons();}}return this.options.size;},has:function(E,F){if(F==undefined||!F){F=E;}if(this.options.size!==null&&F>this.options.size){F=this.options.size;}for(var D=E;D<=F;D++){var G=this.get(D);if(!G.length||G.hasClass("jcarousel-item-placeholder")){return false;}}return true;},get:function(D){return B(".jcarousel-item-"+D,this.list);},add:function(G,L){var H=this.get(G),E=0,K=0;if(H.length==0){var J,H=this.create(G),F=A.intval(G);while(J=this.get(--F)){if(F<=0||J.length){F<=0?this.list.prepend(H):J.after(H);break;}}}else{E=this.dimension(H);}H.removeClass(this.className("jcarousel-item-placeholder"));typeof L=="string"?H.html(L):H.empty().append(L);var I=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;var D=this.dimension(H,I)-E;if(G>0&&G<this.first){this.list.css(this.lt,A.intval(this.list.css(this.lt))-D+"px");}this.list.css(this.wh,A.intval(this.list.css(this.wh))+D+"px");return H;},remove:function(D){var E=this.get(D);if(!E.length||(D>=this.first&&D<=this.last)){return ;}var F=this.dimension(E);if(D<this.first){this.list.css(this.lt,A.intval(this.list.css(this.lt))+F+"px");}E.remove();this.list.css(this.wh,A.intval(this.list.css(this.wh))-F+"px");},next:function(){this.stopAuto();if(this.tail!=null&&!this.inTail){this.scrollTail(false);}else{this.scroll(((this.options.wrap=="both"||this.options.wrap=="last")&&this.options.size!=null&&this.last==this.options.size)?1:this.first+this.options.scroll);}},prev:function(){this.stopAuto();if(this.tail!=null&&this.inTail){this.scrollTail(true);}else{this.scroll(((this.options.wrap=="both"||this.options.wrap=="first")&&this.options.size!=null&&this.first==1)?this.options.size:this.first-this.options.scroll);}},scrollTail:function(D){if(this.locked||this.animating||!this.tail){return ;}var E=A.intval(this.list.css(this.lt));!D?E-=this.tail:E+=this.tail;this.inTail=!D;this.prevFirst=this.first;this.prevLast=this.last;this.animate(E);},scroll:function(E,D){if(this.locked||this.animating){return ;}this.animate(this.pos(E),D);},pos:function(Q){if(this.locked||this.animating){return ;}if(this.options.wrap!="circular"){Q=Q<1?1:(this.options.size&&Q>this.options.size?this.options.size:Q);}var N=this.first>Q;var E=A.intval(this.list.css(this.lt));var R=this.options.wrap!="circular"&&this.first<=1?1:this.first;var U=N?this.get(R):this.get(this.last);var P=N?R:R-1;var S=null,O=0,L=false,T=0;while(N?--P>=Q:++P<Q){S=this.get(P);L=!S.length;if(S.length==0){S=this.create(P).addClass(this.className("jcarousel-item-placeholder"));U[N?"before":"after"](S);}U=S;T=this.dimension(S);if(L){O+=T;}if(this.first!=null&&(this.options.wrap=="circular"||(P>=1&&(this.options.size==null||P<=this.options.size)))){E=N?E+T:E-T;}}var I=this.clipping();var K=[];var D=0,P=Q,J=0;var U=this.get(Q-1);while(++D){S=this.get(P);L=!S.length;if(S.length==0){S=this.create(P).addClass(this.className("jcarousel-item-placeholder"));U.length==0?this.list.prepend(S):U[N?"before":"after"](S);}U=S;var T=this.dimension(S);if(T==0){alert("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...");return 0;}if(this.options.wrap!="circular"&&this.options.size!==null&&P>this.options.size){K.push(S);}else{if(L){O+=T;}}J+=T;if(J>=I){break;}P++;}for(var H=0;H<K.length;H++){K[H].remove();}if(O>0){this.list.css(this.wh,this.dimension(this.list)+O+"px");if(N){E-=O;this.list.css(this.lt,A.intval(this.list.css(this.lt))-O+"px");}}var G=Q+D-1;if(this.options.wrap!="circular"&&this.options.size&&G>this.options.size){G=this.options.size;}if(P>G){D=0,P=G,J=0;while(++D){var S=this.get(P--);if(!S.length){break;}J+=this.dimension(S);if(J>=I){break;}}}var F=G-D+1;if(this.options.wrap!="circular"&&F<1){F=1;}if(this.inTail&&N){E+=this.tail;this.inTail=false;}this.tail=null;if(this.options.wrap!="circular"&&G==this.options.size&&(G-D+1)>=1){var M=A.margin(this.get(G),!this.options.vertical?"marginRight":"marginBottom");if((J-M)>I){this.tail=J-I-M;}}while(Q-->F){E+=this.dimension(this.get(Q));}this.prevFirst=this.first;this.prevLast=this.last;this.first=F;this.last=G;return E;},animate:function(G,D){if(this.locked||this.animating){return ;}this.animating=true;var E=this;var F=function(){E.animating=false;if(G==0){E.list.css(E.lt,0);}if(E.options.wrap=="both"||E.options.wrap=="last"||E.options.size==null||E.last<E.options.size){E.startAuto();}E.buttons();E.notify("onAfterAnimation");};this.notify("onBeforeAnimation");if(!this.options.animation||D==false){this.list.css(this.lt,G+"px");F();}else{var H=!this.options.vertical?{left:G}:{top:G};this.list.animate(H,this.options.animation,this.options.easing,F);}},startAuto:function(E){if(E!=undefined){this.options.auto=E;}if(this.options.auto==0){return this.stopAuto();}if(this.timer!=null){return ;}var D=this;this.timer=setTimeout(function(){D.next();},this.options.auto*1000);},stopAuto:function(){if(this.timer==null){return ;}clearTimeout(this.timer);this.timer=null;},buttons:function(F,E){if(F==undefined||F==null){var F=!this.locked&&this.options.size!==0&&((this.options.wrap&&this.options.wrap!="first")||this.options.size==null||this.last<this.options.size);if(!this.locked&&(!this.options.wrap||this.options.wrap=="first")&&this.options.size!=null&&this.last>=this.options.size){F=this.tail!=null&&!this.inTail;}}if(E==undefined||E==null){var E=!this.locked&&this.options.size!==0&&((this.options.wrap&&this.options.wrap!="last")||this.first>1);if(!this.locked&&(!this.options.wrap||this.options.wrap=="last")&&this.options.size!=null&&this.first==1){E=this.tail!=null&&this.inTail;}}var D=this;this.buttonNext[F?"bind":"unbind"](this.options.buttonNextEvent,this.funcNext)[F?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",F?false:true);this.buttonPrev[E?"bind":"unbind"](this.options.buttonPrevEvent,this.funcPrev)[E?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",E?false:true);if(this.buttonNext.length>0&&(this.buttonNext[0].jcarouselstate==undefined||this.buttonNext[0].jcarouselstate!=F)&&this.options.buttonNextCallback!=null){this.buttonNext.each(function(){D.options.buttonNextCallback(D,this,F);});this.buttonNext[0].jcarouselstate=F;}if(this.buttonPrev.length>0&&(this.buttonPrev[0].jcarouselstate==undefined||this.buttonPrev[0].jcarouselstate!=E)&&this.options.buttonPrevCallback!=null){this.buttonPrev.each(function(){D.options.buttonPrevCallback(D,this,E);});this.buttonPrev[0].jcarouselstate=E;}},notify:function(D){var E=this.prevFirst==null?"init":(this.prevFirst<this.first?"next":"prev");this.callback("itemLoadCallback",D,E);if(this.prevFirst!==this.first){this.callback("itemFirstInCallback",D,E,this.first);this.callback("itemFirstOutCallback",D,E,this.prevFirst);}if(this.prevLast!==this.last){this.callback("itemLastInCallback",D,E,this.last);this.callback("itemLastOutCallback",D,E,this.prevLast);}this.callback("itemVisibleInCallback",D,E,this.first,this.last,this.prevFirst,this.prevLast);this.callback("itemVisibleOutCallback",D,E,this.prevFirst,this.prevLast,this.first,this.last);},callback:function(H,K,D,I,G,F,E){if(this.options[H]==undefined||(typeof this.options[H]!="object"&&K!="onAfterAnimation")){return ;}var L=typeof this.options[H]=="object"?this.options[H][K]:this.options[H];if(!B.isFunction(L)){return ;}var M=this;if(I===undefined){L(M,D,K);}else{if(G===undefined){this.get(I).each(function(){L(M,this,I,D,K);});}else{for(var J=I;J<=G;J++){if(J!==null&&!(J>=F&&J<=E)){this.get(J).each(function(){L(M,this,J,D,K);});}}}}},create:function(D){return this.format("<li></li>",D);},format:function(F,E){var D=B(F).addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+E));D.attr("jcarouselindex",E);return D;},className:function(D){return D+" "+D+(!this.options.vertical?"-horizontal":"-vertical");},dimension:function(G,H){var F=G.jquery!=undefined?G[0]:G;var E=!this.options.vertical?F.offsetWidth+A.margin(F,"marginLeft")+A.margin(F,"marginRight"):F.offsetHeight+A.margin(F,"marginTop")+A.margin(F,"marginBottom");if(H==undefined||E==H){return E;}var D=!this.options.vertical?H-A.margin(F,"marginLeft")-A.margin(F,"marginRight"):H-A.margin(F,"marginTop")-A.margin(F,"marginBottom");B(F).css(this.wh,D+"px");return this.dimension(F);},clipping:function(){return !this.options.vertical?this.clip[0].offsetWidth-A.intval(this.clip.css("borderLeftWidth"))-A.intval(this.clip.css("borderRightWidth")):this.clip[0].offsetHeight-A.intval(this.clip.css("borderTopWidth"))-A.intval(this.clip.css("borderBottomWidth"));},index:function(D,E){if(E==undefined){E=this.options.size;}return Math.round((((D-1)/E)-Math.floor((D-1)/E))*E)+1;}});A.extend({defaults:function(D){return B.extend(C,D||{});},margin:function(H,G){if(!H){return 0;}var F=H.jquery!=undefined?H[0]:H;if(G=="marginRight"&&B.browser.safari){var E={display:"block","float":"none",width:"auto"},D,I;B.swap(F,E,function(){D=F.offsetWidth;});E.marginRight=0;B.swap(F,E,function(){I=F.offsetWidth;});return I-D;}return A.intval(B.css(F,G));},intval:function(D){D=parseInt(D);return isNaN(D)?0:D;}});})(jQuery);(function(B){B.tinysort={id:"TinySort",version:"1.0.4",defaults:{order:"asc",attr:"",place:"start",returns:false}};B.fn.extend({tinysort:function(H,I){if(H&&typeof (H)!="string"){I=H;H=null;}var E=B.extend({},B.tinysort.defaults,I);var O={};this.each(function(S){var U=(!H||H=="")?B(this):B(this).find(H);var T=E.order=="rand"?""+Math.random():(E.attr==""?U.text():U.attr(E.attr));var R=B(this).parent();if(!O[R]){O[R]={s:[],n:[]};}if(U.length>0){O[R].s.push({s:T,e:B(this),n:S});}else{O[R].n.push({e:B(this),n:S});}});for(var G in O){var D=O[G];D.s.sort(function J(T,S){var R=T.s.toLowerCase?T.s.toLowerCase():T.s;var U=S.s.toLowerCase?S.s.toLowerCase():S.s;if(C(T.s)&&C(S.s)){R=parseFloat(T.s);U=parseFloat(S.s);}return(E.order=="asc"?1:-1)*(R<U?-1:(R>U?1:0));});}var L=[];for(var G in O){var D=O[G];var M=[];var F=B(this).length;switch(E.place){case"first":B.each(D.s,function(R,S){F=Math.min(F,S.n);});break;case"org":B.each(D.s,function(R,S){M.push(S.n);});break;case"end":F=D.n.length;break;default:F=0;}var P=[0,0];for(var K=0;K<B(this).length;K++){var N=K>=F&&K<F+D.s.length;if(A(M,K)){N=true;}var Q=(N?D.s:D.n)[P[N?0:1]].e;Q.parent().append(Q);if(N||!E.returns){L.push(Q.get(0));}P[N?0:1]++;}}return this.pushStack(L);}});function C(E){var D=/^\s*?[\+-]?(\d*\.?\d*?)\s*?$/.exec(E);return D&&D.length>0?D[1]:false;}function A(E,F){var D=false;B.each(E,function(H,G){if(!D){D=G==F;}});return D;}B.fn.TinySort=B.fn.Tinysort=B.fn.tsort=B.fn.tinysort;})(jQuery);(function(E){var F={},A={},B,C=Object.prototype.toString,D=Array.prototype.slice;(E.espn||(E.espn={}));B=E.espn;B.publish=function(H,G){var I;(G&&(C.call(G)==="[object Array]"))||(G=[]);(A[H]||(A[H]=[])).push(G);if(!F[H]){return ;}I=F[H].length;while(--I>=0){F[H][I].apply(this,G);}};B.subscribe=function(J){var G,L,I,M,K,H=D.call(arguments,1);I=(C.call(H[0])==="[object Object]")?H[0]:{};M=(C.call(H[0])==="[object Function]")?H[0]:H[1];(F[J]||(F[J]=[])).push(M);if(!!I.catchup){if(!!A[J]){K=A[J];if(!!I.first){K=D.call(K,0,I.first);}else{if(!!I.last){K=D.call(K,-I.last);}}L=-1;G=K.length;while(++L<G){M.apply(this,K[L]);}K=null;}}return[J,M];};B.unsubscribe=function(I){var H=I[0],G=F[H].length;while(--G>=0){if(F[H][G]==I[1]){F[H].splice(G,1);}}};if(!!E.jQuery){jQuery.publish=B.publish;jQuery.subscribe=B.subscribe;jQuery.unsubscribe=B.unsubscribe;}})(window);/*
 * jQuery UI 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI
 */
(function(A){A.ui=A.ui||{};if(A.ui.version){return ;}A.extend(A.ui,{version:"1.8.2",plugin:{add:function(C,D,F){var E=A.ui[C].prototype;for(var B in F){E.plugins[B]=E.plugins[B]||[];E.plugins[B].push([D,F[B]]);}},call:function(B,D,C){var F=B.plugins[D];if(!F||!B.element[0].parentNode){return ;}for(var E=0;E<F.length;E++){if(B.options[F[E][0]]){F[E][1].apply(B.element,C);}}}},contains:function(C,B){return document.compareDocumentPosition?C.compareDocumentPosition(B)&16:C!==B&&C.contains(B);},hasScroll:function(E,C){if(A(E).css("overflow")=="hidden"){return false;}var B=(C&&C=="left")?"scrollLeft":"scrollTop",D=false;if(E[B]>0){return true;}E[B]=1;D=(E[B]>0);E[B]=0;return D;},isOverAxis:function(C,B,D){return(C>B)&&(C<(B+D));},isOver:function(G,C,F,E,B,D){return A.ui.isOverAxis(G,F,B)&&A.ui.isOverAxis(C,E,D);},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});A.fn.extend({_focus:A.fn.focus,focus:function(B,C){return typeof B==="number"?this.each(function(){var D=this;setTimeout(function(){A(D).focus();(C&&C.call(D));},B);}):this._focus.apply(this,arguments);},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","");},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none");},scrollParent:function(){var B;if((A.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){B=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(A.curCSS(this,"position",1))&&(/(auto|scroll)/).test(A.curCSS(this,"overflow",1)+A.curCSS(this,"overflow-y",1)+A.curCSS(this,"overflow-x",1));}).eq(0);}else{B=this.parents().filter(function(){return(/(auto|scroll)/).test(A.curCSS(this,"overflow",1)+A.curCSS(this,"overflow-y",1)+A.curCSS(this,"overflow-x",1));}).eq(0);}return(/fixed/).test(this.css("position"))||!B.length?A(document):B;},zIndex:function(E){if(E!==undefined){return this.css("zIndex",E);}if(this.length){var C=A(this[0]),B,D;while(C.length&&C[0]!==document){B=C.css("position");if(B=="absolute"||B=="relative"||B=="fixed"){D=parseInt(C.css("zIndex"));if(!isNaN(D)&&D!=0){return D;}}C=C.parent();}}return 0;}});A.extend(A.expr[":"],{data:function(D,C,B){return !!A.data(D,B[3]);},focusable:function(C){var D=C.nodeName.toLowerCase(),B=A.attr(C,"tabindex");return(/input|select|textarea|button|object/.test(D)?!C.disabled:"a"==D||"area"==D?C.href||!isNaN(B):!isNaN(B))&&!A(C)["area"==D?"parents":"closest"](":hidden").length;},tabbable:function(C){var B=A.attr(C,"tabindex");return(isNaN(B)||B>=0)&&A(C).is(":focusable");}});})(jQuery);/*
 * jQuery UI Widget 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(B){var A=B.fn.remove;B.fn.remove=function(C,D){return this.each(function(){if(!D){if(!C||B.filter(C,[this]).length){B("*",this).add(this).each(function(){B(this).triggerHandler("remove");});}}return A.call(B(this),C,D);});};B.widget=function(D,F,C){var E=D.split(".")[0],H;D=D.split(".")[1];H=E+"-"+D;if(!C){C=F;F=B.Widget;}B.expr[":"][H]=function(I){return !!B.data(I,D);};B[E]=B[E]||{};B[E][D]=function(I,J){if(arguments.length){this._createWidget(I,J);}};var G=new F();G.options=B.extend({},G.options);B[E][D].prototype=B.extend(true,G,{namespace:E,widgetName:D,widgetEventPrefix:B[E][D].prototype.widgetEventPrefix||D,widgetBaseClass:H},C);B.widget.bridge(D,B[E][D]);};B.widget.bridge=function(D,C){B.fn[D]=function(G){var E=typeof G==="string",F=Array.prototype.slice.call(arguments,1),H=this;G=!E&&F.length?B.extend.apply(null,[true,G].concat(F)):G;if(E&&G.substring(0,1)==="_"){return H;}if(E){this.each(function(){var I=B.data(this,D),J=I&&B.isFunction(I[G])?I[G].apply(I,F):I;if(J!==I&&J!==undefined){H=J;return false;}});}else{this.each(function(){var I=B.data(this,D);if(I){if(G){I.option(G);}I._init();}else{B.data(this,D,new C(G,this));}});}return H;};};B.Widget=function(C,D){if(arguments.length){this._createWidget(C,D);}};B.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(D,E){this.element=B(E).data(this.widgetName,this);this.options=B.extend(true,{},this.options,B.metadata&&B.metadata.get(E)[this.widgetName],D);var C=this;this.element.bind("remove."+this.widgetName,function(){C.destroy();});this._create();this._init();},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled");},widget:function(){return this.element;},option:function(E,F){var D=E,C=this;if(arguments.length===0){return B.extend({},C.options);}if(typeof E==="string"){if(F===undefined){return this.options[E];}D={};D[E]=F;}B.each(D,function(G,H){C._setOption(G,H);});return C;},_setOption:function(C,D){this.options[C]=D;if(C==="disabled"){this.widget()[D?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",D);}return this;},enable:function(){return this._setOption("disabled",false);},disable:function(){return this._setOption("disabled",true);},_trigger:function(D,E,F){var H=this.options[D];E=B.Event(E);E.type=(D===this.widgetEventPrefix?D:this.widgetEventPrefix+D).toLowerCase();F=F||{};if(E.originalEvent){for(var C=B.event.props.length,G;C;){G=B.event.props[--C];E[G]=E.originalEvent[G];}}this.element.trigger(E,F);return !(B.isFunction(H)&&H.call(this.element[0],E,F)===false||E.isDefaultPrevented());}};})(jQuery);(function(D){var C=0,B=0;function E(){return ++C;}function A(){return ++B;}D.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'},_create:function(){this._tabify(true);},_setOption:function(F,G){if(F=="selected"){if(this.options.collapsible&&G==this.options.selected){return ;}this.select(G);}else{this.options[F]=G;this._tabify();}},_tabId:function(F){return F.title&&F.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+E();},_sanitizeSelector:function(F){return F.replace(/:/g,"\\:");},_cookie:function(){var F=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+A());return D.cookie.apply(null,[F].concat(D.makeArray(arguments)));},_ui:function(G,F){return{tab:G,panel:F,index:this.anchors.index(G)};},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var F=D(this);F.html(F.data("label.tabs")).removeData("label.tabs");});},_tabify:function(Q){this.list=this.element.find("ol,ul").eq(0);this.lis=D("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return D("a",this)[0];});this.panels=D([]);var R=this,H=this.options;var G=/^#.+/;this.anchors.each(function(U,S){var T=D(S).attr("href");var V=T.split("#")[0],W;if(V&&(V===location.toString().split("#")[0]||(W=D("base")[0])&&V===W.href)){T=S.hash;S.href=T;}if(G.test(T)){R.panels=R.panels.add(R._sanitizeSelector(T));}else{if(T!="#"){D.data(S,"href.tabs",T);D.data(S,"load.tabs",T.replace(/#.*$/,""));var Y=R._tabId(S);S.href="#"+Y;var X=D("#"+Y);if(!X.length){X=D(H.panelTemplate).attr("id",Y).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(R.panels[U-1]||R.list);X.data("destroy.tabs",true);}R.panels=R.panels.add(X);}else{H.disabled.push(U);}}});if(Q){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(H.selected===undefined){if(location.hash){this.anchors.each(function(T,S){if(S.hash==location.hash){H.selected=T;return false;}});}if(typeof H.selected!="number"&&H.cookie){H.selected=parseInt(R._cookie(),10);}if(typeof H.selected!="number"&&this.lis.filter(".ui-tabs-selected").length){H.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));}H.selected=H.selected||(this.lis.length?0:-1);}else{if(H.selected===null){H.selected=-1;}}H.selected=((H.selected>=0&&this.anchors[H.selected])||H.selected<0)?H.selected:0;H.disabled=D.unique(H.disabled.concat(D.map(this.lis.filter(".ui-state-disabled"),function(T,S){return R.lis.index(T);}))).sort();if(D.inArray(H.selected,H.disabled)!=-1){H.disabled.splice(D.inArray(H.selected,H.disabled),1);}this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(H.selected>=0&&this.anchors.length){this.panels.eq(H.selected).removeClass("ui-tabs-hide");this.lis.eq(H.selected).addClass("ui-tabs-selected ui-state-active");R.element.queue("tabs",function(){R._trigger("show",null,R._ui(R.anchors[H.selected],R.panels[H.selected]));});this.load(H.selected);}D(window).bind("unload",function(){R.lis.add(R.anchors).unbind(".tabs");R.lis=R.anchors=R.panels=null;});}else{H.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));}this.element[H.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");if(H.cookie){this._cookie(H.selected,H.cookie);}for(var K=0,P;(P=this.lis[K]);K++){D(P)[D.inArray(K,H.disabled)!=-1&&!D(P).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");}if(H.cache===false){this.anchors.removeData("cache.tabs");}this.lis.add(this.anchors).unbind(".tabs");if(H.event!="mouseover"){var J=function(T,S){if(S.is(":not(.ui-state-disabled)")){S.addClass("ui-state-"+T);}};var M=function(T,S){S.removeClass("ui-state-"+T);};this.lis.bind("mouseover.tabs",function(){J("hover",D(this));});this.lis.bind("mouseout.tabs",function(){M("hover",D(this));});this.anchors.bind("focus.tabs",function(){J("focus",D(this).closest("li"));});this.anchors.bind("blur.tabs",function(){M("focus",D(this).closest("li"));});}var F,L;if(H.fx){if(D.isArray(H.fx)){F=H.fx[0];L=H.fx[1];}else{F=L=H.fx;}}function I(S,T){S.css({display:""});if(!D.support.opacity&&T.opacity){S[0].style.removeAttribute("filter");}}var N=L?function(S,T){D(S).closest("li").addClass("ui-tabs-selected ui-state-active");T.hide().removeClass("ui-tabs-hide").animate(L,L.duration||"normal",function(){I(T,L);R._trigger("show",null,R._ui(S,T[0]));});}:function(S,T){D(S).closest("li").addClass("ui-tabs-selected ui-state-active");T.removeClass("ui-tabs-hide");R._trigger("show",null,R._ui(S,T[0]));};var O=F?function(T,S){S.animate(F,F.duration||"normal",function(){R.lis.removeClass("ui-tabs-selected ui-state-active");S.addClass("ui-tabs-hide");I(S,F);R.element.dequeue("tabs");});}:function(T,S,U){R.lis.removeClass("ui-tabs-selected ui-state-active");S.addClass("ui-tabs-hide");R.element.dequeue("tabs");};this.anchors.bind(H.event+".tabs",function(){var T=this,V=D(this).closest("li"),S=R.panels.filter(":not(.ui-tabs-hide)"),U=D(R._sanitizeSelector(this.hash));if((V.hasClass("ui-tabs-selected")&&!H.collapsible)||V.hasClass("ui-state-disabled")||V.hasClass("ui-state-processing")||R._trigger("select",null,R._ui(this,U[0]))===false){this.blur();return false;}H.selected=R.anchors.index(this);R.abort();if(H.collapsible){if(V.hasClass("ui-tabs-selected")){H.selected=-1;if(H.cookie){R._cookie(H.selected,H.cookie);}R.element.queue("tabs",function(){O(T,S);}).dequeue("tabs");this.blur();return false;}else{if(!S.length){if(H.cookie){R._cookie(H.selected,H.cookie);}R.element.queue("tabs",function(){N(T,U);});R.load(R.anchors.index(this));this.blur();return false;}}}if(H.cookie){R._cookie(H.selected,H.cookie);}if(U.length){if(S.length){R.element.queue("tabs",function(){O(T,S);});}R.element.queue("tabs",function(){N(T,U);});R.load(R.anchors.index(this));}else{throw"jQuery UI Tabs: Mismatching fragment identifier.";}if(D.browser.msie){this.blur();}});this.anchors.bind("click.tabs",function(){return false;});},destroy:function(){var F=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var G=D.data(this,"href.tabs");if(G){this.href=G;}var H=D(this).unbind(".tabs");D.each(["href","load","cache"],function(I,J){H.removeData(J+".tabs");});});this.lis.unbind(".tabs").add(this.panels).each(function(){if(D.data(this,"destroy.tabs")){D(this).remove();}else{D(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "));}});if(F.cookie){this._cookie(null,F.cookie);}return this;},add:function(I,H,G){if(G===undefined){G=this.anchors.length;}var F=this,K=this.options,M=D(K.tabTemplate.replace(/#\{href\}/g,I).replace(/#\{label\}/g,H)),L=!I.indexOf("#")?I.replace("#",""):this._tabId(D("a",M)[0]);M.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var J=D("#"+L);if(!J.length){J=D(K.panelTemplate).attr("id",L).data("destroy.tabs",true);}J.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(G>=this.lis.length){M.appendTo(this.list);J.appendTo(this.list[0].parentNode);}else{M.insertBefore(this.lis[G]);J.insertBefore(this.panels[G]);}K.disabled=D.map(K.disabled,function(O,N){return O>=G?++O:O;});this._tabify();if(this.anchors.length==1){K.selected=0;M.addClass("ui-tabs-selected ui-state-active");J.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){F._trigger("show",null,F._ui(F.anchors[0],F.panels[0]));});this.load(0);}this._trigger("add",null,this._ui(this.anchors[G],this.panels[G]));return this;},remove:function(F){var H=this.options,I=this.lis.eq(F).remove(),G=this.panels.eq(F).remove();if(I.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(F+(F+1<this.anchors.length?1:-1));}H.disabled=D.map(D.grep(H.disabled,function(K,J){return K!=F;}),function(K,J){return K>=F?--K:K;});this._tabify();this._trigger("remove",null,this._ui(I.find("a")[0],G[0]));return this;},enable:function(F){var G=this.options;if(D.inArray(F,G.disabled)==-1){return ;}this.lis.eq(F).removeClass("ui-state-disabled");G.disabled=D.grep(G.disabled,function(I,H){return I!=F;});this._trigger("enable",null,this._ui(this.anchors[F],this.panels[F]));return this;},disable:function(G){var F=this,H=this.options;if(G!=H.selected){this.lis.eq(G).addClass("ui-state-disabled");H.disabled.push(G);H.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[G],this.panels[G]));}return this;},select:function(F){if(typeof F=="string"){F=this.anchors.index(this.anchors.filter("[href$="+F+"]"));}else{if(F===null){F=-1;}}if(F==-1&&this.options.collapsible){F=this.options.selected;}this.anchors.eq(F).trigger(this.options.event+".tabs");return this;},load:function(I){var G=this,K=this.options,F=this.anchors.eq(I)[0],H=D.data(F,"load.tabs");this.abort();if(!H||this.element.queue("tabs").length!==0&&D.data(F,"cache.tabs")){this.element.dequeue("tabs");return ;}this.lis.eq(I).addClass("ui-state-processing");if(K.spinner){var J=D("span",F);J.data("label.tabs",J.html()).html(K.spinner);}this.xhr=D.ajax(D.extend({},K.ajaxOptions,{url:H,success:function(M,L){D(G._sanitizeSelector(F.hash)).html(M);G._cleanup();if(K.cache){D.data(F,"cache.tabs",true);}G._trigger("load",null,G._ui(G.anchors[I],G.panels[I]));try{K.ajaxOptions.success(M,L);}catch(N){}},error:function(N,L,M){G._cleanup();G._trigger("load",null,G._ui(G.anchors[I],G.panels[I]));try{K.ajaxOptions.error(N,L,I,F);}catch(M){}}}));G.element.dequeue("tabs");return this;},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr;}this._cleanup();return this;},url:function(G,F){this.anchors.eq(G).removeData("cache.tabs").data("load.tabs",F);return this;},length:function(){return this.anchors.length;}});D.extend(D.ui.tabs,{version:"1.8.2"});D.extend(D.ui.tabs.prototype,{rotation:null,rotate:function(H,J){var F=this,K=this.options;var G=F._rotate||(F._rotate=function(L){clearTimeout(F.rotation);F.rotation=setTimeout(function(){var M=K.selected;F.select(++M<F.anchors.length?M:0);},H);if(L){L.stopPropagation();}});var I=F._unrotate||(F._unrotate=!J?function(L){if(L.clientX){F.rotate(null);}}:function(L){t=K.selected;G();});if(H){this.element.bind("tabsshow",G);this.anchors.bind(K.event+".tabs",I);G();}else{clearTimeout(F.rotation);this.element.unbind("tabsshow",G);this.anchors.unbind(K.event+".tabs",I);delete this._rotate;delete this._unrotate;}return this;}});})(jQuery);(function(A){A.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase();}},_create:function(){var D=this.options,B=this;this.running=0;this.element.addClass("ui-accordion ui-widget ui-helper-reset");this.element.children("li").addClass("ui-accordion-li-fix");this.headers=this.element.find(D.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){A(this).addClass("ui-state-hover");}).bind("mouseleave.accordion",function(){A(this).removeClass("ui-state-hover");}).bind("focus.accordion",function(){A(this).addClass("ui-state-focus");}).bind("blur.accordion",function(){A(this).removeClass("ui-state-focus");});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(D.navigation){var C=this.element.find("a").filter(D.navigationFilter);if(C.length){var E=C.closest(".ui-accordion-header");if(E.length){this.active=E;}else{this.active=C.closest(".ui-accordion-content").prev();}}}this.active=this._findActive(this.active||D.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");this._createIcons();this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(F){return B._keydown(F);}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex","0");}else{this.active.attr("aria-expanded","true").attr("tabIndex","0");}if(!A.browser.safari){this.headers.find("a").attr("tabIndex","-1");}if(D.event){this.headers.bind((D.event)+".accordion",function(F){B._clickHandler.call(B,F,this);F.preventDefault();});}},_createIcons:function(){var B=this.options;if(B.icons){A("<span/>").addClass("ui-icon "+B.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(B.icons.header).toggleClass(B.icons.headerSelected);this.element.addClass("ui-accordion-icons");}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons");},destroy:function(){var C=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var B=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(C.autoHeight||C.fillHeight){B.css("height","");}return this;},_setOption:function(B,C){A.Widget.prototype._setOption.apply(this,arguments);if(B=="active"){this.activate(C);}if(B=="icons"){this._destroyIcons();if(C){this._createIcons();}}},_keydown:function(E){var G=this.options,F=A.ui.keyCode;if(G.disabled||E.altKey||E.ctrlKey){return ;}var D=this.headers.length;var B=this.headers.index(E.target);var C=false;switch(E.keyCode){case F.RIGHT:case F.DOWN:C=this.headers[(B+1)%D];break;case F.LEFT:case F.UP:C=this.headers[(B-1+D)%D];break;case F.SPACE:case F.ENTER:this._clickHandler({target:E.target},E.target);E.preventDefault();}if(C){A(E.target).attr("tabIndex","-1");A(C).attr("tabIndex","0");C.focus();return false;}return true;},resize:function(){var D=this.options,C;if(D.fillSpace){if(A.browser.msie){var B=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden");}C=this.element.parent().height();if(A.browser.msie){this.element.parent().css("overflow",B);}this.headers.each(function(){C-=A(this).outerHeight(true);});this.headers.next().each(function(){A(this).height(Math.max(0,C-A(this).innerHeight()+A(this).height()));}).css("overflow","auto");}else{if(D.autoHeight){C=0;this.headers.next().each(function(){C=Math.max(C,A(this).height());}).height(C);}}return this;},activate:function(B){this.options.active=B;var C=this._findActive(B)[0];this._clickHandler({target:C},C);return this;},_findActive:function(B){return B?typeof B=="number"?this.headers.filter(":eq("+B+")"):this.headers.not(this.headers.not(B)):B===false?A([]):this.headers.filter(":eq(0)");},_clickHandler:function(B,F){var D=this.options;if(D.disabled){return ;}if(!B.target){if(!D.collapsible){return ;}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(D.icons.headerSelected).addClass(D.icons.header);this.active.next().addClass("ui-accordion-content-active");var H=this.active.next(),E={options:D,newHeader:A([]),oldHeader:D.active,newContent:A([]),oldContent:H},C=(this.active=A([]));this._toggle(C,H,E);return ;}var G=A(B.currentTarget||F);var I=G[0]==this.active[0];D.active=D.collapsible&&I?false:A(".ui-accordion-header",this.element).index(G);if(this.running||(!D.collapsible&&I)){return ;}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(D.icons.headerSelected).addClass(D.icons.header);if(!I){G.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(D.icons.header).addClass(D.icons.headerSelected);G.next().addClass("ui-accordion-content-active");}var C=G.next(),H=this.active.next(),E={options:D,newHeader:I&&D.collapsible?A([]):G,oldHeader:this.active,newContent:I&&D.collapsible?A([]):C,oldContent:H},J=this.headers.index(this.active[0])>this.headers.index(G[0]);this.active=I?A([]):G;this._toggle(C,H,E,I,J);return ;},_toggle:function(B,I,G,J,K){var D=this.options,M=this;this.toShow=B;this.toHide=I;this.data=G;var C=function(){if(!M){return ;}return M._completed.apply(M,arguments);};this._trigger("changestart",null,this.data);this.running=I.size()===0?B.size():I.size();if(D.animated){var F={};if(D.collapsible&&J){F={toShow:A([]),toHide:I,complete:C,down:K,autoHeight:D.autoHeight||D.fillSpace};}else{F={toShow:B,toHide:I,complete:C,down:K,autoHeight:D.autoHeight||D.fillSpace};}if(!D.proxied){D.proxied=D.animated;}if(!D.proxiedDuration){D.proxiedDuration=D.duration;}D.animated=A.isFunction(D.proxied)?D.proxied(F):D.proxied;D.duration=A.isFunction(D.proxiedDuration)?D.proxiedDuration(F):D.proxiedDuration;var L=A.ui.accordion.animations,E=D.duration,H=D.animated;if(H&&!L[H]&&!A.easing[H]){H="slide";}if(!L[H]){L[H]=function(N){this.slide(N,{easing:H,duration:E||700});};}L[H](F);}else{if(D.collapsible&&J){B.toggle();}else{I.hide();B.show();}C(true);}I.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();B.prev().attr("aria-expanded","true").attr("tabIndex","0").focus();},_completed:function(B){var C=this.options;this.running=B?0:--this.running;if(this.running){return ;}if(C.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""});}this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data);}});A.extend(A.ui.accordion,{version:"1.8.2",animations:{slide:function(J,H){J=A.extend({easing:"swing",duration:300},J,H);if(!J.toHide.size()){J.toShow.animate({height:"show"},J);return ;}if(!J.toShow.size()){J.toHide.animate({height:"hide"},J);return ;}var C=J.toShow.css("overflow"),G=0,D={},F={},E=["height","paddingTop","paddingBottom"],B;var I=J.toShow;B=I[0].style.width;I.width(parseInt(I.parent().width(),10)-parseInt(I.css("paddingLeft"),10)-parseInt(I.css("paddingRight"),10)-(parseInt(I.css("borderLeftWidth"),10)||0)-(parseInt(I.css("borderRightWidth"),10)||0));A.each(E,function(K,M){F[M]="hide";var L=(""+A.css(J.toShow[0],M)).match(/^([\d+-.]+)(.*)$/);D[M]={value:L[1],unit:L[2]||"px"};});J.toShow.css({height:0,overflow:"hidden"}).show();J.toHide.filter(":hidden").each(J.complete).end().filter(":visible").animate(F,{step:function(K,L){if(L.prop=="height"){G=(L.end-L.start===0)?0:(L.now-L.start)/(L.end-L.start);}J.toShow[0].style[L.prop]=(G*D[L.prop].value)+D[L.prop].unit;},duration:J.duration,easing:J.easing,complete:function(){if(!J.autoHeight){J.toShow.css("height","");}J.toShow.css("width",B);J.toShow.css({overflow:C});J.complete();}});},bounceslide:function(B){this.slide(B,{easing:B.down?"easeOutBounce":"swing",duration:B.down?1000:200});}}});})(jQuery);/*
 * JavaScript Debug - v0.4 - 6/22/2010
 * http://benalman.com/projects/javascript-debug-console-log/
 * 
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 * 
 * With lots of help from Paul Irish!
 * http://paulirish.com/
 */
window.debug=(function(){var I=this,B=Array.prototype.slice,D=I.console,H={},F,G,M=9,C=["error","warn","info","debug","log"],L="assert clear count dir dirxml exception group groupCollapsed groupEnd profile profileEnd table time timeEnd trace".split(" "),J=L.length,A=[];while(--J>=0){(function(N){H[N]=function(){M!==0&&D&&D[N]&&D[N].apply(D,arguments);};})(L[J]);}J=C.length;while(--J>=0){(function(N,O){H[O]=function(){var Q=B.call(arguments),P=[O].concat(Q);A.push(P);E(P);if(!D||!K(N)){return ;}D.firebug?D[O].apply(I,Q):D[O]?D[O](Q):D.log(Q);};})(J,C[J]);}function E(N){if(F&&(G||!D||!D.log)){F.apply(I,N);}}H.setLevel=function(N){M=typeof N==="number"?N:9;};function K(N){return M>0?M>N:C.length+M<=N;}H.setCallback=function(){var O=B.call(arguments),N=A.length,P=N;F=O.shift()||null;G=typeof O[0]==="boolean"?O.shift():false;P-=typeof O[0]==="number"?O.shift():N;while(P<N){E(A[P++]);}};return H;})();window.espn=window.espn||{};espn.l10n={lang:"en",siteId:1,dayNamesLong:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),dayNamesMedium:"Sun Mon Tue Wed Thu Fri Sat".split(" "),dayNamesShort:"Su Mo Tu We Th Fr Sa".split(" "),monthNamesLong:"January February March April May June July August September October November December".split(" "),monthNamesShort:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),headlines:{edit:'<a href="http://espn.go.com/personalization/">Edit myHeadlines &#187;</a>',setup:'<p><a href="http://espn.go.com/personalization/">Set up</a> your preferences and get news delivered about your favorite sports, teams and players.</p>',signin:"<p>Sign in above to set up your preferences and get news delivered about your favorite sports, teams and players.</p>",error:"<p>We could not retrieve your personalized options at this time. Please try again later.</p>",noHeadlines:'<p id="myheadlines">There are no headlines currently for this topic. Please try another topic.</p>',sysError:'<p id="myheadlines">We could not retrieve your headlines at this time. Please try again later.</p>',composerURI:"/composer/cached/tea/myheadlines"},megadropdown:{allMenusUrl:"http://sports-ak.espn.go.com/espn/mega/allMenus",allMenusSecureUrl:"/espn/mega/allMenus",menuUrl:"http://sports-ak.espn.go.com/espn/mega/menuJSON",menuSecureUrl:"/espn/mega/menuJSON"},video:{tsOverlayURI:"/video/overlay"},myEspnText:{imgRef:"https://a248.e.akamai.net/f/12/621/5m/proxy.espn.go.com/prod",urlPrefix:"https://r.espn.go.com",isProd:"true",language:"en",welcometext:"Welcome",register:"Register",myespntext:"myESPN",signin:"Sign In",signout:"Sign Out",heliumdown:"Login Temporarily Unavailable",myespnerrortext1:"We're sorry, an error has occurred during your request.",myespnerrortext2:"Please sign in on our",myespnerrortext3:"login page",mserrortext2:"We apologize for the inconvenience.",viewall:"View All",addlc:"Add",sportstext:"Sports",teamstext:"Teams",playerstext:"Players",columniststext:"Columnists",joininsider:"Join Insider",activate:"Activate",activateinsider:"Activate Insider",freemembership:"Free Membership",freefantasy:"Free Fantasy Football",playfantasy:"Play Fantasy Football",followyoursports:"Follow Your Sports",personalizenow:"Personalize Now",connectedfacebook:"Connected to Facebook",connectfacebook:"Connect with Facebook"}};var swfobject=function(){var AQ="undefined",Ac="object",AB="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",Ad="application/x-shockwave-flash",AC="SWFObjectExprInst",AW="onreadystatechange",AF=window,Ak=document,Aa=navigator,AA=false,Z=[Am],Af=[],AG=[],AL=[],Ai,AD,AP,AS,AK=false,At=false,Ag,AN,Ah=true,AH=function(){var A=typeof Ak.getElementById!=AQ&&typeof Ak.getElementsByTagName!=AQ&&typeof Ak.createElement!=AQ,E=Aa.userAgent.toLowerCase(),C=Aa.platform.toLowerCase(),H=C?/win/.test(C):/win/.test(E),J=C?/mac/.test(C):/mac/.test(E),G=/webkit/.test(E)?parseFloat(E.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,D=!+"\v1",F=[0,0,0],K=null;if(typeof Aa.plugins!=AQ&&typeof Aa.plugins[AB]==Ac){K=Aa.plugins[AB].description;if(K&&!(typeof Aa.mimeTypes!=AQ&&Aa.mimeTypes[Ad]&&!Aa.mimeTypes[Ad].enabledPlugin)){AA=true;D=false;K=K.replace(/^.*\s+(\S+\s+\S+$)/,"$1");F[0]=parseInt(K.replace(/^(.*)\..*$/,"$1"),10);F[1]=parseInt(K.replace(/^.*\.(.*)\s.*$/,"$1"),10);F[2]=/[a-zA-Z]/.test(K)?parseInt(K.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0;}}else{if(typeof AF.ActiveXObject!=AQ){try{var I=new ActiveXObject(X);if(I){K=I.GetVariable("$version");if(K){D=true;K=K.split(" ")[1].split(",");F=[parseInt(K[0],10),parseInt(K[1],10),parseInt(K[2],10)];}}}catch(B){}}}return{w3:A,pv:F,wk:G,ie:D,win:H,mac:J};}(),Aj=function(){if(!AH.w3){return ;}if((typeof Ak.readyState!=AQ&&Ak.readyState=="complete")||(typeof Ak.readyState==AQ&&(Ak.getElementsByTagName("body")[0]||Ak.body))){Ao();}if(!AK){if(typeof Ak.addEventListener!=AQ){Ak.addEventListener("DOMContentLoaded",Ao,false);}if(AH.ie&&AH.win){Ak.attachEvent(AW,function(){if(Ak.readyState=="complete"){Ak.detachEvent(AW,arguments.callee);Ao();}});if(AF==top){(function(){if(AK){return ;}try{Ak.documentElement.doScroll("left");}catch(A){setTimeout(arguments.callee,0);return ;}Ao();})();}}if(AH.wk){(function(){if(AK){return ;}if(!/loaded|complete/.test(Ak.readyState)){setTimeout(arguments.callee,0);return ;}Ao();})();}Ab(Ao);}}();function Ao(){if(AK){return ;}try{var B=Ak.getElementsByTagName("body")[0].appendChild(AR("span"));B.parentNode.removeChild(B);}catch(A){return ;}AK=true;var D=Z.length;for(var C=0;C<D;C++){Z[C]();}}function AJ(A){if(AK){A();}else{Z[Z.length]=A;}}function Ab(A){if(typeof AF.addEventListener!=AQ){AF.addEventListener("load",A,false);}else{if(typeof Ak.addEventListener!=AQ){Ak.addEventListener("load",A,false);}else{if(typeof AF.attachEvent!=AQ){Al(AF,"onload",A);}else{if(typeof AF.onload=="function"){var B=AF.onload;AF.onload=function(){B();A();};}else{AF.onload=A;}}}}}function Am(){if(AA){Y();}else{AM();}}function Y(){var D=Ak.getElementsByTagName("body")[0];var B=AR(Ac);B.setAttribute("type",Ad);var A=D.appendChild(B);if(A){var C=0;(function(){if(typeof A.GetVariable!=AQ){var E=A.GetVariable("$version");if(E){E=E.split(" ")[1].split(",");AH.pv=[parseInt(E[0],10),parseInt(E[1],10),parseInt(E[2],10)];}}else{if(C<10){C++;setTimeout(arguments.callee,10);return ;}}D.removeChild(B);A=null;AM();})();}else{AM();}}function AM(){var G=Af.length;if(G>0){for(var H=0;H<G;H++){var C=Af[H].id;var L=Af[H].callbackFn;var A={success:false,id:C};if(AH.pv[0]>0){var I=Ar(C);if(I){if(AO(Af[H].swfVersion)&&!(AH.wk&&AH.wk<312)){AX(C,true);if(L){A.success=true;A.ref=AU(C);L(A);}}else{if(Af[H].expressInstall&&AT()){var E={};E.data=Af[H].expressInstall;E.width=I.getAttribute("width")||"0";E.height=I.getAttribute("height")||"0";if(I.getAttribute("class")){E.styleclass=I.getAttribute("class");}if(I.getAttribute("align")){E.align=I.getAttribute("align");}var F={};var D=I.getElementsByTagName("param");var K=D.length;for(var J=0;J<K;J++){if(D[J].getAttribute("name").toLowerCase()!="movie"){F[D[J].getAttribute("name")]=D[J].getAttribute("value");}}AE(E,F,C,L);}else{Ae(I);if(L){L(A);}}}}}else{AX(C,true);if(L){var B=AU(C);if(B&&typeof B.SetVariable!=AQ){A.success=true;A.ref=B;}L(A);}}}}}function AU(B){var D=null;var C=Ar(B);if(C&&C.nodeName=="OBJECT"){if(typeof C.SetVariable!=AQ){D=C;}else{var A=C.getElementsByTagName(Ac)[0];if(A){D=A;}}}return D;}function AT(){return !At&&AO("6.0.65")&&(AH.win||AH.mac)&&!(AH.wk&&AH.wk<312);}function AE(F,D,H,E){At=true;AP=E||null;AS={success:false,id:H};var A=Ar(H);if(A){if(A.nodeName=="OBJECT"){Ai=An(A);AD=null;}else{Ai=A;AD=H;}F.id=AC;if(typeof F.width==AQ||(!/%$/.test(F.width)&&parseInt(F.width,10)<310)){F.width="310";}if(typeof F.height==AQ||(!/%$/.test(F.height)&&parseInt(F.height,10)<137)){F.height="137";}Ak.title=Ak.title.slice(0,47)+" - Flash Player Installation";var B=AH.ie&&AH.win?"ActiveX":"PlugIn",C="MMredirectURL="+AF.location.toString().replace(/&/g,"%26")+"&MMplayerType="+B+"&MMdoctitle="+Ak.title;if(typeof D.flashvars!=AQ){D.flashvars+="&"+C;}else{D.flashvars=C;}if(AH.ie&&AH.win&&A.readyState!=4){var G=AR("div");H+="SWFObjectNew";G.setAttribute("id",H);A.parentNode.insertBefore(G,A);A.style.display="none";(function(){if(A.readyState==4){A.parentNode.removeChild(A);}else{setTimeout(arguments.callee,10);}})();}AZ(F,D,H);}}function Ae(A){if(AH.ie&&AH.win&&A.readyState!=4){var B=AR("div");A.parentNode.insertBefore(B,A);B.parentNode.replaceChild(An(A),B);A.style.display="none";(function(){if(A.readyState==4){A.parentNode.removeChild(A);}else{setTimeout(arguments.callee,10);}})();}else{A.parentNode.replaceChild(An(A),A);}}function An(B){var D=AR("div");if(AH.win&&AH.ie){D.innerHTML=B.innerHTML;}else{var E=B.getElementsByTagName(Ac)[0];if(E){var A=E.childNodes;if(A){var F=A.length;for(var C=0;C<F;C++){if(!(A[C].nodeType==1&&A[C].nodeName=="PARAM")&&!(A[C].nodeType==8)){D.appendChild(A[C].cloneNode(true));}}}}}return D;}function AZ(E,G,C){var D,A=Ar(C);if(AH.wk&&AH.wk<312){return D;}if(A){if(typeof E.id==AQ){E.id=C;}if(AH.ie&&AH.win){var F="";for(var I in E){if(E[I]!=Object.prototype[I]){if(I.toLowerCase()=="data"){G.movie=E[I];}else{if(I.toLowerCase()=="styleclass"){F+=' class="'+E[I]+'"';}else{if(I.toLowerCase()!="classid"){F+=" "+I+'="'+E[I]+'"';}}}}}var H="";for(var J in G){if(G[J]!=Object.prototype[J]){H+='<param name="'+J+'" value="'+G[J]+'" />';}}A.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+F+">"+H+"</object>";AG[AG.length]=E.id;D=Ar(E.id);}else{var B=AR(Ac);B.setAttribute("type",Ad);for(var K in E){if(E[K]!=Object.prototype[K]){if(K.toLowerCase()=="styleclass"){B.setAttribute("class",E[K]);}else{if(K.toLowerCase()!="classid"){B.setAttribute(K,E[K]);}}}}for(var L in G){if(G[L]!=Object.prototype[L]&&L.toLowerCase()!="movie"){Ap(B,L,G[L]);}}A.parentNode.replaceChild(B,A);D=B;}}return D;}function Ap(B,D,C){var A=AR("param");A.setAttribute("name",D);A.setAttribute("value",C);B.appendChild(A);}function AV(A){var B=Ar(A);if(B&&B.nodeName=="OBJECT"){if(AH.ie&&AH.win){B.style.display="none";(function(){if(B.readyState==4){As(A);}else{setTimeout(arguments.callee,10);}})();}else{B.parentNode.removeChild(B);}}}function As(A){var B=Ar(A);if(B){for(var C in B){if(typeof B[C]=="function"){B[C]=null;}}B.parentNode.removeChild(B);}}function Ar(A){var C=null;try{C=Ak.getElementById(A);}catch(B){}return C;}function AR(A){return Ak.createElement(A);}function Al(A,C,B){A.attachEvent(C,B);AL[AL.length]=[A,C,B];}function AO(A){var B=AH.pv,C=A.split(".");C[0]=parseInt(C[0],10);C[1]=parseInt(C[1],10)||0;C[2]=parseInt(C[2],10)||0;return(B[0]>C[0]||(B[0]==C[0]&&B[1]>C[1])||(B[0]==C[0]&&B[1]==C[1]&&B[2]>=C[2]))?true:false;}function AY(B,F,A,C){if(AH.ie&&AH.mac){return ;}var E=Ak.getElementsByTagName("head")[0];if(!E){return ;}var G=(A&&typeof A=="string")?A:"screen";if(C){Ag=null;AN=null;}if(!Ag||AN!=G){var D=AR("style");D.setAttribute("type","text/css");D.setAttribute("media",G);Ag=E.appendChild(D);if(AH.ie&&AH.win&&typeof Ak.styleSheets!=AQ&&Ak.styleSheets.length>0){Ag=Ak.styleSheets[Ak.styleSheets.length-1];}AN=G;}if(AH.ie&&AH.win){if(Ag&&typeof Ag.addRule==Ac){Ag.addRule(B,F);}}else{if(Ag&&typeof Ak.createTextNode!=AQ){Ag.appendChild(Ak.createTextNode(B+" {"+F+"}"));}}}function AX(A,C){if(!Ah){return ;}var B=C?"visible":"hidden";if(AK&&Ar(A)){Ar(A).style.visibility=B;}else{AY("#"+A,"visibility:"+B);}}function AI(B){var A=/[\\\"<>\.;]/;var C=A.exec(B)!=null;return C&&typeof encodeURIComponent!=AQ?encodeURIComponent(B):B;}var Aq=function(){if(AH.ie&&AH.win){window.attachEvent("onunload",function(){var A=AL.length;for(var B=0;B<A;B++){AL[B][0].detachEvent(AL[B][1],AL[B][2]);}var D=AG.length;for(var C=0;C<D;C++){AV(AG[C]);}for(var E in AH){AH[E]=null;}AH=null;for(var F in swfobject){swfobject[F]=null;}swfobject=null;});}}();return{registerObject:function(A,E,C,B){if(AH.w3&&A&&E){var D={};D.id=A;D.swfVersion=E;D.expressInstall=C;D.callbackFn=B;Af[Af.length]=D;AX(A,false);}else{if(B){B({success:false,id:A});}}},getObjectById:function(A){if(AH.w3){return AU(A);}},embedSWF:function(K,E,H,F,C,A,B,I,G,J){var D={success:false,id:E};if(AH.w3&&!(AH.wk&&AH.wk<312)&&K&&E&&H&&F&&C){AX(E,false);AJ(function(){H+="";F+="";var Q={};if(G&&typeof G===Ac){for(var O in G){Q[O]=G[O];}}Q.data=K;Q.width=H;Q.height=F;var N={};if(I&&typeof I===Ac){for(var P in I){N[P]=I[P];}}if(B&&typeof B===Ac){for(var L in B){if(typeof N.flashvars!=AQ){N.flashvars+="&"+L+"="+B[L];}else{N.flashvars=L+"="+B[L];}}}if(AO(C)){var M=AZ(Q,N,E);if(Q.id==E){AX(E,true);}D.success=true;D.ref=M;}else{if(A&&AT()){Q.data=A;AE(Q,N,E,J);return ;}else{AX(E,true);}}if(J){J(D);}});}else{if(J){J(D);}}},switchOffAutoHideShow:function(){Ah=false;},ua:AH,getFlashPlayerVersion:function(){return{major:AH.pv[0],minor:AH.pv[1],release:AH.pv[2]};},hasFlashPlayerVersion:AO,createSWF:function(A,B,C){if(AH.w3){return AZ(A,B,C);}else{return undefined;}},showExpressInstall:function(B,A,D,C){if(AH.w3&&AT()){AE(B,A,D,C);}},removeSWF:function(A){if(AH.w3){AV(A);}},createCSS:function(B,A,C,D){if(AH.w3){AY(B,A,C,D);}},addDomLoadEvent:AJ,addLoadEvent:Ab,getQueryParamValue:function(B){var A=Ak.location.search||Ak.location.hash;if(A){if(/\?/.test(A)){A=A.split("?")[1];}if(B==null){return AI(A);}var C=A.split("&");for(var D=0;D<C.length;D++){if(C[D].substring(0,C[D].indexOf("="))==B){return AI(C[D].substring((C[D].indexOf("=")+1)));}}}return"";},expressInstallCallback:function(){if(At){var A=Ar(AC);if(A&&Ai){A.parentNode.replaceChild(Ai,A);if(AD){AX(AD,true);if(AH.ie&&AH.win){Ai.style.display="block";}}if(AP){AP(AS);}}At=false;}}};}();(function(E,F,C){var J,H,I,N,M,D,G,B,K,L=("https:"===F.location.protocol)?"https://a248.e.akamai.net/f/12/621/5m/proxy.espn.go.com/prod/":"http://a.espncdn.com/prod/";if(!E.swfobject&&!E.__FLASH_JS_DONE__){E.__FLASH_JS_DONE__=false;I=F.createElement("script");I.type="text/javascript";I.async=true;I.src=L+"scripts/swfobject/2.2/swfobject.js";N=F.getElementsByTagName("script")[0];N.parentNode.insertBefore(I,N);(function D(){if(!!E.swfobject){E.__FLASH_JS_DONE__=true;}else{setTimeout(D,10);}})();}else{if(!!E.swfobject){E.__FLASH_JS_DONE__=true;}}function A(P){var U=arguments,Y=this,T,X,S,V,Q=null,O,R,W;Y.compiled=false;Y.src=C;(function T(){if(!!E.__FLASH_JS_DONE__){if(!E.swfobject.hasFlashPlayerVersion(""+Y.FlashVer)){if(Y.altTxt){W=Y.altTxt;}else{W="<IMG SRC="+Y.altImg+" WIDTH="+Y.width+" HEIGHT="+Y.height+" BORDER=0>";}O=F.createElement("DIV");O.setAttribute("id",R);O.innerHTML=W;if(Y._currentBlock&&Y._currentBlock.parentNode&&Y._currentBlock.parentNode.nodeName!=="HEAD"){Y._currentBlock.parentNode.insertBefore(O,Y._currentBlock);}else{F.getElementsByTagName("body")[0].appendChild(O);}return C;}S={flashVars:Y.flashVars,bgcolor:Y.bgcolor,wmode:Y.wmode,allowscriptaccess:Y.allowScriptAccess,allownetworking:Y.allowNetworking,quality:Y.quality,scale:Y.scale,align:Y.align,salign:Y.salign,swliveconnect:Y.LiveConnect,menu:Y.menu,play:Y.play,allowfullscreen:Y.allowfullscreen,seamlesstabbing:Y.seamlesstabbing,devicefont:Y.deviceFont};V={data:Y.flashFile,height:Y.height,width:Y.width,id:Y.ID};R="swfDiv"+ +new Date();O=F.createElement("DIV");O.setAttribute("id",R);if(Y.useDOM){F.getElementById(Y.targetElement).appendChild(O);}else{if(Y._currentBlock&&Y._currentBlock.parentNode&&Y._currentBlock.parentNode.nodeName!=="HEAD"){Y._currentBlock.parentNode.insertBefore(O,Y._currentBlock);}else{F.getElementsByTagName("body")[0].appendChild(O);}}G=F.getElementById(Y.ID);if(G&&P!==true){B="_____TEMP_SWF_REPLACEMENT_"+ +new Date+"_____";G.setAttribute("id",B);}Q=swfobject.createSWF(V,S,R);Y.compiled=true;if(P!==true){Y.src=Q;if(G){G.setAttribute("id",Y.ID);}swfobject.removeSWF(Y.ID);}}else{setTimeout(T,10);}})();if(P!==true){return Y;}return C;}E.____FLASH_RENDERER_____=A;if(!E.flashObj){E.flashObj=function(){var O=F.getElementsByTagName("script"),Q=O[O.length-1],P=this;J=+new Date();P._currentBlock=Q;P.play=true;P.flashFile="/flash/blank.swf";P.LiveConnect="FALSE";P.IEonly=null;P.wmode="opaque";P.redirect=null;P.DenyIEdl="FALSE";P.altImg="/blank.gif";P.bgcolor=null;P.altTxt=null;P.height="1";P.width="1";P.scale="exactfit";P.salign="lt";P.align="left";P.flashVars=null;P.ID="flash"+J;P.name="flash"+J;P.webTV="true";P.quality="best";P.menu="false";P.deviceFont="false";P.FlashVer=8;P.cabVersion="8,0,0,0";P.allowScriptAccess="Always";P.allowNetworking="All";P.useDOM=false;P.targetElement=null;P.render=A;P.allowfullscreen=true;P.seamlesstabbing=true;};}})(this,document);(function(b,p){var c={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,returnFocus:true,loop:true,loadPosition:"default",slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true},T="colorbox",m="cbox",o=m+"_open",E=m+"_load",n=m+"_complete",Q=m+"_cleanup",u=m+"_closed",I=m+"_purge",i=m+"_loaded",R=b.browser.msie&&!b.support.opacity,x=R&&b.browser.version<7,t=m+"_IE6",k,y,z,D,Z,M,B,j,C,s,f,J,H,L,P,q,O,l,V,AA,K,G,A,S,a,v,X,r,e=false,d,N=m+"Element";function h(AC,AB){AC=AC?' id="'+m+AC+'"':"";AB=AB?' style="'+AB+'"':"";return b("<div"+AC+AB+"/>");}function g(AB,AC){AC=AC==="x"?s.width():s.height();return(typeof AB==="string")?Math.round((/%/.test(AB)?(AC/100)*parseInt(AB,10):parseInt(AB,10))):AB;}function W(AB){return v.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(AB);}function w(AC){for(var AB in AC){if(b.isFunction(AC[AB])&&AB.substring(0,2)!=="on"){AC[AB]=AC[AB].call(S);}}AC.rel=AC.rel||S.rel||"nofollow";AC.href=AC.href||b(S).attr("href");AC.title=AC.title||S.title;return AC;}function Y(AB,AC){if(AC){AC.call(S);}b.event.trigger(AB);}function U(){var AC,AE=m+"Slideshow_",AF="click."+m,AG,AD,AB;if(v.slideshow&&C[1]){AG=function(){q.text(v.slideshowStop).unbind(AF).bind(n,function(){if(a<C.length-1||v.loop){AC=setTimeout(d.next,v.slideshowSpeed);}}).bind(E,function(){clearTimeout(AC);}).one(AF+" "+Q,AD);y.removeClass(AE+"off").addClass(AE+"on");AC=setTimeout(d.next,v.slideshowSpeed);};AD=function(){clearTimeout(AC);q.text(v.slideshowStart).unbind([n,E,Q,AF].join(" ")).one(AF,AG);y.removeClass(AE+"on").addClass(AE+"off");};if(v.slideshowAuto){AG();}else{AD();}}}function F(AB){if(!e){S=AB;v=w(b.extend({},b.data(S,T)));C=b(S);a=0;if(v.rel!=="nofollow"){C=b("."+N).filter(function(){var AD=b.data(this,T).rel||this.rel;return(AD===v.rel);});a=C.index(S);if(a===-1){C=C.add(S);a=C.length-1;}}if(!X){X=r=true;y.show();if(v.returnFocus){try{S.blur();b(S).one(u,function(){try{this.focus();}catch(AD){}});}catch(AC){}}k.css({opacity:+v.opacity,cursor:v.overlayClose?"pointer":"auto"}).show();v.w=g(v.initialWidth,"x");v.h=g(v.initialHeight,"y");d.position(0);if(x){s.bind("resize."+t+" scroll."+t,function(){k.css({width:s.width(),height:s.height(),top:s.scrollTop(),left:s.scrollLeft()});}).trigger("scroll."+t);}Y(o,v.onOpen);P.add(l).add(O).add(q).add(L).hide();V.html(v.close).show();}d.load(true);}}d=b.fn[T]=b[T]=function(AB,AE){var AC=this,AD;if(!AC[0]&&AC.selector){return AC;}AB=AB||{};if(AE){AB.onComplete=AE;}if(!AC[0]||AC.selector===undefined){AC=b("<a/>");AB.open=true;}AC.each(function(){b.data(this,T,b.extend({},b.data(this,T)||c,AB));b(this).addClass(N);});AD=AB.open;if(b.isFunction(AD)){AD=AD.call(AC);}if(AD){F(AC[0]);}return AC;};d.init=function(){s=b(p);y=h().attr({id:T,"class":R?m+"IE":""});k=h("Overlay",x?"position:absolute":"").hide();z=h("Wrapper");D=h("Content").append(f=h("LoadedContent","width:0; height:0; overflow:hidden"),H=h("LoadingOverlay").add(h("LoadingGraphic")),L=h("Title"),P=h("Current"),O=h("Next"),l=h("Previous"),q=h("Slideshow").bind(o,U),V=h("Close"));z.append(h().append(h("TopLeft"),Z=h("TopCenter"),h("TopRight")),h(false,"clear:left").append(M=h("MiddleLeft"),D,B=h("MiddleRight")),h(false,"clear:left").append(h("BottomLeft"),j=h("BottomCenter"),h("BottomRight"))).children().children().css({"float":"left"});J=h(false,"position:absolute; width:9999px; visibility:hidden; display:none");b("body").prepend(k,y.append(z,J));D.children().hover(function(){b(this).addClass("hover");},function(){b(this).removeClass("hover");}).addClass("hover");AA=Z.height()+j.height()+D.outerHeight(true)-D.height();K=M.width()+B.width()+D.outerWidth(true)-D.width();G=f.outerHeight(true);A=f.outerWidth(true);y.css({"padding-bottom":AA,"padding-right":K}).hide();O.click(d.next);l.click(d.prev);V.click(d.close);D.children().removeClass("hover");b("."+N).live("click",function(AB){if(!((AB.button!==0&&typeof AB.button!=="undefined")||AB.ctrlKey||AB.shiftKey||AB.altKey)){AB.preventDefault();F(this);}});k.click(function(){if(v.overlayClose){d.close();}});b(document).bind("keydown",function(AB){if(X&&v.escKey&&AB.keyCode===27){AB.preventDefault();d.close();}if(X&&v.arrowKey&&!r&&C[1]){if(AB.keyCode===37&&(a||v.loop)){AB.preventDefault();l.click();}else{if(AB.keyCode===39&&(a<C.length-1||v.loop)){AB.preventDefault();O.click();}}}});};d.remove=function(){y.add(k).remove();b("."+N).die("click").removeData(T).removeClass(N);};d.position=function(AF,AC){var AE,AD=Math.max(document.documentElement.clientHeight-v.h-G-AA,0)/2+s.scrollTop(),AB=Math.max(s.width()-v.w-A-K,0)/2+s.scrollLeft();if(v.loadPosition=="loadTop"){if(AD>s.scrollTop()+7){AD=s.scrollTop();}}AE=(y.width()===v.w+A&&y.height()===v.h+G)?0:AF;z[0].style.width=z[0].style.height="9999px";function AG(AH){Z[0].style.width=j[0].style.width=D[0].style.width=AH.style.width;H[0].style.height=H[1].style.height=D[0].style.height=M[0].style.height=B[0].style.height=AH.style.height;}y.dequeue().animate({width:v.w+A,height:v.h+G,top:AD,left:AB},{duration:AE,complete:function(){AG(this);r=false;z[0].style.width=(v.w+A+K)+"px";z[0].style.height=(v.h+G+AA)+"px";if(AC){AC();}},step:function(){AG(this);}});};d.resize=function(AB){if(X){AB=AB||{};if(AB.width){v.w=g(AB.width,"x")-A-K;}if(AB.innerWidth){v.w=g(AB.innerWidth,"x");}f.css({width:v.w});if(AB.height){v.h=g(AB.height,"y")-G-AA;}if(AB.innerHeight){v.h=g(AB.innerHeight,"y");}if(!AB.innerHeight&&!AB.height){var AC=f.wrapInner("<div style='overflow:auto'></div>").children();v.h=AC.height();AC.replaceWith(AC.children());}f.css({height:v.h});d.position(v.transition==="none"?0:v.speed);}};d.prep=function(AE){if(!X){return ;}var AD,AF=v.transition==="none"?0:v.speed;s.unbind("resize."+m);f.remove();f=h("LoadedContent").html(AE);function AB(){v.w=v.w||f.width();v.w=v.mw&&v.mw<v.w?v.mw:v.w;return v.w;}function AG(){v.h=v.h||f.height();v.h=v.mh&&v.mh<v.h?v.mh:v.h;return v.h;}f.hide().appendTo(J.show()).css({width:AB(),overflow:v.scrolling?"auto":"hidden"}).css({height:AG()}).prependTo(D);J.hide();b("#"+m+"Photo").css({cssFloat:"none",marginLeft:"auto",marginRight:"auto"});if(x){b("select").not(y.find("select")).filter(function(){return this.style.visibility!=="hidden";}).css({visibility:"hidden"}).one(Q,function(){this.style.visibility="inherit";});}function AC(AK){var AM,AN,AJ,AI,AL=C.length,AH=v.loop;d.position(AK,function(){function AO(){if(R){y[0].style.filter=false;}}if(!X){return ;}if(R){if(AD){f.fadeIn(100);}}f.show();Y(i);L.show().html(v.title);if(AL>1){if(typeof v.current==="string"){P.html(v.current.replace(/\{current\}/,a+1).replace(/\{total\}/,AL)).show();}O[(AH||a<AL-1)?"show":"hide"]().html(v.next);l[(AH||a)?"show":"hide"]().html(v.previous);AM=a?C[a-1]:C[AL-1];AJ=a<AL-1?C[a+1]:C[0];if(v.slideshow){q.show();}if(v.preloading){AI=b.data(AJ,T).href||AJ.href;AN=b.data(AM,T).href||AM.href;AI=b.isFunction(AI)?AI.call(AJ):AI;AN=b.isFunction(AN)?AN.call(AM):AN;if(W(AI)){b("<img/>")[0].src=AI;}if(W(AN)){b("<img/>")[0].src=AN;}}}H.hide();if(v.transition==="fade"){y.fadeTo(AF,1,function(){AO();});}else{AO();}s.bind("resize."+m,function(){d.position(0);});Y(n,v.onComplete);});}if(v.transition==="fade"){y.fadeTo(AF,0,function(){AC(0);});}else{AC(AF);}};d.load=function(AE){var AD,AC,AF,AB=d.prep;r=true;S=C[a];if(!AE){v=w(b.extend({},b.data(S,T)));}Y(I);Y(E,v.onLoad);v.h=v.height?g(v.height,"y")-G-AA:v.innerHeight&&g(v.innerHeight,"y");v.w=v.width?g(v.width,"x")-A-K:v.innerWidth&&g(v.innerWidth,"x");v.mw=v.w;v.mh=v.h;if(v.maxWidth){v.mw=g(v.maxWidth,"x")-A-K;v.mw=v.w&&v.w<v.mw?v.w:v.mw;}if(v.maxHeight){v.mh=g(v.maxHeight,"y")-G-AA;v.mh=v.h&&v.h<v.mh?v.h:v.mh;}AD=v.href;H.show();if(v.inline){h().hide().insertBefore(b(AD)[0]).one(I,function(){b(this).replaceWith(f.children());});AB(b(AD));}else{if(v.iframe){y.one(i,function(){var AG=b("<iframe name='"+new Date().getTime()+"' frameborder=0"+(v.scrolling?"":" scrolling='no'")+(R?" allowtransparency='true'":"")+" style='width:100%; height:100%; border:0; display:block;'/>");AG[0].src=v.href;AG.appendTo(f).one(I,function(){AG[0].src="//about:blank";});});AB(" ");}else{if(v.html){AB(v.html);}else{if(W(AD)){AC=new Image();AC.onload=function(){var AG;AC.onload=null;AC.id=m+"Photo";b(AC).css({border:"none",display:"block",cssFloat:"left"});if(v.scalePhotos){AF=function(){AC.height-=AC.height*AG;AC.width-=AC.width*AG;};if(v.mw&&AC.width>v.mw){AG=(AC.width-v.mw)/AC.width;AF();}if(v.mh&&AC.height>v.mh){AG=(AC.height-v.mh)/AC.height;AF();}}if(v.h){AC.style.marginTop=Math.max(v.h-AC.height,0)/2+"px";}if(C[1]&&(a<C.length-1||v.loop)){b(AC).css({cursor:"pointer"}).click(d.next);}if(R){AC.style.msInterpolationMode="bicubic";}setTimeout(function(){AB(AC);},1);};setTimeout(function(){AC.src=AD;},1);}else{if(AD){J.load(AD,function(AH,AG,AI){AB(AG==="error"?"Request unsuccessful: "+AI.statusText:b(this).children());});}}}}}};d.next=function(){if(!r){a=a<C.length-1?a+1:0;d.load();}};d.prev=function(){if(!r){a=a?a-1:C.length-1;d.load();}};d.close=function(){if(X&&!e){e=true;X=false;Y(Q,v.onCleanup);s.unbind("."+m+" ."+t);k.fadeTo("fast",0);y.stop().fadeTo("fast",0,function(){Y(I);f.remove();y.add(k).css({opacity:1,cursor:"auto"}).hide();setTimeout(function(){e=false;Y(u,v.onClosed);},1);});}};d.element=function(){return b(S);};d.settings=c;b(d.init);}(jQuery,this));/*
 * jQuery postMessage - v0.5 - 9/11/2009
 * http://benalman.com/projects/jquery-postmessage-plugin/
 * 
 * Copyright (c) 2009 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function($){var B,D,J=1,A,F=this,G=!1,H="postMessage",C="addEventListener",E,I=F[H]&&!$.browser.opera;$[H]=function(K,M,L){if(!M){return ;}K=typeof K==="string"?K:$.param(K);L=L||parent;if(I){L[H](K,M.replace(/([^:]+:\/\/[^\/]+).*/,"$1"));}else{if(M){L.location=M.replace(/#.*$/,"")+"#"+(+new Date)+(J++)+"&"+K;}}};$.receiveMessage=E=function(M,L,K){if(I){if(M){A&&E();A=function(N){if((typeof L==="string"&&N.origin!==L)||($.isFunction(L)&&L(N.origin)===G)){return G;}M(N);};}if(F[C]){F[M?C:"removeEventListener"]("message",A,G);}else{F[M?"attachEvent":"detachEvent"]("onmessage",A);}}else{B&&clearInterval(B);B=null;if(M){K=typeof L==="number"?L:typeof K==="number"?K:100;B=setInterval(function(){var O=document.location.hash,N=/^#?\d+&/;if(O!==D&&N.test(O)){D=O;M({data:O.replace(N,"")});}},K);}}};})(jQuery);(function(D,C,A,E){A.documentElement.className+=" js ";D.noConflict();try{A.execCommand("BackgroundImageCache",false,true);}catch(B){}D.ajaxSetup({data:{xhr:1},cache:true});D.support.touch=(typeof Touch=="object");D.support.WebKitCSSMatrix=(typeof WebKitCSSMatrix=="object");D.support.WebKitAnimationEvent=(typeof WebKitTransitionEvent=="object");C.newWin=function(H){var J="newWin",G="width=800,height=525,resizable=yes,scrollbars=yes,location=yes,status=yes,toolbar=yes,menubar=yes,directories=yes",I,F=C;if(H.indexOf("http")<0){H="http://games.espn.go.com"+H;}if(!I||I.closed){I=F.open(H,J,G);}else{I.focus();I=F.open(H,J,G);}};C.rIF=function(F){A.getElementById("spFrame").height=parseInt(F)+40;};C.gotosite=function(F){if(!!F){location.href=F;}};String.prototype.namespace=function(J){var H=this.split(J||"."),I=C,G,F;for(G=0,F=H.length;G<F;G++){I=I[H[G]]=I[H[G]]||{};}};String.prototype.repeat=function(F){return new Array(F+1).join(this);};String.prototype.escapeSingleQuotes=function(){return this.replace(/'/gmi,"\\'");};String.prototype.escapeDoubleQuotes=function(){return this.replace(/"/gmi,'\\"');};D.getScriptCache=function(F,G){D.ajax({url:F,cache:true,success:G,type:"GET",dataType:"script"});};D.parseUri=function(J){var I=D.parseUri.options,F=I.parser[I.strictMode?"strict":"loose"].exec(J),H={},G=14;while(G--){H[I.key[G]]=F[G]||"";}H[I.q.name]={};H[I.key[12]].replace(I.q.parser,function(L,K,M){if(K){H[I.q.name][K]=M;}});return H;};D.parseUri.options={strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};debug.setLevel(0);if(!!D.parseUri(C.location).queryKey.debug||!!D.parseUri(C.location).queryKey.development){debug.setLevel(5);}D.cookie=function(N,M,P){var J=D.extend({domain:".espn.go.com",path:"/",secure:C.location.protocol==="https:",expires:null},P),L,G,I,H,O=J.path!==null?"; path="+J.path:"",K=J.domain!==null?"; domain="+J.domain:"",F=J.path===true?"; secure=":"";if(typeof M==="undefined"){L=new RegExp("(^|;) ?"+N+"=([^;]+)(;|$)","g");G=L.exec(A.cookie);if(G!==null){return decodeURIComponent(G[2]);}return null;}if(J.expires!==null&&(typeof J.expires==="number"||J.expires.toUTCString)){if(typeof J.expires==="number"){I=new Date();I.setTime(I.getTime()+(J.expires*24*60*60*1000));}else{I=J.expires;}H="; expires="+I.toUTCString();}A.cookie=[N,"=",encodeURIComponent(M),H,O,K,F].join("");return A.cookie;};"espn.cookie".namespace();espn.cookie={get:function(F){return D.cookie(F);},set:function(F,G,H){D.cookie(F,G,{expires:H});},del:function(F){D.cookie(F,"",{expires:-1});}};C.getCookie=espn.cookie.get;C.setCookie=espn.cookie.set;C.deleteCookie=espn.cookie.del;"espn.refresh".namespace();espn.refresh.stop=C.ESPN_refresh_stop=function(){if(typeof ESPN_refresh!=="undefined"){clearTimeout(ESPN_refresh);}};espn.refresh.start=C.ESPN_refresh_start=function(F){ESPN_refresh=C.setTimeout(function(){C.location.href=C.location.href;},F||900000);};"espn.sport".namespace();(function(){var F=[];espn.sport.id=function(){var G="sportId";if(!F[G]){F[G]=D("body").metadata()[G];}return F[G];};})();espn.sport.is=function(H){var F=espn.sport.id(),G=typeof F;return(G==="number"||G==="string")?+H===+F:D.inArray(H,F)>-1;};"espn.core".namespace();espn.core.mobileApple=/iP(od|ad|hone)/i.test(navigator.userAgent);espn.core.ipod=/iPod/i.test(navigator.userAgent);espn.core.iphone=/iPhone/i.test(navigator.userAgent);espn.core.ipad=/iPad/i.test(navigator.userAgent);espn.core.android=/Android/i.test(navigator.userAgent);espn.core.googletv=/GoogleTV/i.test(navigator.userAgent);espn.core.palm=/webOS/i.test(navigator.userAgent);espn.core.blackberry=/BlackBerry/i.test(navigator.userAgent);espn.core.SWID=espn.cookie.get("SWID")||"";espn.core.loggedIn=/^\{[\w-]+\}/.test(espn.core.SWID);espn.core.cdnHTTPPath="http://a.espncdn.com/";espn.core.cdnHTTPSPath="https://a248.e.akamai.net/f/12/621/5m/proxy.espn.go.com/";espn.core.secure=!!("https:"===A.location.protocol);espn.core.asset_path=espn.core.secure?espn.core.cdnHTTPSPath+"prod/":espn.core.cdnHTTPPath+"prod/";espn.core.combiner_path=espn.core.secure?espn.core.cdnHTTPSPath+"combiner/c/":espn.core.cdnHTTPPath+"combiner/c/";espn.core.jquery_ui_path=espn.core.asset_path+"scripts/ui/1.8.2/minified/";espn.core.benchmark=function(I,H,F){H+=1;var J=+new Date(),G;while(--H){I.call(this);}G=+new Date();if(C.console&&C.console.log){C.console.log(F,G-J);}else{alert(F+" "+G-J);}};espn.core.type=function(F){return Object.prototype.toString.call(F).match(/^\[object (.*)\]$/i)[1];};espn.core.is=function(G,F){return Object.prototype.toString.call(G)==="[object "+F+"]";};(function(I){var T=this,c,Q=C.debug,S="undefined",a=("https:"===A.location.protocol)?"https://a248.e.akamai.net/f/12/621/5m/proxy.espn.go.com/prod/":"http://a.espncdn.com/prod/",O=null,H=[],Z="",K=false,V,P,L,F,G,J;Z=espn.core.SWID;K=espn.core.loggedIn;function Y(b){R(b);}function R(f){var d=(f)?I(f):I("div.mod-accordion").not(".ui-accordion"),h="active",e=function(j){I(j.target).parent().siblings("a.active").removeClass(h).end().end().addClass(h);},g=function(j,k){k.newHeader.addClass(h);k.newContent.addClass(h);k.oldHeader.removeClass(h);k.oldContent.removeClass(h);},b=d.length,i;if(b){while(b--){i=d.get(b);I("div.mod-sub-accordion",i).accordion({header:"a.mod-sub-accordion-trigger",active:".active",autoHeight:false,fillSpace:false}).bind("accordionchange",function(j,k){g(j,k);});I("a.mod-sub-accordion-trigger",i).click(function(j){e(j);});}d.accordion({header:"a.mod-accordion-trigger",active:".active",autoHeight:false,fillSpace:false}).bind("accordionchange",function(j,k){g(j,k);});I("a.mod-accordion-trigger").click(function(j){e(j);});}}J=I.cookie("userAB");if(Z!==""&&J===null){if(Z.charAt(Z.length-1)==="}"){G=Z.charAt(Z.length-2);}else{G=Z.charAt(Z.length-1);}I.cookie("userAB",G,{domain:".espn.go.com",expires:7});}I.fn.espnSelectRedirect=function(){return this.each(function(){I(this).bind("change",function(){var d=I(this).find("option").get(this.selectedIndex),b=d.value,e=I(d).metadata();if(b!=="#"&&b!==""){if(typeof e.popup!==S){C.open(b,e.popup.name||"espnpop",e.popup.features||null);}else{C.location.href=b;}}});});};function X(l){if(C.Jiffy){Jiffy.mark("initFlashSubheaderStart");}var k,i,f,h,g,d,e,m,b,j=true;if(l.length){k=l.find("span").html();i=l.attr("href");f=l.metadata();b=!!espn.core.mobileApple||!!D.parseUri(C.location).queryKey.useNonFlashHeader;if(!b){h=new flashObj();h.flashFile=f.src||"swf/globalHeader_redesign.swf";h.flashVars="&title="+k+"&titlex="+(f.titlex||"")+"&titley="+(f.titley||"")+"&renderLogo="+(f.renderLogo||"")+"&indexUrl="+(i||"")+"&logo1url="+(f.logo1url||"")+"&clicktag="+(f.clicktag||"")+"&logo1Align="+(f.logo1Align||"")+"&logo2url="+(f.logo2url||"")+"&clicktag2="+(f.clicktag2||"")+"&logo2Align="+(f.logo2Align||"")+"&header="+(f.header||"")+"&headerPadding="+(f.headerPadding||"")+"&section="+(f.section||"")+"&sectionUrl="+(f.sectionUrl||"")+"&sectionPadding="+(f.sectionPadding||"")+"&gradientTopColor="+(f.gradientTopColor||"")+"&gradientBottomColor="+(f.gradientBottomColor||"")+(f.adTag||"");h.width=f.width||"924";h.height=f.height||"45";h.scale=f.scale||"noScale";h.salign=f.salign||"lt";h.wmode=f.wmode||"opaque";h.DenyIEdl=f.DenyIEdl||"true";h.allowScriptAccess=f.allowScriptAccess||"Always";h.allowNetworking=f.allowNetworking||"All";h.FlashVer=f.FlashVer||7;h.cabVersion=f.cabVersion||"7,0,19,0";h.altTxt=l.html();h.ID=f.id||!!l.attr("id")?l.attr("id"):"section-title";m=function(n,o){if(n.compiled===true&&n.src){o.replaceWith(n.src);}else{setTimeout(function(){m(n,o);},10);}};if(h.render!==C.____FLASH_RENDERER_____){h.render=C.____FLASH_RENDERER_____;}h.render();m(h,l);}else{if(!C.Cufon&&!espn.core.init.nonFlashHeader){I.subscribe("espn.cufon.loaded",function(){espn.core.init.nonFlashHeader(l,f);});if(j){j=false;I("head").append('<link rel="stylesheet" href="'+espn.core.combiner_path+'27?css=modules/nonflash.css" type="text/css" media="screen" charset="utf-8" />');I.getScriptCache(espn.core.combiner_path+"?js=cufon-yui.js,fonts/DejaVu_Sans_oblique_700.font.js,espn.nonflash.r3.js",function(){I.publish("espn.cufon.loaded");});}}else{espn.core.init.nonFlashHeader(l,f);}}}if(C.Jiffy){Jiffy.measure("initFlashSubheaderDone","initFlashSubheaderStart");}}"espn.core.track".namespace();function M(h,k){if(typeof anTrackLink!=="function"){return ;}var d,i,l,j,f,g,b;if(k==="carousel"){d="carousel";i=I(h.target);l=":topstory";f="rightarrow";if(C.location.href==="http://espn.go.com/"||C.location.href==="http://espn.go.com/index"){d="fp"+d;}else{V=c.attr("class").replace(/\{[^{]*\}|[\W_]/g,"");if(V.indexOf("espn360")>-1){V=V.replace("espn360","");}d=V+"index"+d;}if(I("div.videoplayer-show","#top-stories").length>0){l=":topvideos";}d+=l;if(i.hasClass("jcarousel-prev")){f="leftarrow";}j=f;anTrackLink(i,"espn",d,j);}else{g=/\=([A-Za-z-\+]+)&/;b=/\=([A-Za-z-\+]+)$/;d=g.exec(h.name)||[];j=b.exec(h.name)||[];if(d.length>1&&j.length>1){anTrackLink(h,"espn",d[1],j[1]+"+tab");}}}F={videoPlayer:null,espn360Player:null,topStories:false};function W(e,f){var b=I(e).filter(function(){var g=I(this);return(g.parents("#scoreboard").length>0||g.data("initialized")===true)?false:true;});var d=I.extend({cache:true,spinner:"",select:function(h,i){var g=I(i.panel);Q.log("select",h,i);M(i.tab,"tab");I.publish("espn.tabs.select",[g,i]);},load:function(h,i){var g=I(i.panel);Q.log("load",h,i);I.publish("espn.tabs.load",[g,i]);},show:function(i,j){Q.log("show",i,j);var g=I(j.panel),l,k,h;I.publish("espn.tabs.show",[g,j]);}},f);if(C.Jiffy){Jiffy.mark("initTabsStart");}b.data("initialized",true);b.tabs(d);if(C.Jiffy){Jiffy.measure("initTabsEnd","initTabsStart");}}"espn.core.init".namespace();espn.core.init.tabs=W;espn.core.init.carousel=function N(b){I.getScriptCache(espn.core.combiner_path+"?js=plugins/jquery.jcarousel.js,espn.carousel.js&v8",function(){espn.core.init.carousel(b);});};espn.core.init.accordion=Y;espn.core.init.flashHeader=X;I.espn={initTabs:W,initMyFaves:L,initAccordion:Y,initMyHeadlines:P};function U(){if(C.Jiffy){Jiffy.mark("onDOMReady");}if(arguments.callee.done){return ;}arguments.callee.done=true;c=I("body");I("form.js-goto").find("select").espnSelectRedirect();I("#myespn").bind("mouseover",function(){I("select").each(function(){if(this.size<1||typeof this.size===S){this.blur();this.size=0;}});});if(C.Jiffy){Jiffy.measure("onDOMReady::Complete","onDOMReady");}}I(function(){U();});I(C).unload(function(){A.onkeypress=null;});})(D);D.debug=debug.debug;D.log=debug.log;D.info=debug.info;D.warn=debug.warn;D.error=debug.error;D.assert=debug.assert;D.trace=debug.trace;D.group=debug.group;D.groupEnd=debug.groupEnd;D.time=debug.time;D.timeEnd=debug.timeEnd;D.profile=debug.profile;D.profileEnd=debug.profileEnd;D.count=debug.count;})(jQuery,window,document);(function(E,D,A,H){"espn.mem".namespace();espn.mem.container=null;espn.mem.topstories=null;var F=false,B,C,G;espn.mem.init=function(J){if(D.Jiffy){Jiffy.mark("espn.mem.init.start");}espn.mem.container=J=E(J);espn.mem.topstories=E("#top-stories");if(espn.mem.container.data("initialized")){return true;}G=espn.mem.topstories.find(".top-story-content").not(".videoplayer").parent();C=espn.mem.topstories.find("div.videoplayer");if(!E.support.touch){J.find("li").hover(function(){E(this).addClass("hover");},function(){E(this).removeClass("hover");});}function I(T,N){var U=E(T.target).parents("li"),W=U.find("a"),V,P,O=false,L=W.attr("href");clearTimeout(B);F=false;if(!/^#/.test(L)){O=true;E.ajax({url:L,dataType:"html",cache:true,success:function(b,Z){if(!!O){debug.log(b);try{espn.video.pause();espn.video.player.state=VIDEO_STATE.PAUSE;}catch(a){}C.removeClass("videoplayer-show");}G.find(".top-story-content").replaceWith(b);E.publish("espn.mem.show.story",[U]);}});}U.closest("ul").find("li.active").removeClass("active");U.addClass("active");if(espn.core.is(D.anTrackLink,"Function")){var S,Y,X,R,M,Q=D.location;S="";if(Q.href==="http://espn.go.com/"||Q.href==="http://espn.go.com/index"){S+="fpcarousel:";}else{Y=E("body");X=Y.attr("class").replace(/\{[^{]*\}|[\W_]/g,"");if(X.indexOf("espn360")>-1){X=X.replace("espn360","");}S+=X+"indexcarousel:";}S+=(/videos/i.test(espn.mem.topstories.find(".ui-tabs-selected").text()))?"topvideos:":"topstory:";R=E(U.parents("ul")).find("li").index(U)+1;M=U.find("h3").html();if(M.indexOf("<span>")>-1){M=M.substr(0,M.indexOf("<span>"));}M=M.replace(/\s+/g,"");lid="thumbnail"+R+":"+M;D.anTrackLink(Q,"espn",S,lid);}T.preventDefault();}if(!E.support.touch){J.find("li").live("click",function(M,L){I(M,L);});}else{J.find("li").bind("touchstart",function(M,L){E(this).one("touchend",function(){I(M,L);});M.preventDefault();});}var K=E.subscribe("espn.mem.show.story",function(L){espn.mem.topstories.find(".videoplayer-show").removeClass("videoplayer-show").end().find("cite").show();});espn.mem.container.data("initialized",true);if(D.Jiffy){Jiffy.mark("espn.mem.init.end");}};espn.mem.video=function(K,I){debug.log("espn.mem.video",K,I,false);clearTimeout(B);B=setTimeout(function(){espn.video.play(K,I,false,true);F=false;},1000);function J(){debug.log("injectNewsStrips");var M=espn.video.player.container(I.playerType),N;N=M.find(".breaking-news");if(!(N.closest(".mod-mem-carousel").length)){N.remove();}N=M.siblings(".ui-tabs-panel").not(".ui-tabs-hide").find(".breaking-news");if(N.length&&!(N.closest(".mod-mem-carousel").length)){M.prepend(N.get(0));}}if(!espn.video.player.ready){var L=espn.subscribe("espn.video.ready",function(){J();espn.unsubscribe(L);});}else{J();}espn.publish("espn.mem.video.play",[K]);};espn.subscribe("espn.video.play",function(){espn.mem.topstories.find("cite").hide().end().find("div.breaking-news").hide();});espn.subscribe("espn.video.pause",function(){espn.mem.topstories.find("div.breaking-news").show();});espn.subscribe("espn.video.playlist.ended",function(){debug.log("espn.video.playlist.ended");try{espn.video.showEndcard();}catch(I){}});espn.subscribe("espn.tabs.select",function(I,K){if(I.closest("#top-stories").length){clearTimeout(B);try{espn.video.pause();espn.video.player.state=VIDEO_STATE.PAUSE;}catch(J){}}});espn.subscribe("espn.tabs.show",function(I,J){if(I.closest("#top-stories").length){G=I;if(I.data("notFirstView")){I.find("li.active a").trigger("click");}else{I.data("notFirstView",true);}}});})(jQuery,window,document);(function(C,A,E,B,D,F){E(B).live("mouseover",function(){var G=E(this);G.closest("form").addClass("clearfix");if(!E.data(A,D)){E.getScriptCache(espn.core.combiner_path+"?js=espn.search.r9.js",function(){E.data(A,D,true);espn.search.init(G);});}else{espn.search.init(G);}});E("#searchBox").live("submit",function(){var H=E(this),G=H.find(B),I=G.attr(F)||"";if(G.val()===I||!(/[^\s]+/i.test(v))){G.val("");}});"espn.core.init".namespace();espn.core.init.search=function(){};E(function(){var J,I=A.createElement("input"),H;if(!(F in I)){J=E(B),H=J.attr(F)||"";function G(){var K=J.val();if(!(/[^\s]+/i.test(K))){J.val(H).css({color:"#999"});}}G();J.focusin(function(){var K=J.val();if(K===H){J.val("").css({color:"#333"});}});J.focusout(function(){G();});}});})(window,document,jQuery,"#searchString, input[name=searchString]","espn.search.js","placeholder");(function(E,D,B){"espn.core.init".namespace();var A;function C(){A=E("#nav-wrapper");if(!!A.data("initialized")){return ;}if(!!A.length){F();E(".expandable",A).each(function(){E(this).expandable();});A.data("initialized",true);}}espn.core.init.nav=C;E.fn.expandable=function(G){var I=E(this),H=E("#nav-wrapper-container");I.hoverIntent({sensitivity:3,interval:100,timeout:500,over:function(){E(".expandable-hover",H).find("div:first").hide().end().removeClass("expandable-hover");var P=I.find("div:first"),N=P.outerWidth(),O=N,Q=0,K=P.parent().outerWidth(true),M=0,T,J,S,L,R=H.offset().left;P.css({left:"-9999em"}).show().children().each(function(){M++;Q+=E(this).outerWidth(true);});N=Q+1;O=P.outerWidth();I.addClass("expandable-hover");T=P.parent().offset().left-R;J=T-(O/2)+(K/2);S=T-O+K;L=M>1?J:T;if(L<R){L=T;}else{if(H.width()<(L+O)){L=S;}}P.hide().css({width:N+"px",height:P.height()+"px",left:L}).show();},out:function(){I.removeClass("expandable-hover");I.find("div:first").hide();}});return this;};function F(){D.teamsData=[];var X=false,I=false,U=(E.browser.msie&&E.browser.version.substr(0,1)=="6"),P,Z;function T(a){a.find("div:first").hide().end().removeClass("hover");E.publish("espn.nav.closed");X=null;if(typeof anStopCount==="function"){anStopCount();}}function Q(){A.find(".hover").find("div:first").hide().end().removeClass("hover");X=null;if(typeof anStopCount==="function"){anStopCount();}}function M(c){if(!U){var b=c.attr("id").replace("menu-",""),a=c.find("div:first");if(c.find("div:first").length!==0){Q();c.addClass("hover");a.show();if(b==="myespn"){if(typeof anLinkHover==="function"){if(!espn.core.loggedIn){anLinkHover("sitenavdefault","myespn_open_signedout");}else{if(I){anLinkHover("sitenavcustom","myespn_open_preferencesselected");}else{anLinkHover("sitenavdefault","myespn_open_signedinnopref");}}}}}else{K(c,true);}E.publish("espn.nav.open");X=b;}}function S(){if(!U){var b=E("body").attr("data-city"),a=false;if(E.support.sessionStorage){if(typeof b!=="undefined"&&b!==null&&b!==""){P=espn.storage.getItem("allMenus-"+b);}else{P=espn.storage.getItem("allMenus");}if(typeof P!=="undefined"&&P!==null){if(typeof P.time!=="undefined"){if((new Date()).getTime()-P.time>300000){a=true;}}if(typeof P.loggedIn!=="undefined"){if(espn.core.loggedIn!==P.loggedIn){a=true;}}}}if(typeof P==="undefined"||P===null||a){E(D).load(function(){var c=espn.l10n.megadropdown.allMenusUrl;if(espn.core.secure){c=espn.l10n.megadropdown.allMenusSecureUrl;}c+="?l="+espn.core.loggedIn;if(espn.core.secure){c="/espn/mega/allMenus?l="+espn.core.loggedIn;}if(typeof b!=="undefined"&&b!==null&&b!==""){c+="&city="+b;}if(I){c+="&c=true";}if(espn.core.secure){c+="&s=true";}E.ajax({type:"GET",url:c,dataType:"jsonp",jsonpCallback:"jsonpallmenus",cache:true,contentType:"text/javascript",scriptCharset:"iso-8859-1",success:function(d){P=d.data;P.time=(new Date()).getTime();P.loggedIn=espn.core.loggedIn;if(E.support.sessionStorage){if(typeof b!=="undefined"&&b!==null&&b!==""){espn.storage.setItem("allMenus-"+b,P);}else{espn.storage.setItem("allMenus",P);}}}});});}}}function J(e,b,d,a){var c=e.find("div:first");c.removeClass("loading").html(b);if(!isNaN(a)){V(d,a,c);}else{if(d=="page2"){Y(c);}else{if(d=="myespn"){R(c);V(d,a,c);}}}if(E.support.touch){if(e.data("init")!==true){E('<img src="http://a.espncdn.com/prod/assets/memberservices/btn_close.png" width="20" height="20" />').css({position:"absolute",top:"-20px",right:"-20px",padding:"10px","z-index":"1000"}).bind("touchstart",function(f){T(e);return false;}).prependTo(c);e.data("init",true);}}}function K(g,c){var d=g.attr("id").replace("menu-",""),a=parseInt(g.attr("data-sportid"),10),e=parseInt(g.attr("data-teamid"),10),f=E("body").attr("data-city"),b=[];if(c===true){g.append('<div class="wrapper loading"/>');M(g);}else{g.append('<div class="wrapper loading" style="display: none;"/>');}if(typeof P==="undefined"||P===null||P===""){if(!espn.core.secure){b.push(espn.l10n.megadropdown.menuUrl);}else{b.push(espn.l10n.megadropdown.secureMenuUrl);}b.push("?name="+d);if(typeof f!=="undefined"&&f!==null&&f!==""){b.push("&city="+f);if(!isNaN(a)){b.push("&sportId="+a);}if(!isNaN(e)){b.push("&teamId="+e);}}if(d=="myespn"){b.push("&l="+espn.core.loggedIn);}if(I){b.push("&c=true");}if(espn.core.secure){b.push("&s=true");}b=b.join("");E.ajax({type:"GET",url:b,dataType:"jsonp",jsonpCallback:"jsonp"+d,cache:true,success:function(i){if(i!==null){var h=i.data;J(g,h,d,a);}}});}else{html=P[d];J(g,html,d,a);}}function H(c,b){if(espn.core.is(c[b],"String")){var a=JSON.parse(c[b]);c[b]=a;}return c;}function W(a){E.each(["mySports","myTeams","myPlayers","myColumnists"],function(c,b){a=H(a,b);});return a;}function L(a,b){E(a).each(function(){E(this).attr("src",b);});}"espn.core.nav".namespace();espn.core.nav.imageErrorCheck=L;var G={28:"nfl",10:"mlb",46:"nba",90:"nhl",23:"ncf",41:"ncb",54:"ncw"};var O={23:"NCAAF",41:"NCAAB",54:"NCAAW"};function Y(a){espn.p13n.get({success:function(g){g=W(g);var h=0,i=3,d="",c;var b={Ja:"J.A.",Dj:"DJ",Lz:"LZ",Ej:"E.J.",Amy:"Amy K.",Leanne:"Le Anne",Stephen:"Stephen A."};var e={"D ford":"D. Ford","Kiper jr":"Kiper Jr",Lebrun:"LeBrun",Mcshay:"McShay",Mcneil:"McNeil",Oneil:"O'Neil"};if(typeof teamsData.page2!=="undefined"){c=teamsData.page2;}if(typeof (g.myColumnists)!=="undefined"&&g.myColumnists!==null){E.each(g.myColumnists,function(o,v){if(h<i){var s="-",k=v.id.split("_"),r=k[k.length-1];for(var n=0,q=k.length;n<q-1;n++){r=r+s+k[n];}var m=r.split(s),t=m[0],u=m[1];if(m[0]=="d"){t=m[2];u=m[0]+" "+m[1];}else{if(m.length>2){u=u+" "+m[2];}}t=t.substring(0,1).toUpperCase()+t.substring(1);u=u.substring(0,1).toUpperCase()+u.substring(1);if(typeof b[t]!=="undefined"){if((b[t]!=="Amy K."||b[t]==="Nelson")&&(b[t]!=="Stephen A."||b[t]==="Smith")){t=b[t];}}if(typeof e[u]!=="undefined"){u=e[u];}d+="<li>";d+="<h6>"+t+" "+u+"</h6>";if(typeof c!=="undefined"){var p=c.columnists[v.id];if(typeof p!=="undefined"){d+=c.columnists[v.id];}else{var l=t+" "+u;l=l.replace(/[^a-zA-Z 0-9]+/g,"").split(" ").join("-").toLowerCase();d+='<a href="http://search.espn.go.com/'+l+'/">Archive</a>';}}d+="</li>";h++;}});if(h<1){var f=(h>0)?"Have more favorites?":"Have a favorite?";d+='<li class="callout" style="width: 100%;">';d+="<h5>"+f+"</h5>";d+="</li>";}if(d!==""){a.find(".my-columnists").html(d);}}},error:function(){a.find(".callout").show();}});}function V(c,a,b){espn.p13n.get({success:function(g){g=W(g);var h=0,i=3,e="",d;if(c=="myespn"){i=4;}if(E.inArray(c,["myespn","nfl","mlb","nba","nhl","ncf","ncb","soccer"])>-1){if(typeof (g.myTeams)!=="undefined"&&g.myTeams!==null){E.each(g.myTeams,function(l,m){if(h<i&&(m.sport===a||c==="myespn")){var o=G[m.sport],p="",k,j;if((m.sport>=600&&m.sport<800)||(m.sport>3900&&m.sport<3999)){o="soccer";}e+='<li id="menu-team-'+m.id+'"';if(h===3){e+=' class="last"';}e+=">";if(o==="mlb"||o==="nfl"||o==="nhl"||o==="nba"){k=m.text.replace(/[^a-zA-Z 0-9]+/g,"").split(" ").join("-").toLowerCase();p="http://espn.go.com/"+o+"/team/_/name/"+m.abbrev.toLowerCase()+"/"+k;}else{if(o==="ncf"){k=m.text.replace(/[^a-zA-Z 0-9]+/g,"").split(" ").join("-").toLowerCase();p="http://espn.go.com/college-football/team/_/id/"+m.id+"/"+k;}else{if(o==="ncb"){k=m.text.replace(/[^a-zA-Z 0-9]+/g,"").split(" ").join("-").toLowerCase();p="http://espn.go.com/mens-college-basketball/team/_/id/"+m.id+"/"+k;}else{if(o=="ncw"){p="http://sports.espn.go.com/ncw/clubhouse?teamId="+m.id;}else{if(o==="soccer"){p="http://soccernet.espn.go.com/team?id="+m.id;}}}}}if(o==="ncf"||o==="ncb"||o=="ncw"){if(o=="ncw"&&m.id==2633){e+='<a href="'+p+'" class="floatleft"><img src="'+espn.core.asset_path.replace("/prod/","")+"/i/teamlogos/ncaa/sml/trans/"+m.id+'_ncw.gif" class="floatleft" width="50" height="50" /></a>';}else{e+='<a href="'+p+'" class="floatleft"><img src="'+espn.core.asset_path.replace("/prod/","")+"/i/teamlogos/ncaa/sml/trans/"+m.id+'.gif" class="floatleft" width="50" height="50" /></a>';}}else{if(o=="soccer"){if(espn.core.secure){e+='<a href="'+p+'" class="floatleft"><img src="'+espn.core.asset_path.replace("/prod/","")+"/soccernetassets/design05/i/clubhouse/badges/"+m.id+'.gif" class="floatleft" width="50" height="50"/></a>';}else{e+='<a href="'+p+'" class="floatleft"><img src="http://soccernet-akamai.espn.go.com/design05/i/clubhouse/badges/'+m.id+'.gif" class="floatleft" width="50" height="50"/></a>';}}else{e+='<a href="'+p+'" class="floatleft"><div class="logo-medium logo-'+o+"-medium "+o+"-medium-"+m.id+' floatleft" style="width: 50px; height: 50px;"></div></a>';}}if(typeof teamsData[o]!=="undefined"&&c!=="myespn"){d=teamsData[o];var n=d.teams[m.id];if(typeof n!="undefined"){e+='<p><a href="'+p+'">'+m.text+"</a> <span>"+n.record+"</span></p>";}else{e+='<p><a href="'+p+'">'+m.text+"</a></p>";}}else{if(c==="myespn"){j=o.toUpperCase();if(typeof O[m.sport]!=="undefined"){j=O[m.sport];}e+='<p><a href="'+p+'">'+m.text+"</a> <span>"+j+"</span></p>";}else{e+='<p><a href="'+p+'">'+m.text+"</a></p>";}}e+="</li>";h++;}});}}else{if(c==="tennis"||c==="golf"||c=="nascar"){if(typeof (g.myPlayers)!=="undefined"&&g.myPlayers!==null){E.each(g.myPlayers,function(j,k){if(h<i&&k.sport===a){var l="";e+='<li id="menu-player-'+k.id+'">';if(c==="golf"){l="http://sports.espn.go.com/"+c+"/players/profile?playerId="+k.id;e+='<img src="'+espn.core.asset_path.replace("/prod/","")+"/golfonline/img/profiles/35x48/"+k.id+'.jpg" class="floatleft" onerror="espn.core.nav.imageErrorCheck(jQuery(this),\''+espn.core.asset_path.replace("/prod/","")+"/i/columnists/nophoto_35x48.gif')\" />";}else{if(c=="tennis"){l="http://sports.espn.go.com/sports/tennis/players/profile?playerId="+k.id;e+='<img src="'+espn.core.asset_path.replace("/prod/","")+"/i/tennis/profiles/players/35x48/"+k.id+'.jpg" class="floatleft" onerror="espn.core.nav.imageErrorCheck(jQuery(this),\''+espn.core.asset_path.replace("/prod/","")+"/i/columnists/nophoto_35x48.gif')\" />";}else{if(c=="nascar"){l="http://sports.espn.go.com/rpm/driver?driverId="+k.id;e+='<img src="'+espn.core.asset_path.replace("/prod/","")+"/i/rpm/mugs/35x48/"+k.id+'.jpg" class="floatleft" onerror="espn.core.nav.imageErrorCheck(jQuery(this),\''+espn.core.asset_path.replace("/prod/","")+"/i/columnists/nophoto_35x48.gif')\" />";}}}e+='<p><a href="'+l+'">'+k.text+"</a></p>";e+="</li>";h++;}});}}}if(c!=="myespn"){if(h<1){var f=(h>0)?"Have more favorites?":"Have a favorite?";e+='<li class="callout">';e+="<h5>"+f+"</h5>";e+="</li>";}if(e!==""){b.find(".my-teams").html(e);}}else{if(h<2){var f=(h>0)?"Have more favorite teams?":"Have a favorite team?";e+='<li class="callout">';e+="<h5>"+f+"</h5>";e+='<a href="http://espn.go.com/personalization/">Add your teams »</a></li>';}if(e!==""){b.find(".teams").html(e);}}},error:function(){b.find(".callout").show();}});}function R(i){var f=0,a=false,e="",j="";function g(){espn.p13n.get({success:function(m){m=W(m);if(typeof (m.mySports)!=="undefined"&&m.mySports!==null&&m.mySports.length>0){var l="col-left",n=false;f=0;e="";j="";E("#div-myheadlines .myheadlines",i).hide();E("#div-myheadlines .hide",i).hide();E("#div-myheadlines .hide2",i).hide();E("#menu-myespn input").addClass("uncheck");E.each(m.mySports,function(p,t){e+=j+t.id;j=",";var r=t.text.toLowerCase(),o=E("#input-"+r,i);if((t.id>=600&&t.id<800)||(t.id>3900&&t.id<3999)){if(!n){r="soccer";o=E("#input-"+r,i);if(o.attr("name").replace("sportid-","")!==t.id){o.attr("name","sportid-"+t.id);}n=true;}else{return true;}}var s=E("#myheadlines-"+r,i);if(o.length!==0){var q=o.parent();if(a===false){o.attr("checked","checked").removeClass("uncheck");if(E(".myespn form li").index(q)!==f){E(".myespn form li:eq("+f+")").before(q);}}if(f>=7){o.attr("disabled","disabled").siblings("label").css({cursor:"default"});}else{o.removeAttr("disabled","disabled").siblings("label").css({cursor:"pointer"});}if(f<6){s.removeClass("col-left col-right").addClass(l).show();if(E("#div-myheadlines .myheadlines").index(s)!==f){E("#div-myheadlines .myheadlines:eq("+f+")").before(s);}}l=(l==="col-left")?"col-right":"col-left";f++;}});if(a===false){E("#menu-myespn input.uncheck").removeAttr("checked");}a=true;if(f<=2){E(".myespn .hide").show();E(".myespn .hide2").show();}else{if(f<=4){E(".myespn .hide2").show();}}if(f!==2&&f<4){E("#myheadlines-callout").removeClass("col-left col-right").addClass(l).show();}if(f>=7){E("input:not(:checked)",A).attr("disabled","disabled").siblings("label").css({cursor:"default"});}else{E("input:not(:checked)",A).removeAttr("disabled","disabled").siblings("label").css({cursor:"pointer"});}if(f>0){var k=(f<7)?f:7;E("#span-sportscount").html(k+" of 7 Sports");E("form",A).show();E("#div-myfeatures",i).hide();E("#div-myheadlines",i).show();}else{E("#span-sportscount").html("0 of 7 Sports");E("form",A).show();E("#div-myheadlines",i).hide();E("#div-myfeatures",i).show();}}else{E("#span-sportscount").html("0 of 7 Sports");E("form",A).show();E("#div-myheadlines",i).hide();E("#div-myfeatures",i).show();}}});}var h=espn.storage.getItem("membername"),d=espn.storage.getItem("szpremToken"),c=espn.storage.getItem("szpremToken");if(typeof h!=="undefined"&&h!==null&&h!==""){E("#span-membername").attr("href","http://sportsnation.espn.go.com/fans/"+h).html(h);if(d==1||c==1){E("#img-insider-member").show();E("#myespn-feature-insider").show();E("#myespn-feature-activeinsider").hide();}E("#div-myespn-memberarea").show();}g();var b=false;E("input",A).each(function(){var k=E(this),l=E("#myespn-save-button");k.click(function(){var n=k.attr("name").replace("sportid-",""),o="",m="",q=1;if(E("input:checked",A).length>=7){E("input:not(:checked)",A).attr("disabled","disabled").siblings("label").css({cursor:"default"});}else{E("input:not(:checked)",A).removeAttr("disabled","disabled").siblings("label").css({cursor:"pointer"});}function p(u,v,t,s,r){v.html("Saving");if(b===false){b=true;espn.p13n.get({success:function(x){x=W(x);if(typeof (x.mySports)!=="undefined"&&x.mySports!==null&&x.mySports.length>0){E.each(x.mySports,function(y,z){if(!!u.attr("checked")||z.id!=r){t+=s+z.id+":"+q;s=",";q=q+1;}});}if(!!u.attr("checked")){t+=s+r+":"+q;}if(t!==""){espn.p13n.update({favoritesOnly:"",sports:t},{success:function(){g();N();v.html("Saved");b=false;},error:function(){u.removeAttr("checked");v.html("Error");}});}else{if(t===""&&!u.attr("checked")){espn.p13n.remove({sports:r},{success:function(){g();N();v.html("Saved");b=false;},error:function(){u.removeAttr("checked");v.html("Error");}});}}}});}else{var w=setTimeout(function(){p(u,v,t,s,r);},100);}}p(k,l,o,m,n);});});}A.find("#nav-main-list > li").each(function(){var a=E(this);if(!E.support.touch){a.hoverIntent({sensitivity:7,interval:100,timeout:500,over:function(){M(a);clearTimeout(Z);},out:function(){T(a);}});}else{a.bind("touchstart",function(k){var c=E(k.target),d=c.closest("li");if(event){var i=event.changedTouches[0].clientX,h=event.changedTouches[0].clientY,b=(new Date()).getTime(),g=0,f=0,j=0;}function m(){var p=event.changedTouches[0]||null,n=p.pageX-i,e=p.pageY-h,o=(new Date()).getTime()-b;}var l=d.attr("id").replace("menu-","");if(d.parent().attr("id")==="nav-main-list"&&X!==l){if(!d.hasClass("hover")){k.preventDefault();}d.bind("touchmove",function(n){m();});d.bind("touchend",function(){m();if(f===0&&g===0){if(!d.hasClass("hover")){M(d);}}d.unbind("touchmove touchend");});}});}});function N(){function a(){var b=["nfl","mlb","nba","nhl","ncf","ncb","nascar","soccer"];for(var d=0;d<b.length;d++){var e=E("#menu-"+b[d]),c=d+1;if(e.length!==0){if(E("#nav-main-list > li").index(e)!==c){E("#nav-main-list > li:eq("+c+")").before(e);}e.show();}}A.find("#nav-main-list > li > a").each(function(){var f=E(this),g=f.attr("name");g=g.replace("=sitenavcustom","=sitenavdefault");f.attr("name",g);});}espn.p13n.get({success:function(d){d=W(d);if(typeof (d.mySports)!=="undefined"&&d.mySports!==null&&d.mySports.length>0){var e=0,g=false,c;E(".sport-menu",A).hide();E("#menu-add-sport",A).remove();E.each(d.mySports,function(j,l){if(e<7){c=l.text.toLowerCase();if((l.id>=600&&l.id<800)||(l.id>3900&&l.id<3999)){if(!g){c="soccer";g=true;}else{return true;}}var k=E("#menu-"+c),h=e+1;if(k.length!==0){if(E("#nav-main-list > li").index(k)!==h){E("#nav-main-list > li:eq("+h+")").before(k);}k.show();e++;}}});if(e>0){I=true;A.find("#nav-main-list > li > a").each(function(){var h=E(this),i=h.attr("name");i=i.replace("=sitenavdefault","=sitenavcustom");h.attr("name",i);});}if(e<=3&&e>0){E('<li id="menu-add-sport" class="btn-add-sport"><a href="#">+ ADD A SPORT</a></li>').click(function(){M(E("#menu-myespn"));if(!E.support.touch){Z=setTimeout(function(){T(E("#menu-myespn"));},5000);}return false;}).insertAfter(E("#menu-allsports",A));}else{if(e===0){E(".sport-menu",A).hide();E("#menu-add-sport",A).remove();a();E(".default",A).show();I=false;}}}else{E(".sport-menu",A).hide();E("#menu-add-sport",A).remove();a();E(".default",A).show();I=false;}var b=E(".selected",A);if(b.length>1){E("#menu-allsports").removeClass("selected");}A.show();var f=E(".selected:hidden",A);if(f.length>0){E("#menu-allsports").addClass("selected");}S();},error:function(){A.show();var b=E(".selected:hidden",A);if(b.length>0){E("#menu-allsports").addClass("selected");}S();}});}N();}})(jQuery,this,document);(function(D,A,E){function C(){function F(){var I=64,G=[],J=jQuery.cookie("ESPN_WindowNameStorage")||"",H="0123456789abcdefghijklmnopqrstuvwxyz".split("");if(""!==J){return J;}while(I--){var K=H[~~(Math.random()*H.length)];G.push(!!~~(Math.random()*2)?K.toUpperCase():K);}J=G.join("");jQuery.cookie("ESPN_WindowNameStorage",J,{domain:".espn.go.com"});return J;}this.SWID=espn.core.SWID||F();this._storedData=function(){var G={};try{G=D.name.length?TEAdecrypt(D.name,this.SWID):"";if(G.length){G=JSON.parse(G);G=(typeof G==="object")?G:{};}}catch(H){}return G;};}C.prototype={getItem:function(F){var G=this._storedData();return G[F]||null;},setItem:function(F,H){var G=this._storedData();G[F]=H;D.name=TEAencrypt(JSON.stringify(G),this.SWID);},removeItem:function(F){var G=this._storedData();try{delete G[F];}catch(H){}D.name=TEAencrypt(JSON.stringify(G),this.SWID);}};function B(){}B.prototype={getItem:function(F){var H=null;try{H=!!D.sessionStorage[F].value?D.sessionStorage[F].value:D.sessionStorage[F];H=JSON.parse(H);}catch(G){}return H;},setItem:function(F,G){D.sessionStorage[F]=JSON.stringify(G);},removeItem:function(F){D.sessionStorage.removeItem(F);}};"espn.storage".namespace();espn.storage=function(){var G=function(){try{return("sessionStorage" in D)&&D.sessionStorage!==null;}catch(H){return false;}}();if(D.jQuery&&D.jQuery.support){jQuery.support.sessionStorage=G;}var F=G?new B():new C();return{getItem:function(H){return F.getItem(H);},setItem:function(H,I){return F.setItem(H,I);},removeItem:function(H){return F.removeItem(H);}};}();})(this,this.document);"espn.p13n".namespace();P13N_ERROR_NOT_LOGGED_IN=401;P13N_ERROR_NO_DATA=404;P13N_ERROR_TIMEOUT=408;espn.p13n=function(){var E,C=false;function A(F){jQuery.ajax({url:"/composer/myespn",dataType:"json",cache:false,type:"GET",timeout:5000,data:{siteId:espn.l10n.siteId},success:function(H,G){H.expires=+new Date()+(60*20*1000);if(F&&F.success){F.success.call(this,H,G);}},error:function(H,G){if(F&&F.error){F.error.call(this,P13N_ERROR_NO_DATA);}}});}function D(){if(!!espn.core.loggedIn){debug.info("espn.p13n: initP13nData loggedIn");E=espn.storage.getItem("p13n");if(!E||(E&&E.expires<+(new Date()))){debug.info("espn.p13n: stale or empty cache");C=false;A({success:function(F){E=F;C=true;espn.storage.setItem("p13n",F);debug.info("espn.p13n: cache is primed");},error:function(G,F){}});}else{debug.info("espn.p13n: cache exists");C=true;}}}D();function B(G,F,H){jQuery.ajax({type:"POST",url:"/composer/favorites/"+G,cache:false,data:F,success:function(J,I){espn.p13n.reset();if(H&&H.success){H.success.call(this,J);}},error:function(J,I){if(H&&H.error){H.error.call(this,J);}}});}return{get:function(I){var H=0,G;if(!espn.core.loggedIn){debug.info("espn.p13n.get: not logged in");if(I&&I.error){I.error.call(this,P13N_ERROR_NOT_LOGGED_IN);}return ;}(function F(){debug.info("espn.p13n.get: _initialized=",!!C);if(!!C){if(I&&I.success){debug.info("espn.p13n.get: callback.success");I.success.call(this,E);}}else{if(H>100){H=0;if(I&&I.error){debug.info("espn.p13n.get: callback.error");I.error.call(this,P13N_ERROR_TIMEOUT);}}else{setTimeout(F,100);}H++;}})();},add:function(F,G){B("add",F,G);},update:function(F,G){B("update",F,G);},remove:function(F,G){B("delete",F,G);},"delete":function(F,G){espn.p13n.remove(F,G);},reset:function(F){E=undefined;C=false;espn.storage.removeItem("p13n");D();espn.p13n.get(F);}};}();jQuery.myespn={init:espn.p13n.get,reset:espn.p13n.reset};(function(C,D,L,S){var M,I={},J={},O={},R,G,K,E="",A,P;D.VIDEO_STATE={STOP:0,PLAY:1,PAUSE:3};P={football:{sport:"football"},nfl:{sport:"football",league:"nfl"},nfle:{sport:"football",league:"nfle"},afl:{sport:"football",league:"afl"},arena:{sport:"football",league:"afl"},cfl:{sport:"football",league:"cfl"},fbc:{sport:"football",league:"ncf"},ncf:{sport:"football",league:"ncf"},ncaaf:{sport:"football",league:"ncf"},baseball:{sport:"baseball"},mlb:{sport:"baseball",league:"mlb"},minorlbb:{sport:"baseball",league:"minorlbb"},cws:{sport:"baseball",league:"cws"},llws:{sport:"baseball",league:"llws"},basketball:{sport:"basketball"},nba:{sport:"basketball",league:"nba"},nbdl:{sport:"basketball",league:"nbdl"},bkc:{sport:"basketball",league:"ncb"},ncb:{sport:"basketball",league:"ncb"},ncaab:{sport:"basketball",league:"ncb"},bkw:{sport:"basketball",league:"ncw"},ncw:{sport:"basketball",league:"ncw"},ncaaw:{sport:"basketball",league:"ncw"},hockey:{sport:"hockey"},hkn:{sport:"hockey",league:"nhl"},nhl:{sport:"hockey",league:"nhl"},ahl:{sport:"hockey",league:"ahl"},rpm:{sport:"racing"},irl:{sport:"racing",league:"irl"},wc:{sport:"racing",league:"nascar"},"racing/f1":{sport:"racing",league:"formula1"},"racing/champcar":{sport:"racing",league:"champcar"},"racing/indycar":{sport:"racing",league:"indycar"},"racing/openwheel":{sport:"racing"},"racing/nhra":{sport:"racing",league:"nhra"},cricket:{sport:"cricket"},rugby:{sport:"rugby"},horse:{sport:"horse"},oly:{sport:"olympic"},tennis:{sport:"tennis"},tenis:{sport:"tenis"},golf:{sport:"golf"},pga:{sport:"golf",league:"pga"},lpga:{sport:"golf",league:"lpga"},sga:{sport:"golf",league:"sga"},boxing:{sport:"boxing"},boxeo:{sport:"boxing"},bowling:{sport:"bowling"},worldcup:{sport:"soccer"},wwc:{sport:"soccer"},futbol:{sport:"soccer"}};D.anTrackVideo=function(Y,c,Z){if(!!D.s_omni){var d,b="wdgespvideo",V=D.ESPN_GLOBALS.videoPlayers[O.playerType]||{},W=!!V.localSite?V.localSite+":":"",X=espn.video.player.config[O.playerType].language;if(C("body").hasClass("wc-2010")){var T=espn.cookie.get,a=T("worldcupversion"),U=T("lang");b+=",wdgespge,wdgespwc2010,wdgespinternational,wdgespsoccernet";X="en_us";if(a==="global"&&U==="EN"){X="en_uk";}else{if(a==="global"&&U==="ES"){b=b.replace(/wdgespsoccernet/,"wdgespdeportes");X="es";}}}d=s_gi(b);d.linkTrackVars="prop2,prop3,prop15,prop17,prop25,prop26,eVar2,eVar9,eVar11,eVar19,eVar20,eVar21,events";d.linkTrackEvents=c;d.prop2=espn.core.SWID;d.prop3="videoid="+W+O.id+"-"+O.mediaid;d.prop15=d.prop3;d.prop17=X;d.prop25=(P[O.sport]&&P[O.sport].sport)?P[O.sport].sport:"";d.prop26=(P[O.sport]&&P[O.sport].league)?P[O.sport].league:"";d.eVar2=d.prop3;d.eVar9=d.prop17;d.eVar11="ipadvideo:"+D.location.host+D.location.pathname+":"+O.playerType+":html5:2";d.eVar20=O.playerType+":"+O.show;d.eVar19=d.prop25;d.eVar21=d.prop26;d.events=c;d.products=Z;d.visitorNamespace="espn";d.trackingServer="w88.go.com";d.trackingServerSecure="sw88.go.com";d.dc=112;d.tl(true,"o","HTML5 Video Player--**--"+O.mediaid+"--**--"+O.playerType+"--**--"+O.id);}};D.anTrackVideoStart=function(T){if(!!D.s_omni){D.anTrackVideo(T,"event1");}};D.anTrackVideoEnd=function(T){if(!!D.s_omni){D.anTrackVideo(T,"event11");}};D.anTrackVideoMiddle=function(T){if(!!D.s_omni){D.anTrackVideo(T,"event9",";;;;event9=.50");}};"espn.video".namespace();espn.video.player=function(){var T=[];return{container:function(V,U){(V||(V="DEFAULT"));if(!T[V]){(U||(U="div.videoplayer"));U+=(V!=="DEFAULT"?"-"+V:"");T[V]=C(U);}debug.info("grabbing video player container cache",T[V]);return T[V];},ready:false,state:0,requiredFlashVersion:"10.0",adPlaying:false,useHTML5Video:false,html5:false,hideHeadline:true,config:null};}();C.each(["mobileApple","android","palm","blackberry"],function(T,U){debug.info(U);if(!!espn.core[U]){espn.video.player.html5=espn.video.player.useHTML5Video=true;}});if(espn.video.player.html5&&espn.core.ipad){C.getScriptCache(espn.core.combiner_path+"?js=espn.video.freewheel.r3.js");}else{}K=espn.video.player.container;C.videoPlayer=K;function Q(){if(!D.ESPN_GLOBALS){setTimeout(function(){Q();},250);}else{for(var T in D.ESPN_GLOBALS.videoPlayers){T=D.ESPN_GLOBALS.videoPlayers[T];C.ajax({url:"/videohub/mpf/config.prodXml?player="+T.playerType+"&adminOver="+T.adminOver,method:"GET",dataType:"xml",success:function(X,W){var U,V=C(X);espn.video.player.config=espn.video.player.config||{};espn.video.player.config[T.playerType]={};U=espn.video.player.config[T.playerType];U.mediaUrl=V.find("globalPlayerConfig").find("mediaUrl").text();U.language=V.find("playerConfig").find("language").attr("value")||V.find("globalPlayerConfig").find("language").text();}});}}}Q();function H(){K().find(".breaking-news").hide();if(!!espn.video.player.hideHeadline){K().find(".top-story-headline").hide();}}function N(){K().find(".breaking-news, .top-story-headline").show();}M={initialized:false,playing:false,infoDisplayed:false,timeout:null,counter:0,playerType:"fpp09",hide:function(){C("#top-stories").find(".mod-carousel, .mod-header ul").addClass("video-takeover-hide").end().find(".mod-tabs div.ui-tabs-panel, .mod-content, .mod-header").addClass("video-takeover-coverup");},show:function(){C("#top-stories").find(".mod-carousel, .mod-header ul").removeClass("video-takeover-hide").end().find(".mod-tabs div.ui-tabs-panel, .mod-content, .mod-header").removeClass("video-takeover-coverup").end().find(".videoplayer").removeClass("video-takeover-player").find("p").remove().end().end().find(".ui-tabs-panel").not(".ui-tabs-hide").find(".mod-carousel ul").trigger("studioAdComplete");},info:function(){C("#top-stories").find(".videoplayer").addClass("video-takeover-player").prepend("<p><span>"+D.adVideoTitle+'</span> <a href="javascript:closeStudioAd()">Close</a></p>');},context:"/studioad/homepage/null/null/",play:function(T){debug.info("playStudioAd called",T);for(var U in ESPN_GLOBALS.videoPlayers){break;}if(T!==null&&T!=="null"&&T!=="undefined"){M.context=T;}if(M.playing===true){return ;}if(M.initialized===false){M.initialized=true;M.hide();C.playVideo(null,{playerType:U},true);}if(!I._init_complete){if(++M.counter>250){clearTimeout(M.timeout);}else{M.timeout=setTimeout(function(){M.play(T);},20);}return ;}else{if(!M.infoDisplayed){M.infoDisplayed=true;M.info();R.mpfVideoHideEndcard();R.mpfVideoInsertAd(M.context);}}M.playing=true;},stop:function(){debug.info("closeStudioAd called");M.playing=false;M.initialized=false;M.counter=0;M.infoDisplayed=false;clearTimeout(M.timeout);M.show();R.mpfVideoSwitchMedia(null);}};I={adPlaying:false,videoPlaying:false,_init_complete:false,_isready:false,init:function(){I._init_complete=true;C.publish("espn.video.init");},ready:function(){I._isready=true;espn.video.player.ready=true;C.publish("espn.video.ready");},complete:function(){C.publish("espn.video.complete");},playlistEnded:function(){setTimeout(function(){var T=setInterval(function(){if(!I.adPlaying){clearInterval(T);if(jQuery(".mod-inline.video-player").length>0){jQuery(".mod-video-playlist ul").trigger("videoComplete");}else{jQuery("#top-stories").find(".ui-tabs-panel").not(".ui-tabs-hide").find(".mod-carousel ul").trigger("videoComplete");}C.publish("espn.video.playlist.ended");}},100);},100);},adStart:function(){I.adPlaying=true;espn.video.player.adPlaying=true;H();if(M.initialized===true){M.playing=true;}C.publish("espn.video.ad.start");},adEnd:function(){I.adPlaying=false;espn.video.player.adPlaying=false;if(M.playing===true){M.stop();}C.publish("espn.video.ad.end");},onMenuOn:function(){H();C.publish("espn.video.menu.on");},onMenuOff:function(){N();C.publish("espn.video.menu.off");},onPlay:function(){N();setTimeout(function(){H();},3000);C.publish("espn.video.play");},onPause:function(){var T=jQuery("#top-stories").find(".ui-tabs-panel").not(".ui-tabs-hide").find("li.active div a").attr("href");videoId=C.parseUri(T).queryKey.id||null;if(videoId===null||videoId==="null"){videoId=C.parseUri(T).queryKey.mId||null;}if(!(I.adPlaying)){N();}C.publish("espn.video.pause");},enableAutoStart:function(){var T=new Image();T.src="http://espn.go.com/personalization/setVideoAutoStart?vasPref=1&_="+ +new Date;setTimeout(function(){espn.p13n.reset();},1000);C.publish("espn.video.autostart.enabled");},disableAutoStart:function(){var T=new Image();T.src="http://espn.go.com/personalization/setVideoAutoStart?vasPref=2&_="+ +new Date;setTimeout(function(){espn.p13n.reset();},1000);C.publish("espn.video.autostart.disabled");}};G=function(d,b,Y,c){if(D.Jiffy){Jiffy.mark("setupVideoPlayer");}var e=b.autostart.toString(),V,W,T,U="",X="",Z="",a=[];H();if(!espn.video.player.useHTML5Video){a.push("SWID="+espn.core.SWID);a.push("&adminOver="+b.adminOver);a.push("&player="+b.playerType);a.push("&height="+b.height);a.push("&width="+b.width);a.push("&autostart="+e.toString());if(b.autostart==="true"||b.autostart===true){e=true;}if(J[d].thumbnail!==null&&J[d].thumbnail!==S){a.push("&thumbnail="+J[d].thumbnail);}if(b.localSite!==null&&b.localSite!==S){a.push("&localSite="+b.localSite);}if(b.pageName!==null&&b.pageName!==S){a.push("&pageName="+b.pageName);}if(!!J[d].posterID){a.push("&posterID="+J[d].posterID);}if(b.studioAd){C.extend(M,b.studioAd);C.extend(M,true,{playerType:d});}V={flashVars:a.join(""),bgcolor:"#000000",wmode:"transparent",allowscriptaccess:"always",quality:"autohigh",align:"t",swliveconnect:"true",menu:"false",play:e.toString(),allowfullscreen:"true",seamlesstabbing:"true"};W={data:b.src+"?id="+J[d].currentVideoID,height:b.height,width:b.width,id:"videoPlayer"};}T=function(){var h=jQuery("div.videoplayer"),i=h.find(".top-story-headline"),k=h.find(".breaking-news"),p,o,f,r,q,u,x;Y.html(C("<div/>").attr("id","videoPlayer"));espn.publish("espn.video.container.ready",[Y]);if(!espn.video.player.useHTML5Video){J[d].obj=swfobject.createSWF(W,V,"videoPlayer");p=J[d].currentVideoID;o=J[d].top;f=J[d].credit;r=J[d].track;}else{"espn.video.html5".namespace();espn.video.html5.vidJQObject=null;espn.video.html5.vidDOMObject=null;J[d].currentVideoID=0;var l=Math.ceil(Math.random()*(1000000000000000+(+new Date))),v="VC"+l,m="VE"+l,g="VP"+l;E+='<div id="'+v+'" style="position: relative; height: '+b.height+"px; width:"+b.width+'px;">';if(!espn.core.ipad){E+='<img id="'+m+'" src="" height="'+b.height+'" width="'+b.width+'" alt="" />';}else{E+='<video style="z-index:inherit; position: relative;" id="'+m+'" controls preload="none" height="'+b.height+'" width="'+b.width+'"></video>';E+='<button class="html5PlayButton" id="'+g+'"></button>';}E+="</div>";jQuery("head").append('<style type="text/css">.html5PlayButton { width: 72px; height: 72px; border: none; background: transparent url(http://a1.espncdn.com/prod/assets/icon_playVideo_large.png) 0 0 no-repeat; position: absolute; top: '+(b.height/2-35)+"px; left: "+(b.width/2-35)+"px; } </style>");jQuery("#videoPlayer").html(E);$videoEl=jQuery("#"+m);A=L.getElementById(m);x=jQuery("#"+g);espn.video.html5.vidJQObject=$videoEl;espn.video.html5.vidDOMObject=A;function y(){A.setAttribute("data-track-start","true");A.setAttribute("data-track-mid","true");A.setAttribute("data-track-end","true");}y();espn.video.html5.hideControls=function(){A.removeAttribute("controls");};espn.video.html5.showControls=function(){A.setAttribute("controls","controls");};function w(){espn.video.play(null,null,true);}x.click(function(){if(!!A.hasAttribute("data-src")){$videoEl.one("canplay canplaythrough",w);espn.video.html5.showControls();A.src=A.getAttribute("data-src");A.removeAttribute("data-src");A.load();}else{A.play();}x.hide();});C.subscribe("espn.nav.open",function(){espn.video.html5.hideControls();});C.subscribe("espn.carousel.show.story",function(){espn.video.html5.hideControls();});C.subscribe("espn.carousel.show.story.load",function(){espn.video.html5.hideControls();});C.subscribe("espn.nav.closed",function(){espn.video.html5.showControls();});C.subscribe("espn.carousel.show.video",function(){espn.video.html5.showControls();});A.addEventListener("loadstart",function(){debug.log("video event: loadstart");N();x.show();C.publish("espn.video.html.loadstart",[A]);},false);A.addEventListener("emptied",function(){debug.log("video event: emptied");y();C.publish("espn.video.html.emptied",[A]);},false);A.addEventListener("play",function(){debug.log("video event: play");espn.video.html5.showControls();if(!!A.hasAttribute("data-track-start")){D.anTrackVideoStart(A);A.removeAttribute("data-track-start");C.publish("espn.video.track.start");debug.info("video tracking: start");}H();x.hide();C.publish("espn.video.html.play",[A]);},false);A.addEventListener("pause",function(){debug.log("video event: pause");espn.video.html5.hideControls();N();x.show();C.publish("espn.video.html.pause",[A]);},false);function n(){if(!!A.hasAttribute("data-track-mid")&&(A.currentTime/A.duration>=0.5)){D.anTrackVideoMiddle(A);A.removeAttribute("data-track-mid");C.publish("espn.video.track.middle");debug.info("video tracking: midway");}}A.addEventListener("timeupdate",n,false);A.addEventListener("playing",n,false);A.addEventListener("ended",function(){debug.log("video event: ended");if(!!A.hasAttribute("data-track-end")){D.anTrackVideoEnd(A);A.removeAttribute("data-track-end");C.publish("espn.video.track.end");debug.info("video tracking: end");}if(jQuery(".mod-inline.video-player").length>0){jQuery(".mod-video-playlist ul").trigger("videoComplete");}else{jQuery("#top-stories").find(".ui-tabs-panel").not(".ui-tabs-hide").find(".mod-carousel ul").trigger("videoComplete");}espn.video.html5.hideControls();N();A.currentTime=0;A.pause();x.show();C.publish("espn.video.html.ended",[A]);},false);var j=C.subscribe("espn.carousel.show.story",function(){espn.video.pause();});var s=C.subscribe("espn.carousel.show.story.load",function(){});var t=C.subscribe("espn.tabs.select",function(z,AA){if(C(z).parent().find("video").length){espn.video.pause();}});C.publish("espn.video.html5.element.created",[A]);}if(i.length<=0){B(o,f,r);}else{K().append(k.show());K().append(i.show());}};T();if(D.Jiffy){Jiffy.measure("setupVideoPlayerDone","setupVideoPlayer");Jiffy.measure("setupVideoPlayer","ESPN_PageStart");}return true;};if(!espn.video.player.useHTML5Video){D.onCommandsLoaded=function(){R=D.com.espn.utils.PlayerCommands;R.registerObserver("video_complete",R.VIDEO_COMPLETE,I.complete);R.registerObserver("video_playlist_finished",R.VIDEO_PLAYLIST_ENDED,I.playlistEnded);R.registerObserver("video_player_ready",R.VIDEO_PLAYER_READY,I.ready);R.registerObserver("video_ad_start",R.AD_START,I.adStart);R.registerObserver("video_ad_complete",R.AD_COMPLETE,I.adEnd);R.registerObserver("enable_autostart",R.ENABLE_AUTOSTART,I.enableAutoStart);R.registerObserver("disable_autostart",R.DISABLE_AUTOSTART,I.disableAutoStart);R.registerObserver("init_complete",R.INIT_COMPLETE,I.init);R.registerObserver("video_play",R.VIDEO_PLAY,I.onPlay);R.registerObserver("video_pause",R.VIDEO_PAUSE,I.onPause);R.registerObserver("video_menu_on",R.WIDGET_ON,I.onMenuOn);R.registerObserver("video_menu_off",R.WIDGET_OFF,I.onMenuOff);if(typeof moreObservers=="function"){moreObservers(R);}};}function B(U,V,T){K().find(".breaking-news, .top-story-headline").remove();if(U!==null&&U!=="null"){C.ajax({url:espn.l10n.video.tsOverlayURI+"?id="+U+"&credit="+V+"&track="+T,dataType:"html",cache:true,success:function(X,W){K().append(X);N();}});}}var F={};espn.video.play=function(b,l,f,V){debug.log("play arguments",arguments);if(!D.ESPN_GLOBALS||!espn.video.player.config){setTimeout(function(){espn.video.play(b,l,false,V);},500);return false;}f=false;function X(){var o;if(!!O&&!!O.protocol&&O.protocol==="streaming"){o=/[^\s]+/.test(O.secureURL)?O.secureURL+"&redirect=true":/[^\s]+/.test(O.altStream)?O.altStream:"";try{espn.video.html5.vidDOMObject.setAttribute("data-src",o);}catch(n){}}else{o="http://brsseavideo-ak.espn.go.com/motion/"+O.mediaid+".mp4";}return o;}if(D.Jiffy){Jiffy.mark("playVideoStart");}var Z=l.playerType,m=l.thumbnail||null,Y=l.thumbnailID||null,h=ESPN_GLOBALS.videoPlayers[Z]||null,T=K(Z),k=!!h.autostart?parseInt(h.autostart):0,j=false,a=l.top,U=l.credit||null,c=l.track||null,g=espn.storage.getItem("p13n")||null;if(l.hideHeadline!==undefined){espn.video.player.hideHeadline=!!l.hideHeadline;}if(!!g&&!!g.mySettings){k=g.mySettings.videoAutoStart||k;j=true;}k=espn.cookie.get("VAS")||k;switch(parseInt(k)){case 1:h.autostart=true;j=true;break;case 2:h.autostart=false;j=true;break;}debug.info("setting up video container");if(T.length===0||h===null){if(D.Jiffy){Jiffy.measure("playVideoNoContainer","playVideoStart");}C.publish("espn.video.play.aborted");debug.error("we have failed to get videoContainer and/or videoSettings");return false;}if(typeof J[Z]===S){debug.info("defining videoPlayer[playerType]");J[Z]={currentVideoID:b,container:null,carousel:false,obj:null,playerType:Z,thumbnail:m,posterID:Y,top:a,credit:U,track:c};J.state=VIDEO_STATE.STOP;J[Z].carousel=T.parents("#top-stories").length>0;debug.info("video player container created",J);}if(!espn.video.player.useHTML5Video){debug.info("checking for swfobject");if(!D.swfobject){C.getScript("http://a.espncdn.com/combiner/c?js=swfobject/2.2/src/swfobject.js",function(){if(D.Jiffy){Jiffy.measure("playVideoSWFObjectLoaded","playVideoStart");}espn.video.play(b,l,false,V);});if(D.Jiffy){Jiffy.measure("playVideoBeRightBack","playVideoStart");}return false;}if(!swfobject.hasFlashPlayerVersion(espn.video.player.requiredFlashVersion)){C.publish("espn.video.play.aborted",["Wrong flash version"]);return false;}}C.publish("espn.video.before.play");if(!T.data("init")){T.data("init",G(Z,h,T,false));}if(J[Z].carousel===true){T.addClass("videoplayer-show");try{espn.espn360.player.object().pauseEvent();}catch(i){}}var W=(V===true)?h.autostart:true;if(!espn.video.player.useHTML5Video){try{if(J[Z].currentVideoID===b&&W){R.mpfVideoPlay();}else{B(a,U,c);debug.info("videocom.mpfVideoSwitchMedia(",b,Y,")");if(j){R.mpfVideoSwitchMedia(b,Y,h.autostart);}else{R.mpfVideoSwitchMedia(b,Y,true);}J[Z].currentVideoID=b;}C.publish("espn.video.play",[b]);}catch(d){C.publish("espn.video.error",[b]);}}else{if(J[Z].currentVideoID===b){debug.info("current video id matches");if(!espn.video.html5.vidJQObject.data("ads-queued")){vidSrc=X();if(!!espn.video.freewheel){debug.log("duration",O.duration);espn.video.freewheel.getAds(espn.video.html5.vidJQObject.parent().attr("id"),vidSrc,O.id,(D.omniPageName&&D.omniPageName.match(/^(.*?:){1,2}[^:]+/gmi)[0])||"",O.duration*1000);}else{if(W){espn.video.html5.vidDOMObject.play();}}}else{if(W){espn.video.html5.vidDOMObject.play();}}espn.video.html5.vidJQObject.data("ads-queued",true);}else{debug.info("current video id does not match");espn.video.html5.vidJQObject.data("ads-queued",false);espn.video.pause();J[Z].currentVideoID=b;B(a,U,c);C.ajax({url:"/videohub/mpf/config/player/playlist.xml",data:{id:J[Z].currentVideoID,player:Z,posterID:Y},method:"POST",dataType:"xml",success:function(o,n){var e=C(o),p;O={id:J[Z].currentVideoID,mediaid_full:e.find("mediaid").text(),mediaid:e.find("mediaid").text().replace(/_[\d]+x[\d]+$/i,""),duration:e.find("item").attr("duration")||0,adTarget:e.find("item").attr("adTarget")||"",language:"en",playerType:Z,sport:e.find("item").attr("sport")||"",realSport:e.find("item").attr("realSport")||"",name:e.find("item").attr("name")||"",nameAscii:e.find("item").attr("nameAscii")||"",headline:e.find("headline").text()||"",thumbnail:e.find("thumbnailurl").text()||"",show:e.find("show").text()||"show_na",protocol:e.find("protocol").text()||"",secureURL:e.find("secureURL").text()||"",altStream:e.find("altStream").text()||""};p=X();if(espn.core.ipad){espn.video.html5.vidDOMObject.src=p;espn.video.html5.vidDOMObject.setAttribute("poster","http://a.espncdn.com"+O.thumbnail);}else{debug.info("setting image",espn.video.html5.vidDOMObject,((espn.core.secure)?espn.core.cdnHTTPSPath:espn.core.cdnHTTPPath)+O.thumbnail);espn.video.html5.vidDOMObject.src=((espn.core.secure)?espn.core.cdnHTTPSPath:espn.core.cdnHTTPPath)+O.thumbnail;}debug.info("initializing freewheel ad manager");if(!!espn.video.freewheel&&h.autostart&&espn.core.ipad){debug.log("duration",O.duration);espn.video.freewheel.getAds(espn.video.html5.vidJQObject.parent().attr("id"),p,O.id,(D.omniPageName&&D.omniPageName.match(/^(.*?:){1,2}[^:]+/gmi)[0])||"",O.duration*1000);espn.video.html5.vidJQObject.data("ads-queued",true);}else{if(espn.core.ipad){debug.log("loading",p);espn.video.html5.vidDOMObject.load();espn.video.html5.vidJQObject.one("play.freewheel",function(){espn.video.freewheel.getAds(espn.video.html5.vidJQObject.parent().attr("id"),p,O.id,(D.omniPageName&&D.omniPageName.match(/^(.*?:){1,2}[^:]+/gmi)[0])||"",O.duration*1000);espn.video.html5.vidJQObject.data("ads-queued",true);});}else{}}}});}}if(D.Jiffy){Jiffy.measure("playVideoDone","playVideoStart");}};C.playVideo=espn.video.play;espn.video.pause=function(){if(espn.video.player.useHTML5Video){if("pause" in espn.video.html5.vidDOMObject){espn.video.html5.vidDOMObject.pause();}}else{R.mpfVideoPause();}};espn.video.stop=function(){if(espn.video.player.useHTML5Video){if("pause" in espn.video.html5.vidDOMObject){espn.video.html5.vidDOMObject.pause();espn.video.html5.vidDOMObject.currentTime=0;}}else{R.mpfVideoStop();}};espn.video.showEndcard=function(){if(!espn.video.player.useHTML5Video){R.mpfVideoShowEndcard();}};espn.video.hideEndcard=function(){if(!espn.video.player.useHTML5Video){R.mpfVideoHideEndcard();}};C.loadGenericVideo=function(){var X=C("#videotoplay"),V,W,T;if(X.length===0){return ;}V=C.parseUri(X.attr("href")).queryKey.id||null;if(V==null||V=="null"){V=C.parseUri(X.attr("href")).queryKey.mId||null;}C(".videoplayer").addClass("videoplayer-show");espn.video.play(V,X.metadata());function U(Z){var Y=Z.find("a"),c=Y.siblings("span").html(),b=C.parseUri(Y.attr("href")).queryKey.id||null;C("#videoInfo").html(c);if(b==null||b=="null"){b=C.parseUri(Y.attr("href")).queryKey.mId||null;}espn.video.play(b,Y.metadata(),false);if(!espn.video.player.useHTML5Video){espn.video.hideEndcard();}}C("div.mod-video-playlist ul li").bind("click",function(){T=C(this);T.addClass("active").siblings().removeClass("active");U(T);return false;});var W=C.subscribe("espn.video.complete",function(){var f=C(".mod-video-playlist ul"),Y,e,d,c=null,b=f.find("li.active");if(b.next().length>0){b=b.removeClass("active").next().addClass("active");U(b);}else{try{setTimeout(function(){var a=setInterval(function(){if(!I.adPlaying){clearInterval(a);J.state=VIDEO_STATE.STOP;c=C.parseUri(b.find("a").attr("href")).queryKey.topId;if(typeof c===S||c===S||c===null){espn.video.showEndcard();}else{N();}C.unsubscribe(W);}},100);},250);}catch(Z){}}});};"espn.video.embeded".namespace();espn.video.embeded.play=C.loadGenericVideo;"espn.video.studioAd".namespace();espn.video.studioAd.play=M.play;espn.video.studioAd.stop=M.stop;D.playStudioAd=M.play;D.closeStudioAd=M.stop;})(jQuery,window,document,"undefined");var serverProtocol="https://r.espn.go.com";var urlPrefix="https://r.espn.go.com";var globalRegSessionUrl="https://globalregsession.go.com/globalregsession/session?as=";var facebookToken=0;"espn.memberservices".namespace();espn.memberservices.welcome=function(){var A=getCookie("BLUE");var C=getCookie("RED");var B=getCookie("SWID");if(B!=null&&B!=""&&B.indexOf("{")==0&&B.indexOf("}")==B.length-1){if((C!=null&&C!="")||(A!=null&&A!="")){jQuery.getScript(globalRegSessionUrl+"parseUserData");}else{passivelyLogin();}}else{if(B==null||B==""){jQuery.getScript(globalRegSessionUrl+"parseUserData");}else{buildMemberArea(null,null,"U",null,null,null,null);}}};function parseUserData(A){var B=getLoginStatus(A.loginstatus);var F=0;var C=0;var D=0;var G=0;var H=0;var I=false;if(A.tokens!=null){for(var E=0;E<A.tokens.length;E++){if(A.tokens[E]==703){H=1;}if(A.tokens[E]==27){C=1;}if(A.tokens[E]==749){D=1;}if(A.tokens[E]==779){G=1;}if(A.tokens[E]==2143){facebookToken=1;}if(A.tokens[E]==1067){I=true;}}}if(location.pathname.indexOf("/outdoors")>-1){if(H==1){F=1;}}else{if(C==1||D==1){F=1;}}if(B=="0"||B=="1"){buildMemberArea(A.username,A.firstname,B,F,A.gender.abbreviation,A.birthyear,I);}else{if(B=="N"){passivelyLogin();}else{buildMemberArea(null,null,B,null,null,null,null);}}if(typeof espn!="undefined"&&typeof espn.storage!="undefined"){espn.storage.setItem("membername",A.username);espn.storage.setItem("firstname",A.firstname);espn.storage.setItem("isLoggedIn",B);espn.storage.setItem("szpremToken",C);espn.storage.setItem("insiderDirectToken",D);espn.storage.setItem("bassInsider",H);espn.storage.setItem("gender",A.gender.abbreviation);espn.storage.setItem("age",A.age);espn.storage.setItem("rememberMe",I);espn.storage.setItem("lastLoginDate",A.lastlogindate);espn.storage.setItem("termsOfUseToken",G);espn.storage.setItem("postalCode",A.postalcode);}}function passivelyLogin(){var B=document.getElementById("memberAreaAffiliateName").value;var A=globalRegSessionUrl+"afterPassiveLogin";jQuery.getScript(serverProtocol+"/members/passiveLogin?affiliateName="+B+"&appRedirect="+encodeURIComponent(A));}function afterPassiveLogin(A){var B=getLoginStatus(A.loginstatus);if(B=="N"){buildMemberArea(null,null,"N",null,null,null,null);}else{parseUserData(A);}}function buildMemberArea(E,D,F,C,B,A,G){getOmnitureVar(E,D,F,C,B,A,G);writeMemberArea(E,D,F,G,C);if(F=="U"||F=="N"){if(typeof espn!="undefined"&&typeof espn.storage!="undefined"){espn.storage.setItem("membername","null");espn.storage.setItem("firstname","null");espn.storage.setItem("isLoggedIn",F);espn.storage.setItem("szpremToken",0);espn.storage.setItem("insiderDirectToken",0);espn.storage.setItem("bassInsider",0);espn.storage.setItem("gender","null");espn.storage.setItem("age","null");espn.storage.setItem("rememberMe","null");espn.storage.setItem("lastLoginDate","null");espn.storage.setItem("termsOfUseToken",0);espn.storage.setItem("postalCode","null");}}}function writeMemberArea(C,H,D,K,J){var G=jQuery("input#language").val();var A=jQuery("input#regFormId").val();var E=jQuery("input#memberAreaAffiliateName").val();var I="";var F="";if(H!=null&&H.length>15){H=H.substring(0,15)+"...";}if(D=="1"||D=="0"){sportsNationLanguage="";if(G=="es"){sportsNationLanguage="es/";}sportsNationLink='<a class="membername" href="http://sportsnation.espn.go.com/'+sportsNationLanguage+"fans/"+C+'">'+H+"</a>";if(C==null||C==""){sportsNationLink=H;}if((G=="en"||G=="EN"||G==null||G=="")&&J=="0"){var B='<a href="'+urlPrefix+'/espn/signup/step1?addata=2009_insdr_xxx_wel_tst_actinsider" class="membername">'+espn.l10n.myEspnText.activateinsider+"</a>";if(location.pathname.indexOf("/outdoors")>-1){B='<a href="http://proxy.espn.go.com/outdoors/bassmaster/members/insider/newOffer?addata=2009_insdr_xxx_wel_tst_actbassinsider" class="membername">'+espn.l10n.myEspnText.activateinsider+"</a>";}I="<span>"+sportsNationLink+"</span>, "+B+'&nbsp;&nbsp;|&nbsp;&nbsp;<a class="small" href="#" onclick="javascript:logout();">'+espn.l10n.myEspnText.signout+"</a>";}else{I="<span>"+espn.l10n.myEspnText.welcometext+", "+sportsNationLink+'</span>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="small" href="#" onclick="javascript:logout();">'+espn.l10n.myEspnText.signout+"</a>";}}else{if(D=="U"){I='<span><a id="personalizationLink" class="cbOverlay" data-affiliateName="'+E+'" data-language="'+G+'" data-regFormid="'+A+'" tref="/members/v3_1/login" href="">'+espn.l10n.myEspnText.signin+'</a></span> or <a id="registerLink" class="cbOverlay" data-affiliateName="'+E+'" data-language="'+G+'" data-regFormid="'+A+'" href="" tref="/members/v3_1/register">'+espn.l10n.myEspnText.register+"</a>";}else{I=espn.l10n.myEspnText.heliumdown;}}if(facebookToken==1){F='<div class="signin-social"><img title="'+espn.l10n.myEspnText.connectedfacebook+'" alt="'+espn.l10n.myEspnText.connectedfacebook+'" src="'+espn.core.asset_path+'assets/memberservices/social_facebook_14.png"></div>';}else{F='<div class="signin-social"><a class="cbOverlay" href="" tref="/members/v3_1/fbConnect" data-regformid="'+A+'" data-language="'+G+'" data-affiliatename="'+E+'"><img title="'+espn.l10n.myEspnText.connectfacebook+'" alt="'+espn.l10n.myEspnText.connectfacebook+'" src="'+espn.core.asset_path+'assets/memberservices/social_facebook_14.png"></a></div>';}if(I!=""){jQuery("div#signin").html(I);jQuery("div#signin").before(F);}}function getOmnitureVar(C,G,D,I,H,B,J){var A="U";var F="U";var E="F";if(I!=null){if(I==1||I=="1"){E="T";}}if(H!=null&&H!=""){F=H;}if(B!=null&&B!=""){A=B+7;}if(D==""||D==null){swid=getCookie("SWID");if(swid!=null&&swid!=""){if(swid.indexOf("{")==0&&swid.indexOf("}")==swid.length-1){D="U";}else{D="N";}}}anCV=E+F+A+D;}function getLoginStatus(A){if(A=="Anonymous Guest"){return"U";}else{if(A=="Guest Not Logged In"){return"N";}else{if(A=="Registered, Passively Logged In"){return"0";}else{if(A=="Registered, Actively Logged In"){return"1";}else{return"";}}}}}function getCookie(A){var C=document.cookie.split("; ");for(var B=0;B<C.length;B++){cookie=C[B].split("=");if(cookie[0]==A){return cookie[1];}}return null;}function runOmnitureIndependently(E,D,F,C,B,A,G){getOmnitureVar(E,D,F,C,B,A,G);callOmniture();}function logout(){espn.core.loggedIn=false;if(typeof espn.storage!="undefined"){espn.storage.removeItem("membername");espn.storage.removeItem("firstname");espn.storage.removeItem("isLoggedIn");espn.storage.removeItem("szpremToken");espn.storage.removeItem("insiderDirectToken");espn.storage.removeItem("bassInsider");espn.storage.removeItem("gender");espn.storage.removeItem("age");espn.storage.removeItem("rememberMe");espn.storage.removeItem("lastLoginDate");espn.storage.removeItem("termsOfUseToken");espn.storage.removeItem("postalCode","null");}if(typeof espn.p13n!="undefined"){espn.p13n.reset({success:function(){window.location=serverProtocol+"/members/logout?appRedirect="+encodeURIComponent(document.location.href);},error:function(){window.location=serverProtocol+"/members/logout?appRedirect="+encodeURIComponent(document.location.href);}});}else{window.location=serverProtocol+"/members/logout?appRedirect="+encodeURIComponent(document.location.href);}}(function(C,B){function A(F,E){var D=C.fn.colorbox(C.extend(E,{scrolling:false,iframe:true,opacity:"0.7",onOpen:function(){if(E.css!==undefined){C("#colorbox").removeClass().addClass(E.css);}},onClosed:function(){C("#colorbox").removeClass();},onCleanup:function(){C("#colorbox iframe").attr("src","about:blank");}}));}C(".mod-didyouknow .dykText a.dykLogic, .mod-didyouknow .dykText a.dykRedirect").live("click",function(D){var E=this.href;A(this,{css:"dyk_overlay",href:E,innerHeight:580,innerWidth:769});D.preventDefault();});C("body.search a.launchVideoOverlay, body.search a.launchSearchGallery").live("click",function(D){var E=this.href;if(C(this).is(".launchVideoOverlay")){A(this,{css:"media_overlay video_overlay",href:E,innerHeight:579,innerWidth:959,slideshow:true,loadPosition:"loadTop"});}else{if(C(this).is(".launchSearchGallery")){A(this,{css:"media_overlay photo_overlay",href:E,innerHeight:614,innerWidth:964,slideshow:true,loadPosition:"loadTop"});}}D.preventDefault();});C(".launchGallery, .launchZoom").live("click",function(E){var G=this.href;var F="744";var D="964";if(G.indexOf("http://espn.go.com")>=0){G=G.replace("http://espn.go.com","");}if(C(this).is(".launchZoom")){top.window.moveTo(0,0);if(document.all){top.window.resizeTo(screen.availWidth,screen.availHeight);}else{if(document.layers||document.getElementById){if(top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){top.window.outerHeight=top.screen.availHeight;top.window.outerWidth=top.screen.availWidth;}}}F="100%";D="100%";if(G.indexOf("overlay")<0){G=G.replace("/photos/gallery/","/photos/gallery/overlay/zoom/");}}else{if(G.indexOf("overlay")<0){G=G.replace("/photos/gallery/","/photos/gallery/overlay/overlay/");}}A(this,{css:"media_overlay",href:G,open:true,innerHeight:F,innerWidth:D,slideshow:true,loadPosition:"loadTop"});E.preventDefault();});C(".cbOverlay").live("click",function(N){var G=C(this);var L,J="https://",M="r.espn.go.com";C.subscribe("espn.registration.universal_overlay.setHeight",function(P){P=!!C("div.ie6, div.ie7").length?P+49:P;C.fn.colorbox.resize({height:P+27});C("#colorbox").css("overflow","hidden");});C.subscribe("espn.registration.universal_overlay.close",function(P){C.fn.colorbox.close();});C.receiveMessage(function(P){h=parseInt(P.data.replace(/.*height=(\d+)(?:&|$)/,"$1"),10);w=parseInt(P.data.replace(/.*width=(\d+)(?:&|$)/,"$1"),10);h=!!C("div.ie6, div.ie7").length?h+49:h;if(w>0){C.fn.colorbox.resize({height:h+27,width:w});}else{C.fn.colorbox.resize({height:h+27});}},"https://"+M);var I="",O,F,E,K=true,H={regFormId:G.attr("data-regFormid")||"espn",language:G.attr("data-language")||"en",affiliateName:G.attr("data-affiliateName")||"espn",href:G.attr("tref")||"/members/v3_1/login",tab:G.attr("tab")||"teams",appRedirect:encodeURIComponent(G.attr("data-appRedirect")||B.location.href)};E=B.location.href;switch(H.href){case"/members/v3_1/register":F=820;O=515;I="?language="+H.language+"&registrationFormId="+H.regFormId+"&affiliateName="+H.affiliateName+"&appRedirect="+H.appRedirect+"&parentLocation="+E;break;case"/personalization/v3_1/personalization":F=820;O=550;I="?tab="+H.tab+"&language="+H.language+"&parentLocation="+E;J="";M="";break;case"/members/v3_1/login":F=820;O=325;I="?language="+H.language+"&registrationFormId="+H.regFormId+"&affiliateName="+H.affiliateName+"&appRedirect="+H.appRedirect+"&parentLocation="+E;break;case"/members/v3_1/forgotMembernamePassword":F=490;O=380;I="?language="+H.language+"&registrationFormId="+H.regFormId+"&affiliateName="+H.affiliateName+"&appRedirect="+H.appRedirect+"&parentLocation="+E;break;case"/members/v3_1/tou":F=769;O=470;I="?language="+H.language+"&registrationFormId="+H.regFormId+"&affiliateName="+H.affiliateName+"&appRedirect="+H.appRedirect+"&parentLocation="+E;break;case"/members/v3_1/validateEmail":F=500;O=425;I="?language="+H.language+"&registrationFormId="+H.regFormId+"&affiliateName="+H.affiliateName+"&appRedirect="+H.appRedirect+"&parentLocation="+E;break;case"/members/v3_1/fbConnect":F=450;O=225;I="?language="+H.language+"&registrationFormId="+H.regFormId+"&affiliateName="+H.affiliateName+"&appRedirect="+H.appRedirect+"&parentLocation="+E;break;default:F=false;O=false;}var D=navigator.userAgent.match(/iPad/i)!=null;if(D&&H.href=="/members/v3_1/register"){B.location=J+M+"/members/register"+I;}else{finalHref=J+M+H.href+I;finalHeight=!!C("div.ie6, div.ie7").length?O+49:O;A(this,{css:"registration_overlay",href:finalHref,speed:400,height:finalHeight,width:F});}N.preventDefault();});})(jQuery,window);(function(H){var L=(location.protocol=="https:")?true:false;var A=this,C=0,G=0,F=function(){if(typeof anCV==="string"){if(anCV==""||anCV==null){B();}else{if(anCV.charAt(0)=="T"){E();}}}},B=function(){if(L){H.getScript("https://r.espn.go.com/members/util/getInsiderTokens?cb=ESPN_MODAL_checkTokens");}else{H.getScript("http://insider.espn.go.com/insider/access/unilogin?cb=ESPN_MODAL_checkTokens");}},I=function(){H.getScript("https://r.espn.go.com/espn/universal/services/v2_0/checkForToken?cb=ESPN_MODAL_showInsiderMessage&tokenId=1027");},M=function(Q,S,P,U,R,O,N,T){if(R==1||O==1||N==1||T==1){E();}},E=function(){C=H.cookie("espn_imc");if(C==null||C==""){H.cookie("espn_imc",1,{expires:30,domain:".go.com"});I();}},D=function(N){if(N=="1"){K();}},K=function(){if(!H.dialog){if(L){H.getScript("https://a248.e.akamai.net/f/12/621/5m/proxy.espn.go.com/prod/scripts/ui/1.8.2/minified/jquery.ui.dialog.min.js",J);}else{H.getScript("http://a.espncdn.com/prod/scripts/ui/1.8.2/minified/jquery.ui.dialog.min.js",J);}}else{J();}},J=function(){var N=(L)?"https://a248.e.akamai.net/f/12/621/5m/proxy.espn.go.com/i/insider/ui_dialog_modal/ul-dialog_btn.gif":"http://a.espncdn.com/i/insider/ui_dialog_modal/ul-dialog-btn.gif";trackShow();H("body").append("<div id='dialog' class='ui-dialog-content'><span><p style='margin: 13px 7px 20px 0pt; line-height: 13px;'>Your credit card on file with us will expire soon. Update it now to continue getting the best online exclusive sports coverage.<br/><a target='_self' href='http://insider.espn.go.com/insider/benefits'>View Insider Benefits &#187;</a></p><p style='margin: 13px 7px 7px 0pt;'><a target='_self' href='https://r.espn.go.com/espn/insider/updateCardForRenewal?addata=2009_insdr_xxx_pre_cce_xxx&preExpire=1'><img width='114' height='29' src='"+N+"'/></a></p></span></div>");H("#dialog").dialog({resizable:false,height:140,modal:true,width:365,height:200,zIndex:9999994});};trackShow=function(){anTrackLink(this,"espn","insider_lightbox","insider_cc_expire");};A.ESPN_MODAL_showInsiderMessage=D;A.ESPN_MODAL_checkTokens=M;H(function(){F();});})(jQuery);(function(H){var G=H.cookie("broadbandAccess"),E=0;function C(I){if(E<=50){if(H("body").length>0){try{H("body").addClass(I);}catch(J){setTimeout(function(){C(I);},100);}}else{setTimeout(function(){C(I);},100);}E++;}}function A(){C("espn360 espn3");H.getScriptCache(espn.core.combiner_path+"?js=espn.espn360.r4.js",function(){H.publish("espn.espn360.affiliate");H.publish("espn.espn3.affiliate");});}function B(){C("networks");H.publish("espn.networks.affiliate");}function D(){if(G.indexOf("espn3-true")!==-1){A();}if(G.indexOf("networks-true")!==-1){B();}}function F(){H.getJSON("//broadband.espn.go.com/espn3/auth/espnnetworks/user?callback=?",function(I){G="espn3-"+(I.espn3!=="invalid")+",";G+="networks-"+(I.networks!=="invalid");H.cookie("broadbandAccess",G);D();});}"espn.core.init".namespace();espn.core.init.broadband=F;if(!espn.core.mobileApple){if(G===null){F();}else{D();}}})(jQuery);(function(A){A.subscribe("espn.tabs.show",function(B,C){if(B.find(".mod-myheadlines").length>0){if(typeof espn.core.headlines==="undefined"){"espn.core.headlines".namespace();espn.core.headlines=true;A.getScriptCache(espn.core.combiner_path+"?js=espn.myHeadlines.r6.js",function(){espn.core.init.headlines(C);});}else{espn.core.init.headlines(C);}}else{if(B.find(".mod-fbactivity").length>0){A(".mod-fbactivity").html('<iframe src="http://www.facebook.com/plugins/activity.php?site=sports.espn.go.com&amp;width=298&amp;height=210&amp;header=false&amp;colorscheme=light&amp;font=arial&amp;border_color=%23FFFFFF&amp;recommendations=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:298px; height:210px;" allowTransparency="true"></iframe>');}}});})(jQuery);(function(A){A(function(){var C=A("#my-teams-table"),B=A("#my-players-table");if(C.length>0||B.length>0){if(typeof espn.core.faves==="undefined"){"espn.core.faves".namespace();espn.core.faves=true;jQuery.getScriptCache(espn.core.combiner_path+"?js=espn.myfaves.r2.js",function(){espn.core.init.faves();});}else{espn.core.init.faves();}}});})(jQuery);(function(F){function E(L,M,I,O,H,N){var P="";var K="pregame";if(M!=null){K=G(M);}if(L!=undefined){var J=L.split("|");if(K=="pregame"){if(J[3]=="1"){P='<a name="&lpos=page1ts&lid='+I+"_preview_"+O+'" href="/'+I+"/preview?gameId="+O+'">Preview</a>';}}else{if(K=="live"){if(J[0]=="1"){P=D(I,O);}else{if(J[2]=="1"){P='<a name="&lpos=page1ts&lid='+I+"_boxscore_"+O+'" href="/'+I+"/boxscore?gameId="+O+'">Box Score</a>';}}}else{if(K=="final"){if(J[1]=="1"){P='<a name="&lpos=page1ts&lid='+I+"_recap_"+O+'" href="/'+I+"/recap?gameId="+O+'">Recap</a>';}else{if(J[2]=="1"){P='<a name="&lpos=page1ts&lid='+I+"_boxscore_"+O+'" href="/'+I+"/boxscore?gameId="+O+'">Box Score</a>';}}}}}}else{if(K=="pregame"){if(I=="nfl"){P='<a name="&lpos=page1ts&lid='+I+"_preview_"+O+'" href="/'+I+"/nflpreview?gameId="+O+'">Preview</a>';}else{P='<a name="&lpos=page1ts&lid='+I+"_preview_"+O+'" href="/'+I+"/preview?gameId="+O+'">Preview</a>';}}else{if(K=="live"){P=D(I,O);}else{if(K=="final"){P='<a name="&lpos=page1ts&lid='+I+"_recap_"+O+'" href="/'+I+"/recap?gameId="+O+'">Recap</a>';}}}}return P;}function D(K,I){var J="";var H="/"+K+"/gamecast?gameId="+I;if(K=="nfl"||K=="ncf"){J='<a href="#" name="&lpos=page1ts&lid='+K+"_gamecast_"+I+'" onclick="window.open(\''+H+"','Popup','width=780,height=590,scrollbars=no,resizable=no'); return false;\">GameCast</a>";}else{if(K=="nba"){J='<a href="#" name="&lpos=page1ts&lid='+K+"_gamecast_"+I+'" onclick="window.open(\''+H+"','Popup','width=870,height=590,scrollbars=no,resizable=no'); return false;\">GameCast</a>";}else{if(K=="mlb"){J='<a href="#" name="&lpos=page1ts&lid='+K+"_gamecast_"+I+'" onclick="window.open(\''+H+"','Popup','width=960,height=603,scrollbars=no,resizable=no'); return false;\">GameCast</a>";}else{if(K=="nhl"){J='<a name="&lpos=page1ts&lid='+K+"_gamecast_"+I+'" href="/'+K+"/gamecast?gameId="+I+'">GameCast</a>';}}}}return J;}function G(I){var H="pregame";if(I==2||I>=21){H="live";}else{if(I==3||I==4||I==5){H="final";}}return H;}var C,B,A=function(Q){if(typeof window.sbMaster==="undefined"){return false;}C=Q.list||Q;B=F("#top-stories").find("div.scoreboard");if(B.length>0){var R=window.sbMaster.sports;var M,K,O,I;var L=B.metadata();var J=L.sport;var H=L.league;var N=L.gameId;R=jQuery.grep(R,function(T,S){return(T.sport===J&&T.leagues);});M=jQuery.grep(R[0].leagues,function(T,S){return(T.league===H);});K=jQuery.grep(M[0].games,function(T,S){return T.gameId===N;});O=K[0];I="";if(O!=null){var P="";P=E(O.settings,O.status,J,O.gameId,O.away.id,O.away.id);I+='<div class="mod-ts-scoreboard">';I+='<div class="transparent-background" style="width:100%"></div>';I+='<ul class="scores">';I+="<li>"+O.away.name+"<span>"+O.away.score+"</span></li>";I+="<li>"+O.home.name+"<span>"+O.home.score+"</span></li>";I+="</ul>";I+='<ul class="details">';I+="<li>"+O.statusText+" "+((O.clock!==undefined)?O.clock:"")+"</li>";I+="<li>"+P+"</li>";I+="</ul>";I+="</div>";}F("div.mod-ts-scoreboard").replaceWith(I);}};F.subscribe("espn.carousel.init",function(H){A(H);});F.subscribe("espn.carousel.show.story.load",function(H){A(H);});})(jQuery);var FSR={version:"6.0.0",date:"03/22/2010",enabled:true,auto:true,encode:true,files:"http://assets.espn.go.com/prod/scripts/foresee_v3/",id:"/AbwYjda91Prw82Rqu0bbw==",sites:[{path:/\w+-?\w+\.(com|org|edu|gov|net)/},{path:".",domain:"default"}]};function fsr$setAlive(){var B=new Date().getTime();document.cookie="fsr.a="+B+";path=/"+((FSR.site.domain)?";domain="+FSR.site.domain+";":";");}(function(){if(window!=window.top){return ;}function P(A){if(typeof A=="object"){var B=A.constructor.toString().match(/array/i);return(B!=null);}return false;}var N=FSR.sites;for(var Q=0,J=N.length;Q<J;Q++){var L;if(!P(N[Q].path)){N[Q].path=[N[Q].path];}for(var R=0,K=N[Q].path.length;R<K;R++){if(L=document.location.href.match(N[Q].path[R])){FSR.siteid=Q;FSR.site=FSR.sites[FSR.siteid];if(!FSR.site.domain){FSR.site.domain=L[0];}else{if(FSR.site.domain=="default"){FSR.site.domain=false;}}if(!FSR.site.name){FSR.site.name=L[0];}var M=["files","js_files","image_files","html_files"];for(var Q=0,O=M.length;Q<O;Q++){if(FSR.site[M[Q]]){FSR[M[Q]]=FSR.site[M[Q]];}}break;}}if(L){break;}}if(!window["fsr$timer"]){fsr$setAlive();window["fsr$timer"]=setInterval(fsr$setAlive,1000);}})();(function(Ah){var U=this,Y;U.ESPNfpScoreboard={};ESPNfpScoreboard.activeSport="";ESPNfpScoreboard.descriptions=[];ESPNfpScoreboard.myTeams=[];ESPNfpScoreboard.addGame=function(A2,A1){if(ESPNfpScoreboard.myTeams[A2]===undefined){ESPNfpScoreboard.myTeams[A2]=[];}ESPNfpScoreboard.myTeams[A2].push(A1);};ESPNfpScoreboard.removeGame=function(A3,A2){var A1=ESPNfpScoreboard.myTeams[A3];if(A1!==undefined){var A4=A1.length;while(A4--){if(A1[A4]==A2){A1.splice(A4,1);}}}};ESPNfpScoreboard.myPlayers=[];ESPNfpScoreboard.created=false;ESPNfpScoreboard.settings={};var AL=false,B="http://a.espncdn.com",G={},Ax=false,Av=861,Ad="",Aj="http://scores.espn.go.com",v="http://espn.go.com/video/clip?id=",m=[],Ap=0,As="scoreboard",AZ=[],O=false,AH=false,g=false,I=false,A="",p,AD="",L=false,n=false,AR=true,b="espn.go.com/aggregator/cached/tea/caster/snapshot",X="core.caster.espn.go.com",AJ="80",e={},k=false,c="",Ao=[{playerId:"0",name:"",position:"",points:""},{playerId:"0",name:"",position:"",points:""},{playerId:"0",name:"",position:"",points:""}],AE={},Ay=0,Aw=false,j="",P={add:[],highlight:[]};var Au=jQuery.cookie("broadbandAccess");if(Au!==null&&Au.indexOf("espn3-true")!==-1){O=true;g=true;}Ah.subscribe("espn.espn3.affiliate",function(){var A1=jQuery.cookie("broadbandAccess");if(A1!==null&&A1.indexOf("espn3-true")!==-1){O=true;T();}});function T(){if(!g&&O){var A3=Ah("#"+As);var A7=AZ.length;while(A7--){var BA=m[AZ[A7]];if(BA!==undefined&&BA.on360){var A2=BA.status;var A6=AT(A2);if(A6=="live"){var A9=BA.key;var A8=A3.find("#"+A9);var A1=A8.find(".game-links");var A5=A9.split("-");var A4=A5[0];var BC=A5[1];var BB=Al(A6,A4,BC);if(A1.html()!=BB){A1.html(BB);A8.find(".hidden-links").html(BB);}}}}g=true;}}if(Ax){Ad="/deportes";Aj="http://espndeportes.espn.go.com";}"espn.core.init".namespace();espn.core.init.scoreboard=function(){if(window.sbMaster.timezoneOffset!==undefined){Ap=window.sbMaster.timezoneOffset;}if(window.sbMaster.localTeams!==undefined){I=true;p=window.sbMaster.localTeams;}Q(window.sbMaster);};function u(A1){return A1;}function Ab(A1,A2){return A1;}function N(){if(typeof window.sbMaster!=="undefined"){clearInterval(Y);Q(window.sbMaster);}}function E(A5){if(A5.target.tagName.toLowerCase()=="a"){var A6=A5.target.name,A1=A5.target.rel,A2="page1sb",A3="popup";if(A6!==undefined){var A4=A6.replace(new RegExp("&lpos=","g"),"").replace(new RegExp("&lid=","g"),"|").split("|");if(A4.length==2){A2=A4[0];A3=A4[1];}}if(A1=="nflgamecast"||A1=="ncfgamecast"){window.open(""+A5.target.href,"","width=944,height=604,scrollbars=no,resizable=no");AN(A5.target,A2,A3,true);return false;}else{if(A1=="nbagamecast"){window.open(""+A5.target.href,"","width=870,height=590,scrollbars=no,resizable=no");AN(A5.target,A2,A3,true);return false;}else{if(A1=="mlbgamecast"||A1=="baseballgamecast"){window.open(""+A5.target.href,"","width=960,height=603,scrollbars=no,resizable=no");AN(A5.target,A2,A3,true);return false;}else{if(A1=="racecast"){window.open(""+A5.target.href,"","width=780,height=690,scrollbars=no,resizable=no");AN(A5.target,A2,A3,true);return false;}else{if(A1=="espn360"){var A7=A5.target.href;if(screen.width>1024&&screen.height>800){window.open(A7,"","resize=yes,status=0,top=0,left=0,width=1130,height=800,directories=no");}else{A7+="&size=condensed";window.open(A7,"","resize=yes,status=0,top=0,left=0,width=955,height=680,directories=no");}AN(A5.target,A2,A3,true);return false;}else{if(A1=="mmod"){window.open("http://mmod.ncaa.com/video","mmodvideo","resizable=0, scrollbars=0, directories=0, location=0, menubar=0, status=0, toolbar=0, width=1000, height=640");AN(A5.target,"p1livewindow","mmod",true);return false;}}}}}}}}function AT(A1){if(A1==1||A1==6){return"pregame";}else{if(A1==2||A1>=21||A1==7){return"live";}else{if(A1==3||A1==4||A1==5){return"final";}}}return"pregame";}function M(A1,A4,A5,BF){if(A5!=null&&A5.length>0){var A7="",BA="",A9=A5.length,BD=A1.metadata();if(BD!==undefined&&BD.number!==undefined&&!isNaN(BD.number)&&BD.number>0&&BD.number<=4){A9=BD.number;}for(var A6=0,A3=A5.length;A6<A3;A6++){var BE=A5[A6];var BC=A4+"-"+BE.gameId;if(BE.settings!=undefined){ESPNfpScoreboard.settings[BC]=BE.settings.split("|");}ESPNfpScoreboard.addGame(BF+"-"+BE.home.id,A4+"-"+BE.gameId);ESPNfpScoreboard.addGame(BF+"-"+BE.away.id,A4+"-"+BE.gameId);G[BC]=1;A7+=AY(BE,A9,A4,BC,BA,A6);BA="";}var BB="medium-event",A2="<ul>",A8="</ul>";if(A9<=2){BB="large-event";A2=A8="";}A1.addClass(BB).html(A2+A7+A8);}}function AY(BL,A4,A7,BP,A2,BH){if(A4>=4){A4=4;}var BB=BL.home.name;if(A4==1&&BL.home.nickname!==undefined&&BL.home.location!==undefined){BB='<div class="location">'+BL.home.location+'</div><div class="nickname">'+BL.home.nickname+"</div>";}var BN=BL.away.name;if(A4==1&&BL.away.nickname!==undefined&&BL.away.location!==undefined){BN='<div class="location">'+BL.away.location+'</div><div class="nickname">'+BL.away.nickname+"</div>";}var BI=BL.statusText;var BG=BL.status;if(BI=="F"){BI="Final";}if(Ap!=0&&BG==1&&BL.date!=undefined){var A8=Af(BL.date);BI=Ae(A8)+" "+AM(A8);}var BC=AT(BG);var BD="";if(BL.clock!=undefined){BD=BL.clock;}var BE="";var BA="";if(BG==3){var BO=Az(A7,BL.home.score,BL.away.score);if(BO=="home"){BA=" winner";}else{if(BO=="away"){BE=" winner";}}}var BF="";if(BL.tv!==undefined){BF=BL.tv;}var BK=Al(BC,A7,BL.gameId);if(A4<=2){BK=BK.replace(new RegExp("&nbsp;","g"),"");BK=BK.replace(new RegExp("</a>","g")," &#187;</a>");}var A9="";if(BL.details!=undefined){A9=BL.details;}var BM="";if(BC=="pregame"){BM='<div class="versus">vs</div>';}var A6=BL.home.id,A1=BL.away.id,BJ=" logo-"+A7+"-small "+A7+"-small-"+A6,A3=" logo-"+A7+"-small "+A7+"-small-"+A1;if(I){if(p[A7+"-"+A6]!==undefined){isLocal=true;AH=true;BH=(p[A7+"-"+A6]/1000);}else{if(p[A7+"-"+BL.away.id]!==undefined){isLocal=true;AH=true;BH=(p[A7+"-"+A1]/1000);}}}var A5="";if(A4<=2){A5='<div class="game-'+A4+" "+A2+" "+BC+'" id="'+BP+'"><div class="away"><div class="logo'+A3+'"></div><div class="name">'+BN+'</div><div class="info'+BE+'"></div></div><div class="game-status '+A7+'"><div class="score away-score">'+BL.away.score+'</div><div class="middle">'+BM+'<div class="status">'+BI+'</div><div class="clock">'+BD+'</div></div><div class="score home-score">'+BL.home.score+'</div></div><div class="home"><div class="logo'+BJ+'"></div><div class="info'+BA+'"></div><div class="name">'+BB+'</div></div><div class="info-container"><div class="details">'+A9+'</div><div class="tv">'+BF+'</div><span class="sort">'+BH+'</span></div><div class="links">'+BK+"</div></div>";}else{A5='<li class="game-'+A4+" "+A2+" "+BC+'" id="'+BP+'"><div class="game-links">'+BK+'</div><div class="game-container"><div class="game-status"><span class="status">'+BI+'</span>&nbsp;&nbsp;<span class="clock">'+BD+'</span></div><div class="details">'+A9+'</div><div class="away"><div class="logo'+A3+'"></div><div class="name">'+BN+'</div><div class="info'+BE+'"></div></div><div class="middle">'+BM+'<span class="score away-score">'+BL.away.score+'</span><span class="score"> - </span><span class="score home-score">'+BL.home.score+'</span></div><div class="home"><div class="logo'+BJ+'"></div><div class="info'+BA+'"></div><div class="name">'+BB+'</div></div></div><span class="sort">'+BH+"</span></li>";}return A5;}function w(A3,A5,A2,A4,A1){return(function(){var A8=false;if(A4.hasClass("game-2")||A4.hasClass("game-1")){A8=true;}for(var BE in A1){if(BE!=null&&BE!="objId"&&A1[BE]!=null){var BL=A1[BE];if(BE=="1"){A4.find(".clock").html(BL);}else{if(BE=="2"){var A7=parseInt(BL,10);var BF=AT(A7);var BM=Al(BF,A5,A2);var BJ=".game-links";if(A8){BJ=".links";BM=BM.replace(new RegExp("&nbsp;","g"),"");BM=BM.replace(new RegExp("</a>","g")," &#187;</a>");}var BB=A4.find(BJ);if(BB.html()!=BM){BB.html(BM);}if(A7!=2){A4.find(".clock").html("");}A4.removeClass("pregame live final").addClass(BF);var BI="";if(A7==3){var A6=A4.find(".home-score").html();var BD=A4.find(".away-score").html();var BH=Az(A5,A6,BD);A4.find("."+BH).find(".info").addClass("winner");}}else{if(BE=="3"){var A9=BL;if(A9=="F"){A9="Final";}A4.find(".status").html(Ab(A9,A5));}else{if(BE=="4"){var BG=A4.find(".home-score");if(A3=="update"){BG.html(BL);}else{BG.html(BL).addClass("highlight");var BA=Z(BG);var BK=setTimeout(BA,5000);}}else{if(BE=="5"){var BG=A4.find(".away-score");if(A3=="update"){BG.html(BL);}else{BG.html(BL).addClass("highlight");var BA=Z(BG);var BK=setTimeout(BA,5000);}}else{if(BE=="6"){if(BL=="1"){Ah(".info",A4).removeClass("poss");Ah(".away .info",A4).addClass("poss");}}else{if(BE=="7"){if(BL=="1"){Ah(".info",A4).removeClass("poss");Ah(".home .info",A4).addClass("poss");}}else{if(BE=="9"){var BC;ESPNfpScoreboard.settings[A5+"-"+A2]=BC=BL.split("|");var BF="pregame";if(A4.hasClass("live")){BF="live";}else{if(A4.hasClass("final")){BF="final";}}var BM=Al(BF,A5,A2);var BJ=".game-links";if(A8){BJ=".links";BM=BM.replace(new RegExp("&nbsp;","g"),"");BM=BM.replace(new RegExp("</a>","g")," &#187;</a>");}var BB=A4.find(BJ);if(BB.html()!=BM){BB.html(BM);}}else{if(BE=="10"){A4.find(".details").html(BL);}}}}}}}}}}}});}var Q=function(Bl){if(ESPNfpScoreboard.created){return ;}if(Bl.snapshotId==undefined){return ;}if(window.Jiffy){Jiffy.mark("makeScoreboardStart");}ESPNfpScoreboard.created=true;var A4=Ah("#"+As);var Bc=Ah(".ui-tabs-selected a:first",A4);var Bm=Bc.metadata();var BK="";if(Bm.sport=="rpm"){BK=' rel="racecast"';}Bc.after(Ah('<a class="fullLink" name="'+Bm.name+'"'+BK+' href="'+Bm.url+'">'+Bm.text+"</a>"));ESPNfpScoreboard.activeSport=Bm.sport;Ah(".mod-header",A4).tabs({disabled:[],select:function(Bq,Bs){var Br=Ah(Bs.tab).metadata();if(Br.sport+""!=ESPNfpScoreboard.activeSport+""){Ah(".fullLink",A4).remove();var Bo="";if(Br.sport=="rpm"){Bo=' rel="racecast"';}Ah(Bs.tab).after(Ah('<a class="fullLink" name="'+Br.name+'"'+Bo+' href="'+Br.url+'">'+Br.text+"</a>"));var Bp="";if(ESPNfpScoreboard.descriptions[Br.sport]!=undefined){Bp=ESPNfpScoreboard.descriptions[Br.sport];}ESPNfpScoreboard.activeSport=Br.sport;Ah("#scores-description").html(Bp);Am();if(Ah(Bs.panel).hasClass("event")){Ah("#scoreboard .mod-container .container").addClass("scores-hide");}else{Ah("#scoreboard .mod-container .container").removeClass("scores-hide");}AN(Bs.tab,"page1sb",ESPNfpScoreboard.activeSport+"_tab",true);}},show:function(Bo,Bp){if(Ah.browser.mozilla&&Ah.browser.version.substr(0,3)=="1.8"){Ah("#"+ESPNfpScoreboard.activeSport+"-scores .game").each(function(){Ah(this).find(".game-status:first").width(this.clientWidth);});}}});if(parseFloat(jQuery.ui.version,10)>1.7){var BF=A4.find("a[rel=sbtab]"),Bj=BF.length,A8=BF.closest(".ui-tabs-selected").index();if(Bj>1){Ah(".mod-header",A4).tabs("select",(A8===Bj-1)?A8-1:A8+1).tabs("select",A8);}}A4.click(E);Ah("#scoreboard .mod-content li").live("mouseover",function(){var Bo=Ah(this);var Bp=Bo.find(".game").css("visibility","hidden");Bo.find(".game-links").css({display:"block",width:Bp.innerWidth()+"px"});});Ah("#scoreboard .mod-content li").live("mouseout",function(){var Bo=Ah(this);Bo.find(".game-links").css("display","none");Bo.find(".game").css("visibility","visible");});Ah("#scoreboard .medium-event li").live("mouseover",function(){var Bo=Ah(this);Bo.find(".game-container").hide();Bo.find(".game-links").show();});Ah("#scoreboard .medium-event li").live("mouseout",function(){var Bo=Ah(this);Bo.find(".game-links").hide();Bo.find(".game-container").show();});for(var Bh=0,BS=Bl.sports.length;Bh<BS;Bh++){var BB=Bl.sports[Bh].sport;if(Bl.sports[Bh].events!=undefined){for(var Bf=0,BR=Bl.sports[Bh].events.length;Bf<BR;Bf++){var A1="";var Bn=Bl.sports[Bh].events[Bf];ESPNfpScoreboard.descriptions[BB]=Bn.display;var A9=Bn.sportId;if(BB=="cil"){if(Bn.entries!=undefined&&Bn.entries.length>0){for(var Bg=0,BQ=Bn.entries.length;Bg<BQ;Bg++){var A3=Bn.entries[Bg];if(A3!==undefined&&A3.id!==undefined){e[A3.id]={author:A3.status,isHost:A3.pos,comment:A3.display,timestamp:A3.info};}}}}else{if(BB=="nflfantasy"){if(Bn.entries!=undefined&&Bn.entries.length>0){for(var Bg=0,BQ=Bn.entries.length;Bg<BQ;Bg++){var BU=Bn.entries[Bg];var Bi=Ao[Bg];if(Bi!==undefined){Bi.playerId=BU.pos;Bi.name=BU.display;Bi.position=BU.status;Bi.points=BU.info;Ao[Bg]=Bi;}}}}}var Bb=Ah("#"+BB+"-scores");if(Bb.length==0){continue;}for(var Bg=0,BQ=Bn.entries.length;Bg<BQ;Bg++){var BU=Bn.entries[Bg];var BT="live";var BL=Ab(BU.status);var BC=BU.fn+"<br />"+BU.ln;var BE="";var Bk="";var A2="";var A7="</div>&nbsp;</div>";var BZ="";var BJ="";var A6=BU.id;if(BB=="rpm"){ESPNfpScoreboard.myPlayers[A9+"-"+BU.id]=BB+"-"+BU.id;BZ=BU.pos;BE='<a name="&lpos=page1sb&lid='+BB+"_profile_"+BU.id+'" href="'+Aj+"/rpm"+Ad+"/driver?driverId="+BU.id+'">&nbsp;'+u("Driver Card")+"</a>&nbsp;";if(Bl.sports[Bh].status=="3"&&Bg==0){Bk=" flag";}}else{if(BB=="pga"){ESPNfpScoreboard.myPlayers[A9+"-"+BU.id]=BB+"-"+BU.id;BZ=BU.pos;BE='<a name="&lpos=page1sb&lid='+BB+"_scorecard_"+BU.id+'" href="'+Aj+"/golf"+Ad+"/players/scorecards?playerId="+BU.id+"&tournamentId="+Bn.id+'">&nbsp;'+u("Scorecard")+"&nbsp;</a>";BE+='<a name="&lpos=page1sb&lid='+BB+"_profile_"+BU.id+'" href="'+Aj+"/golf"+Ad+"/players/profile?playerId="+BU.id+'">&nbsp;'+u("Player Card")+"&nbsp;</a>";if(BU.display!=undefined){A2='<div class="hidden-scores">'+BU.display+'</div><div class="scores">'+BU.display+"</div>";}if(BU.info!=undefined){A7='<span class="hidden-clock">'+BU.info+'</span></div><div class="game-right"><span class="clock">'+BU.info+"</span></div>&nbsp;</div>";}if(Bg>=8){BJ=' style="display:none;"';}}else{if(S(BB)){var BX=(Bg+1),BN=BU.id,BH=0,A6=BX,BV=AQ(BB);ESPNfpScoreboard.addGame(A9+"-"+BN,BB+"-"+BX);if(BU.status==undefined||BU.status==""){BT="pregame";BL=BX;BC=BU.fn+'<br /><span class="team-name">'+BU.ln+"</span>";}else{BT="final";BL=BX+' <span class="team-name">'+BU.ln+"</span>";BC='<span class="player-name">'+BU.status+"</span><br />";if(BU.display!=undefined&&BU.display!=""){BC+='<span class="college-abbrev">'+BU.display+"</span>";}if(BU.pos!=undefined&&BU.pos!=""){BC+=' (<span class="player-pos">'+BU.pos+"</span>)";}}if(BU.info!=undefined&&BU.info!=0){BH=BU.info;}BE=F(BB,BN,BH);}}}A1+='<li id="'+BB+"-"+A6+'"'+BJ+'><div class="game-links">'+BE+'</div><div class="game '+BT+'"><div class="game-status"><div class="game-left"><span class="status">'+BL+"</span>"+A7+'<div class="clear"></div><div class="game-left"><div class="info'+Bk+'"></div><div class="rank">'+BZ+'</div><div class="teams">'+BC+"</div>"+A2+'</div><div class="clear"></div><span class="sort">'+Bg+'</span><div class="hidden-links">'+BE+'</div><div class="fixed"></div></div></li>';}if(A1!=""){Bb.html("<ul>"+A1+"</ul>");}}}else{if(Bl.sports[Bh].leagues!=undefined){for(var Bf=0,BP=Bl.sports[Bh].leagues.length;Bf<BP;Bf++){var BY=Bl.sports[Bh].leagues[Bf];var A1="";var BA=BY.league;ESPNfpScoreboard.descriptions[BA]=BY.display;var A9=BY.sportId;var Bb=Ah("#"+BA+"-scores");if(Bb.length==0){var Be=BY.games.length;for(var BW=0;BW<Be;BW++){var BI=BY.games[BW];if(BI.settings!=undefined){ESPNfpScoreboard.settings[BB+"-"+BI.gameId]=BI.settings.split("|");}BI.key=BB+"-"+BI.gameId;if(BI.tv!==undefined&&(BI.tv.indexOf("360")!=-1||(BI.tv.length>=5&&BI.tv.substring(BI.tv.length-5)=="ESPN3"))){BI.on360=true;AZ.push(BB+"-"+BI.gameId);}else{BI.on360=false;}m[BB+"-"+BI.gameId]=BI;}var BO=Ah("#"+BA+"-event");if(BO.length>0){M(BO,BB,BY.games,A9);}continue;}for(var Bg=0,BM=BY.games.length;Bg<BM;Bg++){var BI=BY.games[Bg];BI.key=BB+"-"+BI.gameId;if(BI.tv!==undefined&&(BI.tv.indexOf("360")!=-1||(BI.tv.length>=5&&BI.tv.substring(BI.tv.length-5)=="ESPN3"))){BI.on360=true;AZ.push(BB+"-"+BI.gameId);}else{BI.on360=false;}m[BB+"-"+BI.gameId]=BI;var Ba=BI.gameId;if(BB=="tennis"){ESPNfpScoreboard.myPlayers[A9+"-"+BI.home.id]=BB+"-"+Ba;ESPNfpScoreboard.myPlayers[A9+"-"+BI.away.id]=BB+"-"+Ba;}else{ESPNfpScoreboard.addGame(A9+"-"+BI.home.id,BB+"-"+Ba);ESPNfpScoreboard.addGame(A9+"-"+BI.away.id,BB+"-"+Ba);}A1+=AG(BI,BB,AR,Bg+1);}if(A1!=""){Bb.html("<ul>"+A1+"</ul>");}}}}}x();var BG=Ah(".scores-carousel",A4);for(var Bh=BG.length-1;Bh>=0;Bh--){var A5=Ah(BG[Bh]);if(A5.children().length==0){var BD="";if(A5.metadata().note!=undefined){BD=A5.metadata().note;}A5.html('<div style="color:white;text-align:center;position:relative;top:10px;text-transform:uppercase">'+BD+"</div>");}}var Bd;Ah(function(){Bd=setTimeout(AK,15000);});Ah(".scores-prev",A4).bind("click",function(){ESPNfpScoreboard.prev();return false;});Ah(".scores-next",A4).bind("click",function(){ESPNfpScoreboard.next();return false;});Ah(".scores-prev",A4).hover(function(){Ah(this).addClass("scores-prev-hover");},function(){Ah(this).removeClass("scores-prev-hover");});Ah(".scores-next",A4).hover(function(){Ah(this).addClass("scores-next-hover");},function(){Ah(this).removeClass("scores-next-hover");});var BD="";if(ESPNfpScoreboard.descriptions[ESPNfpScoreboard.activeSport]!=undefined){BD=ESPNfpScoreboard.descriptions[ESPNfpScoreboard.activeSport];}Ah("#scores-description").html(BD);Am();if(Ah.browser.mozilla&&Ah.browser.version.substr(0,3)=="1.8"){Ah("#"+ESPNfpScoreboard.activeSport+"-scores .game").each(function(){Ah(this).find(".game-status:first").width(this.clientWidth);});}L=true;if(n){AO();}if(window.Jiffy){Jiffy.measure("makeScoreboardEnd","makeScoreboardStart");}};function AG(BU,BC,BG,BJ,BT){var A7=BU.gameId;var BP="";if(BU.away.rank!=undefined){BP=BU.away.rank;}var BH="";if(BU.home.rank!=undefined){BH=BU.home.rank;}var BM=BU.home.name;var BQ=BU.home.score;var BA=BU.home.id;var BW=BU.away.name;var A5=BU.away.score;var A2=BU.away.id;var BO=false;var BB=false;var BX;if(BU.settings!=undefined){ESPNfpScoreboard.settings[BC+"-"+A7]=BX=BU.settings.split("|");if(BX.length>=5){if(BX[4]=="1"){BB=true;BJ=0;}}}if(I){if(p[BC+"-"+BA]!==undefined){BO=true;AH=true;BJ=(p[BC+"-"+BA]/1000);}else{if(p[BC+"-"+A2]!==undefined){BO=true;AH=true;BJ=(p[BC+"-"+A2]/1000);}}}if(BG&&!BO&&!BB){if(BC=="ncb"||BC=="ncw"){if(BP==""&&BH==""){return"";}}}var BI="";if(BT!==undefined&&BT){BI=" my";}else{if(BB){BI=" featured";}}var BS=BU.statusText;var BR=BU.status;var BL="";var BN="";if(BU.clock!=undefined){BN=BU.clock;if(BC=="tennis"){BN=Ab(BN,"tennisClock");}}if(BS=="F"){BS="Final";}BS=Ab(BS,BC);if(Ap!=0&&BR==1&&BU.date!=undefined){var BF=Af(BU.date);BS=Ae(BF)+" "+AM(BF);}var A3="";var BK=AT(BR);var A4=Al(BK,BC,A7,BA,A2);if(BC=="tennis"){A4='<a name="&lpos=page1sb&lid=tennis_player-card_'+A2+'" href="'+Aj+"/sports/tennis"+Ad+"/players/profile?playerId="+A2+'">&nbsp;'+BW+"&nbsp;</a>";A4+='<a name="&lpos=page1sb&lid=tennis_player-card_'+BA+'" href="'+Aj+"/sports/tennis"+Ad+"/players/profile?playerId="+BA+'">&nbsp;'+BM+"&nbsp;</a>";}else{if(d(BC)){if(BK=="live"){A3=" border";}var A8="";var A1="";if(BU.bases!=undefined){A1=" bases-"+BU.bases;}if(BX!=undefined&&BX[0]=="0"){A8+=' style="display:none;"';A3="";}BL='<div class="bases'+A1+'"'+A8+"></div>";}}var A6='<span class="away">'+BW+'</span><br /><span class="home">'+BM+"</span>";var A9='<span class="away">'+A5+'</span><br /><span class="home">'+BQ+"</span>";var BE="";if(BP!=""||BH!=""){BE='<div class="rank">'+BP+"<br />"+BH+"</div>";}var BD="";if(BR==3){var BV=(BC=="tennis")?BU.details:Az(BC,BQ,A5);if(BV=="home"){BD=" home-winner";A6='<span class="away">'+BW+'</span><br /><span class="home winner">'+BM+"</span>";}else{if(BV=="away"){BD=" away-winner";A6='<span class="away winner">'+BW+'</span><br /><span class="home">'+BM+"</span>";}}}else{if(BU.poss){if(BU.poss=="away"){BD=" away-poss";}else{if(BU.poss=="home"){BD=" home-poss";}}}}return'<li id="'+BC+"-"+A7+'"><div class="game-links">'+A4+'</div><div class="game '+BK+BI+'"><div class="game-status"><div class="game-left"><span class="status">'+BS+'</span><span class="hidden-clock">'+BN+'</span></div><div class="game-right"><span class="clock">'+BN+'</span></div>&nbsp;</div><div class="clear"></div><div class="game-left'+A3+'"><div class="info'+BD+'"></div>'+BE+'<div class="teams">'+A6+'</div><div class="hidden-scores">'+A9+'</div><div class="scores">'+A9+"</div></div>"+BL+'<div class="clear"></div><span class="sort">'+BJ+'</span><div class="hidden-links">'+A4+"</div></div></li>";}function AK(){Ah.ajax({type:"GET",url:"/aggregator/cached/tea/update?rand="+new Date().getTime(),dataType:"json",success:function(A4){var A3=A4.snapshotId;Ay=A3;ESPNfpScoreboard.handleCasterMessage("update",A4.snapshots);var A2=swfobject.getFlashPlayerVersion();if(A2!==undefined&&A2.major!==undefined&&A2.major>=8){var A1=new flashObj();A1.flashFile="http://assets.espn.go.com/swf/caster/snapshotCasterClientv2.swf";A1.flashVars="jsFunction=ESPNfpScoreboard.handleCasterMessage&sessionName=uber-games&duration=15000&pollMode=absolute&baseURL="+b+"&host="+X+"&port="+AJ+"&currentSnapshotId="+A3;A1.wmode="window";A1.width="1";A1.height="1";A1.quality="best";A1.FlashVer=8;A1.DenyIEdl="TRUE";A1.cabVersion="8,0,0,0";A1.useDOM=true;A1.targetElement="caster";A1.render(true);}else{o();}AL=true;Am();}});}var Ag=15000;var AV="uber-games";var R;function o(){var A1="/aggregator/cached/tea/caster/json?sessionId="+AV+"&masterSnap="+Ay+"&rand="+new Date().getTime();Ah.ajax({type:"GET",url:A1,dataType:"json",success:function(A2){if(A2!==undefined&&A2.snapshotId!==undefined){ESPNfpScoreboard.handleCasterMessage(A2.snapshotId,A2.snapshots);Ay=A2.snapshotId;}R=setTimeout(o,Ag);},error:function(){R=setTimeout(o,Ag);}});}function Az(A3,A1,A2){A1=parseInt(A1,10);A2=parseInt(A2,10);if(A1>A2){return"home";}else{if(A2>A1){return"away";}}return"tie";}function Z(A2,A1){if(A1===undefined){A1="highlight";}return(function(){A2.removeClass(A1);});}function H(A2,A4,A1,A3){return(function(){for(var A7 in A1){if(A1.objId!=null&&A7!=null&&A1[A7]!=null&&A7!="objId"){if(A7=="0"){Ah(".rank",A2).html(A1[A7]);}else{if(A7=="1"){Ah(".status",A2).html(Ab(A1[A7]));}else{if(A7=="2"){var A5=Ah(".scores",A2);if(A3=="update"){A5.html(A1[A7]);}else{A5.html(A1[A7]).addClass("highlight");var A6=Z(A5);var A8=setTimeout(A6,8000);}Ah(".hidden-scores",A2).html(A1[A7]);}else{if(A7=="3"){Ah(".clock",A2).html(A1[A7]);Ah(".hidden-clock",A2).html(A1[A7]);}else{if(A7=="4"){if(A4=="pga"||!Ah(".game",A2).hasClass("my")){Ah(".sort",A2).html(A1[A7]);}}}}}}}}});}function S(A1){return(A1.indexOf("draft")>=0);}function AS(A2){var A1={nbadraft:46,nfldraft:28};return A1[A2];}function AQ(A2){var A1={nfldraft:"nfl",nbadraft:"nba"};return A1[A2];}function AI(A4,A2,A3,A1){return(function(){if(A1["0"]!==undefined){var BC=A1["0"].split("|");if(BC.length>=7){var A5=BC[0],A8=BC[1],BE=BC[2],A6=BC[3],BF=BC[4],BG=BC[5],BB=BC[6];var A9="pregame";var A7="";var BA=A3.attr("teamid");if(BB!=BA){var BJ=AS(A4);var BH=BJ+"-"+BB;var BD=BJ+"-"+BA;ESPNfpScoreboard.removeGame(BD,A4+"-"+A2);ESPNfpScoreboard.addGame(BH,A4+"-"+A2);A3.find(".game").removeClass("my");A3.find(".sort").html(A2);A3.attr("teamid",BB);x();}if(A6=="0"){A9="pregame";A3.find(".teams").html(BF+'<br /><span class="team-name">'+BG+"</span>");A3.find(".status").html(A2);}else{A9="final";A7='<span class="player-name">'+A8+"</span><br />";A7+='<span class="college-abbrev">'+BE+"</span>";A7+=' (<span class="player-pos">'+A5+"</span>)";A3.find(".teams").html(A7);A3.find(".status").html(A2+' <span class="team-name">'+BG+"</span>");}A3.find(".game").removeClass("pregame final").addClass(A9);var BI=F(A4,BB,A6);if(BI!=""&&Ah(".game-links",A3).html()!=BI){Ah(".game-links",A3).html(BI);Ah(".hidden-links",A3).html(BI);}}}});}function F(A5,A4,A2){var A3=AQ(A5);var A1="";if(A5=="nfldraft"){if(A2!=undefined&&A2!=null&&A2!="0"){A1+='<a name="&lpos=page1sb&lid='+A5+"_profile_"+A2+'" href="http://insider.espn.go.com/'+A3+"/draft/player?id="+A2+'">&nbsp;'+u("Player Card")+"&nbsp;</a>";}A1+='<a name="&lpos=page1sb&lid='+A5+"_teampicks_"+A4+'" href="http://insider.espn.go.com/'+A3+"/draft/teams?teamId="+A4+'">&nbsp;'+u("Team Picks")+"&nbsp;</a>";}else{if(A5=="nbadraft"){if(A2!=undefined&&A2!=null&&A2!="0"){A1+='<a name="&lpos=page1sb&lid='+A5+"_profile_"+A2+'" href="http://insider.espn.go.com/'+A3+"/draft/results/players?id="+A2+'">&nbsp;'+u("Player Card")+"&nbsp;</a>";}A1+='<a name="&lpos=page1sb&lid='+A5+"_teampicks_"+A4+'" href="http://insider.espn.go.com/'+A3+"/draft/results/team?teamId="+A4+'">&nbsp;'+u("Team Picks")+"&nbsp;</a>";}}return A1;}function t(A3,A5,A2,A4,A1){return(function(){for(var BC in A1){if(BC!=null&&BC!="objId"&&A1[BC]!=null){var BI=A1[BC];if(BC=="1"){Ah(".clock",A4).html(BI);Ah(".hidden-clock",A4).html(BI);}else{if(BC=="2"){var A7=parseInt(BI,10);var BD=AT(A7);if(A5!="tennis"){var BJ=Al(BD,A5,A2);if(d(A5)){var BA;if(ESPNfpScoreboard.settings[A5+"-"+A2]!=undefined){BA=ESPNfpScoreboard.settings[A5+"-"+A2];}if(BD=="live"&&BA!=undefined&&BA[0]=="1"){Ah(Ah(".game-left",A4)[1]).addClass("border");}else{Ah(Ah(".game-left",A4)[1]).removeClass("border");}}if(Ah(".game-links",A4).html()!=BJ){Ah(".game-links",A4).html(BJ);Ah(".hidden-links",A4).html(BJ);}}if(A7!=2&&A5!="tennis"&&!d(A5)){Ah(".clock",A4).html("");Ah(".hidden-clock",A4).html("");}Ah(".game",A4).removeClass("pregame live final").addClass(BD);var BG="";if(A7==3){var A6=Ah(".scores .home",A4).html();var BB=Ah(".scores .away",A4).html();if(A5!="tennis"){var BF=Az(A5,A6,BB);if(BF=="home"){BG="home-winner";Ah(".teams .home",A4).addClass("winner");}else{if(BF=="away"){BG="away-winner";Ah(".teams .away",A4).addClass("winner");}}Ah(".info",A4).removeClass().addClass("info "+BG);}}}else{if(BC=="3"){var A8=BI;if(A8=="F"){A8="Final";}Ah(".status",A4).html(Ab(A8,A5));}else{if(BC=="4"){var BE=Ah(".scores .home",A4);if(A3=="update"){BE.html(BI);}else{BE.html(BI).addClass("highlight");var A9=Z(BE);var BH=setTimeout(A9,8000);}Ah(".hidden-scores .home",A4).html(BI);}else{if(BC=="5"){var BE=Ah(".scores .away",A4);if(A3=="update"){BE.html(BI);}else{BE.html(BI).addClass("highlight");var A9=Z(BE);var BH=setTimeout(A9,8000);}Ah(".hidden-scores .away",A4).html(BI);}else{if(BC=="6"){if(BI=="1"){Ah(".info",A4).removeClass().addClass("info away-poss");}}else{if(BC=="7"){if(BI=="1"){Ah(".info",A4).removeClass().addClass("info home-poss");}}else{if(BC=="8"){Ah(".bases",A4).removeClass().addClass("bases bases-"+BI);}else{if(BC=="9"){var BA;ESPNfpScoreboard.settings[A5+"-"+A2]=BA=BI.split("|");var BD="pregame";if(Ah(".game",A4).hasClass("live")){BD="live";}else{if(Ah(".game",A4).hasClass("final")){BD="final";}}if(A5!="tennis"){var BJ=Al(BD,A5,A2);if(Ah(".game-links",A4).html()!=BJ){Ah(".game-links",A4).html(BJ);Ah(".hidden-links",A4).html(BJ);}}if(d(A5)&&BD=="live"&&BA!=undefined){if(BA[0]=="0"){Ah(Ah(".game-left",A4)[1]).removeClass("border");Ah(".bases",A4).hide();}else{if(BA[0]=="1"){Ah(Ah(".game-left",A4)[1]).addClass("border");Ah(".bases",A4).show();}}}}else{if(BC=="10"){if(A5=="tennis"){var BG="";var BF=BI;if(BF=="home"){BG="home-winner";Ah(".teams .home",A4).addClass("winner");}else{if(BF=="away"){BG="away-winner";Ah(".teams .away",A4).addClass("winner");}}Ah(".info",A4).removeClass().addClass("info "+BG);}else{if(d(A5)){Ah(".clock",A4).html(BI);Ah(".hidden-clock",A4).html(BI);}}}}}}}}}}}}}}});}function d(A1){if(A1=="mlb"||A1=="baseball"){return true;}return false;}function An(A2){var A1="";if(A2=="baseball"){A1="ncaa/baseball/cws";}else{A1=A2+Ad;}return A1;}function A0(A6,A4,A5,A3,A2){if(A5===undefined){A5="page1sb";}if(A3!=""&&A2!=""){return'<a name="&lpos='+A5+"&lid="+A6+"_pressbox_"+A4+'" href="'+A2+'">'+A3+"&nbsp;&#187;</a>";}else{if(A6!==undefined&&A4!==undefined){var A1=An(A6);return'<a name="&lpos='+A5+"&lid="+A6+"_pressbox_"+A4+'" href="'+Aj+"/"+A1+"/commentary?gameId="+A4+'">'+u("Join the discussion")+"&nbsp;&#187;</a>";}}return"";}function Al(BD,A8,A5,A2,A7,BH,A9,BC,A3,BF){if(BH===undefined){BH=2;}if(A9===undefined){A9=false;}if(BC===undefined){BC=false;}if(A3===undefined){A3=false;}if(BF===undefined){BF="page1sb";}var A4="";var BA=0;var A1=An(A8);if(A8=="soccer"){if(ESPNfpScoreboard.settings[A8+"-"+A5]!=undefined){var BI=ESPNfpScoreboard.settings[A8+"-"+A5];A8="soccer";var BB=Aj;var A6=Ad;if(Ax){A6="/futbol";}else{BB="http://soccernet.espn.go.com";A6="";}if(BD=="pregame"){if(BI[3]=="1"){A4+='<a name="&lpos='+BF+"&lid="+A8+"_preview_"+A5+'" href="'+BB+A6+"/preview?id="+A5+'">&nbsp;'+u("Preview")+"&nbsp;</a>";BA++;}if(BA<BH&&BI[0]=="1"){A4+='<a rel="'+A8+'gamecast" name="&lpos='+BF+"&lid="+A8+"_gamecast_"+A5+'" href="'+BB+A6+"/gamecast?id="+A5+'">&nbsp;'+u("GameCast")+"&nbsp;</a>";BA++;}}else{if(BD=="live"){if(BI[0]=="1"){A4+='<a rel="'+A8+'gamecast" name="&lpos='+BF+"&lid="+A8+"_gamecast_"+A5+'" href="'+BB+A6+"/gamecast?id="+A5+'">&nbsp;'+u("GameCast")+"&nbsp;</a>";BA++;}if(BA<BH){var BG=m[A8+"-"+A5];if(BG!==undefined&&BG.on360){A4+='<a rel="espn360" name="&lpos='+BF+"&lid="+A8+"_espn360_"+A5+'" href="http://espn.go.com/espn3/player?gameId='+A5+"&league="+Ac(A8)+'">&nbsp;'+u("Watch Live")+"&nbsp;</a>";BA++;}}}else{if(BD=="final"){if(BI[1]=="1"){A4+='<a name="&lpos='+BF+"&lid="+A8+"_report_"+A5+'" href="'+BB+A6+"/report?id="+A5+'">&nbsp;'+u("Report")+"&nbsp;</a>";BA++;}if(BA<BH&&BI[0]=="1"){A4+='<a rel="'+A8+'gamecast" name="&lpos='+BF+"&lid="+A8+"_gamecast_"+A5+'" href="'+BB+A6+"/gamecast?id="+A5+'">&nbsp;'+u("GameCast")+"&nbsp;</a>";BA++;}}}}}return A4;}else{if(A8=="tennis"){if(A7!=undefined&&A2!=undefined){A4+='<a name="&lpos='+BF+"&lid="+A8+"_player-card_"+A7+'" href="'+Aj+"/sports/tennis"+Ad+"/players/profile?playerId="+A7+'">&nbsp;'+u("Player Card")+"&nbsp;</a>";BA++;A4+='<a name="&lpos='+BF+"&lid="+A8+"_player-card_"+A2+'" href="'+Aj+"/sports/tennis"+Ad+"/players/profile?playerId="+A2+'">&nbsp;'+u("Player Card")+"&nbsp;</a>";BA++;}}else{if(ESPNfpScoreboard.settings[A8+"-"+A5]!=undefined){var BG=m[A8+"-"+A5];var BI=ESPNfpScoreboard.settings[A8+"-"+A5];if(BD=="pregame"){if(BI[3]=="1"){if(A8=="nfl"){A4+='<a name="&lpos='+BF+"&lid="+A8+"_preview_"+A5+'" href="'+Aj+"/"+A1+"/nflpreview?gameId="+A5+'">&nbsp;'+u("Preview")+"&nbsp;</a>";}else{A4+='<a name="&lpos='+BF+"&lid="+A8+"_preview_"+A5+'" href="'+Aj+"/"+A1+"/preview?gameId="+A5+'">&nbsp;'+u("Preview")+"&nbsp;</a>";}BA++;}if(BA<BH&&A8=="mlb"&&BG!==undefined&&BG.link!==undefined&&Ax===false){A4+='<a name="&lpos='+BF+"&lid="+A8+"_series_"+A5+'" href="'+BG.link+'">&nbsp;Matchup&nbsp;</a>';BA++;}}else{if(BD=="live"){var BE=true;if(!A9&&O){if(BG!==undefined&&BG.on360){A4+='<a rel="espn360" name="&lpos='+BF+"&lid="+A8+"_espn360_"+A5+'" href="http://espn.go.com/espn3/player?gameId='+A5+"&league="+Ac(A8)+'">&nbsp;'+u("Watch Live")+"&nbsp;</a>";BA++;BE=false;}}if((BH>2||BE)&&BI[0]=="1"){A4+='<a rel="'+A8+'gamecast" name="&lpos='+BF+"&lid="+A8+"_gamecast_"+A5+'" href="'+Aj+"/"+A1+"/gamecast?gameId="+A5+'">&nbsp;'+u("GameCast")+"&nbsp;</a>";BA++;}if(A3&&BA<BH&&BI.length>=6&&BI[5]!="0"){A4+='<a name="&lpos='+BF+"&lid="+A8+"_highlights_"+BI[5]+'" href="'+v+BI[5]+'">&nbsp;'+u("Highlights")+"&nbsp;</a>";BA++;}if(BA<BH&&BI[2]=="1"){A4+='<a name="&lpos='+BF+"&lid="+A8+"_boxscore_"+A5+'" href="'+Aj+"/"+A1+"/boxscore?gameId="+A5+'">&nbsp;'+u("Box Score")+"&nbsp;</a>";BA++;}}else{if(BD=="final"){if(BI[1]=="1"){A4+='<a name="&lpos='+BF+"&lid="+A8+"_recap_"+A5+'" href="'+Aj+"/"+A1+"/recap?gameId="+A5+'">&nbsp;'+u("Recap")+"&nbsp;</a>";BA++;}if(A3&&BA<BH&&BI.length>=6&&BI[5]!="0"){A4+='<a name="&lpos='+BF+"&lid="+A8+"_highlights_"+BI[5]+'" href="'+v+BI[5]+'">&nbsp;'+u("Highlights")+"&nbsp;</a>";BA++;}if(BA<BH&&BI[2]=="1"){A4+='<a name="&lpos='+BF+"&lid="+A8+"_boxscore_"+A5+'" href="'+Aj+"/"+A1+"/boxscore?gameId="+A5+'">&nbsp;'+u("Box Score")+"&nbsp;</a>";BA++;}}}}if(BA<BH&&!Ax&&!BC){A4+='<a name="&lpos='+BF+"&lid="+A8+"_conversation_"+A5+'" href="'+Aj+"/"+A1+"/conversation?gameId="+A5+'">&nbsp;'+u("Conversation")+"&nbsp;</a>";BA++;}}else{if(BD=="pregame"){if(A8=="nfl"){A4='<a name="&lpos='+BF+"&lid="+A8+"_preview_"+A5+'" href="'+Aj+"/"+A1+"/nflpreview?gameId="+A5+'">&nbsp;'+u("Preview")+"&nbsp;</a>";}else{A4='<a name="&lpos='+BF+"&lid="+A8+"_preview_"+A5+'" href="'+Aj+"/"+A1+"/preview?gameId="+A5+'">&nbsp;'+u("Preview")+"&nbsp;</a>";}BA++;}else{if(BD=="live"){var BE=true;if(!A9&&O){var BG=m[A8+"-"+A5];if(BG!==undefined&&BG.on360){A4+='<a rel="espn360" name="&lpos='+BF+"&lid="+A8+"_espn360_"+A5+'" href="http://espn.go.com/espn3/player?gameId='+A5+"&league="+Ac(A8)+'">&nbsp;'+u("Watch Live")+"&nbsp;</a>";BA++;BE=false;}}if(BE){A4+='<a rel="'+A8+'gamecast" name="&lpos='+BF+"&lid="+A8+"_gamecast_"+A5+'" href="'+Aj+"/"+A1+"/gamecast?gameId="+A5+'">&nbsp;'+u("GameCast")+"&nbsp;</a>";BA++;}if(BA<BH){A4+='<a name="&lpos='+BF+"&lid="+A8+"_boxscore_"+A5+'" href="'+Aj+"/"+A1+"/boxscore?gameId="+A5+'">&nbsp;'+u("Box Score")+"&nbsp;</a>";BA++;}}else{if(BD=="final"){A4='<a name="&lpos='+BF+"&lid="+A8+"_recap_"+A5+'" href="'+Aj+"/"+A1+"/recap?gameId="+A5+'">&nbsp;'+u("Recap")+"&nbsp;</a>";BA++;if(BA<BH){A4+='<a name="&lpos='+BF+"&lid="+A8+"_boxscore_"+A5+'" href="'+Aj+"/"+A1+"/boxscore?gameId="+A5+'">&nbsp;'+u("Box Score")+"&nbsp;</a>";BA++;}}}}}}}return A4;}var q={ncb:"ncaam",ncw:"ncaaw",rpm:"nscs",ncf:"ncaaf"};function Ac(A1){if(q[A1]!=undefined){return q[A1];}return A1;}function AA(A2,A4,A3){if(A3===undefined){A3="page1sb";}var A1="";if(O&&A2!==undefined&&A2.on360){A1='<a rel="espn360" class="espn3-link" name="&lpos='+A3+"&lid="+A4+"_espn360_"+A2.gameId+'" href="http://espn.go.com/espn3/player?gameId='+A2.gameId+"&league="+Ac(A4)+'">Watch <span class="red">LIVE!</span></a>';}return A1;}function AU(BR,A5,BC){var A3=m[BR];if(A3!==undefined){var A2=Ah("#ts-"+BR);var BL=false;var BA=false;if(A2.length>0){BL=true;if(A==BR){BA=true;}}var BI,BJ,A4;if(AD!=""){BI=jQuery("#mod-tab-content-top-stories").find("iframe").contents();BJ=BI.find("#mem-"+BR);if(AD==BR){A4=BI.find("#big-"+BR);}}var BE=false;var BG=BR.split("-"),BB="",A8="";if(BG.length==2){BB=BG[0];A8=BG[1];}for(var BK in A5){if(BK!=null&&BK!="objId"&&A5[BK]!=null){var BD=A5[BK];if(BK=="1"){A3.clock=BD;if(BL){A2.find(".clock").html(BD);}if(A4!==undefined){A4.find("li.clock").html(BD);}if(BJ!==undefined){BJ.find("li.clock").html(BD);}}else{if(BK=="2"){A3.status=parseInt(BD,10);var BM=A3.status;var BH=AT(BM);if(BL){if(BH!="pregame"){A2.find(".home-score").html(A3.home.score);A2.find(".away-score").html(A3.away.score);}if(BM!=2){A2.find(".clock").html("");}if(BA){var A1=Al(BH,BB,A8,null,null,2,true,true);A1=A1.replace(new RegExp("&nbsp;","g"),"");A1=A1.replace(new RegExp("</a>","g")," &#187;</a>");A1="<li>"+A1.replace(new RegExp("</a><a","g"),"</a></li><li><a")+"</li>";if(A1.indexOf("<li></li>")!=-1){A1=A1+"<li>&nbsp;</li><li>&nbsp;</li>";}else{if(A1.lastIndexOf("<li>")==0){A1=A1+"<li>&nbsp;</li>";}}A2.find(".game-links").html(A1);if(BM==3){var BQ=Az(BB,A3.home.score,A3.away.score);A2.find("."+BQ+"-score").parent().addClass("winner");}}else{var BP=Al(BH,BB,A8,null,null,1,true);BP=BP.replace(new RegExp("&nbsp;","g"),"");A2.find(".link").html(BP);}}if(A4!==undefined){if(BM!=2){A4.find("li.clock").html("");A3.clock="";}var A1=Al(BH,BB,A8,null,null,3,false,false,true,"p1livewindow");A1=A1.replace(new RegExp("&nbsp;","g"),"");A1=A1.replace(new RegExp("</a>","g"),"&nbsp;&#187;</a>");A4.find("ul.game-links").html("<li>"+A1+"</li>");A4.removeClass("pregame live final").addClass(BH);}if(BJ!==undefined){if(BM!=2){BJ.find("li.clock").html("");}if(BM==3){var BQ=Az(BB,A3.home.score,A3.away.score);BJ.find("tr.team-"+BQ).addClass("winner");}BJ.removeClass("pregame live final").addClass(BH);}}else{if(BK=="3"){if(BD=="F"){BD="Final";}A3.statusText=BD;if(BL){A2.find(".status").html(BD);}if(A4!==undefined){A4.find("li.status").html(BD);}if(BJ!==undefined){if(BD.indexOf(":")!=-1){BD=AF(BD);}BJ.find("li.status").html(BD);}}else{if(BK=="4"){A3.home.score=BD;if(BL){if(BA&&BC!=undefined&&BC!="update"){var BF=A2.find(".home-score");BF.html(BD).addClass("update");var A9=Z(BF,"update");var BO=setTimeout(A9,5000);}else{A2.find(".home-score").html(BD);}}if(A4!==undefined){A4.find("#home").find("div.gc-score").html(BD);}if(BJ!==undefined){BJ.find("tr.team-home").find("td.score").html(BD);}}else{if(BK=="5"){A3.away.score=BD;if(BL){if(BA&&BC!=undefined&&BC!="update"){var BF=A2.find(".away-score");BF.html(BD).addClass("update");var A9=Z(BF,"update");var BO=setTimeout(A9,5000);}else{A2.find(".away-score").html(BD);}}if(A4!==undefined){A4.find("#away").find("div.gc-score").html(BD);}if(BJ!==undefined){BJ.find("tr.team-away").find("td.score").html(BD);}}else{if(BK=="6"){if(BD=="1"){A3.poss="away";if(A4!==undefined){A4.find("div.gc-ball").removeClass("gc-ball-on");A4.find("#away").find("div.gc-ball").addClass("gc-ball-on");A4.find("#drivebox").removeClass("away home").addClass("away");}if(BJ!==undefined){BJ.find("td.info").removeClass("poss");BJ.find("tr.team-away").find("td.info").addClass("poss");}}}else{if(BK=="7"){if(BD=="1"){A3.poss="home";if(A4!==undefined){A4.find("div.gc-ball").removeClass("gc-ball-on");A4.find("#home").find("div.gc-ball").addClass("gc-ball-on");A4.find("#drivebox").removeClass("away home").addClass("home");}if(BJ!==undefined){BJ.find("td.info").removeClass("poss");BJ.find("tr.team-home").find("td.info").addClass("poss");}}}else{if(BK=="8"){A3.bases=parseInt(BD,10);}else{if(BK=="9"){A3.settings=BD;ESPNfpScoreboard.settings[BB+"-"+A8]=BD.split("|");if(BL){var BM=A3.status;var BH=AT(BM);if(BA){var A1=Al(BH,BB,A8,null,null,2,true,true);A1=A1.replace(new RegExp("&nbsp;","g"),"");A1=A1.replace(new RegExp("</a>","g")," &#187;</a>");A1="<li>"+A1.replace(new RegExp("</a><a","g"),"</a></li><li><a")+"</li>";if(A1.indexOf("<li></li>")!=-1){A1=A1+"<li>&nbsp;</li><li>&nbsp;</li>";}else{if(A1.lastIndexOf("<li>")==0){A1=A1+"<li>&nbsp;</li>";}}A2.find(".game-links").html(A1);}else{var BP=Al(BH,BB,A8,null,null,1,true);BP=BP.replace(new RegExp("&nbsp;","g"),"");A2.find(".link").html(BP);}}if(A4!==undefined){var BM=A3.status;var BH=AT(BM);var A1=Al(BH,BB,A8,null,null,3,false,false,true,"p1livewindow");A1=A1.replace(new RegExp("&nbsp;","g"),"");A1=A1.replace(new RegExp("</a>","g"),"&nbsp;&#187;</a>");A4.find("ul.game-links").html("<li>"+A1+"</li>");}}else{if(BK=="10"){A3.details=BD;}else{if(BK>="11"){BE=true;var A7=parseInt(BK,10);if(A3.stats!==undefined){if(A7==11){A3.stats.display=BD;if(A4!==undefined){A4.find("#stat-description span").html(BD);}}else{if(A7>=12&&A7<30){var A6=A7-12;A6=Math.floor(A6/3);if(A7%3==0){var BG=BD.split("|");A3.stats.data[A6].id=BG[0];A3.stats.data[A6].name=BG[1];if(A4!==undefined){A4.find("table.leaders-table td.player-"+A6).html(Aa(BB,BG[0],BG[1]));}}else{if(A7%3==1){A3.stats.data[A6].stat=BD;if(A4!==undefined){A4.find("table.leaders-table td.stat-"+A6).html(BD);}}else{if(A7%3==2){A3.stats.data[A6].stat2=BD;if(A4!==undefined){A4.find("table.leaders-table td.stat2-"+A6).html(BD);}}}}}}}if(A7==30){if(A4!==undefined){if(BD=="1"){A4.find("#drivebox").addClass("redzone");}else{A4.find("#drivebox").removeClass("redzone");}}if(BJ!==undefined){if(BD=="1"){BJ.addClass("redzone");}else{BJ.removeClass("redzone");}}A3.inning=BD;}else{if(A7==31){if(A4!==undefined){A4.find("#downDistance").html(BD);}A3.period=BD;}else{if(A7==32){if(BJ!==undefined){if(BD!="0"){BJ.addClass("video");BJ.find("a.watch-link").attr("href","#"+BD);if(BC!=undefined&&BC!="update"){BJ.find("div.watch-text").addClass("new");}}}A3.quarter=BD;}else{if(A7==33){if(A4!==undefined){var BN=parseInt(BD,10);if(BN!=Number.NaN){textSide="right";if(BN>50){textSide="left";}A4.find("#downDistance").removeClass().addClass(textSide);A4.find("#driveContainer").css("left",z(BN)+"px");}if(BN==0||BN==100){A4.find("#driveContainer").css("display","none");}else{A4.find("#driveContainer").css("display","block");}}A3.link=BD;}}}}}}}}}}}}}}}}}m[BR]=A3;}}function AF(A3){if(A3.indexOf(":")==-1){return A3;}var A7=A3.indexOf(" ");var A5=A3.lastIndexOf(" ");var A4=A3.slice(0,A7);var A2=A3.slice(A7+1,A5);var A6=A3.indexOf("PM");var A1="p";if(A6==-1){A1="a";}return A2+A1;}function J(A2,A7){if(AD==""){return ;}var A5=A2.objId,A8=A5.split("-");if(A8.length==2){var A6=parseInt(A8[1],10);if(A6!=Number.NaN){var A4=Ao[A6];for(var A3 in A2){if(A3!=null&&A3!="objId"&&A2[A3]!=null){var A1=A2[A3];if(A3=="0"){A4.playerId=A1;}else{if(A3=="1"){A4.position=A1;}else{if(A3=="2"){A4.name=A1;}else{if(A3=="3"){A4.points=A1;}}}}}}Ao[A6]=A4;Ah("#mod-tab-content-top-stories").find("iframe").contents().find("#nflfantasy-"+A6).html(D(A4));}}}var AP,K,AB=72,AC=true;function Ar(A2,A6){if(k){return ;}if(A2.objId.length>4){var A5=A2.objId.substring(4);var A4=e[A5];for(var A3 in A2){if(A3!=null&&A3!="objId"&&A2[A3]!=null){var A1=A2[A3];if(A3=="0"){A4.isHost=A1;}else{if(A3=="1"){A4.author=A1;}else{if(A3=="2"){A4.comment=A1;}else{if(A3=="3"){A4.timestamp=A1;}}}}}}e[A5]=A4;AP=Ah("#mod-tab-content-top-stories").find("iframe").contents().find("#cil-message");if(c==A5){AP.stop(true).css("top","0").hide();AC=true;AP.html("<span>"+A4.author+" -</span> "+A4.comment);AP.fadeIn("slow",function(){AP.css("opacity",1);C();});}}}Ah.subscribe("espn.live.window.switchTab",function(A1){if(A1=="mod-tab-pressbox"){C();}});var h,f,At=2000;function C(){if(AP===undefined){AP=Ah("#mod-tab-content-top-stories").find("iframe").contents().find("#cil-message");}K=AP.outerHeight();clearTimeout(h);clearTimeout(f);At=(K/16-3)*1000;if(K>AB){if(AC){f=setTimeout(function(){AP.animate({top:"-"+(K-AB)+"px"},At,"linear",C);AC=false;},3000);}else{h=setTimeout(function(){AP.css("top","0");AC=true;f=setTimeout(function(){AP.animate({top:"-"+(K-AB)+"px"},At,"linear",C);AC=false;},3000);},3000);}}}ESPNfpScoreboard.handleCasterMessage=function(BF,A8){if(window.Jiffy){Jiffy.mark("handleCasterMessageStart");}if(BF=="connectionStatus"||BF=="system"){if(window.Jiffy){Jiffy.measure("handleCasterMessageEnd","handleCasterMessageStart");}return ;}var BA=false;var A1=false;for(var A7=0,A3=A8.length;A7<A3;A7++){var BB=A8[A7]["objId"];if(BB.indexOf("cil-")==0){Ar(A8[A7],BF);continue;}else{if(BB.indexOf("nflfantasy-")==0){J(A8[A7],BF);continue;}}AU(BB,A8[A7],BF);var A9=Ah("#"+BB);if(A9.length==0){continue;}var A2="";var BD="";var A6=BB.split("-");if(A6&&A6.length==2){A2=A6[0];BD=A6[1];}var BE=false;if(G[BB]!=undefined){BE=true;}if(A2=="rpm"||A2=="pga"){var A5=H(A9,A2,A8[A7],BF);var BC=setTimeout(A5,100);if(A2=="rpm"&&BA==false&&A8[A7]["0"]!=undefined){BA=true;}else{if(A2=="pga"&&A1==false&&A8[A7]["4"]!=undefined){A1=true;}}continue;}else{if(S(A2)){var A4=BD;var A5=AI(A2,A4,A9,A8[A7]);var BC=setTimeout(A5,100);continue;}else{if(BE){var A5=w(BF,A2,BD,A9,A8[A7]);var BC=setTimeout(A5,100);}else{var A5=t(BF,A2,BD,A9,A8[A7]);var BC=setTimeout(A5,100);}}}}if(BA){setTimeout(function(){Ah("#rpm-scores li").tsort("div.rank");},100);}if(A1){setTimeout(function(){var BH=Ah("#pga-scores li");BH.tsort("span.sort");for(var BG=BH.length-1;BG>=0;BG--){(BG<8)?Ah(BH[BG]).show():Ah(BH[BG]).hide();}},100);}if(Ah.browser.mozilla&&Ah.browser.version.substr(0,3)=="1.8"){Ah("#"+ESPNfpScoreboard.activeSport+"-scores .game").each(function(){Ah(this).find(".game-status:first").width(this.clientWidth);});}if(window.Jiffy){Jiffy.measure("handleCasterMessageEnd","handleCasterMessageStart");}};ESPNfpScoreboard.next=function(){if(window.Jiffy){Jiffy.mark("scrollScoreboardRightStart");}if(Ah("#"+ESPNfpScoreboard.activeSport+"-scores li").length==0){return ;}var A2=-1*Ah("#"+ESPNfpScoreboard.activeSport+"-scores ul").position().left;var A4=Ah("#"+ESPNfpScoreboard.activeSport+"-scores ul li");for(var A1=0,A3=A4.length;A1<A3;A1++){if((Ah(A4[A1]).position().left+Ah(A4[A1]).outerWidth())>(A2+Av)){if(A3<25){Ah("#"+ESPNfpScoreboard.activeSport+"-scores ul").stop(true,true).animate({left:"-"+Ah(A4[A1]).position().left+"px"},500,function(){Ah(this).css("left","-"+Ah(A4[A1]).position().left+"px");});}else{Ah("#"+ESPNfpScoreboard.activeSport+"-scores ul").css("left","-"+Ah(A4[A1]).position().left+"px");}if(window.Jiffy){Jiffy.measure("scrollScoreboardRightEnd","scrollScoreboardRightStart");}break;}}if(window.Jiffy){Jiffy.measure("scrollScoreboardRightEnd","scrollScoreboardRightStart");}AN(Ah("#scoreboard .scores-next")[0],"page1sb",ESPNfpScoreboard.activeSport+"_rightarrow",true);};ESPNfpScoreboard.prev=function(){if(window.Jiffy){Jiffy.mark("scrollScoreboardLeftStart");}if(Ah("#"+ESPNfpScoreboard.activeSport+"-scores li").length==0){return ;}var A2=-1*Ah("#"+ESPNfpScoreboard.activeSport+"-scores ul").position().left;var A4=Ah("#"+ESPNfpScoreboard.activeSport+"-scores ul li");for(var A1=0,A3=A4.length;A1<A3;A1++){if((Ah(A4[A1]).position().left)>(A2-Av)){if(A3<25){Ah("#"+ESPNfpScoreboard.activeSport+"-scores ul").stop(true,true).animate({left:"-"+Ah(A4[A1]).position().left+"px"},500,function(){Ah(this).css("left","-"+Ah(A4[A1]).position().left+"px");});}else{Ah("#"+ESPNfpScoreboard.activeSport+"-scores ul").css("left","-"+Ah(A4[A1]).position().left+"px");}if(window.Jiffy){Jiffy.measure("scrollScoreboardLeftEnd","scrollScoreboardLeftStart");}break;}}if(window.Jiffy){Jiffy.measure("scrollScoreboardLeftEnd","scrollScoreboardLeftStart");}AN(Ah("#scoreboard .scores-prev")[0],"page1sb",ESPNfpScoreboard.activeSport+"_leftarrow",true);};function Am(){if(!Ax){var A1="Auto Update";if(ESPNfpScoreboard.activeSport=="nfl"){A1="RealTime";}if(AL){Ah("#scores-update").html(A1+": On");}else{Ah("#scores-update").html(A1+": Off");}}}var l={0:"Sun",1:"Mon",2:"Tue",3:"Wed",4:"Thu",5:"Fri",6:"Sat"};function Ae(A1){return l[A1.getDay()];}function Af(A6){if(A6!=null&&A6.length>=12){var A4=parseInt(A6.substring(0,4),10);var A7=parseInt(A6.substring(4,6),10)-1;var A3=parseInt(A6.substring(6,8),10);var A2=parseInt(A6.substring(8,10),10);var A5=parseInt(A6.substring(10,12),10);var A1=new Date(A4,A7,A3,A2,A5).getTime();return new Date(A1+(Ap*3600000));}return new Date();}function AM(A5,A3){if(A3===undefined){A3=false;}var A4="";var A6=A5.getHours();if(A6<12){A4="AM";if(A3){A4="a";}}else{A4="PM";if(A3){A4="p";}}if(A6==0){A6=12;}else{if(A6>12){A6=A6-12;}}var A1=A5.getMinutes()+"";if(A1.length==1){A1="0"+A1;}var A2=" ";if(A3){A2="";}return A6+":"+A1+A2+A4;}function W(A3,A2){var A1=A3.length;while(A1--){if(A3[A1]===A2){return true;}}return false;}function a(A2,A1){return A2.sortValue-A1.sortValue;}function y(){if(Aw&&(P.add.length>0||P.highlight.length>0)){var A8=jQuery("#mod-tab-content-top-stories").find("iframe").contents();var BC=P.highlight;for(var A9=0,A5=BC.length;A9<A5;A9++){var A4=BC[A9];A8.find("#mem-"+A4.key).addClass("my").find(".sort").html(A4.sortValue);}var BE={};var BC=P.add.sort(a);var BA="";for(var A9=0,A5=BC.length;A9<A5;A9++){var A4=BC[A9];var BF=A4.key;var A7=BF.split("-");var A3=A7[0];var BB=m[BF];if(A3==j){if(A8.find("#mem-"+BF).length==0&&BE[BF]===undefined){BE[BF]=1;var A2=true;if(A4.isEdit!==undefined&&BB.my===undefined){A2=false;}BA+=i(BB,A3,A4.sortValue,A2);}}}BE=null;var A1=A8.find("ul.scoreboard");A1.children("#mem-"+AD).removeClass("active");if(BA!=""){A1.prepend(BA);}var A6=A1.children("li");A6=A6.tsort("div.sort");var BG;if(A6.length>0){var BD=Ah(A6[0]);BD.addClass("active");var BF=BD.attr("id").replace(new RegExp("mem-","g"),"");BG=m[BF];if(BG!==undefined){AD=BF;A6.find("#mem-"+AD).addClass("active");A8.find("#game-container").replaceWith(r(BG));}}}}function AW(A4){var BB={};for(var A6=0,A3=A4.length;A6<A3;A6++){var BA=A4[A6];var A9=BA.key;var A8=BA.sortValue;var A5=A9.split("-");var A1=A5[0];var A7=m[A9];A7.my=true;if(BB[A1]===undefined){BB[A1]="";}BB[A1]+=AG(A7,A1,false,A8,true);}for(var A2 in BB){Ah("#"+A2+"-scores").find("ul").prepend(BB[A2]);}BB=null;}var x=function(){if(Ah.myespn){Ah.myespn.init({success:function(A7){var A6=[];var BD=[];var BE=[];if(window.Jiffy){Jiffy.mark("makeMyGamesStart");}var A2=Ah("#"+As);if(A7.myTeams!==undefined){var A8=A7.myTeams.length;var A3=0;while(A8--){A3--;var BB=A7.myTeams[A8].sport+"-"+A7.myTeams[A8].id;var A1=ESPNfpScoreboard.myTeams[BB];if(A1!=undefined){for(var A9=0;A9<A1.length;A9++){var A4=A1[A9];var BA,BF=false;if(G[A4]!=undefined){BF=true;BA=Ah("#"+A4);}else{BA=Ah("#"+A4).find(".game");}if(BA.length==0){if(!W(BE,A4)){BE.push(A4);A6.push({key:A4,sortValue:A3});}}else{BA.addClass("my").find(".sort").html(A3);BD.push({key:A4,sortValue:A3});}AH=true;}}}}if(A7.myPlayers){var A8=A7.myPlayers.length;var A3=0;while(A8--){A3--;var BB=A7.myPlayers[A8].sport+"-"+A7.myPlayers[A8].id;var BC=ESPNfpScoreboard.myPlayers[BB];if(BC!=undefined){var A5=A7.myPlayers[A8].sport;var BA=Ah("#"+BC+" .game");BA.addClass("my");if(A5!="1106"){Ah(".sort",BA).html(A3);}AH=true;}}}BE=null;AW(A6);P.add=A6.concat(P.add);P.highlight=BD;y();if(AH){A2.find(".mod-content li").tsort("span.sort");A2.find("div.large-event").children().tsort("span.sort");A2.find("div.medium-event").children().children().tsort("span.sort");}if(window.Jiffy){Jiffy.measure("makeMyGamesEnd","makeMyGamesStart");}},error:function(){if(AH){Ah("#"+As).find(".mod-content li").tsort("span.sort");Ah("#"+As).find("div.large-event").children().tsort("span.sort");Ah("#"+As).find("div.medium-event").children().children().tsort("span.sort");}}});}};var V=false;function s(){var A1=Ah("#top-stories").find("div.videoplayer-show").find("div.scoreboard");if(A1.length==0){A1=Ah("#mod-tab-content-top-stories").find("div.scoreboard");}if(A1.length>0){if(!V){Ah("#top-stories .mod-ts-scoreboard a").live("click",E);V=true;}var A9=A1.metadata();var A4="";if(A9.sport!==undefined&&A9.gameId!==undefined){var BA=A9.sport+"-"+A9.gameId;var BB=m[BA];if(BB!==undefined){var A6="&nbsp;",A2="&nbsp;",BD="",A3=BB.status,A7=AT(A3),A5=BB.statusText;if(A3==1&&BB.date!=undefined){var A8=Af(BB.date);A5=AM(A8);}var BC=Al(A7,A9.sport,A9.gameId,null,null,1,true);BC=BC.replace(new RegExp("&nbsp;","g"),"");if(A7!="pregame"){A6=BB.away.score;A2=BB.home.score;if(BB.clock!==undefined){BD=BB.clock;}}A4='<div class="mod-ts-scoreboard" id="ts-'+BA+'"><div class="transparent-background" style="width:100%"></div><ul class="scores"><li>'+BB.away.name+'<span class="away-score score">'+A6+"</span></li><li>"+BB.home.name+'<span class="home-score score">'+A2+'</span></li></ul><ul class="details"><li><span class="status">'+A5+'</span> <span class="clock">'+BD+'</span></li><li class="link">'+BC+"</li></ul></div>";}}A1.find("div.mod-ts-scoreboard").replaceWith(A4);}}function Ai(){var A5=Ah("#skirmish-scorebox");if(A5.length>0){var A1=A5.metadata();if(!V){Ah("#top-stories .game-score a").live("click",E);V=true;}var A2="";if(A1.sport!==undefined&&A1.gameId!==undefined){var BI=A1.sport+"-"+A1.gameId;var BF=m[BI];if(BF!==undefined){A=BI;var A4="&nbsp;",BB="&nbsp;",BH="&nbsp;",A8="&nbsp;",BC="",BA="",BJ="",A7="",BD=BF.status,A9=AT(BD),BE=BF.statusText;BH=BF.away.name;A8=BF.home.name;if(BD==1&&BF.date!=undefined){var A6=Af(BF.date);BE=AM(A6);}if(BE=="F"){BE="Final";}var A3=Al(A9,A1.sport,A1.gameId,null,null,2,true,true);A3=A3.replace(new RegExp("&nbsp;","g"),"");A3=A3.replace(new RegExp("</a>","g")," &#187;</a>");A3="<li>"+A3.replace(new RegExp("</a><a","g"),"</a></li><li><a")+"</li>";if(A3.indexOf("<li></li>")!=-1){A3=A3+"<li>&nbsp;</li><li>&nbsp;</li>";}else{if(A3.lastIndexOf("<li>")==0){A3=A3+"<li>&nbsp;</li>";}}if(A9!="pregame"){A4=BF.away.score;BB=BF.home.score;if(BF.clock!==undefined){BA=BF.clock;}}if(BD==3){var BG=Az(A1.sport,BB,A4);if(BG=="home"){A7=' class="winner"';}else{if(BG=="away"){BJ=' class="winner"';}}}if(A9!="final"){if(BF.tv!==undefined){BC="<li><span>"+BF.tv+"</span></li>";}}A2='<div id="ts-'+BI+'" class="game-score"><table><tbody><tr><th>Team</th><th>Score</th></tr><tr'+BJ+'><td class="result"><span>&nbsp;</span></td><td class="team">'+BH+'</td><td class="away-score score">'+A4+"</td></tr><tr"+A7+'><td class="result"><span>&nbsp;</span></td><td class="team">'+A8+'</td><td class="home-score score">'+BB+'</td></tr></tbody></table><div class="game-info"><ul class="game-data">'+BC+'<li class="status">'+BE+'</li><li class="clock">'+BA+'</li></ul><ul class="game-links">'+A3+"</ul></div></div>";}}A5.replaceWith(A2);}}function i(BR,A8,BH,BQ){if(BQ===undefined){BQ=false;}if(BH===undefined){BH=0;}var BL="",BT=BR.away.name,A3=BR.away.score,A1=BR.away.id,BC="",BI=BR.home.name,BM=BR.home.score,A7=BR.home.id,BK="",BP=BR.statusText,BO="",A6="",A5="",BN=BR.status,BF="",BU="",BE="",BB="info",BJ="info",BG=0,A2="";if(BQ){A2=" my";}if(BR.quarter!==undefined){BG=BR.quarter;}if(BR.inning!==undefined&&BR.inning=="1"){BE=" redzone";}if(BR.away.rank!=undefined){BL=BR.away.rank;}if(BR.home.rank!=undefined){BC=BR.home.rank;}if(BR.poss!==undefined){if(BR.poss=="away"){BJ+=" poss";}else{if(BR.poss=="home"){BB+=" poss";}}}if(BR.clock!=undefined){BK=BR.clock;}if(BP=="F"){BP="Final";}A6=AT(BN);if(A6!=""){A6=" "+A6;}if(BN==1&&BR.date!=undefined){var BA=Af(BR.date);BP=AF(BP);BK=Ae(BA);}if(BN==3){var BS=Az(A8,BM,A3);if(BS=="home"){BF=" winner";}else{if(BS=="away"){BU=" winner";}}}if(BG!="0"&&BG!=0){A6+=" video";}var A9="";var A4='<a class="watch-link" href="#'+BG+'">Watch <span class="preview">Preview</span><span class="highlight">Highlights</span></a>';var BD=AA(BR,A8,"p1livewindow");if(BD!=""){A4+=BD;A9=" espn3";}return'<li id="mem-'+BR.key+'" class="game'+A6+BE+A2+A9+'"><div class="background"><table><tbody><tr class="team team-away'+BU+'"><td class="result"><span>&nbsp;</span></td><td class="rank">'+BL+"</td><td><div>"+BT+'</div></td><td class="'+BJ+'"></td><td class="score">'+A3+'</td></tr><tr class="team team-home'+BF+'"><td class="result"><span>&nbsp;</span></td><td class="rank">'+BC+"</td><td><div>"+BI+'</div></td><td class="'+BB+'"></td><td class="score">'+BM+'</td></tr></tbody></table><ul><li class="status">'+BP+'</li><li class="clock">'+BK+'</li></ul><div class="watch-text">'+A4+' <span class="watch"></span></div></div><div class="sort">'+BH+"</div></li>";}function AO(){AE=Ah("#mod-tab-content-top-stories").find("div.top-story-content").metadata();var BN="",A4,BG="",BB="",A9="",A6="",A8="",BY="";if(AE.sport!==undefined){BB=AE.sport+"-";j=AE.sport;}if(AE.gameId!==undefined){BG=AE.gameId;}if(AE.cilGame!==undefined){A9=AE.cilGame;}if(AE.cilTitle!==undefined){A6=AE.cilTitle;}if(AE.cilLinkText!==undefined){A8=AE.cilLinkText;}if(AE.cilLink!==undefined){BY=AE.cilLink;}var BT=0;for(var BF in m){var BJ=m[BF];if(BJ.key.indexOf(BB)!=0){continue;}var Bb=0;var A5=false;var BO=false;var Ba;if(BJ.settings!=undefined){Ba=BJ.settings.split("|");if(Ba.length>=5){if(Ba[4]=="1"){BO=true;Bb=0;}}}var BQ=BJ.home.id;var BS=BJ.away.id;var BD=BJ.key.split("-")[0];if(BG==BJ.gameId){A4=BJ;AD=BF;if(e[BF]!==undefined){c=BF;}P.add.push({key:BF,sortValue:-1000,isEdit:true});Bb=-1000;}else{Bb=BT;if(c==""&&e[BF]!==undefined){c=BF;}}var BC="",BL="";if(BJ.away.rank!=undefined){BC=BJ.away.rank;}if(BJ.home.rank!=undefined){BL=BJ.home.rank;}if(I){if(p[BD+"-"+BQ]!==undefined){A5=true;AH=true;if(Bb!=-1000){Bb=-(p[BD+"-"+BQ]/1000);}}else{if(p[BD+"-"+BS]!==undefined){A5=true;AH=true;if(Bb!=-1000){Bb=-(p[BD+"-"+BS]/1000);}}}}if(AR&&!A5&&!BO){if(BD=="ncb"||BD=="ncw"){if(BC==""&&BL==""){continue;}}}if(A4===undefined){A4=BJ;AD=BF;}BN+=i(BJ,BD,Bb);BT++;}if(AD!=""){var A3=jQuery("#mod-tab-content-top-stories").find("iframe").contents();var A1=BD.toUpperCase();if(A1=="NCF"){A1="Top 25";}A3.find("#live-window").html('<div class="game">'+r(A4)+'</div><div class="more-links"><span>'+A1+'</span><a name="&lpos=p1livewindow&lid='+BD+'_scoreboard" href="/'+BD+'/scoreboard">Full Scoreboard&nbsp;&#187;</a></div><div class="scores"><a class="scores-scroller scores-prev scores-scroller-disabled"><span class="arrow"></span></a><div class="scores-container"><ul class="scoreboard">'+BN+'</ul></div><a class="scores-scroller scores-next"><span class="arrow"></span></a></div>');if(A9!=""&&e[A9]!==undefined){c=A9;}var BK=A3.find("#mod-tab-pressbox");if(BK.length==0||c==""){k=true;}else{var BR=m[c];if(BR!==undefined){var BX=c.split("-");var BA="";if(A6==""&&BR.away!=undefined&&BR.home!=undefined&&BR.away.name!=undefined&&BR.home.name!=undefined){BA=BR.away.name+" v "+BR.home.name;}else{BA=A6;}var BP=e[c];BK.html('<div class="panel-left"><span class="label">'+BA+"</span><br />"+A0(BX[0],BX[1],"p1livewindow",A8,BY)+'</div><div class="panel-right"><div id="cil-message"><span>'+BP.author+"</span> - "+BP.comment+"</div></div>");C();}else{k=true;}}if(BK.length>=0&&c==""){if(A4!==undefined){var BA="";if(A6==""&&A4.away!=undefined&&A4.home!=undefined&&A4.away.name!=undefined&&A4.home.name!=undefined){BA=A4.away.name+" v "+A4.home.name;}else{BA=A6;}BK.html('<div class="panel-left"><span class="label">'+BA+"</span><br />"+A0(undefined,undefined,"p1livewindow",A8,BY)+'</div><div class="panel-right"><div id="cil-message">Commentary not available.</div></div>');}}var A2="";for(var BV=0;BV<3;BV++){var BW=Ao[BV];A2+='<li id="nflfantasy-'+BV+'">'+D(BW,BD)+"</li>";}A3.find("#mod-tab-fantasy").children("div.panel-right").html("<ol>"+A2+"</ol>");var A7=A3.find("ul.scoreboard"),BH=A7.children("li"),BU=BH.length;A3.find("div.game").click(E);A7.click(E);A7.children("#mem-"+AD).addClass("active");BH.tsort("div.sort");var BE=339;var BI=A3.find("a.scores-next");var BM=0;if(BU>0){BM=BH[BU-1].offsetTop;}if(BM<=BE){BI.addClass("scores-scroller-disabled");}BI.bind("click",function(){var Bd=A3.find("ul.scoreboard"),Bg=Bd.children("li"),Bj=Bg.length;var Bi=-1*Bd[0].offsetTop;for(var Be=0;Be<Bj;Be++){var Bc=Bg[Be],Bf=Bc.offsetTop,Bh=Bf+Ah(Bc).outerHeight();if(Bh>(Bi+BE)){if(Bf+BE>BM){BI.addClass("scores-scroller-disabled");}BZ.removeClass("scores-scroller-disabled");Bd.stop(true,true).animate({top:"-"+Bf+"px"},500,function(){Ah(this).css("top","-"+Bf+"px");});break;}}AN(this,"p1livewindow","scroll-down",true);return false;});var BZ=A3.find("a.scores-prev");BZ.bind("click",function(){var Bc=A3.find("ul.scoreboard"),Be=Bc.children("li"),Bh=Be.length;var Bg=-1*Bc[0].offsetTop;for(var Bd=0;Bd<Bh;Bd++){var Bf=Be[Bd].offsetTop;if(Bf>(Bg-BE)){if(Bf==0){BZ.addClass("scores-scroller-disabled");}if(Bf+BE<Bc.outerHeight()){BI.removeClass("scores-scroller-disabled");}Bc.stop(true,true).animate({top:"-"+Bf+"px"},500,function(){Ah(this).css("top","-"+Bf+"px");});break;}}AN(this,"p1livewindow","scroll-up",true);return false;});}Aw=true;y();}Ah.subscribe("espn.live.window.switchGame",Aq);function Aq(A3){var A4=Ah("#mod-tab-content-top-stories").find("iframe").contents();var A2=A4.find("ul.scoreboard");if(A3!==undefined){var A1=m[A3];if(A1!==undefined){A2.children("#mem-"+AD).removeClass("active");AD=A3;A4.find("#game-container").replaceWith(r(A1));A2.children("#mem-"+AD).addClass("active");AN(this,"p1livewindow","switch-"+A3,true);}}}function D(A2,A3){if(A3===undefined){A3="nfl";}var A1="&mdash;";if(A2!==undefined&&A2!=null&&A2.playerId!==undefined&&A2.playerId!="0"){A1=Aa(A3,A2.playerId,A2.name)+" "+A2.position+" ("+A2.points+" pts)";}return A1;}function z(A2){var A1=0;if(A2!=Number.NaN){A1=Math.round(A2*3.86);}return A1;}function r(BT){if(BT!==undefined){var BL="",BV=BT.away.name,A5=BT.away.score,A1=BT.away.id,BE="",BI=BT.home.name,BM=BT.home.score,A8=BT.home.id,BK="",BR=BT.statusText,BN="",A7="",A6="",BO=BT.status,BQ="",BW="",BG="",BJ="",BD="",A4="",BS="",BH="",BP=0,A9="",BF="",A2="right",BC="none",BA=BT.key.split("-")[0];if(BT.inning!==undefined&&BT.inning=="1"){BF=" redzone";}if(BT.period!==undefined){BH=BT.period;}if(BT.link!==undefined){BP=parseInt(BT.link,10);if(BP==Number.NaN){BP=0;}}if(BT.stats!==undefined&&BT.stats.display!==undefined){BQ=BT.stats.display;}if(BP>50){A2="left";}if(BP!=0&&BP!=100){BC="block";}if(BT.poss!==undefined){A9=" "+BT.poss;if(BT.poss=="away"){BJ+=" gc-ball-on";}else{if(BT.poss=="home"){BD+=" gc-ball-on";}}}AD=BT.key;if(BT.away.rank!=undefined){BL='<span class="gc-teamrank">'+BT.away.rank+"</span>";}if(BT.home.rank!=undefined){BE='<span class="gc-teamrank">'+BT.home.rank+"</span>";}if(BA=="nfl"){A4='<div class="gc-teamlogo logo-nfl-medium nfl-medium-'+A1+'"></div>';BS='<div class="gc-teamlogo logo-nfl-medium nfl-medium-'+A8+'"></div>';if(BT.home.nickname!=undefined){BI=BT.home.nickname;}if(BT.away.nickname!=undefined){BV=BT.away.nickname;}}else{if(BA=="ncf"||BA=="ncb"){A4='<div class="gc-teamlogo college"><img src="'+B+"/i/teamlogos/ncaa/sml/trans/"+A1+'.gif" /><div class="logo-overlay"></div></div>';BS='<div class="gc-teamlogo college"><img src="'+B+"/i/teamlogos/ncaa/sml/trans/"+A8+'.gif" /><div class="logo-overlay"></div></div>';if(BT.home.location!=undefined){BI=BT.home.location;}if(BT.away.location!=undefined){BV=BT.away.location;}}}if(BT.clock!=undefined){BK=BT.clock;}if(BR=="F"){BR="Final";}A7=AT(BO);if(A7!="final"){if(BT.tv!==undefined){BN=BT.tv;}}if(BO==1&&BT.date!=undefined){var BB=Af(BT.date);BK=AF(BR);BR=Ae(BB);}if(BO==3){var BU=Az(BA,BM,A5);if(BU=="home"){BG=" winner";}else{if(BU=="away"){BW=" winner";}}}gameLinks=Al(A7,BA,BT.gameId,null,null,3,false,false,true,"p1livewindow");gameLinks=gameLinks.replace(new RegExp("&nbsp;","g"),"");gameLinks=gameLinks.replace(new RegExp("</a>","g"),"&nbsp;&#187;</a>");var A3='<div id="game-container"><div class="'+A7+'" id="big-'+BT.key+'"><div id="matchup" class="gc-currscore"><div id="away" class="gc-teambox">'+A4+'<div class="gc-team"><div class="gc-ball'+BJ+'"></div><div class="gc-teamname">'+BL+BV+'</div><div class="gc-score">'+A5+'</div></div></div><ul class="game-data"><li class="status">'+BR+'</li><li class="clock">'+BK+'</li></ul><div id="home" class="gc-teambox"><div class="gc-team"><div class="gc-ball'+BD+'"></div><div class="gc-teamname">'+BE+BI+'</div><div class="gc-score">'+BM+"</div></div>"+BS+'</div><div id="drivebox" class="'+A9+BF+'"><div id="driveContainer" style="display: '+BC+"; left:"+z(BP)+'px;"><div id="downDistance" class="'+A2+'">'+BH+'</div><div id="yardArrow"></div></div></div><div id="game-info-container"><ul class="game-links"><li>'+gameLinks+'</li></ul><div class="tv-info"">'+BN+'</div></div></div><div id="stat-description"><span>'+BQ+'</span> LEADERS</div><div class="stat-leaders"><table class="leaders-table"><tbody><tr><th class="stat-header">YDS</th><th class="stat-header">TD</th><th class="away-team"><div>'+BV+'</div></th><th class="team-divider"></th><th class="home-team"><div>'+BI+'</div></th><th class="stat-header">TD</th><th class="stat-header">YDS</th></tr>'+AX(BT,BA)+"</tbody></table></div></div></div>";return A3;}else{return"";}}function AX(A2,A6){var A1="";var A5=Ak(A6);if(A2.stats!==undefined&&A2.stats.data.length>=6){for(var A3=0;A3<3;A3++){var A4=A2.stats.data[A3];var A7=A2.stats.data[A3+3];A1+='<tr class="leaders"><td class="leader-stat away-stat stat-'+(A3+3)+'">'+A7.stat+'</td><td class="leader-stat away-stat stat2-'+(A3+3)+'">'+A7.stat2+'</td><td class="leader-player away-player player-'+(A3+3)+'">'+Aa(A6,A7.id,A7.name)+'</td><td class="leader-category">'+A5[A3]+'</td><td class="leader-player home-player player-'+A3+'">'+Aa(A6,A4.id,A4.name)+'</td><td class="leader-stat home-stat stat2-'+A3+'">'+A4.stat2+'</td><td class="leader-stat home-stat stat-'+A3+'">'+A4.stat+"</td></tr>";}}else{for(var A3=0;A3<3;A3++){A1+='<tr class="leaders"><td class="leader-stat away-stat stat-'+(A3+3)+'">-</td><td class="leader-stat away-stat stat2-'+(A3+3)+'">-</td><td class="leader-player away-player player-'+(A3+3)+'">-</td><td class="leader-category">'+A5[A3]+'</td><td class="leader-player home-player player-'+A3+'">-</td><td class="leader-stat home-stat stat2-'+A3+'">-</td><td class="leader-stat home-stat stat-'+A3+'">-</td></tr>';}}return A1;}function Ak(A2){var A1=["","",""];if(A2=="ncf"||A2=="nfl"){A1=["PASS","RUSH","REC"];}else{if(A2=="nba"||A2=="ncb"||A2=="wnba"||A2=="ncw"){A1=["PTS","REB","AST"];}}return A1;}function Aa(A4,A2,A3){var A1="/players/profile?playerId=";if(A4=="ncb"||A4=="ncf"){A1="/player/profile?playerId=";}if(A2!=""&&A2!="0"){return'<a name="&lpos=p1livewindow&lid='+A4+"_player_"+A2+'" href="'+Aj+"/"+A4+A1+A2+'">'+A3+"</a>";}return A3;}function AN(A5,A4,A1,A2){if(A2===undefined){A2=false;}if(window.anTrackLink){if(A2){var A3=setTimeout(function(){window.anTrackLink(A5,"espn",A4,A1);},100);}else{window.anTrackLink(A5,"espn",A4,A1);}}}Ah.subscribe("espn.live.window.load",function(){if(L){AO();}else{n=true;}});Ah.subscribe("espn.skirmish.load",function(){Ai();});Ah.subscribe("espn.carousel.init",function(A1){s();});Ah.subscribe("espn.carousel.show.video",function(A1){s();});Ah.subscribe("espn.carousel.show.story.load",function(A1){s();});espn.core.init.topStoryScoreboard=function(){s();};})(jQuery);
