/* KickApps compressed/core.js [Tue Jun 24 12:12:56 EDT 2008] */


/* engine.js */

function DWREngine(){}DWREngine.setErrorHandler=function(handler){DWREngine._errorHandler=handler;};DWREngine.setWarningHandler=function(handler){DWREngine._warningHandler=handler;};DWREngine.setTimeout=function(timeout){DWREngine._timeout=timeout;};DWREngine.setPreHook=function(handler){DWREngine._preHook=handler;};DWREngine.setPostHook=function(handler){DWREngine._postHook=handler;};DWREngine.XMLHttpRequest=1;DWREngine.IFrame=2;DWREngine.setMethod=function(newmethod){if(newmethod!=DWREngine.XMLHttpRequest&&newmethod!=DWREngine.IFrame){DWREngine._handleError("Remoting method must be one of DWREngine.XMLHttpRequest or DWREngine.IFrame");return ;}DWREngine._method=newmethod;};DWREngine.setVerb=function(verb){if(verb!="GET"&&verb!="POST"){DWREngine._handleError("Remoting verb must be one of GET or POST");return ;}DWREngine._verb=verb;};DWREngine.setOrdered=function(ordered){DWREngine._ordered=ordered;};DWREngine.setAsync=function(async){DWREngine._async=async;};DWREngine.defaultMessageHandler=function(message){if(typeof message=="object"&&message.name=="Error"&&message.description){}else{}};DWREngine.beginBatch=function(){if(DWREngine._batch){DWREngine._handleError("Batch already started.");return ;}DWREngine._batch={};DWREngine._batch.map={};DWREngine._batch.paramCount=0;DWREngine._batch.map.callCount=0;DWREngine._batch.ids=[];DWREngine._batch.preHooks=[];DWREngine._batch.postHooks=[];};DWREngine.endBatch=function(options){var batch=DWREngine._batch;if(batch==null){DWREngine._handleError("No batch in progress.");return ;}if(options&&options.preHook){batch.preHooks.unshift(options.preHook);}if(options&&options.postHook){batch.postHooks.push(options.postHook);}if(DWREngine._preHook){batch.preHooks.unshift(DWREngine._preHook);}if(DWREngine._postHook){batch.postHooks.push(DWREngine._postHook);}if(batch.method==null){batch.method=DWREngine._method;}if(batch.verb==null){batch.verb=DWREngine._verb;}if(batch.async==null){batch.async=DWREngine._async;}if(batch.timeout==null){batch.timeout=DWREngine._timeout;}batch.completed=false;DWREngine._batch=null;if(!DWREngine._ordered){DWREngine._sendData(batch);DWREngine._batches[DWREngine._batches.length]=batch;}else{if(DWREngine._batches.length==0){DWREngine._sendData(batch);DWREngine._batches[DWREngine._batches.length]=batch;}else{DWREngine._batchQueue[DWREngine._batchQueue.length]=batch;}}};DWREngine._errorHandler=DWREngine.defaultMessageHandler;DWREngine._warningHandler=DWREngine.defaultMessageHandler;DWREngine._preHook=null;DWREngine._postHook=null;DWREngine._batches=[];DWREngine._batchQueue=[];DWREngine._handlersMap={};DWREngine._method=DWREngine.XMLHttpRequest;DWREngine._verb="POST";DWREngine._ordered=false;DWREngine._async=true;DWREngine._batch=null;DWREngine._timeout=0;DWREngine._DOMDocument=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.4.0","Msxml2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"];DWREngine._XMLHTTP=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];DWREngine._execute=function(path,scriptName,methodName,vararg_params){var singleShot=false;if(DWREngine._batch==null){DWREngine.beginBatch();singleShot=true;}var args=[];for(var i=0;i<arguments.length-3;i++){args[i]=arguments[i+3];}if(DWREngine._batch.path==null){DWREngine._batch.path=path;}else{if(DWREngine._batch.path!=path){DWREngine._handleError("Can't batch requests to multiple DWR Servlets.");return ;}}var params;var callData;var firstArg=args[0];var lastArg=args[args.length-1];if(typeof firstArg=="function"){callData={callback:args.shift()};params=args;}else{if(typeof lastArg=="function"){callData={callback:args.pop()};params=args;}else{if(typeof lastArg=="object"&&lastArg.callback!=null&&typeof lastArg.callback=="function"){callData=args.pop();params=args;}else{if(firstArg==null){if(lastArg==null&&args.length>2){if(DWREngine._warningHandler){DWREngine._warningHandler("Ambiguous nulls at start and end of parameter list. Which is the callback function?");
}}callData={callback:args.shift()};params=args;}else{if(lastArg==null){callData={callback:args.pop()};params=args;}else{if(DWREngine._warningHandler){DWREngine._warningHandler("Missing callback function or metadata object.");}return ;}}}}}var random=Math.floor(Math.random()*10001);var id=(random+"_"+new Date().getTime()).toString();var prefix="c"+DWREngine._batch.map.callCount+"-";DWREngine._batch.ids.push(id);if(callData.method!=null){DWREngine._batch.method=callData.method;delete callData.method;}if(callData.verb!=null){DWREngine._batch.verb=callData.verb;delete callData.verb;}if(callData.async!=null){DWREngine._batch.async=callData.async;delete callData.async;}if(callData.timeout!=null){DWREngine._batch.timeout=callData.timeout;delete callData.timeout;}if(callData.preHook!=null){DWREngine._batch.preHooks.unshift(callData.preHook);delete callData.preHook;}if(callData.postHook!=null){DWREngine._batch.postHooks.push(callData.postHook);delete callData.postHook;}if(callData.errorHandler==null){callData.errorHandler=DWREngine._errorHandler;}if(callData.warningHandler==null){callData.warningHandler=DWREngine._warningHandler;}DWREngine._handlersMap[id]=callData;DWREngine._batch.map[prefix+"scriptName"]=scriptName;DWREngine._batch.map[prefix+"methodName"]=methodName;DWREngine._batch.map[prefix+"id"]=id;DWREngine._addSerializeFunctions();for(i=0;i<params.length;i++){DWREngine._serializeAll(DWREngine._batch,[],params[i],prefix+"param"+i);}DWREngine._removeSerializeFunctions();DWREngine._batch.map.callCount++;if(singleShot){DWREngine.endBatch();}};DWREngine._sendData=function(batch){if(batch.map.callCount==0){return ;}for(var i=0;i<batch.preHooks.length;i++){batch.preHooks[i]();}batch.preHooks=null;if(batch.timeout&&batch.timeout!=0){batch.interval=setInterval(function(){clearInterval(batch.interval);DWREngine._abortRequest(batch);},batch.timeout);}var statsInfo;if(batch.map.callCount==1){statsInfo=batch.map["c0-scriptName"]+"."+batch.map["c0-methodName"]+".dwr";}else{statsInfo="Multiple."+batch.map.callCount+".dwr";}if(batch.method==DWREngine.XMLHttpRequest){if(window.XMLHttpRequest){batch.req=new XMLHttpRequest();}else{if(window.ActiveXObject&&!(navigator.userAgent.indexOf("Mac")>=0&&navigator.userAgent.indexOf("MSIE")>=0)){batch.req=DWREngine._newActiveXObject(DWREngine._XMLHTTP);}}}var query="";var prop;if(batch.req){batch.map.xml="true";if(batch.async){batch.req.onreadystatechange=function(){DWREngine._stateChange(batch);};}var indexSafari=navigator.userAgent.indexOf("Safari/");if(indexSafari>=0){var version=navigator.userAgent.substring(indexSafari+7);var verNum=parseInt(version,10);if(verNum<400){batch.verb=="GET";}}if(batch.verb=="GET"){batch.map.callCount=""+batch.map.callCount;for(prop in batch.map){var qkey=encodeURIComponent(prop);var qval=encodeURIComponent(batch.map[prop]);if(qval==""){if(DWREngine._warningHandler){DWREngine._warningHandler("Found empty qval for qkey="+qkey);}}query+=qkey+"="+qval+"&";}query=query.substring(0,query.length-1);try{batch.req.open("GET",batch.path+"/exec/"+statsInfo+"?"+query,batch.async);batch.req.send(null);if(!batch.async){DWREngine._stateChange(batch);}}catch(ex){DWREngine._handleMetaDataError(null,ex);}}else{for(prop in batch.map){if(typeof batch.map[prop]!="function"){query+=prop+"="+batch.map[prop]+"\n";}}try{batch.req.open("POST",batch.path+"/exec/"+statsInfo,batch.async);batch.req.setRequestHeader("Content-Type","text/plain");batch.req.send(query);if(!batch.async){DWREngine._stateChange(batch);}}catch(ex){DWREngine._handleMetaDataError(null,ex);}}}else{batch.map.xml="false";var idname="dwr-if-"+batch.map["c0-id"];batch.div=document.createElement("div");batch.div.innerHTML="<iframe src='javascript:void(0)' frameborder='0' width='0' height='0' id='"+idname+"' name='"+idname+"'></iframe>";document.body.appendChild(batch.div);batch.iframe=document.getElementById(idname);batch.iframe.setAttribute("style","width:0px; height:0px; border:0px;");if(batch.verb=="GET"){for(prop in batch.map){if(typeof batch.map[prop]!="function"){query+=encodeURIComponent(prop)+"="+encodeURIComponent(batch.map[prop])+"&";
}}query=query.substring(0,query.length-1);batch.iframe.setAttribute("src",batch.path+"/exec/"+statsInfo+"?"+query);document.body.appendChild(batch.iframe);}else{batch.form=document.createElement("form");batch.form.setAttribute("id","dwr-form");batch.form.setAttribute("action",batch.path+"/exec"+statsInfo);batch.form.setAttribute("target",idname);batch.form.target=idname;batch.form.setAttribute("method","post");for(prop in batch.map){var formInput=document.createElement("input");formInput.setAttribute("type","hidden");formInput.setAttribute("name",prop);formInput.setAttribute("value",batch.map[prop]);batch.form.appendChild(formInput);}document.body.appendChild(batch.form);batch.form.submit();}}};DWREngine._stateChange=function(batch){if(!batch.completed&&batch.req.readyState==4){try{var reply=batch.req.responseText;var status=batch.req.status;if(reply==null||reply==""){DWREngine._handleMetaDataError(null,"No data received from server");return ;}if(reply.search("DWREngine._handle")==-1){DWREngine._handleMetaDataError(null,"Invalid reply from server");return ;}if(status!=200){if(reply==null){reply="Unknown error occured";}DWREngine._handleMetaDataError(null,reply);return ;}eval(reply);DWREngine._clearUp(batch);}catch(ex){if(ex==null){ex="Unknown error occured";}DWREngine._handleMetaDataError(null,ex);}finally{if(DWREngine._batchQueue.length!=0){var sendbatch=DWREngine._batchQueue.shift();DWREngine._sendData(sendbatch);DWREngine._batches[DWREngine._batches.length]=sendbatch;}}}};DWREngine._handleResponse=function(id,reply){var handlers=DWREngine._handlersMap[id];DWREngine._handlersMap[id]=null;if(handlers){try{if(handlers.callback){handlers.callback(reply);}}catch(ex){DWREngine._handleMetaDataError(handlers,ex);}}if(DWREngine._method==DWREngine.IFrame){var responseBatch=DWREngine._batches[DWREngine._batches.length-1];if(responseBatch.map["c"+(responseBatch.map.callCount-1)+"-id"]==id){DWREngine._clearUp(responseBatch);}}};DWREngine._handleServerError=function(id,error){var handlers=DWREngine._handlersMap[id];DWREngine._handlersMap[id]=null;if(error.message){DWREngine._handleMetaDataError(handlers,error.message,error);}else{DWREngine._handleMetaDataError(handlers,error);}};DWREngine._abortRequest=function(batch){if(batch&&batch.metadata!=null&&!batch.completed){DWREngine._clearUp(batch);if(batch.req){batch.req.abort();}var handlers;var id;for(var i=0;i<batch.ids.length;i++){id=batch.ids[i];handlers=DWREngine._handlersMap[id];DWREngine._handleMetaDataError(handlers,"Timeout");}}};DWREngine._clearUp=function(batch){if(batch.completed){alert("double complete");return ;}if(batch.div){batch.div.parentNode.removeChild(batch.div);}if(batch.iframe){batch.iframe.parentNode.removeChild(batch.iframe);}if(batch.form){batch.form.parentNode.removeChild(batch.form);}if(batch.req){delete batch.req;}for(var i=0;i<batch.postHooks.length;i++){batch.postHooks[i]();}batch.postHooks=null;for(var i=0;i<DWREngine._batches.length;i++){if(DWREngine._batches[i]==batch){DWREngine._batches.splice(i,1);break;}}batch.completed=true;};DWREngine._handleError=function(reason,ex){if(DWREngine._errorHandler){DWREngine._errorHandler(reason,ex);}};DWREngine._handleMetaDataError=function(handlers,reason,ex){if(handlers&&typeof handlers.errorHandler=="function"){handlers.errorHandler(reason,ex);}else{DWREngine._handleError(reason,ex);}};DWREngine._addSerializeFunctions=function(){Object.prototype.dwrSerialize=DWREngine._serializeObject;Array.prototype.dwrSerialize=DWREngine._serializeArray;Boolean.prototype.dwrSerialize=DWREngine._serializeBoolean;Number.prototype.dwrSerialize=DWREngine._serializeNumber;String.prototype.dwrSerialize=DWREngine._serializeString;Date.prototype.dwrSerialize=DWREngine._serializeDate;};DWREngine._removeSerializeFunctions=function(){delete Object.prototype.dwrSerialize;delete Array.prototype.dwrSerialize;delete Boolean.prototype.dwrSerialize;delete Number.prototype.dwrSerialize;delete String.prototype.dwrSerialize;delete Date.prototype.dwrSerialize;
};DWREngine._serializeAll=function(batch,referto,data,name){if(data==null){batch.map[name]="null:null";return ;}switch(typeof data){case"boolean":batch.map[name]="boolean:"+data;break;case"number":batch.map[name]="number:"+data;break;case"string":batch.map[name]="string:"+encodeURIComponent(data);break;case"object":if(data.dwrSerialize){batch.map[name]=data.dwrSerialize(batch,referto,data,name);}else{if(data.nodeName){batch.map[name]=DWREngine._serializeXml(batch,referto,data,name);}else{if(DWREngine._warningHandler){DWREngine._warningHandler("Object without dwrSerialize: "+typeof data+", attempting default converter.");}batch.map[name]="default:"+data;}}break;case"function":break;default:if(DWREngine._warningHandler){DWREngine._warningHandler("Unexpected type: "+typeof data+", attempting default converter.");}batch.map[name]="default:"+data;break;}};DWREngine._lookup=function(referto,data,name){var lookup;for(var i=0;i<referto.length;i++){if(referto[i].data==data){lookup=referto[i];break;}}if(lookup){return"reference:"+lookup.name;}referto.push({data:data,name:name});return null;};DWREngine._serializeObject=function(batch,referto,data,name){var ref=DWREngine._lookup(referto,this,name);if(ref){return ref;}if(data.nodeName){return DWREngine._serializeXml(batch,referto,data,name);}var reply="Object:{";var element;for(element in this){if(element!="dwrSerialize"){batch.paramCount++;var childName="c"+DWREngine._batch.map.callCount+"-e"+batch.paramCount;DWREngine._serializeAll(batch,referto,this[element],childName);reply+=encodeURIComponent(element);reply+=":reference:";reply+=childName;reply+=", ";}}if(reply.substring(reply.length-2)==", "){reply=reply.substring(0,reply.length-2);}reply+="}";return reply;};DWREngine._serializeXml=function(batch,referto,data,name){var ref=DWREngine._lookup(referto,this,name);if(ref){return ref;}var output;if(window.XMLSerializer){var serializer=new XMLSerializer();output=serializer.serializeToString(data);}else{output=data.toXml;}return"XML:"+encodeURIComponent(output);};DWREngine._serializeArray=function(batch,referto,data,name){var ref=DWREngine._lookup(referto,this,name);if(ref){return ref;}var reply="Array:[";for(var i=0;i<this.length;i++){if(i!=0){reply+=",";}batch.paramCount++;var childName="c"+DWREngine._batch.map.callCount+"-e"+batch.paramCount;DWREngine._serializeAll(batch,referto,this[i],childName);reply+="reference:";reply+=childName;}reply+="]";return reply;};DWREngine._serializeBoolean=function(batch,referto,data,name){return"Boolean:"+this;};DWREngine._serializeNumber=function(batch,referto,data,name){return"Number:"+this;};DWREngine._serializeString=function(batch,referto,data,name){return"String:"+encodeURIComponent(this);};DWREngine._serializeDate=function(batch,referto,data,name){return"Date:"+this.getTime();};DWREngine._unserializeDocument=function(xml){var dom;if(window.DOMParser){var parser=new DOMParser();dom=parser.parseFromString(xml,"text/xml");if(!dom.documentElement||dom.documentElement.tagName=="parsererror"){var message=dom.documentElement.firstChild.data;message+="\n"+dom.documentElement.firstChild.nextSibling.firstChild.data;throw message;}return dom;}else{if(window.ActiveXObject){dom=DWREngine._newActiveXObject(DWREngine._DOMDocument);dom.loadXML(xml);return dom;}else{var div=document.createElement("div");div.innerHTML=xml;return div;}}};DWREngine._newActiveXObject=function(axarray){var returnValue;for(var i=0;i<axarray.length;i++){try{returnValue=new ActiveXObject(axarray[i]);break;}catch(ex){}}return returnValue;};if(typeof window.encodeURIComponent==="undefined"){DWREngine._utf8=function(wide){wide=""+wide;var c;var s;var enc="";var i=0;while(i<wide.length){c=wide.charCodeAt(i++);if(c>=56320&&c<57344){continue;}if(c>=55296&&c<56320){if(i>=wide.length){continue;}s=wide.charCodeAt(i++);if(s<56320||c>=56832){continue;}c=((c-55296)<<10)+(s-56320)+65536;}if(c<128){enc+=String.fromCharCode(c);}else{if(c<2048){enc+=String.fromCharCode(192+(c>>6),128+(c&63));}else{if(c<65536){enc+=String.fromCharCode(224+(c>>12),128+(c>>6&63),128+(c&63));
}else{enc+=String.fromCharCode(240+(c>>18),128+(c>>12&63),128+(c>>6&63),128+(c&63));}}}}return enc;};DWREngine._hexchars="0123456789ABCDEF";DWREngine._toHex=function(n){return DWREngine._hexchars.charAt(n>>4)+DWREngine._hexchars.charAt(n&15);};DWREngine._okURIchars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-";window.encodeURIComponent=function(s){s=DWREngine._utf8(s);var c;var enc="";for(var i=0;i<s.length;i++){if(DWREngine._okURIchars.indexOf(s.charAt(i))==-1){enc+="%"+DWREngine._toHex(s.charCodeAt(i));}else{enc+=s.charAt(i);}}return enc;};}if(typeof Array.prototype.splice==="undefined"){Array.prototype.splice=function(ind,cnt){if(arguments.length==0){return ind;}if(typeof ind!="number"){ind=0;}if(ind<0){ind=Math.max(0,this.length+ind);}if(ind>this.length){if(arguments.length>2){ind=this.length;}else{return[];}}if(arguments.length<2){cnt=this.length-ind;}cnt=(typeof cnt=="number")?Math.max(0,cnt):0;removeArray=this.slice(ind,ind+cnt);endArray=this.slice(ind+cnt);this.length=ind;for(var i=2;i<arguments.length;i++){this[this.length]=arguments[i];}for(i=0;i<endArray.length;i++){this[this.length]=endArray[i];}return removeArray;};}if(typeof Array.prototype.shift==="undefined"){Array.prototype.shift=function(str){var val=this[0];for(var i=1;i<this.length;++i){this[i-1]=this[i];}this.length--;return val;};}if(typeof Array.prototype.unshift==="undefined"){Array.prototype.unshift=function(){var i=unshift.arguments.length;for(var j=this.length-1;j>=0;--j){this[j+i]=this[j];}for(j=0;j<i;++j){this[j]=unshift.arguments[j];}};}if(typeof Array.prototype.push==="undefined"){Array.prototype.push=function(){var sub=this.length;for(var i=0;i<push.arguments.length;++i){this[sub]=push.arguments[i];sub++;}};}if(typeof Array.prototype.pop==="undefined"){Array.prototype.pop=function(){var lastElement=this[this.length-1];this.length--;return lastElement;};}

/* util.js */

function DWRUtil(){}DWRUtil.onReturn=function(event,action){if(!event){event=window.event;}if(event&&event.keyCode&&event.keyCode==13){action();}};DWRUtil.selectRange=function(ele,start,end){var orig=ele;ele=$(ele);if(ele==null){DWRUtil.debug("selectRange() can't find an element with id: "+orig+".");return ;}if(ele.setSelectionRange){ele.setSelectionRange(start,end);}else{if(ele.createTextRange){var range=ele.createTextRange();range.moveStart("character",start);range.moveEnd("character",end-ele.value.length);range.select();}}ele.focus();};DWRUtil._getSelection=function(ele){var orig=ele;ele=$(ele);if(ele==null){DWRUtil.debug("selectRange() can't find an element with id: "+orig+".");return ;}return ele.value.substring(ele.selectionStart,ele.selectionEnd);};var $;if(!$&&document.getElementById){$=function(){var elements=new Array();for(var i=0;i<arguments.length;i++){var element=arguments[i];if(typeof element=="string"){element=document.getElementById(element);}if(arguments.length==1){return element;}elements.push(element);}return elements;};}else{if(!$&&document.all){$=function(){var elements=new Array();for(var i=0;i<arguments.length;i++){var element=arguments[i];if(typeof element=="string"){element=document.all[element];}if(arguments.length==1){return element;}elements.push(element);}return elements;};}}DWRUtil.toDescriptiveString=function(data,level,depth){var reply="";var i=0;var value;var obj;if(level==null){level=0;}if(depth==null){depth=0;}if(data==null){return"null";}if(DWRUtil._isArray(data)){if(data.length==0){reply+="[]";}else{if(level!=0){reply+="[\n";}else{reply="[";}for(i=0;i<data.length;i++){try{obj=data[i];if(obj==null||typeof obj=="function"){continue;}else{if(typeof obj=="object"){if(level>0){value=DWRUtil.toDescriptiveString(obj,level-1,depth+1);}else{value=DWRUtil._detailedTypeOf(obj);}}else{value=""+obj;value=value.replace(/\/n/g,"\\n");value=value.replace(/\/t/g,"\\t");}}}catch(ex){value=""+ex;}if(level!=0){reply+=DWRUtil._indent(level,depth+2)+value+", \n";}else{if(value.length>13){value=value.substring(0,10)+"...";}reply+=value+", ";if(i>5){reply+="...";break;}}}if(level!=0){reply+=DWRUtil._indent(level,depth)+"]";}else{reply+="]";}}return reply;}if(typeof data=="string"||typeof data=="number"||DWRUtil._isDate(data)){return data.toString();}if(typeof data=="object"){var typename=DWRUtil._detailedTypeOf(data);if(typename!="Object"){reply=typename+" ";}if(level!=0){reply+="{\n";}else{reply="{";}var isHtml=DWRUtil._isHTMLElement(data);for(var prop in data){if(isHtml){if(prop.toUpperCase()==prop||prop=="title"||prop=="lang"||prop=="dir"||prop=="className"||prop=="form"||prop=="name"||prop=="prefix"||prop=="namespaceURI"||prop=="nodeType"||prop=="firstChild"||prop=="lastChild"||prop.match(/^offset/)){continue;}}value="";try{obj=data[prop];if(obj==null||typeof obj=="function"){continue;}else{if(typeof obj=="object"){if(level>0){value="\n";value+=DWRUtil._indent(level,depth+2);value=DWRUtil.toDescriptiveString(obj,level-1,depth+1);}else{value=DWRUtil._detailedTypeOf(obj);}}else{value=""+obj;value=value.replace(/\/n/g,"\\n");value=value.replace(/\/t/g,"\\t");}}}catch(ex){value=""+ex;}if(level==0&&value.length>13){value=value.substring(0,10)+"...";}var propStr=prop;if(propStr.length>30){propStr=propStr.substring(0,27)+"...";}if(level!=0){reply+=DWRUtil._indent(level,depth+1);}reply+=prop+":"+value+", ";if(level!=0){reply+="\n";}i++;if(level==0&&i>5){reply+="...";break;}}reply+=DWRUtil._indent(level,depth);reply+="}";return reply;}return data.toString();};DWRUtil._indent=function(level,depth){var reply="";if(level!=0){for(var j=0;j<depth;j++){reply+="\xa0\xa0";}reply+=" ";}return reply;};DWRUtil.useLoadingMessage=function(message){var loadingMessage;if(message){loadingMessage=message;}else{loadingMessage="Loading";}DWREngine.setPreHook(function(){var disabledZone=$("disabledZone");if(!disabledZone){disabledZone=document.createElement("div");disabledZone.setAttribute("id","disabledZone");disabledZone.style.position="absolute";
disabledZone.style.zIndex="1000";disabledZone.style.left="0px";disabledZone.style.top="0px";disabledZone.style.width="100%";disabledZone.style.height="100%";document.body.appendChild(disabledZone);var messageZone=document.createElement("div");messageZone.setAttribute("id","messageZone");messageZone.style.position="absolute";messageZone.style.top="0px";messageZone.style.right="0px";messageZone.style.background="red";messageZone.style.color="white";messageZone.style.fontFamily="Arial,Helvetica,sans-serif";messageZone.style.padding="4px";disabledZone.appendChild(messageZone);var text=document.createTextNode(loadingMessage);messageZone.appendChild(text);}else{$("messageZone").innerHTML=loadingMessage;disabledZone.style.visibility="visible";}});DWREngine.setPostHook(function(){$("disabledZone").style.visibility="hidden";});};DWRUtil.setValue=function(ele,val,options){if(val==null){val="";}if(options!=null){if(options.escapeHtml){val=val.replace(/&/,"&amp;");val=val.replace(/'/,"&apos;");val=val.replace(/</,"&lt;");val=val.replace(/>/,"&gt;");}}var orig=ele;var nodes,node,i;ele=$(ele);if(ele==null){nodes=document.getElementsByName(orig);if(nodes.length>=1){ele=nodes.item(0);}}if(ele==null){DWRUtil.debug("setValue() can't find an element with id/name: "+orig+".");return ;}if(DWRUtil._isHTMLElement(ele,"select")){if(ele.type=="select-multiple"&&DWRUtil._isArray(val)){DWRUtil._selectListItems(ele,val);}else{DWRUtil._selectListItem(ele,val);}return ;}if(DWRUtil._isHTMLElement(ele,"input")){if(ele.type=="radio"){if(nodes==null){nodes=document.getElementsByName(orig);}if(nodes!=null&&nodes.length>1){for(i=0;i<nodes.length;i++){node=nodes.item(i);if(node.type=="radio"){node.checked=(node.value==val);}}}else{ele.checked=(val==true);}}else{if(ele.type=="checkbox"){ele.checked=val;}else{ele.value=val;}}return ;}if(DWRUtil._isHTMLElement(ele,"textarea")){ele.value=val;return ;}if(val.nodeType){if(val.nodeType==9){val=val.documentElement;}val=DWRUtil._importNode(ele.ownerDocument,val,true);ele.appendChild(val);return ;}ele.innerHTML=val;};DWRUtil._selectListItems=function(ele,val){var found=false;var i;var j;for(i=0;i<ele.options.length;i++){ele.options[i].selected=false;for(j=0;j<val.length;j++){if(ele.options[i].value==val[j]){ele.options[i].selected=true;}}}if(found){return ;}for(i=0;i<ele.options.length;i++){for(j=0;j<val.length;j++){if(ele.options[i].text==val[j]){ele.options[i].selected=true;}}}};DWRUtil._selectListItem=function(ele,val){var found=false;var i;for(i=0;i<ele.options.length;i++){if(ele.options[i].value==val){ele.options[i].selected=true;found=true;}else{ele.options[i].selected=false;}}if(found){return ;}for(i=0;i<ele.options.length;i++){if(ele.options[i].text==val){ele.options[i].selected=true;}else{ele.options[i].selected=false;}}};DWRUtil.getValue=function(ele,options){if(options==null){options={};}var orig=ele;ele=$(ele);var nodes=document.getElementsByName(orig);if(ele==null&&nodes.length>=1){ele=nodes.item(0);}if(ele==null){DWRUtil.debug("getValue() can't find an element with id/name: "+orig+".");return"";}if(DWRUtil._isHTMLElement(ele,"select")){var sel=ele.selectedIndex;if(sel!=-1){var reply=ele.options[sel].value;if(reply==null||reply==""){reply=ele.options[sel].text;}return reply;}else{return"";}}if(DWRUtil._isHTMLElement(ele,"input")){if(ele.type=="radio"){var node;for(i=0;i<nodes.length;i++){node=nodes.item(i);if(node.type=="radio"){if(node.checked){if(nodes.length>1){return node.value;}else{return true;}}}}}switch(ele.type){case"checkbox":case"check-box":case"radio":return ele.checked;default:return ele.value;}}if(DWRUtil._isHTMLElement(ele,"textarea")){return ele.value;}if(options.textContent){if(ele.textContent){return ele.textContent;}else{if(ele.innerText){return ele.innerText;}}}return ele.innerHTML;};DWRUtil.getText=function(ele){var orig=ele;ele=$(ele);if(ele==null){DWRUtil.debug("getText() can't find an element with id: "+orig+".");return"";}if(!DWRUtil._isHTMLElement(ele,"select")){DWRUtil.debug("getText() can only be used with select elements. Attempt to use: "+DWRUtil._detailedTypeOf(ele)+" from  id: "+orig+".");
return"";}var sel=ele.selectedIndex;if(sel!=-1){return ele.options[sel].text;}else{return"";}};DWRUtil.setValues=function(map){for(var property in map){if($(property)!=null||document.getElementsByName(property).length>=1){DWRUtil.setValue(property,map[property]);}}};DWRUtil.getValues=function(data){var ele;if(typeof data=="string"){ele=$(data);}if(DWRUtil._isHTMLElement(data)){ele=data;}if(ele!=null){if(ele.elements==null){alert("getValues() requires an object or reference to a form element.");return null;}var reply={};var value;for(var i=0;i<ele.elements.length;i++){if(ele[i].id!=null){value=ele[i].id;}else{if(ele[i].value!=null){value=ele[i].value;}else{value="element"+i;}}reply[value]=DWRUtil.getValue(ele[i]);}return reply;}else{for(var property in data){if($(property)!=null||document.getElementsByName(property).length>=1){data[property]=DWRUtil.getValue(property);}}return data;}};DWRUtil.addOptions=function(ele,data){var orig=ele;ele=$(ele);if(ele==null){DWRUtil.debug("addOptions() can't find an element with id: "+orig+".");return ;}var useOptions=DWRUtil._isHTMLElement(ele,"select");var useLi=DWRUtil._isHTMLElement(ele,["ul","ol"]);if(!useOptions&&!useLi){DWRUtil.debug("addOptions() can only be used with select/ul/ol elements. Attempt to use: "+DWRUtil._detailedTypeOf(ele));return ;}if(data==null){return ;}var text;var value;var opt;var li;if(DWRUtil._isArray(data)){for(var i=0;i<data.length;i++){if(useOptions){if(arguments[2]!=null){if(arguments[3]!=null){text=DWRUtil._getValueFrom(data[i],arguments[3]);value=DWRUtil._getValueFrom(data[i],arguments[2]);}else{value=DWRUtil._getValueFrom(data[i],arguments[2]);text=value;}}else{text=DWRUtil._getValueFrom(data[i],arguments[3]);value=text;}if(text||value){opt=new Option(text,value);ele.options[ele.options.length]=opt;}}else{li=document.createElement("li");value=DWRUtil._getValueFrom(data[i],arguments[2]);if(value!=null){li.innerHTML=value;ele.appendChild(li);}}}}else{if(arguments[3]!=null){for(var prop in data){if(!useOptions){alert("DWRUtil.addOptions can only create select lists from objects.");return ;}value=DWRUtil._getValueFrom(data[prop],arguments[2]);text=DWRUtil._getValueFrom(data[prop],arguments[3]);if(text||value){opt=new Option(text,value);ele.options[ele.options.length]=opt;}}}else{for(var prop in data){if(!useOptions){DWRUtil.debug("DWRUtil.addOptions can only create select lists from objects.");return ;}if(typeof data[prop]=="function"){text=null;value=null;}else{if(arguments[2]){text=prop;value=data[prop];}else{text=data[prop];value=prop;}}if(text||value){opt=new Option(text,value);ele.options[ele.options.length]=opt;}}}}};DWRUtil._getValueFrom=function(data,method){if(method==null){return data;}else{if(typeof method=="function"){return method(data);}else{return data[method];}}};DWRUtil.removeAllOptions=function(ele){var orig=ele;ele=$(ele);if(ele==null){DWRUtil.debug("removeAllOptions() can't find an element with id: "+orig+".");return ;}var useOptions=DWRUtil._isHTMLElement(ele,"select");var useLi=DWRUtil._isHTMLElement(ele,["ul","ol"]);if(!useOptions&&!useLi){DWRUtil.debug("removeAllOptions() can only be used with select, ol and ul elements. Attempt to use: "+DWRUtil._detailedTypeOf(ele));return ;}if(useOptions){ele.options.length=0;}else{while(ele.childNodes.length>0){ele.removeChild(ele.firstChild);}}};DWRUtil.addRows=function(ele,data,cellFuncs,options){var orig=ele;ele=$(ele);if(ele==null){DWRUtil.debug("addRows() can't find an element with id: "+orig+".");return ;}if(!DWRUtil._isHTMLElement(ele,["table","tbody","thead","tfoot"])){DWRUtil.debug("addRows() can only be used with table, tbody, thead and tfoot elements. Attempt to use: "+DWRUtil._detailedTypeOf(ele));return ;}if(!options){options={};}if(!options.rowCreator){options.rowCreator=DWRUtil._defaultRowCreator;}if(!options.cellCreator){options.cellCreator=DWRUtil._defaultCellCreator;}var tr,rowNum;if(DWRUtil._isArray(data)){for(rowNum=0;rowNum<data.length;rowNum++){options.rowData=data[rowNum];options.rowIndex=rowNum;
options.rowNum=rowNum;options.data=null;options.cellNum=-1;tr=DWRUtil._addRowInner(cellFuncs,options);if(tr!=null){ele.appendChild(tr);}}}else{if(typeof data=="object"){rowNum=0;for(var rowIndex in data){options.rowData=data[rowIndex];options.rowIndex=rowIndex;options.rowNum=rowNum;options.data=null;options.cellNum=-1;tr=DWRUtil._addRowInner(cellFuncs,options);if(tr!=null){ele.appendChild(tr);}rowNum++;}}}};DWRUtil._addRowInner=function(cellFuncs,options){var tr=options.rowCreator(options);if(tr==null){return null;}for(var cellNum=0;cellNum<cellFuncs.length;cellNum++){var func=cellFuncs[cellNum];var reply=func(options.rowData,options);options.data=reply;options.cellNum=cellNum;var td=options.cellCreator(options);if(td!=null){if(reply!=null){if(DWRUtil._isHTMLElement(reply)){td.appendChild(reply);}else{td.innerHTML=reply;}}tr.appendChild(td);}}return tr;};DWRUtil._defaultRowCreator=function(options){return document.createElement("tr");};DWRUtil._defaultCellCreator=function(options){return document.createElement("td");};DWRUtil.removeAllRows=function(ele){var orig=ele;ele=$(ele);if(ele==null){DWRUtil.debug("removeAllRows() can't find an element with id: "+orig+".");return ;}if(!DWRUtil._isHTMLElement(ele,["table","tbody","thead","tfoot"])){DWRUtil.debug("removeAllRows() can only be used with table, tbody, thead and tfoot elements. Attempt to use: "+DWRUtil._detailedTypeOf(ele));return ;}while(ele.childNodes.length>0){ele.removeChild(ele.firstChild);}};DWRUtil._isHTMLElement=function(ele,nodeName){if(ele==null||typeof ele!="object"||ele.nodeName==null){return false;}if(nodeName!=null){var test=ele.nodeName.toLowerCase();if(typeof nodeName=="string"){return test==nodeName.toLowerCase();}if(DWRUtil._isArray(nodeName)){var match=false;for(var i=0;i<nodeName.length&&!match;i++){if(test==nodeName[i].toLowerCase()){match=true;}}return match;}DWRUtil.debug("DWRUtil._isHTMLElement was passed test node name that is neither a string or array of strings");return false;}return true;};DWRUtil._detailedTypeOf=function(x){var reply=typeof x;if(reply=="object"){reply=Object.prototype.toString.apply(x);reply=reply.substring(8,reply.length-1);}return reply;};DWRUtil._isArray=function(data){return(data&&data.join)?true:false;};DWRUtil._isDate=function(data){return(data&&data.toUTCString)?true:false;};DWRUtil._importNode=function(doc,importedNode,deep){var newNode;if(importedNode.nodeType==1){newNode=doc.createElement(importedNode.nodeName);for(var i=0;i<importedNode.attributes.length;i++){var attr=importedNode.attributes[i];if(attr.nodeValue!=null&&attr.nodeValue!=""){newNode.setAttribute(attr.name,attr.nodeValue);}}if(typeof importedNode.style!="undefined"){newNode.style.cssText=importedNode.style.cssText;}}else{if(importedNode.nodeType==3){newNode=doc.createTextNode(importedNode.nodeValue);}}if(deep&&importedNode.hasChildNodes()){for(i=0;i<importedNode.childNodes.length;i++){newNode.appendChild(DWRUtil._importNode(doc,importedNode.childNodes[i],true));}}return newNode;};DWRUtil.debug=function(message){alert(message);};String.prototype.wordWrap=function(m,b,c){var i,j,s,r=this.split("\n");if(m>0){for(i in r){for(s=r[i],r[i]="";s.length>m;j=c?m:(j=s.substr(0,m).match(/\S*$/)).input.length-j[0].length||m,r[i]+=s.substr(0,j)+((s=s.substr(j)).length?b:"")){}r[i]+=s;}}return r.join("\n");};

/* KickAppsBizComponent.js */

function KickAppsBizComponent(){}KickAppsBizComponent._path="/kickapps/dwr";KickAppsBizComponent.getCategoryComponentsAsXml=function(callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getCategoryComponentsAsXml",callback);};KickAppsBizComponent.getTabList=function(p0,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getTabList",p0,callback);};KickAppsBizComponent.enableMember=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","enableMember",p0,p1,p2,p3,callback);};KickAppsBizComponent.disableMember=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","disableMember",p0,p1,p2,p3,callback);};KickAppsBizComponent.getMyWidgetXml=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getMyWidgetXml",p0,p1,p2,callback);};KickAppsBizComponent.authenticateUser=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","authenticateUser",p0,p1,p2,callback);};KickAppsBizComponent.pingAlive=function(callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","pingAlive",callback);};KickAppsBizComponent.affiliatePingAlive=function(callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","affiliatePingAlive",callback);};KickAppsBizComponent.setAffiliateSite=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","setAffiliateSite",p0,p1,callback);};KickAppsBizComponent.addFavoriteUserAsFriend=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","addFavoriteUserAsFriend",p0,p1,p2,callback);};KickAppsBizComponent.getFavoriteUsers=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getFavoriteUsers",p0,p1,callback);};KickAppsBizComponent.addGuestbookEntry=function(p0,p1,p2,p3,p4,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","addGuestbookEntry",p0,p1,p2,p3,p4,callback);};KickAppsBizComponent.addFavoriteMedia=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","addFavoriteMedia",p0,p1,p2,p3,callback);};KickAppsBizComponent.deleteFavoriteMedia=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","deleteFavoriteMedia",p0,p1,p2,p3,callback);};KickAppsBizComponent.setTagsForMediaByOtherMembers=function(p0,p1,p2,p3,p4,p5,p6,p7,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","setTagsForMediaByOtherMembers",p0,p1,p2,p3,p4,p5,p6,p7,callback);};KickAppsBizComponent.setAdminTagsForMediaByOtherMembers=function(p0,p1,p2,p3,p4,p5,p6,p7,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","setAdminTagsForMediaByOtherMembers",p0,p1,p2,p3,p4,p5,p6,p7,callback);};KickAppsBizComponent.updateForumViews=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","updateForumViews",p0,p1,p2,p3,callback);};KickAppsBizComponent.validateTagsForMediaByOtherUsers=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","validateTagsForMediaByOtherUsers",p0,p1,p2,p3,callback);};KickAppsBizComponent.getTagsStringForMediaForAjaxPage=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getTagsStringForMediaForAjaxPage",p0,p1,callback);};KickAppsBizComponent.getAdminTagsStringForMediaForAjaxPage=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getAdminTagsStringForMediaForAjaxPage",p0,p1,callback);};KickAppsBizComponent.addMessage=function(p0,p1,p2,p3,p4,p5,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","addMessage",p0,p1,p2,p3,p4,p5,callback);};KickAppsBizComponent.getMessages=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getMessages",p0,p1,p2,p3,callback);
};KickAppsBizComponent.getAverageRatingForMedia=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getAverageRatingForMedia",p0,p1,p2,p3,callback);};KickAppsBizComponent.rateMedia=function(p0,p1,p2,p3,p4,p5,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","rateMedia",p0,p1,p2,p3,p4,p5,callback);};KickAppsBizComponent.getRatedMediaForUser=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getRatedMediaForUser",p0,p1,p2,p3,callback);};KickAppsBizComponent.getVotes=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getVotes",p0,p1,p2,callback);};KickAppsBizComponent.isUserAlreadyFlagged=function(p0,p1,p2,p3,p4,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","isUserAlreadyFlagged",p0,p1,p2,p3,p4,callback);};KickAppsBizComponent.emailToFriends=function(p0,p1,p2,p3,p4,p5,p6,p7,p8,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","emailToFriends",p0,p1,p2,p3,p4,p5,p6,p7,p8,callback);};KickAppsBizComponent.isUsersFavoriteMedia=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","isUsersFavoriteMedia",p0,p1,p2,p3,callback);};KickAppsBizComponent.inAppropriateFlaggingConfirm=function(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","inAppropriateFlaggingConfirm",p0,p1,p2,p3,p4,p5,p6,p7,p8,p9,callback);};KickAppsBizComponent.inAppropriateCommentFlaggingConfirm=function(p0,p1,p2,p3,p4,p5,p6,p7,p8,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","inAppropriateCommentFlaggingConfirm",p0,p1,p2,p3,p4,p5,p6,p7,p8,callback);};KickAppsBizComponent.searchGuestBookMessagesByUserId=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","searchGuestBookMessagesByUserId",p0,p1,callback);};KickAppsBizComponent.validateFileResource=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","validateFileResource",p0,p1,callback);};KickAppsBizComponent.removePortraitByUserId=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","removePortraitByUserId",p0,p1,p2,callback);};KickAppsBizComponent.removePortraitByUserIdInMKP=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","removePortraitByUserIdInMKP",p0,p1,callback);};KickAppsBizComponent.removeAffiliateSiteLogo=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","removeAffiliateSiteLogo",p0,p1,callback);};KickAppsBizComponent.updateMessageText=function(p0,p1,p2,p3,p4,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","updateMessageText",p0,p1,p2,p3,p4,callback);};KickAppsBizComponent.updateClubName=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","updateClubName",p0,p1,p2,p3,callback);};KickAppsBizComponent.joinClub=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","joinClub",p0,p1,p2,callback);};KickAppsBizComponent.leaveClub=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","leaveClub",p0,p1,p2,callback);};KickAppsBizComponent.requestClub=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","requestClub",p0,p1,p2,callback);};KickAppsBizComponent.enableDisableClub=function(p0,p1,p2,p3,p4,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","enableDisableClub",p0,p1,p2,p3,p4,callback);};KickAppsBizComponent.isUserMemberOfClub=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","isUserMemberOfClub",p0,p1,p2,callback);};KickAppsBizComponent.emailToInviteFriends=function(p0,p1,p2,p3,p4,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","emailToInviteFriends",p0,p1,p2,p3,p4,callback);
};KickAppsBizComponent.getUserEUA=function(p0,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getUserEUA",p0,callback);};KickAppsBizComponent.deleteMedia=function(p0,p1,p2,p3,p4,p5,p6,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","deleteMedia",p0,p1,p2,p3,p4,p5,p6,callback);};KickAppsBizComponent.deleteIconImage=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","deleteIconImage",p0,p1,p2,callback);};KickAppsBizComponent.deleteThemeImage=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","deleteThemeImage",p0,p1,p2,callback);};KickAppsBizComponent.verifyUserForDisabled=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","verifyUserForDisabled",p0,p1,p2,callback);};KickAppsBizComponent.verifyBlockedIP=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","verifyBlockedIP",p0,p1,p2,p3,callback);};KickAppsBizComponent.addPortraitPhoto=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","addPortraitPhoto",p0,p1,p2,p3,callback);};KickAppsBizComponent.removePortraitPhoto=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","removePortraitPhoto",p0,p1,p2,callback);};KickAppsBizComponent.activateMember=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","activateMember",p0,p1,p2,p3,callback);};KickAppsBizComponent.getAllThemesByAS=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getAllThemesByAS",p0,p1,callback);};KickAppsBizComponent.getAllVisibleThemesByAS=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getAllVisibleThemesByAS",p0,p1,callback);};KickAppsBizComponent.getAllVisibleThemes_CodeByAS=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getAllVisibleThemes_CodeByAS",p0,p1,callback);};KickAppsBizComponent.saveTheme=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","saveTheme",p0,p1,p2,p3,callback);};KickAppsBizComponent.updateTheme=function(p0,p1,p2,p3,p4,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","updateTheme",p0,p1,p2,p3,p4,callback);};KickAppsBizComponent.deleteTheme=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","deleteTheme",p0,p1,p2,callback);};KickAppsBizComponent.getSelectedThemeForAS=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getSelectedThemeForAS",p0,p1,callback);};KickAppsBizComponent.isThisThemeSelectedForAS=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","isThisThemeSelectedForAS",p0,p1,p2,callback);};KickAppsBizComponent.deSelectTheme=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","deSelectTheme",p0,p1,p2,callback);};KickAppsBizComponent.SelectTheme=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","SelectTheme",p0,p1,p2,callback);};KickAppsBizComponent.SelectThemeWithJSON=function(p0,p1,p2,p3,p4,p5,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","SelectThemeWithJSON",p0,p1,p2,p3,p4,p5,callback);};KickAppsBizComponent.skuEnableDisable=function(p0,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","skuEnableDisable",p0,callback);};KickAppsBizComponent.enableDisableForum=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","enableDisableForum",p0,p1,p2,p3,callback);};KickAppsBizComponent.discussionManagement=function(p0,p1,p2,p3,p4,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","discussionManagement",p0,p1,p2,p3,p4,callback);
};KickAppsBizComponent.discussionThreadManagement=function(p0,p1,p2,p3,p4,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","discussionThreadManagement",p0,p1,p2,p3,p4,callback);};KickAppsBizComponent.inAppropriateDiscussionFlaggingConfirm=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","inAppropriateDiscussionFlaggingConfirm",p0,p1,p2,p3,callback);};KickAppsBizComponent.inAppropriateMessageFlaggingConfirm=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","inAppropriateMessageFlaggingConfirm",p0,p1,p2,p3,callback);};KickAppsBizComponent.reorderForum=function(p0,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","reorderForum",p0,p2,p3,callback);};KickAppsBizComponent.removeClubMedia=function(p0,p1,p2,p3,p4,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","removeClubMedia",p0,p1,p2,p3,p4,callback);};KickAppsBizComponent.removeClubMember=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","removeClubMember",p0,p1,p2,p3,callback);};KickAppsBizComponent.closeBuildCommunity=function(p0,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","closeBuildCommunity",p0,callback);};KickAppsBizComponent.kickStartValidation=function(p0,p1,p2,p3,p4,p5,p6,p7,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","kickStartValidation",p0,p1,p2,p3,p4,p5,p6,p7,callback);};KickAppsBizComponent.setCurrentThemeImage=function(p0,p1,p2,p3,p4,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","setCurrentThemeImage",p0,p1,p2,p3,p4,callback);};KickAppsBizComponent.removeThemePhoto=function(p0,p1,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","removeThemePhoto",p0,p1,p3,callback);};KickAppsBizComponent.isBlockedIPAddressList=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","isBlockedIPAddressList",p0,p1,callback);};KickAppsBizComponent.saveKeyword=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","saveKeyword",p0,p1,p2,p3,callback);};KickAppsBizComponent.deleteComment=function(p0,p1,p2,p3,p4,p5,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","deleteComment",p0,p1,p2,p3,p4,p5,callback);};KickAppsBizComponent.flagCommentAsInappropriate=function(p0,p1,p2,p3,p4,p5,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","flagCommentAsInappropriate",p0,p1,p2,p3,p4,p5,callback);};KickAppsBizComponent.getFeedById=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getFeedById",p0,p1,callback);};KickAppsBizComponent.getWidget2=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getWidget2",p0,p1,callback);};KickAppsBizComponent.setBKImagesforSections=function(p0,p1,p2,p3,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","setBKImagesforSections",p0,p1,p2,p3,callback);};KickAppsBizComponent.getPhotosByUserIdAsJson=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getPhotosByUserIdAsJson",p0,p1,callback);};KickAppsBizComponent.getUserIsOnline=function(p0,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getUserIsOnline",p0,callback);};KickAppsBizComponent.getNewsDashboard=function(p0,p1,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getNewsDashboard",p0,p1,callback);};KickAppsBizComponent.getAllRelatedMediaForPlayPage=function(p0,p1,p2,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getAllRelatedMediaForPlayPage",p0,p1,p2,callback);};KickAppsBizComponent.getTextFileContent=function(p0,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getTextFileContent",p0,callback);
};KickAppsBizComponent.getAdminTagsForUser=function(p0,callback){DWREngine._execute(KickAppsBizComponent._path,"KickAppsBizComponent","getAdminTagsForUser",p0,callback);};

/* jquery.js */

(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){selector=jQuery.clean([match[1]],context);}else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3]){return jQuery().find(selector);}return jQuery(elem);}selector=[];}}else{return jQuery(context).find(selector);}}else{if(jQuery.isFunction(selector)){return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector);}}return this.setArray(jQuery.makeArray(selector));},jquery:"1.2.6",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num];},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var options=name;if(name.constructor==String){if(value===undefined){return this[0]&&jQuery[type||"attr"](this[0],name);}else{options={};options[name]=value;}}return this.each(function(i){for(name in options){jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));}});},css:function(key,value){if((key=="width"||key=="height")&&parseFloat(value)<0){value=undefined;}return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!="object"&&text!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));}var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);}});});return ret;},wrapAll:function(html){if(this[0]){jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild){elem=elem.firstChild;}return elem;}).append(this);}return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1){this.appendChild(elem);}});},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1){this.insertBefore(elem,this.firstChild);}});},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem);});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems);},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0];}else{return this.cloneNode(true);}});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined){this[expando]=null;}});if(events===true){this.find("*").andSelf().each(function(i){if(this.nodeType==3){return ;}var events=jQuery.data(this,"events");for(var type in events){for(var handler in events[type]){jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data);}}});}return ret;
},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,this));},not:function(selector){if(selector.constructor==String){if(isSimple.test(selector)){return this.pushStack(jQuery.multiFilter(selector,this,true));}else{selector=jQuery.multiFilter(selector,this);}}var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=="string"?jQuery(selector):jQuery.makeArray(selector))));},is:function(selector){return !!selector&&jQuery.multiFilter(selector,this).length>0;},hasClass:function(selector){return this.is("."+selector);},val:function(value){if(value==undefined){if(this.length){var elem=this[0];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.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one){return value;}values.push(value);}}return values;}else{return(this[0].value||"").replace(/\r/g,"");}}return undefined;}if(value.constructor==Number){value+="";}return this.each(function(){if(this.nodeType!=1){return ;}if(value.constructor==Array&&/radio|checkbox/.test(this.type)){this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0);}else{if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length){this.selectedIndex=-1;}}else{this.value=value;}}});},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value);},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},data:function(key,value){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);});},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse){elems.reverse();}}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));}var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script")){scripts=scripts.add(elem);}else{if(elem.nodeType==1){scripts=scripts.add(jQuery("script",elem).remove());}callback.call(obj,elem);}});scripts.each(evalScript);});}};jQuery.fn.init.prototype=jQuery.fn;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 now(){return +new Date;}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;
if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2;}if(typeof target!="object"&&typeof target!="function"){target={};}if(length==i){target=this;--i;}for(;i<length;i++){if((options=arguments[i])!=null){for(var name in options){var src=target[name],copy=options[name];if(target===copy){continue;}if(deep&&copy&&typeof copy=="object"&&!copy.nodeType){target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy);}else{if(copy!==undefined){target[name]=copy;}}}}}return target;};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery;}return jQuery;},isFunction:function(fn){return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"");},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body;},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie){script.text=data;}else{script.appendChild(document.createTextNode(data));}head.insertBefore(script,head.firstChild);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id){id=elem[expando]=++uuid;}if(name&&!jQuery.cache[id]){jQuery.cache[id]={};}if(data!==undefined){jQuery.cache[id][name]=data;}return name?jQuery.cache[id][name]:id;},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id]){break;}if(!name){jQuery.removeData(elem);}}}else{try{delete elem[expando];}catch(e){if(elem.removeAttribute){elem.removeAttribute(expando);}}delete jQuery.cache[id];}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){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(length==undefined){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;},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value)){value=value.call(elem,i);}return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className)){elem.className+=(elem.className?" ":"")+className;}});},remove:function(elem,classNames){if(elem.nodeType==1){elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return !jQuery.className.has(classNames,className);}).join(" "):"";}},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1;}},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];}},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});val-=Math.round(padding+border);
}if(jQuery(elem).is(":visible")){getWH();}else{jQuery.swap(elem,props,getWH);}return Math.max(0,val);}return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari){return false;}var ret=defaultView.getComputedStyle(elem,null);return !ret||ret.getPropertyValue("color")=="";}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret;}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save;}if(name.match(/float/i)){name=styleFloat;}if(!force&&style&&style[name]){ret=style[name];}else{if(defaultView.getComputedStyle){if(name.match(/float/i)){name="float";}name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem)){ret=computedStyle.getPropertyValue(name);}else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode){stack.unshift(a);}for(;i<stack.length;i++){if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block";}}ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++){if(swap[i]!=null){stack[i].style.display=swap[i];}}}if(name=="opacity"&&ret==""){ret="1";}}else{if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase();});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft;}}}}return ret;},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;}jQuery.each(elems,function(i,elem){if(!elem){return ;}if(elem.constructor==Number){elem+="";}if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">";});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--){div=div.lastChild;}if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?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(/^\s/.test(elem)){div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);}}elem=jQuery.makeArray(div.childNodes);}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select"))){return ;}if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options){ret.push(elem);}else{ret=jQuery.merge(ret,elem);}});return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8){return undefined;}var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari){elem.parentNode.selectedIndex;}if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode){throw"type property can't be changed";
}elem[name]=value;}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name)){return elem.getAttributeNode(name).nodeValue;}return elem[name];}if(msie&&notxml&&name=="style"){return jQuery.attr(elem.style,"cssText",value);}if(set){elem.setAttribute(name,""+value);}var attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+""=="NaN"?"":"alpha(opacity="+value*100+")");}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+"":"";}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set){elem[name]=value;}return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call){ret[0]=array;}else{while(i){ret[--i]=array[i];}}}return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++){if(array[i]===elem){return i;}}return -1;},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++]){if(elem.nodeType!=8){first[pos++]=elem;}}}else{while(elem=second[i++]){first[pos++]=elem;}}return first;},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i]);}}}catch(e){ret=array;}return ret;},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){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null){ret[ret.length]=value;}}return ret.concat.apply([],ret);}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function(elem){return elem.parentNode;},parents:function(elem){return jQuery.dir(elem,"parentNode");},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");},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(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string"){ret=jQuery.multiFilter(selector,ret);}return this.pushStack(jQuery.unique(ret));};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++){jQuery(args[i])[original](this);}});};});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1){this.removeAttribute(name);}},addClass:function(classNames){jQuery.className.add(this,classNames);},removeClass:function(classNames){jQuery.className.remove(this,classNames);
},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames);},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this);});if(this.parentNode){this.parentNode.removeChild(this);}}},empty:function(){jQuery(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild);}}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px");};});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},"#":function(a,i,m){return a.getAttribute("id")==m[2];},":":{lt:function(a,i,m){return i<m[3]-0;},gt:function(a,i,m){return i>m[3]-0;},nth:function(a,i,m){return m[3]-0==i;},eq:function(a,i,m){return m[3]-0==i;},first:function(a,i){return i==0;},last:function(a,i,m,r){return i==r.length-1;},even:function(a,i){return i%2==0;},odd:function(a,i){return i%2;},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-child":function(a){return !jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){return a.firstChild;},empty:function(a){return !a.firstChild;},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},enabled:function(a){return !a.disabled;},disabled:function(a){return a.disabled;},checked:function(a){return a.checked;},selected:function(a){return a.selected||jQuery.attr(a,"selected");},text:function(a){return"text"==a.type;},radio:function(a){return"radio"==a.type;},checkbox:function(a){return"checkbox"==a.type;},file:function(a){return"file"==a.type;},password:function(a){return"password"==a.type;},submit:function(a){return"submit"==a.type;},image:function(a){return"image"==a.type;},reset:function(a){return"reset"==a.type;},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button");},input:function(a){return/input|select|textarea|button/i.test(a.nodeName);},has:function(a,i,m){return jQuery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodeName);},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r);}return cur;},find:function(t,context){if(typeof t!="string"){return[t];}if(context&&context.nodeType!=1&&context.nodeType!=9){return[];
}context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName)){r.push(c);}}}ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0){continue;}foundToken=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id]){break;}if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~"){merge[id]=true;}r.push(n);}if(m=="+"){break;}}}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true;}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0]){ret.shift();}done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length);}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]];}else{re2=quickClass;m=re2.exec(t);}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){oid=jQuery('[@id="'+m[2]+'"]',elem)[0];}ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[];}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){tag="param";}r=jQuery.merge(r,ret[i].getElementsByTagName(tag));}if(m[1]=="."){r=jQuery.classFilter(r,m[2]);}if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++){if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break;}}r=tmp;}ret=r;}t=t.replace(re2,"");}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t);}}if(t){ret=[];}if(ret&&context==ret[0]){ret.shift();}done=jQuery.merge(done,ret);return done;},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass){tmp.push(r[i]);}}return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}if(!m){break;}if(m[1]==":"&&m[2]=="not"){r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);}else{if(m[1]=="."){r=jQuery.classFilter(r,m[2],not);}else{if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2])){z=jQuery.attr(a,m[2])||"";}if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){tmp.push(a);}}r=tmp;}else{if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++;}}merge[id]=true;}var add=false;if(first==0){if(node.nodeIndex==last){add=true;}}else{if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0){add=true;}}if(add^not){tmp.push(node);}}r=tmp;}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object"){fn=fn[m[2]];}if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+";}");}r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}}}}return{r:r,t:t};},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1){matched.push(cur);}cur=cur[dir];}return matched;},nth:function(cur,result,dir,elem){result=result||1;
var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType==1&&++num==result){break;}}return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem){r.push(n);}}return r;}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8){return ;}if(jQuery.browser.msie&&elem.setInterval){elem=window;}if(!handler.guid){handler.guid=this.guid++;}if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments);});handler.data=data;}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered){return jQuery.event.handle.apply(arguments.callee.elem,arguments);}});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener){elem.addEventListener(type,handle,false);}else{if(elem.attachEvent){elem.attachEvent("on"+type,handle);}}}}handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8){return ;}var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)==".")){for(var type in events){this.remove(elem,type+(types||""));}}else{if(types.type){handler=types.handler;types=types.type;}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler){delete events[type][handler.guid];}else{for(handler in events[type]){if(!parts[1]||events[type][handler].type==parts[1]){delete events[type][handler];}}}for(ret in events[type]){break;}if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener){elem.removeEventListener(type,jQuery.data(elem,"handle"),false);}else{if(elem.detachEvent){elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}}}ret=null;delete events[type];}}});}for(ret in events){break;}if(!ret){var handle=jQuery.data(elem,"handle");if(handle){handle.elem=null;}jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true;}if(!elem){if(this.global[type]){jQuery("*").add([window,document]).trigger(type,data);}}else{if(elem.nodeType==3||elem.nodeType==8){return undefined;}var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true;}data[0].type=type;if(exclusive){data[0].exclusive=true;}var handle=jQuery.data(elem,"handle");if(handle){val=handle.apply(elem,data);}if((!fn||(jQuery.nodeName(elem,"a")&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false){val=false;}if(event){data.shift();}if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined){val=ret;}}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,"a")&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return val;},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false){val=ret;}if(ret===false){event.preventDefault();
event.stopPropagation();}}}return val;},fix:function(event){if(event[expando]==true){return event;}var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--){event[props[i]]=originalEvent[props[i]];}event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault();}originalEvent.returnValue=false;};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation();}originalEvent.cancelBubble=true;};event.timeStamp=event.timeStamp||now();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.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.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){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));}return event;},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:function(){bindReady();return ;},teardown:function(){return ;}},mouseenter:{setup:function(){if(jQuery.browser.msie){return false;}jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true;},teardown:function(){if(jQuery.browser.msie){return false;}jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true;},handler:function(event){if(withinElement(event,this)){return true;}event.type="mouseenter";return jQuery.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(jQuery.browser.msie){return false;}jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true;},teardown:function(){if(jQuery.browser.msie){return false;}jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true;},handler:function(event){if(withinElement(event,this)){return true;}event.type="mouseleave";return jQuery.event.handle.apply(this,arguments);}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments);});return this.each(function(){jQuery.event.add(this,type,one,fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn);});},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn);},toggle:function(fn){var args=arguments,i=1;while(i<args.length){jQuery.event.proxy(fn,args[i++]);}return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(fnOver,fnOut){return this.bind("mouseenter",fnOver).bind("mouseleave",fnOut);},ready:function(fn){bindReady();if(jQuery.isReady){fn.call(document,jQuery);}else{jQuery.readyList.push(function(){return fn.call(this,jQuery);
});}return this;}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document);});jQuery.readyList=null;}jQuery(document).triggerHandler("ready");}}});var readyBound=false;function bindReady(){if(readyBound){return ;}readyBound=true;if(document.addEventListener&&!jQuery.browser.opera){document.addEventListener("DOMContentLoaded",jQuery.ready,false);}if(jQuery.browser.msie&&window==top){(function(){if(jQuery.isReady){return ;}try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return ;}jQuery.ready();})();}if(jQuery.browser.opera){document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady){return ;}for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return ;}}jQuery.ready();},false);}if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady){return ;}if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return ;}if(numStyles===undefined){numStyles=jQuery("style, link[rel=stylesheet]").length;}if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return ;}jQuery.ready();})();}jQuery.event.add(window,"load",jQuery.ready);}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem){try{parent=parent.parentNode;}catch(error){parent=elem;}}return parent==elem;};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind();});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!="string"){return this._load(url);}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}callback=callback||function(){};var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuery.param(params);type="POST";}}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified"){self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText);}self.each(callback,[res.responseText,status,res]);}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null;}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={};}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));
var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string"){s.data=jQuery.param(s.data);}if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre)){s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}}else{if(!s.data||!s.data.match(jsre)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";}}s.dataType="json";}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data){s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");}s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";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(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart");}var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];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();head.removeChild(script);}};}head.appendChild(script);return undefined;}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();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){xhr.setRequestHeader("Content-Type",s.contentType);}if(s.ifModified){xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");}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(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false;}if(s.global){jQuery.event.trigger("ajaxSend",[xhr,s]);}var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter);}catch(e){status="parsererror";}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified");}catch(e){}if(s.ifModified&&modRes){jQuery.lastModified[s.url]=modRes;}if(!jsonp){success();}}else{jQuery.handleError(s,xhr,status);}complete();if(s.async){xhr=null;}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0){setTimeout(function(){if(xhr){xhr.abort();if(!requestDone){onreadystatechange("timeout");}}},s.timeout);}}try{xhr.send(s.data);}catch(e){jQuery.handleError(s,xhr,null,e);}if(!s.async){onreadystatechange();}function success(){if(s.success){s.success(data,status);}if(s.global){jQuery.event.trigger("ajaxSuccess",[xhr,s]);}}function complete(){if(s.complete){s.complete(xhr,status);}if(s.global){jQuery.event.trigger("ajaxComplete",[xhr,s]);}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop");}}return xhr;},handleError:function(s,xhr,status,e){if(s.error){s.error(xhr,status,e);}if(s.global){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||jQuery.browser.safari&&xhr.status==undefined;
}catch(e){}return false;},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror"){throw"parsererror";}if(filter){data=filter(data,type);}if(type=="script"){jQuery.globalEval(data);}if(type=="json"){data=eval("("+data+")");}return data;},param:function(a){var s=[];if(a.constructor==Array||a.jquery){jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));});}else{for(var j in a){if(a[j]&&a[j].constructor==Array){jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));});}else{s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]));}}}return s.join("&").replace(/%20/g,"+");}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none"){this.style.display="block";}elem.remove();}}).end();},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none";}).end();},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();});},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback);},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback);},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback);},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback);},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback);},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1){return false;}var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden){return opt.complete.call(this);}if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}}if(opt.overflow!=null){this.style.overflow="hidden";}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val)){e[val=="toggle"?hidden?"show":"hide":val](prop);}else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}if(parts[1]){end=((parts[1]=="-="?-1:1)*end)+start;}e.custom(start,end,unit);}else{e.custom(start,val,"");}}});return true;});},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx";}if(!type||(typeof type=="string"&&!fn)){return queue(this[0],type);}return this.each(function(){if(fn.constructor==Array){queue(this,type,fn);}else{queue(this,type).push(fn);if(queue(this,type).length==1){fn.call(this);}}});},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;}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array){q=jQuery.data(elem,type+"queue",jQuery.makeArray(array));}}return q;};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length){q[0].call(this);}});};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;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:[],timerId:null,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.display="block";}},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){return this.elem[this.prop];}var r=parseFloat(jQuery.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;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd);}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1);}}if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null;}},13);}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height"){this.elem.style[this.prop]="1px";}jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now();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;var done=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false;}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none"){this.elem.style.display="block";}}if(this.options.hide){this.elem.style.display="none";}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p]);}}}if(done){this.options.complete.call(this.elem);}return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now;},scrollTop:function(fx){fx.elem.scrollTop=fx.now;},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit;
}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem){with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop);}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2){border(offsetParent);}if(!fixed&&css(offsetParent,"position")=="fixed"){fixed=true;}offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent;}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display"))){add(-parent.scrollLeft,-parent.scrollTop);}if(mozilla&&css(parent,"overflow")!="visible"){border(parent);}parent=parent.parentNode;}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute")){add(-doc.body.offsetLeft,-doc.body.offsetTop);}if(fixed){add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));}}results={top:top,left:left};}}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true));}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0;}return results;};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,"marginTop");offset.left-=num(this,"marginLeft");parentOffset.top+=num(offsetParent,"borderTopWidth");parentOffset.left+=num(offsetParent,"borderLeftWidth");results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,"position")=="static")){offsetParent=offsetParent.offsetParent;}return jQuery(offsetParent);}});jQuery.each(["Left","Top"],function(i,name){var method="scroll"+name;jQuery.fn[method]=function(val){if(!this[0]){return ;}return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val;}):this[0]==window||this[0]==document?self[i?"pageYOffset":"pageXOffset"]||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method];};});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br);};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this,"margin"+tl)+num(this,"margin"+br):0);};});})();eval(function(p,a,c,k,e,r){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36));};if(!"".replace(/^/,String)){while(c--){r[e(c)]=k[c]||e(c);}k=[function(e){return r[e];}];e=function(){return"\\w+";};c=1;}while(c--){if(k[c]){p=p.replace(new RegExp("\\b"+e(c)+"\\b","g"),k[c]);}}return p;}("(9($){l e=$.1q.C,r=$.1q.r;$.1q.M({C:9(){3(!1[0])f();3(1[0]==p)3($.7.O||($.7.E&&U($.7.13)>11))6 n.19-(($(5).C()>n.19)?i():0);k 3($.7.E)6 n.19;k 6 $.I&&5.P.1E||5.o.1E;3(1[0]==5)6 1C.1y(($.I&&5.P.1w||5.o.1w),5.o.1u);6 e.1T(1,1P)},r:9(){3(!1[0])f();3(1[0]==p)3($.7.O||($.7.E&&U($.7.13)>11))6 n.1b-(($(5).r()>n.1b)?i():0);k 3($.7.E)6 n.1b;k 6 $.I&&5.P.1N||5.o.1N;3(1[0]==5)3($.7.1M){l a=n.1p;n.1a(27,n.1o);l b=n.1p;n.1a(a,n.1o);6 5.o.1c+b}k 6 1C.1y((($.I&&!$.7.E)&&5.P.1L||5.o.1L),5.o.1c);6 r.1T(1,1P)},19:9(){3(!1[0])f();6 1[0]==p||1[0]==5?1.C():1.14(':N')?1[0].1u-h(1,'q')-h(1,'1I'):1.C()+h(1,'1h')+h(1,'1H')},1b:9(){3(!1[0])f();6 1[0]==p||1[0]==5?1.r():1.14(':N')?1[0].1c-h(1,'s')-h(1,'1F'):1.r()+h(1,'1v')+h(1,'1D')},21:9(a){3(!1[0])f();a=$.M({A:w},a||{});6 1[0]==p||1[0]==5?1.C():1.14(':N')?1[0].1u+(a.A?(h(1,'L')+h(1,'1x')):0):1.C()+h(1,'q')+h(1,'1I')+h(1,'1h')+h(1,'1H')+(a.A?(h(1,'L')+h(1,'1x')):0)},1Y:9(a){3(!1[0])f();a=$.M({A:w},a||{});6 1[0]==p||1[0]==5?1.r():1.14(':N')?1[0].1c+(a.A?(h(1,'K')+h(1,'1U')):0):1.r()+h(1,'s')+h(1,'1F')+h(1,'1v')+h(1,'1D')+(a.A?(h(1,'K')+h(1,'1U')):0)},m:9(a){3(!1[0])f();3(a!=1S)6 1.1Q(9(){3(1==p||1==5)p.1a(a,$(p).u());k 1.m=a});3(1[0]==p||1[0]==5)6 n.1p||$.I&&5.P.m||5.o.m;6 1[0].m},u:9(a){3(!1[0])f();3(a!=1S)6 1.1Q(9(){3(1==p||1==5)p.1a($(p).m(),a);k 1.u=a});3(1[0]==p||1[0]==5)6 n.1o||$.I&&5.P.u||5.o.u;6 1[0].u},12:9(a){6 1.1O({A:w,J:w,v:1.z()},a)},1O:9(b,c){3(!1[0])f();l x=0,y=0,H=0,G=0,8=1[0],4=1[0],T,10,Z=$.D(8,'12'),F=$.7.1M,S=$.7.26,18=$.7.O,1n=$.7.E,R=$.7.E&&U($.7.13)>11,1m=w,1l=w,b=$.M({A:Q,15:w,1k:w,J:Q,1K:w,v:5.o},b||{});3(b.1K)6 1.1J(b,c);3(b.v.1j)b.v=b.v[0];3(8.B=='Y'){x=8.V;y=8.X;3(F){x+=h(8,'K')+(h(8,'s')*2);y+=h(8,'L')+(h(8,'q')*2)}k 3(18){x+=h(8,'K');y+=h(8,'L')}k 3((S&&1g.I)){x+=h(8,'s');y+=h(8,'q')}k 3(R){x+=h(8,'K')+h(8,'s');y+=h(8,'L')+h(8,'q')}}k{17{10=$.D(4,'12');x+=4.V;y+=4.X;3((F&&!4.B.1G(/^t[d|h]$/i))||S||R){x+=h(4,'s');y+=h(4,'q');3(F&&10=='1i')1m=Q;3(S&&10=='25')1l=Q}T=4.z||5.o;3(b.J||F){17{3(b.J){H+=4.m;G+=4.u}3(18&&($.D(4,'24')||'').1G(/23-22|20/)){H=H-((4.m==4.V)?4.m:0);G=G-((4.u==4.X)?4.u:0)}3(F&&4!=8&&$.D(4,'1e')!='N'){x+=h(4,'s');y+=h(4,'q')}4=4.1B}W(4!=T)}4=T;3(4==b.v&&!(4.B=='Y'||4.B=='1d')){3(F&&4!=8&&$.D(4,'1e')!='N'){x+=h(4,'s');y+=h(4,'q')}3(((1n&&!R)||18)&&10!='1r'){x-=h(T,'s');y-=h(T,'q')}1A}3(4.B=='Y'||4.B=='1d'){3(((1n&&!R)||(S&&$.I))&&Z!='1i'&&Z!='1z'){x+=h(4,'K');y+=h(4,'L')}3(R||(F&&!1m&&Z!='1z')||(S&&Z=='1r'&&!1l)){x+=h(4,'s');y+=h(4,'q')}1A}}W(4)}l a=j(8,b,x,y,H,G);3(c){$.M(c,a);6 1}k{6 a}},1J:9(b,c){3(!1[0])f();l x=0,y=0,H=0,G=0,4=1[0],z,b=$.M({A:Q,15:w,1k:w,J:Q,v:5.o},b||{});3(b.v.1j)b.v=b.v[0];17{x+=4.V;y+=4.X;z=4.z||5.o;3(b.J){17{H+=4.m;G+=4.u;4=4.1B}W(4!=z)}4=z}W(4&&4.B!='Y'&&4.B!='1d'&&4!=b.v);l a=j(1[0],b,x,y,H,G);3(c){$.M(c,a);6 1}k{6 a}},z:9(){3(!1[0])f();l a=1[0].z;W(a&&(a.B!='Y'&&$.D(a,'12')=='1r'))a=a.z;6 $(a)}});l f=9(){1Z\"1X: 1g 1W 14 1V\";};l h=9(a,b){6 U($.D(a.1j?a[0]:a,b))||0};l j=9(a,b,x,y,d,c){3(!b.A){x-=h(a,'K');y-=h(a,'L')}3(b.15&&(($.7.E&&U($.7.13)<11)||$.7.O)){x+=h(a,'s');y+=h(a,'q')}k 3(!b.15&&!(($.7.E&&U($.7.13)<11)||$.7.O)){x-=h(a,'s');y-=h(a,'q')}3(b.1k){x+=h(a,'1v');y+=h(a,'1h')}3(b.J&&(!$.7.O||a.V!=a.m&&a.X!=a.m)){d-=a.m;c-=a.u}6 b.J?{1f:y-c,1t:x-d,u:c,m:d}:{1f:y,1t:x}};l g=0;l i=9(){3(!g){l a=$('<1s>').D({r:16,C:16,1e:'2d',12:'1i',1f:-1R,1t:-1R}).2c('o');g=16-a.2b('<1s>').2a('1s').D({r:'16%',C:29}).r();a.28()}6 g}})(1g);",62,138,"|this||if|parent|document|return|browser|elem|function|||||||||||else|var|scrollLeft|self|body|window|borderTopWidth|width|borderLeftWidth||scrollTop|relativeTo|false|||offsetParent|margin|tagName|height|css|safari|mo|st|sl|boxModel|scroll|marginLeft|marginTop|extend|visible|opera|documentElement|true|sf3|ie|op|parseInt|offsetLeft|while|offsetTop|BODY|elemPos|parPos|520|position|version|is|border|100|do|oa|innerHeight|scrollTo|innerWidth|offsetWidth|HTML|overflow|top|jQuery|paddingTop|absolute|jquery|padding|relparent|absparent|sf|pageYOffset|pageXOffset|fn|static|div|left|offsetHeight|paddingLeft|scrollHeight|marginBottom|max|fixed|break|parentNode|Math|paddingRight|clientHeight|borderRightWidth|match|paddingBottom|borderBottomWidth|offsetLite|lite|scrollWidth|mozilla|clientWidth|offset|arguments|each|1000|undefined|apply|marginRight|empty|collection|Dimensions|outerWidth|throw|inline|outerHeight|row|table|display|relative|msie|99999999|remove|200|find|append|appendTo|auto".split("|"),0,{}));
jQuery.extend({dimScreen:function(speed,opacity,callback){var placeholder;if(jQuery("#__dimScreen").size()>0){return ;}jQuery("embed,object").each(function(){jQuery(this).css("visibility","hidden");});if(navigator.appVersion.indexOf("MSIE 6.0")!=-1){jQuery("select").each(function(){jQuery(this).css("visibility","hidden");});}if(typeof speed=="function"){callback=speed;speed=null;}if(typeof opacity=="function"){callback=opacity;opacity=null;}if(speed<1){placeholder=opacity;opacity=speed;speed=placeholder;}if(opacity>=1){placeholder=speed;speed=opacity;opacity=placeholder;}speed=(speed>0)?speed:500;opacity=(opacity>0)?opacity:0.5;jQuery("<div></div>").attr({id:"__dimScreen",fade_opacity:opacity,speed:speed}).css({background:"#000",height:((jQuery(document).height()>=jQuery(window).innerHeight())?jQuery(document).height():jQuery(window).innerHeight())+"px",left:"0px",opacity:0,position:"absolute",top:"0px",width:"100%",zIndex:999}).appendTo(document.body).fadeTo(speed,opacity,callback);jQuery(window).bind("resize",function(){jQuery("#__dimScreen").css("height",((jQuery(document).height()>=jQuery(window).innerHeight())?jQuery(document).height():jQuery(window).innerHeight())+"px");});return jQuery("#__dimScreen");},dimScreenStop:function(callback){var x=jQuery("#__dimScreen");var opacity=x.attr("fade_opacity");var speed=x.attr("speed");x.fadeOut(speed,function(){x.remove();jQuery("embed,object").each(function(){jQuery(this).css("visibility","visible");});if(navigator.appVersion.indexOf("MSIE 6.0")!=-1){jQuery("select").each(function(){jQuery(this).css("visibility","visible");});}jQuery(window).unbind("resize",function(){jQuery("#__dimScreen").css("height",((jQuery(document).height()>=jQuery(window).innerHeight())?jQuery(document).height():jQuery(window).innerHeight())+"px");});if(typeof callback=="function"){callback();}});}});var $j=jQuery.noConflict();(function($){$.ifixpng=function(customPixel){$.ifixpng.pixel=customPixel;};$.ifixpng.getPixel=function(){return $.ifixpng.pixel||"/kickapps/images/pixel.gif";};var hack={ltie7:$.browser.msie&&$.browser.version<7,filter:function(src){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+src+"')";}};$.fn.ifixpng=hack.ltie7?function(){return this.each(function(){var $$=$(this);var base=$("base").attr("href");if($$.is("img")||$$.is("input")){if($$.attr("src")){if($$.attr("src").match(/.*\.png([?].*)?$/i)){var source=(base&&$$.attr("src").substring(0,1)!="/")?base+$$.attr("src"):$$.attr("src");$$.css({filter:hack.filter(source),width:$$.width(),height:$$.height()}).attr({src:$.ifixpng.getPixel()}).positionFix();}}}else{var image=$$.css("backgroundImage");if(image.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)){image=RegExp.$1;$$.css({backgroundImage:"none",filter:hack.filter(image)}).children().children().positionFix();}}});}:function(){return this;};$.fn.iunfixpng=hack.ltie7?function(){return this.each(function(){var $$=$(this);var src=$$.css("filter");if(src.match(/src=["']?(.*\.png([?].*)?)["']?/i)){src=RegExp.$1;if($$.is("img")||$$.is("input")){$$.attr({src:src}).css({filter:""});}else{$$.css({filter:"",background:"url("+src+")"});}}});}:function(){return this;};$.fn.positionFix=function(){return this.each(function(){var $$=$(this);var position=$$.css("position");if(position!="absolute"&&position!="relative"){$$.css({position:"relative"});}});};})(jQuery);jQuery.fn.noAnimate=function(){var changeList=[["fadeOut",function(speed,callback){$j(this).css("display","none");if(typeof callback=="function"){callback();}return $(this);}],["fadeIn",function(speed,callback){$j(this).css("display","block");if(typeof callback=="function"){callback();}return $(this);}],["fadeTo",function(speed,opacity,callback){var ie=(opacity!=1&&opacity!=0)?String(opacity).substr(2)+"0":opacity+"00";ie=parseFloat(ie);$j(this).css({"filter":"alpha(opacity="+ie+")","-moz-opacity":opacity,"opacity":opacity});}]];for(var i=0;i<changeList.length;i++){$j.fn[changeList[i][0]]=changeList[i][1];
}};if($j.browser.msie&&$j.browser.version.indexOf("6.")!=-1){jQuery.fn.slideDown=function(speed,callback){return this.show(callback);};jQuery.fn.slideUp=function(speed,callback){return this.hide(callback);};}jQuery.fn.extend({ScrollTo:function(b,c){return this.each(function(){var a=$j(this).offset().top;$j("html,body").animate({scrollTop:a},b,c);});}});

/* KaObject.js */

if(typeof Ka==="undefined"){if(typeof $j!=="undefined"){$j(function(){if(typeof Ka!=="undefined"&&typeof Ka.Info!=="undefined"&&typeof Ka.Messages=="undefined"){Ka.Messages={ajaxError:"There was an issue processing your request. Please try again later.",flagCommentAsInappropriate:"Flagging notifies the "+Ka.Info.SITENAME+' webmaster of inappropriate content. If you believe this content violates the <a href="/kickapps/service/displayTOS.kickAction?as='+Ka.Info.AFFILIATESITEID+'" target="_blank">Terms of Service</a>, please write a short description why. Thank you.'};}});}window.Ka=function(){if(typeof $==="undefined"){$=function(x){return document.getElementById(x);};}if(!Array.forEach||!Array.prototype.forEach){Array.prototype.forEach=function(func){var len=this.length;if(typeof func!=="function"){Ka.error("argument passed to forEach is not a function");return ;}var thisp=arguments[1];for(var i=0;i<len;i++){if(i in this){func.call(thisp,this[i],i,this);}}};}Array.prototype.inArray=function(value){var i;for(i=0;i<this.length;i++){if(this[i]===value){return true;}}return false;};String.prototype.trim=function(){var a=this.replace(/^\s+/,"");return a.replace(/\s+$/,"");};var windowQueryObj;var Internal={formatArguements:function(args){var retString="";for(var z=0;z<args.length;z++){retString+="'"+args[z]+"'";if(args[z+1]){retString+=",";}}return retString;},getElementTypeFromString:function(element){if(typeof element==="object"){return"object";}var firstChar=element.charAt(0);if(firstChar=="#"){return"id";}else{if(firstChar==="."){return"class";}else{Ka.warn('argument passed ("'+element+'") is unknown.');return"unkown";}}},trimFirstChar:function(string){return string.substr(1,string.length-1);},argsToObj:function(args){var arr=[];for(var i=0;i<args.length;i++){var obj={};obj.elementType=this.getElementTypeFromString(args[i]);obj.elementString=this.trimFirstChar(args[i]);obj.elementsContainer=null;if(obj.elementType=="id"){obj.elementsContainer=document.getElementById(obj.elementString);}else{if(obj.elementType==="class"){var retVal=[];var elements=document.getElementsByTagName("*");for(var x=0;x<elements.length;x++){if(elements[x].className.indexOf(" ")>=0){var classes=elements[x].className.split(" ");for(var j=0;j<classes.length;j++){if(classes[j]==obj.elementString){retVal.push(elements[x]);}}}else{if(elements[x].className==obj.elementString){retVal.push(elements[x]);}}}if(retVal.length>0){obj.elementsContainer=retVal;}}}if(obj.elementType!="unknown"){arr.push(obj);}}return arr;}};return{version:"1.0",errors:false,warnings:false,firebug:(function(){var userAgent=navigator.userAgent.toLowerCase();var bool;if(userAgent.indexOf("safari")==-1){bool=(window.console)?true:false;}else{bool=(window.console.firebug)?true:false;}return bool;})(),Settings:{popups:{offSetLeft:0,offSetTop:0},tinyMCE:{defaultHeight:300,resizingMinHeight:240,resizingMaxHeight:500,theme_advanced_buttons1:"bold,italic,link,unlink,forecolor,backcolor,bullist,numlist,hr,blockquote,charmap,code,kickmedia",theme_advanced_buttons2:"",theme_advanced_buttons3:"",plugins:"kickmedia,media"},autoplay:{mediaPlayPage:"true"}},$:function(){var argsObj=Internal.argsToObj(arguments);if(argsObj.length==1){return argsObj[0].elementsContainer;}else{if(argsObj.length>1){var arr=[];for(var i=0;i<argsObj.length;i++){if(argsObj[i].elementsContainer instanceof Array){for(var a=0;a<argsObj[i].elementsContainer.length;a++){thisObj=argsObj[i].elementsContainer[a];if(arr.inArray(thisObj)===false){arr.push(thisObj);}}}else{arr.push(argsObj[i].elementsContainer);}}return arr;}}},alert:function(string){if(Ka.firebug){console.log("KaObject: "+string);}else{alert("KaObject: "+string);}},warn:function(string){if(Ka.warnings){if(Ka.firebug){console.warn("KaObject: "+string+"\nLast called public Ka method: "+Internal.lastMethod);}else{alert("KaObject warning: "+string+"\nLast called public Ka method: "+Internal.lastMethod);}}},error:function(string){if(Ka.errors){if(Ka.firebug){console.error("KaObject: "+string+"\nLast called public Ka method: "+Internal.lastMethod);
}else{alert("KaObject error: "+string+"\nLast called public Ka method: "+Internal.lastMethod);}}},addDOMLoadEvent:function(func){$j(document).ready(func);},addEvent:function(obj,type,fn){if(obj.addEventListener){obj.addEventListener(type,fn,false);}else{if(obj.attachEvent){obj["e"+type+fn]=fn;obj[type+fn]=function(){obj["e"+type+fn](window.event);};obj.attachEvent("on"+type,obj[type+fn]);}}},paypalAddEvent:function(obj,fn){$j("select."+obj).change(fn);},removeEvent:function(obj,type,fn){if(obj.removeEventListener){obj.removeEventListener(type,fn,false);}else{if(obj.detachEvent){obj.detachEvent("on"+type,obj[type+fn]);obj[type+fn]=null;obj["e"+type+fn]=null;}}},toggle:function(){for(var i=0;i<arguments.length;i++){var elementHolder=this.$(arguments[i]);if(elementHolder instanceof Array){for(var a=0;a<elementHolder.length;a++){if(elementHolder[a].style.display=="block"||elementHolder[a].style.display===""){elementHolder[a].style.display="none";}else{elementHolder[a].style.display="block";}}}else{if(elementHolder.tagName){if(elementHolder.style.display=="block"||elementHolder.style.display===""){elementHolder.style.display="none";}else{elementHolder.style.display="block";}}else{}}}},show:function(){for(var i=0;i<arguments.length;i++){var elementHolder=this.$(arguments[i]);if(elementHolder instanceof Array){for(var a=0;a<elementHolder.length;a++){if(elementHolder[a].style.display!="block"){elementHolder[a].style.display="block";}}}else{if(elementHolder.tagName){if(elementHolder.style.display!="block"){elementHolder.style.display="block";}}else{}}}},hide:function(){for(var i=0;i<arguments.length;i++){var elementHolder=this.$(arguments[i]);if(elementHolder instanceof Array){for(var a=0;a<elementHolder.length;a++){if(elementHolder[a].style.display!="none"){elementHolder[a].style.display="none";}}}else{if(elementHolder.tagName){if(elementHolder.style.display!="none"){elementHolder.style.display="none";}}else{}}}},Cookie:{create:function(name,value,days){var expires;if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));expires="; expires="+date.toGMTString();}else{expires="";}document.cookie=name+"="+value+expires+"; path=/";},read:function(name){var nameEQ=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" "){c=c.substring(1,c.length);}if(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length);}}return null;},erase:function(name){this.create(name,"",-1);}},getClassNamesFromId:function(el){var id=document.getElementById(el);if(id){if(id.className){var retVal=[];if(id.className.indexOf(" ")>=0){var classes=id.className.split(" ");for(var j=0;j<classes.length;j++){retVal.push(classes[j]);}}else{retVal.push(id.className);}return retVal;}else{return null;}}else{return null;}},hasInURL:function(string){if(window.location.href.indexOf(string)>0){return true;}return null;},replaceText:function(elId,oldString,newString,bool){if(document.getElementById(elId)){var elementId=document.getElementById(elId);var innerText=elementId.innerHTML;if(!bool){elementId.innerHTML=innerText.replace(oldString,newString);}else{elementId.innerHTML=innerText.replace(new RegExp(oldString,"g"),newString);}}else{}},pageIs:function(string){var classAr=this.getClassNamesFromId("ka_mainContainer");if(classAr){var bool=false;for(var i=0;i<classAr.length;i++){if(string==classAr[i]){bool=true;break;}}return bool;}else{return false;}},addMenuItem:function(obj){function createListElement(){var newLI=document.createElement("li");if(obj.listClass){newLI.className=obj.listClass;}if(obj.listId){newLI.id=obj.listId;}var newA=document.createElement("a");if(obj.linkUrl){newA.href=obj.linkUrl;}if(obj.linkId){newA.id=obj.linkId;}if(obj.linkClass){newA.className=obj.linkClass;}if(obj.linkTarget){newA.target=obj.linkTarget;}if(obj.linkHtml){newA.innerHTML="<span>"+obj.linkHtml+"</span>";}newLI.appendChild(newA);return newLI;}if(obj.onlyInURL){var foundInHeader=false;var onlyArr=obj.onlyInURL.split(",");
for(var i=0;i<onlyArr.length;i++){onlyArr[i]=onlyArr[i].trim();if(window.location.href.indexOf(onlyArr[i])!=-1){foundInHeader=true;}}if(foundInHeader===false){return ;}}else{if(obj.ignoreInURL){var ignoreArr=obj.ignoreInURL.split(",");for(var z=0;z<ignoreArr.length;z++){ignoreArr[z]=ignoreArr[z].trim();if(window.location.href.indexOf(ignoreArr[z])!=-1){return ;}}}}var ulList;if(obj.menu=="primary"){ulList=Ka.$("#ka_headerTopNav_ul");}else{if(obj.menu=="secondary"){ulList=Ka.$("#ka_headerSubNav_list");}}if(Ka.$("#ka_headerTopNav_ul")){var lis=ulList.getElementsByTagName("li");var newItem=createListElement();if(!obj.listPlacement||obj.listPlacement=="last"||(obj.listPlacement>=(lis.length+1))){ulList.appendChild(newItem);}else{ulList.insertBefore(newItem,lis[obj.listPlacement-1]);}}},setHelperPopUp:function(elementToSet,elementToPop){if(!elementToSet.__Ka_popupOn&&typeof $j(elementToSet).attr("onmouseover")=="string"){if($j(elementToSet).attr("onmouseover").indexOf("setHelperPopUp")!=-1){$j(elementToPop).fadeIn();}}if(!elementToSet.__Ka_popupOn){$j(elementToSet).hover(function(){$j(elementToPop).fadeIn();},function(){$j(elementToPop).fadeOut();});elementToSet.__Ka_popupOn=true;}},addPrimaryMenuItem:function(obj){obj.menu="primary";this.addMenuItem(obj);},addSecondaryMenuItem:function(obj){obj.menu="secondary";this.addMenuItem(obj);},preloadImages:function(array){if(!array){return ;}var preloadedImagesContainer=[];for(var i=0;i<array.length;i++){var image=new Image();image.src=array[i];preloadedImagesContainer.push(image);}},removeStyle:function(fileName){var styleLinks=document.getElementsByTagName("link");for(var i=0;i<styleLinks.length;i++){if(styleLinks[i].href.indexOf(fileName)>0){styleLinks[i].disabled=true;}}},keepPosition:(function(){var l,t,fixedLeft,fixedTop;return function(el){el=$j(el);$j(el).css("zIndex","1000");if($j(el).css("position")!="abolute"){$j(el).css("position","absolute");}function keepPosition(){l=$j(document).scrollLeft()+fixedLeft;t=$j(document).scrollTop()+fixedTop;$j(el).css({top:t,left:l});}function onStopDrag(){fixedLeft=$j(el).offset().left-$j(document).scrollLeft();fixedTop=$j(el).offset().top-$j(document).scrollTop();$j(window).unbind("scroll");$j(window).unbind("resize");$j(window).bind("scroll",keepPosition);$j(window).bind("resize",keepPosition);}onStopDrag();$j(el).Draggable({zIndex:1000,onStop:onStopDrag});};})(),popup:(function(){var lastPop,created,l,t,fixedLeft,fixedTop,callBackPopped,callBackClose,lastCenterElementFunc;function prepAndCheck(arg){if(arg.jquery){created=true;return arg;}if($j(arg).length==1){$arg=$j(arg);return $arg;}else{$arg=$j("<p>"+arg+"</p>");}$t=$j('<div class="popup_top"></div');$m=$j('<div class="popup_mainBody"></div').append(arg).prepend($j('<div class="ka_closePopup"></div>').click(function(){Ka.popup();}));$b=$j('<div class="popup_bottom"></div');$e=$j('<div class="ka_popup ka_popupBackgroundColor"></div>').append($t).append($m).append($b);return $e;}function centerElement($popEl){l=(($j(window).innerWidth()/2)-($popEl.width()/2)+$j(document).scrollLeft()+Ka.Settings.popups.offSetLeft);t=(($j(window).innerHeight()/2)-($popEl.height()/2)+$j(document).scrollTop()+Ka.Settings.popups.offSetTop);$popEl.css({position:"absolute",top:t,left:l});}function cleanOutPopups($popEl){if(created){$j(lastPop).remove();}else{$j(lastPop).hide();}lastPop=null;created=null;$j(window).unbind("scroll",lastCenterElementFunc);$j(window).unbind("resize",lastCenterElementFunc);}return function(){function keepPosition(){l=$j(document).scrollLeft()+fixedLeft;t=$j(document).scrollTop()+fixedTop;$popEl.css({position:"absolute",top:t,left:l});}function killLastPopup($popEl){if(typeof lastPop!=="undefined"&&lastPop!==null){cleanOutPopups($popEl);}}var $popEl;if(arguments.length>0&&typeof arguments[0]==="string"){if(arguments[0].indexOf("ka_loginPopup")!==-1){if(Ka.Info.SSOENABLED==="true"){document.location=Ka.Info.SSOLOGINURL+((Ka.Info.SSOLOGINURL.indexOf("?")>=0)?"&":"?")+"redirectUrl="+encodeURIComponent(window.location.pathname+window.location.search);
return false;}}}switch(arguments.length){case 0:cleanOutPopups(lastPop?lastPop:$popEl);$j("#__dimScreen").unbind("click");jQuery.dimScreenStop();break;case 1:if(typeof arguments[0]=="function"){cleanOutPopups(lastPop?lastPop:$popEl);jQuery.dimScreenStop(arguments[0]);return ;}else{$popEl=prepAndCheck(arguments[0]);}break;case 2:$popEl=prepAndCheck(arguments[0]);if(typeof arguments[1]=="function"){callBackPopped=arguments[1];}break;case 3:$popEl=prepAndCheck(arguments[0]);callBackPopped=arguments[1];callBackClose=arguments[2];break;}if($popEl!==null&&typeof $popEl!=="undefined"){killLastPopup(lastPop?lastPop:$popEl);$popEl.css("zIndex","1000");lastPop=$popEl;if(Ka.Info.PAGE.indexOf("affiliate/")!=-1){$popEl.appendTo("div#topcontainer");}else{if($("ka_mainContainer")){$popEl.appendTo("div#ka_mainContainer");}else{$popEl.appendTo(document.body);}}$popEl.show();centerElement($popEl);if(callBackPopped){callBackPopped();}$j.dimScreen(800,0.4);lastCenterElementFunc=function(){centerElement($popEl);};$j(window).scroll(lastCenterElementFunc);$j(window).resize(lastCenterElementFunc);if($popEl.attr("id")!="ka_ProgressBarDiv"){$j("#__dimScreen").one("click",function(){cleanOutPopups(lastPop?lastPop:$popEl);if(callBackClose){jQuery.dimScreenStop(callBackClose);}else{jQuery.dimScreenStop();}});}centerElement($popEl);setTimeout(function(){centerElement($popEl);},1);}};})(),prompt:function(message,continueCallback,cancelCallback){if(cancelCallback){cancelCallback=function(){Ka.popup(cancelCallback);};}else{cancelCallback=function(){Ka.popup();};}$top=$j('<div class="popup_top"></div');$middle=$j('<div class="popup_mainBody"></div').append($j('<div class="ka_closePopup"></div>').click(function(){cancelCallback();})).append($j("<p>"+message+"</p>")).append($j('<input id="ka_promptInput" type="text"/>')).append($j('<div id="ka_popupButtonHolder"></div>'));$bottom=$j('<div class="popup_bottom"></div');$e=$j('<div class="ka_popup ka_prompt ka_popupBackgroundColor"></div>').append($top).append($middle).append($bottom);this.popup($e,function(){$("ka_promptInput").focus();});$j("#ka_popupButtonHolder").append($j('<input id="ka_popupSend" type="button" value="Send" />').one("click",function(){var submitText=$("ka_promptInput").value;Ka.popup(function(){if(continueCallback){continueCallback(submitText);}});})).append($j('<input id="ka_popupCancel" type="button" value="Cancel" />').one("click",function(){cancelCallback();}));},confirm:function(message,continueCallback,cancelCallback){$top=$j('<div class="popup_top"></div');$middle=$j('<div class="popup_mainBody"></div').append($j('<div class="ka_closePopup"></div>').click(function(){if(cancelCallback){Ka.popup(cancelCallback);}else{Ka.popup();}})).append($j("<p>"+message+"</p>")).append($j('<div id="ka_popupButtonHolder"></div>'));$bottom=$j('<div class="popup_bottom"></div');$e=$j('<div class="ka_popup ka_confirm ka_popupBackgroundColor"></div>').append($top).append($middle).append($bottom);if(cancelCallback){this.popup($e,function(){},cancelCallback);}else{this.popup($e);}$j("#ka_popupButtonHolder").append($j('<input id="ka_popupSend" type="button" value="Ok" />').one("click",function(){Ka.popup(function(){continueCallback();});})).append($j('<input id="ka_popupCancel" type="button" value="Cancel" />').one("click",function(){if(cancelCallback){Ka.popup(cancelCallback);}else{Ka.popup();}}));},compareArrays:function(oldArr,newArr,posBool){if(oldArr.length!=newArr.length){return Ka.alert("compareArrays: Arrays must be the same length");}var diffArr=[];for(var i=0;i<oldArr.length;i++){if(oldArr[i]!=newArr[i]){if(posBool){diffArr.push([newArr[i],(i+1)]);}else{diffArr.push(newArr[i]);}}}return diffArr;},String:{trim:function(a){if(a==""){return"";}a=a.replace(/^\s+/,"");return a.replace(/\s+$/,"");},singleSpace:function(string){var completeText="";string=string.split("  ");for(var i=0;i<string.length;i++){if(string[i+1]){if(string[i+1].charAt(0)!=" "){string[i]=string[i]+" ";}}completeText+=string[i];}return completeText;
},encodeDoubleQuotes:function(string){return string.replace(/"/g,"&quot;");},addSlashSingleQuote:function(string){return string.replace(/'/g,"'");},addSlashDoubleQuote:function(string){return string.replace(/"/g,'"');},encodeHTML:function(string){var string=string.replace(/&/g,"&amp;");string=string.replace(/"/g,"&quot;");string=string.replace(/</g,"&lt;");string=string.replace(/>/g,"&gt;");return string;}},Array:{trim:function(arr){for(var i=0;i<arr.length;i++){arr[i]=Ka.String.trim(arr[i]);}return arr;}},Util:{getLocationParam:function(qName){if(window.location.search.length!==0){if(!windowQueryObj){if(window.location.search.length!==0){windowQueryObj={};queryString=window.location.search.substr(1,window.location.search.length);queryArr=queryString.split("&");for(var i=0;i<queryArr.length;i++){var splitPair=queryArr[i].split("=");windowQueryObj[splitPair[0]]=splitPair[1];}}}if(windowQueryObj[qName]){return(windowQueryObj[qName]);}}},rgbToHex:function(rgb){if(!rgb){return ;}var rgb=rgb.toString();rgb=rgb.substr(4,rgb.length);rgb=rgb.substr(0,rgb.length-1);rgb=rgb.split(",");Ka.Array.trim(rgb);var toHex=function(N){if(N==null){return"00";}N=parseInt(N);if(N==0||isNaN(N)){return"00";}N=Math.max(0,N);N=Math.min(N,255);N=Math.round(N);return"0123456789ABCDEF".charAt((N-N%16)/16)+"0123456789ABCDEF".charAt(N%16);};return toHex(rgb[0])+toHex(rgb[1])+toHex(rgb[2]);},loadCss:function(url){var l=document.createElement("link");l.rel="stylesheet";l.href=url;document.getElementsByTagName("head")[0].appendChild(l);},loadScript:function(url){var s=document.createElement("script");s.type="text/javascript";s.src=url;document.getElementsByTagName("head")[0].appendChild(s);},wbr:function(str,num){return str.replace(RegExp("([\\w<]{"+num+"})([\\w<])","g"),function(all,text,chara){return text+"<wbr>"+chara;});}}};}();}Ka.popupClass=function(type){this.type=type;};Ka.popupClass.prototype={type:"alert",id:null,openCallBack:function(){},closeCallBack:function(){Ka.popup();},title:"",content:"",width:"400px",height:"auto",zIndex:"1000",greyOutOnPop:true,blockBackground:false,showCloseButton:true,offsetTop:Ka.Settings.popups.offSetTop,offsetLeft:Ka.Settings.popups.offSetLeft,mainClass:"ka_popup",promptClass:"ka_prompt",confirmClass:"ka_confirm",alertClass:"ka_alert",init:function(){var $e=this.createPopup();Ka.popup($e);},createPopup:function(){$top=$j('<div class="popupClass_top"><h3>'+this.title+"</h3></div").append($j('<div class="ka_closePopupClass"></div>').click(function(){Ka.popup();}));$middle=$j('<div class="popupClass_mainBody"></div').append($j("<p>"+this.content+"</p>"));$bottom=$j('<div class="popupClass_bottom"></div');$e=$j('<div class="ka_popupClass ka_prompt ka_popupClassBackgroundColor"></div>').css("width",this.width).css("height",this.height);if(this.id){$e.attr("id",this.id);}$e.append($top).append($middle).append($bottom);return $e;},centerPopup:function(el){$popEl=$j(el);l=(($j(window).innerWidth()/2)-($popEl.width()/2)+$j(document).scrollLeft()+this.offSetLeft);t=(($j(window).innerHeight()/2)-($popEl.height()/2)+$j(document).scrollTop()+this.offSetTop);$popEl.css({position:"absolute",top:t,left:l});},closePopup:function(){}};

/* commonLibrary.js */

$j(document).ready(function(){if(Ka.Info.USERID==""){if($("ka_loginPopup")){$j("#ka_loginPopup input").keypress(function(event){return ka_loginPopupInputCheck(this,event);});$j("a.ka_memberAction").click(function(){ka_toggleDiv("form#ka_loginPopup",function(){$("username").focus();});return false;});$j("input.ka_memberAction").click(function(){ka_toggleDiv("form#ka_loginPopup",function(){$("username").focus();});return false;});}}else{ka_ping();if(document.location.href.indexOf("LE=launch")!=-1){$("ka_LE_open_anchor").onclick();}}if($("ka_mainContainer")){if($j.browser.msie){if($j("body > div:first").attr("id")!=="ka_mainContainer"){jQuery.extend({dimScreen:function(speed,opacity,callback){jQuery("embed,object").each(function(){jQuery(this).css("visibility","hidden");});if(navigator.appVersion.indexOf("MSIE 6.0")!=-1){jQuery("select").each(function(){jQuery(this).css("visibility","hidden");});}return jQuery();},dimScreenStop:function(callback){jQuery("embed,object").each(function(){jQuery(this).css("visibility","visible");});if(navigator.appVersion.indexOf("MSIE 6.0")!=-1){jQuery("select").each(function(){jQuery(this).css("visibility","visible");});}if(typeof callback=="function"){callback();}return jQuery();}});}}}});function ka_LEAssets(type){if(navigator.userAgent.indexOf(" Safari")!=-1){Ka.confirm("We're currently working on some changes to the Site Styler, "+"and it will temporarily only work in Internet Explorer 6 (Windows), "+"Internet Explorer 7 (Windows), or FireFox (MAC & Windows).<br /><br />"+"Thanks for your understanding.");}else{var node=document.createElement("script");node.type="text/javascript";node.src=Ka.Info.STATICSERVER+"/kickapps/js/LE/LEHTML.js?v=build_"+Ka.Info.RELNUM;document.getElementsByTagName("head")[0].appendChild(node);Ka.LEInterval=setInterval(function(){if(typeof ka_LEMedia=="function"){clearInterval(Ka.LEInterval);var OLE=document.createElement("div");OLE.id="ka_le";OLE.className="ka_le_br";OLE.innerHTML=LEHTML;OLE.style.display="none";document.getElementById("ka_mainContainer").parentNode.insertBefore(OLE,document.getElementById("ka_mainContainer"));ka_LEMedia(type);}},100);}}function ka_loginPopupInputCheck(input,event){var keyCode=event.keyCode;if((keyCode==13&&input.value!="")||keyCode==3){if(input.id=="username"){if(input.value!=""&&$("password").value!=""){return true;}else{if(input.value!=""){setTimeout(function(){$("password").focus();},1);}}return false;}}else{if(keyCode==13||keyCode==3){return false;}}return true;}function basicAdvancedSearch(thisLink){var searchLink=thisLink;var basicSearchId;$j("#ka_searchAdv1 > ul > li > input").each(function(){if(this.checked=="true"){basicSearchId=this.id;return ;}});if(searchLink.innerHTML=="advanced"){searchLink.innerHTML="basic";searchLink.id="ka_search_basic";$("ka_searchAdv1").style.display="block";$j("#ka_searchAdv1 < ul < li < input").each(function(){if(this.id==basicSearchId){this.checked=false;}else{this.checked=true;}});}else{searchLink.innerHTML="advanced";searchLink.id="ka_search_advanced";$("ka_searchAdv1").style.display="none";}return false;}function ka_BrowserDetector(){this.detect=navigator.userAgent.toLowerCase();this.OS=null;this.browser=null;this.version=null;this.total=null;this.thestring=null;this.checkIt=function(string){place=this.detect.indexOf(string)+1;this.thestring=string;return place;};if(this.checkIt("konqueror")){this.browser="Konqueror";this.OS="Linux";}else{if(this.checkIt("safari")){this.browser="Safari";}else{if(this.checkIt("omniweb")){this.browser="OmniWeb";}else{if(this.checkIt("opera")){this.browser="Opera";}else{if(this.checkIt("webtv")){this.browser="WebTV";}else{if(this.checkIt("icab")){this.browser="iCab";}else{if(this.checkIt("msie")){this.browser="Internet Explorer";}else{if(!this.checkIt("compatible")){this.browser="Netscape Navigator";this.version=this.detect.charAt(8);}else{this.browser="An unknown browser";}}}}}}}}if(!this.version){this.version=this.detect.charAt(place+this.thestring.length);}if(!this.OS){if(this.checkIt("linux")){this.OS="Linux";
}else{if(this.checkIt("x11")){this.OS="Unix";}else{if(this.checkIt("mac")){this.OS="Mac";}else{if(this.checkIt("win")){this.OS="Windows";}else{this.OS="an unknown operating system";}}}}}}ka_bd=new ka_BrowserDetector();ka_imagesArray=new Array();function ka_preloadImage(src){if(document.images){i=ka_imagesArray.length;ka_imagesArray[i]=new Image();ka_imagesArray[i].src=src;}}function ka_getOffsetLeft(el){var ol=el.offsetLeft;while((el=el.offsetParent)!=null){ol+=el.offsetLeft;}return ol;}function ka_getOffsetTop(el){var ot=el.offsetTop;while((el=el.offsetParent)!=null){ot+=el.offsetTop;}return ot;}function ka_findObj(id){return document.getElementById(id);}function ka_disabledInputElement(inptObjName,decision){var o=ka_findObj(inptObjName);if(o==undefined||o==null){return ;}o.disabled=decision;}function ka_getWindowDimensions(){var w=$j(window).innerWidth();var h=$j(window).innerHeight();return{width:w,height:h};}function ka_getComputedStyle(_10,_11){if(document.defaultView&&document.defaultView.getComputedStyle){var computedStyle=document.defaultView.getComputedStyle(_10,null);if(computedStyle==null){if(_11=="width"){return"689px";}else{if(_11=="height"){return"297px";}}}return document.defaultView.getComputedStyle(_10,null).getPropertyValue(_11);}else{if(_10.currentStyle){return _10.currentStyle[_11];}else{return null;}}}function ka_getComputedHeight(_12){return $j(_12).height();}function ka_getComputedWidth(_14){return $j(_14).width();}function ka_getDocumentScrollTop(){return $j(document).scrollTop();}function ka_getDocumentScrollLeft(){return $j(document).scrollLeft();}function ka_getDocumentScrollWidth(){if(document.documentElement&&document.documentElement.scrollWidth){s=document.documentElement.scrollWidth;}else{if(document.body){s=document.body.scrollWidth;}else{s=0;}}return s;}function ka_getDocumentScrollHeight(){if(document.documentElement&&document.documentElement.scrollHeight){s=document.documentElement.scrollHeight;}else{if(document.body){s=document.body.scrollHeight;}else{s=0;}}return s;}function ka_positionCenter(id){obj=document.getElementById(id);d=ka_getWindowDimensions();l=(d.width/2)-(ka_getComputedWidth(obj)/2);l+=ka_getDocumentScrollLeft();if(!document.all){l-=3;}t=(d.height/2)-(ka_getComputedHeight(obj)/2);t+=ka_getDocumentScrollTop();ka_positionObj(id,t,l);}function ka_positionObj(id,top,left){try{obj=document.getElementById(id);obj.style.top=top+"px";obj.style.left=left+"px";}catch(e){}}function ka_thisMovie(movieName){if(navigator.appName.indexOf("Microsoft")!=-1){return window[movieName];}else{return document[movieName];}}function ka_formatDate(month,day,year,hours,minutes){var meridiem="AM";if(hours>12){hours-=12;meridiem="PM";}if(month<10){month="0"+month;}if(day<10){day="0"+day;}if(hours<10){hours="0"+hours;}if(minutes<10){minutes="0"+minutes;}return month+"/"+day+"/"+year+" "+hours+":"+minutes+" "+meridiem;}function ka_empty(val){if(val!=undefined&&val!=""){return false;}return true;}function ka_wordWrap(str,num){var s=new String(str);var words=s.split(" ");s="";for(var i=0;i<words.length;i++){var p="";var w=words[i];while(w.length>num){p+=w.slice(0,num)+" ";w=w.slice(num);}s+=p+w;if((i+1)<words.length){s+=" ";}}return s;}function ka_addEvent(obj,type,fn){if(obj.addEventListener){obj.addEventListener(type,fn,false);}else{if(obj.attachEvent){obj["e"+type+fn]=fn;obj[type+fn]=function(){obj["e"+type+fn](window.event);};obj.attachEvent("on"+type,obj[type+fn]);}}}function ka_removeEvent(obj,type,fn){if(obj.removeEventListener){obj.removeEventListener(type,fn,false);}else{if(obj.detachEvent){obj.detachEvent("on"+type,obj[type+fn]);obj[type+fn]=null;obj["e"+type+fn]=null;}}}String.prototype.equalsIgnoreCase=MatchIgnoreCase;function MatchIgnoreCase(strTerm){var strToSearch=this.toLowerCase();strTerm=strTerm.toLowerCase();if(strToSearch==strTerm){return true;}else{return false;}}function getImageDimension(imageObj){var image=new Image();image.src=imageObj.src;var h=image.height;var w=image.width;return w+"x"+h+"px";
}function ka_getImageDimension(image,id){var dim=getImageDimension(image);setImageDimensionText(dim,id);}function setImageDimensionText(dim,id){imageDim=document.getElementById(id);imageDim.innerHTML=dim;}function toggleFlashVideoOn(){jQuery("embed,object").each(function(){jQuery(this).css("visibility","visible");});}function toggleFlashVideoOff(){jQuery("embed,object").each(function(){jQuery(this).css("visibility","hidden");});}function ka_ping(){KickAppsBizComponent.pingAlive(ka_gotPinged);}function ka_gotPinged(flag){setTimeout("ka_ping()",300000);return flag;}var kaTimeOutObj={disabled:false,action:null,time:null,idleTimeOut:null,setInactivityTimer:function(time,action){},resetTimeOut:function(){},autoLogout:function(kickUrl){}};var win=null;function openDep(url){win=window.open(url,"_kickapps");}function closeDep(){if(win&&win.open&&!win.closed){win.close();}}function signOutUser(){switch(Ka.Info.PAGETYPE){case"MKP":document.location.href="/kickapps/user/logoutUser.kickAction?kplogout=true";break;case"MB":if(Ka.Info.PAGE.indexOf("new")==0){document.location.href="/kickapps/user/logoutUser.kickAction";}else{$j.get("/kickapps/user/logoutUser.kickAction",function(){document.location.href=document.location.href;});}break;default:$j.get("/kickapps/user/logoutUser.kickAction",function(){document.location.href=document.location.href;});break;}}function nonEditableFileField(file){file.blur();}function ka_toggleDiv(id){if(id!="ka_photoPreviewDiv"){kap_SSOLoginCheck();}Ka.popup(id,function(){if(id=="ka_loginPopup"||id=="form#ka_loginPopup"){$("username").focus();}});}function kap_SSOLoginCheck(){if($("ssoEnabled")){if($("ssoEnabled").value=="true"){var loginChar="?";var loginURL=$("ssoLoginUrl").value;if(loginURL.indexOf("?")!=-1){loginChar="&";}var redirectURL=encodeURIComponent(window.location.href);document.location.href=$("ssoLoginUrl").value+""+loginChar+"redirectUrl="+redirectURL;}}}function ka_shadeOn(){jQuery.dimScreen(800,0.4,function(){});}function ka_shadeOff(){jQuery.dimScreenStop();jQuery("#ka_shadeDiv").fadeOut("slow");}function ka_Help(contact,email,host){document.write("<a href="+"mail"+"to:"+email+"@"+host+">Help</a>");}function ka_openChat(){kaTimeOutObj.disabled=true;kaTimeOutObj.resetTimeOut();window.open("/kickapps/service/displayChatWindow.kickAction?as="+Ka.Info.AFFILIATESITEID,"Terms","width=1000,height=700,location=no,menubar=no,resizable=yes,scrollbars=yes,toolbar=no,status=no");}