/*
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(window,undefined){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context)},_jQuery=window.jQuery,_$=window.$,document=window.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,userAgent=navigator.userAgent,browserMatch,readyBound=false,readyList=[],DOMContentLoaded,toString=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,push=Array.prototype.push,slice=Array.prototype.slice,indexOf=Array.prototype.indexOf;jQuery.fn=jQuery.prototype={init:function(selector,context){var match,elem,ret,doc;if(!selector){return this}if(selector.nodeType){this.context=this[0]=selector;this.length=1;return this}if(selector==="body"&&!context){this.context=document;this[0]=document.body;this.selector="body";this.length=1;return this}if(typeof selector==="string"){match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){doc=(context?context.ownerDocument||context:document);ret=rsingleTag.exec(selector);if(ret){if(jQuery.isPlainObject(context)){selector=[document.createElement(ret[1])];jQuery.fn.attr.call(selector,context,true)}else{selector=[doc.createElement(ret[1])]}}else{ret=buildFragment([match[1]],[doc]);selector=(ret.cacheable?ret.fragment.cloneNode(true):ret.fragment).childNodes}return jQuery.merge(this,selector)}else{elem=document.getElementById(match[2]);if(elem){if(elem.id!==match[2]){return rootjQuery.find(selector)}this.length=1;this[0]=elem}this.context=document;this.selector=selector;return this}}else{if(!context&&/^\w+$/.test(selector)){this.selector=selector;this.context=document;selector=document.getElementsByTagName(selector);return jQuery.merge(this,selector)}else{if(!context||context.jquery){return(context||rootjQuery).find(selector)}else{return jQuery(context).find(selector)}}}}else{if(jQuery.isFunction(selector)){return rootjQuery.ready(selector)}}if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.context}return jQuery.makeArray(selector,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return slice.call(this,0)},get:function(num){return num==null?this.toArray():(num<0?this.slice(num)[0]:this[num])},pushStack:function(elems,name,selector){var ret=jQuery();if(jQuery.isArray(elems)){push.apply(ret,elems)}else{jQuery.merge(ret,elems)}ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")"}}return ret},each:function(callback,args){return jQuery.each(this,callback,args)},ready:function(fn){jQuery.bindReady();if(jQuery.isReady){fn.call(document,jQuery)}else{if(readyList){readyList.push(fn)}}return this},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(slice.apply(this,arguments),"slice",slice.call(arguments).join(","))},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},end:function(){return this.prevObject||jQuery(null)},push:push,sort:[].sort,splice:[].splice};jQuery.fn.init.prototype=jQuery.fn;jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options,name,src,copy;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2}if(typeof target!=="object"&&!jQuery.isFunction(target)){target={}}if(length===i){target=this;--i}for(;i<length;i++){if((options=arguments[i])!=null){for(name in options){src=target[name];copy=options[name];if(target===copy){continue}if(deep&&copy&&(jQuery.isPlainObject(copy)||jQuery.isArray(copy))){var clone=src&&(jQuery.isPlainObject(src)||jQuery.isArray(src))?src:jQuery.isArray(copy)?[]:{};target[name]=jQuery.extend(deep,clone,copy)}else{if(copy!==undefined){target[name]=copy}}}}}return target};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery}return jQuery},isReady:false,ready:function(){if(!jQuery.isReady){if(!document.body){return setTimeout(jQuery.ready,13)}jQuery.isReady=true;if(readyList){var fn,i=0;while((fn=readyList[i++])){fn.call(document,jQuery)}readyList=null}if(jQuery.fn.triggerHandler){jQuery(document).triggerHandler("ready")}}},bindReady:function(){if(readyBound){return }readyBound=true;if(document.readyState==="complete"){return jQuery.ready()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false);window.addEventListener("load",jQuery.ready,false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",DOMContentLoaded);window.attachEvent("onload",jQuery.ready);var toplevel=false;try{toplevel=window.frameElement==null}catch(e){}if(document.documentElement.doScroll&&toplevel){doScrollCheck()}}}},isFunction:function(obj){return toString.call(obj)==="[object Function]"},isArray:function(obj){return toString.call(obj)==="[object Array]"},isPlainObject:function(obj){if(!obj||toString.call(obj)!=="[object Object]"||obj.nodeType||obj.setInterval){return false}if(obj.constructor&&!hasOwnProperty.call(obj,"constructor")&&!hasOwnProperty.call(obj.constructor.prototype,"isPrototypeOf")){return false}var key;for(key in obj){}return key===undefined||hasOwnProperty.call(obj,key)},isEmptyObject:function(obj){for(var name in obj){return false}return true},error:function(msg){throw msg},parseJSON:function(data){if(typeof data!=="string"||!data){return null}data=jQuery.trim(data);if(/^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return window.JSON&&window.JSON.parse?window.JSON.parse(data):(new Function("return "+data))()}else{jQuery.error("Invalid JSON: "+data)}},noop:function(){},globalEval:function(data){if(data&&rnotwhite.test(data)){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.support.scriptEval){script.appendChild(document.createTextNode(data))}else{script.text=data}head.insertBefore(script,head.firstChild);head.removeChild(script)}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()===name.toUpperCase()},each:function(object,callback,args){var name,i=0,length=object.length,isObj=length===undefined||jQuery.isFunction(object);if(args){if(isObj){for(name in object){if(callback.apply(object[name],args)===false){break}}}else{for(;i<length;){if(callback.apply(object[i++],args)===false){break}}}}else{if(isObj){for(name in object){if(callback.call(object[name],name,object[name])===false){break}}}else{for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}}return object},trim:function(text){return(text||"").replace(rtrim,"")},makeArray:function(array,results){var ret=results||[];if(array!=null){if(array.length==null||typeof array==="string"||jQuery.isFunction(array)||(typeof array!=="function"&&array.setInterval)){push.call(ret,array)}else{jQuery.merge(ret,array)}}return ret},inArray:function(elem,array){if(array.indexOf){return array.indexOf(elem)}for(var i=0,length=array.length;i<length;i++){if(array[i]===elem){return i}}return -1},merge:function(first,second){var i=first.length,j=0;if(typeof second.length==="number"){for(var l=second.length;j<l;j++){first[i++]=second[j]}}else{while(second[j]!==undefined){first[i++]=second[j++]}}first.length=i;return first},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++){if(!inv!==!callback(elems[i],i)){ret.push(elems[i])}}return ret},map:function(elems,callback,arg){var ret=[],value;for(var i=0,length=elems.length;i<length;i++){value=callback(elems[i],i,arg);if(value!=null){ret[ret.length]=value}}return ret.concat.apply([],ret)},guid:1,proxy:function(fn,proxy,thisObject){if(arguments.length===2){if(typeof proxy==="string"){thisObject=fn;fn=thisObject[proxy];proxy=undefined}else{if(proxy&&!jQuery.isFunction(proxy)){thisObject=proxy;proxy=undefined}}}if(!proxy&&fn){proxy=function(){return fn.apply(thisObject||this,arguments)}}if(fn){proxy.guid=fn.guid=fn.guid||proxy.guid||jQuery.guid++}return proxy},uaMatch:function(ua){ua=ua.toLowerCase();var match=/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||!/compatible/.test(ua)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}},browser:{}});browserMatch=jQuery.uaMatch(userAgent);if(browserMatch.browser){jQuery.browser[browserMatch.browser]=true;jQuery.browser.version=browserMatch.version}if(jQuery.browser.webkit){jQuery.browser.safari=true}if(indexOf){jQuery.inArray=function(elem,array){return indexOf.call(array,elem)}}rootjQuery=jQuery(document);if(document.addEventListener){DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);jQuery.ready()}}else{if(document.attachEvent){DOMContentLoaded=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);jQuery.ready()}}}}function doScrollCheck(){if(jQuery.isReady){return }try{document.documentElement.doScroll("left")}catch(error){setTimeout(doScrollCheck,1);return }jQuery.ready()}function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:"script"})}else{jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"")}if(elem.parentNode){elem.parentNode.removeChild(elem)}}function access(elems,key,value,exec,fn,pass){var length=elems.length;if(typeof key==="object"){for(var k in key){access(elems,k,key[k],exec,fn,value)}return elems}if(value!==undefined){exec=!pass&&exec&&jQuery.isFunction(value);for(var i=0;i<length;i++){fn(elems[i],key,exec?value.call(elems[i],i,fn(elems[i],key)):value,pass)}return elems}return length?fn(elems[0],key):undefined}function now(){return(new Date).getTime()}(function(){jQuery.support={};var root=document.documentElement,script=document.createElement("script"),div=document.createElement("div"),id="script"+now();div.style.display="none";div.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var all=div.getElementsByTagName("*"),a=div.getElementsByTagName("a")[0];if(!all||!all.length||!a){return }jQuery.support={leadingWhitespace:div.firstChild.nodeType===3,tbody:!div.getElementsByTagName("tbody").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/red/.test(a.getAttribute("style")),hrefNormalized:a.getAttribute("href")==="/a",opacity:/^0.55$/.test(a.style.opacity),cssFloat:!!a.style.cssFloat,checkOn:div.getElementsByTagName("input")[0].value==="on",optSelected:document.createElement("select").appendChild(document.createElement("option")).selected,parentNode:div.removeChild(div.appendChild(document.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};script.type="text/javascript";try{script.appendChild(document.createTextNode("window."+id+"=1;"))}catch(e){}root.insertBefore(script,root.firstChild);if(window[id]){jQuery.support.scriptEval=true;delete window[id]}try{delete script.test}catch(e){jQuery.support.deleteExpando=false}root.removeChild(script);if(div.attachEvent&&div.fireEvent){div.attachEvent("onclick",function click(){jQuery.support.noCloneEvent=false;div.detachEvent("onclick",click)});div.cloneNode(true).fireEvent("onclick")}div=document.createElement("div");div.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var fragment=document.createDocumentFragment();fragment.appendChild(div.firstChild);jQuery.support.checkClone=fragment.cloneNode(true).cloneNode(true).lastChild.checked;jQuery(function(){var div=document.createElement("div");div.style.width=div.style.paddingLeft="1px";document.body.appendChild(div);jQuery.boxModel=jQuery.support.boxModel=div.offsetWidth===2;document.body.removeChild(div).style.display="none";div=null});var eventSupported=function(eventName){var el=document.createElement("div");eventName="on"+eventName;var isSupported=(eventName in el);if(!isSupported){el.setAttribute(eventName,"return;");isSupported=typeof el[eventName]==="function"}el=null;return isSupported};jQuery.support.submitBubbles=eventSupported("submit");jQuery.support.changeBubbles=eventSupported("change");root=script=div=all=a=null})();jQuery.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var expando="jQuery"+now(),uuid=0,windowData={};jQuery.extend({cache:{},expando:expando,noData:{embed:true,object:true,applet:true},data:function(elem,name,data){if(elem.nodeName&&jQuery.noData[elem.nodeName.toLowerCase()]){return }elem=elem==window?windowData:elem;var id=elem[expando],cache=jQuery.cache,thisCache;if(!id&&typeof name==="string"&&data===undefined){return null}if(!id){id=++uuid}if(typeof name==="object"){elem[expando]=id;thisCache=cache[id]=jQuery.extend(true,{},name)}else{if(!cache[id]){elem[expando]=id;cache[id]={}}}thisCache=cache[id];if(data!==undefined){thisCache[name]=data}return typeof name==="string"?thisCache[name]:thisCache},removeData:function(elem,name){if(elem.nodeName&&jQuery.noData[elem.nodeName.toLowerCase()]){return }elem=elem==window?windowData:elem;var id=elem[expando],cache=jQuery.cache,thisCache=cache[id];if(name){if(thisCache){delete thisCache[name];if(jQuery.isEmptyObject(thisCache)){jQuery.removeData(elem)}}}else{if(jQuery.support.deleteExpando){delete elem[jQuery.expando]}else{if(elem.removeAttribute){elem.removeAttribute(jQuery.expando)}}delete cache[id]}}});jQuery.fn.extend({data:function(key,value){if(typeof key==="undefined"&&this.length){return jQuery.data(this[0])}else{if(typeof key==="object"){return this.each(function(){jQuery.data(this,key)})}}var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length){data=jQuery.data(this[0],key)}return data===undefined&&parts[1]?this.data(parts[0]):data}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value)})}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)})}});jQuery.extend({queue:function(elem,type,data){if(!elem){return }type=(type||"fx")+"queue";var q=jQuery.data(elem,type);if(!data){return q||[]}if(!q||jQuery.isArray(data)){q=jQuery.data(elem,type,jQuery.makeArray(data))}else{q.push(data)}return q},dequeue:function(elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),fn=queue.shift();if(fn==="inprogress"){fn=queue.shift()}if(fn){if(type==="fx"){queue.unshift("inprogress")}fn.call(elem,function(){jQuery.dequeue(elem,type)})}}});jQuery.fn.extend({queue:function(type,data){if(typeof type!=="string"){data=type;type="fx"}if(data===undefined){return jQuery.queue(this[0],type)}return this.each(function(i,elem){var queue=jQuery.queue(this,type,data);if(type==="fx"&&queue[0]!=="inprogress"){jQuery.dequeue(this,type)}})},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type)})},delay:function(time,type){time=jQuery.fx?jQuery.fx.speeds[time]||time:time;type=type||"fx";return this.queue(type,function(){var elem=this;setTimeout(function(){jQuery.dequeue(elem,type)},time)})},clearQueue:function(type){return this.queue(type||"fx",[])}});var rclass=/[\n\t]/g,rspace=/\s+/,rreturn=/\r/g,rspecialurl=/href|src|style/,rtype=/(button|input)/i,rfocusable=/(button|input|object|select|textarea)/i,rclickable=/^(a|area)$/i,rradiocheck=/radio|checkbox/;jQuery.fn.extend({attr:function(name,value){return access(this,name,value,true,jQuery.attr)},removeAttr:function(name,fn){return this.each(function(){jQuery.attr(this,name,"");if(this.nodeType===1){this.removeAttribute(name)}})},addClass:function(value){if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);self.addClass(value.call(this,i,self.attr("class")))})}if(value&&typeof value==="string"){var classNames=(value||"").split(rspace);for(var i=0,l=this.length;i<l;i++){var elem=this[i];if(elem.nodeType===1){if(!elem.className){elem.className=value}else{var className=" "+elem.className+" ",setClass=elem.className;for(var c=0,cl=classNames.length;c<cl;c++){if(className.indexOf(" "+classNames[c]+" ")<0){setClass+=" "+classNames[c]}}elem.className=jQuery.trim(setClass)}}}}return this},removeClass:function(value){if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);self.removeClass(value.call(this,i,self.attr("class")))})}if((value&&typeof value==="string")||value===undefined){var classNames=(value||"").split(rspace);for(var i=0,l=this.length;i<l;i++){var elem=this[i];if(elem.nodeType===1&&elem.className){if(value){var className=(" "+elem.className+" ").replace(rclass," ");for(var c=0,cl=classNames.length;c<cl;c++){className=className.replace(" "+classNames[c]+" "," ")}elem.className=jQuery.trim(className)}else{elem.className=""}}}}return this},toggleClass:function(value,stateVal){var type=typeof value,isBool=typeof stateVal==="boolean";if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);self.toggleClass(value.call(this,i,self.attr("class"),stateVal),stateVal)})}return this.each(function(){if(type==="string"){var className,i=0,self=jQuery(this),state=stateVal,classNames=value.split(rspace);while((className=classNames[i++])){state=isBool?state:!self.hasClass(className);self[state?"addClass":"removeClass"](className)}}else{if(type==="undefined"||type==="boolean"){if(this.className){jQuery.data(this,"__className__",this.className)}this.className=this.className||value===false?"":jQuery.data(this,"__className__")||""}}})},hasClass:function(selector){var className=" "+selector+" ";for(var i=0,l=this.length;i<l;i++){if((" "+this[i].className+" ").replace(rclass," ").indexOf(className)>-1){return true}}return false},val:function(value){if(value===undefined){var elem=this[0];if(elem){if(jQuery.nodeName(elem,"option")){return(elem.attributes.value||{}).specified?elem.value:elem.text}if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type==="select-one";if(index<0){return null}for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery(option).val();if(one){return value}values.push(value)}}return values}if(rradiocheck.test(elem.type)&&!jQuery.support.checkOn){return elem.getAttribute("value")===null?"on":elem.value}return(elem.value||"").replace(rreturn,"")}return undefined}var isFunction=jQuery.isFunction(value);return this.each(function(i){var self=jQuery(this),val=value;if(this.nodeType!==1){return }if(isFunction){val=value.call(this,i,self.val())}if(typeof val==="number"){val+=""}if(jQuery.isArray(val)&&rradiocheck.test(this.type)){this.checked=jQuery.inArray(self.val(),val)>=0}else{if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(val);jQuery("option",this).each(function(){this.selected=jQuery.inArray(jQuery(this).val(),values)>=0});if(!values.length){this.selectedIndex=-1}}else{this.value=val}}})}});jQuery.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(elem,name,value,pass){if(!elem||elem.nodeType===3||elem.nodeType===8){return undefined}if(pass&&name in jQuery.attrFn){return jQuery(elem)[name](value)}var notxml=elem.nodeType!==1||!jQuery.isXMLDoc(elem),set=value!==undefined;name=notxml&&jQuery.props[name]||name;if(elem.nodeType===1){var special=rspecialurl.test(name);if(name==="selected"&&!jQuery.support.optSelected){var parent=elem.parentNode;if(parent){parent.selectedIndex;if(parent.parentNode){parent.parentNode.selectedIndex}}}if(name in elem&&notxml&&!special){if(set){if(name==="type"&&rtype.test(elem.nodeName)&&elem.parentNode){jQuery.error("type property can't be changed")}elem[name]=value}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name)){return elem.getAttributeNode(name).nodeValue}if(name==="tabIndex"){var attributeNode=elem.getAttributeNode("tabIndex");return attributeNode&&attributeNode.specified?attributeNode.value:rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?0:undefined}return elem[name]}if(!jQuery.support.style&&notxml&&name==="style"){if(set){elem.style.cssText=""+value}return elem.style.cssText}if(set){elem.setAttribute(name,""+value)}var attr=!jQuery.support.hrefNormalized&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr}return jQuery.style(elem,name,value)}});var rnamespaces=/\.(.*)$/,fcleanup=function(nm){return nm.replace(/[^\w\s\.\|`]/g,function(ch){return"\\"+ch})};jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType===3||elem.nodeType===8){return }if(elem.setInterval&&(elem!==window&&!elem.frameElement)){elem=window}var handleObjIn,handleObj;if(handler.handler){handleObjIn=handler;handler=handleObjIn.handler}if(!handler.guid){handler.guid=jQuery.guid++}var elemData=jQuery.data(elem);if(!elemData){return }var events=elemData.events=elemData.events||{},eventHandle=elemData.handle,eventHandle;if(!eventHandle){elemData.handle=eventHandle=function(){return typeof jQuery!=="undefined"&&!jQuery.event.triggered?jQuery.event.handle.apply(eventHandle.elem,arguments):undefined}}eventHandle.elem=elem;types=types.split(" ");var type,i=0,namespaces;while((type=types[i++])){handleObj=handleObjIn?jQuery.extend({},handleObjIn):{handler:handler,data:data};if(type.indexOf(".")>-1){namespaces=type.split(".");type=namespaces.shift();handleObj.namespace=namespaces.slice(0).sort().join(".")}else{namespaces=[];handleObj.namespace=""}handleObj.type=type;handleObj.guid=handler.guid;var handlers=events[type],special=jQuery.event.special[type]||{};if(!handlers){handlers=events[type]=[];if(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){if(elem.addEventListener){elem.addEventListener(type,eventHandle,false)}else{if(elem.attachEvent){elem.attachEvent("on"+type,eventHandle)}}}}if(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid}}handlers.push(handleObj);jQuery.event.global[type]=true}elem=null},global:{},remove:function(elem,types,handler,pos){if(elem.nodeType===3||elem.nodeType===8){return }var ret,type,fn,i=0,all,namespaces,namespace,special,eventType,handleObj,origType,elemData=jQuery.data(elem),events=elemData&&elemData.events;if(!elemData||!events){return }if(types&&types.type){handler=types.handler;types=types.type}if(!types||typeof types==="string"&&types.charAt(0)==="."){types=types||"";for(type in events){jQuery.event.remove(elem,type+types)}return }types=types.split(" ");while((type=types[i++])){origType=type;handleObj=null;all=type.indexOf(".")<0;namespaces=[];if(!all){namespaces=type.split(".");type=namespaces.shift();namespace=new RegExp("(^|\\.)"+jQuery.map(namespaces.slice(0).sort(),fcleanup).join("\\.(?:.*\\.)?")+"(\\.|$)")}eventType=events[type];if(!eventType){continue}if(!handler){for(var j=0;j<eventType.length;j++){handleObj=eventType[j];if(all||namespace.test(handleObj.namespace)){jQuery.event.remove(elem,origType,handleObj.handler,j);eventType.splice(j--,1)}}continue}special=jQuery.event.special[type]||{};for(var j=pos||0;j<eventType.length;j++){handleObj=eventType[j];if(handler.guid===handleObj.guid){if(all||namespace.test(handleObj.namespace)){if(pos==null){eventType.splice(j--,1)}if(special.remove){special.remove.call(elem,handleObj)}}if(pos!=null){break}}}if(eventType.length===0||pos!=null&&eventType.length===1){if(!special.teardown||special.teardown.call(elem,namespaces)===false){removeEvent(elem,type,elemData.handle)}ret=null;delete events[type]}}if(jQuery.isEmptyObject(events)){var handle=elemData.handle;if(handle){handle.elem=null}delete elemData.events;delete elemData.handle;if(jQuery.isEmptyObject(elemData)){jQuery.removeData(elem)}}},trigger:function(event,data,elem){var type=event.type||event,bubbling=arguments[3];if(!bubbling){event=typeof event==="object"?event[expando]?event:jQuery.extend(jQuery.Event(type),event):jQuery.Event(type);if(type.indexOf("!")>=0){event.type=type=type.slice(0,-1);event.exclusive=true}if(!elem){event.stopPropagation();if(jQuery.event.global[type]){jQuery.each(jQuery.cache,function(){if(this.events&&this.events[type]){jQuery.event.trigger(event,data,this.handle.elem)}})}}if(!elem||elem.nodeType===3||elem.nodeType===8){return undefined}event.result=undefined;event.target=elem;data=jQuery.makeArray(data);data.unshift(event)}event.currentTarget=elem;var handle=jQuery.data(elem,"handle");if(handle){handle.apply(elem,data)}var parent=elem.parentNode||elem.ownerDocument;try{if(!(elem&&elem.nodeName&&jQuery.noData[elem.nodeName.toLowerCase()])){if(elem["on"+type]&&elem["on"+type].apply(elem,data)===false){event.result=false}}}catch(e){}if(!event.isPropagationStopped()&&parent){jQuery.event.trigger(event,data,parent,true)}else{if(!event.isDefaultPrevented()){var target=event.target,old,isClick=jQuery.nodeName(target,"a")&&type==="click",special=jQuery.event.special[type]||{};if((!special._default||special._default.call(elem,event)===false)&&!isClick&&!(target&&target.nodeName&&jQuery.noData[target.nodeName.toLowerCase()])){try{if(target[type]){old=target["on"+type];if(old){target["on"+type]=null}jQuery.event.triggered=true;target[type]()}}catch(e){}if(old){target["on"+type]=old}jQuery.event.triggered=false}}}},handle:function(event){var all,handlers,namespaces,namespace,events;event=arguments[0]=jQuery.event.fix(event||window.event);event.currentTarget=this;all=event.type.indexOf(".")<0&&!event.exclusive;if(!all){namespaces=event.type.split(".");event.type=namespaces.shift();namespace=new RegExp("(^|\\.)"+namespaces.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var events=jQuery.data(this,"events"),handlers=events[event.type];if(events&&handlers){handlers=handlers.slice(0);for(var j=0,l=handlers.length;j<l;j++){var handleObj=handlers[j];if(all||namespace.test(handleObj.namespace)){event.handler=handleObj.handler;event.data=handleObj.data;event.handleObj=handleObj;var ret=handleObj.handler.apply(this,arguments);if(ret!==undefined){event.result=ret;if(ret===false){event.preventDefault();event.stopPropagation()}}if(event.isImmediatePropagationStopped()){break}}}}return event.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(event){if(event[expando]){return event}var originalEvent=event;event=jQuery.Event(originalEvent);for(var i=this.props.length,prop;i;){prop=this.props[--i];event[prop]=originalEvent[prop]}if(!event.target){event.target=event.srcElement||document}if(event.target.nodeType===3){event.target=event.target.parentNode}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement===event.target?event.toElement:event.fromElement}if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc&&doc.clientLeft||body&&body.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc&&doc.clientTop||body&&body.clientTop||0)}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode)){event.which=event.charCode||event.keyCode}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&&event.button!==undefined){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)))}return event},guid:100000000,proxy:jQuery.proxy,special:{ready:{setup:jQuery.bindReady,teardown:jQuery.noop},live:{add:function(handleObj){jQuery.event.add(this,handleObj.origType,jQuery.extend({},handleObj,{handler:liveHandler}))},remove:function(handleObj){var remove=true,type=handleObj.origType.replace(rnamespaces,"");jQuery.each(jQuery.data(this,"events").live||[],function(){if(type===this.origType.replace(rnamespaces,"")){remove=false;return false}});if(remove){jQuery.event.remove(this,handleObj.origType,liveHandler)}}},beforeunload:{setup:function(data,namespaces,eventHandle){if(this.setInterval){this.onbeforeunload=eventHandle}return false},teardown:function(namespaces,eventHandle){if(this.onbeforeunload===eventHandle){this.onbeforeunload=null}}}}};var removeEvent=document.removeEventListener?function(elem,type,handle){elem.removeEventListener(type,handle,false)}:function(elem,type,handle){elem.detachEvent("on"+type,handle)};jQuery.Event=function(src){if(!this.preventDefault){return new jQuery.Event(src)}if(src&&src.type){this.originalEvent=src;this.type=src.type}else{this.type=src}this.timeStamp=now();this[expando]=true};function returnFalse(){return false}function returnTrue(){return true}jQuery.Event.prototype={preventDefault:function(){this.isDefaultPrevented=returnTrue;var e=this.originalEvent;if(!e){return }if(e.preventDefault){e.preventDefault()}e.returnValue=false},stopPropagation:function(){this.isPropagationStopped=returnTrue;var e=this.originalEvent;if(!e){return }if(e.stopPropagation){e.stopPropagation()}e.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=returnTrue;this.stopPropagation()},isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse};var withinElement=function(event){var parent=event.relatedTarget;try{while(parent&&parent!==this){parent=parent.parentNode}if(parent!==this){event.type=event.data;jQuery.event.handle.apply(this,arguments)}}catch(e){}},delegate=function(event){event.type=event.data;jQuery.event.handle.apply(this,arguments)};jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(orig,fix){jQuery.event.special[orig]={setup:function(data){jQuery.event.add(this,fix,data&&data.selector?delegate:withinElement,orig)},teardown:function(data){jQuery.event.remove(this,fix,data&&data.selector?delegate:withinElement)}}});if(!jQuery.support.submitBubbles){jQuery.event.special.submit={setup:function(data,namespaces){if(this.nodeName.toLowerCase()!=="form"){jQuery.event.add(this,"click.specialSubmit",function(e){var elem=e.target,type=elem.type;if((type==="submit"||type==="image")&&jQuery(elem).closest("form").length){return trigger("submit",this,arguments)}});jQuery.event.add(this,"keypress.specialSubmit",function(e){var elem=e.target,type=elem.type;if((type==="text"||type==="password")&&jQuery(elem).closest("form").length&&e.keyCode===13){return trigger("submit",this,arguments)}})}else{return false}},teardown:function(namespaces){jQuery.event.remove(this,".specialSubmit")}}}if(!jQuery.support.changeBubbles){var formElems=/textarea|input|select/i,changeFilters,getVal=function(elem){var type=elem.type,val=elem.value;if(type==="radio"||type==="checkbox"){val=elem.checked}else{if(type==="select-multiple"){val=elem.selectedIndex>-1?jQuery.map(elem.options,function(elem){return elem.selected}).join("-"):""}else{if(elem.nodeName.toLowerCase()==="select"){val=elem.selectedIndex}}}return val},testChange=function testChange(e){var elem=e.target,data,val;if(!formElems.test(elem.nodeName)||elem.readOnly){return }data=jQuery.data(elem,"_change_data");val=getVal(elem);if(e.type!=="focusout"||elem.type!=="radio"){jQuery.data(elem,"_change_data",val)}if(data===undefined||val===data){return }if(data!=null||val){e.type="change";return jQuery.event.trigger(e,arguments[1],elem)}};jQuery.event.special.change={filters:{focusout:testChange,click:function(e){var elem=e.target,type=elem.type;if(type==="radio"||type==="checkbox"||elem.nodeName.toLowerCase()==="select"){return testChange.call(this,e)}},keydown:function(e){var elem=e.target,type=elem.type;if((e.keyCode===13&&elem.nodeName.toLowerCase()!=="textarea")||(e.keyCode===32&&(type==="checkbox"||type==="radio"))||type==="select-multiple"){return testChange.call(this,e)}},beforeactivate:function(e){var elem=e.target;jQuery.data(elem,"_change_data",getVal(elem))}},setup:function(data,namespaces){if(this.type==="file"){return false}for(var type in changeFilters){jQuery.event.add(this,type+".specialChange",changeFilters[type])}return formElems.test(this.nodeName)},teardown:function(namespaces){jQuery.event.remove(this,".specialChange");return formElems.test(this.nodeName)}};changeFilters=jQuery.event.special.change.filters}function trigger(type,elem,args){args[0].type=type;return jQuery.event.handle.apply(elem,args)}if(document.addEventListener){jQuery.each({focus:"focusin",blur:"focusout"},function(orig,fix){jQuery.event.special[fix]={setup:function(){this.addEventListener(orig,handler,true)},teardown:function(){this.removeEventListener(orig,handler,true)}};function handler(e){e=jQuery.event.fix(e);e.type=fix;return jQuery.event.handle.call(this,e)}})}jQuery.each(["bind","one"],function(i,name){jQuery.fn[name]=function(type,data,fn){if(typeof type==="object"){for(var key in type){this[name](key,data,type[key],fn)}return this}if(jQuery.isFunction(data)){fn=data;data=undefined}var handler=name==="one"?jQuery.proxy(fn,function(event){jQuery(this).unbind(event,handler);return fn.apply(this,arguments)}):fn;if(type==="unload"&&name!=="one"){this.one(type,data,fn)}else{for(var i=0,l=this.length;i<l;i++){jQuery.event.add(this[i],type,handler,data)}}return this}});jQuery.fn.extend({unbind:function(type,fn){if(typeof type==="object"&&!type.preventDefault){for(var key in type){this.unbind(key,type[key])}}else{for(var i=0,l=this.length;i<l;i++){jQuery.event.remove(this[i],type,fn)}}return this},delegate:function(selector,types,data,fn){return this.live(types,data,fn,selector)},undelegate:function(selector,types,fn){if(arguments.length===0){return this.unbind("live")}else{return this.die(types,null,fn,selector)}},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this)})},triggerHandler:function(type,data){if(this[0]){var event=jQuery.Event(type);event.preventDefault();event.stopPropagation();jQuery.event.trigger(event,data,this[0]);return event.result}},toggle:function(fn){var args=arguments,i=1;while(i<args.length){jQuery.proxy(fn,args[i++])}return this.click(jQuery.proxy(fn,function(event){var lastToggle=(jQuery.data(this,"lastToggle"+fn.guid)||0)%i;jQuery.data(this,"lastToggle"+fn.guid,lastToggle+1);event.preventDefault();return args[lastToggle].apply(this,arguments)||false}))},hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver)}});var liveMap={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};jQuery.each(["live","die"],function(i,name){jQuery.fn[name]=function(types,data,fn,origSelector){var type,i=0,match,namespaces,preType,selector=origSelector||this.selector,context=origSelector?this:jQuery(this.context);if(jQuery.isFunction(data)){fn=data;data=undefined}types=(types||"").split(" ");while((type=types[i++])!=null){match=rnamespaces.exec(type);namespaces="";if(match){namespaces=match[0];type=type.replace(rnamespaces,"")}if(type==="hover"){types.push("mouseenter"+namespaces,"mouseleave"+namespaces);continue}preType=type;if(type==="focus"||type==="blur"){types.push(liveMap[type]+namespaces);type=type+namespaces}else{type=(liveMap[type]||type)+namespaces}if(name==="live"){context.each(function(){jQuery.event.add(this,liveConvert(type,selector),{data:data,selector:selector,handler:fn,origType:type,origHandler:fn,preType:preType})})}else{context.unbind(liveConvert(type,selector),fn)}}return this}});function liveHandler(event){var stop,elems=[],selectors=[],args=arguments,related,match,handleObj,elem,j,i,l,data,events=jQuery.data(this,"events");if(event.liveFired===this||!events||!events.live||event.button&&event.type==="click"){return }event.liveFired=this;var live=events.live.slice(0);for(j=0;j<live.length;j++){handleObj=live[j];if(handleObj.origType.replace(rnamespaces,"")===event.type){selectors.push(handleObj.selector)}else{live.splice(j--,1)}}match=jQuery(event.target).closest(selectors,event.currentTarget);for(i=0,l=match.length;i<l;i++){for(j=0;j<live.length;j++){handleObj=live[j];if(match[i].selector===handleObj.selector){elem=match[i].elem;related=null;if(handleObj.preType==="mouseenter"||handleObj.preType==="mouseleave"){related=jQuery(event.relatedTarget).closest(handleObj.selector)[0]}if(!related||related!==elem){elems.push({elem:elem,handleObj:handleObj})}}}}for(i=0,l=elems.length;i<l;i++){match=elems[i];event.currentTarget=match.elem;event.data=match.handleObj.data;event.handleObj=match.handleObj;if(match.handleObj.origHandler.apply(match.elem,args)===false){stop=false;break}}return stop}function liveConvert(type,selector){return"live."+(type&&type!=="*"?type+".":"")+selector.replace(/\./g,"`").replace(/ /g,"&")}jQuery.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error").split(" "),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name)};if(jQuery.attrFn){jQuery.attrFn[name]=true}});if(window.attachEvent&&!window.addEventListener){window.attachEvent("onunload",function(){for(var id in jQuery.cache){if(jQuery.cache[id].handle){try{jQuery.event.remove(jQuery.cache[id].handle.elem)}catch(e){}}}});
/*
 * Sizzle CSS Selector Engine - v1.0
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
}(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(selector,context,results,seed){results=results||[];var origContext=context=context||document;if(context.nodeType!==1&&context.nodeType!==9){return[]}if(!selector||typeof selector!=="string"){return results}var parts=[],m,set,checkSet,extra,prune=true,contextXML=isXML(context),soFar=selector;while((chunker.exec(""),m=chunker.exec(soFar))!==null){soFar=m[3];parts.push(m[1]);if(m[2]){extra=m[3];break}}if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context)}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector]){selector+=parts.shift()}set=posProcess(selector,set)}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]}if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0){checkSet=makeArray(set)}else{prune=false}while(parts.length){var cur=parts.pop(),pop=cur;if(!Expr.relative[cur]){cur=""}else{pop=parts.pop()}if(pop==null){pop=context}Expr.relative[cur](checkSet,pop,contextXML)}}else{checkSet=parts=[]}}if(!checkSet){checkSet=set}if(!checkSet){Sizzle.error(cur||selector)}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet)}else{if(context&&context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i])}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i])}}}}}else{makeArray(checkSet,results)}if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results)}return results};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1)}}}}return results};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set)};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[]}for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.leftMatch[type].exec(expr))){var left=match[1];match.splice(1,1);if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break}}}}if(!set){set=context.getElementsByTagName("*")}return{set:set,expr:expr}};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.leftMatch[type].exec(expr))!=null&&match[2]){var filter=Expr.filter[type],found,item,left=match[1];anyFound=false;match.splice(1,1);if(left.substr(left.length-1)==="\\"){continue}if(curLoop===result){result=[]}if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true}else{if(match===true){continue}}}if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=true}else{curLoop[i]=false}}else{if(pass){result.push(item);anyFound=true}}}}}if(found!==undefined){if(!inplace){curLoop=result}expr=expr.replace(Expr.match[type],"");if(!anyFound){return[]}break}}}if(expr===old){if(anyFound==null){Sizzle.error(expr)}else{break}}old=expr}return curLoop};Sizzle.error=function(msg){throw"Syntax error, unrecognized expression: "+msg};var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href")}},relative:{"+":function(checkSet,part){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag){part=part.toLowerCase()}for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}checkSet[i]=isPartStrNotTag||elem&&elem.nodeName.toLowerCase()===part?elem||false:elem===part}}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true)}},">":function(checkSet,part){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=part.toLowerCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName.toLowerCase()===part?parent:false}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part}}if(isPartStr){Sizzle.filter(part,checkSet,true)}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck}checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML)},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck}checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML)}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[]}},NAME:function(match,context){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i])}}return ret.length===0?null:ret}},TAG:function(match,context){return context.getElementsByTagName(match[1])}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match}for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").replace(/[\t\n]/g," ").indexOf(match)>=0)){if(!inplace){result.push(elem)}}else{if(inplace){curLoop[i]=false}}}}return false},ID:function(match){return match[1].replace(/\\/g,"")},TAG:function(match,curLoop){return match[1].toLowerCase()},CHILD:function(match){if(match[1]==="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]==="even"&&"2n"||match[2]==="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0}match[0]=done++;return match},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name]}if(match[2]==="~="){match[4]=" "+match[4]+" "}return match},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop)}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret)}return false}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true}}return match},POS:function(match){match.unshift(true);return match}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden"},disabled:function(elem){return elem.disabled===true},checked:function(elem){return elem.checked===true},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true},parent:function(elem){return !!elem.firstChild},empty:function(elem){return !elem.firstChild},has:function(elem,i,match){return !!Sizzle(match[3],elem).length},header:function(elem){return/h\d/i.test(elem.nodeName)},text:function(elem){return"text"===elem.type},radio:function(elem){return"radio"===elem.type},checkbox:function(elem){return"checkbox"===elem.type},file:function(elem){return"file"===elem.type},password:function(elem){return"password"===elem.type},submit:function(elem){return"submit"===elem.type},image:function(elem){return"image"===elem.type},reset:function(elem){return"reset"===elem.type},button:function(elem){return"button"===elem.type||elem.nodeName.toLowerCase()==="button"},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName)}},setFilters:{first:function(elem,i){return i===0},last:function(elem,i,match,array){return i===array.length-1},even:function(elem,i){return i%2===0},odd:function(elem,i){return i%2===1},lt:function(elem,i,match){return i<match[3]-0},gt:function(elem,i,match){return i>match[3]-0},nth:function(elem,i,match){return match[3]-0===i},eq:function(elem,i,match){return match[3]-0===i}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array)}else{if(name==="contains"){return(elem.textContent||elem.innerText||getText([elem])||"").indexOf(match[3])>=0}else{if(name==="not"){var not=match[3];for(var i=0,l=not.length;i<l;i++){if(not[i]===elem){return false}}return true}else{Sizzle.error("Syntax error, unrecognized expression: "+name)}}}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return false}}if(type==="first"){return true}node=elem;case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false}}return true;case"nth":var first=match[2],last=match[3];if(first===1&&last===0){return true}var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count}}parent.sizcache=doneName}var diff=elem.nodeIndex-last;if(first===0){return diff===0}else{return(diff%first===0&&diff/first>=0)}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName.toLowerCase()===match},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!==check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array)}}}};var origPOS=Expr.match.POS;for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);Expr.leftMatch[type]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Expr.match[type].source.replace(/\\(\d+)/g,function(all,num){return"\\"+(num-0+1)}))}var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);if(results){results.push.apply(results,array);return results}return array};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array)}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ret.push(array[i])}}else{for(var i=0;array[i];i++){ret.push(array[i])}}}return ret}}var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b){hasDuplicate=true}return a.compareDocumentPosition?-1:1}var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=true}return ret}}else{if("sourceIndex" in document.documentElement){sortOrder=function(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b){hasDuplicate=true}return a.sourceIndex?-1:1}var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=true}return ret}}else{if(document.createRange){sortOrder=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b){hasDuplicate=true}return a.ownerDocument?-1:1}var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.setStart(a,0);aRange.setEnd(a,0);bRange.setStart(b,0);bRange.setEnd(b,0);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=true}return ret}}}}function getText(elems){var ret="",elem;for(var i=0;elems[i];i++){elem=elems[i];if(elem.nodeType===3||elem.nodeType===4){ret+=elem.nodeValue}else{if(elem.nodeType!==8){ret+=getText(elem.childNodes)}}}return ret}(function(){var form=document.createElement("div"),id="script"+(new Date).getTime();form.innerHTML="<a name='"+id+"'/>";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[]}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match}}root.removeChild(form);root=form=null})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i])}}results=tmp}return results}}div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2)}}div=null})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return }Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra)}catch(e){}}return oldSizzle(query,context,extra,seed)};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop]}div=null})()}(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(!div.getElementsByClassName||div.getElementsByClassName("e").length===0){return }div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){return }Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1])}};div=null})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i}if(elem.nodeName.toLowerCase()===cur){match=elem;break}elem=elem[dir]}checkSet[i]=match}}}function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i}if(typeof cur!=="string"){if(elem===cur){match=true;break}}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;break}}}elem=elem[dir]}checkSet[i]=match}}}var contains=document.compareDocumentPosition?function(a,b){return !!(a.compareDocumentPosition(b)&16)}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};var isXML=function(elem){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;return documentElement?documentElement.nodeName!=="HTML":false};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"")}selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet)}return Sizzle.filter(later,tmpSet)};jQuery.find=Sizzle;jQuery.expr=Sizzle.selectors;jQuery.expr[":"]=jQuery.expr.filters;jQuery.unique=Sizzle.uniqueSort;jQuery.text=getText;jQuery.isXMLDoc=isXML;jQuery.contains=contains;return ;window.Sizzle=Sizzle})();var runtil=/Until$/,rparentsprev=/^(?:parents|prevUntil|prevAll)/,rmultiselector=/,/,slice=Array.prototype.slice;var winnow=function(elements,qualifier,keep){if(jQuery.isFunction(qualifier)){return jQuery.grep(elements,function(elem,i){return !!qualifier.call(elem,i,elem)===keep})}else{if(qualifier.nodeType){return jQuery.grep(elements,function(elem,i){return(elem===qualifier)===keep})}else{if(typeof qualifier==="string"){var filtered=jQuery.grep(elements,function(elem){return elem.nodeType===1});if(isSimple.test(qualifier)){return jQuery.filter(qualifier,filtered,!keep)}else{qualifier=jQuery.filter(qualifier,filtered)}}}}return jQuery.grep(elements,function(elem,i){return(jQuery.inArray(elem,qualifier)>=0)===keep})};jQuery.fn.extend({find:function(selector){var ret=this.pushStack("","find",selector),length=0;for(var i=0,l=this.length;i<l;i++){length=ret.length;jQuery.find(selector,this[i],ret);if(i>0){for(var n=length;n<ret.length;n++){for(var r=0;r<length;r++){if(ret[r]===ret[n]){ret.splice(n--,1);break}}}}}return ret},has:function(target){var targets=jQuery(target);return this.filter(function(){for(var i=0,l=targets.length;i<l;i++){if(jQuery.contains(this,targets[i])){return true}}})},not:function(selector){return this.pushStack(winnow(this,selector,false),"not",selector)},filter:function(selector){return this.pushStack(winnow(this,selector,true),"filter",selector)},is:function(selector){return !!selector&&jQuery.filter(selector,this).length>0},closest:function(selectors,context){if(jQuery.isArray(selectors)){var ret=[],cur=this[0],match,matches={},selector;if(cur&&selectors.length){for(var i=0,l=selectors.length;i<l;i++){selector=selectors[i];if(!matches[selector]){matches[selector]=jQuery.expr.match.POS.test(selector)?jQuery(selector,context||this.context):selector}}while(cur&&cur.ownerDocument&&cur!==context){for(selector in matches){match=matches[selector];if(match.jquery?match.index(cur)>-1:jQuery(cur).is(match)){ret.push({selector:selector,elem:cur});delete matches[selector]}}cur=cur.parentNode}}return ret}var pos=jQuery.expr.match.POS.test(selectors)?jQuery(selectors,context||this.context):null;return this.map(function(i,cur){while(cur&&cur.ownerDocument&&cur!==context){if(pos?pos.index(cur)>-1:jQuery(cur).is(selectors)){return cur}cur=cur.parentNode}return null})},index:function(elem){if(!elem||typeof elem==="string"){return jQuery.inArray(this[0],elem?jQuery(elem):this.parent().children())}return jQuery.inArray(elem.jquery?elem[0]:elem,this)},add:function(selector,context){var set=typeof selector==="string"?jQuery(selector,context||this.context):jQuery.makeArray(selector),all=jQuery.merge(this.get(),set);return this.pushStack(isDisconnected(set[0])||isDisconnected(all[0])?all:jQuery.unique(all))},andSelf:function(){return this.add(this.prevObject)}});function isDisconnected(node){return !node||!node.parentNode||node.parentNode.nodeType===11}jQuery.each({parent:function(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null},parents:function(elem){return jQuery.dir(elem,"parentNode")},parentsUntil:function(elem,i,until){return jQuery.dir(elem,"parentNode",until)},next:function(elem){return jQuery.nth(elem,2,"nextSibling")},prev:function(elem){return jQuery.nth(elem,2,"previousSibling")},nextAll:function(elem){return jQuery.dir(elem,"nextSibling")},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")},nextUntil:function(elem,i,until){return jQuery.dir(elem,"nextSibling",until)},prevUntil:function(elem,i,until){return jQuery.dir(elem,"previousSibling",until)},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(until,selector){var ret=jQuery.map(this,fn,until);if(!runtil.test(name)){selector=until}if(selector&&typeof selector==="string"){ret=jQuery.filter(selector,ret)}ret=this.length>1?jQuery.unique(ret):ret;if((this.length>1||rmultiselector.test(selector))&&rparentsprev.test(name)){ret=ret.reverse()}return this.pushStack(ret,name,slice.call(arguments).join(","))}});jQuery.extend({filter:function(expr,elems,not){if(not){expr=":not("+expr+")"}return jQuery.find.matches(expr,elems)},dir:function(elem,dir,until){var matched=[],cur=elem[dir];while(cur&&cur.nodeType!==9&&(until===undefined||cur.nodeType!==1||!jQuery(cur).is(until))){if(cur.nodeType===1){matched.push(cur)}cur=cur[dir]}return matched},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType===1&&++num===result){break}}return cur},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){r.push(n)}}return r}});var rinlinejQuery=/ jQuery\d+="(?:\d+|null)"/g,rleadingWhitespace=/^\s+/,rxhtmlTag=/(<([\w:]+)[^>]*?)\/>/g,rselfClosing=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,rtagName=/<([\w:]+)/,rtbody=/<tbody/i,rhtml=/<|&#?\w+;/,rnocache=/<script|<object|<embed|<option|<style/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,fcloseTag=function(all,front,tag){return rselfClosing.test(tag)?all:front+"></"+tag+">"},wrapMap={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};wrapMap.optgroup=wrapMap.option;wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;if(!jQuery.support.htmlSerialize){wrapMap._default=[1,"div<div>","</div>"]}jQuery.fn.extend({text:function(text){if(jQuery.isFunction(text)){return this.each(function(i){var self=jQuery(this);self.text(text.call(this,i,self.text()))})}if(typeof text!=="object"&&text!==undefined){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text))}return jQuery.text(this)},wrapAll:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapAll(html.call(this,i))})}if(this[0]){var wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){wrap.insertBefore(this[0])}wrap.map(function(){var elem=this;while(elem.firstChild&&elem.firstChild.nodeType===1){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapInner(html.call(this,i))})}return this.each(function(){var self=jQuery(this),contents=self.contents();if(contents.length){contents.wrapAll(html)}else{self.append(html)}})},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)})},unwrap:function(){return this.parent().each(function(){if(!jQuery.nodeName(this,"body")){jQuery(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1){this.appendChild(elem)}})},prepend:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1){this.insertBefore(elem,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this)})}else{if(arguments.length){var set=jQuery(arguments[0]);set.push.apply(set,this.toArray());return this.pushStack(set,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this.nextSibling)})}else{if(arguments.length){var set=this.pushStack(this,"after",arguments);set.push.apply(set,jQuery(arguments[0]).toArray());return set}}},remove:function(selector,keepData){for(var i=0,elem;(elem=this[i])!=null;i++){if(!selector||jQuery.filter(selector,[elem]).length){if(!keepData&&elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"));jQuery.cleanData([elem])}if(elem.parentNode){elem.parentNode.removeChild(elem)}}}return this},empty:function(){for(var i=0,elem;(elem=this[i])!=null;i++){if(elem.nodeType===1){jQuery.cleanData(elem.getElementsByTagName("*"))}while(elem.firstChild){elem.removeChild(elem.firstChild)}}return this},clone:function(events){var ret=this.map(function(){if(!jQuery.support.noCloneEvent&&!jQuery.isXMLDoc(this)){var html=this.outerHTML,ownerDocument=this.ownerDocument;if(!html){var div=ownerDocument.createElement("div");div.appendChild(this.cloneNode(true));html=div.innerHTML}return jQuery.clean([html.replace(rinlinejQuery,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(rleadingWhitespace,"")],ownerDocument)[0]}else{return this.cloneNode(true)}});if(events===true){cloneCopyEvent(this,ret);cloneCopyEvent(this.find("*"),ret.find("*"))}return ret},html:function(value){if(value===undefined){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(rinlinejQuery,""):null}else{if(typeof value==="string"&&!rnocache.test(value)&&(jQuery.support.leadingWhitespace||!rleadingWhitespace.test(value))&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=value.replace(rxhtmlTag,fcloseTag);try{for(var i=0,l=this.length;i<l;i++){if(this[i].nodeType===1){jQuery.cleanData(this[i].getElementsByTagName("*"));this[i].innerHTML=value}}}catch(e){this.empty().append(value)}}else{if(jQuery.isFunction(value)){this.each(function(i){var self=jQuery(this),old=self.html();self.empty().append(function(){return value.call(this,i,old)})})}else{this.empty().append(value)}}}return this},replaceWith:function(value){if(this[0]&&this[0].parentNode){if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this),old=self.html();self.replaceWith(value.call(this,i,old))})}if(typeof value!=="string"){value=jQuery(value).detach()}return this.each(function(){var next=this.nextSibling,parent=this.parentNode;jQuery(this).remove();if(next){jQuery(next).before(value)}else{jQuery(parent).append(value)}})}else{return this.pushStack(jQuery(jQuery.isFunction(value)?value():value),"replaceWith",value)}},detach:function(selector){return this.remove(selector,true)},domManip:function(args,table,callback){var results,first,value=args[0],scripts=[],fragment,parent;if(!jQuery.support.checkClone&&arguments.length===3&&typeof value==="string"&&rchecked.test(value)){return this.each(function(){jQuery(this).domManip(args,table,callback,true)})}if(jQuery.isFunction(value)){return this.each(function(i){var self=jQuery(this);args[0]=value.call(this,i,table?self.html():undefined);self.domManip(args,table,callback)})}if(this[0]){parent=value&&value.parentNode;if(jQuery.support.parentNode&&parent&&parent.nodeType===11&&parent.childNodes.length===this.length){results={fragment:parent}}else{results=buildFragment(args,this,scripts)}fragment=results.fragment;if(fragment.childNodes.length===1){first=fragment=fragment.firstChild}else{first=fragment.firstChild}if(first){table=table&&jQuery.nodeName(first,"tr");for(var i=0,l=this.length;i<l;i++){callback.call(table?root(this[i],first):this[i],i>0||results.cacheable||this.length>1?fragment.cloneNode(true):fragment)}}if(scripts.length){jQuery.each(scripts,evalScript)}}return this;function root(elem,cur){return jQuery.nodeName(elem,"table")?(elem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.createElement("tbody"))):elem}}});function cloneCopyEvent(orig,ret){var i=0;ret.each(function(){if(this.nodeName!==(orig[i]&&orig[i].nodeName)){return }var oldData=jQuery.data(orig[i++]),curData=jQuery.data(this,oldData),events=oldData&&oldData.events;if(events){delete curData.handle;curData.events={};for(var type in events){for(var handler in events[type]){jQuery.event.add(this,type,events[type][handler],events[type][handler].data)}}}})}function buildFragment(args,nodes,scripts){var fragment,cacheable,cacheresults,doc=(nodes&&nodes[0]?nodes[0].ownerDocument||nodes[0]:document);if(args.length===1&&typeof args[0]==="string"&&args[0].length<512&&doc===document&&!rnocache.test(args[0])&&(jQuery.support.checkClone||!rchecked.test(args[0]))){cacheable=true;cacheresults=jQuery.fragments[args[0]];if(cacheresults){if(cacheresults!==1){fragment=cacheresults}}}if(!fragment){fragment=doc.createDocumentFragment();jQuery.clean(args,doc,fragment,scripts)}if(cacheable){jQuery.fragments[args[0]]=cacheresults?fragment:1}return{fragment:fragment,cacheable:cacheable}}jQuery.fragments={};jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){var ret=[],insert=jQuery(selector),parent=this.length===1&&this[0].parentNode;if(parent&&parent.nodeType===11&&parent.childNodes.length===1&&insert.length===1){insert[original](this[0]);return this}else{for(var i=0,l=insert.length;i<l;i++){var elems=(i>0?this.clone(true):this).get();jQuery.fn[original].apply(jQuery(insert[i]),elems);ret=ret.concat(elems)}return this.pushStack(ret,name,insert.selector)}}});jQuery.extend({clean:function(elems,context,fragment,scripts){context=context||document;if(typeof context.createElement==="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document}var ret=[];for(var i=0,elem;(elem=elems[i])!=null;i++){if(typeof elem==="number"){elem+=""}if(!elem){continue}if(typeof elem==="string"&&!rhtml.test(elem)){elem=context.createTextNode(elem)}else{if(typeof elem==="string"){elem=elem.replace(rxhtmlTag,fcloseTag);var tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(),wrap=wrapMap[tag]||wrapMap._default,depth=wrap[0],div=context.createElement("div");div.innerHTML=wrap[1]+elem+wrap[2];while(depth--){div=div.lastChild}if(!jQuery.support.tbody){var hasBody=rtbody.test(elem),tbody=tag==="table"&&!hasBody?div.firstChild&&div.firstChild.childNodes:wrap[1]==="<table>"&&!hasBody?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])}}}if(!jQuery.support.leadingWhitespace&&rleadingWhitespace.test(elem)){div.insertBefore(context.createTextNode(rleadingWhitespace.exec(elem)[0]),div.firstChild)}elem=div.childNodes}}if(elem.nodeType){ret.push(elem)}else{ret=jQuery.merge(ret,elem)}}if(fragment){for(var i=0;ret[i];i++){if(scripts&&jQuery.nodeName(ret[i],"script")&&(!ret[i].type||ret[i].type.toLowerCase()==="text/javascript")){scripts.push(ret[i].parentNode?ret[i].parentNode.removeChild(ret[i]):ret[i])}else{if(ret[i].nodeType===1){ret.splice.apply(ret,[i+1,0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))))}fragment.appendChild(ret[i])}}}return ret},cleanData:function(elems){var data,id,cache=jQuery.cache,special=jQuery.event.special,deleteExpando=jQuery.support.deleteExpando;for(var i=0,elem;(elem=elems[i])!=null;i++){id=elem[jQuery.expando];if(id){data=cache[id];if(data.events){for(var type in data.events){if(special[type]){jQuery.event.remove(elem,type)}else{removeEvent(elem,type,data.handle)}}}if(deleteExpando){delete elem[jQuery.expando]}else{if(elem.removeAttribute){elem.removeAttribute(jQuery.expando)}}delete cache[id]}}}});var rexclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,ralpha=/alpha\([^)]*\)/,ropacity=/opacity=([^)]*)/,rfloat=/float/i,rdashAlpha=/-([a-z])/ig,rupper=/([A-Z])/g,rnumpx=/^-?\d+(?:px)?$/i,rnum=/^-?\d/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssWidth=["Left","Right"],cssHeight=["Top","Bottom"],getComputedStyle=document.defaultView&&document.defaultView.getComputedStyle,styleFloat=jQuery.support.cssFloat?"cssFloat":"styleFloat",fcamelCase=function(all,letter){return letter.toUpperCase()};jQuery.fn.css=function(name,value){return access(this,name,value,true,function(elem,name,value){if(value===undefined){return jQuery.curCSS(elem,name)}if(typeof value==="number"&&!rexclude.test(name)){value+="px"}jQuery.style(elem,name,value)})};jQuery.extend({style:function(elem,name,value){if(!elem||elem.nodeType===3||elem.nodeType===8){return undefined}if((name==="width"||name==="height")&&parseFloat(value)<0){value=undefined}var style=elem.style||elem,set=value!==undefined;if(!jQuery.support.opacity&&name==="opacity"){if(set){style.zoom=1;var opacity=parseInt(value,10)+""==="NaN"?"":"alpha(opacity="+value*100+")";var filter=style.filter||jQuery.curCSS(elem,"filter")||"";style.filter=ralpha.test(filter)?filter.replace(ralpha,opacity):opacity}return style.filter&&style.filter.indexOf("opacity=")>=0?(parseFloat(ropacity.exec(style.filter)[1])/100)+"":""}if(rfloat.test(name)){name=styleFloat}name=name.replace(rdashAlpha,fcamelCase);if(set){style[name]=value}return style[name]},css:function(elem,name,force,extra){if(name==="width"||name==="height"){var val,props=cssShow,which=name==="width"?cssWidth:cssHeight;function getWH(){val=name==="width"?elem.offsetWidth:elem.offsetHeight;if(extra==="border"){return }jQuery.each(which,function(){if(!extra){val-=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0}if(extra==="margin"){val+=parseFloat(jQuery.curCSS(elem,"margin"+this,true))||0}else{val-=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0}})}if(elem.offsetWidth!==0){getWH()}else{jQuery.swap(elem,props,getWH)}return Math.max(0,Math.round(val))}return jQuery.curCSS(elem,name,force)},curCSS:function(elem,name,force){var ret,style=elem.style,filter;if(!jQuery.support.opacity&&name==="opacity"&&elem.currentStyle){ret=ropacity.test(elem.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return ret===""?"1":ret}if(rfloat.test(name)){name=styleFloat}if(!force&&style&&style[name]){ret=style[name]}else{if(getComputedStyle){if(rfloat.test(name)){name="float"}name=name.replace(rupper,"-$1").toLowerCase();var defaultView=elem.ownerDocument.defaultView;if(!defaultView){return null}var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle){ret=computedStyle.getPropertyValue(name)}if(name==="opacity"&&ret===""){ret="1"}}else{if(elem.currentStyle){var camelCase=name.replace(rdashAlpha,fcamelCase);ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!rnumpx.test(ret)&&rnum.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=camelCase==="fontSize"?"1em":(ret||0);ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft}}}}return ret},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name]}callback.call(elem);for(var name in options){elem.style[name]=old[name]}}});if(jQuery.expr&&jQuery.expr.filters){jQuery.expr.filters.hidden=function(elem){var width=elem.offsetWidth,height=elem.offsetHeight,skip=elem.nodeName.toLowerCase()==="tr";return width===0&&height===0&&!skip?true:width>0&&height>0&&!skip?false:jQuery.curCSS(elem,"display")==="none"};jQuery.expr.filters.visible=function(elem){return !jQuery.expr.filters.hidden(elem)}}var jsc=now(),rscript=/<script(.|\s)*?\/script>/gi,rselectTextarea=/select|textarea/i,rinput=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,jsre=/=\?(&|$)/,rquery=/\?/,rts=/(\?|&)_=.*?(&|$)/,rurl=/^(\w+:)?\/\/([^\/?#]+)/,r20=/%20/g,_load=jQuery.fn.load;jQuery.fn.extend({load:function(url,params,callback){if(typeof url!=="string"){return _load.call(this,url)}else{if(!this.length){return this}}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null}else{if(typeof params==="object"){params=jQuery.param(params,jQuery.ajaxSettings.traditional);type="POST"}}}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status==="success"||status==="notmodified"){self.html(selector?jQuery("<div />").append(res.responseText.replace(rscript,"")).find(selector):res.responseText)}if(callback){self.each(callback,[res.responseText,status,res])}}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||rselectTextarea.test(this.nodeName)||rinput.test(this.type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val,i){return{name:elem.name,value:val}}):{name:elem.name,value:val}}).get()}});jQuery.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){type=type||callback;callback=data;data=null}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type})},getScript:function(url,callback){return jQuery.get(url,null,callback,"script")},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},post:function(url,data,callback,type){if(jQuery.isFunction(data)){type=type||callback;callback=data;data={}}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type})},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:window.XMLHttpRequest&&(window.location.protocol!=="file:"||!window.ActiveXObject)?function(){return new window.XMLHttpRequest()}:function(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(origSettings){var s=jQuery.extend(true,{},jQuery.ajaxSettings,origSettings);var jsonp,status,data,callbackContext=origSettings&&origSettings.context||s,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data,s.traditional)}if(s.dataType==="jsonp"){if(type==="GET"){if(!jsre.test(s.url)){s.url+=(rquery.test(s.url)?"&":"?")+(s.jsonp||"callback")+"=?"}}else{if(!s.data||!jsre.test(s.data)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?"}}s.dataType="json"}if(s.dataType==="json"&&(s.data&&jsre.test(s.data)||jsre.test(s.url))){jsonp=s.jsonpCallback||("jsonp"+jsc++);if(s.data){s.data=(s.data+"").replace(jsre,"="+jsonp+"$1")}s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=window[jsonp]||function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp]}catch(e){}if(head){head.removeChild(script)}}}if(s.dataType==="script"&&s.cache===null){s.cache=false}if(s.cache===false&&type==="GET"){var ts=now();var ret=s.url.replace(rts,"$1_="+ts+"$2");s.url=ret+((ret===s.url)?(rquery.test(s.url)?"&":"?")+"_="+ts:"")}if(s.data&&type==="GET"){s.url+=(rquery.test(s.url)?"&":"?")+s.data}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}var parts=rurl.exec(s.url),remote=parts&&(parts[1]&&parts[1]!==location.protocol||parts[2]!==location.host);if(s.dataType==="script"&&type==="GET"&&remote){var head=document.getElementsByTagName("head")[0]||document.documentElement;var script=document.createElement("script");script.src=s.url;if(s.scriptCharset){script.charset=s.scriptCharset}if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){done=true;success();complete();script.onload=script.onreadystatechange=null;if(head&&script.parentNode){head.removeChild(script)}}}}head.insertBefore(script,head.firstChild);return undefined}var requestDone=false;var xhr=s.xhr();if(!xhr){return }if(s.username){xhr.open(type,s.url,s.async,s.username,s.password)}else{xhr.open(type,s.url,s.async)}try{if(s.data||origSettings&&origSettings.contentType){xhr.setRequestHeader("Content-Type",s.contentType)}if(s.ifModified){if(jQuery.lastModified[s.url]){xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url])}if(jQuery.etag[s.url]){xhr.setRequestHeader("If-None-Match",jQuery.etag[s.url])}}if(!remote){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest")}xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default)}catch(e){}if(s.beforeSend&&s.beforeSend.call(callbackContext,xhr,s)===false){if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}xhr.abort();return false}if(s.global){trigger("ajaxSend",[xhr,s])}var onreadystatechange=xhr.onreadystatechange=function(isTimeout){if(!xhr||xhr.readyState===0||isTimeout==="abort"){if(!requestDone){complete()}requestDone=true;if(xhr){xhr.onreadystatechange=jQuery.noop}}else{if(!requestDone&&xhr&&(xhr.readyState===4||isTimeout==="timeout")){requestDone=true;xhr.onreadystatechange=jQuery.noop;status=isTimeout==="timeout"?"timeout":!jQuery.httpSuccess(xhr)?"error":s.ifModified&&jQuery.httpNotModified(xhr,s.url)?"notmodified":"success";var errMsg;if(status==="success"){try{data=jQuery.httpData(xhr,s.dataType,s)}catch(err){status="parsererror";errMsg=err}}if(status==="success"||status==="notmodified"){if(!jsonp){success()}}else{jQuery.handleError(s,xhr,status,errMsg)}complete();if(isTimeout==="timeout"){xhr.abort()}if(s.async){xhr=null}}}};try{var oldAbort=xhr.abort;xhr.abort=function(){if(xhr){oldAbort.call(xhr)}onreadystatechange("abort")}}catch(e){}if(s.async&&s.timeout>0){setTimeout(function(){if(xhr&&!requestDone){onreadystatechange("timeout")}},s.timeout)}try{xhr.send(type==="POST"||type==="PUT"||type==="DELETE"?s.data:null)}catch(e){jQuery.handleError(s,xhr,null,e);complete()}if(!s.async){onreadystatechange()}function success(){if(s.success){s.success.call(callbackContext,data,status,xhr)}if(s.global){trigger("ajaxSuccess",[xhr,s])}}function complete(){if(s.complete){s.complete.call(callbackContext,xhr,status)}if(s.global){trigger("ajaxComplete",[xhr,s])}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}}function trigger(type,args){(s.context?jQuery(s.context):jQuery.event).trigger(type,args)}return xhr},handleError:function(s,xhr,status,e){if(s.error){s.error.call(s.context||s,xhr,status,e)}if(s.global){(s.context?jQuery(s.context):jQuery.event).trigger("ajaxError",[xhr,s,e])}},active:0,httpSuccess:function(xhr){try{return !xhr.status&&location.protocol==="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status===304||xhr.status===1223||xhr.status===0}catch(e){}return false},httpNotModified:function(xhr,url){var lastModified=xhr.getResponseHeader("Last-Modified"),etag=xhr.getResponseHeader("Etag");if(lastModified){jQuery.lastModified[url]=lastModified}if(etag){jQuery.etag[url]=etag}return xhr.status===304||xhr.status===0},httpData:function(xhr,type,s){var ct=xhr.getResponseHeader("content-type")||"",xml=type==="xml"||!type&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==="parsererror"){jQuery.error("parsererror")}if(s&&s.dataFilter){data=s.dataFilter(data,type)}if(typeof data==="string"){if(type==="json"||!type&&ct.indexOf("json")>=0){data=jQuery.parseJSON(data)}else{if(type==="script"||!type&&ct.indexOf("javascript")>=0){jQuery.globalEval(data)}}}return data},param:function(a,traditional){var s=[];if(traditional===undefined){traditional=jQuery.ajaxSettings.traditional}if(jQuery.isArray(a)||a.jquery){jQuery.each(a,function(){add(this.name,this.value)})}else{for(var prefix in a){buildParams(prefix,a[prefix])}}return s.join("&").replace(r20,"+");function buildParams(prefix,obj){if(jQuery.isArray(obj)){jQuery.each(obj,function(i,v){if(traditional||/\[\]$/.test(prefix)){add(prefix,v)}else{buildParams(prefix+"["+(typeof v==="object"||jQuery.isArray(v)?i:"")+"]",v)}})}else{if(!traditional&&obj!=null&&typeof obj==="object"){jQuery.each(obj,function(k,v){buildParams(prefix+"["+k+"]",v)})}else{add(prefix,obj)}}}function add(key,value){value=jQuery.isFunction(value)?value():value;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value)}}});var elemdisplay={},rfxtypes=/toggle|show|hide/,rfxnum=/^([+-]=)?([\d+-.]+)(.*)$/,timerId,fxAttrs=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];jQuery.fn.extend({show:function(speed,callback){if(speed||speed===0){return this.animate(genFx("show",3),speed,callback)}else{for(var i=0,l=this.length;i<l;i++){var old=jQuery.data(this[i],"olddisplay");this[i].style.display=old||"";if(jQuery.css(this[i],"display")==="none"){var nodeName=this[i].nodeName,display;if(elemdisplay[nodeName]){display=elemdisplay[nodeName]}else{var elem=jQuery("<"+nodeName+" />").appendTo("body");display=elem.css("display");if(display==="none"){display="block"}elem.remove();elemdisplay[nodeName]=display}jQuery.data(this[i],"olddisplay",display)}}for(var j=0,k=this.length;j<k;j++){this[j].style.display=jQuery.data(this[j],"olddisplay")||""}return this}},hide:function(speed,callback){if(speed||speed===0){return this.animate(genFx("hide",3),speed,callback)}else{for(var i=0,l=this.length;i<l;i++){var old=jQuery.data(this[i],"olddisplay");if(!old&&old!=="none"){jQuery.data(this[i],"olddisplay",jQuery.css(this[i],"display"))}}for(var j=0,k=this.length;j<k;j++){this[j].style.display="none"}return this}},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){var bool=typeof fn==="boolean";if(jQuery.isFunction(fn)&&jQuery.isFunction(fn2)){this._toggle.apply(this,arguments)}else{if(fn==null||bool){this.each(function(){var state=bool?fn:jQuery(this).is(":hidden");jQuery(this)[state?"show":"hide"]()})}else{this.animate(genFx("toggle",3),fn,fn2)}}return this},fadeTo:function(speed,to,callback){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:to},speed,callback)},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);if(jQuery.isEmptyObject(prop)){return this.each(optall.complete)}return this[optall.queue===false?"each":"queue"](function(){var opt=jQuery.extend({},optall),p,hidden=this.nodeType===1&&jQuery(this).is(":hidden"),self=this;for(p in prop){var name=p.replace(rdashAlpha,fcamelCase);if(p!==name){prop[name]=prop[p];delete prop[p];p=name}if(prop[p]==="hide"&&hidden||prop[p]==="show"&&!hidden){return opt.complete.call(this)}if((p==="height"||p==="width")&&this.style){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow}if(jQuery.isArray(prop[p])){(opt.specialEasing=opt.specialEasing||{})[p]=prop[p][1];prop[p]=prop[p][0]}}if(opt.overflow!=null){this.style.overflow="hidden"}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(rfxtypes.test(val)){e[val==="toggle"?hidden?"show":"hide":val](prop)}else{var parts=rfxnum.exec(val),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!=="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit}if(parts[1]){end=((parts[1]==="-="?-1:1)*end)+start}e.custom(start,end,unit)}else{e.custom(start,val,"")}}});return true})},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue){this.queue([])}this.each(function(){for(var i=timers.length-1;i>=0;i--){if(timers[i].elem===this){if(gotoEnd){timers[i](true)}timers.splice(i,1)}}});if(!gotoEnd){this.dequeue()}return this}});jQuery.each({slideDown:genFx("show",1),slideUp:genFx("hide",1),slideToggle:genFx("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(name,props){jQuery.fn[name]=function(speed,callback){return this.animate(props,speed,callback)}});jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&typeof speed==="object"?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!jQuery.isFunction(easing)&&easing};opt.duration=jQuery.fx.off?0:typeof opt.duration==="number"?opt.duration:jQuery.fx.speeds[opt.duration]||jQuery.fx.speeds._default;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){jQuery(this).dequeue()}if(jQuery.isFunction(opt.old)){opt.old.call(this)}};return opt},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum}},timers:[],fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={}}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(force){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;var self=this;function t(gotoEnd){return self.step(gotoEnd)}t.elem=this.elem;if(t()&&jQuery.timers.push(t)&&!timerId){timerId=setInterval(jQuery.fx.tick,13)}},show:function(){this.options.orig[this.prop]=jQuery.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(gotoEnd){var t=now(),done=true;if(gotoEnd||t>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;var old=jQuery.data(this.elem,"olddisplay");this.elem.style.display=old?old:this.options.display;if(jQuery.css(this.elem,"display")==="none"){this.elem.style.display="block"}}if(this.options.hide){jQuery(this.elem).hide()}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.style(this.elem,p,this.options.orig[p])}}this.options.complete.call(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;var specialEasing=this.options.specialEasing&&this.options.specialEasing[this.prop];var defaultEasing=this.options.easing||(jQuery.easing.swing?"swing":"linear");this.pos=jQuery.easing[specialEasing||defaultEasing](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.extend(jQuery.fx,{tick:function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){jQuery.fx.stop()}},stop:function(){clearInterval(timerId);timerId=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(fx){jQuery.style(fx.elem,"opacity",fx.now)},_default:function(fx){if(fx.elem.style&&fx.elem.style[fx.prop]!=null){fx.elem.style[fx.prop]=(fx.prop==="width"||fx.prop==="height"?Math.max(0,fx.now):fx.now)+fx.unit}else{fx.elem[fx.prop]=fx.now}}}});if(jQuery.expr&&jQuery.expr.filters){jQuery.expr.filters.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem}).length}}function genFx(type,num){var obj={};jQuery.each(fxAttrs.concat.apply([],fxAttrs.slice(0,num)),function(){obj[this]=type});return obj}if("getBoundingClientRect" in document.documentElement){jQuery.fn.offset=function(options){var elem=this[0];if(options){return this.each(function(i){jQuery.offset.setOffset(this,options,i)})}if(!elem||!elem.ownerDocument){return null}if(elem===elem.ownerDocument.body){return jQuery.offset.bodyOffset(elem)}var box=elem.getBoundingClientRect(),doc=elem.ownerDocument,body=doc.body,docElem=doc.documentElement,clientTop=docElem.clientTop||body.clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0,top=box.top+(self.pageYOffset||jQuery.support.boxModel&&docElem.scrollTop||body.scrollTop)-clientTop,left=box.left+(self.pageXOffset||jQuery.support.boxModel&&docElem.scrollLeft||body.scrollLeft)-clientLeft;return{top:top,left:left}}}else{jQuery.fn.offset=function(options){var elem=this[0];if(options){return this.each(function(i){jQuery.offset.setOffset(this,options,i)})}if(!elem||!elem.ownerDocument){return null}if(elem===elem.ownerDocument.body){return jQuery.offset.bodyOffset(elem)}jQuery.offset.initialize();var offsetParent=elem.offsetParent,prevOffsetParent=elem,doc=elem.ownerDocument,computedStyle,docElem=doc.documentElement,body=doc.body,defaultView=doc.defaultView,prevComputedStyle=defaultView?defaultView.getComputedStyle(elem,null):elem.currentStyle,top=elem.offsetTop,left=elem.offsetLeft;while((elem=elem.parentNode)&&elem!==body&&elem!==docElem){if(jQuery.offset.supportsFixedPosition&&prevComputedStyle.position==="fixed"){break}computedStyle=defaultView?defaultView.getComputedStyle(elem,null):elem.currentStyle;top-=elem.scrollTop;left-=elem.scrollLeft;if(elem===offsetParent){top+=elem.offsetTop;left+=elem.offsetLeft;if(jQuery.offset.doesNotAddBorder&&!(jQuery.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(elem.nodeName))){top+=parseFloat(computedStyle.borderTopWidth)||0;left+=parseFloat(computedStyle.borderLeftWidth)||0}prevOffsetParent=offsetParent,offsetParent=elem.offsetParent}if(jQuery.offset.subtractsBorderForOverflowNotVisible&&computedStyle.overflow!=="visible"){top+=parseFloat(computedStyle.borderTopWidth)||0;left+=parseFloat(computedStyle.borderLeftWidth)||0}prevComputedStyle=computedStyle}if(prevComputedStyle.position==="relative"||prevComputedStyle.position==="static"){top+=body.offsetTop;left+=body.offsetLeft}if(jQuery.offset.supportsFixedPosition&&prevComputedStyle.position==="fixed"){top+=Math.max(docElem.scrollTop,body.scrollTop);left+=Math.max(docElem.scrollLeft,body.scrollLeft)}return{top:top,left:left}}}jQuery.offset={initialize:function(){var body=document.body,container=document.createElement("div"),innerDiv,checkDiv,table,td,bodyMarginTop=parseFloat(jQuery.curCSS(body,"marginTop",true))||0,html="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";jQuery.extend(container.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});container.innerHTML=html;body.insertBefore(container,body.firstChild);innerDiv=container.firstChild;checkDiv=innerDiv.firstChild;td=innerDiv.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(checkDiv.offsetTop!==5);this.doesAddBorderForTableAndCells=(td.offsetTop===5);checkDiv.style.position="fixed",checkDiv.style.top="20px";this.supportsFixedPosition=(checkDiv.offsetTop===20||checkDiv.offsetTop===15);checkDiv.style.position=checkDiv.style.top="";innerDiv.style.overflow="hidden",innerDiv.style.position="relative";this.subtractsBorderForOverflowNotVisible=(checkDiv.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(body.offsetTop!==bodyMarginTop);body.removeChild(container);body=container=innerDiv=checkDiv=table=td=null;jQuery.offset.initialize=jQuery.noop},bodyOffset:function(body){var top=body.offsetTop,left=body.offsetLeft;jQuery.offset.initialize();if(jQuery.offset.doesNotIncludeMarginInBodyOffset){top+=parseFloat(jQuery.curCSS(body,"marginTop",true))||0;left+=parseFloat(jQuery.curCSS(body,"marginLeft",true))||0}return{top:top,left:left}},setOffset:function(elem,options,i){if(/static/.test(jQuery.curCSS(elem,"position"))){elem.style.position="relative"}var curElem=jQuery(elem),curOffset=curElem.offset(),curTop=parseInt(jQuery.curCSS(elem,"top",true),10)||0,curLeft=parseInt(jQuery.curCSS(elem,"left",true),10)||0;if(jQuery.isFunction(options)){options=options.call(elem,i,curOffset)}var props={top:(options.top-curOffset.top)+curTop,left:(options.left-curOffset.left)+curLeft};if("using" in options){options.using.call(elem,props)}else{curElem.css(props)}}};jQuery.fn.extend({position:function(){if(!this[0]){return null}var elem=this[0],offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].nodeName)?{top:0,left:0}:offsetParent.offset();offset.top-=parseFloat(jQuery.curCSS(elem,"marginTop",true))||0;offset.left-=parseFloat(jQuery.curCSS(elem,"marginLeft",true))||0;parentOffset.top+=parseFloat(jQuery.curCSS(offsetParent[0],"borderTopWidth",true))||0;parentOffset.left+=parseFloat(jQuery.curCSS(offsetParent[0],"borderLeftWidth",true))||0;return{top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}},offsetParent:function(){return this.map(function(){var offsetParent=this.offsetParent||document.body;while(offsetParent&&(!/^body|html$/i.test(offsetParent.nodeName)&&jQuery.css(offsetParent,"position")==="static")){offsetParent=offsetParent.offsetParent}return offsetParent})}});jQuery.each(["Left","Top"],function(i,name){var method="scroll"+name;jQuery.fn[method]=function(val){var elem=this[0],win;if(!elem){return null}if(val!==undefined){return this.each(function(){win=getWindow(this);if(win){win.scrollTo(!i?val:jQuery(win).scrollLeft(),i?val:jQuery(win).scrollTop())}else{this[method]=val}})}else{win=getWindow(elem);return win?("pageXOffset" in win)?win[i?"pageYOffset":"pageXOffset"]:jQuery.support.boxModel&&win.document.documentElement[method]||win.document.body[method]:elem[method]}}});function getWindow(elem){return("scrollTo" in elem&&elem.document)?elem:elem.nodeType===9?elem.defaultView||elem.parentWindow:false}jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn["inner"+name]=function(){return this[0]?jQuery.css(this[0],type,false,"padding"):null};jQuery.fn["outer"+name]=function(margin){return this[0]?jQuery.css(this[0],type,false,margin?"margin":"border"):null};jQuery.fn[type]=function(size){var elem=this[0];if(!elem){return size==null?null:this}if(jQuery.isFunction(size)){return this.each(function(i){var self=jQuery(this);self[type](size.call(this,i,self[type]()))})}return("scrollTo" in elem&&elem.document)?elem.document.compatMode==="CSS1Compat"&&elem.document.documentElement["client"+name]||elem.document.body["client"+name]:(elem.nodeType===9)?Math.max(elem.documentElement["client"+name],elem.body["scroll"+name],elem.documentElement["scroll"+name],elem.body["offset"+name],elem.documentElement["offset"+name]):size===undefined?jQuery.css(elem,type):this.css(type,typeof size==="string"?size:size+"px")}});window.jQuery=window.$=jQuery})(window);(function(A){A.jScrollPane={active:[]};A.fn.jScrollPane=function(C){C=A.extend({},A.fn.jScrollPane.defaults,C);var B=function(){return false};return this.each(function(){var S=A(this);var f=this;var AU=0;var o;var AV;var Q;var AK=C.topCapHeight;var J;if(A(this).parent().is(".jScrollPaneContainer")){J=A(this).parent();AU=C.maintainPosition?S.position().top:0;var P=A(this).parent();o=P.innerWidth();AV=P.outerHeight();A(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown, >.jScrollCap",P).remove();S.css({top:0})}else{S.data("originalStyleTag",S.attr("style"));S.css("overflow","hidden");this.originalPadding=S.css("paddingTop")+" "+S.css("paddingRight")+" "+S.css("paddingBottom")+" "+S.css("paddingLeft");this.originalSidePaddingTotal=(parseInt(S.css("paddingLeft"))||0)+(parseInt(S.css("paddingRight"))||0);o=S.innerWidth();AV=S.innerHeight();J=A("<div></div>").attr({className:"jScrollPaneContainer"}).css({height:AV+"px",width:o+"px"});if(C.enableKeyboardNavigation){J.attr("tabindex",C.tabIndex)}S.wrap(J);J=S.parent();A(document).bind("emchange",function(AW,AX,p){S.jScrollPane(C)})}Q=AV;if(C.reinitialiseOnImageLoad){var R=A.data(f,"jScrollPaneImagesToLoad")||A("img",S);var I=[];if(R.length){R.each(function(p,AW){A(this).bind("load readystatechange",function(){if(A.inArray(p,I)==-1){I.push(AW);R=A.grep(R,function(AZ,AY){return AZ!=AW});A.data(f,"jScrollPaneImagesToLoad",R);var AX=A.extend(C,{reinitialiseOnImageLoad:false});S.jScrollPane(AX)}}).each(function(AX,AY){if(this.complete||this.complete===undefined){this.src=this.src}})})}}var AF=this.originalSidePaddingTotal;var AQ=o-C.scrollbarWidth-C.scrollbarMargin-AF;var AB={height:"auto",width:AQ+"px"};if(C.scrollbarOnLeft){AB.paddingLeft=C.scrollbarMargin+C.scrollbarWidth+"px"}else{AB.paddingRight=C.scrollbarMargin+"px"}S.css(AB);var AD=S.outerHeight();var y=AV/AD;var AC=y<0.99;J[AC?"addClass":"removeClass"]("jScrollPaneScrollable");if(AC){J.append(A("<div></div>").addClass("jScrollCap jScrollCapTop").css({height:C.topCapHeight}),A("<div></div>").attr({className:"jScrollPaneTrack"}).css({width:C.scrollbarWidth+"px"}).append(A("<div></div>").attr({className:"jScrollPaneDrag"}).css({width:C.scrollbarWidth+"px"}).append(A("<div></div>").attr({className:"jScrollPaneDragTop"}).css({width:C.scrollbarWidth+"px"}),A("<div></div>").attr({className:"jScrollPaneDragBottom"}).css({width:C.scrollbarWidth+"px"}))),A("<div></div>").addClass("jScrollCap jScrollCapBottom").css({height:C.bottomCapHeight}));var AR=A(">.jScrollPaneTrack",J);var T=A(">.jScrollPaneTrack .jScrollPaneDrag",J);var AT;var G=[];var AH;var z=function(){if(AH>4||AH%4==0){AP(AM+AT*l)}AH++};if(C.enableKeyboardNavigation){J.bind("keydown.jscrollpane",function(p){switch(p.keyCode){case 38:AT=-1;AH=0;z();G[G.length]=setInterval(z,100);return false;case 40:AT=1;AH=0;z();G[G.length]=setInterval(z,100);return false;case 33:case 34:return false;default:}}).bind("keyup.jscrollpane",function(AW){if(AW.keyCode==38||AW.keyCode==40){for(var p=0;p<G.length;p++){clearInterval(G[p])}return false}})}if(C.showArrows){var w;var X;var O=function(p){A("html").unbind("mouseup",O);w.removeClass("jScrollActiveArrowButton");clearInterval(X)};var j=function(){A("html").bind("mouseup",O);w.addClass("jScrollActiveArrowButton");AH=0;z();X=setInterval(z,100)};J.append(A("<a></a>").attr({href:"javascript:;",className:"jScrollArrowUp",tabindex:-1}).css({width:C.scrollbarWidth+"px",top:C.topCapHeight+"px"}).html("Scroll up").bind("mousedown",function(){w=A(this);AT=-1;j();this.blur();return false}).bind("click",B),A("<a></a>").attr({href:"javascript:;",className:"jScrollArrowDown",tabindex:-1}).css({width:C.scrollbarWidth+"px",bottom:C.bottomCapHeight+"px"}).html("Scroll down").bind("mousedown",function(){w=A(this);AT=1;j();this.blur();return false}).bind("click",B));var U=A(">.jScrollArrowUp",J);var M=A(">.jScrollArrowDown",J)}if(C.arrowSize){Q=AV-C.arrowSize-C.arrowSize;AK+=C.arrowSize}else{if(U){var AI=U.height();C.arrowSize=AI;Q=AV-AI-M.height();AK+=AI}}Q-=C.topCapHeight+C.bottomCapHeight;AR.css({height:Q+"px",top:AK+"px"});var AN=A(this).css({position:"absolute",overflow:"visible"});var D;var g;var l;var AM=0;var b=y*AV/2;var h=function(AW,AY){var AX=AY=="X"?"Left":"Top";return AW["page"+AY]||(AW["client"+AY]+(document.documentElement["scroll"+AX]||document.body["scroll"+AX]))||0};var v=function(){return false};var AL=function(){AE();D=T.offset(false);D.top-=AM;g=Q-T[0].offsetHeight;l=2*C.wheelSpeed*g/AD};var E=function(p){AL();b=h(p,"Y")-AM-D.top;A("html").bind("mouseup",Y).bind("mousemove",x).bind("mouseleave",Y);if(A.browser.msie){A("html").bind("dragstart",v).bind("selectstart",v)}return false};var Y=function(){A("html").unbind("mouseup",Y).unbind("mousemove",x);b=y*AV/2;if(A.browser.msie){A("html").unbind("dragstart",v).unbind("selectstart",v)}};var AP=function(AW){J.scrollTop(0);AW=AW<0?0:(AW>g?g:AW);AM=AW;T.css({top:AW+"px"});var AX=AW/g;S.data("jScrollPanePosition",(AV-AD)*-AX);AN.css({top:((AV-AD)*AX)+"px"});S.trigger("scroll");if(C.showArrows){U[AW==0?"addClass":"removeClass"]("disabled");M[AW==g?"addClass":"removeClass"]("disabled")}};var x=function(p){AP(h(p,"Y")-D.top-b)};var AG=Math.max(Math.min(y*(AV-C.arrowSize*2),C.dragMaxHeight),C.dragMinHeight);T.css({height:AG+"px"}).bind("mousedown",E);var AA;var V;var L;var AJ=function(){if(V>8||V%4==0){AP((AM-((AM-L)/2)))}V++};var AS=function(){clearInterval(AA);A("html").unbind("mouseup",AS).unbind("mousemove",r)};var r=function(p){L=h(p,"Y")-D.top-b};var Z=function(p){AL();r(p);V=0;A("html").bind("mouseup",AS).bind("mousemove",r);AA=setInterval(AJ,100);AJ();return false};AR.bind("mousedown",Z);J.bind("mousewheel",function(AW,AY){AY=AY||(AW.wheelDelta?AW.wheelDelta/120:(AW.detail)?-AW.detail/3:0);AL();AE();var AX=AM;AP(AM-AY*l);var p=AX!=AM;return !p});var F;var d;function m(){var p=(F-AM)/C.animateStep;if(p>1||p<-1){AP(AM+p)}else{AP(F);AE()}}var AE=function(){if(d){clearInterval(d);delete F}};var AO=function(AZ,p){if(typeof AZ=="string"){try{$e=A(AZ,S)}catch(AY){return }if(!$e.length){return }AZ=$e.offset().top-S.offset().top}AE();var AX=AD-AV;AZ=AZ>AX?AX:AZ;S.data("jScrollPaneMaxScroll",AX);var AW=AZ/AX*g;if(p||!C.animateTo){AP(AW)}else{J.scrollTop(0);F=AW;d=setInterval(m,C.animateInterval)}};S[0].scrollTo=AO;S[0].scrollBy=function(AW){var p=-parseInt(AN.css("top"))||0;AO(p+AW)};AL();AO(-AU,true);A("*",this).bind("focus",function(Aa){var AZ=A(this);var Ac=0;var AW=100;while(AZ[0]!=S[0]){Ac+=AZ.position().top;AZ=AZ.offsetParent();if(!AW--){return }}var p=-parseInt(AN.css("top"))||0;var Ab=p+AV;var AY=Ac>p&&Ac<Ab;if(!AY){var AX=Ac-C.scrollbarMargin;if(Ac>p){AX+=A(this).height()+15+C.scrollbarMargin-AV}AO(AX)}});if(C.observeHash){if(location.hash&&location.hash.length>1){setTimeout(function(){AO(location.hash)},A.browser.safari?100:0)}A(document).bind("click",function(AW){$target=A(AW.target);if($target.is("a")){var p=$target.attr("href");if(p&&p.substr(0,1)=="#"&&p.length>1){setTimeout(function(){AO(p,!C.animateToInternalLinks)},A.browser.safari?100:0)}}})}function a(p){A(document).bind("mousemove.jScrollPaneDragging",W);A(document).bind("mouseup.jScrollPaneDragging",N)}var q;var H;function n(){direction=q<0?-1:1;S[0].scrollBy(q/2)}function K(){if(H){clearInterval(H);H=undefined}}function W(AX){var AY=S.parent().offset().top;var p=AY+AV;var AW=h(AX,"Y");q=AW<AY?AW-AY:(AW>p?AW-p:0);if(q==0){K()}else{if(!H){H=setInterval(n,100)}}}function N(p){A(document).unbind("mousemove.jScrollPaneDragging").unbind("mouseup.jScrollPaneDragging");K()}J.bind("mousedown.jScrollPane",a);A.jScrollPane.active.push(S[0])}else{S.css({height:AV+"px",width:o-this.originalSidePaddingTotal+"px",padding:this.originalPadding});S[0].scrollTo=S[0].scrollBy=function(){};S.parent().unbind("mousewheel").unbind("mousedown.jScrollPane").unbind("keydown.jscrollpane").unbind("keyup.jscrollpane")}})};A.fn.jScrollPaneRemove=function(){A(this).each(function(){$this=A(this);var B=$this.parent();if(B.is(".jScrollPaneContainer")){$this.css({top:"",height:"",width:"",padding:"",overflow:"",position:""});$this.attr("style",$this.data("originalStyleTag"));B.after($this).remove()}})};A.fn.jScrollPane.defaults={scrollbarWidth:10,scrollbarMargin:5,wheelSpeed:18,showArrows:false,arrowSize:0,animateTo:false,dragMinHeight:1,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:true,scrollbarOnLeft:false,reinitialiseOnImageLoad:false,tabIndex:0,enableKeyboardNavigation:true,animateToInternalLinks:false,topCapHeight:0,bottomCapHeight:0,observeHash:true};A(window).bind("unload",function(){var C=A.jScrollPane.active;for(var B=0;B<C.length;B++){C[B].scrollTo=C[B].scrollBy=null}})})(jQuery);(function(A){A.event.special.mousewheel={setup:function(){var B=A.event.special.mousewheel.handler;if(A.browser.mozilla){A(this).bind("mousemove.mousewheel",function(C){A.data(this,"mwcursorposdata",{pageX:C.pageX,pageY:C.pageY,clientX:C.clientX,clientY:C.clientY})})}if(this.addEventListener){this.addEventListener((A.browser.mozilla?"DOMMouseScroll":"mousewheel"),B,false)}else{this.onmousewheel=B}},teardown:function(){var B=A.event.special.mousewheel.handler;A(this).unbind("mousemove.mousewheel");if(this.removeEventListener){this.removeEventListener((A.browser.mozilla?"DOMMouseScroll":"mousewheel"),B,false)}else{this.onmousewheel=function(){}}A.removeData(this,"mwcursorposdata")},handler:function(D){var B=Array.prototype.slice.call(arguments,1);D=A.event.fix(D||window.event);A.extend(D,A.data(this,"mwcursorposdata")||{});var E=0,C=true;if(D.wheelDelta){E=D.wheelDelta/120}if(D.detail){E=-D.detail/3}D.data=D.data||{};D.type="mousewheel";B.unshift(E);B.unshift(D);return A.event.handle.apply(this,B)}};A.fn.extend({mousewheel:function(B){return B?this.bind("mousewheel",B):this.trigger("mousewheel")},unmousewheel:function(B){return this.unbind("mousewheel",B)}})})(jQuery);(function(A){A.fn.alphanumeric=function(B){B=A.extend({ichars:"_!@#$%^&*()+=[]\\';,/{}|\":<>?~`.- ",nchars:"",allow:""},B);return this.each(function(){if(B.nocaps){B.nchars+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"}if(B.allcaps){B.nchars+="abcdefghijklmnopqrstuvwxyz"}s=B.allow.split("");for(i=0;i<s.length;i++){if(B.ichars.indexOf(s[i])!=-1){s[i]="\\"+s[i]}}B.allow=s.join("|");var D=new RegExp(B.allow,"gi");var C=B.ichars+B.nchars;C=C.replace(D,"");A(this).keypress(function(E){if(!E.charCode){k=String.fromCharCode(E.which)}else{k=String.fromCharCode(E.charCode)}if(C.indexOf(k)!=-1){E.preventDefault()}if(E.ctrlKey&&k=="v"){E.preventDefault()}});A(this).bind("contextmenu",function(){return false})})};A.fn.numeric=function(C){var B="abcdefghijklmnopqrstuvwxyz";B+=B.toUpperCase();C=A.extend({nchars:B},C);return this.each(function(){A(this).alphanumeric(C)})};A.fn.alpha=function(C){var B="1234567890";C=A.extend({nchars:B},C);return this.each(function(){A(this).alphanumeric(C)})}})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(B,C,A,E,D){return jQuery.easing[jQuery.easing.def](B,C,A,E,D)},easeInQuad:function(B,C,A,E,D){return E*(C/=D)*C+A},easeOutQuad:function(B,C,A,E,D){return -E*(C/=D)*(C-2)+A},easeInOutQuad:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C+A}return -E/2*((--C)*(C-2)-1)+A},easeInCubic:function(B,C,A,E,D){return E*(C/=D)*C*C+A},easeOutCubic:function(B,C,A,E,D){return E*((C=C/D-1)*C*C+1)+A},easeInOutCubic:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C+A}return E/2*((C-=2)*C*C+2)+A},easeInQuart:function(B,C,A,E,D){return E*(C/=D)*C*C*C+A},easeOutQuart:function(B,C,A,E,D){return -E*((C=C/D-1)*C*C*C-1)+A},easeInOutQuart:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C*C+A}return -E/2*((C-=2)*C*C*C-2)+A},easeInQuint:function(B,C,A,E,D){return E*(C/=D)*C*C*C*C+A},easeOutQuint:function(B,C,A,E,D){return E*((C=C/D-1)*C*C*C*C+1)+A},easeInOutQuint:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C*C*C+A}return E/2*((C-=2)*C*C*C*C+2)+A},easeInSine:function(B,C,A,E,D){return -E*Math.cos(C/D*(Math.PI/2))+E+A},easeOutSine:function(B,C,A,E,D){return E*Math.sin(C/D*(Math.PI/2))+A},easeInOutSine:function(B,C,A,E,D){return -E/2*(Math.cos(Math.PI*C/D)-1)+A},easeInExpo:function(B,C,A,E,D){return(C==0)?A:E*Math.pow(2,10*(C/D-1))+A},easeOutExpo:function(B,C,A,E,D){return(C==D)?A+E:E*(-Math.pow(2,-10*C/D)+1)+A},easeInOutExpo:function(B,C,A,E,D){if(C==0){return A}if(C==D){return A+E}if((C/=D/2)<1){return E/2*Math.pow(2,10*(C-1))+A}return E/2*(-Math.pow(2,-10*--C)+2)+A},easeInCirc:function(B,C,A,E,D){return -E*(Math.sqrt(1-(C/=D)*C)-1)+A},easeOutCirc:function(B,C,A,E,D){return E*Math.sqrt(1-(C=C/D-1)*C)+A},easeInOutCirc:function(B,C,A,E,D){if((C/=D/2)<1){return -E/2*(Math.sqrt(1-C*C)-1)+A}return E/2*(Math.sqrt(1-(C-=2)*C)+1)+A},easeInElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G)==1){return A+H}if(!F){F=G*0.3}if(C<Math.abs(H)){C=H;var E=F/4}else{var E=F/(2*Math.PI)*Math.asin(H/C)}return -(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+A},easeOutElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G)==1){return A+H}if(!F){F=G*0.3}if(C<Math.abs(H)){C=H;var E=F/4}else{var E=F/(2*Math.PI)*Math.asin(H/C)}return C*Math.pow(2,-10*D)*Math.sin((D*G-E)*(2*Math.PI)/F)+H+A},easeInOutElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G/2)==2){return A+H}if(!F){F=G*(0.3*1.5)}if(C<Math.abs(H)){C=H;var E=F/4}else{var E=F/(2*Math.PI)*Math.asin(H/C)}if(D<1){return -0.5*(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+A}return C*Math.pow(2,-10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F)*0.5+H+A},easeInBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158}return F*(C/=E)*C*((D+1)*C-D)+A},easeOutBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158}return F*((C=C/E-1)*C*((D+1)*C+D)+1)+A},easeInOutBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158}if((C/=E/2)<1){return F/2*(C*C*(((D*=(1.525))+1)*C-D))+A}return F/2*((C-=2)*C*(((D*=(1.525))+1)*C+D)+2)+A},easeInBounce:function(B,C,A,E,D){return E-jQuery.easing.easeOutBounce(B,D-C,0,E,D)+A},easeOutBounce:function(B,C,A,E,D){if((C/=D)<(1/2.75)){return E*(7.5625*C*C)+A}else{if(C<(2/2.75)){return E*(7.5625*(C-=(1.5/2.75))*C+0.75)+A}else{if(C<(2.5/2.75)){return E*(7.5625*(C-=(2.25/2.75))*C+0.9375)+A}else{return E*(7.5625*(C-=(2.625/2.75))*C+0.984375)+A}}}},easeInOutBounce:function(B,C,A,E,D){if(C<D/2){return jQuery.easing.easeInBounce(B,C*2,0,E,D)*0.5+A}return jQuery.easing.easeOutBounce(B,C*2-D,0,E,D)*0.5+E*0.5+A}});(function(C){var A=function(E){return{name:E,isFxQueue:true,paused:false,playing:null,shouldStart:function(){return(this.playing==null||!this.paused)},pause:function(){if(!this.playing){return false}((this.playing.isScope)?this.playing:this.playing.elem).stop();this.paused=true;return true},stop:function(){if(!this.playing){return false}((this.playing.isScope)?this.playing:this.playing.elem).stop();this.playing=null;this.paused=false;this.length=0;return true},start:function(){if(this.playing&&this.paused){this.playing();this.paused=false;return true}else{if(this.length&&!this.playing){this.playing=this[0];C(document).dequeue(this.name);return true}}return false},getScope:function(F){if(this.playing&&this.playing.isScope&&this.playing.called==F){return this.playing}for(var G=0;G<this.length;G++){if(this[G].isScope&&this[G].called==F){return this[G]}}return false},dequeue:function(G){if(!this.playing){return false}if(this.playing.isScope){var I=this.playing.items;for(var H=0;H<I.length;H++){if(G==I[H].elem[0]&&!I[H].finished){I[H].finished=true;this.playing.finishedItems++}}if(this.playing.finishedItems<I.length){return false}}else{if(this.playing.elem&&this.playing.elem[0]!=G){return false}}var F=this;setTimeout(function(){F.playing=F[0];C(document).dequeue(F.name)},this.playing.postDelay);return true}}};var B=function(E){var F=function(){for(var G=0;G<F.items.length;G++){F.items[G]()}};F.called=E;F.isScope=true;F.finishedItems=0;F.stop=function(){for(var G=0;G<F.items.length;G++){F.items[G].elem.stop()}};F.items=[];return F};var D=C.fn.animate;C.fn.animate=function(J,F,I,L){if(!this.length){return this}var O=(typeof F=="object")?F:C.speed(F,I,L);var E=C.extend({queue:"fx",position:"end",limit:-1,preDelay:0,postDelay:0,complete:null},O);if(!E.queue||E.queue=="fx"){return D.apply(this,arguments)}var G=E.queue;var H=C(document).queue(E.queue);if(!H.isFxQueue){C.extend(H,A(G))}E.queue=false;var K=function(){E.complete=function(){H.dequeue(this);if(C.isFunction(K.users_complete)){return K.users_complete.apply(this,arguments)}};setTimeout(function(){K.elem.animate(J,E)},K.preDelay)};K.elem=this;K.preDelay=E.preDelay||0;K.postDelay=E.postDelay||0;K.users_complete=F.complete||L;var N=H.getScope(E.scope);if(N){N.items.push(K);if(H.playing==N){K()}return this}if(E.limit<0||H.length<E.limit){var M=null;if(E.scope){M=B(E.scope);M.items.push(K)}else{M=K}if(E.position=="end"){H.push(M)}else{if(E.position=="front"){H.splice(1,0,M)}}if(H.shouldStart()){H.start()}return this}};C.extend({fxqueue:function(E){return C(document).queue(E)}})})(jQuery);(function(C){var A=C.scrollTo=function(F,E,D){C(window).scrollTo(F,E,D)};A.defaults={axis:"xy",duration:parseFloat(C.fn.jquery)>=1.3?0:1};A.window=function(D){return C(window)._scrollable()};C.fn._scrollable=function(){return this.map(function(){var E=this,D=!E.nodeName||C.inArray(E.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!D){return E}var F=(E.contentWindow||E).document||E.ownerDocument||E;return C.browser.safari||F.compatMode=="BackCompat"?F.body:F.documentElement})};C.fn.scrollTo=function(F,E,D){if(typeof E=="object"){D=E;E=0}if(typeof D=="function"){D={onAfter:D}}if(F=="max"){F=9000000000}D=C.extend({},A.defaults,D);E=E||D.speed||D.duration;D.queue=D.queue&&D.axis.length>1;if(D.queue){E/=2}D.offset=B(D.offset);D.over=B(D.over);return this._scrollable().each(function(){var L=this,J=C(L),K=F,I,G={},M=J.is("html,body");switch(typeof K){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(K)){K=B(K);break}K=C(K,this);case"object":if(K.is||K.style){I=(K=C(K)).offset()}}C.each(D.axis.split(""),function(Q,R){var S=R=="x"?"Left":"Top",U=S.toLowerCase(),P="scroll"+S,O=L[P],N=A.max(L,R);if(I){G[P]=I[U]+(M?0:O-J.offset()[U]);if(D.margin){G[P]-=parseInt(K.css("margin"+S))||0;G[P]-=parseInt(K.css("border"+S+"Width"))||0}G[P]+=D.offset[U]||0;if(D.over[U]){G[P]+=K[R=="x"?"width":"height"]()*D.over[U]}}else{var T=K[U];G[P]=T.slice&&T.slice(-1)=="%"?parseFloat(T)/100*N:T}if(/^\d+$/.test(G[P])){G[P]=G[P]<=0?0:Math.min(G[P],N)}if(!Q&&D.queue){if(O!=G[P]){H(D.onAfterFirst)}delete G[P]}});H(D.onAfter);function H(N){J.animate(G,E,D.easing,N&&function(){N.call(this,F,D)})}}).end()};A.max=function(J,I){var H=I=="x"?"Width":"Height",E="scroll"+H;if(!C(J).is("html,body")){return J[E]-C(J)[H.toLowerCase()]()}var G="client"+H,F=J.ownerDocument.documentElement,D=J.ownerDocument.body;return Math.max(F[E],D[E])-Math.min(F[G],D[G])};function B(D){return typeof D=="object"?D:{top:D,left:D}}})(jQuery);(function(A){A.fn.extend({elastic:function(){var B=["paddingTop","paddingRight","paddingBottom","paddingLeft","fontSize","lineHeight","fontFamily","width","fontWeight"];return this.each(function(){if(this.type!="textarea"){return false}var G=A(this),C=A("<div />").css({position:"absolute",display:"none","word-wrap":"break-word"}),H=parseInt(G.css("line-height"),10)||parseInt(G.css("font-size"),"10"),J=parseInt(G.css("height"),10)||H*3,I=parseInt(G.css("max-height"),10)||Number.MAX_VALUE,D=0,F=0;if(I<0){I=Number.MAX_VALUE}C.appendTo(G.parent());var F=B.length;while(F--){C.css(B[F].toString(),G.css(B[F].toString()))}function K(L,M){curratedHeight=Math.floor(parseInt(L,10));if(G.height()!=curratedHeight){G.css({height:curratedHeight+"px",overflow:M})}}function E(){var N=G.val().replace(/&/g,"&amp;").replace(/  /g,"&nbsp;").replace(/<|>/g,"&gt;").replace(/\n/g,"<br />");var L=C.html();if(N+"&nbsp;"!=L){C.html(N+"&nbsp;");if(Math.abs(C.height()+H-G.height())>3){var M=C.height()+H;if(M>=I){K(I,"auto")}else{if(M<=J){K(J,"hidden")}else{K(M,"hidden")}}}}}G.css({overflow:"hidden"});G.keyup(function(){E()});G.live("input paste",function(L){setTimeout(E,250)});E()})}})})(jQuery);
/**
	 * @author samuelme
	 * JQbook v1.0 - http://samcreate.com/
	 *
	 * JQbook is (c) 2007 Aaron McGuire and is released under the MIT License:
	 * http://www.opensource.org/licenses/mit-license.php
	 */
var JQbook=function(){var E="",B="",C=false,D="";return{events:{USER_NOT_LOGGED_IN:"User_is_not_loggedin",CONNECTION_READY:"Facebook_is_connected_and_ready",CONNECTION_READY_PERMISSIONS_NONE:"User_connected_but_did_not_allow_the_extended_permissions_you_requested",CONNECTION_FAILED:"User_authentication_failed",ON_USERINFO_FOUND:"User_data_recieved",ON_USERINFO_NOTFOUND:"User_data_not_found",ON_WALLINFO_FOUND:"User_wall_data_found",ON_WALLINFO_NOTFOUND:"User_wall_data_not_found",ON_LIKESINFO_FOUND:"User_likes_data_found",ON_LIKESINFO_NOT_FOUND:"User_likes_data_not_found",ON_MOVIESINFO_FOUND:"User_movies_data_found",ON_MOVIESINFO_NOT_FOUND:"User_movies_data_not_found",ON_NOTESINFO_FOUND:"User_notes_data_found",ON_NOTESINFO_NOT_FOUND:"User_notes_data_not_found",ON_GROUPSINFO_FOUND:"User_groups_data_found",ON_GROUPSINFO_NOT_FOUND:"User_groups_data_not_found",ON_IMAGESINFO_FOUND:"User_images_data_found",ON_STREAM_PUBLISH_SUCCESS:"STREAM_PUBLISH_SUCCEEDED",ON_STREAM_PUBLISH_FAILED:"STREAM_PUBLISH_FAILED"},defaults:{appID:"",permissions:"email,publish_stream,read_stream,user_groups,user_notes,user_birthday"},options:function(F){if(F==undefined||F==""){F={}}return $.extend({},JQbook.defaults,F)},init:function(G){try{JQbook.defaults.permissions=G.permissions!=null?G.permissions:JQbook.defaults.permissions;JQbook.defaults.permissions=JQbook.defaults.permissions==""?null:JQbook.defaults.permissions;FB.init({appId:JQbook.options(G).appID,status:true,cookie:true,xfbml:true});JQbook.loginStatus()}catch(H){D=G;var F=setTimeout(function(){JQbook.init(D)},1000)}},loginStatus:function(F){FB.getLoginStatus(function(G){if(G.session){C=true;JQbook.uid(G.session.uid);$("#fb-root").trigger(JQbook.events.CONNECTION_READY,[{uid:G.session.uid}]);A(F,G)}})},login:function(F){FB.getLoginStatus(function(G){if(G.session){C=true;JQbook.uid(G.session.uid);$("#fb-root").trigger(JQbook.events.CONNECTION_READY,[{uid:G.session.uid}]);A(F,G)}else{FB.login(function(H){if(H.session){if(H.perms){C=true;JQbook.uid(H.session.uid);$("#fb-root").trigger(JQbook.events.CONNECTION_READY,[{uid:H.session.uid}]);A(F,H)}else{C=true;JQbook.uid(H.session.uid);$("#fb-root").trigger(JQbook.events.CONNECTION_READY_PERMISSIONS_NONE);A(F,JQbook.events.CONNECTION_READY_PERMISSIONS_NONE)}}else{$("#fb-root").trigger(JQbook.events.CONNECTION_FAILED);A(F,false)}},{perms:JQbook.options().permissions})}})},userInfo:function(F){if(C==false){JQbook.debug(JQbook.events.USER_NOT_LOGGED_IN);return }FB.api("/me",function(G){if(!G||G.error){$("#fb-root").trigger(JQbook.events.ON_USERINFO_NOTFOUND);A(F,false);return(false)}$("#fb-root").trigger(JQbook.events.ON_USERINFO_FOUND,[G]);A(F,G);JQbook.name(G.name);JQbook.uid(G.id)})},userWall:function(G,F){if(C==false){JQbook.debug(JQbook.events.USER_NOT_LOGGED_IN);return }if(G==null||G==""){G=50}FB.api({method:"fql.query",query:"SELECT actor_id, message FROM stream WHERE source_id = "+JQbook.uid()+" limit "+G},function(H){$("#fb-root").trigger(JQbook.events.ON_WALLINFO_FOUND,[H]);A(F,H)})},userLikes:function(F){if(C==false){JQbook.debug(JQbook.events.USER_NOT_LOGGED_IN);return }FB.api("/"+JQbook.uid()+"/likes",function(G){if(!G||G.error){$("#fb-root").trigger(JQbook.events.ON_LIKESINFO_NOT_FOUND);A(F,false);return(false)}$("#fb-root").trigger(JQbook.events.ON_LIKESINFO_FOUND,[G.data]);A(F,G.data)})},userMovies:function(F){if(C==false){JQbook.debug(JQbook.events.USER_NOT_LOGGED_IN);return }FB.api("/"+JQbook.uid()+"/movies",function(G){if(!G||G.error){$("#fb-root").trigger(JQbook.events.ON_MOVIESINFO_NOT_FOUND);A(F,false);return(false)}$("#fb-root").trigger(JQbook.events.ON_MOVIESINFO_FOUND,[G.data]);A(F,G.data)})},userNotes:function(F){if(C==false){JQbook.debug(JQbook.events.USER_NOT_LOGGED_IN);return }FB.api("/"+JQbook.uid()+"/notes",function(G){if(!G||G.error){$("#fb-root").trigger(JQbook.events.ON_NOTESINFO_NOT_FOUND);A(F,false);return(false)}$("#fb-root").trigger(JQbook.events.ON_NOTESINFO_FOUND,[G.data]);A(F,G.data)})},userGroups:function(F){if(C==false){JQbook.debug(JQbook.events.USER_NOT_LOGGED_IN);return }FB.api("/"+JQbook.uid()+"/groups",function(G){if(!G||G.error){$("#fb-root").trigger(JQbook.events.ON_GROUPSINFO_NOT_FOUND);A(F,false);return(false)}$("#fb-root").trigger(JQbook.events.ON_GROUPSINFO_FOUND,[G.data]);A(F,G.data)})},userProfileIMGS:function(F){if(C==false){JQbook.debug(JQbook.events.USER_NOT_LOGGED_IN);return }FB.api({method:"fql.query",query:"SELECT pic, pic_square,pic_big FROM profile WHERE id = "+JQbook.uid()},function(G){$("#fb-root").trigger(JQbook.events.ON_IMAGESINFO_FOUND,[G]);A(F,G)})},streamPublish:function(G,K,I,L,F,M,J,H){if(C==false){JQbook.debug(JQbook.events.USER_NOT_LOGGED_IN);return }FB.ui({method:"stream.publish",message:"",display:J,attachment:{name:G,caption:"",description:(K),href:F,media:[{type:"image",src:I,href:F}]},action_links:[{text:L,href:F}],user_prompt_message:M},function(N){if(N&&N.post_id){$("#fb-root").trigger(JQbook.events.ON_STREAM_PUBLISH_SUCCESS,[N]);A(H,N)}else{$("#fb-root").trigger(JQbook.events.ON_STREAM_PUBLISH_FAILED);A(H,false)}})},uid:function(F){if(F==null||F==""){return B}else{B=F}},name:function(F){if(F===null||F===""){return E}else{E=F}},debug:function(F){if(window.console&&window.console.log){window.console.log(F)}}};function A(G,F){if(typeof G=="function"){G(F)}}}();jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){var F;if(typeof L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E="; expires="+F.toUTCString()}var K=L.path?"; path="+(L.path):"";var G=L.domain?"; domain="+(L.domain):"";var A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var H=0;H<J.length;H++){var C=jQuery.trim(J[H]);if(C.substring(0,B.length+1)==(B+"=")){D=decodeURIComponent(C.substring(B.length+1));break}}}return D}};function css_browser_selector(H){var A=H.toLowerCase(),C=function(J){return A.indexOf(J)>-1},E="gecko",G="webkit",I="safari",B="opera",D=document.documentElement,F=[(!(/opera|webtv/i.test(A))&&/msie\s(\d)/.test(A))?("ie ie"+RegExp.$1):C("firefox/2")?E+" ff2":C("firefox/3.5")?E+" ff3 ff3_5":C("firefox/3")?E+" ff3":C("gecko/")?E:C("opera")?B+(/version\/(\d+)/.test(A)?" "+B+RegExp.$1:(/opera(\s|\/)(\d+)/.test(A)?" "+B+RegExp.$2:"")):C("konqueror")?"konqueror":C("chrome")?G+" chrome":C("iron")?G+" iron":C("applewebkit/")?G+" "+I+(/version\/(\d+)/.test(A)?" "+I+RegExp.$1:""):C("mozilla/")?E:"",C("j2me")?"mobile":C("iphone")?"iphone":C("ipod")?"ipod":C("ipad")?"ipad":C("mac")?"mac":C("darwin")?"mac":C("webtv")?"webtv":C("win")?"win":C("freebsd")?"freebsd":(C("x11")||C("linux"))?"linux":"","js"];c=F.join(" ");D.className+=" "+c;return c}css_browser_selector(navigator.userAgent);
/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
var swfobject=function(){var AQ="undefined",Ac="object",AB="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",Ad="application/x-shockwave-flash",AC="SWFObjectExprInst",AW="onreadystatechange",AF=window,Ak=document,Aa=navigator,AA=false,Z=[Am],Af=[],AG=[],AL=[],Ai,AD,AP,AS,AK=false,At=false,Ag,AN,Ah=true,AH=function(){var A=typeof Ak.getElementById!=AQ&&typeof Ak.getElementsByTagName!=AQ&&typeof Ak.createElement!=AQ,E=Aa.userAgent.toLowerCase(),C=Aa.platform.toLowerCase(),H=C?/win/.test(C):/win/.test(E),J=C?/mac/.test(C):/mac/.test(E),G=/webkit/.test(E)?parseFloat(E.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,D=!+"\v1",F=[0,0,0],K=null;if(typeof Aa.plugins!=AQ&&typeof Aa.plugins[AB]==Ac){K=Aa.plugins[AB].description;if(K&&!(typeof Aa.mimeTypes!=AQ&&Aa.mimeTypes[Ad]&&!Aa.mimeTypes[Ad].enabledPlugin)){AA=true;D=false;K=K.replace(/^.*\s+(\S+\s+\S+$)/,"$1");F[0]=parseInt(K.replace(/^(.*)\..*$/,"$1"),10);F[1]=parseInt(K.replace(/^.*\.(.*)\s.*$/,"$1"),10);F[2]=/[a-zA-Z]/.test(K)?parseInt(K.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof AF.ActiveXObject!=AQ){try{var I=new ActiveXObject(X);if(I){K=I.GetVariable("$version");if(K){D=true;K=K.split(" ")[1].split(",");F=[parseInt(K[0],10),parseInt(K[1],10),parseInt(K[2],10)]}}}catch(B){}}}return{w3:A,pv:F,wk:G,ie:D,win:H,mac:J}}(),Aj=function(){if(!AH.w3){return }if((typeof Ak.readyState!=AQ&&Ak.readyState=="complete")||(typeof Ak.readyState==AQ&&(Ak.getElementsByTagName("body")[0]||Ak.body))){Ao()}if(!AK){if(typeof Ak.addEventListener!=AQ){Ak.addEventListener("DOMContentLoaded",Ao,false)}if(AH.ie&&AH.win){Ak.attachEvent(AW,function(){if(Ak.readyState=="complete"){Ak.detachEvent(AW,arguments.callee);Ao()}});if(AF==top){(function(){if(AK){return }try{Ak.documentElement.doScroll("left")}catch(A){setTimeout(arguments.callee,0);return }Ao()})()}}if(AH.wk){(function(){if(AK){return }if(!/loaded|complete/.test(Ak.readyState)){setTimeout(arguments.callee,0);return }Ao()})()}Ab(Ao)}}();function Ao(){if(AK){return }try{var B=Ak.getElementsByTagName("body")[0].appendChild(AR("span"));B.parentNode.removeChild(B)}catch(A){return }AK=true;var D=Z.length;for(var C=0;C<D;C++){Z[C]()}}function AJ(A){if(AK){A()}else{Z[Z.length]=A}}function Ab(A){if(typeof AF.addEventListener!=AQ){AF.addEventListener("load",A,false)}else{if(typeof Ak.addEventListener!=AQ){Ak.addEventListener("load",A,false)}else{if(typeof AF.attachEvent!=AQ){Al(AF,"onload",A)}else{if(typeof AF.onload=="function"){var B=AF.onload;AF.onload=function(){B();A()}}else{AF.onload=A}}}}}function Am(){if(AA){Y()}else{AM()}}function Y(){var D=Ak.getElementsByTagName("body")[0];var B=AR(Ac);B.setAttribute("type",Ad);var A=D.appendChild(B);if(A){var C=0;(function(){if(typeof A.GetVariable!=AQ){var E=A.GetVariable("$version");if(E){E=E.split(" ")[1].split(",");AH.pv=[parseInt(E[0],10),parseInt(E[1],10),parseInt(E[2],10)]}}else{if(C<10){C++;setTimeout(arguments.callee,10);return }}D.removeChild(B);A=null;AM()})()}else{AM()}}function AM(){var G=Af.length;if(G>0){for(var H=0;H<G;H++){var C=Af[H].id;var L=Af[H].callbackFn;var A={success:false,id:C};if(AH.pv[0]>0){var I=Ar(C);if(I){if(AO(Af[H].swfVersion)&&!(AH.wk&&AH.wk<312)){AX(C,true);if(L){A.success=true;A.ref=AU(C);L(A)}}else{if(Af[H].expressInstall&&AT()){var E={};E.data=Af[H].expressInstall;E.width=I.getAttribute("width")||"0";E.height=I.getAttribute("height")||"0";if(I.getAttribute("class")){E.styleclass=I.getAttribute("class")}if(I.getAttribute("align")){E.align=I.getAttribute("align")}var F={};var D=I.getElementsByTagName("param");var K=D.length;for(var J=0;J<K;J++){if(D[J].getAttribute("name").toLowerCase()!="movie"){F[D[J].getAttribute("name")]=D[J].getAttribute("value")}}AE(E,F,C,L)}else{Ae(I);if(L){L(A)}}}}}else{AX(C,true);if(L){var B=AU(C);if(B&&typeof B.SetVariable!=AQ){A.success=true;A.ref=B}L(A)}}}}}function AU(B){var D=null;var C=Ar(B);if(C&&C.nodeName=="OBJECT"){if(typeof C.SetVariable!=AQ){D=C}else{var A=C.getElementsByTagName(Ac)[0];if(A){D=A}}}return D}function AT(){return !At&&AO("6.0.65")&&(AH.win||AH.mac)&&!(AH.wk&&AH.wk<312)}function AE(F,D,H,E){At=true;AP=E||null;AS={success:false,id:H};var A=Ar(H);if(A){if(A.nodeName=="OBJECT"){Ai=An(A);AD=null}else{Ai=A;AD=H}F.id=AC;if(typeof F.width==AQ||(!/%$/.test(F.width)&&parseInt(F.width,10)<310)){F.width="310"}if(typeof F.height==AQ||(!/%$/.test(F.height)&&parseInt(F.height,10)<137)){F.height="137"}Ak.title=Ak.title.slice(0,47)+" - Flash Player Installation";var B=AH.ie&&AH.win?"ActiveX":"PlugIn",C="MMredirectURL="+AF.location.toString().replace(/&/g,"%26")+"&MMplayerType="+B+"&MMdoctitle="+Ak.title;if(typeof D.flashvars!=AQ){D.flashvars+="&"+C}else{D.flashvars=C}if(AH.ie&&AH.win&&A.readyState!=4){var G=AR("div");H+="SWFObjectNew";G.setAttribute("id",H);A.parentNode.insertBefore(G,A);A.style.display="none";(function(){if(A.readyState==4){A.parentNode.removeChild(A)}else{setTimeout(arguments.callee,10)}})()}AZ(F,D,H)}}function Ae(A){if(AH.ie&&AH.win&&A.readyState!=4){var B=AR("div");A.parentNode.insertBefore(B,A);B.parentNode.replaceChild(An(A),B);A.style.display="none";(function(){if(A.readyState==4){A.parentNode.removeChild(A)}else{setTimeout(arguments.callee,10)}})()}else{A.parentNode.replaceChild(An(A),A)}}function An(B){var D=AR("div");if(AH.win&&AH.ie){D.innerHTML=B.innerHTML}else{var E=B.getElementsByTagName(Ac)[0];if(E){var A=E.childNodes;if(A){var F=A.length;for(var C=0;C<F;C++){if(!(A[C].nodeType==1&&A[C].nodeName=="PARAM")&&!(A[C].nodeType==8)){D.appendChild(A[C].cloneNode(true))}}}}}return D}function AZ(E,G,C){var D,A=Ar(C);if(AH.wk&&AH.wk<312){return D}if(A){if(typeof E.id==AQ){E.id=C}if(AH.ie&&AH.win){var F="";for(var I in E){if(E[I]!=Object.prototype[I]){if(I.toLowerCase()=="data"){G.movie=E[I]}else{if(I.toLowerCase()=="styleclass"){F+=' class="'+E[I]+'"'}else{if(I.toLowerCase()!="classid"){F+=" "+I+'="'+E[I]+'"'}}}}}var H="";for(var J in G){if(G[J]!=Object.prototype[J]){H+='<param name="'+J+'" value="'+G[J]+'" />'}}A.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+F+">"+H+"</object>";AG[AG.length]=E.id;D=Ar(E.id)}else{var B=AR(Ac);B.setAttribute("type",Ad);for(var K in E){if(E[K]!=Object.prototype[K]){if(K.toLowerCase()=="styleclass"){B.setAttribute("class",E[K])}else{if(K.toLowerCase()!="classid"){B.setAttribute(K,E[K])}}}}for(var L in G){if(G[L]!=Object.prototype[L]&&L.toLowerCase()!="movie"){Ap(B,L,G[L])}}A.parentNode.replaceChild(B,A);D=B}}return D}function Ap(B,D,C){var A=AR("param");A.setAttribute("name",D);A.setAttribute("value",C);B.appendChild(A)}function AV(A){var B=Ar(A);if(B&&B.nodeName=="OBJECT"){if(AH.ie&&AH.win){B.style.display="none";(function(){if(B.readyState==4){As(A)}else{setTimeout(arguments.callee,10)}})()}else{B.parentNode.removeChild(B)}}}function As(A){var B=Ar(A);if(B){for(var C in B){if(typeof B[C]=="function"){B[C]=null}}B.parentNode.removeChild(B)}}function Ar(A){var C=null;try{C=Ak.getElementById(A)}catch(B){}return C}function AR(A){return Ak.createElement(A)}function Al(A,C,B){A.attachEvent(C,B);AL[AL.length]=[A,C,B]}function AO(A){var B=AH.pv,C=A.split(".");C[0]=parseInt(C[0],10);C[1]=parseInt(C[1],10)||0;C[2]=parseInt(C[2],10)||0;return(B[0]>C[0]||(B[0]==C[0]&&B[1]>C[1])||(B[0]==C[0]&&B[1]==C[1]&&B[2]>=C[2]))?true:false}function AY(B,F,A,C){if(AH.ie&&AH.mac){return }var E=Ak.getElementsByTagName("head")[0];if(!E){return }var G=(A&&typeof A=="string")?A:"screen";if(C){Ag=null;AN=null}if(!Ag||AN!=G){var D=AR("style");D.setAttribute("type","text/css");D.setAttribute("media",G);Ag=E.appendChild(D);if(AH.ie&&AH.win&&typeof Ak.styleSheets!=AQ&&Ak.styleSheets.length>0){Ag=Ak.styleSheets[Ak.styleSheets.length-1]}AN=G}if(AH.ie&&AH.win){if(Ag&&typeof Ag.addRule==Ac){Ag.addRule(B,F)}}else{if(Ag&&typeof Ak.createTextNode!=AQ){Ag.appendChild(Ak.createTextNode(B+" {"+F+"}"))}}}function AX(A,C){if(!Ah){return }var B=C?"visible":"hidden";if(AK&&Ar(A)){Ar(A).style.visibility=B}else{AY("#"+A,"visibility:"+B)}}function AI(B){var A=/[\\\"<>\.;]/;var C=A.exec(B)!=null;return C&&typeof encodeURIComponent!=AQ?encodeURIComponent(B):B}var Aq=function(){if(AH.ie&&AH.win){window.attachEvent("onunload",function(){var A=AL.length;for(var B=0;B<A;B++){AL[B][0].detachEvent(AL[B][1],AL[B][2])}var D=AG.length;for(var C=0;C<D;C++){AV(AG[C])}for(var E in AH){AH[E]=null}AH=null;for(var F in swfobject){swfobject[F]=null}swfobject=null})}}();return{registerObject:function(A,E,C,B){if(AH.w3&&A&&E){var D={};D.id=A;D.swfVersion=E;D.expressInstall=C;D.callbackFn=B;Af[Af.length]=D;AX(A,false)}else{if(B){B({success:false,id:A})}}},getObjectById:function(A){if(AH.w3){return AU(A)}},embedSWF:function(K,E,H,F,C,A,B,I,G,J){var D={success:false,id:E};if(AH.w3&&!(AH.wk&&AH.wk<312)&&K&&E&&H&&F&&C){AX(E,false);AJ(function(){H+="";F+="";var Q={};if(G&&typeof G===Ac){for(var O in G){Q[O]=G[O]}}Q.data=K;Q.width=H;Q.height=F;var N={};if(I&&typeof I===Ac){for(var P in I){N[P]=I[P]}}if(B&&typeof B===Ac){for(var L in B){if(typeof N.flashvars!=AQ){N.flashvars+="&"+L+"="+B[L]}else{N.flashvars=L+"="+B[L]}}}if(AO(C)){var M=AZ(Q,N,E);if(Q.id==E){AX(E,true)}D.success=true;D.ref=M}else{if(A&&AT()){Q.data=A;AE(Q,N,E,J);return }else{AX(E,true)}}if(J){J(D)}})}else{if(J){J(D)}}},switchOffAutoHideShow:function(){Ah=false},ua:AH,getFlashPlayerVersion:function(){return{major:AH.pv[0],minor:AH.pv[1],release:AH.pv[2]}},hasFlashPlayerVersion:AO,createSWF:function(A,B,C){if(AH.w3){return AZ(A,B,C)}else{return undefined}},showExpressInstall:function(B,A,D,C){if(AH.w3&&AT()){AE(B,A,D,C)}},removeSWF:function(A){if(AH.w3){AV(A)}},createCSS:function(B,A,C,D){if(AH.w3){AY(B,A,C,D)}},addDomLoadEvent:AJ,addLoadEvent:Ab,getQueryParamValue:function(B){var A=Ak.location.search||Ak.location.hash;if(A){if(/\?/.test(A)){A=A.split("?")[1]}if(B==null){return AI(A)}var C=A.split("&");for(var D=0;D<C.length;D++){if(C[D].substring(0,C[D].indexOf("="))==B){return AI(C[D].substring((C[D].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(At){var A=Ar(AC);if(A&&Ai){A.parentNode.replaceChild(Ai,A);if(AD){AX(AD,true);if(AH.ie&&AH.win){Ai.style.display="block"}}if(AP){AP(AS)}}At=false}}}}();
/*
 * proverbSearch.js for pizza proverbs
 */
var proverbSearch=function(){return{init:function(){u.debug("# [proverbSearch init]")},submit:function(B){$(".proverb_list").addClass("results");$("li#latest").removeClass("on");$("li#top").removeClass("on");if(B==undefined){$(".proverb_list").empty()}var A=$("#search").val();$.ajax({url:"/services/proverbs/search/?page="+B+"&query="+A,cache:false,dataType:"xml",success:function(C){$(".more .loadergif").hide();try{if(parseInt($(C).find("response").attr("totalItems"))!=0){var E=$(C).find("response").attr("totalItems");t.trackEvent("search-results","search-results "+E);$(C).find("response").children().each(function(M){var K=$(this).attr("fname");var J=$(this).attr("id");var L=$(this).attr("votes");var I=$(this).attr("modified");var F=$(this).text();var N=String(window.location);N=N.split("?");var G=N[0];var H=G+"?id="+J;u.toly(H,function(O){var Q="http://twitter.com/home?status="+F+" -"+K+" "+escape("#pizzaproverbs ")+O;var P=$('<li class="tofade"><h3><a href="'+G+"?id="+J+'">"'+F+'"</a><cite>-&nbsp;'+K+'</cite></h3><ul><li class="retweet"><a href="'+Q+'" rel="external">retweet</a></li><li class="like">'+u.getLikeButton("http://"+u.getBaseDomain()+"/?id="+J)+"</li></ul></li>");$(".proverb_list").append(P);if(M==0){$first=P}M++;if(B>1){$.scrollTo($first,300)}})})}else{$(".proverb_list").append('<p class="no_results">There were no matches for that term.');$(".more a").hide();t.trackEvent("search-results","search-results-0")}}catch(D){}if(parseInt($(C).find("response").attr("totalItems"))<10){$(".more a").hide()}},error:function(C,D){u.show_error(D+" occured")}})}}}();
/*
 * proverbsList.js for pizza proverbs


	scrollTo function commented out due to incompatability with ie

 */
var proverbList=function(){var A="?utm_source=twitter.com&utm_medium=retweet&utm_campaign=pizzaproverbs";return{init:function(){u.debug("# [proverbList init]")},getRecent:function(B){$(".proverb_list").removeClass("results");$.ajax({type:"GET",url:"../services/proverbs/view/newest/"+B+"/",dataType:"xml",success:function(D){var C=0;$(".more .loadergif").hide();$(D).find("response").children().each(function(L){var J=$(this).attr("fname");var I=$(this).attr("id");var K=$(this).attr("votes");var H=$(this).attr("modified");var E=$(this).text();var M=String(window.location);M=M.split("?");var F=M[0];var G=F+"?id="+I+"/"+A;u.toly(G,function(N){var P="http://twitter.com/home?status="+E+" -"+J+" "+escape("#pizzaproverbs ")+N;var O=$('<li class="tofade"><h3><a href="'+F+"?id="+I+'">"'+E+'"</a><cite>-&nbsp;'+J+'</cite></h3><ul><li class="retweet"><a href="'+P+'" rel="external">retweet</a></li><li class="like">'+u.getLikeButton("http://"+u.getBaseDomain()+"/?id="+I)+"</li></ul></li>");$(".proverb_list").append(O)})})}})},getTop:function(B){$(".proverb_list").removeClass("results");$.ajax({type:"GET",url:"../services/proverbs/view/top/"+B+"/",dataType:"xml",success:function(D){var C=0;$(".more .loadergif").hide();$(D).find("response").children().each(function(L){var J=$(this).attr("fname");var I=$(this).attr("id");var K=$(this).attr("votes");var H=$(this).attr("modified");var E=$(this).text();var M=String(window.location);M=M.split("?");var F=M[0];var G=F+"?id="+I+"/"+A;u.toly(G,function(N){var P="http://twitter.com/home?status="+E+" -"+J+" "+escape("#pizzaproverbs ")+N;var O=$('<li class="tofade"><h3><a href="'+F+"?id="+I+'">"'+E+'"</a><cite>-&nbsp;'+J+'</cite></h3><ul><li class="retweet"><a href="'+P+'" rel="external">retweet</a></li><li class="like">'+u.getLikeButton("http://"+u.getBaseDomain()+"/?id="+I)+"</li></ul></li>");$(".proverb_list").append(O)})})}})},showLatest:function(B){$(".proverb_list").removeClass("results");$.ajax({type:"GET",url:"../services/proverbs/view/newest/1/",dataType:"xml",success:function(D){var C=0;$(".more .loadergif").hide();$(D).find("response").children().each(function(L){var J=$(this).attr("fname");var I=$(this).attr("id");var K=$(this).attr("votes");var H=$(this).attr("modified");var E=$(this).text();var M=String(window.location);M=M.split("?");var F=M[0];var G=F+"?id="+I+"/"+A;u.toly(G,function(N){var P="http://twitter.com/home?status="+E+" -"+J+" "+escape("#pizzaproverbs ")+N;var O=$('<li class="tofade"><h3><a href="'+F+"?id="+I+'">"'+E+'"</a><cite>-&nbsp;'+J+'</cite></h3><ul><li class="retweet"><a href="'+P+'" rel="external">retweet</a></li><li class="like">'+u.getLikeButton("http://"+u.getBaseDomain()+"/?id="+I)+"</li></ul></li>");$(".proverb_list").append(O)})})}})},showTop:function(B){$.ajax({type:"GET",url:"../services/proverbs/view/top/1/",dataType:"xml",success:function(D){var C=0;$(".more .loadergif").hide();$(D).find("response").children().each(function(L){var J=$(this).attr("fname");var I=$(this).attr("id");var K=$(this).attr("votes");var H=$(this).attr("modified");var E=$(this).text();var M=String(window.location);M=M.split("?");var F=M[0];var G=F+"?id="+I+"/"+A;u.toly(G,function(N){var P="http://twitter.com/home?status="+E+" -"+J+" "+escape("#pizzaproverbs ")+N;var O=$('<li class="tofade"><h3><a id="'+I+'" href="'+F+"?id="+I+'">"'+E+'"</a><cite>-&nbsp;'+J+'</cite></h3><ul><li class="retweet"><a id="'+I+'" href="'+P+'" rel="external">retweet</a></li><li class="like">'+u.getLikeButton("http://"+u.getBaseDomain()+"/?id="+I)+"</li></ul></li>");$(".proverb_list").append(O)})})}})}}}();
/*
 * proverbSort.js for pizza proverbs
 */
var proverbSort=function(){return{init:function(){u.debug("# [proverbSort init]")}}}();
/*
 * proverbSubmit.js for pizza proverbs
 */
var proverbSubmit=function(){return{init:function(){C();A();u.debug("# [proverbSubmit init]")},getWriteContent:function(){$.ajax({url:"/write",dataType:"html",cache:false,success:function(E){$new_content=$(E).find(".header_content").children();$(".header_content").children().fadeOut(500,function(){$(".btn_wrapper img").hide();$(this).parent().empty().attr("class","header_content").addClass("section_write").append($new_content).children().hide().fadeIn(800);proverbSubmit.init();proverbsUI.rebind()});t.trackPage("/proverbs/proverbsform")}})},getCouponContent:function(){$.ajax({url:"/coupons",dataType:"html",cache:false,success:function(E){$("li.coupons span").removeClass("loading");$new_content=$(E).find(".header_content").children();$(".header_content").children().fadeOut(500,function(){$(".btn_wrapper img").hide();$(this).parent().empty().attr("class","header_content").addClass("section_coupons").append($new_content).children().hide().fadeIn(800);($.cookie("u_email")!=null)?$(".section_coupons input#email").val($.cookie("u_email")):$(".section_coupons input#email").val("");($.cookie("u_fname")!=null)?$(".section_coupons input#fname").val($.cookie("u_fname")):$(".section_coupons input#fname").val("");($.cookie("u_location")!=null)?$(".section_coupons input#location").val($.cookie("u_location")):$(".section_coupons input#location").val("");proverbsUI.rebind();A()});t.trackPage("/proverbs/coupons")}})},getAboutContent:function(){$.ajax({url:"/about",cache:false,success:function(E){$("li.about span").removeClass("loading");$new_content=$(E).find(".header_content").children();$(".header_content").children().fadeOut(500,function(){$(".btn_wrapper img").hide();$(this).parent().empty().attr("class","header_content").addClass("section_about").append($new_content).children().hide().fadeIn(800);proverbsUI.rebind();proverbsUI.setupScroll()});t.trackPage("/proverbs/about")}})},getInfoContent:function(){$.ajax({url:"/info",cache:false,success:function(E){$new_content=$(E).find(".header_content").children();$(".header_content").children().fadeOut(500,function(){$(this).parent().empty().attr("class","header_content").addClass("section_info").append($new_content).children().hide().fadeIn(800);proverbsUI.rebind();A()});t.trackPage("/proverbs/personalinfoform");var F=$(".section_write textarea#proverb").val();F=F.substring(1,$(".section_write textarea#proverb").val().length-1);$.cookie("pizza_proverb",F)}})},getSuccessContent:function(){$.ajax({url:"/success",cache:false,success:function(E){$new_content=$(E).find(".header_content").children();$(".header_content").children().fadeOut(500,function(){$(this).parent().empty().attr("class","header_content").addClass("section_success").append($new_content).children().hide().fadeIn(800);$(".section_success h2 span").text($.cookie("u_fname"));proverbsUI.rebind()})}})},getCouponSuccessContent:function(){$.ajax({url:"/couponSuccess",cache:false,success:function(E){$new_content=$(E).find(".header_content").children();$(".header_content").children().fadeOut(500,function(){$(this).parent().empty().attr("class","header_content section_success").addClass("section_couponSuccess").append($new_content).children().hide().fadeIn(800);proverbsUI.rebind()})}})},smartInputs:function(){A()}};function C(){$("textarea#proverb").unbind("focus").focus(function(){B();if($(this).val()=='"Click here to start typing"'){$(this).val("");t.trackEvent("begin-typing","begin-typing")}});$("textarea#proverb").unbind("blur").blur(function(){if($(this).val()==""||$(this).val()=='" "'||$(this).val()=='""'){$(this).val('"Click here to start typing"')}});$("textarea#proverb").unbind("keyup").bind("keyup",function(E){if(this.value.length>=101){$(this).addClass("overlimit");this.value=this.value.substring(0,101)}else{$(this).removeClass("overlimit")}if(E.which!==8&&E.keyCode!=86){var F=B();$(this).val(F);D(this,this.value.length-1)}if(this.value==""){$("#count").text(100-this.value.length)}else{if(this.value=='"'){$("#count").text(100-this.value.length+1)}else{$("#count").text(100-this.value.length+2)}}});$("textarea#proverb").elastic()}function B(){var E=$("textarea#proverb").val();E=E.replace(/"/g,"");E=E.replace("\n","");E=E.replace("\r","");E=E.replace("  "," ");E=E.replace(/[\"\'][\s]*javascript:(.*)[\"\']/gi,'""');E=E.replace(/script(.*)/gi,"");E=E.replace(/eval\((.*)\)/gi,"");return'"'+E+'"'}function D(F,G){if(F.setSelectionRange){F.focus();F.setSelectionRange(G,G)}else{if(F.createTextRange){var E=F.createTextRange();E.collapse(true);E.moveEnd("character",G);E.moveStart("character",G);E.select()}}}function A(){$("input").each(function(){var F=$(this).attr("id"),E=$("label[for="+F+"]").not('[for="terms"]').not('[for="age"]');if($(this).val()!=""){E.hide()}$(this).focus(function(){E.addClass("focus")});$(this).blur(function(){if($(this).val()==""){E.removeClass("focus");E.show()}});$(this).bind("keydown",function(G){if(G.keyCode>=48){E.hide()}});$(this).bind("keyup",function(G){if($(this).val()==""){E.show()}})})}}();
/*
 * signup.js for pizza proverbs
 */
var signup=function(){return{init:function(){u.debug("# [signup init]")}}}();
/*
 * socialShare.js for pizza proverbs
 */
var socialShare=function(){return{twitter:function(C){var A=String(window.location);var B;u.toly(A,function(D){D;var E=C.parent("li").parent("ul").siblings("h3").children("a").text()+" "+C.parent("li").parent("ul").siblings("h3").children("cite").text()+escape(" #pizzaproverbs")+" "+D;window.open("http://twitter.com/home?status="+E,"","scrollbars=yes,menubar=yes,resizable=yes,toolbar=yes,location=yes")})},wallPost:function(){},email:function(){}}}();
/*
 * proverbsUI.js for pizza proverbs
 */
var proverbsUI=function(){var K=true;return{init:function(){H();L();F();D();A();B()},rebind:function(){F();B();A()},setupScroll:function(){E()},checkPage:function(N){var M;$.ajax({type:"GET",url:"../services/proverbs/view/top/1/",dataType:"xml",async:false,success:function(O){M=parseInt($(O).find("response").attr("totalPages"))}});if(N==M){return false}else{return true}}};function L(){var M=2;$(".more a").unbind("click").bind("click",function(){$(".more .loadergif").show();if($("li#latest").hasClass("on")){proverbList.getRecent(M)}else{if($("li#top").hasClass("on")){proverbList.getTop(M)}}if($(".proverb_list").hasClass("results")){proverbSearch.submit(M)}if(proverbsUI.checkPage(M)==false){$("p.more a").hide()}M++;t.trackEvent("view_more","clicks-view_more");return false});$(".moreTop a").unbind("click").bind("click",function(){$(".more .loadergif").show();proverbList.getTop(M);M++;return false});$(".nav_proverbs li#latest a").unbind("click").bind("click",function(){$("#search").val("");$("#latest").addClass("on");$("#top").removeClass("on");$(".proverb_list").children().remove();proverbList.showLatest();$(".more a").show();M=2;t.trackEvent("nav-latest_proverbs","clicks-nav-latest_proverbs");return false});$(".nav_proverbs li#top a").unbind("click").bind("click",function(){$("#search").val("");$("#latest").removeClass("on");$("#top").addClass("on");$(".proverb_list").children().remove();proverbList.showTop();$(".more a").show();M=2;t.trackEvent("nav-top_proverbs","clicks-nav-top_proverbs");return false});$(".retweet a").unbind("click").live("click",function(){var N=$(this).parent().parent().siblings("h3").children("a").attr("href");N=N.split("=");N=N[1].replace(/^\s+|\s+$/g,"");t.trackEvent("Retweet","Retweet-proverb-"+N)});$(".proverb_list li h3 a").unbind("click").live("click",function(){var N=$(this).attr("href");N=N.split("=");N=N[1].replace(/^\s+|\s+$/g,"");t.trackEvent("Proverb","Display-proverb-"+N)});$("#about_footer").unbind("click").bind("click",function(N){$("li.about span").addClass("loading");N.preventDefault();proverbSubmit.getAboutContent();$(document).scrollTo(".siteWrapper",300);t.trackEvent("footernav-whatis","clicks-footernav-whatisproverb");return false});$("#coupons_footer").unbind("click").bind("click",function(N){$("li.coupons span").addClass("loading");N.preventDefault();proverbSubmit.getCouponContent();$(document).scrollTo(".siteWrapper",300);t.trackEvent("footernav-coupons","clicks-footernav-coupons");return false});$(".footer #order_now").bind("click",function(){t.trackEvent("footernav-order","clicks-footernav-ordernow")});$(".footer .terms_text").bind("click",function(){t.trackEvent("footernav-terms","clicks-footernav-terms")});$(".rulesBlock #terms_text_rules").bind("click",function(){t.trackEvent("footer-terms","clicks-footer-terms")});$(".rulesBlock #footer_proverbslink").bind("click",function(){t.trackEvent("footer-proverbslink","clicks-footer-proverbslink")});$(".scroll_top form").submit(function(){$(".more a").show();$(".proverb_list").empty();proverbSearch.submit();t.trackEvent("search","clicks-search");return false});$("li.home_right ").bind("click",function(){return true});$("li.home_left a").bind("click",function(){return true})}function F(){$('input[type="text"]').not("input#email, input#zipcode").unbind("keyup").bind("keyup",function(M){G($(this),30);var N=I($(this));$(this).val(N)});$("input#email").unbind("keyup").bind("keyup",function(M){G($(this),40)});$("input#zipcode").unbind("keyup").bind("keyup",function(M){G($(this),5);var N=I($(this));$(this).val(N)});$(".section_home a.btn").unbind("click").bind("click",function(M){M.preventDefault();$(".btn_wrapper img").show();proverbSubmit.getWriteContent();t.trackEvent("write_proverb","clicks-write_proverb");return false});$(".section_about a.btn, .section_proverb a.btn").unbind("click").bind("click",function(M){$(".btn_wrapper img").show();proverbSubmit.getWriteContent();t.trackEvent("write_proverb","clicks-write_proverb");return false});$("li.coupons a").unbind("click").bind("click",function(M){$("li.coupons span").addClass("loading");M.preventDefault();proverbSubmit.getCouponContent();t.trackEvent("nav-coupons","clicks-nav-coupons");return false});$("li.about a").unbind("click").bind("click",function(M){$("li.about span").addClass("loading");M.preventDefault();proverbSubmit.getAboutContent();t.trackEvent("nav-what_is_a_proverb","clicks-nav-what_is_a_proverb");return false});$(".section_write input#proverb_btn").unbind("click").bind("click",function(M){M.preventDefault();if($(".section_write textarea#proverb").val().length>102){$(".section_write form p.error").text("You have exceeded the character limit.").show();$(".section_write textarea#proverb").keypress(function(){$(".section_write form p.error").hide()})}else{if($(".section_write textarea#proverb").val().length==0||$(".section_write textarea#proverb").val()=='"Click here to start typing"'||$(".section_write textarea#proverb").val()=='" "'||$(".section_write textarea#proverb").val()=='""'){$(".section_write form p.error").text("Please write a proverb before submitting.").show();$(".section_write textarea#proverb").keypress(function(){$(".section_write form p.error").hide()})}else{$(".btn_wrapper img").show();proverbSubmit.getInfoContent();t.trackEvent("submit","clicks-submit")}}return false});$(".section_proverb .retweet a").unbind("click").bind("click",function(){window.open(this.href);var M=$(this).attr("id");t.trackEvent("Retweet","Retweet-proverb-"+M);return false});$('.section_info input[type="submit"]').unbind("click").bind("click",function(V){var P=$(".section_info input[type='text']");var O=$(".section_info input[type='checkbox']");var R='<p class="invalid">Field Required</p>';var N=$.cookie("pizza_proverb");var Q=$(".section_info input#email").val();var M=$(".section_info input#fname").val();var S=$(".section_info input#lname").val();var U=$(".section_info input#location").val();var T=false;$.each(P,function(X,W){if($.trim($(this).val()).length==0){V.preventDefault();$(this).parent().append(R);$(this).focus(function(){$(this).parent().find(".invalid").remove()});T=false}else{T=true}});if(!u.validateEmail(Q)){V.preventDefault();$(".section_info input#email").parent().append(R);$(".section_info input#email").focus(function(){$(this).parent().find(".invalid").remove()});T=false}else{T=true}if($("input#terms").is(":checked")==false||$("input#age").is(":checked")==false){$.each(O,function(W,X){if($(this).is(":checked")==false){V.preventDefault();$(this).parent().find(".asterix").show();$(this).focus(function(){$(this).parent().find(".asterix").hide()})}});T=false}else{T=true}if(T){$.cookie("u_email",Q);$.cookie("u_fname",M);$.cookie("u_lname",S);$.cookie("u_location",U);$(".section_info input#proverb").attr("value",N);t.trackEvent("submit","clicks-submit");return true}return false});$('.section_coupons input[type="submit"]').unbind("click").bind("click",function(N){var M=$(".section_coupons input[type='text']");var P='<p class="invalid">Field Required</p>';var O=$(".section_coupons input#email").val();var Q=false;$.each(M,function(S,R){if($.trim($(this).val()).length==0){N.preventDefault();$(this).parent().append(P);$(this).focus(function(){$(this).parent().find(".invalid").remove()});Q=false}else{Q=true}});if(Q){if(!u.validateEmail(O)){N.preventDefault();$(".section_coupons input#email").parent().append(P);$(".section_coupons input#email").focus(function(){$(this).parent().find(".invalid").remove()});return false}else{($.cookie("u_uid")!=null)?$(".section_coupons input#uid").val($.cookie("u_uid")):$(".section_coupons input#uid").val("");($.cookie("u_lname")!=null)?$(".section_coupons input#lname").val($.cookie("u_lname")):$(".section_coupons input#lname").val("");t.trackEvent("submit","clicks-submit");return true}}return false});$(".section_success a.sign_up").unbind("click").bind("click",function(M){M.preventDefault();$(".btn_wrapper img").show();proverbSubmit.getCouponContent();t.setPage("/proverbs/thanks");t.trackEvent("sign_up","clicks-sign_up");return false});$(".section_proverbsSuccess a.order").unbind("click").bind("click",function(){t.setPage("/proverbs/thanks");t.trackEvent("proverbs-order_now","clicks-order_now")});$(".section_couponSuccess a.order").bind("click",function(){t.setPage("/proverbs/couponSuccess");t.trackEvent("coupon-order_now","clicks-order_now")});$(".section_info a.terms_text").unbind().bind("click",function(){t.setPage("/proverbs/personalinfoform");t.trackEvent("terms","clicks-terms")});$(".section_coupons .terms a").unbind().bind("click",function(){t.setPage("/proverbs/coupons");t.trackEvent("privacy","clicks-privacy")});$(".section_couponSuccess a.write").unbind("click").bind("click",function(M){M.preventDefault();$(".btn_wrapper img").show();proverbSubmit.getWriteContent();t.setPage("/proverbs/couponSuccess");t.trackEvent("write_proverb","clicks-write_proverb");return false});$("li.home_right a").bind("click",function(){return true});$("li.home_left a").bind("click",function(){return true})}function H(){$(".nav_main li a").hover(function(){if($(this).parent().hasClass("about")){$(this).parent().animate({left:"-100px"},85);$(this).children("span").animate({left:"143px"},85)}else{if($(this).parent().hasClass("coupons")){$(this).parent().animate({right:"-100px"},85);$(this).children("span").animate({right:"143px"},85)}}});$(".nav_main li a").mouseleave(function(){if($(this).parent().hasClass("about")){$(this).parent().animate({left:"-85px"},85);$(this).children("span").animate({left:"125px"},85)}else{if($(this).parent().hasClass("coupons")){$(this).parent().animate({right:"-85px"},85);$(this).children("span").animate({right:"125px"},85)}}})}function D(){var N="9.0.28";var P="";var M={};M.xmlSource="/lib/swf/videos.xml";M.media_path=u.getMediaDomain();M.autoCycle="true";M.repeat=-1;var Q={};Q.quality="high";Q.bgcolor="#ffffff";Q.allowscriptaccess="sameDomain";Q.allowfullscreen="true";Q.wmode="transparent";var O={};O.id="PizzaProverbsVideoPlayer";O.name="PizzaProverbsVideoPlayer";O.align="left";swfobject.embedSWF(u.getMediaDomain()+"/lib/swf/PizzaProverbsVideoPlayer.swf","flashContent","360","230",N,P,M,Q,O)}function A(){$("textarea#proverb").alphanumeric({allow:" .,?!-'"});$("input#fname, input#lname").alpha({allow:" -"});$("input#location").alpha({allow:" ,"});$("input#zipcode").numeric();$("input#email").alphanumeric({allow:".@-_"});$("input#address").alphanumeric({allow:" .#,-"})}function C(){$.cookie("u_email",email);$.cookie("u_fname",fname);$.cookie("u_lname",lname);$.cookie("u_location",location);$(".section_info input#proverb").attr("value",proverb);t.trackEvent("submit","clicks-submit")}function E(){$("#about_pane").jScrollPane()}function I(M){}function G(O,M){var P=$(O).val();var N=P.length;if(N>M){$(O).val(P.substr(0,M));return false}}function B(){$(".terms_text").bind("click",function(){var N=$('<a href="#" class="close">Close Window</a>');N.unbind().bind("click",function(){$(".section_terms").hide();$(".overlay").hide();return false});$(".overlay").show();$(".section_terms").show();if(K){$(".section_terms").append(N)}$(".overlay").css("height",$(".siteWrapper").height()+"px");M();return false});$(".overlay").bind("click",function(){$(".section_terms").hide();$(".overlay").hide()});function M(){if(K){$.ajax({type:"GET",url:"/terms.html",dataType:"html",success:function(N){$(".section_terms").append(N)}});K=false}}}function J(){$("a[rel*=external]").live("click",function(){window.open(this.href);return(false)})}}();
/*
 * proverbsTracking.js for pizza proverbs
 */
var t=function(){var B="/proverbs/";var A,C;return{init:function(){A=_gat._getTracker("UA-12101448-9");C=_gat._getTracker("UA-1172593-27");u.debug("# [proverbsTracking init]")},track:function(E){u.debug(E)},trackEvent:function(E,G){try{A._trackEvent(B,E,G);C._trackEvent(B,E,G)}catch(F){u.debug(F)}},setPage:function(E){B=E},trackPage:function(F){var E=window.location.href;var G=E.split("/");if(G[3]==""||F!="/proverbs/"){D(F);B=F}}};function D(F){try{A._trackPageview(F)}catch(E){u.debug(E)}try{C._trackPageview(F)}catch(E){u.debug(E)}}}();
/*
 * proverbsList.js for pizza proverbs


	scrollTo function commented out due to incompatability with ie

 */
var proverbType=function(){var C=150;return{init:function(){$("#generic_proverb blockquote").hide();u.debug("# [proverbType init]");var D=setTimeout(A,1650)}};function A(){var D=$("#the_proverb").text().split("");$("#the_proverb").text("");$("#generic_proverb blockquote").show();$("#the_proverb").prepend('<span>"</span>');for(i=0;i<D.length;i++){var E=D[i];B(E);if(i==(D.length-1)){B('<span>"</span>')}}}function B(D){setTimeout(function(){$("#the_proverb").append(D)},C);C+=150}}();if(!window._ate){var _atd="www.addthis.com/",_atr="//s7.addthis.com/",_atn="//l.addthiscdn.com/",_euc=encodeURIComponent,_duc=decodeURIComponent,_atc={dr:0,ver:250,loc:0,enote:"",cwait:500,tamp:-1,xamp:0,camp:1,vamp:1,famp:0.02,pamp:0.2,damp:1,abf:!!window.addthis_do_ab};(function(){try{var r=window.location;if(r.protocol.indexOf("file")===0){_atr="http:"+_atr}if(r.hostname.indexOf("localhost")!=-1){_atc.loc=1}}catch(W){}var a=navigator.userAgent.toLowerCase(),V=document,AB=window,l=V.location,T={win:/windows/.test(a),xp:/windows nt 5.1/.test(a)||/windows nt 5.2/.test(a),osx:/os x/.test(a),chr:/chrome/.test(a),iph:/iphone/.test(a),ipa:/ipad/.test(a),saf:/safari/.test(a),web:/webkit/.test(a),opr:/opera/.test(a),msi:(/msie/.test(a))&&!(/opera/.test(a)),ffx:/firefox/.test(a),ff2:/firefox\/2/.test(a),ie6:/msie 6.0/.test(a),ie7:/msie 7.0/.test(a),mod:-1},AN={vst:[],rev:"79292",bro:T,show:1,dl:l,upm:!!AB.postMessage&&(""+AB.postMessage).toLowerCase().indexOf("[native code]")!==-1,camp:_atc.camp-Math.random(),xamp:_atc.xamp-Math.random(),vamp:_atc.vamp-Math.random(),pamp:_atc.pamp-Math.random(),afamp:_atc.afamp-Math.random(),ab:"-",seq:1,inst:1,wait:500,tmo:null,cvt:[],avt:null,sttm:new Date().getTime(),max:4294967295,sid:0,sub:!!window.at_sub,dbm:0,uid:null,spt:"static/r07/widget21.png",api:{},imgz:[],hash:window.location.hash};V.ce=V.createElement;V.gn=V.getElementsByTagName;window._ate=AN;var w=function(D,G,E,H){if(!D){return E}if(D instanceof Array||(D.length&&(typeof D!=="function"))){for(var C=0,B=D.length,A=D[0];C<B;A=D[++C]){E=G.call(H||D,E,A,C,D)}}else{for(var F in D){E=G.call(H||D,E,D[F],F,D)}}return E},AF=Array.prototype.slice,AD=function(A){return AF.apply(A,AF.call(arguments,1))},AE=function(A){return(""+A).replace(/(^\s+|\s+$)/g,"")},Y=function(B,A){return w(AD(arguments,1),function(C,D){return w(D,function(G,E,F){if(G){G[F]=E}return G},C)},B)},AI=function(A,B){return w(A,function(C,D,E){E=AE(E);if(E){C.push(_euc(E)+"="+_euc(AE(D)))}return C},[]).join(B||"&")},AK=function(A,B){return w((A||"").split(B||"&"),function(G,E){try{var C=E.split("="),D=AE(_duc(C[0])),H=AE(_duc(C.slice(1).join("=")));if(D){G[D]=H}}catch(F){}return G},{})},R=function(){var B=AD(arguments,0),C=B.shift(),A=B.shift();return function(){return C.apply(A,B.concat(AD(arguments,0)))}},q=function(A,C,B,D){if(!C){return }if(we){C[(A?"detach":"attach")+"Event"]("on"+B,D)}else{C[(A?"remove":"add")+"EventListener"](B,D,false)}},AJ=function(C,B,A){q(0,C,B,A)},AM=function(C,B,A){q(1,C,B,A)},AO={reduce:w,slice:AD,strip:AE,extend:Y,toKV:AI,fromKV:AK,bind:R,listen:AJ,unlisten:AM};AN.util=AO;Y(AN,AO);(function(A,M,G){var C,E=A.util;function N(O,P,f,Q,g){this.type=O;this.triggerType=P||O;this.target=f||Q;this.triggerTarget=Q||f;this.data=g||{}}E.extend(N.prototype,{constructor:N,bubbles:false,preventDefault:E.noop,stopPropagation:E.noop,clone:function(){return new this.constructor(this.type,this.triggerType,this.target,this.triggerTarget,E.extend({},this.data))}});function H(P,O){this.target=P;this.queues={};this.defaultEventType=O||N}function L(P){var O=this.queues;if(!O[P]){O[P]=[]}return O[P]}function B(P,O){this.getQueue(P).push(O)}function I(P,O){var f=this.getQueue(P),Q=f.indexOf(O);if(Q!==-1){f.splice(Q,1)}}function K(Q,f,g,O){var P=this;if(!O){setTimeout(function(){P.dispatchEvent(new P.defaultEventType(Q,Q,f,P.target,g))},10)}else{P.dispatchEvent(new P.defaultEventType(Q,Q,f,P.target,g))}}function F(P){for(var O=0,f=P.target,g=this.getQueue(P.type),Q=g.length;O<Q;O++){g[O].call(f,P.clone())}}function J(O){if(!O){return }for(var P in D){O[P]=E.bind(D[P],this)}return O}var D={constructor:H,getQueue:L,addEventListener:B,removeEventListener:I,dispatchEvent:F,fire:K,decorate:J};E.extend(H.prototype,D);A.event={PolyEvent:N,EventDispatcher:H}})(AN,AN.api,AN);AN.ed=new AN.event.EventDispatcher(AN);var AH={isBound:0,isReady:0,readyList:[],onReady:function(){if(!AH.isReady){AH.isReady=1;var B=AH.readyList.concat(window.addthis_onload||[]);for(var A=0;A<B.length;A++){B[A].call(window)}AH.readyList=[]}},addLoad:function(B){var A=AB.onload;if(typeof AB.onload!="function"){AB.onload=B}else{AB.onload=function(){if(A){A()}B()}}},bindReady:function(){if(d.isBound||_atc.xol){return }d.isBound=1;if(V.addEventListener&&!T.opr){V.addEventListener("DOMContentLoaded",d.onReady,false)}var B=window.addthis_product;if(B&&B.indexOf("f")>-1){d.onReady();return }if(T.msi&&window==top){(function(){if(d.isReady){return }try{V.documentElement.doScroll("left")}catch(C){setTimeout(arguments.callee,0);return }d.onReady()})()}if(T.opr){V.addEventListener("DOMContentLoaded",function(){if(d.isReady){return }for(var C=0;C<V.styleSheets.length;C++){if(V.styleSheets[C].disabled){setTimeout(arguments.callee,0);return }}d.onReady()},false)}if(T.saf){var A;(function(){if(d.isReady){return }if(V.readyState!="loaded"&&V.readyState!="complete"){setTimeout(arguments.callee,0);return }if(A===undefined){var E=V.gn("link");for(var D=0;D<E.length;D++){if(E[D].getAttribute("rel")=="stylesheet"){A++}}var C=V.gn("style");A+=C.length}if(V.styleSheets.length!=A){setTimeout(arguments.callee,0);return }d.onReady()})()}d.addLoad(d.onReady)},append:function(A,B){d.bindReady();if(d.isReady){A.call(window,[])}else{d.readyList.push(function(){return A.call(window,[])})}}},d=AH,S=AN;Y(AN,{plo:[],lad:function(A){AN.plo.push(A)}});Y(AN,{pub:function(){return _euc((window.addthis_config||{}).username||window.addthis_pub||"")},igv:function(B,A){if(!AB.addthis_share){AB.addthis_share={}}if(!addthis_share.url){addthis_share.url=(AB.addthis_url||B||"").split("#{").shift()}if(!addthis_share.title){addthis_share.title=(AB.addthis_title||A||"").split("#{").shift()}if(!AB.addthis_config){AB.addthis_config={username:AB.addthis_pub}}else{if(addthis_config.data_use_cookies===false){_atc.xck=1}}}});if(!_atc.ost){if(!AB.addthis_conf){AB.addthis_conf={}}for(var b in addthis_conf){_atc[b]=addthis_conf[b]}_atc.ost=1}(function(A,C,G){var E,F=document,B=A.util;A.ckv=B.fromKV(F.cookie,";");function D(H){return B.fromKV(F.cookie,";")[H]}if(!A.cookie){A.cookie={}}A.cookie.rck=D})(AN,AN.api,AN);Y(AN,{qtp:[],xtp:function(){var A=AN,B;while(B=A.qtp.pop()){A.trk(B)}},pcs:[],apc:function(A){A=A.split("-").shift();for(var B=0;B<AN.pcs.length;B++){if(AN.pcs[B]==A){return }}AN.pcs.push(A)},gat:function(){},atf:null,get_atssh:function(){var C=document,A=AN,B=C.getElementById("_atssh");if(!B){B=C.ce("div");B.style.visibility="hidden";B.id="_atssh";A.opp(B.style);C.body.insertBefore(B,C.body.firstChild)}return B},ctf:function(C){var G=document,F=window,A=AN,D,B=Math.floor(Math.random()*1000),E=A.get_atssh();if(!A.bro.msi){D=G.ce("iframe");D.id="_atssh"+B}else{if(A.bro.ie6&&!C&&G.location.protocol.indexOf("https")==0){C="javascript:''"}E.innerHTML='<iframe id="_atssh'+B+'" width="1" height="1" name="_atssh'+B+'" '+(C?'src="'+C+'"':"")+">";D=G.getElementById("_atssh"+B)}A.opp(D.style);D.frameborder=D.style.border=0;D.style.top=D.style.left=0;return D},off:function(){return Math.floor((new Date().getTime()-AN.sttm)/100).toString(16)},oms:function(B){var A=AN;if(B&&B.data&&B.data.service){if(!A.upm){if(A.dcp){return }A.dcp=1}A.trk({gen:300,sh:B.data.service})}},omp:function(A,D,C){var B={};if(A){B.sh=A}if(D){B.cm=D}if(C){B.cs=C}AN.img("sh","3",null,B)},trk:function(D){var E=AN,C=E.dr,A=(E.rev||"");if(!D){return }if(C){C=C.split("http://").pop()}D.xck=_atc.xck?1:0;D.xxl=1;D.sid=E.ssid();D.pub=E.pub();D.ssl=E.ssl||0;D.du=E.tru(E.du||E.dl.href);if(E.dt){D.dt=E.dt}if(E.cb){D.cb=E.cb}D.lng=E.lng();D.ver=_atc.ver;if(!E.upm&&E.uid){D.uid=E.uid}D.pc=E.pcs.join(",");if(C){D.dr=E.tru(C)}if(E.dh){D.dh=E.dh}if(A){D.rev=A}if(E.xfr){if(E.upm){if(E.atf){E.atf.contentWindow.postMessage(AI(D),"*")}}else{var B=E.get_atssh();base="static/r07/sh21.html"+(false?"?t="+new Date().getTime():"");if(E.atf){B.removeChild(B.firstChild)}E.atf=E.ctf();E.atf.src=_atr+base+"#"+AI(D);B.appendChild(E.atf)}}else{AN.qtp.push(D)}},img:function(B,C,A,F,D){if(!window.at_sub&&!_atc.xtr){var G=AN,E=F||{};E.evt=B;if(A){E.ext=A}G.avt=E;if(D===1){G.xmi(true)}else{G.sxm(true)}}},cuid:function(){return((AN.sttm/1000)&AN.max).toString(16)+("00000000"+(Math.floor(Math.random()*(AN.max+1))).toString(16)).slice(-8)},ssid:function(){if(AN.sid===0){AN.sid=AN.cuid()}return AN.sid},sta:function(){var A=AN;return"AT-"+(A.pub()?A.pub():"unknown")+"/-/"+A.ab+"/"+A.ssid()+"/"+(A.seq++)+(A.uid!==null?"/"+A.uid:"")},cst:function(A){return"CXNID=2000001.521545608054043907"+(A||2)+"NXC"},fcv:function(A,B){return _euc(A)+"="+_euc(B)+";"+AN.off()},cev:function(A,B){AN.cvt.push(AN.fcv(A,B));AN.sxm(true)},sxm:function(A){if(AN.tmo!==null){clearTimeout(AN.tmo)}if(A){AN.tmo=AN.sto("_ate.xmi(false)",AN.wait)}},xmi:function(C){var A=AN,F=A.dl?A.dl.hostname:"";if(A.cvt.length>0||A.avt){A.sxm(false);if(_atc.xtr){return }var B=A.avt||{};B.ce=A.cvt.join(",");A.cvt=[];A.avt=null;A.trk(B);if(C){var D=document,E=D.ce("iframe");E.id="_atf";AN.opp(E.style);D.body.appendChild(E);E=D.getElementById("_atf")}}}});Y(AN,{_rec:[],rec:function(F){if(!F){return }var E=AK(F),A=AN,G=A.atf,C=A._rec,B;if(E.ssh){A.ssh(E.ssh)}if(E.uid){A.uid=E.uid}if(E.dbm){A.dbm=E.dbm}if(E.rdy){A.xfr=1;A.xtp();return }for(var D=0;D<C.length;D++){C[D](E)}},xfr:!AN.upm||!AN.bro.ffx,ssh:function(A){AN.gssh=1;var B=window.addthis_ssh=_duc(A);AN._ssh=B.split(",")},com:function(A){if(window.parent&&window.postMessage){window.parent.postMessage(A,"*")}else{AN.ifm(A)}},ifm:function(A){if(addthis_wpl){var B=(addthis_wpl.split("#"))[0];window.parent.location.href=B+"#at"+A}return false},pmh:function(A){if(A.origin.slice(-12)==".addthis.com"){AN.rec(A.data)}}});Y(AN,{lng:function(){return window.addthis_language||(window.addthis_config||{}).ui_language||(AN.bro.msi?navigator.userLanguage:navigator.language)},iwb:function(B){var A={th:1,pl:1,sl:1,gl:1,hu:1,is:1,nb:1,se:1,su:1};return !!A[B]},ivl:function(B){var A={af:1,afr:"af",ar:1,ara:"ar",az:1,aze:"az",be:1,bye:"be",bg:1,bul:"bg",bn:1,ben:"bn",bs:1,bos:"bs",ca:1,cat:"ca",cs:1,ces:"cs",cze:"cs",cy:1,cym:"cy",da:1,dan:"da",de:1,deu:"de",ger:"de",el:1,gre:"el",ell:"ell",es:1,esl:"es",spa:"spa",et:1,est:"et",eu:1,fa:1,fas:"fa",per:"fa",fi:1,fin:"fi",fo:1,fao:"fo",fr:1,fra:"fr",fre:"fr",ga:1,gae:"ga",gdh:"ga",gl:1,glg:"gl",he:1,heb:"he",hi:1,hin:"hin",hr:1,cro:"hr",hu:1,hun:"hu",id:1,ind:"id",is:1,ice:"is",it:1,ita:"it",ja:1,jpn:"ja",ko:1,kor:"ko",ku:1,lb:1,ltz:"lb",lt:1,lit:"lt",lv:1,lav:"lv",mk:1,mac:"mk",mak:"mk",mn:1,ml:1,ms:1,msa:"ms",may:"ms",nb:1,nl:1,nla:"nl",dut:"nl",no:1,nn:1,nno:"no",oc:1,oci:"oc",pl:1,pol:"pl",pt:1,por:"pt",ro:1,ron:"ro",rum:"ro",ru:1,rus:"ru",sk:1,slk:"sk",slo:"sk",sl:1,slv:"sl",sq:1,alb:"sq",sr:1,se:1,ser:"sr",su:1,sv:1,sve:"sv",sw:1,swe:"sv",ta:1,tam:"ta",te:1,teg:"te",th:1,tha:"th",tl:1,tgl:"tl",tr:1,tur:"tr",uk:1,ukr:"uk",ur:1,urd:"ur",vi:1,vie:"vi","zh-hk":1,"chi-hk":"zh-hk","zho-hk":"zh-hk","zh-tr":1,"chi-tr":"zh-tr","zho-tr":"zh-tr","zh-tw":1,"chi-tw":"zh-tw","zho-tw":"zh-tw",zh:1,chi:"zh",zho:"zh"};if(A[B]){return A[B]}B=B.split("-").shift();if(A[B]){if(A[B]===1){return B}else{return A[B]}}return 0},gvl:function(B){var A=AN.ivl(B)||"en";if(A===1){A=B}return A},alg:function(C,D){var B=(C||AN.lng()||"en").toLowerCase(),A=AN.ivl(B);if(B.indexOf("en")!==0&&(!AN.pll||D)){if(A){if(A!==1){B=A}AN.pll=AN.ajs("static/r07/lang03/"+B+".js")}}}});Y(AN,{trim:function(B,A){try{B=B.replace(/^[\s\u3000]+|[\s\u3000]+$/g,"");if(A){B=_euc(B)}}catch(A){}return B||""},trl:[],tru:function(A,B){var C="";if(A){C=A.substr(0,300);if(C!=A){AN.trl.push(B)}}return C},sto:function(A,B){return setTimeout(A,B)},opp:function(A){A.width=A.height="1px";A.position="absolute";A.zIndex=100000},jlr:{},ajs:function(A,B){if(!AN.jlr[A]){var C=V.ce("script"),D=V.gn("head")[0]||V.documentElement;C.src=(B?"":_atr)+A;D.insertBefore(C,D.firstChild);AN.jlr[A]=1;return C}return 1},jlo:function(){try{var D=document,A=AN,E=A.lng(),C=function(G){var F=new Image();AN.imgz.push(F);F.src=G};A.alg(E);if(!A.pld){if(A.bro.ie6){C(_atr+A.spt);C(_atr+"static/t00/logo1414.gif");C(_atr+"static/t00/logo88.gif");if(window.addthis_feed){C("static/r05/feed00.gif",1)}}if(A.pll&&!window.addthis_translations){A.sto(function(){A.pld=A.ajs("static/r07/menu58.js")},10)}else{A.pld=A.ajs("static/r07/menu58.js")}}}catch(B){}},ao:function(A,C,D,F,E,B){AN.lad(["open",A,C,D,F,E,B]);AN.jlo();return false},ac:function(){},as:function(A,C,B){AN.lad(["send",A,C,B]);AN.jlo()}});(function(F,D,B){var I=document,A=1,H=["cbea","kkk","zvys","phz"];function G(K){return K.replace(/[a-zA-Z]/g,function(L){return String.fromCharCode((L<="Z"?90:122)>=(L=L.charCodeAt(0)+13)?L:L-26)})}for(var C=0;C<H.length;C++){H[C]=" "+G(H[C])+" "}function J(M){var K=0,L;M=(M||"").toLowerCase()+" ";if(!M){return K}for(var N=0;N<H.length;N++){L=H[N];if(M==L.replace(/ /g,"")||M.indexOf(L)>-1||M.indexOf(L.replace(/^ /g,""))===0){K|=A}}return K}function E(){var L=(AB.addthis_title||I.title),O=J(L),M=I.all?I.all.tags("META"):I.getElementsByTagName?I.getElementsByTagName("META"):new Array();if(M&&M.length){for(var N=0;N<M.length;N++){var P=M[N]||{},Q=(P.name||"").toLowerCase(),K=P.content;if(Q=="description"||Q=="keywords"){O|=J(K)}}}return O}if(!F.ad){F.ad={}}F.ad.cla=E})(AN,AN.api,AN);(function(D,C,B){var I,M=document,F=D.util,J=D.event.EventDispatcher,L=25,H=[];function A(O,f,P){var Q=[];function Q(){Q.push(arguments)}function N(){P[O]=f;while(Q.length){f.apply(P,Q.shift())}}Q.ready=N;return Q}function G(N){if(N&&N instanceof K){H.push(N)}for(var P=0;P<H.length;){var O=H[P];if(O&&O.test()){H.splice(P,1);K.fire("load",O,{resource:O})}else{P++}}if(H.length){setTimeout(G,L)}}function K(f,P,N){var Q=this,O=new J(Q);O.decorate(O).decorate(Q);this.ready=false;this.loading=false;this.id=f;this.url=P;if(typeof (N)==="function"){this.test=N}else{this.test=function(){return(!!_window[N])}}K.addEventListener("load",function(h){var g=h.resource;if(!g||g.id!==Q.id){return }Q.loading=false;Q.ready=true;O.fire(h.type,g,{resource:g})})}F.extend(K.prototype,{load:function(){if(this.url.substr(this.url.length-4)==".css"){var O=M.ce("link"),N=(M.gn("head")[0]||M.documentElement);O.rel="stylesheet";O.type="text/css";O.href=this.url;O.media="all";N.insertBefore(O,N.firstChild)}else{AN.ajs(this.url,1)}this.loading=true;K.monitor(this)}});var E=new J(K);E.decorate(E).decorate(K);F.extend(K,{known:{jquery:new K("jquery","//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js","jQuery"),ga:new K("ga","//www.google-analytics.com/ga.js",function(){var N=_window._gat;return !!(N&&(typeof (N._getTracker)==="function"))})},loading:H,monitor:G});D.resource={Resource:K,ApiQueueFactory:A}})(AN,AN.api,AN);var AB=window,U=AB.addthis_config||{},AG=new AN.resource.Resource("widgetcss",_atr+"static/r07/widget41.css",function(){return true});function AL(){try{if(_atc.xol&&!_atc.xcs){AG.load()}var P=AN,M=P.bro.msi,h=0,G=V.title,F=V.referer||V.referrer||"",H=l?l.href:null,L=H,j=l.hostname,f=H?H.indexOf("sms_ss"):-1,C=(AN.lng().split("-")).shift(),N=(l.href.indexOf(_atr)==-1&&!P.sub),B=V.gn("link"),Q=_atr+"static/r07/sh21.html#",E=H&&H.indexOf("https")===0?1:0,K,O,I=function(){if(!AN.pcs.length){var n=window.addthis_product||("men-"+_atc.ver);AN.pcs.push(n)}O.pc=AN.pcs.join(",")};if(window.addthis_product){AN.pcs.push(addthis_product)}for(var A=0;A<B.length;A++){var D=B[A];if(D.rel&&D.rel=="canonical"&&D.href){L=D.href}}L=L.split("#{").shift();P.igv(L,V.title||"");P.dr=P.tru(F,"fr");P.du=P.tru(L,"fp");P.dt=G=AB.addthis_share.title;P.cb=P.ad.cla();P.dh=l.hostname;P.ssl=E;O={cb:P.cb,ab:P.ab,dh:P.dh,dr:P.dr,du:P.du,dt:G,inst:P.inst,lng:P.lng(),pc:AB.addthis_product||"men",pub:P.pub(),ssl:E,sid:AN.ssid(),srd:_atc.damp,srf:_atc.famp,srp:_atc.pamp,srx:_atc.xamp,ver:_atc.ver,xck:_atc.xck||0};if(P.trl.length){O.trl=P.trl.join(",")}if(P.rev){O.rev=P.rev}if(f>-1&&H.indexOf(_atd+"book")==-1){var J=[];var m=H.substr(f);m=m.split("&").shift().split("#").shift().split("=").pop();O.sr=m;if(P.vamp>=0&&!P.sub&&m.length){J.push(P.fcv("plv",Math.round(1/_atc.vamp)));J.push(P.fcv("rsc",m));O.ce=J.join(",")}}if(P.upm){O.xd=1;if(AN.bro.ffx){O.xld=1}}if(N){if(P.upm){if(M){AN.sto(function(){I();P.atf=K=P.ctf(Q+AI(O))},AN.wait);AB.attachEvent("onmessage",P.pmh)}else{K=P.ctf();AB.addEventListener("message",P.pmh,false)}if(AN.bro.ffx){K.src=Q;AN.qtp.push(O)}else{if(!M){AN.sto(function(){I();K.src=Q+AI(O)},AN.wait)}}}else{K=P.ctf();AN.sto(function(){I();K.src=Q+AI(O)},AN.wait)}if(K){P.atf=K=P.get_atssh().appendChild(K)}}if(AB.addthis_language||U.ui_language){P.alg()}if(P.plo.length>0){P.jlo()}}catch(g){}}AN.ed.addEventListener("addthis.menu.share",AN.oms);AB._ate=S;AB._adr=d;try{var AA=V.gn("script"),p=AA[AA.length-1],Z=p.src.indexOf("#")>-1?p.src.replace(/^[^\#]+\#?/,""):p.src.replace(/^[^\?]+\??/,""),X=AK(Z);if(X.pub||X.username){AB.addthis_pub=_duc(X.pub?X.pub:X.username)}if(AB.addthis_pub&&AB.addthis_config){AB.addthis_config.username=AB.addthis_pub}if(X.domready){_atc.dr=1}if(X.async){_atc.xol=1}if(_atc.ver===120){var AC="atb"+AN.cuid();V.write('<span id="'+AC+'"></span>');AN.igv();AN.lad(["span",AC,addthis_share.url||"[url]",addthis_share.title||"[title]"])}if(AB.addthis_clickout){AN.lad(["cout"])}if(!_atc.xol&&!_atc.xcs&&U.ui_use_css!==false){AG.load()}}catch(W){if(window.console){console.log("main",W)}}AH.bindReady();AH.append(AL);(function(I,C,B){var A=document,E=function(){var P=A.gn("link"),f={};for(var O=0;O<P.length;O++){var Q=P[O];if(Q.href&&Q.rel){f[Q.rel]=Q.href}}return f},H=E(),J=function(){var O=A.location.protocol;if(O=="file:"){O="http:"}return O+"//"+_atd},F=function(){if(AN.dr){return"&pre="+_euc(AN.dr)}else{return""}},K=function(O,f,P,Q){return J()+(f?"feed.php":"bookmark.php")+"?v="+(_atc.ver)+"&winname=addthis&"+D(O,f,P,Q)+"&"+AN.cst(4)+F()+"&tt=0"},D=function(z,Q,v,h){var AR=AN.trim,n=window,y=AN.pub(),O=window._atw||{},AS=AR((v&&v.url?v.url:(O.share&&O.share.url?O.share.url:addthis_url)),1),j,f=function(AT){if(AS&&AS!=""){var AU=AS.indexOf("%23at"+AT);if(AU>-1){AS=AS.substr(0,AU)}}};if(!h){h=O.conf||{}}else{for(var x in O.conf){if(!(h[x])){h[x]=O.conf[x]}}}if(!v){v=O.share}else{for(var x in O.share){if(!(v[x])){v[x]=O.share[x]}}}j=h.services_custom;f("pro");f("opp");f("cle");f("clb");f("abc");if(AS.indexOf("addthis.com/static/r07/ab")>-1){AS=_duc(AS);AS=AS.split("&");for(var o=0;o<AS.length;o++){var AQ=AS[o].split("=");if(AQ.length==2){if(AQ[0]=="url"){AS=AR(AQ[1],1);break}}}}if(j instanceof Array){for(var o=0;o<j.length;o++){if(j[o].code==z){j=j[o];break}}}var m=((v&&v.templates&&v.templates[z])?v.templates[z]:""),g=((v&&v.modules&&v.modules[z])?v.modules[z]:""),AP=(h.product||n.addthis_product||("men-"+_atc.ver)),P="";if(v.email_vars){for(var x in v.email_vars){P+=(P==""?"":"&")+_euc(x)+"="+_euc(v.email_vars[x])}}if(O.mck>1||(O.mck==1&&z!=="e")){AP=AP.replace("men","max")}return"pub="+y+"&source="+AP+"&lng="+(AN.lng()||"xx")+"&s="+z+(h.ui_508_compliant?"&u508=1":"")+(Q?"&h1="+AR((v.feed||v.url).replace("feed://",""),1)+"&t1=":"&url="+AS+"&title=")+AR(v.title||n.addthis_title,1)+(_atc.ver<200?"&logo="+AR(n.addthis_logo,1)+"&logobg="+AR(n.addthis_logo_background,1)+"&logocolor="+AR(n.addthis_logo_color,1):"")+"&ate="+AN.sta()+(window.addthis_ssh&&addthis_ssh.indexOf(z)>-1?"&ips=1":"")+(AN.uid?"&uid="+_euc(AN.uid):"")+(v.email_template?"&email_template="+_euc(v.email_template):"")+(P?"&email_vars="+_euc(P):"")+(v.description?"&description="+AR(v.description,1):"")+(v.html?"&html="+AR(v.html,1):(v.content?"&html="+AR(v.content,1):""))+(v.screenshot?"&screenshot="+AR(v.screenshot,1):"")+(v.swfurl?"&swfurl="+AR(v.swfurl,1):"")+(v.iframeurl?"&iframeurl="+AR(v.iframeurl,1):"")+(v.width?"&width="+v.width:"")+(v.height?"&height="+v.height:"")+(h.data_track_p32?"&p32="+h.data_track_p32:"")+(h.data_track_clickback||h.data_track_linkback||!y||y=="AddThis"?"&sms_ss=1":"")+((j&&j.url)?"&acn="+_euc(j.name)+"&acc="+_euc(j.code)+"&acu="+_euc(j.url):"")+(m?"&template="+AR(m,1):"")+(g?"&module="+AR(g,1):"")+(h.ui_cobrand?"&ui_cobrand="+AR(h.ui_cobrand,1):"")+(h.ui_header_color?"&ui_header_color="+AR(h.ui_header_color,1):"")+(h.ui_header_background?"&ui_header_background="+AR(h.ui_header_background,1):"")},N=function(O,Q){var P=AN.pub();return"mailto:?subject="+_euc(O.title?O.title:O.url)+"&body="+_euc(O.title?O.title:"")+(O.title?"%0D%0A":"")+_euc(O.url+(Q.data_track_clickback||Q.data_track_linkback||!P||P=="AddThis"?((O.url.indexOf("?")>-1)?"&":"?")+"sms_ss=mailto":""))+"%0D%0A%0D%0AShared via AddThis.com"},G=[],L=function(g,f,O,P){var Q;if(g=="email"){Q=K(O,P)}else{Q=K(g,f,O,P)}G.push(AN.ajs(Q,1))},M=function(O,P){return J()+"tellfriend.php?&fromname=aaa&fromemail="+_euc(P.from)+"&frommenu=1&tofriend="+_euc(P.to)+(O.email_template?"&template="+_euc(O.email_template):"")+(P.vars?"&vars="+_euc(P.vars):"")+(window.addthis_ssh.indexOf("email")>-1?"&ips=1":"")+"&lng="+(AN.lng()||"xx")+"&note="+_euc(P.note)+"&"+D("e")};I.share={uadd:D,genurl:K,geneurl:M,genieu:N,svcurl:J,track:L,links:H}})(AN,AN.api,AN)})();function addthis_open(){if(typeof iconf=="string"){iconf=null}return _ate.ao.apply(_ate,arguments)}function addthis_close(){_ate.ac()}function addthis_sendto(){_ate.as.apply(_ate,arguments);return false}if(_atc.dr){_adr.onReady()}}else{_ate.inst++}if(_atc.abf){addthis_open(document.getElementById("ab"),"emailab",window.addthis_url||"[URL]",window.addthis_title||"[TITLE]")}if(!window.addthis||window.addthis.nodeType!==undefined){window.addthis=(function(){var G={aim:"AIM",a1webmarks:"A1&#8209;Webmarks",aim:"AIM Share",amazonwishlist:"Amazon",aolmail:"AOL Mail",aviary:"Aviary Capture",domaintoolswhois:"Whois Lookup",googlereader:"Google Reader",googletranslate:"Google Translate",linkagogo:"Link-a-Gogo",meneame:"Men&eacute;ame",misterwong:"Mister Wong",mailto:"Email App",myaol:"myAOL",myspace:"MySpace",readitlater:"Read It Later",stumbleupon:"StumbleUpon",typepad:"TypePad",wordpress:"WordPress",yahoobkm:"Y! Bookmarks",yahoomail:"Y! Mail"},E=document,H=E.gn("body").item(0),F=_ate.util.bind,I=_ate.ed,J=function(M,N){var L;if(window._atw&&_atw.list){L=_atw.list[M]}else{if(G[M]){L=G[M]}else{L=(N?M:(M.substr(0,1).toUpperCase()+M.substr(1)))}}return(L||"").replace(/&nbsp;/g," ")},B=function(P,Q,S,T,R){Q=Q.toUpperCase();var L=(P==H&&addthis.cache[Q]?addthis.cache[Q]:(P||H||E.body).getElementsByTagName(Q)),M=[],U,N;if(P==H){addthis.cache[Q]=L}if(R){for(U=0;U<L.length;U++){N=L[U];if(N.className.indexOf(S)>-1){M.push(N)}}}else{S=S.replace(/\-/g,"\\-");var O=new RegExp("(^|\\s)"+S+(T?"\\w*":"")+"(\\s|$)");for(U=0;U<L.length;U++){N=L[U];if(O.test(N.className)){M.push(N)}}}return(M)},A=E.getElementsByClassname||B;function C(L){if(typeof L=="string"){var M=L.substr(0,1);if(M=="#"){L=E.getElementById(L.substr(1))}else{if(M=="."){L=A(H,"*",L.substr(1))}else{}}}if(!L){L=[]}else{if(!(L instanceof Array)){L=[L]}}return L}function K(M,L){return function(){addthis.plo.push({call:M,args:arguments,ns:L})}}function D(M){var N=this,L=this.queue=[];this.name=M;this.call=function(){L.push(arguments)};this.call.queuer=this;this.flush=function(O,P){for(var Q=0;Q<L.length;Q++){O.apply(P||N,L[Q])}return O}}return{ost:0,cache:{},plo:[],links:[],ems:[],init:_adr.onReady,_Queuer:D,_queueFor:K,_select:C,_gebcn:B,button:K("button"),toolbox:K("toolbox"),update:K("update"),util:{getServiceName:J},addEventListener:F(_ate.ed.addEventListener,_ate.ed),removeEventListener:F(_ate.ed.removeEventListener,_ate.ed)}})()}_adr.append((function(){if(!window.addthis.ost){_ate.extend(addthis,_ate.api);var d=document,u=undefined,w=window,unaccent=function(s){if(s.indexOf("&")>-1){s=s.replace(/&([aeiou]).+;/g,"$1")}return s},customServices={},globalConfig=w.addthis_config,globalShare=w.addthis_share,upConfig={},upShare={},body=d.gn("body").item(0),mrg=function(o,n){if(n&&o!==n){for(var k in n){if(o[k]===u){o[k]=n[k]}}}},addEvents=function(o,ss,au){var oldclick=o.onclick||function(){},genshare=function(){_ate.ed.fire("addthis.menu.share",window.addthis||{},{service:ss,url:o.share.url})};if(o.conf.data_ga_tracker||addthis_config.data_ga_tracker||o.conf.data_ga_property||addthis_config.data_ga_property){o.onclick=function(){_ate.gat(ss,au,o.conf,o.share);genshare();oldclick()}}else{o.onclick=function(){genshare();oldclick()}}},getFollowUrl=function(ss,userid){var urls={googlebuzz:"http://www.google.com/profiles/%s",youtube:"http://www.youtube.com/user/%s",facebook:"http://www.facebook.com/profile.php?id=%s",facebook_url:"http://www.facebook.com/%s",rss:"%s",flickr:"http://www.flickr.com/photos/%s",twitter:"http://twitter.com/%s",linkedin:"http://www.linkedin.com/in/%s"};if(ss=="facebook"&&isNaN(parseInt(userid))){ss="facebook_url"}return(urls[ss]||"").replace("%s",userid)||""},registerProductCode=function(o){var opc=(o.parentNode||{}).className||"",pc=o.conf&&o.conf.product&&opc.indexOf("toolbox")==-1?o.conf.product:"tbx"+(o.className.indexOf("32x32")>-1||opc.indexOf("32x32")>-1?"32":"")+"-"+_atc.ver;_ate.apc(pc);return pc},rpl=function(o,n){var r={};for(var k in o){if(n[k]){r[k]=n[k]}else{r[k]=o[k]}}return r},addthis=window.addthis,genieu=function(share){return"mailto:?subject="+_euc(share.title?share.title:"%20")+"&body="+_euc(share.title?share.title:"")+(share.title?"%0D%0A":"")+_euc(share.url)+"%0D%0A%0D%0AShared via AddThis.com"},f_title={rss:"Subscribe via"},b_title={email:"Email",mailto:"Email",print:"Print",favorites:"Save to Favorites",twitter:"Tweet This",digg:"Digg This",more:"View more services"},json={email_vars:1,modules:1,templates:1,services_custom:1},nosend={feed:1,more:1,email:1,mailto:1},nowindow={feed:1,email:1,mailto:1,print:1,more:1,favorites:1},_uniquify=function(r){var a=[];var l=r.length;for(var i=0;i<l;i++){for(var j=i+1;j<l;j++){if(r[i]===r[j]){j=++i}}a.push(r[i])}return a},_makeButton=function(w,h,alt,url){var img=d.ce("img");img.width=w;img.height=h;img.border=0;img.alt=alt;img.src=url;return img},_parseThirdPartyAttributes=function(el,prefix){var key,attr=[],rv={};for(var i=0;i<el.attributes.length;i++){key=el.attributes[i];attr=key.name.split(prefix+":");if(attr.length==2){rv[attr.pop()]=key.value}}return rv},_parseAttributes=function(el,overrides,childWins){var overrides=overrides||{},rv={},at_attr=_parseThirdPartyAttributes(el,"addthis");for(var k in overrides){rv[k]=overrides[k]}for(var k in at_attr){if(overrides[k]&&!childWins){rv[k]=overrides[k]}else{var v=at_attr[k];if(v){rv[k]=v}else{if(overrides[k]){rv[k]=overrides[k]}}if(rv[k]==="true"){rv[k]=true}else{if(rv[k]==="false"){rv[k]=false}}}if(rv[k]!==undefined&&json[k]&&(typeof rv[k]=="string")){eval("var e = "+rv[k]);rv[k]=e}}return rv},_processCustomServices=function(conf){var acs=(conf||{}).services_custom;if(!acs){return }if(!(acs instanceof Array)){acs=[acs]}for(var i=0;i<acs.length;i++){var service=acs[i];if(service.name&&service.icon&&service.url){service.code=service.url=service.url.replace(/ /g,"");if(service.code.indexOf("http")===0){service.code=service.code.substr((service.code.indexOf("https")===0?8:7))}service.code=service.code.split("?").shift().split("/").shift().toLowerCase();customServices[service.code]=service}}},_select=addthis._select,_getCustomService=function(ss,conf){return customServices[ss]||{}},_getATtributes=function(el,config,share,childWins){var rv={conf:config||{},share:share||{}};rv.conf=_parseAttributes(el,config,childWins);rv.share=_parseAttributes(el,share,childWins);return rv},_render=function(what,conf,attrs){_ate.igv();if(what){conf=conf||{};attrs=attrs||{};var config=conf.conf||globalConfig,share=conf.share||globalShare,onmouseover=attrs.onmouseover,onmouseout=attrs.onmouseout,onclick=attrs.onclick,internal=attrs.internal,follow=attrs.follow,ss=attrs.singleservice;if(ss){if(onclick===u){onclick=nosend[ss]?function(el,config,share){var s=rpl(share,upShare);return addthis_open(el,ss,s.url,s.title,rpl(config,upConfig),s)}:nowindow[ss]?function(el,config,share){var s=rpl(share,upShare);return addthis_sendto(ss,rpl(config,upConfig),s)}:null}}else{if(!attrs.noevents){if(!attrs.nohover){if(onmouseover===u){onmouseover=function(el,config,share){return addthis_open(el,"",null,null,config,share)}}if(onmouseout===u){onmouseout=function(el){return addthis_close()}}if(onclick===u){onclick=function(el,config,share){return addthis_sendto("more",config,share)}}}else{if(onclick===u){onclick=function(el,config,share){return addthis_open(el,"more",null,null,config,share)}}}}}what=_select(what);for(var i=0;i<what.length;i++){var o=what[i],oattr=_getATtributes(o,config,share,true)||{};mrg(oattr.conf,globalConfig);mrg(oattr.share,globalShare);o.conf=oattr.conf;o.share=oattr.share;if(o.conf.ui_language){_ate.alg(o.conf.ui_language)}_processCustomServices(o.conf);if(ss){o.conf.product=registerProductCode(o)}if((!o.conf||!o.conf.ui_click)&&!_ate.bro.ipa){if(onmouseover){o.onmouseover=function(){return onmouseover(this,this.conf,this.share)}}if(onmouseout){o.onmouseout=function(){return onmouseout(this)}}if(onclick){o.onclick=function(){return onclick(this,this.conf,this.share)}}}else{if(onclick){if(ss){o.onclick=function(){return onclick(this,this.conf,this.share)}}else{o.onclick=function(){return addthis_open(this,"",null,null,this.conf,this.share)}}}}if(o.tagName.toLowerCase()=="a"){if(ss){var customService=_getCustomService(ss,o.conf);if(customService&&customService.code&&customService.icon){if(o.firstChild&&o.firstChild.className.indexOf("at300bs")>-1){o.firstChild.style.background="url("+customService.icon+") no-repeat top left"}}if(!nowindow[ss]){var url=o.share.url||addthis_share.url;if(attrs.follow){o.href=url;o.onclick=function(){_ate.share.track(ss,1,o.share,o.conf)};if(o.children&&o.children.length==1&&o.parentNode&&o.parentNode.className.indexOf("toolbox")>-1){var sp=d.ce("span");sp.className="addthis_follow_label";sp.innerHTML=addthis.util.getServiceName(ss);o.appendChild(sp)}}else{o.href=_ate.share.genurl(ss,0,o.share,o.conf)}addEvents(o,ss,url);o.target="_blank";addthis.links.push(o)}else{if(ss=="mailto"||(ss=="email"&&(o.conf.ui_use_mailto||_ate.bro.iph||_ate.bro.ipa))){o.onclick=function(){(new Image()).src=_ate.share.genurl("mailto",0,o.share,o.config)};o.href=genieu(o.share);addEvents(o,ss,url);addthis.ems.push(o)}}if(!o.title||o.at_titled){o.title=unaccent((attrs.follow?(f_title[ss]?f_title[ss]:"Follow on "):(b_title[ss]?b_title[ss]:"Send to "))+addthis.util.getServiceName(ss,!customService));o.at_titled=1}}else{if(o.conf.product&&o.parentNode.className.indexOf("toolbox")==-1){registerProductCode(o)}}}var app;switch(internal){case"img":if(!o.hasChildNodes()){var lang=(o.conf.ui_language||_ate.lng()).split("-").shift(),validatedLang=_ate.ivl(lang);if(!validatedLang){lang="en"}else{if(validatedLang!==1){lang=validatedLang}}app=_makeButton(_ate.iwb(lang)?150:125,16,"Share",_atr+"static/btn/v2/lg-share-"+lang.substr(0,2)+".gif")}break}if(app){o.appendChild(app)}}}},buttons=addthis._gebcn(body,"A","addthis_button_",true,true),_renderToolbox=function(collection,config,share,reprocess){for(var i=0;i<collection.length;i++){var b=collection[i];if(b==null){continue}if(reprocess!==false||!b.ost){var attr=_getATtributes(b,config,share,true),hc=0,a="at300",c=b.className||"",passthrough="",s=c.match(/addthis_button_([\w\.]+)(?:\s|$)/),options={},sv=s&&s.length?s[1]:0;mrg(attr.conf,globalConfig);mrg(attr.share,globalShare);if(sv){if(sv==="tweetmeme"){var tm_attr=_parseThirdPartyAttributes(b,"tm"),tmw=50,tmh=61;passthrough=_ate.util.toKV(tm_attr);if(tm_attr.style==="compact"){tmw=95;tmh=25}b.innerHTML='<iframe frameborder="0" width="'+tmw+'" height="'+tmh+'" scrolling="no" allowTransparency="true" scrollbars="no"'+(_ate.bro.ie6?" src=\"javascript:''\"":"")+"></iframe>";var tm=b.firstChild;tm.src="//api.tweetmeme.com/button.js?url="+_euc(attr.share.url)+"&"+passthrough}else{if(sv==="facebook_like"){var fblike;passthrough=_ate.util.toKV(_parseThirdPartyAttributes(b,"fb:like"));if(!_ate.bro.msi){fblike=d.ce("iframe")}else{b.innerHTML='<iframe frameborder="0" scrolling="no" allowTransparency="true" scrollbars="no"'+(_ate.bro.ie6?" src=\"javascript:''\"":"")+"></iframe>";fblike=b.firstChild}fblike.style.overflow="hidden";fblike.style.border="none";fblike.style.borderWidth="0px";fblike.style.width="82px";fblike.style.height="25px";fblike.style.marginTop="-2px";fblike.src="//www.facebook.com/plugins/like.php?href="+_euc(attr.share.url)+"&layout=button_count&show_faces=false&width=100&action=like&font=arial&"+passthrough;if(!_ate.bro.msi){b.appendChild(fblike)}}else{if(sv.indexOf("preferred")>-1){if(b._iss){continue}registerProductCode(b);s=c.match(/addthis_button_preferred_([0-9]+)(?:\s|$)/);var svidx=((s&&s.length)?Math.min(12,Math.max(1,parseInt(s[1]))):1)-1;if(window._atw){if(!b.parentNode.services){b.parentNode.services={}}var excl=_atw.conf.services_exclude,locopts=_atw.loc,parentServices=b.parentNode.services,opts=_uniquify(addthis_options.replace(",more","").split(",").concat(locopts.split(",")));do{sv=opts[svidx++]}while((excl.indexOf(sv)>-1||parentServices[sv])&&svidx<opts.length);if(parentServices[sv]){for(var k in _atw.list){if(!parentServices[k]&&excl.indexOf(k)==-1){sv=k;break}}}b._ips=1;if(b.className.indexOf(sv)==-1){b.className+=" addthis_button_"+sv;b._iss=1}b.parentNode.services[sv]=1}else{_ate.alg(attr.conf.ui_language||window.addthis_language);_ate.plo.unshift(["deco",_renderToolbox,[b],config,share,true]);if(_ate.gssh){_ate.pld=_ate.ajs("static/r07/menu58.js")}else{if(!_ate.pld){_ate.pld=1;var loadmenu=function(){_ate.pld=_ate.ajs("static/r07/menu58.js")};if(_ate.upm){_ate._rec.push(function(data){if(data.ssh){loadmenu()}});_ate.sto(loadmenu,500)}else{loadmenu()}}}continue}}else{if(sv.indexOf("follow")>-1){sv=sv.split("_follow").shift();options.follow=true;attr.share.url=getFollowUrl(sv,attr.share.userid)}}}}if(!b.childNodes.length){var sp=d.ce("span");b.appendChild(sp);sp.className=a+"bs at15t_"+sv}else{if(b.childNodes.length==1){var cn=b.childNodes[0];if(cn.nodeType==3){var sp=d.ce("span"),tv=cn.nodeValue;b.insertBefore(sp,cn);sp.className=a+"bs at15t_"+sv}}else{hc=1}}if(sv==="compact"){if(!hc&&c.indexOf(a)==-1){b.className+=" "+a+"m"}if(!attr.conf.product){attr.conf.product="men-"+_atc.ver}}else{if(sv==="expanded"){if(!hc&&c.indexOf(a)==-1){b.className+=" "+a+"m"}if(!attr.conf.product){attr.conf.product="men-"+_atc.ver}options.nohover=true;options.singleservice="more"}else{if((b.parentNode.className||"").indexOf("toolbox")>-1){if(!b.parentNode.services){b.parentNode.services={}}b.parentNode.services[sv]=1}if(!hc&&c.indexOf(a)==-1){b.className+=" "+a+"b"}options.singleservice=sv}}if(b._ips){options.issh=true}_render([b],attr,options);b.ost=1;registerProductCode(b)}}}},gat=function(s,au,conf,share){var pageTracker=conf.data_ga_tracker,propertyId=conf.data_ga_property;if(propertyId&&typeof (window._gat)=="object"){pageTracker=_gat._getTracker(propertyId)}if(pageTracker&&typeof (pageTracker)=="string"){pageTracker=window[pageTracker]}if(pageTracker&&typeof (pageTracker)=="object"){var gaUrl=au||(share||{}).url||location.href;if(gaUrl.toLowerCase().replace("https","http").indexOf("http%3a%2f%2f")==0){gaUrl=_duc(gaUrl)}try{pageTracker._trackEvent("addthis",s,gaUrl)}catch(e){try{pageTracker._initData();pageTracker._trackEvent("addthis",s,gaUrl)}catch(e){}}}};_ate.gat=gat;addthis.update=function(which,what,value){if(which=="share"){if(!window.addthis_share){window.addthis_share={}}window.addthis_share[what]=value;upShare[what]=value;for(var i in addthis.links){var o=addthis.links[i],rx=new RegExp("&"+what+"=(.*)&"),ns="&"+what+"="+_euc(value)+"&";o.href=o.href.replace(rx,ns);if(o.href.indexOf(what)==-1){o.href+=ns}}for(var i in addthis.ems){var o=addthis.ems[i];o.href=genieu(addthis_share)}}else{if(which=="config"){if(!window.addthis_config){window.addthis_config={}}window.addthis_config[what]=value;upConfig[what]=value}}};addthis._render=_render;var rsrcs=[new _ate.resource.Resource("countercss",_atr+"static/r07/counter41.css",function(){return true}),new _ate.resource.Resource("counter",_atr+"js/250/plugin.sharecounter.js",function(){return window.addthis.counter.ost})];if(!w.JSON||!w.JSON.stringify){rsrcs.unshift(new _ate.resource.Resource("json2",_atr+"static/r07/json2.js",function(){return w.JSON&&w.JSON.stringify}))}addthis.counter=function(what,config,share){if(what){what=addthis._select(what);if(what.length){for(var k in rsrcs){rsrcs[k].load()}}}};addthis.button=function(what,config,share){config=config||{};if(!config.product){config.product="men-"+_atc.ver}_render(what,{conf:config,share:share},{internal:"img"})};addthis.toolbox=function(what,config,share){var toolboxes=_select(what);for(var i=0;i<toolboxes.length;i++){var tb=toolboxes[i],attr=_getATtributes(tb,config,share),sp=d.ce("div"),c;if(!attr.conf.product){attr.conf.product="tbx"+(tb.className.indexOf("32x32")>-1?"32":"")+"-"+_atc.ver}if(tb){c=tb.getElementsByTagName("a");if(c){_renderToolbox(c,attr.conf,attr.share)}tb.appendChild(sp)}sp.className="atclear"}};addthis.ready=function(){var at=addthis,a=".addthis_";if(at.ost){return }at.ost=1;addthis.toolbox(a+"toolbox");addthis.button(a+"button");addthis.counter(a+"counter");_renderToolbox(buttons,null,null,false);_ate.ed.fire("addthis.ready",addthis);for(var i=0,plo=at.plo,q;i<plo.length;i++){q=plo[i];(q.ns?at[q.ns]:at)[q.call].apply(this,q.args)}};addthis.util.getAttributes=_getATtributes;window.addthis=addthis;window.addthis.ready()}}));_ate.extend(addthis,{user:(function(){var F=_ate,H=addthis,E={},G=0,B;function C(I,J){return F.reduce(["getID","getServiceShareHistory"],I,J)}function D(I,J){return function(K){setTimeout(function(){K(F[I]||J)},0)}}function A(){if(G){return }if(B!==null){clearTimeout(B)}B=null;G=1;C(function(J,I,K){E[I]=E[I].queuer.flush(D.apply(H,J[K]),H);return J},[["uid",""],["_ssh",[]]])}F._rec.push(A);B=setTimeout(A,5000);E.getPreferredServices=function(I){if(window._atw){I(addthis_options.split(","))}else{F.plo.push(["pref",I]);_ate.alg();if(F.gssh){F.pld=F.ajs("static/r07/menu58.js")}else{if(!F.pld){F.pld=1;_ate._rec.push(function(J){if(J.ssh){_ate.pld=_ate.ajs("static/r07/menu58.js")}})}}}};return C(function(J,I){J[I]=(new H._Queuer(I)).call;return J},E)})()});
/*
 * u.js for pizza proverbs
 */
var u=function(){var B="";var A="";return{debug:function(C){if(window.console&&window.console.log){window.console.log(C)}},getLikeButton:function(C){var D=escape(C);return'<iframe src="http://www.facebook.com/plugins/like.php?href='+D+'&amp;layout=button_count&amp;show_faces=false&amp;width=77&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>'},getBaseDomain:function(){return B},setBaseDomain:function(C){B=C},getMediaDomain:function(){return A},setMediaDomain:function(C){A=C},error_check:function(D){var C=$(D).find("status").text();if(C=="FAILURE"){return false}else{return true}},show_error:function(C){$.fancybox("<p>"+C+"</p>",{autoDimensions:true,transitionIn:"none",transitionOut:"none"})},validateEmail:function(D){var C=D;var E=/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9]+[a-zA-Z0-9.-]+[a-zA-Z0-9]+\.[a-z]{2,4}$/;if(E.test(C)&&C.substring(0,1)!="."&&C.substring(0,1)!="_"&&C.substring(0,1)!="-"){return true}else{return false}},toly:function(C,E){var D="http://to.ly/api.php?json=1&longurl="+encodeURIComponent(C)+"&callback=?";$.getJSON(D,function(F){E&&E(F.shorturl)})}}}();
/*
 * main.js for pizza proverbs
 */
var main=function(){return{init:function(E,F){$(document).ready(function(){u.setBaseDomain(E);u.setMediaDomain(F);B();t.init();t.trackPage("/proverbs/");proverbsUI.init();proverbSearch.init();proverbList.init();proverbSort.init();proverbSubmit.init();proverbType.init();signup.init();A(E);u.debug("# [main init]");C()})}};function B(){var G=window.location.href;if(G.split("?").length>1){D();return }var E=[u.getMediaDomain()+"/images/bkg.landscape.gif",u.getMediaDomain()+"/images/bkg.header_content.gif",u.getMediaDomain()+"/images/bkg.header.gif",u.getMediaDomain()+"/images/bkg.ul-scroll.gif",u.getMediaDomain()+"/images/bkg.div-scroll-bottom.gif"];$(".loader").css({display:"block",height:$(window).height()+"px"});$("#wrapper").css("display","none");$(".footer").css("display","none");if($.browser.msie){var F=setTimeout(function(){D()},200);return }(function(H){var I=[];H.extend({preload:function(O,M){var L=H.extend({init:function(P,Q){},loaded:function(P,Q,R){},loaded_all:function(P,Q){}},M);var N=O.length;var J=0;L.init(0,N);for(var K in O){I.push(H("<img />").attr("src",O[K]).load(function(){J++;L.loaded(this,J,N);if(J==N){L.loaded_all(J,N)}}))}}})})(jQuery);$.preload(E,{init:function(H,I){$("#indicator").html("Loaded: "+H+"/"+I)},loaded:function(H,I,J){},loaded_all:function(H,I){D()}})}function D(){$(".js body").css("display","block");setTimeout("$('.loader').fadeOut(500)",1300);setTimeout("$('.siteWrapper').fadeIn(500)",1500);setTimeout("$('#wrapper').fadeIn(500)",2000);setTimeout("$('.footer').css('display','block')",2000)}function A(E){switch(E){case"pizzaproverbs":case"dominos.pizzaproverbs":u.debug("# [app dev}");JQbook.init({appID:"132133166821443"});break;case"pizzaproverbs.dominos.cpbadvertising.com":case"pizzaproverbssecure.dominos.cpbadvertising.com":case"pizzaproverbsmedia.dominos.cpbadvertising.com":u.debug("# [app dev}");JQbook.init({appID:"132133166821443"});break;case"domstage.pizzaproverbs.com":u.debug("# [app stage}");JQbook.init({appID:"132302936809161"});break;case"www.pizzaproverbs.com":u.debug("# [app prod}");JQbook.init({appID:"142552279095580"});break;case"pizzaproverbs.com":u.debug("# [app prod}");JQbook.init({appID:"142552279095580"});break}}function C(){$("a[rel*=external]").live("click",function(){window.open(this.href);return(false)})}}();
