
(function(window,undefined){var jUtil=function(selector,context){return new jUtil.fn.init(selector,context);},_$=window.$,document=window.document,rootjUtil,userAgent=navigator.userAgent,browserMatch,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,readyBound=false,DOMContentLoaded,readyList=[],toString=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty;jUtil.fn=jUtil.prototype={init:function(selector,context){if(!selector){return this;}
if(selector.nodeType){this.context=this.elements[0]=selector;this.length=1;return this;}
if(selector==="body"&&!context){this.context=document;this.elements[0]=document.body;this.selector="body";this.length=1;return this;}
if(typeof selector==="string"){var jes=[];var doc=(context?context.ownerDocument||context:document);var elements=doc.querySelectorAll(selector);if(elements&&elements.length){for(var i=0;i<elements.length;i++){jes.push(elements[i]);}}
this.elements=jes;this.length=jes.length;return this;}else if(jUtil.isFunction(selector)){return rootjUtil.ready(selector);}},selector:"",jutil:"1.0.0",length:0,elements:[],size:function(){return this.length;},get:function(num){return num==null?this.elements:this.elements[num];},eq:function(i){var ret=jUtil();var elem=this.elements[i];if(elem){ret.elements=[elem];ret.length=1;}
return ret;},each:function(callback,args){jUtil.each(this.elements,callback,args);return this;},ready:function(fn){jUtil.bindReady();if(jUtil.isReady){fn.call(document,jUtil);}else if(readyList){readyList.push(fn);}
return this;},};jUtil.fn.init.prototype=jUtil.fn;jUtil.extend=jUtil.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options,name,src,copy;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2;}
if(typeof target!=="object"&&!jUtil.isFunction(target)){target={};}
if(length===i){target=this;--i;}
for(;i<length;i++){if((options=arguments[i])!=null){for(name in options){src=target[name];copy=options[name];if(target===copy){continue;}
if(deep&&(jUtil.isPlainObject(copy)||jUtil.isArray(copy))){var clone=src&&(jUtil.isPlainObject(src)||jUtil.isArray(src))?src:jUtil.isArray(copy)?[]:{};target[name]=jUtil.extend(deep,clone,copy);}else if(copy!==undefined){target[name]=copy;}}}}
return target;};jUtil.extend({noConflict:function(deep){window.$=_$;if(deep){window.jUtil=_jUtil;}
return jUtil;},isReady:false,ready:function(){if(!jUtil.isReady){jUtil.isReady=true;if(readyList){var fn,i=0;while((fn=readyList[i++])){fn.call(document,jUtil);}
readyList=null;}}},bindReady:function(){if(readyBound){return;}
readyBound=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false);window.addEventListener("load",jUtil.ready,false);}},isFunction:function(obj){return toString.call(obj)==="[object Function]";},isArray:function(obj){return toString.call(obj)==="[object Array]";},isPlainObject:function(obj){if(!obj||toString.call(obj)!=="[object Object]"||obj.nodeType||obj.setInterval){return false;}
if(obj.constructor&&!hasOwnProperty.call(obj,"constructor")&&!hasOwnProperty.call(obj.constructor.prototype,"isPrototypeOf")){return false;}
var key;for(key in obj){}
return key===undefined||hasOwnProperty.call(obj,key);},isEmptyObject:function(obj){for(var name in obj){return false;}
return true;},error:function(msg){throw msg;},parseJSON:function(data){if(typeof data!=="string"||!data){return null;}
data=jUtil.trim(data);if(/^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return window.JSON&&window.JSON.parse?window.JSON.parse(data):(new Function("return "+data))();}else{jUtil.error("Invalid JSON: "+data);}},noop:function(){},globalEval:function(data){if(data&&rnotwhite.test(data)){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jUtil.support.scriptEval){script.appendChild(document.createTextNode(data));}else{script.text=data;}
head.insertBefore(script,head.firstChild);head.removeChild(script);}},evalScript:function(i,elem){if(elem.src){jUtil.ajax({url:elem.src,async:false,dataType:"script"});}else{jUtil.globalEval(elem.text||elem.textContent||elem.innerHTML||"");}
if(elem.parentNode){elem.parentNode.removeChild(elem);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()===name.toUpperCase();},each:function(object,callback,args){var name,i=0,length=object.length,isObj=length===undefined||jUtil.isFunction(object);if(args){if(isObj){for(name in object){if(callback.apply(object[name],args)===false){break;}}}else{for(;i<length;){if(callback.apply(object[i++],args)===false){break;}}}}else{if(isObj){for(name in object){if(callback.call(object[name],name,object[name])===false){break;}}}else{for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}}
return object;},trim:function(text){return(text||"").replace(rtrim,"");},getCookie:function(name){var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen){var j=i+alen;if(document.cookie.substring(i,j)==arg)return this.GetCookieVal(j);i=document.cookie.indexOf(" ",i)+1;if(i==0)break;}
return null;},GetCookieVal:function(offset){var endstr=document.cookie.indexOf(";",offset);if(endstr==-1)endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));},setCookie:function(name,value,expires,domain,path){var expdate=new Date();if(expires!=null)expdate.setTime(expdate.getTime()+(expires*24*60*60*1000));document.cookie=name+"="+escape(value)+((expires==null)?"":("; expires="+expdate.toGMTString()))+((domain==null)?"":("; domain="+domain))+((path==null)?";path=/":("; path="+path));},laterLoad:{conf:{},init:function(conf){this.conf=conf;var scriptId=this.conf.scriptId;var url=this.conf.url;var oScript=document.getElementById(scriptId);if(!oScript){this.request_script(scriptId,url,this.conf.callback);}else{if(typeof(this.conf.callback)=="function"){this.conf.callback();}}},request_script:function(id,url,callback){var head=document.getElementsByTagName("head").item(0);var nScript=document.createElement("script");nScript.addEventListener("load",callback,false);nScript.setAttribute("src",url);nScript.setAttribute("id",id);nScript.setAttribute("type","text/javascript");nScript.setAttribute("language","javascript");head.appendChild(nScript);return nScript;}},goBottom:function(){var bottomH=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);window.scroll(0,bottomH);},uaMatch:function(ua){ua=ua.toLowerCase();var match=/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||!/compatible/.test(ua)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"};},browser:function(){var browserName=userAgent.toLowerCase()
var version=jUtil.uaMatch(userAgent).version
return{safari:/webkit/i.test(browserName)&&!this.chrome,opera:/opera/i.test(browserName),firefox:/firefox/i.test(browserName),ie:/msie/i.test(browserName)&&!/opera/.test(browserName),mozilla:/mozilla/i.test(browserName)&&!/(compatible|webkit)/.test(browserName)&&!this.chrome,chrome:/chrome/i.test(browserName)&&/webkit/i.test(browserName)&&/mozilla/i.test(browserName)}},getText:function(elems){var ret="",elem;for(var i=0;elems[i];i++){elem=elems[i];if(elem.nodeType===3||elem.nodeType===4){ret+=elem.nodeValue;}else if(elem.nodeType!==8){ret+=jUtil.getText(elem.childNodes);}}
return ret;}});browserMatch=jUtil.uaMatch(userAgent);if(browserMatch.browser){jUtil.browser[browserMatch.browser]=true;jUtil.browser.version=browserMatch.version;}
if(document.addEventListener){DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);jUtil.ready();};}
rootjUtil=jUtil(document);(function(){jUtil.support={};var root=document.documentElement,script=document.createElement("script"),id="script"+(new Date).getTime();jUtil.support={scriptEval:false,boxModel:null};script.type="text/javascript";try{script.appendChild(document.createTextNode("window."+id+"=1;"));}catch(e){}
root.insertBefore(script,root.firstChild);if(window[id]){jUtil.support.scriptEval=true;delete window[id];}
root.removeChild(script);root=script=null;})();var rclass=/[\n\t]/g,rspace=/\s+/,rreturn=/\r/g,rspecialurl=/href|src|style/,rtype=/(button|input)/i,rfocusable=/(button|input|object|select|textarea)/i,rclickable=/^(a|area)$/i,rradiocheck=/radio|checkbox/;jUtil.fn.extend({add:function(selector){var elements=document.querySelectorAll(selector);if(elements.length){for(var i=0;i<elements.length;i++){this.elements.push(elements[i]);}}
this.length=this.elements.length;return this;},find:function(selector){var jes=[];this.each(function(){var es=this.querySelectorAll(selector);if(es&&es.length){for(var i=0;i<es.length;i++){jes.push(es[i]);}}});var ret=jUtil();ret.elements=jes;ret.length=jes.length;return ret;},hide:function(){return this.each(function(){if(this.style)this.style.display="none";})},show:function(){return this.each(function(){if(this.style)this.style.display="";})},attr:function(name,value){var set=value!==undefined;if(set){return this.each(function(){if(this.nodeType===1){this.setAttribute(name,""+value);}});}
return this.length?this.elements[0].getAttribute(name):undefined;},removeAttr:function(name,fn){return this.each(function(){if(this.nodeType===1){this.removeAttribute(name);}});},addClass:function(value){if(value&&typeof value==="string"){var classNames=(value||"").split(rspace);for(var i=0,l=this.length;i<l;i++){var elem=this.elements[i];if(elem.nodeType===1){if(!elem.className){elem.className=value;}else{var className=" "+elem.className+" ",setClass=elem.className;for(var c=0,cl=classNames.length;c<cl;c++){if(className.indexOf(" "+classNames[c]+" ")<0){setClass+=" "+classNames[c];}}
elem.className=jUtil.trim(setClass);}}}}
return this;},removeClass:function(value){if((value&&typeof value==="string")||value===undefined){var classNames=(value||"").split(rspace);for(var i=0,l=this.length;i<l;i++){var elem=this.elements[i];if(elem.nodeType===1&&elem.className){if(value){var className=(" "+elem.className+" ").replace(rclass," ");for(var c=0,cl=classNames.length;c<cl;c++){className=className.replace(" "+classNames[c]+" "," ");}
elem.className=jUtil.trim(className);}else{elem.className="";}}}}
return this;},hasClass:function(selector){var className=" "+selector+" ";for(var i=0,l=this.length;i<l;i++){if((" "+this.elements[i].className+" ").replace(rclass," ").indexOf(className)>-1){return true;}}
return false;},text:function(text){if(typeof text!=="object"&&text!==undefined){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));}
return jUtil.getText(this.elements);},empty:function(){for(var i=0,elem;(elem=this.elements[i])!=null;i++){if(elem.nodeType===1){}
while(elem.firstChild){elem.removeChild(elem.firstChild);}}
return this;},append:function(elem){if(this.length){var parent=this.elements[0];if(parent.nodeType===1){parent.appendChild(elem);}}
return this;},prepend:function(elem){if(this.length){var parent=this.elements[0];if(parent.nodeType===1){parent.insertBefore(elem,this.firstChild);}}
return this;},html:function(value){if(value===undefined){var elem=this.elements[0];return elem&&elem.nodeType===1?elem.innerHTML:null;}
if(typeof value==="string"){try{for(var i=0,l=this.length;i<l;i++){if(this.elements[i].nodeType===1){this.elements[i].innerHTML=value;}}}catch(e){this.empty().append(value);}}else{this.empty().append(value);}
return this;},val:function(v){if(typeof v=="string"){return this.each(function(){if(this.value!==undefined)this.value=v;})}else{var vs=[];this.each(function(){if(this.value!==undefined)vs.push(this.value);})
return vs.length==1?vs[0]:vs;}},css:function(name,value){if(typeof name=='string'&&value===undefined){return window.getComputedStyle(this.elements[0],null).getPropertyValue(name);}
return this.each(function(){this.style[name]=value;});},});var
rscript=/<script(.|\s)*?\/script>/gi,rselectTextarea=/select|textarea/i,rinput=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,jsre=/=\?(&|$)/,rquery=/\?/,rts=/(\?|&)_=.*?(&|$)/,rurl=/^(\w+:)?\/\/([^\/?#]+)/,r20=/%20/g;jUtil.extend({get:function(url,data,callback,type){if(jUtil.isFunction(data)){type=type||callback;callback=data;data=null;}
return jUtil.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jUtil.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jUtil.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jUtil.isFunction(data)){type=type||callback;callback=data;data={};}
return jUtil.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new window.XMLHttpRequest();},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(origSettings){var s=jUtil.extend(true,{},jUtil.ajaxSettings,origSettings);var jsonp,status,data,callbackContext=origSettings&&origSettings.context||s,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jUtil.param(s.data,s.traditional);}
if(s.dataType==="jsonp"){if(type==="GET"){if(!jsre.test(s.url)){s.url+=(rquery.test(s.url)?"&":"?")+(s.jsonp||"callback")+"=?";}}else if(!s.data||!jsre.test(s.data)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";}
s.dataType="json";}
if(s.dataType==="json"&&(s.data&&jsre.test(s.data)||jsre.test(s.url))){jsonp=s.jsonpCallback||("jsonp"+jsc++);if(s.data){s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");}
s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=window[jsonp]||function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}
if(head){head.removeChild(script);}};}
if(s.dataType==="script"&&s.cache===null){s.cache=false;}
if(s.cache===false&&type==="GET"){var ts=(new Date()).getTime();var ret=s.url.replace(rts,"$1_="+ts+"$2");s.url=ret+((ret===s.url)?(rquery.test(s.url)?"&":"?")+"_="+ts:"");}
if(s.data&&type==="GET"){s.url+=(rquery.test(s.url)?"&":"?")+s.data;}
var parts=rurl.exec(s.url),remote=parts&&(parts[1]&&parts[1]!==location.protocol||parts[2]!==location.host);if(s.dataType==="script"&&type==="GET"&&remote){var head=document.getElementsByTagName("head")[0]||document.documentElement;var script=document.createElement("script");script.src=s.url;if(s.scriptCharset){script.charset=s.scriptCharset;}
if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){done=true;success();complete();script.onload=script.onreadystatechange=null;if(head&&script.parentNode){head.removeChild(script);}}};}
head.insertBefore(script,head.firstChild);return undefined;}
var requestDone=false;var xhr=s.xhr();if(!xhr){return;}
if(s.username){xhr.open(type,s.url,s.async,s.username,s.password);}else{xhr.open(type,s.url,s.async);}
try{if(s.data||origSettings&&origSettings.contentType){xhr.setRequestHeader("Content-Type",s.contentType);}
if(s.ifModified){if(jUtil.lastModified[s.url]){xhr.setRequestHeader("If-Modified-Since",jUtil.lastModified[s.url]);}
if(jUtil.etag[s.url]){xhr.setRequestHeader("If-None-Match",jUtil.etag[s.url]);}}
if(!remote){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");}
xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}
if(s.beforeSend&&s.beforeSend.call(callbackContext,xhr,s)===false){xhr.abort();return false;}
var onreadystatechange=xhr.onreadystatechange=function(isTimeout){if(!xhr||xhr.readyState===0||isTimeout==="abort"){if(!requestDone){complete();}
requestDone=true;if(xhr){xhr.onreadystatechange=jUtil.noop;}}else if(!requestDone&&xhr&&(xhr.readyState===4||isTimeout==="timeout")){requestDone=true;xhr.onreadystatechange=jUtil.noop;status=isTimeout==="timeout"?"timeout":!jUtil.httpSuccess(xhr)?"error":s.ifModified&&jUtil.httpNotModified(xhr,s.url)?"notmodified":"success";var errMsg;if(status==="success"){try{data=jUtil.httpData(xhr,s.dataType,s);}catch(err){status="parsererror";errMsg=err;}}
if(status==="success"||status==="notmodified"){if(!jsonp){success();}}else{jUtil.handleError(s,xhr,status,errMsg);}
complete();if(isTimeout==="timeout"){xhr.abort();}
if(s.async){xhr=null;}}};try{var oldAbort=xhr.abort;xhr.abort=function(){if(xhr){oldAbort.call(xhr);}
onreadystatechange("abort");};}catch(e){}
if(s.async&&s.timeout>0){setTimeout(function(){if(xhr&&!requestDone){onreadystatechange("timeout");}},s.timeout);}
try{xhr.send(type==="POST"||type==="PUT"||type==="DELETE"?s.data:null);}catch(e){jUtil.handleError(s,xhr,null,e);complete();}
if(!s.async){onreadystatechange();}
function success(){if(s.success){s.success.call(callbackContext,data,status,xhr);}}
function complete(){if(s.complete){s.complete.call(callbackContext,xhr,status);}}
return xhr;},handleError:function(s,xhr,status,e){if(s.error){s.error.call(s.context||s,xhr,status,e);}},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.protocol==="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status===304||xhr.status===0;}catch(e){}
return false;},httpNotModified:function(xhr,url){var lastModified=xhr.getResponseHeader("Last-Modified"),etag=xhr.getResponseHeader("Etag");if(lastModified){jUtil.lastModified[url]=lastModified;}
if(etag){jUtil.etag[url]=etag;}
return xhr.status===304||xhr.status===0;},httpData:function(xhr,type,s){var ct=xhr.getResponseHeader("content-type")||"",xml=type==="xml"||!type&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==="parsererror"){jUtil.error("parsererror");}
if(s&&s.dataFilter){data=s.dataFilter(data,type);}
if(typeof data==="string"){if(type==="json"||!type&&ct.indexOf("json")>=0){data=jUtil.parseJSON(data);}else if(type==="script"||!type&&ct.indexOf("javascript")>=0){jUtil.globalEval(data);}}
return data;},param:function(a,traditional){var s=[];if(traditional===undefined){traditional=jUtil.ajaxSettings.traditional;}
if(jUtil.isArray(a)||a.jutil){jUtil.each(a,function(){add(this.name,this.value);});}else{for(var prefix in a){buildParams(prefix,a[prefix]);}}
return s.join("&").replace(r20,"+");function buildParams(prefix,obj){if(jUtil.isArray(obj)){jUtil.each(obj,function(i,v){if(traditional||/\[\]$/.test(prefix)){add(prefix,v);}else{buildParams(prefix+"["+(typeof v==="object"||jUtil.isArray(v)?i:"")+"]",v);}});}else if(!traditional&&obj!=null&&typeof obj==="object"){jUtil.each(obj,function(k,v){buildParams(prefix+"["+k+"]",v);});}else{add(prefix,obj);}}
function add(key,value){value=jUtil.isFunction(value)?value():value;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value);}}});window.jUtil=window.$=jUtil;})(window);