/* jquery.js */(function(){if(typeof jQuery!="undefined"){var _jQuery=jQuery}var jQuery=window.jQuery=function(selector,context){return this instanceof jQuery?this.init(selector,context):new jQuery(selector,context)};if(typeof $!="undefined"){var _$=$}window.$=jQuery;var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(typeof selector=="string"){var m=quickExpr.exec(selector);if(m&&(m[1]||!context)){if(m[1]){selector=jQuery.clean([m[1]],context)}else{var tmp=document.getElementById(m[3]);if(tmp){if(tmp.id!=m[3]){return jQuery().find(selector)}else{this[0]=tmp;this.length=1;return this}}else{selector=[]}}}else{return new jQuery(context).find(selector)}}else{if(jQuery.isFunction(selector)){return new jQuery(document)[jQuery.fn.ready?"ready":"load"](selector)}}return this.setArray(selector.constructor==Array&&selector||(selector.jquery||selector.length&&selector!=window&&!selector.nodeType&&selector[0]!=undefined&&selector[0].nodeType)&&jQuery.makeArray(selector)||[selector])},jquery:"1.2.1",size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(a){var ret=jQuery(a);ret.prevObject=this;return ret},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(fn,args){return jQuery.each(this,fn,args)},index:function(obj){var pos=-1;this.each(function(i){if(this==obj){pos=i}});return pos},attr:function(key,value,type){var obj=key;if(key.constructor==String){if(value==undefined){return this.length&&jQuery[type||"attr"](this[0],key)||undefined}else{obj={};obj[key]=value}}return this.each(function(index){for(var prop in obj){jQuery.attr(type?this.style:this,prop,jQuery.prop(this,obj[prop],type,index,prop))}})},css:function(key,value){return this.attr(key,value,"curCSS")},text:function(e){if(typeof e!="object"&&e!=null){return this.empty().append(document.createTextNode(e))}var t="";jQuery.each(e||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){t+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])}})});return t},wrapAll:function(html){if(this[0]){jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html)})},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)})},append:function(){return this.domManip(arguments,true,1,function(a){this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,-1,function(a){this.insertBefore(a,this.firstChild)})},before:function(){return this.domManip(arguments,false,1,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,-1,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(t){var data=jQuery.map(this,function(a){return jQuery.find(t,a)});return this.pushStack(/[^+>] [^+>]/.test(t)||t.indexOf("..")>-1?jQuery.unique(data):data)},clone:function(events){var ret=this.map(function(){return this.outerHTML?jQuery(this.outerHTML)[0]:this.cloneNode(true)});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined){this[expando]=null}});if(events===true){this.find("*").andSelf().each(function(i){var events=jQuery.data(this,"events");for(var type in events){for(var handler in events[type]){jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data)}}})}return ret},filter:function(t){return this.pushStack(jQuery.isFunction(t)&&jQuery.grep(this,function(el,index){return t.apply(el,[index])})||jQuery.multiFilter(t,this))},not:function(t){return this.pushStack(t.constructor==String&&jQuery.multiFilter(t,this,true)||jQuery.grep(this,function(a){return(t.constructor==Array||t.jquery)?jQuery.inArray(a,t)<0:a!=t}))},add:function(t){return this.pushStack(jQuery.merge(this.get(),t.constructor==String?jQuery(t).get():t.length!=undefined&&(!t.nodeName||jQuery.nodeName(t,"form"))?t:[t]))},is:function(expr){return expr?jQuery.multiFilter(expr,this).length>0:false},hasClass:function(expr){return this.is("."+expr)},val:function(val){if(val==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,a=[],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){var val=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one){return val}a.push(val)}}return a}else{return this[0].value.replace(/\r/g,"")}}}else{return this.each(function(){if(val.constructor==Array&&/radio|checkbox/.test(this.type)){this.checked=(jQuery.inArray(this.value,val)>=0||jQuery.inArray(this.name,val)>=0)}else{if(jQuery.nodeName(this,"select")){var tmp=val.constructor==Array?val:[val];jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,tmp)>=0||jQuery.inArray(this.text,tmp)>=0)});if(!tmp.length){this.selectedIndex=-1}}else{this.value=val}}})}},html:function(val){return val==undefined?(this.length?this[0].innerHTML:null):this.empty().append(val)},replaceWith:function(val){return this.after(val).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(fn){return this.pushStack(jQuery.map(this,function(elem,i){return fn.call(elem,i,elem)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(args,table,dir,fn){var clone=this.length>1,a;return this.each(function(){if(!a){a=jQuery.clean(args,this.ownerDocument);if(dir<0){a.reverse()}}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(a[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(document.createElement("tbody"))}jQuery.each(a,function(){var elem=clone?this.cloneNode(true):this;if(!evalScript(0,elem)){fn.call(obj,elem)}})})}};function evalScript(i,elem){var script=jQuery.nodeName(elem,"script");if(script){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)}}else{if(elem.nodeType==1){jQuery("script",elem).each(evalScript)}}return script}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},a=1,al=arguments.length,deep=false;if(target.constructor==Boolean){deep=target;target=arguments[1]||{}}if(al==1){target=this;a=0}var prop;for(;a<al;a++){if((prop=arguments[a])!=null){for(var i in prop){if(target==prop[i]){continue}if(deep&&typeof prop[i]=="object"&&target[i]){jQuery.extend(target[i],prop[i])}else{if(prop[i]!=undefined){target[i]=prop[i]}}}}}return target};var expando="jQuery"+(new Date()).getTime(),uuid=0,win={};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery}return jQuery},isFunction:function(fn){return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/function/i.test(fn+"")},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body},globalEval:function(data){data=jQuery.trim(data);if(data){if(window.execScript){window.execScript(data)}else{if(jQuery.browser.safari){window.setTimeout(data,0)}else{eval.call(window,data)}}}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase()},cache:{},data:function(elem,name,data){elem=elem==window?win:elem;var id=elem[expando];if(!id){id=elem[expando]=++uuid}if(name&&!jQuery.cache[id]){jQuery.cache[id]={}}if(data!=undefined){jQuery.cache[id][name]=data}return name?jQuery.cache[id][name]:id},removeData:function(elem,name){elem=elem==window?win:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id]){break}if(!name){jQuery.removeData(elem)}}}else{try{delete elem[expando]}catch(e){if(elem.removeAttribute){elem.removeAttribute(expando)}}delete jQuery.cache[id]}},each:function(obj,fn,args){if(args){if(obj.length==undefined){for(var i in obj){fn.apply(obj[i],args)}}else{for(var i=0,ol=obj.length;i<ol;i++){if(fn.apply(obj[i],args)===false){break}}}}else{if(obj.length==undefined){for(var i in obj){fn.call(obj[i],i,obj[i])}}else{for(var i=0,ol=obj.length,val=obj[0];i<ol&&fn.call(val,i,val)!==false;val=obj[++i]){}}}return obj},prop:function(elem,value,type,index,prop){if(jQuery.isFunction(value)){value=value.call(elem,[index])}var exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i;return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(prop)?value+"px":value},className:{add:function(elem,c){jQuery.each((c||"").split(/\s+/),function(i,cur){if(!jQuery.className.has(elem.className,cur)){elem.className+=(elem.className?" ":"")+cur}})},remove:function(elem,c){elem.className=c!=undefined?jQuery.grep(elem.className.split(/\s+/),function(cur){return !jQuery.className.has(c,cur)}).join(" "):""},has:function(t,c){return jQuery.inArray(c,(t.className||t).toString().split(/\s+/))>-1}},swap:function(e,o,f){for(var i in o){e.style["old"+i]=e.style[i];e.style[i]=o[i]}f.apply(e,[]);for(var i in o){e.style[i]=e.style["old"+i]}},css:function(e,p){if(p=="height"||p=="width"){var old={},oHeight,oWidth,d=["Top","Bottom","Right","Left"];jQuery.each(d,function(){old["padding"+this]=0;old["border"+this+"Width"]=0});jQuery.swap(e,old,function(){if(jQuery(e).is(":visible")){oHeight=e.offsetHeight;oWidth=e.offsetWidth}else{e=jQuery(e.cloneNode(true)).find(":radio").removeAttr("checked").end().css({visibility:"hidden",position:"absolute",display:"block",right:"0",left:"0"}).appendTo(e.parentNode)[0];var parPos=jQuery.css(e.parentNode,"position")||"static";if(parPos=="static"){e.parentNode.style.position="relative"}oHeight=e.clientHeight;oWidth=e.clientWidth;if(parPos=="static"){e.parentNode.style.position="static"}e.parentNode.removeChild(e)}});return p=="height"?oHeight:oWidth}return jQuery.curCSS(e,p)},curCSS:function(elem,prop,force){var ret,stack=[],swap=[];function color(a){if(!jQuery.browser.safari){return false}var ret=document.defaultView.getComputedStyle(a,null);return !ret||ret.getPropertyValue("color")==""}if(prop=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(elem.style,"opacity");return ret==""?"1":ret}if(prop.match(/float/i)){prop=styleFloat}if(!force&&elem.style[prop]){ret=elem.style[prop]}else{if(document.defaultView&&document.defaultView.getComputedStyle){if(prop.match(/float/i)){prop="float"}prop=prop.replace(/([A-Z])/g,"-$1").toLowerCase();var cur=document.defaultView.getComputedStyle(elem,null);if(cur&&!color(elem)){ret=cur.getPropertyValue(prop)}else{for(var a=elem;a&&color(a);a=a.parentNode){stack.unshift(a)}for(a=0;a<stack.length;a++){if(color(stack[a])){swap[a]=stack[a].style.display;stack[a].style.display="block"}}ret=prop=="display"&&swap[stack.length-1]!=null?"none":document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop)||"";for(a=0;a<swap.length;a++){if(swap[a]!=null){stack[a].style.display=swap[a]}}}if(prop=="opacity"&&ret==""){ret="1"}}else{if(elem.currentStyle){var newProp=prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});ret=elem.currentStyle[prop]||elem.currentStyle[newProp];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var style=elem.style.left;var runtimeStyle=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;elem.style.left=ret||0;ret=elem.style.pixelLeft+"px";elem.style.left=style;elem.runtimeStyle.left=runtimeStyle}}}}return ret},clean:function(a,doc){var r=[];doc=doc||document;jQuery.each(a,function(i,arg){if(!arg){return}if(arg.constructor==Number){arg=arg.toString()}if(typeof arg=="string"){arg=arg.replace(/(<(\w+)[^>]*?)\/>/g,function(m,all,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area)$/i)?m:all+"></"+tag+">"});var s=jQuery.trim(arg).toLowerCase(),div=doc.createElement("div"),tb=[];var wrap=!s.indexOf("<opt")&&[1,"<select>","</select>"]||!s.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||s.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!s.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!s.indexOf("<td")||!s.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!s.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+arg+wrap[2];while(wrap[0]--){div=div.lastChild}if(jQuery.browser.msie){if(!s.indexOf("<table")&&s.indexOf("<tbody")<0){tb=div.firstChild&&div.firstChild.childNodes}else{if(wrap[1]=="<table>"&&s.indexOf("<tbody")<0){tb=div.childNodes}}for(var n=tb.length-1;n>=0;--n){if(jQuery.nodeName(tb[n],"tbody")&&!tb[n].childNodes.length){tb[n].parentNode.removeChild(tb[n])}}if(/^\s/.test(arg)){div.insertBefore(doc.createTextNode(arg.match(/^\s*/)[0]),div.firstChild)}}arg=jQuery.makeArray(div.childNodes)}if(0===arg.length&&(!jQuery.nodeName(arg,"form")&&!jQuery.nodeName(arg,"select"))){return}if(arg[0]==undefined||jQuery.nodeName(arg,"form")||arg.options){r.push(arg)}else{r=jQuery.merge(r,arg)}});return r},attr:function(elem,name,value){var fix=jQuery.isXMLDoc(elem)?{}:jQuery.props;if(name=="selected"&&jQuery.browser.safari){elem.parentNode.selectedIndex}if(fix[name]){if(value!=undefined){elem[fix[name]]=value}return elem[fix[name]]}else{if(jQuery.browser.msie&&name=="style"){return jQuery.attr(elem.style,"cssText",value)}else{if(value==undefined&&jQuery.browser.msie&&jQuery.nodeName(elem,"form")&&(name=="action"||name=="method")){return elem.getAttributeNode(name).nodeValue}else{if(elem.tagName){if(value!=undefined){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode){throw"type property can't be changed"}elem.setAttribute(name,value)}if(jQuery.browser.msie&&/href|src/.test(name)&&!jQuery.isXMLDoc(elem)){return elem.getAttribute(name,2)}return elem.getAttribute(name)}else{if(name=="opacity"&&jQuery.browser.msie){if(value!=undefined){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseFloat(value).toString()=="NaN"?"":"alpha(opacity="+value*100+")")}return elem.filter?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100).toString():""}name=name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase()});if(value!=undefined){elem[name]=value}return elem[name]}}}}},trim:function(t){return(t||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var r=[];if(typeof a!="array"){for(var i=0,al=a.length;i<al;i++){r.push(a[i])}}else{r=a.slice(0)}return r},inArray:function(b,a){for(var i=0,al=a.length;i<al;i++){if(a[i]==b){return i}}return -1},merge:function(first,second){if(jQuery.browser.msie){for(var i=0;second[i];i++){if(second[i].nodeType!=8){first.push(second[i])}}}else{for(var i=0;second[i];i++){first.push(second[i])}}return first},unique:function(first){var r=[],done={};try{for(var i=0,fl=first.length;i<fl;i++){var id=jQuery.data(first[i]);if(!done[id]){done[id]=true;r.push(first[i])}}}catch(e){r=first}return r},grep:function(elems,fn,inv){if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+"}")}var result=[];for(var i=0,el=elems.length;i<el;i++){if(!inv&&fn(elems[i],i)||inv&&!fn(elems[i],i)){result.push(elems[i])}}return result},map:function(elems,fn){if(typeof fn=="string"){fn=eval("false||function(a){return "+fn+"}")}var result=[];for(var i=0,el=elems.length;i<el;i++){var val=fn(elems[i],i);if(val!==null&&val!=undefined){if(val.constructor!=Array){val=[val]}result=result.concat(val)}}return result}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",styleFloat:jQuery.browser.msie?"styleFloat":"cssFloat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,innerHTML:"innerHTML",className:"className",value:"value",disabled:"disabled",checked:"checked",readonly:"readOnly",selected:"selected",maxlength:"maxLength"}});jQuery.each({parent:"a.parentNode",parents:"jQuery.dir(a,'parentNode')",next:"jQuery.nth(a,2,'nextSibling')",prev:"jQuery.nth(a,2,'previousSibling')",nextAll:"jQuery.dir(a,'nextSibling')",prevAll:"jQuery.dir(a,'previousSibling')",siblings:"jQuery.sibling(a.parentNode.firstChild,a)",children:"jQuery.sibling(a.firstChild)",contents:"jQuery.nodeName(a,'iframe')?a.contentDocument||a.contentWindow.document:jQuery.makeArray(a.childNodes)"},function(i,n){jQuery.fn[i]=function(a){var ret=jQuery.map(this,n);if(a&&typeof a=="string"){ret=jQuery.multiFilter(a,ret)}return this.pushStack(jQuery.unique(ret))}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(i,n){jQuery.fn[i]=function(){var a=arguments;return this.each(function(){for(var j=0,al=a.length;j<al;j++){jQuery(a[j])[n](this)}})}});jQuery.each({removeAttr:function(key){jQuery.attr(this,key,"");this.removeAttribute(key)},addClass:function(c){jQuery.className.add(this,c)},removeClass:function(c){jQuery.className.remove(this,c)},toggleClass:function(c){jQuery.className[jQuery.className.has(this,c)?"remove":"add"](this,c)},remove:function(a){if(!a||jQuery.filter(a,[this]).r.length){jQuery.removeData(this);this.parentNode.removeChild(this)}},empty:function(){jQuery("*",this).each(function(){jQuery.removeData(this)});while(this.firstChild){this.removeChild(this.firstChild)}}},function(i,n){jQuery.fn[i]=function(){return this.each(n,arguments)}});jQuery.each(["Height","Width"],function(i,name){var n=name.toLowerCase();jQuery.fn[n]=function(h){return this[0]==window?jQuery.browser.safari&&self["inner"+name]||jQuery.boxModel&&Math.max(document.documentElement["client"+name],document.body["client"+name])||document.body["client"+name]:this[0]==document?Math.max(document.body["scroll"+name],document.body["offset"+name]):h==undefined?(this.length?jQuery.css(this[0],n):null):this.css(n,h.constructor==String?h:h+"px")}});var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":"m[2]=='*'||jQuery.nodeName(a,m[2])","#":"a.getAttribute('id')==m[2]",":":{lt:"i<m[3]-0",gt:"i>m[3]-0",nth:"m[3]-0==i",eq:"m[3]-0==i",first:"i==0",last:"i==r.length-1",even:"i%2==0",odd:"i%2","first-child":"a.parentNode.getElementsByTagName('*')[0]==a","last-child":"jQuery.nth(a.parentNode.lastChild,1,'previousSibling')==a","only-child":"!jQuery.nth(a.parentNode.lastChild,2,'previousSibling')",parent:"a.firstChild",empty:"!a.firstChild",contains:"(a.textContent||a.innerText||jQuery(a).text()||'').indexOf(m[3])>=0",visible:'"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"',hidden:'"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden"',enabled:"!a.disabled",disabled:"a.disabled",checked:"a.checked",selected:"a.selected||jQuery.attr(a,'selected')",text:"'text'==a.type",radio:"'radio'==a.type",checkbox:"'checkbox'==a.type",file:"'file'==a.type",password:"'password'==a.type",submit:"'submit'==a.type",image:"'image'==a.type",reset:"'reset'==a.type",button:'"button"==a.type||jQuery.nodeName(a,"button")',input:"/input|select|textarea|button/i.test(a.nodeName)",has:"jQuery.find(m[3],a).length",header:"/h\\d/i.test(a.nodeName)",animated:"jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length"}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r)}return cur},find:function(t,context){if(typeof t!="string"){return[t]}if(context&&!context.nodeType){context=null}context=context||document;var ret=[context],done=[],last;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false;var re=quickChild;var m=re.exec(t);if(m){var nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName.toUpperCase())){r.push(c)}}}ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0){continue}foundToken=true}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var nodeName=m[2],merge={};m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id]){break}if(!nodeName||n.nodeName.toUpperCase()==nodeName.toUpperCase()){if(m=="~"){merge[id]=true}r.push(n)}if(m=="+"){break}}}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length)}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]]}else{re2=quickClass;m=re2.exec(t)}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){oid=jQuery('[@id="'+m[2]+'"]',elem)[0]}ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[]}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){tag="param"}r=jQuery.merge(r,ret[i].getElementsByTagName(tag))}if(m[1]=="."){r=jQuery.classFilter(r,m[2])}if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++){if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break}}r=tmp}ret=r}t=t.replace(re2,"")}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t)}}if(t){ret=[]}if(ret&&context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);return done},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass){tmp.push(r[i])}}return tmp},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break}}if(!m){break}if(m[1]==":"&&m[2]=="not"){r=jQuery.filter(m[3],r,true).r}else{if(m[1]=="."){r=jQuery.classFilter(r,m[2],not)}else{if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2])){z=jQuery.attr(a,m[2])||""}if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){tmp.push(a)}}r=tmp}else{if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(\d*)n\+?(\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"n+"+m[3]||m[3]),first=(test[1]||1)-0,last=test[2]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++}}merge[id]=true}var add=false;if(first==1){if(last==0||node.nodeIndex==last){add=true}}else{if((node.nodeIndex+last)%first==0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var f=jQuery.expr[m[1]];if(typeof f!="string"){f=jQuery.expr[m[1]][m[2]]}f=eval("false||function(a,i){return "+f+"}");r=jQuery.grep(r,f,not)}}}}}return{r:r,t:t}},dir:function(elem,dir){var matched=[];var cur=elem[dir];while(cur&&cur!=document){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&&(!elem||n!=elem)){r.push(n)}}return r}});jQuery.event={add:function(element,type,handler,data){if(jQuery.browser.msie&&element.setInterval!=undefined){element=window}if(!handler.guid){handler.guid=this.guid++}if(data!=undefined){var fn=handler;handler=function(){return fn.apply(this,arguments)};handler.data=data;handler.guid=fn.guid}var parts=type.split(".");type=parts[0];handler.type=parts[1];var events=jQuery.data(element,"events")||jQuery.data(element,"events",{});var handle=jQuery.data(element,"handle",function(){var val;if(typeof jQuery=="undefined"||jQuery.event.triggered){return val}val=jQuery.event.handle.apply(element,arguments);return val});var handlers=events[type];if(!handlers){handlers=events[type]={};if(element.addEventListener){element.addEventListener(type,handle,false)}else{element.attachEvent("on"+type,handle)}}handlers[handler.guid]=handler;this.global[type]=true},guid:1,global:{},remove:function(element,type,handler){var events=jQuery.data(element,"events"),ret,index;if(typeof type=="string"){var parts=type.split(".");type=parts[0]}if(events){if(type&&type.type){handler=type.handler;type=type.type}if(!type){for(type in events){this.remove(element,type)}}else{if(events[type]){if(handler){delete events[type][handler.guid]}else{for(handler in events[type]){if(!parts[1]||events[type][handler].type==parts[1]){delete events[type][handler]}}}for(ret in events[type]){break}if(!ret){if(element.removeEventListener){element.removeEventListener(type,jQuery.data(element,"handle"),false)}else{element.detachEvent("on"+type,jQuery.data(element,"handle"))}ret=null;delete events[type]}}}for(ret in events){break}if(!ret){jQuery.removeData(element,"events");jQuery.removeData(element,"handle")}}},trigger:function(type,data,element,donative,extra){data=jQuery.makeArray(data||[]);if(!element){if(this.global[type]){jQuery("*").add([window,document]).trigger(type,data)}}else{var val,ret,fn=jQuery.isFunction(element[type]||null),evt=!data[0]||!data[0].preventDefault;if(evt){data.unshift(this.fix({type:type,target:element}))}data[0].type=type;if(jQuery.isFunction(jQuery.data(element,"handle"))){val=jQuery.data(element,"handle").apply(element,data)}if(!fn&&element["on"+type]&&element["on"+type].apply(element,data)===false){val=false}if(evt){data.shift()}if(extra&&extra.apply(element,data)===false){val=false}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(element,"a")&&type=="click")){this.triggered=true;element[type]()}this.triggered=false}return val},handle:function(event){var val;event=jQuery.event.fix(event||window.event||{});var parts=event.type.split(".");event.type=parts[0];var c=jQuery.data(this,"events")&&jQuery.data(this,"events")[event.type],args=Array.prototype.slice.call(arguments,1);args.unshift(event);for(var j in c){args[0].handler=c[j];args[0].data=c[j].data;if(!parts[1]||c[j].type==parts[1]){var tmp=c[j].apply(this,args);if(val!==false){val=tmp}if(tmp===false){event.preventDefault();event.stopPropagation()}}}if(jQuery.browser.msie){event.target=event.preventDefault=event.stopPropagation=event.handler=event.data=null}return val},fix:function(event){var originalEvent=event;event=jQuery.extend({},originalEvent);event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault()}originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation()}originalEvent.cancelBubble=true};if(!event.target&&event.srcElement){event.target=event.srcElement}if(jQuery.browser.safari&&event.target.nodeType==3){event.target=originalEvent.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 e=document.documentElement,b=document.body;event.pageX=event.clientX+(e&&e.scrollLeft||b.scrollLeft||0);event.pageY=event.clientY+(e&&e.scrollTop||b.scrollTop||0)}if(!event.which&&(event.charCode||event.keyCode)){event.which=event.charCode||event.keyCode}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&&event.button){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)))}return event}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data)})},one:function(type,data,fn){return this.each(function(){jQuery.event.add(this,type,function(event){jQuery(this).unbind(event);return(fn||data).apply(this,arguments)},fn&&data)})},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn)})},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn)})},triggerHandler:function(type,data,fn){if(this[0]){return jQuery.event.trigger(type,data,this[0],false,fn)}},toggle:function(){var a=arguments;return this.click(function(e){this.lastToggle=0==this.lastToggle?1:0;e.preventDefault();return a[this.lastToggle].apply(this,[e])||false})},hover:function(f,g){function handleHover(e){var p=e.relatedTarget;while(p&&p!=this){try{p=p.parentNode}catch(e){p=this}}if(p==this){return false}return(e.type=="mouseover"?f:g).apply(this,[e])}return this.mouseover(handleHover).mouseout(handleHover)},ready:function(f){bindReady();if(jQuery.isReady){f.apply(document,[jQuery])}else{jQuery.readyList.push(function(){return f.apply(this,[jQuery])})}return this}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.apply(document)});jQuery.readyList=null}if(jQuery.browser.mozilla||jQuery.browser.opera){document.removeEventListener("DOMContentLoaded",jQuery.ready,false)}if(!window.frames.length){jQuery(window).load(function(){jQuery("#__ie_init").remove()})}}}});jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error").split(","),function(i,o){jQuery.fn[o]=function(f){return f?this.bind(o,f):this.trigger(o)}});var readyBound=false;function bindReady(){if(readyBound){return}readyBound=true;if(jQuery.browser.mozilla||jQuery.browser.opera){document.addEventListener("DOMContentLoaded",jQuery.ready,false)}else{if(jQuery.browser.msie){document.write("<script id=__ie_init defer=true src=//:><\/script>");var script=document.getElementById("__ie_init");if(script){script.onreadystatechange=function(){if(this.readyState!="complete"){return}jQuery.ready()}}script=null}else{if(jQuery.browser.safari){jQuery.safariTimer=setInterval(function(){if(document.readyState=="loaded"||document.readyState=="complete"){clearInterval(jQuery.safariTimer);jQuery.safariTimer=null;jQuery.ready()}},10)}}}jQuery.event.add(window,"load",jQuery.ready)}jQuery.fn.extend({load:function(url,params,callback){if(jQuery.isFunction(url)){return this.bind("load",url)}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}callback=callback||function(){};var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null}else{params=jQuery.param(params);type="POST"}}var self=this;jQuery.ajax({url:url,type:type,data:params,complete:function(res,status){if(status=="success"||status=="notmodified"){self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText)}setTimeout(function(){self.each(callback,[res.responseText,status,res])},13)}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?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)}});var jsc=(new Date).getTime();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){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)){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:{global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null},lastModified:{},ajax:function(s){var jsonp,jsre=/=(\?|%3F)/g,status,data;s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));if(s.data&&s.processData&&typeof s.data!="string"){s.data=jQuery.param(s.data)}if(s.dataType=="jsonp"){if(s.type.toLowerCase()=="get"){if(!s.url.match(jsre)){s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?"}}else{if(!s.data||!s.data.match(jsre)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?"}}s.dataType="json"}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data){s.data=s.data.replace(jsre,"="+jsonp)}s.url=s.url.replace(jsre,"="+jsonp);s.dataType="script";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&&s.type.toLowerCase()=="get"){s.url+=(s.url.match(/\?/)?"&":"?")+"_="+(new Date()).getTime()}if(s.data&&s.type.toLowerCase()=="get"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}if(!s.url.indexOf("http")&&s.dataType=="script"){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(!jsonp&&(s.success||s.complete)){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script)}}}head.appendChild(script);return}var requestDone=false;var xml=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();xml.open(s.type,s.url,s.async);if(s.data){xml.setRequestHeader("Content-Type",s.contentType)}if(s.ifModified){xml.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}xml.setRequestHeader("X-Requested-With","XMLHttpRequest");if(s.beforeSend){s.beforeSend(xml)}if(s.global){jQuery.event.trigger("ajaxSend",[xml,s])}var onreadystatechange=function(isTimeout){if(!requestDone&&xml&&(xml.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xml)&&"error"||s.ifModified&&jQuery.httpNotModified(xml,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xml,s.dataType)}catch(e){status="parsererror"}}if(status=="success"){var modRes;try{modRes=xml.getResponseHeader("Last-Modified")}catch(e){}if(s.ifModified&&modRes){jQuery.lastModified[s.url]=modRes}if(!jsonp){success()}}else{jQuery.handleError(s,xml,status)}complete();if(s.async){xml=null}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0){setTimeout(function(){if(xml){xml.abort();if(!requestDone){onreadystatechange("timeout")}}},s.timeout)}}try{xml.send(s.data)}catch(e){jQuery.handleError(s,xml,null,e)}if(!s.async){onreadystatechange()}return xml;function success(){if(s.success){s.success(data,status)}if(s.global){jQuery.event.trigger("ajaxSuccess",[xml,s])}}function complete(){if(s.complete){s.complete(xml,status)}if(s.global){jQuery.event.trigger("ajaxComplete",[xml,s])}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}}},handleError:function(s,xml,status,e){if(s.error){s.error(xml,status,e)}if(s.global){jQuery.event.trigger("ajaxError",[xml,s,e])}},active:0,httpSuccess:function(r){try{return !r.status&&location.protocol=="file:"||(r.status>=200&&r.status<300)||r.status==304||jQuery.browser.safari&&r.status==undefined}catch(e){}return false},httpNotModified:function(xml,url){try{var xmlRes=xml.getResponseHeader("Last-Modified");return xml.status==304||xmlRes==jQuery.lastModified[url]||jQuery.browser.safari&&xml.status==undefined}catch(e){}return false},httpData:function(r,type){var ct=r.getResponseHeader("content-type");var xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0;var data=xml?r.responseXML:r.responseText;if(xml&&data.documentElement.tagName=="parsererror"){throw"parsererror"}if(type=="script"){jQuery.globalEval(data)}if(type=="json"){data=eval("("+data+")")}return data},param:function(a){var s=[];if(a.constructor==Array||a.jquery){jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value))})}else{for(var j in a){if(a[j]&&a[j].constructor==Array){jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this))})}else{s.push(encodeURIComponent(j)+"="+encodeURIComponent(a[j]))}}}return s.join("&").replace(/%20/g,"+")}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock?this.oldblock:"";if(jQuery.css(this,"display")=="none"){this.style.display="block"}}).end()},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");if(this.oldblock=="none"){this.oldblock="block"}this.style.display="none"}).end()},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle(fn,fn2):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]()})},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback)},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback)},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback)},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback)},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback)},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback)},animate:function(prop,speed,easing,callback){var opt=jQuery.speed(speed,easing,callback);return this[opt.queue===false?"each":"queue"](function(){opt=jQuery.extend({},opt);var hidden=jQuery(this).is(":hidden"),self=this;for(var p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden){return jQuery.isFunction(opt.complete)&&opt.complete.apply(this)}if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow}}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(/toggle|show|hide/.test(val)){e[val=="toggle"?hidden?"show":"hide":val](prop)}else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),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})},queue:function(type,fn){if(jQuery.isFunction(type)){fn=type;type="fx"}if(!type||(typeof type=="string"&&!fn)){return queue(this[0],type)}return this.each(function(){if(fn.constructor==Array){queue(this,type,fn)}else{queue(this,type).push(fn);if(queue(this,type).length==1){fn.apply(this)}}})},stop:function(){var timers=jQuery.timers;return this.each(function(){for(var i=0;i<timers.length;i++){if(timers[i].elem==this){timers.splice(i--,1)}}}).dequeue()}});var queue=function(elem,type,array){if(!elem){return}var q=jQuery.data(elem,type+"queue");if(!q||array){q=jQuery.data(elem,type+"queue",array?jQuery.makeArray(array):[])}return q};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length){q[0].apply(this)}})};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:{slow:600,fast:200}[opt.duration])||400;opt.old=opt.complete;opt.complete=function(){jQuery(this).dequeue();if(jQuery.isFunction(opt.old)){opt.old.apply(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.apply(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.display="block"}},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){return this.elem[this.prop]}var r=parseFloat(jQuery.curCSS(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.css(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=(new Date()).getTime();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(){return self.step()}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timers.length==1){var timer=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){clearInterval(timer)}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height"){this.elem.style[this.prop]="1px"}jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(){var t=(new Date()).getTime();if(t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=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;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){this.elem.style.display="none"}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p])}}}if(done&&jQuery.isFunction(this.options.complete)){this.options.complete.apply(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.fx.step={scrollLeft:function(fx){fx.elem.scrollLeft=fx.now},scrollTop:function(fx){fx.elem.scrollTop=fx.now},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now)},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit}};jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem){with(jQuery.browser){var absolute=jQuery.css(elem,"position")=="absolute",parent=elem.parentNode,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522;if(elem.getBoundingClientRect){box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));if(msie){var border=jQuery("html").css("borderWidth");border=(border=="medium"||jQuery.boxModel&&parseInt(version)>=7)&&2||border;add(-border,-border)}}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&/^t[d|h]$/i.test(parent.tagName)||!safari2){border(offsetParent)}if(safari2&&!absolute&&jQuery.css(offsetParent,"position")=="absolute"){absolute=true}offsetParent=offsetParent.offsetParent}while(parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table-row.*$/i.test(jQuery.css(parent,"display"))){add(-parent.scrollLeft,-parent.scrollTop)}if(mozilla&&jQuery.css(parent,"overflow")!="visible"){border(parent)}parent=parent.parentNode}if(safari2&&absolute){add(-doc.body.offsetLeft,-doc.body.offsetTop)}}results={top:top,left:left}}}return results;function border(elem){add(jQuery.css(elem,"borderLeftWidth"),jQuery.css(elem,"borderTopWidth"))}function add(l,t){left+=parseInt(l)||0;top+=parseInt(t)||0}}})();
/* jquery.dimensions.min.js */(function(b){b.dimensions={version:"1.2"};b.each(["Height","Width"],function(d,c){b.fn["inner"+c]=function(){if(!this[0]){return}var f=c=="Height"?"Top":"Left",e=c=="Height"?"Bottom":"Right";return this.is(":visible")?this[0]["client"+c]:a(this,c.toLowerCase())+a(this,"padding"+f)+a(this,"padding"+e)};b.fn["outer"+c]=function(f){if(!this[0]){return}var h=c=="Height"?"Top":"Left",e=c=="Height"?"Bottom":"Right";f=b.extend({margin:false},f||{});var g=this.is(":visible")?this[0]["offset"+c]:a(this,c.toLowerCase())+a(this,"border"+h+"Width")+a(this,"border"+e+"Width")+a(this,"padding"+h)+a(this,"padding"+e);return g+(f.margin?(a(this,"margin"+h)+a(this,"margin"+e)):0)}});b.each(["Left","Top"],function(d,c){b.fn["scroll"+c]=function(e){if(!this[0]){return}return e!=undefined?this.each(function(){this==window||this==document?window.scrollTo(c=="Left"?e:b(window)["scrollLeft"](),c=="Top"?e:b(window)["scrollTop"]()):this["scroll"+c]=e}):this[0]==window||this[0]==document?self[(c=="Left"?"pageXOffset":"pageYOffset")]||b.boxModel&&document.documentElement["scroll"+c]||document.body["scroll"+c]:this[0]["scroll"+c]}});b.fn.extend({position:function(){var h=0,g=0,f=this[0],i,c,e,d;if(f){e=this.offsetParent();i=this.offset();c=e.offset();i.top-=a(f,"marginTop");i.left-=a(f,"marginLeft");c.top+=a(e,"borderTopWidth");c.left+=a(e,"borderLeftWidth");d={top:i.top-c.top,left:i.left-c.left}}return d},offsetParent:function(){var c=this[0].offsetParent;while(c&&(!/^body|html$/i.test(c.tagName)&&b.css(c,"position")=="static")){c=c.offsetParent}return b(c)}});function a(c,d){return parseInt(b.curCSS(c.jquery?c[0]:c,d,true))||0}})(jQuery);
/* jquery.form.js */(function(b){b.fn.ajaxSubmit=function(p){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof p=="function"){p={success:p}}p=b.extend({url:this.attr("action")||window.location.toString(),type:this.attr("method")||"GET"},p||{});var s={};this.trigger("form-pre-serialize",[this,p,s]);if(s.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(p.beforeSerialize&&p.beforeSerialize(this,p)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var i=this.formToArray(p.semantic);if(p.data){p.extraData=p.data;for(var e in p.data){if(p.data[e] instanceof Array){for(var f in p.data[e]){i.push({name:e,value:p.data[e][f]})}}else{i.push({name:e,value:p.data[e]})}}}if(p.beforeSubmit&&p.beforeSubmit(i,this,p)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[i,this,p,s]);if(s.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var d=b.param(i);if(p.type.toUpperCase()=="GET"){p.url+=(p.url.indexOf("?")>=0?"&":"?")+d;p.data=null}else{p.data=d}var r=this,h=[];if(p.resetForm){h.push(function(){r.resetForm()})}if(p.clearForm){h.push(function(){r.clearForm()})}if(!p.dataType&&p.target){var m=p.success||function(){};h.push(function(j){b(p.target).html(j).each(m,arguments)})}else{if(p.success){h.push(p.success)}}p.success=function(q,k){for(var n=0,j=h.length;n<j;n++){h[n].apply(p,[q,k,r])}};var c=b("input:file",this).fieldValue();var o=false;for(var g=0;g<c.length;g++){if(c[g]){o=true}}if(p.iframe||o){if(b.browser.safari&&p.closeKeepAlive){b.get(p.closeKeepAlive,l)}else{l()}}else{b.ajax(p)}this.trigger("form-submit-notify",[this,p]);return this;function l(){var u=r[0];if(b(":input[@name=submit]",u).length){alert('Error: Form elements must not be named "submit".');return}var q=b.extend({},b.ajaxSettings,p);var D=jQuery.extend(true,{},b.extend(true,{},b.ajaxSettings),q);var t="jqFormIO"+(new Date().getTime());var z=b('<iframe id="'+t+'" name="'+t+'" />');var B=z[0];if(b.browser.msie||b.browser.opera){B.src='javascript:false;document.write("");'}z.css({position:"absolute",top:"-1000px",left:"-1000px"});var C={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;z.attr("src","about:blank")}};var A=q.global;if(A&&!b.active++){b.event.trigger("ajaxStart")}if(A){b.event.trigger("ajaxSend",[C,q])}if(D.beforeSend&&D.beforeSend(C,D)===false){D.global&&jQuery.active--;return}if(C.aborted){return}var k=0;var w=0;var j=u.clk;if(j){var v=j.name;if(v&&!j.disabled){p.extraData=p.extraData||{};p.extraData[v]=j.value;if(j.type=="image"){p.extraData[name+".x"]=u.clk_x;p.extraData[name+".y"]=u.clk_y}}}setTimeout(function(){var G=r.attr("target"),E=r.attr("action");r.attr({target:t,method:"POST",action:q.url});if(!p.skipEncodingOverride){r.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(q.timeout){setTimeout(function(){w=true;x()},q.timeout)}var F=[];try{if(p.extraData){for(var H in p.extraData){F.push(b('<input type="hidden" name="'+H+'" value="'+p.extraData[H]+'" />').appendTo(u)[0])}}z.appendTo("body");B.attachEvent?B.attachEvent("onload",x):B.addEventListener("load",x,false);u.submit()}finally{r.attr("action",E);G?r.attr("target",G):r.removeAttr("target");b(F).remove()}},10);function x(){if(k++){return}B.detachEvent?B.detachEvent("onload",x):B.removeEventListener("load",x,false);var E=0;var F=true;try{if(w){throw"timeout"}var G,I;I=B.contentWindow?B.contentWindow.document:B.contentDocument?B.contentDocument:B.document;if(I.body==null&&!E&&b.browser.opera){E=1;k--;setTimeout(x,100);return}C.responseText=I.body?I.body.innerHTML:null;C.responseXML=I.XMLDocument?I.XMLDocument:I;C.getResponseHeader=function(K){var J={"content-type":q.dataType};return J[K]};if(q.dataType=="json"||q.dataType=="script"){var n=I.getElementsByTagName("textarea")[0];C.responseText=n?n.value:C.responseText}else{if(q.dataType=="xml"&&!C.responseXML&&C.responseText!=null){C.responseXML=y(C.responseText)}}G=b.httpData(C,q.dataType)}catch(H){F=false;b.handleError(q,C,"error",H)}if(F){q.success(G,"success");if(A){b.event.trigger("ajaxSuccess",[C,q])}}if(A){b.event.trigger("ajaxComplete",[C,q])}if(A&&!--b.active){b.event.trigger("ajaxStop")}if(q.complete){q.complete(C,F?"success":"error")}setTimeout(function(){z.remove();C.responseXML=null},100)}function y(n,E){if(window.ActiveXObject){E=new ActiveXObject("Microsoft.XMLDOM");E.async="false";E.loadXML(n)}else{E=(new DOMParser()).parseFromString(n,"text/xml")}return(E&&E.documentElement&&E.documentElement.tagName!="parsererror")?E:null}}};b.fn.ajaxForm=function(c){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){b(this).ajaxSubmit(c);return false}).each(function(){b(":submit,input:image",this).bind("click.form-plugin",function(f){var d=this.form;d.clk=this;if(this.type=="image"){if(f.offsetX!=undefined){d.clk_x=f.offsetX;d.clk_y=f.offsetY}else{if(typeof b.fn.offset=="function"){var g=b(this).offset();d.clk_x=f.pageX-g.left;d.clk_y=f.pageY-g.top}else{d.clk_x=f.pageX-this.offsetLeft;d.clk_y=f.pageY-this.offsetTop}}}setTimeout(function(){d.clk=d.clk_x=d.clk_y=null},10)})})};b.fn.ajaxFormUnbind=function(){this.unbind("submit.form-plugin");return this.each(function(){b(":submit,input:image",this).unbind("click.form-plugin")})};b.fn.formToArray=function(q){var p=[];if(this.length==0){return p}var d=this[0];var h=q?d.getElementsByTagName("*"):d.elements;if(!h){return p}for(var k=0,m=h.length;k<m;k++){var e=h[k];var f=e.name;if(!f){continue}if(q&&d.clk&&e.type=="image"){if(!e.disabled&&d.clk==e){p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}continue}var r=b.fieldValue(e,true);if(r&&r.constructor==Array){for(var g=0,c=r.length;g<c;g++){p.push({name:f,value:r[g]})}}else{if(r!==null&&typeof r!="undefined"){p.push({name:f,value:r})}}}if(!q&&d.clk){var l=d.getElementsByTagName("input");for(var k=0,m=l.length;k<m;k++){var o=l[k];var f=o.name;if(f&&!o.disabled&&o.type=="image"&&d.clk==o){p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}}}return p};b.fn.formSerialize=function(c){return b.param(this.formToArray(c))};b.fn.fieldSerialize=function(d){var c=[];this.each(function(){var h=this.name;if(!h){return}var f=b.fieldValue(this,d);if(f&&f.constructor==Array){for(var g=0,e=f.length;g<e;g++){c.push({name:h,value:f[g]})}}else{if(f!==null&&typeof f!="undefined"){c.push({name:this.name,value:f})}}});return b.param(c)};b.fn.fieldValue=function(h){for(var g=[],e=0,c=this.length;e<c;e++){var f=this[e];var d=b.fieldValue(f,h);if(d===null||typeof d=="undefined"||(d.constructor==Array&&!d.length)){continue}d.constructor==Array?b.merge(g,d):g.push(d)}return g};b.fieldValue=function(c,j){var e=c.name,p=c.type,q=c.tagName.toLowerCase();if(typeof j=="undefined"){j=true}if(j&&(!e||c.disabled||p=="reset"||p=="button"||(p=="checkbox"||p=="radio")&&!c.checked||(p=="submit"||p=="image")&&c.form&&c.form.clk!=c||q=="select"&&c.selectedIndex==-1)){return null}if(q=="select"){var k=c.selectedIndex;if(k<0){return null}var m=[],d=c.options;var g=(p=="select-one");var l=(g?k+1:d.length);for(var f=(g?k:0);f<l;f++){var h=d[f];if(h.selected){var o=b.browser.msie&&!(h.attributes.value.specified)?h.text:h.value;if(g){return o}m.push(o)}}return m}return c.value};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()})};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var d=this.type,c=this.tagName.toLowerCase();if(d=="text"||d=="password"||c=="textarea"){this.value=""}else{if(d=="checkbox"||d=="radio"){this.checked=false}else{if(c=="select"){this.selectedIndex=-1}}}})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};b.fn.enable=function(c){if(c==undefined){c=true}return this.each(function(){this.disabled=!c})};b.fn.selected=function(c){if(c==undefined){c=true}return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio"){this.checked=c}else{if(this.tagName.toLowerCase()=="option"){var e=b(this).parent("select");if(c&&e[0]&&e[0].type=="select-one"){e.find("option").selected(false)}this.selected=c}}})};function a(){if(b.fn.ajaxSubmit.debug&&window.console&&window.console.log){window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}}})(jQuery);
/* jquery.scrollTo-min.js */(function(b){var c=b.scrollTo=function(e,d,f){c.window().scrollTo(e,d,f)};c.defaults={axis:"y",duration:1};c.window=function(){return b(b.browser.safari?"body":"html")};b.fn.scrollTo=function(e,d,f){if(typeof d=="object"){f=d;d=0}f=b.extend({},c.defaults,f);d=d||f.speed||f.duration;f.queue=f.queue&&f.axis.length>1;if(f.queue){d/=2}f.offset=a(f.offset);f.over=a(f.over);return this.each(function(){var k=this,i=b(k),l=e,p,o={},j=i.is("html,body");switch(typeof l){case"number":case"string":if(/^([+-]=)?\d+(px)?$/.test(l)){l=a(l);break}l=b(l,this);case"object":if(l.is||l.style){p=(l=b(l)).offset()}}b.each(f.axis.split(""),function(h,r){var q=r=="x"?"Left":"Top",u=q.toLowerCase(),g="scroll"+q,t=k[g],s=r=="x"?"Width":"Height";if(p){o[g]=p[u]+(j?0:t-i.offset()[u]);if(f.margin){o[g]-=parseInt(l.css("margin"+q))||0;o[g]-=parseInt(l.css("border"+q+"Width"))||0}o[g]+=f.offset[u]||0;if(f.over[u]){o[g]+=l[s.toLowerCase()]()*f.over[u]}}else{o[g]=l[u]}if(/^\d+$/.test(o[g])){o[g]=o[g]<=0?0:Math.min(o[g],m(s))}if(!h&&f.queue){if(t!=o[g]){n(f.onAfterFirst)}delete o[g]}});n(f.onAfter);function n(g){i.animate(o,d,f.easing,g&&function(){g.call(this,e)})}function m(h){var g=j?b.browser.opera?document.body:document.documentElement:k;return g["scroll"+h]-g["client"+h]}})};function a(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);
/* jquery.tabs.js */(function(b){b.extend({tabs:{remoteCount:0}});b.fn.tabs=function(d,e){if(typeof d=="object"){e=d}e=b.extend({initial:(d&&typeof d=="number"&&d>0)?--d:0,disabled:null,bookmarkable:b.ajaxHistory?true:false,remote:false,spinner:"Loading&#8230;",hashPrefix:"remote-tab-",fxFade:null,fxSlide:null,fxShow:null,fxHide:null,fxSpeed:"normal",fxShowSpeed:null,fxHideSpeed:null,fxAutoHeight:false,onClick:null,onHide:null,onShow:null,navClass:"tabs-nav",selectedClass:"tabs-selected",disabledClass:"tabs-disabled",containerClass:"tabs-container",hideClass:"tabs-hide",loadingClass:"tabs-loading",tabStruct:"div"},e||{});b.browser.msie6=b.browser.msie&&(b.browser.version&&b.browser.version<7||/MSIE 6.0/.test(navigator.userAgent));function f(){scrollTo(0,0)}return this.each(function(){var r=this;var p=b("ul."+e.navClass,r);p=p.size()&&p||b(">ul:eq(0)",r);var A=b("a",p);if(e.remote){A.each(function(){var B=e.hashPrefix+(++b.tabs.remoteCount),k="#"+B,i=this.href;this.href=k;b('<div id="'+B+'" class="'+e.containerClass+'"></div>').appendTo(r);b(this).bind("loadRemoteTab",function(F,G){var C=b(this).addClass(e.loadingClass),D=b("span",this)[0],E=D.innerHTML;if(e.spinner){D.innerHTML="<em>"+e.spinner+"</em>"}setTimeout(function(){b(k).load(i,function(){if(e.spinner){D.innerHTML=E}C.removeClass(e.loadingClass);G&&G()})},0)})})}var t=b("div."+e.containerClass,r);t=t.size()&&t||b(">"+e.tabStruct,r);p.is("."+e.navClass)||p.addClass(e.navClass);t.each(function(){var i=b(this);i.is("."+e.containerClass)||i.addClass(e.containerClass)});var n=b("li",p).index(b("li."+e.selectedClass,p)[0]);if(n>=0){e.initial=n}if(location.hash){A.each(function(B){if(this.hash==location.hash){e.initial=B;if((b.browser.msie||b.browser.opera)&&!e.remote){var k=b(location.hash);var C=k.attr("id");k.attr("id","");setTimeout(function(){k.attr("id",C)},500)}f();return false}})}if(b.browser.msie){f()}t.filter(":eq("+e.initial+")").show().end().not(":eq("+e.initial+")").addClass(e.hideClass);b("li",p).removeClass(e.selectedClass).eq(e.initial).addClass(e.selectedClass);A.eq(e.initial).trigger("loadRemoteTab").end();if(e.fxAutoHeight){var z=function(i){var k=b.map(t.get(),function(C){var B,D=b(C);if(i){if(b.browser.msie6){C.style.removeExpression("behaviour");C.style.height="";C.minHeight=null}B=D.css({"min-height":""}).height()}else{B=D.height()}return B}).sort(function(C,B){return B-C});if(b.browser.msie6){t.each(function(){this.minHeight=k[0]+"px";this.style.setExpression("behaviour",'this.style.height = this.minHeight ? this.minHeight : "1px"')})}else{t.css({"min-height":k[0]+"px"})}};z();var q=r.offsetWidth;var y=r.offsetHeight;var j=b("#tabs-watch-font-size").get(0)||b('<span id="tabs-watch-font-size">M</span>').css({display:"block",position:"absolute",visibility:"hidden"}).appendTo(document.body).get(0);var s=j.offsetHeight;setInterval(function(){var k=r.offsetWidth;var B=r.offsetHeight;var i=j.offsetHeight;if(B>y||k!=q||i!=s){z((k>q||i<s));q=k;y=B;s=i}},50)}var l={},u={},h=e.fxShowSpeed||e.fxSpeed,o=e.fxHideSpeed||e.fxSpeed;if(e.fxSlide||e.fxFade){if(e.fxSlide){l.height="show";u.height="hide"}if(e.fxFade){l.opacity="show";u.opacity="hide"}}else{if(e.fxShow){l=e.fxShow}else{l["min-width"]=0;h=1}if(e.fxHide){u=e.fxHide}else{u["min-width"]=0;o=1}}var m=e.onClick,g=e.onHide,v=e.onShow;A.bind("triggerTab",function(){var i=b(this).parents("li:eq(0)");if(r.locked||i.is("."+e.selectedClass)||i.is("."+e.disabledClass)){return false}var B=this.hash;if(b.browser.msie){b(this).trigger("click");if(e.bookmarkable){b.ajaxHistory.update(B);location.hash=B.replace("#","")}}else{if(b.browser.safari){var k=b('<form action="'+B+'"><div><input type="submit" value="h" /></div></form>').get(0);k.submit();b(this).trigger("click");if(e.bookmarkable){b.ajaxHistory.update(B)}}else{if(e.bookmarkable){location.hash=B.replace("#","")}else{b(this).trigger("click")}}}});A.bind("disableTab",function(){var i=b(this).parents("li:eq(0)");if(b.browser.safari){i.animate({opacity:0},1,function(){i.css({opacity:""})})}i.addClass(e.disabledClass)});if(e.disabled&&e.disabled.length){for(var x=0,w=e.disabled.length;x<w;x++){A.eq(--e.disabled[x]).trigger("disableTab").end()}}A.bind("enableTab",function(){var i=b(this).parents("li:eq(0)");i.removeClass(e.disabledClass);if(b.browser.safari){i.animate({opacity:1},1,function(){i.css({opacity:""})})}});A.bind("click",function(D){var I=D.clientX;var E=this,J=b(this).parents("li:eq(0)"),k=b(this.hash),F=t.filter(":visible");if(r.locked||J.is("."+e.selectedClass)||J.is("."+e.disabledClass)||typeof m=="function"&&m(this,k[0],F[0])===false){this.blur();return false}r.locked=true;if(k.size()){if(b.browser.msie&&e.bookmarkable){var i=this.hash.replace("#","");k.attr("id","");setTimeout(function(){k.attr("id",i)},0)}var C={display:"",overflow:"",height:""};if(!b.browser.msie){C.opacity=""}function B(){if(e.bookmarkable&&I){b.ajaxHistory.update(E.hash)}F.animate(u,o,function(){b(E).parents("li:eq(0)").addClass(e.selectedClass).siblings().removeClass(e.selectedClass);F.addClass(e.hideClass).css(C);if(typeof g=="function"){g(E,k[0],F[0])}if(!(e.fxSlide||e.fxFade||e.fxShow)){k.css("display","block")}k.animate(l,h,function(){k.removeClass(e.hideClass).css(C);if(b.browser.msie){F[0].style.filter="";k[0].style.filter=""}if(typeof v=="function"){v(E,k[0],F[0])}r.locked=null})})}if(!e.remote){B()}else{b(E).trigger("loadRemoteTab",[B])}}else{alert("There is no such container.")}var H=window.pageXOffset||document.documentElement&&document.documentElement.scrollLeft||document.body.scrollLeft||0;var G=window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop||0;setTimeout(function(){window.scrollTo(H,G)},0);this.blur();return e.bookmarkable&&!!I});if(e.bookmarkable){b.ajaxHistory.initialize(function(){A.eq(e.initial).trigger("click").end()})}})};var c=["triggerTab","disableTab","enableTab"];for(var a=0;a<c.length;a++){b.fn[c[a]]=(function(d){return function(e){return this.each(function(){var g=b("ul.tabs-nav",this);g=g.size()&&g||b(">ul:eq(0)",this);var f;if(!e||typeof e=="number"){f=b("li a",g).eq((e&&e>0&&e-1||0))}else{if(typeof e=="string"){f=b('li a[@href$="#'+e+'"]',g)}}f.trigger(d)})}})(c[a])}b.fn.activeTab=function(){var d=[];this.each(function(){var f=b("ul.tabs-nav",this);f=f.size()&&f||b(">ul:eq(0)",this);var e=b("li",f);d.push(e.index(e.filter(".tabs-selected")[0])+1)});return d[0]}})(jQuery);
/* jquery.truncator.js */(function(e){var f=true;e.fn.truncate=function(g){var h=e.extend({},e.fn.truncate.defaults,g);e(this).each(function(){var k=e.trim(a(e(this).text())).length;if(k<=h.max_length){return}var l=h.max_length-h.more.length-3;var j=c(this,l);var i=e(this);j.insertAfter(i);j.find("p:last").add(j).eq(0).append(' (<a href="#show more content">'+h.more+"</a>)");i.hide();i.find("p:last").add(i).eq(0).append(' (<a href="#show less content">'+h.less+"</a>)");j.find("a:last").click(function(){j.hide();i.show();return false});i.find("a:last").click(function(){j.show();i.hide();return false})})};e.fn.truncate.defaults={max_length:100,more:"…more",less:"less"};function c(g,h){return(g.nodeType==3)?d(g,h):b(g,h)}function b(g,i){var g=e(g);var h=g.clone().html("");g.contents().each(function(){var j=i-h.text().length;if(j==0){return}h.append(c(this,j))});return h}function d(g,i){var h=a(g.data);if(f){h=h.replace(/^ /,"")}f=!!h.match(/ $/);var h=h.slice(0,i);h=e("<div/>").text(h).html();return h}function a(g){return g.replace(/\s+/g," ")}})(jQuery);
/* swfobject-2.js */if(typeof(swfo)=="undefined"){var swfo=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);
/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/
return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return}f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return}if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return}}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return}var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfo){swfo[q]=null}swfo=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return}var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return}AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}()};
/* global.js */window.onerror=function(){return true};function documentReady(){initTwitterPromo();initVideoPlayers()}function ccPopWindow(d){var e=d.url;var a;var c;if(d.windowName==""||d.windowName=="undefined"){a="cc_pop_window"}else{a=d.windowName}if(d.windowAttributes==""||d.windowAttributes=="undefined"){c=""}else{c=d.windowAttributes}var b=window.open(e,a,c)}function addLoadEvent(a){try{if(window.attachEvent){window.attachEvent("onload",a)}if(window.addEventListener){window.addEventListener("load",a,false)}return this}catch(b){}}function injectFluxWidget(b,a){if(typeof(Flux)!="undefined"&&Flux.Utils.WidgetsLoader){Flux.Utils.WidgetsLoader.createWidget(b,a)}}function clearSearch(a){if(a.value==a.defaultValue){a.value=""}}function blurSearch(a){if(a.value==""){a.value=a.defaultValue}}function submitSearch(b){var d=$(b).find('input[type="text"]');var a=d.attr("value");var c=d[0].defaultValue;if(c==a){alert("Please enter a search term.");return false}return true}function loginsubmit(){document.flux_signin.ref.value=location.href;document.flux_signin.submit()}function newsletter_pop(f,b,i,h,c){var d=f;var e="http://www.comedycentral-q.mtvi.com/comedycentral/sitewide/droplets/third_party_newsletter_popup.jhtml?newsletterId="+b+"&email="+d+"&BGart="+i+"&dob="+h+"&zip="+c;$(".subscription_error").text("Sending request...");var g=Math.floor(Math.random()*1111111111);var a="/subscribe_user?email="+f+"&newsletterID="+b+"&dob="+h+"&zip="+c+"&r="+g;$.post(a,"",subscribe_results,"text");return false}function subscribe_results(b,c,a){if(b.indexOf("OK")>-1){$(".subscription_error").text("You have been subscribed")}else{if(b.indexOf("AGE")>-1){$(".subscription_error").text("You are not eligible to sign up at this time")}else{$(".subscription_error").text("There was a problem, please try again")}}}function validateEmail(e,c,g,b){var d=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;var a=c;if(d.test(a)==false){var f="."+e;$(f).show()}else{newsletter_pop(c,g,b)}return false}function validateNewsletter(e,f,a,l,k,b){$(".email_error").hide();$(".dob_error").hide();$(".zip_error").hide();$(".subscription_error").text("");var h=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;var i=/^([0-9]{2})+\/([0-9]{2})+\/([0-9]{2})$/;var c=/^([0-9]{5})$/;var j=f;var d=k;var g=b;if(h.test(j)==false){$(".email_error").show()}else{if(i.test(d)==false){$(".dob_error").show()}else{if(c.test(g)==false){$(".zip_error").show()}else{newsletter_pop(f,a,l,k,b)}}}return false}function validatePhone(b){var a="^";var c;a="(\\(?\\d{3}\\)?([-. ])?)?\\d{3}([-. ])?\\d{4}\\s?(\\-|x|X|ext|EXT|ex|EX| )?\\s?\\d{0,6}?$";c=new RegExp(a);return c.test(b)}function validateMobilePhone(c,a){if(validatePhone(a)){alert("success")}else{var b="."+c;$(b).show()}return false}function validateTextMessage(d,a,c){if(validatePhone(a)&&c){alert("success")}else{var b="."+d;$(b).show()}return false}function displayMore(){$("#moreTagResults").hide();$("#lessTagResults").show();$("#tagDelimiter").text(",");$(".derivitiveTagsMore").css("display","inline")}function displayLess(){$("#moreTagResults").show();$("#lessTagResults").hide();$("#tagDelimiter").text("...");$(".derivitiveTagsMore").hide()}function submitWeb(){document.searchFormTop.action="http://www.live.com";document.searchFormTop.target="_blank";var a=document.createElement("input");a.setAttribute("type","hidden");a.setAttribute("name","q");a.setAttribute("value",document.searchFormTop.keywords.value);document.searchFormTop.appendChild(a);if((document.searchFormTop.keywords.value=="")||(document.searchFormTop.keywords.value=="Search")){alert("Please enter your search term in the field to the left before pressing this button");document.searchFormTop.removeChild(a);return false}else{document.searchFormTop.submit();document.searchFormTop.removeChild(a);return false}}function submitSite(a){document.searchFormTop.action=a+"stand-up-search/all/";document.searchFormTop.target="_self";if((document.searchFormTop.keywords.value=="")||(document.searchFormTop.keywords.value=="Search Jokes.com")){alert("Please enter your search term in the field to the left before pressing this button");return false}else{document.searchFormTop.submit()}}function submitSide(b,a){if(a==null){a="all"}document.searchForm.action=b+"stand-up-search/"+a+"/";document.searchForm.target="_self";if((document.searchForm.keywords.value=="")||(document.searchForm.keywords.value=="Search Jokes.com")||(document.searchForm.keywords.value=="Search For Videos")||(document.searchForm.keywords.value=="Search For Jokes")){alert("Please enter your search term in the field to the left before pressing this button");return false}else{document.searchForm.submit()}}function copy(d){if(d.createTextRange){var a=d.createTextRange();if(a){a.execCommand("Copy")}}else{var c="flashcopier";if(!document.getElementById(c)){var e=document.createElement("div");e.id=c;document.body.appendChild(e)}document.getElementById(c).innerHTML="";var b='<embed src="/sitewide/flash/_clipboard.swf" FlashVars="clipboard='+encodeURIComponent(d.value)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';document.getElementById(c).innerHTML=b}}function initTwitterPromo(){$(".twitter-paginator").each(function(){return new TwitterPaginator($(this))})}function TwitterPaginator(a){this._inst=a;this._url=this._inst.attr("action");this._promo=this._inst.find('input[name="promo_id"]').attr("value");this._init_pages()}TwitterPaginator.prototype={next:function(){this._page++;this._load(this._page)},prev:function(){this._page--;this._load(this._page)},_inst:null,_url:"",_page:1,_promo:"",_init_pages:function(){this._inst.css("height","");var a=this;this._inst.find(".pages .next").each(function(){$(this).mouseup(function(){a.next()})});this._inst.find(".pages .prev").each(function(){$(this).mouseup(function(){a.prev()})})},_load:function(b){var c=this;var a=this._url+"/"+b+"?promo_id="+this._promo;this._inst.css("height",this._inst.height());this._inst.html('<span class="status">Please wait...</span>');this._inst.load(a,function(){c._init_pages()})}};function setCookie(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}document.cookie=c+"="+d+a+"; path=/"}function getCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null};
/* actions.js */$(document).ready(function(){$(".moduleBioMain .more_less a.toggle").click(function(a){a.preventDefault();$(".moduleBioMain .more_less").toggle()});$(".moduleBottomSearch input").focus(function(){$(this).attr({value:""})});$(".moduleBottomSearch img").mouseover(function(){$(this).attr({src:"/sitewide/images/search/Button_Go_ON.gif"})});$(".moduleBottomSearch img").mouseout(function(){$(this).attr({src:"/sitewide/images/search/Button_Go_OFF.gif"})});$(".moduleBottomSearch a").click(function(a){a.preventDefault();if($(".moduleBottomSearch input").attr("value")==null||$(".moduleBottomSearch input").attr("value")==$(".moduleBottomSearch input")[0].defaultValue){alert("Please enter your search term in the field to the left before pressing this button")}else{$(".moduleBottomSearch form").submit()}});$("#comedianRelatedItems #jokes").click(function(a){if($("#comedianRelatedItems #videos").html()!=null){$("#comedianRelatedItems .bg_holder").addClass("jokes_selected");$("#comedianRelatedItems .bg_holder").removeClass("videos_selected")}});$("#comedianRelatedItems #videos").click(function(a){if($("#comedianRelatedItems #jokes").html()!=null){$("#comedianRelatedItems .bg_holder").removeClass("jokes_selected");$("#comedianRelatedItems .bg_holder").addClass("videos_selected")}})});
/* createFluxWidgets.js */function createQuickMenuWidget(a){Flux.createWidget("QuickMenu",{containerId:a,showAvatar:true,disableAvatarClick:false,avatarSize:"small",showProfileLink:true,showFriendNotification:true,reloadPageAfterSignOut:true})}function displayConnectButton(){Flux.loadContext(function(b){var a="";if(!b.user){a="<a href='http://community.jokes.com/SignUp.aspx'><img src='http://wiki.developers.facebook.com/images/b/b1/Connect_dark_medium_long.gif'/></a>"}$("#connectbutton").html(a)})}function getFluxType(b){switch(b){case"video":var a="fluxtype:video:";break;case"joke":var a="fluxtype:joke:";break;default:break}return a}function createContentActionWidget(c,b,a){Flux.createWidget("ContentAction",{containerId:a,contentUri:getFluxType(b)+"mgid:cms:item:jokes.com:"+c,layout:"vertical",size:"small",items:[{id:"contentRating",title:{thumbsUpTitle:"thumbs up",thumbsDownTitle:"thumbs down"}},{id:"rate",title:""},{id:"separator"},{id:"addToFavorites",title:"Add to Favorites"},{id:"separator"}]})}function createCommentWidget(c,b,a){Flux.createWidget("Comments",{containerId:a,contentUri:getFluxType(b)+"mgid:cms:item:jokes.com:"+c,widgetTitle:"Comment on This",pageSize:3,disableProfileLinks:false,showPaging:true})}function createUsageWidget(c,b,a){Flux.createWidget("ContentAction",{containerId:a,contentUri:getFluxType(b)+"mgid:cms:item:jokes.com:"+c,layout:"horizontal",size:"small",items:[{id:"commentCount"},]})};
/* dialog.js */DialogManager=function(a){this._instances={};this._close_others=a==false?false:true};DialogManager.prototype={_instances:null,_opened:null,_close_others:null,toString:function(){return"[DialogManager]"},set_opened:function(a){if(this._close_others){try{this._opened.close()}catch(b){}}this._opened=a},toggle:function(a){this._find(a).toggle();return false},open:function(a){this._find(a).open();return false},close:function(a){this._find(a).close();return false},_find:function(f){try{var c=typeof(f)=="string"?f:f.id;var b=this._instances[c];if(b==null){b=new Dialog($("#"+c),this);this._instances[c]=b}return b}catch(a){}}};Dialog=function(b,a){try{var d=b.attr("id");this._manager=a;this._opened=false;this._node=b;this._window=$(this._node.children(".window"));var b;this._button_toggle=$("#"+d+"_toggle");if(!this._button_toggle){b=this._node.children(".toggle")[0];if(b){this._button_toggle=$(b)}}this._button_close=$("#"+d+"_close");if(!this._button_close){b=this._node.children(".close")[0];if(b){this._button_close=$(b)}}}catch(c){}};Dialog.prototype={toString:function(){return"[Dialog "+this._node.attr("id")+"]"},_manager:null,_node:null,_button_toggle:null,_button_close:null,_window:null,_opened:null,toggle:function(){if(!this._opened){this.open()}else{this.close()}},open:function(){if(!this._opened){this._manager.set_opened(this);if(this._button_toggle!=null){this._button_toggle.addClass("toggle_open")}if(this._button_close!=null){this._button_close.addClass("close_open")}this._window.addClass("window_open");this._opened=true}},close:function(){if(this._opened){if(this._button_toggle){this._button_toggle.removeClass("toggle_open")}if(this._button_close){this._button_close.removeClass("close_open")}this._window.removeClass("window_open");this._opened=false}}};
/* json2.js */if(!this.JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"};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)}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")}}})();
/* mike.js */function executeJSONRPCRequest(tempURL,tempMethod,tempParameters,callbackFunction){var tempRequest=substantiateRemoteRequest();var tempVars="";var tempData=new Object;tempData.method=tempMethod;tempData.params=tempParameters;var d=new Date();tempData.id=d.getTime();tempVars=JSON.stringify(tempData);tempRequest.open("POST",tempURL,true);tempRequest.setRequestHeader("Content-type","application/json");tempRequest.setRequestHeader("Content-length",tempVars.length);tempRequest.setRequestHeader("Connection","close");tempRequest.onreadystatechange=function(){if((tempRequest.readyState==4)&&(tempRequest.status==200)){var tempResult;if((tempRequest.responseText!=null)&&(tempRequest.responseText!="")){tempResult=JSON.parse(tempRequest.responseText)}if(tempResult.result!=null){eval(callbackFunction+"(tempResult);");return}alert("The web browser received an invalid answer.  Please try again later.")}if((tempRequest.readyState==4)&&(tempRequest.status!=200)){alert("An error occured accessing a remote procedure.  Please try again later.")}};tempRequest.send(tempVars)}function substantiateRemoteRequest(){var b;try{b=new XMLHttpRequest()}catch(c){try{b=new ActiveXObject("Msxml2.XMLHTTP")}catch(d){try{b=new ActiveXObject("Microsoft.XMLHTTP")}catch(a){b=false}}}if(!b){alert("Error initializing XMLHttpRequest!")}return b}function executeRemoteGetRequest(tempURL,tempVars,callbackFunction){var tempRequest=substantiateRemoteRequest();if(typeof(tempRequest)!="object"){return false}tempCompleteURL=tempURL+"?"+tempVars;tempRequest.open("GET",tempCompleteURL,true);tempRequest.onreadystatechange=function(){if((tempRequest.readyState==4)&&(tempRequest.status==200)){eval(callbackFunction+"(tempRequest.responseText);")}if((tempRequest.readyState==4)&&(tempRequest.status==503)){}};tempRequest.send(null)}function executeRemotePostRequest(tempURL,tempVars,callbackFunction){var tempRequest=substantiateRemoteRequest();if(typeof(tempRequest)!="object"){return false}tempRequest.open("POST",tempURL,true);tempRequest.setRequestHeader("Content-type","application/x-www-form-urlencoded");tempRequest.setRequestHeader("Content-length",tempVars.length);tempRequest.setRequestHeader("Connection","close");tempRequest.onreadystatechange=function(){if((tempRequest.readyState==4)&&(tempRequest.status==200)){eval(callbackFunction+"(tempRequest.responseText);")}};tempRequest.send(tempVars)}function displayRelatedVideos(a){tempParameters=new Object;tempParameters.videoId=a;tempParameters.requestedType="clips";document.getElementById("mike_landing_pad").innerHTML="";executeJSONRPCRequest("/json-rpc","getRelatedContent",tempParameters,"displayRelatedVideos2")}function displayRelatedVideos2(c){var b=document.getElementById("mike_landing_pad");for(var a=0;a<c.result.length;a++){executeRemoteGetRequest(("/fragments/jokes_video_information/"+c.result[a]+"/video"),null,"displayRelatedVideos3")}}function displayRelatedVideos3(a){var b=document.getElementById("mike_landing_pad");b.innerHTML+=a+"<br/>"}function displayRelatedComedians(a){tempParameters=new Object;tempParameters.videoId=a;tempParameters.requestedType="comedian";document.getElementById("mike_landing_pad").innerHTML="";executeJSONRPCRequest("/json-rpc","getRelatedContent",tempParameters,"displayRelatedComedians2")}function displayRelatedComedians2(c){var b=document.getElementById("mike_landing_pad");for(var a=0;a<c.result.length;a++){executeRemoteGetRequest(("/fragments/jokes_comedian_information/"+c.result[a]+"/comedian"),null,"displayRelatedComedians3")}}function displayRelatedComedians3(a){var b=document.getElementById("mike_landing_pad");b.innerHTML+=a+"<br/>"}function displayRelatedComediansForComedians(a){tempParameters=new Object;tempParameters.comedianId=a;tempParameters.requestedType="comedian";document.getElementById("mike_landing_pad").innerHTML="";executeJSONRPCRequest("/json-rpc","getRelatedContentForComedians",tempParameters,"displayRelatedComediansForComedians2")}function displayRelatedComediansForComedians2(c){var b=document.getElementById("mike_landing_pad");for(var a=0;a<c.result.length;a++){executeRemoteGetRequest(("/fragments/jokes_comedian_information/"+c.result[a]+"/comedian"),null,"displayRelatedComediansForComedians3")}}function displayRelatedComediansForComedians3(a){var b=document.getElementById("mike_landing_pad");b.innerHTML+=a+"<br/>"};
/* open_mic_fight.js */$(document).ready(function(){$("#phase1 #winners .video_thumbnail .video_holder").mouseover(function(){$(this).children(".play").attr("src","/images/standup-showdown/play_icon_over.png")});$("#phase1 #winners .video_thumbnail .video_holder").mouseout(function(){$(this).children(".play").attr("src","/images/standup-showdown/play_icon.png")});$("#phase1 #winners .head a").mouseover(function(){$(this).children("img").css("margin-left","-61px")});$("#phase1 #winners .head a").mouseout(function(){$(this).children("img").css("margin-left","3px")});$("#phase1 #winners .video_thumbnail a").click(function(a){a.preventDefault();var b=$(this).attr("href");$("#phase1 #winners .video").hide();$("#phase1 #winners .video_thumbnail").show();$("#phase1 #winners .info").css("width","370px");$(this).parent().parent().children(".video").show();$(this).parent().hide();$(this).parent().parent().children(".info").css("width","160px")})});
/* player_manager.js */function PlayerEvent(){}PlayerEvent.PLAYING="player_play";PlayerEvent.STOPPED="player_stop";PlayerEvent.READY="player_ready";function PlayerManager(){this._events=new Array();this._events[PlayerEvent.READY]=new PlayerEventBroadcaster();this._events[PlayerEvent.PLAYING]=new PlayerEventBroadcaster();this._events[PlayerEvent.STOPPED]=new PlayerEventBroadcaster()}PlayerManager.DEBUG=false;PlayerManager._instance=null;PlayerManager.getInstance=function(){if(PlayerManager._instance==null){PlayerManager._instance=new PlayerManager()}return PlayerManager._instance};PlayerManager.prototype={_cint:null,_player:null,_events:null,_play_buffer:null,toString:function(){return"[PlayerManager]"},add_listener:function(a,b,c){if(a!=PlayerEvent.READY){this._events[a].add_listener(b,c);return true}return false},play:function(a){this._log(this.toString()+" trying to play video "+a);if(!this._player){this._play_buffer=a}else{this._player.vp_play(a)}return false},play_this:function(a){var b=$(a).attr("videoid");this.play(b)},pause:function(){if(this._player){this._player.vp_pause()}},unpause:function(){if(this._player){this._player.vp_unpause()}},position:function(){if(this._player){return this._player.vp_position()}return null},open_url:function(a){if(window.opener){window.opener.document.location=a}else{window.document.location=a}},ready:function(){try{this._player=swfobject.getObjectById("video_player")}catch(a){this._player=$("#video_player")[0]}if(this._play_buffer!=null){this.play(this._play_buffer);this._play_buffer=null}this._events[PlayerEvent.READY].broadcast([])},loading:function(a){this._log(this.toString()+" playing video "+a);this._events[PlayerEvent.PLAYING].broadcast([a])},stopped:function(a){this._log(this.toString()+" stopped video "+a);this._events[PlayerEvent.STOPPED].broadcast([a])},_log:function(b,c){if(PlayerManager.DEBUG){try{switch(c){case"warn":console.warn(b);break;case"error":console.error(b);break;case"info":console.info(b);break;default:console.debug(b)}}catch(a){}}}};function PlayerListManager(b,a,f,c){this._en=b;this._secn=a;this._dn=f;this._sdcn=c;this._index=PlayerListManager._instances.push(this)-1;this._check_dom();try{var d=PlayerManager.getInstance();d.add_listener(PlayerEvent.PLAYING,this,this._playing);d.add_listener(PlayerEvent.STOPPED,this,this._stopped)}catch(g){PlayerManager.getInstance()._log(this.toString()+" failed to initialize event listeners : "+g.message,"error")}}PlayerListManager._instances=[];PlayerListManager.prototype={_index:null,_en:null,_secn:null,_dn:null,_sdcn:null,_recent_vid:null,_entries:null,_details:null,toString:function(){return"[PlayerListManager]"},_playing:function(f){PlayerManager.getInstance()._log(this.toString()+" playing event for id '"+f+"'");this._recent_vid=f;if(this._en!=null&&this._secn!=null){this._check_dom();var c=0,b;var a=this._entries.length>0?this._entries.length:this._details.length,e;var d;for(;c<a;c++){e=this._entries[c];d=this._details[c];b=e?e.getAttribute("videoid"):d.getAttribute("videoid");if(b==f){if(e){$(e).addClass(this._secn)}if(d){$(d).addClass(this._sdcn)}}else{if(e){$(e).removeClass(this._secn)}if(d){$(d).removeClass(this._sdcn)}}}}},_stopped:function(c){if(this._en!=null&&this._secn!=null){this._check_dom();var b=0,a=this._entries.length;for(;b<a;b++){$(this._entries[b]).removeClass(this._secn)}}},_check_dom:function(){if(this._entries==null){try{var d=$("#"+this._en);this._entries=d.children("div[videoid]");var a=this._entries.length;for(var c=0;c<a;c++){$(this._entries[c]).click(function(){PlayerManager.getInstance().play_this(this)})}}catch(f){PlayerManager.getInstance()._log(this.toString()+" error findind the entries in the DOM : "+f.message,"error")}}if(this._details==null){try{var b=$("#"+this._dn);this._details=b.children("div[videoid]")}catch(f){PlayerManager.getInstance()._log(this.toString()+" error findind the details in the DOM : "+f.message,"error")}}}};function PlayerEventBroadcaster(){this._l=[]}PlayerEventBroadcaster.prototype={_l:null,_p:null,add_listener:function(b,c){if(this._index_of(b,c)<0){var a=new PlayerEventBroadcasterEntry(b,c);this._l.push(a);if(this._p!=null){a.broadcast(this._p)}return true}return false},rem_listener:function(b,c){var a=this._index_of(b,c);if(a>-1){this._l.splice(a,1);return true}return false},broadcast:function(b){this._p=b==null?[]:b;if(this._l.length==1){this._l[0].broadcast(this._p)}else{if(this._l.length>0){for(var a in this._l){this._l[a].broadcast(this._p)}}}},_index_of:function(c,d){for(var b in this._l){var a=this._l[b];if(a._obj==c&&a._method==d){return b}}return -1}};function PlayerEventBroadcasterEntry(a,b){this._obj=a;this._method=b}PlayerEventBroadcasterEntry.prototype={_obj:null,_method:null,broadcast:function(a){this._method.apply(this._obj,a)}};
/* setClipboard.js */var clipboardSwf=new SWFObject("/sitewide/flash/setClipboard.swf","copyProxy","2","2","8","#cccccc");clipboardSwf.write("clipboard");var u=document.getElementById("urlEmbed");var v=document.getElementById("videoEmbed");var c=document.getElementById("copyProxy");function setClipBoard(a){c.setClipboard(a.value)};
/* standup-showdown.js */function vote_pre_submit(c,b,a){b.children(".message").each(function(d){$(this).addClass("pending")});b.children('input[type="image"]').each(function(d){$(this).css("display","none")})}function vote_response(c,d){var b=$("#comedian_"+c.comedian+" .voting form .message");if(typeof(c)!="undefined"){var a=c.success;if(a){window.location=c.redirect}else{alert(c.message);b.removeClass("pending")}}else{b.removeClass("pending");b.addClass("error")}}var twitter_page=1;function newer_twitter(){if(twitter_page>1){new_twitter_page(--twitter_page)}return false}function older_twitter(){new_twitter_page(++twitter_page);return false}function new_twitter_page(b){var a=$("#twitter_data");a.load("/standup-showdown/fragment/twitter/data/"+b)}function twitter_page_loaded(){}var gOpenVideo;function start_susd(){$(".susd .comedian .voting div.checkbox").each(function(b){$(this).mouseup(function(){$(this).toggleClass("selected");var d=$(this).siblings('input[type="image"]');d.css("display",d.css("display")=="block"?"none":"block");var c=$(this).siblings(".message");$(c).removeClass("pending");$(c).removeClass("error")})});$(".susd .comedian .voting form").each(function(b){this.reset();$(this).submit(function(){$(this).ajaxSubmit({dataType:"json",beforeSubmit:vote_pre_submit,success:vote_response});return false})});$(".susd .comedian .video-link").each(function(b){$(this).mouseover(function(){$(this).addClass("over")});$(this).mouseout(function(){$(this).removeClass("over")});$(this).click(function(){var g=$(this).parent();var f=g.get(0);g.addClass("comedian-open").show("slow");if(f.className.indexOf("comedian-open")>-1){var i=g.children(".video-box").children(".video");var e=i.attr("video_url");var d=i.attr("id");var c={nextvideo:"off",autoplay:true};var h={allowscriptaccess:"always",allownetworking:"all"};swfobject.embedSWF(e,d,360,292,"9.0.115","http://www.comedycentral.com/sitewide/flash/expressInstall.swf",c,h)}if(gOpenVideo){gOpenVideo.removeClass("comedian-open").show("slow");gOpenVideo.children(".video-box").html("")}gOpenVideo=g})});$("#susd_share_url").click(function(){$(this).focus();$(this).select()});$("#susd_share_url_copier").click(function(){$("#susd_share_url").click()});$("#embed_input").click(function(){$(this).focus();$(this).select()});$("#copy_embed_button").click(function(){$("#embed_input").click()});var a=window.location.hash;if(a.length>1){$(a+" .video-link").click()}};
/* subscribe_susd.js */var xmlHttp;function subscribeUser(a,d,e){document.getElementById("subscription_error").innerHTML="";document.getElementById("subscription_success").innerHTML="";if(!d){document.getElementById("subscription_error").innerHTML="You need to provide a valid email address.";return}var b=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;if(!b.test(d)){document.getElementById("subscription_error").innerHTML="You need to provide a valid email address.";return}xmlHttp=GetXmlHttpObject();if(xmlHttp==null){document.getElementById("subscription_error").innerHTML="Oops! Your browser does not support this.";return}var c=a+"subscribe_user?email="+d+"&newsletter="+e;xmlHttp.onreadystatechange=stateChanged;xmlHttp.open("GET",c,true);xmlHttp.send(null)}function stateChanged(){if(xmlHttp.readyState==4){if((xmlHttp.status==200)&&(xmlHttp.responseText.indexOf("OK")>-1)){document.getElementById("subscription_success").innerHTML="Congratulations!  You've been subscribed."}else{if(xmlHttp.responseText.indexOf("err:email:illegal")>-1){document.getElementById("subscription_error").innerHTML="Bad email address.  Please correct and try again."}else{document.getElementById("subscription_error").innerHTML="We're sorry, there was a problem.  Please try again."}}}}function GetXmlHttpObject(){var a=null;try{a=new XMLHttpRequest()}catch(b){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){a=new ActiveXObject("Microsoft.XMLHTTP")}}return a};
/* video.js */var video_player,current_entry,current_detail,current_index,buffered_play=-1;var incremented=false;var detach_url;var isAd="false";function initVideoPlayers(){$(".video_entry").click(function(b){var a=$(this).attr("id").substr(12);playVideo(a);return false})}function showtab_(a,b){var c=document.getElementById(a);c.className="tab_"+b+"_vis"}function detach(b){var a=detach_url==null?b.href:detach_url;window.open(a,"detach_video_player","width=480, height=483, resizable=yes, channelmode=no, directories=no, fullscreen=no, location=no, menubar=no, scrollbars=no, status=no, titlebar=no, toolbar=no");if(typeof(video_player)!="undefined"){video_player.pause()}return false}function toggle_continuous(a,c){increment=!increment;var b=$("#detacher").attr("href");detach_url=b;if(incremented){increment_video()}}function increment_video(){if(increment&&NEXT_VIDEO!="0"){window.location.href=next_url}incremented=true}function copyText(e){var g=document.cn_share.urlEmbed;var d=document.cn_share.videoEmbed;if(e.createTextRange){var a=e.createTextRange();if(a){a.execCommand("Copy")}}else{var c="flashcopier";if(!document.getElementById(c)){var f=document.createElement("div");f.id=c;document.body.appendChild(f)}document.getElementById(c).innerHTML="";var b='<embed src="/sitewide/flash/_clipboard.swf" FlashVars="clipboard='+encodeURIComponent(e.value)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';document.getElementById(c).innerHTML=b}}function mtvnPlayerLoaded(){video_player=document.getElementById("video_player");if(typeof(video_player)!="undefined"){current_entry=$("#video_entry_0");current_detail=$("#video_detail_0");video_player.addEventListener("PLAYLIST_COMPLETE","onPlaylistComplete");video_player.addEventListener("STATE_CHANGE","onStateChange");if(buffered_play>-1){playVideo(buffered_play);buffered_play=-1}}}function onStateChange(b){if(b=="playing"){var a=video_player.getPlaylist().index;current_index=a;current_entry.removeClass("video_entry_selected");current_detail.removeClass("video_detail_selected");current_entry=$("#video_entry_"+a);current_detail=$("#video_detail_"+a);current_entry.addClass("video_entry_selected");current_detail.addClass("video_detail_selected")}}function playVideo(a){if(typeof(video_player)=="undefined"){buffered_play=a;return false}if(a==current_index){return false}video_player.closeAllPanels();video_player.playIndex(a);return false}function onPlaylistComplete(){increment_video()};
