(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);};});})();
(function(a){a.fn.extend({autocomplete:function(b,c){var d=typeof b=="string";c=a.extend({},a.Autocompleter.defaults,{url:d?b:null,data:d?null:b,delay:d?a.Autocompleter.defaults.delay:10,max:c.max},c);c.highlight=c.highlight||function(e){return e};return this.each(function(){new a.Autocompleter(this,c)})},result:function(b){return this.bind("result",b)},search:function(b){return this.trigger("search",[b])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(b){return this.trigger("setOptions",[b])},unautocomplete:function(){return this.trigger("unautocomplete")}});a.Autocompleter=function(m,g){var c={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34};var b=a(m).attr("autocomplete","off").addClass(g.inputClass).addClass(g.arrowClass);var k;var r="";var o=a.Autocompleter.Cache(g);var A="";var e=0;var w;var B={mouseDownOnSelect:false};var t=a.Autocompleter.Select(g,m,d,B);b.keydown(function(C){w=C.keyCode;switch(C.keyCode){case c.UP:C.preventDefault();if(t.visible()){t.prev()}else{v(0,true)}break;case c.DOWN:C.preventDefault();if(t.visible()){t.next()}else{v(0,true)}break;case c.PAGEUP:C.preventDefault();if(t.visible()){t.pageUp()}else{v(0,true)}break;case c.PAGEDOWN:C.preventDefault();if(t.visible()){t.pageDown()}else{v(0,true)}break;case g.multiple&&a.trim(g.multipleSeparator)==","&&c.COMMA:case c.TAB:case c.RETURN:if(d()){C.preventDefault()}break;case c.ESC:t.hide();break;default:clearTimeout(k);k=setTimeout(v,g.delay);break}}).keypress(function(){}).focus(function(){e++}).blur(function(){e=0;if(!B.mouseDownOnSelect){u()}}).click(function(){b.val("");g.resultFunction(null);v(0,true)}).bind("search",function(){var C=(arguments.length>1)?arguments[1]:null;function D(H,G){var E;if(G&&G.length){for(var F=0;F<G.length;F++){if(G[F].result.toLowerCase()==H.toLowerCase()){E=G[F];break}}}if(typeof C=="function"){C(E)}else{g.resultFunction(E.data)}}a.each(h(b.val()),function(E,F){f(F,D,D)})}).bind("flushCache",function(){o.flush()}).bind("setOptions",function(){a.extend(g,arguments[1]);if("data" in arguments[1]){o.populate()}}).bind("unautocomplete",function(){t.unbind();b.unbind()});function d(){var D=t.selected();if(!D){return false}var C=D.result;r=C;if(g.multiple){var F=h(b.val());if(F.length>1){C=F.slice(0,F.length-1).join(g.multipleSeparator)+g.multipleSeparator+C}C+=g.multipleSeparator}var E=C;if(E&&E.substr(0,4)=="<img"){E=E.substr(E.indexOf(">")+2)}E=E.replace("&lt;","<");b.val(E);z();g.resultFunction(D.data);return true}function v(E,D){if(w==c.DEL){t.hide();return}var C=b.val();if(!D&&C==r){return}r=C;C=j(C);if(C.length>=g.minChars){b.addClass(g.loadingClass);if(!g.matchCase){C=C.toLowerCase()}f(C,l,z)}else{p();t.hide()}}function h(D){if(!D){return[""]}var E=D.split(a.trim(g.multipleSeparator));var C=[];a.each(E,function(F,G){if(a.trim(G)){C[F]=a.trim(G)}});return C}function j(C){if(!g.multiple){return C}var D=h(C);return D[D.length-1]}function s(C,D){if(g.autoFill&&(j(b.val()).toLowerCase()==C.toLowerCase())&&w!=8){b.val(b.val()+D.substring(j(r).length));a.Autocompleter.Selection(m,r.length,r.length+D.length)}}function u(){clearTimeout(k);k=setTimeout(z,200)}function z(){t.hide();clearTimeout(k);p();if(g.mustMatch){b.search(function(C){if(!C){b.val("")}})}}function l(D,C){if(C&&C.length&&e){p();t.display(C,D);s(D,C[0].value);t.show()}else{z()}}function f(D,G,C){if(!g.matchCase){D=D.toLowerCase()}var E=g.extraParams.refid;var I="";if(E){I=a("#"+E).val();if(A!=I){A=I;o.flush()}}var F=o.load(D);if(F&&F.length){G(D,F)}else{if((typeof g.url=="string")&&(g.url.length>0)){var H={};a.each(g.extraParams,function(J,K){H[J]=typeof K=="function"?K():K});a.ajax({mode:"abort",port:"autocomplete"+m.name,dataType:g.dataType,url:g.url,data:a.extend({q:j(D),limit:g.max,refval:I},H),success:function(K){if(K.substr(0,1)!="1"){pageReload();return}K=K.substr(1);var J=g.parse&&g.parse(K)||q(K);o.add(D,J);G(D,J)}})}else{C(D)}}}function q(F){var C=[];var E=F.split("\n");for(var D=0;D<E.length;D++){var G=a.trim(E[D]);if(G){G=G.split("|");C[C.length]={data:G,value:G[0],result:g.formatResult&&g.formatResult(G,G[0])||G[0]}}}return C}function p(){b.removeClass(g.loadingClass)}};a.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:12,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(b){return b[0]},autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(d,b,c){var e=d.lastIndexOf("#");if(e>=0){d=d.substr(0,e)+"<span class='ac_id'>"+d.substr(e)+"</span>"}if(c){d="<span class='ac_results_small'>"+d+"</span>"}return d},scroll:true,scrollHeight:180,attachTo:"body"};a.Autocompleter.Cache=function(c){var f={};var d=0;function h(l,k){if(!c.matchCase){l=l.toLowerCase()}var j=l.indexOf(k);if(j==-1){return false}return j==0||c.matchContains}function g(k,j){if(d>c.cacheLength){b()}if(!f[k]){d++}f[k]=j}function e(){if(!c.data){return false}var k={},j=0;if(!c.url){c.cacheLength=1}k[""]=[];for(var m=0,l=c.data.length;m<l;m++){var q=c.data[m];q=q.split("|");q=(typeof q=="string")?[q]:q;var p=c.formatItem(q,m+1,c.data.length);if(p===false){continue}var o=(p.substr(0,4)=="<img")?p.charAt(p.indexOf(">")+2).toLowerCase():p.charAt(0).toLowerCase();if(!k[o]){k[o]=[]}var r={value:p,data:q,result:c.formatResult&&c.formatResult(q)||p};k[o].push(r);if(j++<c.max){k[""].push(r)}}a.each(k,function(s,t){c.cacheLength++;g(s,t)})}setTimeout(e,25);function b(){f={};d=0}return{flush:b,add:g,populate:e,load:function(o){if(!c.cacheLength||!d){return null}if(!c.url&&c.matchContains){var m=[];for(var j in f){if(j.length>0){var p=f[j];a.each(p,function(q,k){if(h(k.value,o)){m.push(k)}})}}return m}else{if(f[o]){return f[o]}else{if(c.matchSubset){for(var l=o.length-1;l>=c.minChars;l--){var p=f[o.substr(0,l)];if(p){var m=[];a.each(p,function(q,k){if(h(k.value,o)){m[m.length]=k}});return m}}}}}return null}}};a.Autocompleter.Select=function(e,k,m,r){var j={ACTIVE:"ac_over"};var l,f=-1,t,o="",u=true,c,q;function p(){if(!u){return}c=a("<div/>").hide().addClass(e.resultsClass).css("position","absolute").appendTo(e.attachTo);q=a("<ul>").appendTo(c).mouseover(function(v){if(s(v).nodeName&&s(v).nodeName.toUpperCase()=="LI"){f=a("li",q).removeClass(j.ACTIVE).index(s(v));a(s(v)).addClass(j.ACTIVE)}}).click(function(v){a(s(v)).addClass(j.ACTIVE);m();k.focus();return false}).mousedown(function(){r.mouseDownOnSelect=true}).mouseup(function(){r.mouseDownOnSelect=false});if(e.width>0){c.css("width",e.width)}u=false}function s(w){var v=w.target;while(v&&v.tagName!="LI"){v=v.parentNode}if(!v){return[]}return v}function h(v){l.slice(f,f+1).removeClass();g(v);var z=l.slice(f,f+1).addClass(j.ACTIVE);if(e.scroll){var w=0;l.slice(0,f).each(function(){w+=this.offsetHeight});if((w+z[0].offsetHeight-q.scrollTop())>q[0].clientHeight){q.scrollTop(w+z[0].offsetHeight-q.innerHeight())}else{if(w<q.scrollTop()){q.scrollTop(w)}}}}function g(v){f+=v;if(f<0){f=l.size()-1}else{if(f>=l.size()){f=0}}}function b(v){return e.max&&e.max<v?e.max:v}function d(){q.empty();var w=b(t.length);for(var z=0;z<w;z++){if(!t[z]){continue}var A=e.formatItem(t[z].data,z+1,w,t[z].value,o);if(A===false){continue}var v=a("<li>").html(e.highlight(A,o,e.smallText)).addClass(z%2==0?"ac_event":"ac_odd").appendTo(q)[0];a.data(v,"ac_data",t[z])}l=q.find("li");if(e.selectFirst){l.slice(0,1).addClass(j.ACTIVE);f=0}q.bgiframe()}return{display:function(w,v){p();t=w;o=v;d()},next:function(){h(1)},prev:function(){h(-1)},pageUp:function(){if(f!=0&&f-8<0){h(-f)}else{h(-8)}},pageDown:function(){if(f!=l.size()-1&&f+8>l.size()){h(l.size()-1-f)}else{h(8)}},hide:function(){c&&c.hide();f=-1},visible:function(){return c&&c.is(":visible")},current:function(){return this.visible()&&(l.filter("."+j.ACTIVE)[0]||e.selectFirst&&l[0])},show:function(){var z=a(k).offset();var v=a(window).scrollTop();var A=a(window).height();var D=(a.browser.msie)?-2:1;var B=(a.browser.msie)?-3:-1;var E=z.top+k.offsetHeight-1+D;if(E+c.height()>v+A-8&&z.top-c.height()+B>=v+8){E=z.top-c.height()+B}var F=(a.browser.msie)?-2:0;var G=(a.browser.msie)?5:((a.browser.mozilla)?1:((browser_chrome)?1:((a.browser.safari)?3:0)));c.css({width:typeof e.width=="string"||e.width>0?e.width:(a(k).width()+G),top:E,left:z.left+F}).show();E=z.top+k.offsetHeight-1+D;if(E+c.height()>v+A-8&&z.top-c.height()+B>=v+8){E=z.top-c.height()+B;c.css({top:E})}if(e.scroll){q.scrollTop(0);q.css({maxHeight:e.scrollHeight,overflow:"auto"});if(a.browser.msie){var w=0;l.each(function(){w+=this.offsetHeight});var C=w>e.scrollHeight;q.css("height",C?e.scrollHeight:w);if(!C){l.width(q.width()-parseInt(l.css("padding-left"))-parseInt(l.css("padding-right")))}}}c.removeClass("autocompleteShow");a(".autocompleteShow").hide().removeClass("autocompleteShow");c.addClass("autocompleteShow")},selected:function(){var v=l&&l.filter("."+j.ACTIVE).removeClass(j.ACTIVE);return v&&v.length&&a.data(v[0],"ac_data")},unbind:function(){c&&c.remove()}}};a.Autocompleter.Selection=function(d,e,c){if(d.createTextRange){var b=d.createTextRange();b.collapse(true);b.moveStart("character",e);b.moveEnd("character",c);b.select()}else{if(d.setSelectionRange){d.setSelectionRange(e,c)}else{if(d.selectionStart){d.selectionStart=e;d.selectionEnd=c}}}d.focus()}})(jQuery);(function(a){a.fn.bgIframe=a.fn.bgiframe=function(c){if(a.browser.msie&&parseInt(a.browser.version)<=6){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},c||{});var d=function(e){return e&&e.constructor==Number?e+"px":e},b='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+c.src+'"style="display:block;position:absolute;z-index:-1;'+(c.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(c.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":d(c.top))+";left:"+(c.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":d(c.left))+";width:"+(c.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":d(c.width))+";height:"+(c.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":d(c.height))+';"/>';return this.each(function(){if(a("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(b),this.firstChild)}})}return this};if(!a.browser.version){a.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1]}})(jQuery);(function(a){a.blockUI=function(d,b,c){a.blockUI.impl.install(window,d,b,c)};a.blockUI.version=1.31;a.unblockUI=function(b){a.blockUI.impl.remove(window,b)};a.fn.block=function(d,b,c){return this.each(function(){if(!this.$pos_checked){if(a.css(this,"position")=="static"){this.style.position="relative"}if(a.browser.msie){this.style.zoom=1}this.$pos_checked=1}a.blockUI.impl.install(this,d,b,c)})};a.fn.unblock=function(b){return this.each(function(){a.blockUI.impl.remove(this,b)})};a.fn.displayBox=function(m,o,k){var e=this[0];if(!e){return}var q=a(e);m=m||{};var p=q.width()||q.attr("width")||m.width||a.blockUI.defaults.displayBoxCSS.width;var l=q.height()||q.attr("height")||m.height||a.blockUI.defaults.displayBoxCSS.height;if(p[p.length-1]=="%"){var j=document.documentElement.clientWidth||document.body.clientWidth;p=parseInt(p)||100;p=(p*j)/100}if(l[l.length-1]=="%"){var f=document.documentElement.clientHeight||document.body.clientHeight;l=parseInt(l)||100;l=(l*f)/100}var g="-"+parseInt(p)/2+"px";var c="-"+parseInt(l)/2+"px";var d=navigator.userAgent.toLowerCase();var b={displayMode:o||1,noalpha:k&&/mac/.test(d)&&/firefox/.test(d)};a.blockUI.impl.install(window,e,{width:p,height:l,marginTop:c,marginLeft:g},b)};a.blockUI.defaults={pageMessage:"<h1>Please wait...</h1>",elementMessage:"",overlayCSS:{backgroundColor:"#fff",opacity:"0.5"},pageMessageCSS:{width:"250px",margin:"-50px 0 0 -125px",top:"50%",left:"50%",textAlign:"center",color:"#000",backgroundColor:"#fff",border:"3px solid #aaa"},elementMessageCSS:{width:"250px",padding:"10px",textAlign:"center",backgroundColor:"#fff"},displayBoxCSS:{width:"400px",height:"400px",top:"50%",left:"50%"},ie6Stretch:1,allowTabToLeave:0,closeMessage:"Click to close",fadeOut:1,fadeTime:400};a.blockUI.impl={box:null,boxCallback:null,pageBlock:null,pageBlockEls:[],op8:window.opera&&window.opera.version()<9,ie6:a.browser.msie&&/6.0/.test(navigator.userAgent),install:function(d,e,j,b){b=b||{};this.boxCallback=typeof b.displayMode=="function"?b.displayMode:null;this.box=b.displayMode?e:null;var o=(d==window);var u=this.op8||a.browser.mozilla&&/Linux/.test(navigator.platform);if(typeof b.alphaOverride!="undefined"){u=b.alphaOverride==0?1:0}if(o&&this.pageBlock){this.remove(window,{fadeOut:0})}if(e&&typeof e=="object"&&!e.jquery&&!e.nodeType){j=e;e=null}e=e?(e.nodeType?a(e):e):o?a.blockUI.defaults.pageMessage:a.blockUI.defaults.elementMessage;if(b.displayMode){var v=jQuery.extend({},a.blockUI.defaults.displayBoxCSS)}else{var v=jQuery.extend({},o?a.blockUI.defaults.pageMessageCSS:a.blockUI.defaults.elementMessageCSS)}j=jQuery.extend(v,j||{});var k=(a.browser.msie)?a('<iframe class="blockUI" style="z-index:1000;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="javascript:false;document.write(\'\');"></iframe>'):a('<div class="blockUI" style="display:none"></div>');var r=a('<div class="blockUI" style="z-index:1001;cursor:wait;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');var g=o?a('<div class="blockUI blockMsg" style="z-index:1002;cursor:wait;padding:0;position:fixed"></div>'):a('<div class="blockUI" style="display:none;z-index:1002;cursor:wait;position:absolute"></div>');r.css("position",o?"fixed":"absolute");if(e){g.css(j)}if(!u){r.css(a.blockUI.defaults.overlayCSS)}if(this.op8){r.css({width:""+d.clientWidth,height:""+d.clientHeight})}if(a.browser.msie){k.css("opacity","0.0")}a([k[0],r[0],g[0]]).appendTo(o?"body":d);var q=a.browser.msie&&(!a.boxModel||a("object,embed",o?null:d).length>0);if(this.ie6||q){if(o&&a.blockUI.defaults.ie6Stretch&&a.boxModel){a("html,body").css("height","100%")}if((this.ie6||!a.boxModel)&&!o){var s=this.sz(d,"borderTopWidth"),h=this.sz(d,"borderLeftWidth");var p=s?"(0 - "+s+")":0;var c=h?"(0 - "+h+")":0}a.each([k,r,g],function(f,m){var l=m[0].style;l.position="absolute";if(f<2){o?l.setExpression("height",'document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + "px"'):l.setExpression("height",'this.parentNode.offsetHeight + "px"');o?l.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):l.setExpression("width",'this.parentNode.offsetWidth + "px"');if(c){l.setExpression("left",c)}if(p){l.setExpression("top",p)}}else{if(o){l.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}l.marginTop=0}})}if(b.displayMode){r.css("cursor","default").attr("title",a.blockUI.defaults.closeMessage);g.css("cursor","default");a([k[0],r[0],g[0]]).removeClass("blockUI").addClass("displayBox");a().click(a.blockUI.impl.boxHandler).bind("keypress",a.blockUI.impl.boxHandler)}else{this.bind(1,d)}g.append(e).show();if(e.jquery){e.show()}if(b.displayMode){return}if(o){this.pageBlock=g[0];this.pageBlockEls=a(":input:enabled:visible",this.pageBlock);setTimeout(this.focus,20)}else{this.center(g[0])}},remove:function(d,e){var f=a.extend({},a.blockUI.defaults,e);this.bind(0,d);var c=d==window;var b=c?a("body").children().filter(".blockUI"):a(".blockUI",d);if(c){this.pageBlock=this.pageBlockEls=null}if(f.fadeOut){b.fadeOut(f.fadeTime,function(){if(this.parentNode){this.parentNode.removeChild(this)}})}else{b.remove()}},boxRemove:function(b){a().unbind("click",a.blockUI.impl.boxHandler).unbind("keypress",a.blockUI.impl.boxHandler);if(this.boxCallback){this.boxCallback(this.box)}a("body .displayBox").hide().remove()},handler:function(f){if(f.keyCode&&f.keyCode==9){if(a.blockUI.impl.pageBlock&&!a.blockUI.defaults.allowTabToLeave){var d=a.blockUI.impl.pageBlockEls;var c=!f.shiftKey&&f.target==d[d.length-1];var b=f.shiftKey&&f.target==d[0];if(c||b){setTimeout(function(){a.blockUI.impl.focus(b)},10);return false}}}if(a(f.target).parents("div.blockMsg").length>0){return true}return a(f.target).parents().children().filter("div.blockUI").length==0},boxHandler:function(b){if((b.keyCode&&b.keyCode==27)||(b.type=="click"&&a(b.target).parents("div.blockMsg").length==0)){a.blockUI.impl.boxRemove()}return true},bind:function(c,f){var e=f==window;if(!c&&(e&&!this.pageBlock||!e&&!f.$blocked)){return}if(!e){f.$blocked=c}var d=e?a():a(f).find("a,:input");a.each(["mousedown","mouseup","keydown","keypress","click"],function(b,g){d[c?"bind":"unbind"](g,a.blockUI.impl.handler)})},focus:function(b){if(!a.blockUI.impl.pageBlockEls){return}var c=a.blockUI.impl.pageBlockEls[b===true?a.blockUI.impl.pageBlockEls.length-1:0];if(c){c.focus()}},center:function(e){var f=e.parentNode,d=e.style;var b=((f.offsetWidth-e.offsetWidth)/2)-this.sz(f,"borderLeftWidth");var c=((f.offsetHeight-e.offsetHeight)/2)-this.sz(f,"borderTopWidth");d.left=b>0?(b+"px"):"0";d.top=c>0?(c+"px"):"0"},sz:function(b,c){return parseInt(a.css(b,c))||0}}})(jQuery);jQuery.cookie=function(m,l,k){if(typeof l!="undefined"){k=k||{};if(l===null){l="";k.expires=-1}var h="";if(k.expires&&(typeof k.expires=="number"||k.expires.toUTCString)){var g;if(typeof k.expires=="number"){g=new Date();g.setTime(g.getTime()+(k.expires*24*60*60*1000))}else{g=k.expires}h="; expires="+g.toUTCString()}var e=k.path?"; path="+k.path:"";var d=k.domain?"; domain="+k.domain:"";var c=k.secure?"; secure":"";document.cookie=[m,"=",encodeURIComponent(l),h,e,d,c].join("")}else{var b=null;if(document.cookie&&document.cookie!=""){var j=document.cookie.split(";");for(var a=0;a<j.length;a++){var f=jQuery.trim(j[a]);if(f.substring(0,m.length+1)==(m+"=")){b=decodeURIComponent(f.substring(m.length+1));break}}}return b}};(function(a){a.fn.hoverIntent=function(l,k){var m={sensitivity:1,interval:300,timeout:300};m=a.extend(m,k?{over:l,out:k}:l);var p,o,h,d;var e=function(f){p=f.pageX;o=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-p)+Math.abs(d-o))<m.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return m.over.apply(f,[g])}else{h=p;d=o;f.hoverIntent_t=setTimeout(function(){c(g,f)},m.interval)}};var j=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return m.out.apply(f,[g])};var b=function(r){var q=(r.type=="mouseover"?r.fromElement:r.toElement)||r.relatedTarget;while(q&&q!=this){try{q=q.parentNode}catch(r){q=this}}if(q==this){return false}var g=jQuery.extend({},r);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(r.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},m.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){j(g,f)},m.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata"}var data=$.data(elem,settings.single);if(data){return data}data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1]}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return undefined}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML)}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr}}}}if(data.indexOf("{")<0){data="{"+data+"}"}data=eval("("+data+")");$.data(elem,settings.single,data);return data}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);(function(b){b.fn.ajaxSubmit=function(p){if(typeof p=="function"){p={success:p}}p=b.extend({url:this.attr("action")||window.location.toString(),type:this.attr("method")||"GET"},p||{});var s={};b.event.trigger("form.pre.serialize",[this,p,s]);if(s.veto){return this}var k=this.formToArray(p.semantic);if(p.data){for(var f in p.data){k.push({name:f,value:p.data[f]})}}if(p.beforeSubmit&&p.beforeSubmit(k,this,p)===false){return this}b.event.trigger("form.submit.validate",[k,this,p,s]);if(s.veto){return this}var e=b.param(k);if(p.type.toUpperCase()=="GET"){p.url+=(p.url.indexOf("?")>=0?"&":"?")+e;p.data=null}else{p.data=e}var r=this,h=[];if(p.resetForm){h.push(function(){r.resetForm()})}if(p.clearForm){h.push(function(){r.clearForm()})}if(!p.dataType&&p.target){var m=p.success||function(){};h.push(function(j){if(this.evalScripts){b(p.target).attr("innerHTML",j).evalScripts().each(m,arguments)}else{b(p.target).html(j).each(m,arguments)}})}else{if(p.success){h.push(p.success)}}p.success=function(u,q){for(var t=0,j=h.length;t<j;t++){h[t](u,q,r)}};var d=b("input:file",this).fieldValue();var o=false;for(var g=0;g<d.length;g++){if(d[g]){o=true}}if(p.iframe||o){if(b.browser.safari&&p.closeKeepAlive){b.get(p.closeKeepAlive,l)}else{l()}}else{b.ajax(p)}b.event.trigger("form.submit.notify",[this,p]);return this;function l(){var u=r[0];var q=b.extend({},b.ajaxSettings,p);var t="jqFormIO"+b.fn.ajaxSubmit.counter++;var A=b('<iframe id="'+t+'" name="'+t+'" />');var C=A[0];var D=b.browser.opera&&window.opera.version()<9;if(b.browser.msie||D){C.src='javascript:false;document.write("");'}A.css({position:"absolute",top:"-1000px",left:"-1000px"});var E={responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){}};var B=q.global;if(B&&!b.active++){b.event.trigger("ajaxStart")}if(B){b.event.trigger("ajaxSend",[E,q])}var j=0;var v=0;setTimeout(function(){var H=u.encoding?"encoding":"enctype";var G=r.attr("target"),F=r.attr("action");r.attr({target:t,method:"POST",action:q.url});u[H]="multipart/form-data";if(q.timeout){setTimeout(function(){v=true;w()},q.timeout)}A.appendTo("body");C.attachEvent?C.attachEvent("onload",w):C.addEventListener("load",w,false);u.submit();r.attr({action:F,target:G})},10);function w(){if(j++){return}C.detachEvent?C.detachEvent("onload",w):C.removeEventListener("load",w,false);var G=true;try{if(v){throw"timeout"}var H,J;J=C.contentWindow?C.contentWindow.document:C.contentDocument?C.contentDocument:C.document;E.responseText=J.body?J.body.innerHTML:null;E.responseXML=J.XMLDocument?J.XMLDocument:J;E.getResponseHeader=function(L){var K={"content-type":q.dataType};return K[L]};if(q.dataType=="json"||q.dataType=="script"){var F=J.getElementsByTagName("textarea")[0];E.responseText=F?F.value:E.responseText}else{if(q.dataType=="xml"&&!E.responseXML&&E.responseText!=null){E.responseXML=z(E.responseText)}}H=b.httpData(E,q.dataType)}catch(I){G=false;b.handleError(q,E,"error",I)}if(G){q.success(H,"success");if(B){b.event.trigger("ajaxSuccess",[E,q])}}if(B){b.event.trigger("ajaxComplete",[E,q])}if(B&&!--b.active){b.event.trigger("ajaxStop")}if(q.complete){q.complete(E,G?"success":"error")}setTimeout(function(){A.remove();E.responseXML=null},100)}function z(F,G){if(window.ActiveXObject){G=new ActiveXObject("Microsoft.XMLDOM");G.async="false";G.loadXML(F)}else{G=(new DOMParser()).parseFromString(F,"text/xml")}return(G&&G.documentElement&&G.documentElement.tagName!="parsererror")?G:null}}};b.fn.ajaxSubmit.counter=0;b.fn.ajaxForm=function(d){return this.ajaxFormUnbind().submit(a).each(function(){this.formPluginId=b.fn.ajaxForm.counter++;b.fn.ajaxForm.optionHash[this.formPluginId]=d;b(":submit,input:image",this).click(c)})};b.fn.ajaxForm.counter=1;b.fn.ajaxForm.optionHash={};function c(f){var d=this.form;d.clk=this;if(this.type=="image"){if(f.offsetX!=undefined){d.clk_x=f.offsetX;d.clk_y=f.offsetY}else{if(typeof b.fn.offset=="function"){var g=b(this).offset();d.clk_x=f.pageX-g.left;d.clk_y=f.pageY-g.top}else{d.clk_x=f.pageX-this.offsetLeft;d.clk_y=f.pageY-this.offsetTop}}}setTimeout(function(){d.clk=d.clk_x=d.clk_y=null},10)}function a(){var e=this.formPluginId;var d=b.fn.ajaxForm.optionHash[e];b(this).ajaxSubmit(d);return false}b.fn.ajaxFormUnbind=function(){this.unbind("submit",a);return this.each(function(){b(":submit,input:image",this).unbind("click",c)})};b.fn.formToArray=function(r){var q=[];if(this.length==0){return q}var e=this[0];var k=r?e.getElementsByTagName("*"):e.elements;if(!k){return q}for(var l=0,o=k.length;l<o;l++){var f=k[l];var g=f.name;if(!g){continue}if(r&&e.clk&&f.type=="image"){if(!f.disabled&&e.clk==f){q.push({name:g+".x",value:e.clk_x},{name:g+".y",value:e.clk_y})}continue}var s=b.fieldValue(f,true);if(s&&s.constructor==Array){for(var h=0,d=s.length;h<d;h++){q.push({name:g,value:s[h]})}}else{if(s!==null&&typeof s!="undefined"){q.push({name:g,value:s})}}}if(!r&&e.clk){var m=e.getElementsByTagName("input");for(var l=0,o=m.length;l<o;l++){var p=m[l];var g=p.name;if(g&&!p.disabled&&p.type=="image"&&e.clk==p){q.push({name:g+".x",value:e.clk_x},{name:g+".y",value:e.clk_y})}}}return q};b.fn.formSerialize=function(d){return b.param(this.formToArray(d))};b.fn.fieldSerialize=function(e){var d=[];this.each(function(){var j=this.name;if(!j){return}var g=b.fieldValue(this,e);if(g&&g.constructor==Array){for(var h=0,f=g.length;h<f;h++){d.push({name:j,value:g[h]})}}else{if(g!==null&&typeof g!="undefined"){d.push({name:this.name,value:g})}}});return b.param(d)};b.fn.fieldValue=function(j){for(var h=[],f=0,d=this.length;f<d;f++){var g=this[f];var e=b.fieldValue(g,j);if(e===null||typeof e=="undefined"||(e.constructor==Array&&!e.length)){continue}e.constructor==Array?b.merge(h,e):h.push(e)}return h};b.fieldValue=function(d,k){var f=d.name,q=d.type,r=d.tagName.toLowerCase();if(typeof k=="undefined"){k=true}if(k&&(!f||d.disabled||q=="reset"||q=="button"||(q=="checkbox"||q=="radio")&&!d.checked||(q=="submit"||q=="image")&&d.form&&d.form.clk!=d||r=="select"&&d.selectedIndex==-1)){return null}if(r=="select"){var l=d.selectedIndex;if(l<0){return null}var o=[],e=d.options;var h=(q=="select-one");var m=(h?l+1:e.length);for(var g=(h?l:0);g<m;g++){var j=e[g];if(j.selected){var p=b.browser.msie&&!(j.attributes.value.specified)?j.text:j.value;if(h){return p}o.push(p)}}return o}return d.value};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()})};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var e=this.type,d=this.tagName.toLowerCase();if(e=="text"||e=="password"||d=="textarea"){this.value=""}else{if(e=="checkbox"||e=="radio"){this.checked=false}else{if(d=="select"){this.selectedIndex=-1}}}})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};b.fn.enable=function(d){if(d==undefined){d=true}return this.each(function(){this.disabled=!d})};b.fn.select=function(d){if(d==undefined){d=true}return this.each(function(){var e=this.type;if(e=="checkbox"||e=="radio"){this.checked=d}else{if(this.tagName.toLowerCase()=="option"){var f=b(this).parent("select");if(d&&f[0]&&f[0].type=="select-one"){f.find("option").select(false)}this.selected=d}}})}})(jQuery);jQuery.extend(jQuery.fn,{validate:function(a){var b=new jQuery.validator(a,this[0]);var b=jQuery.data(this[0],"validator");if(b){return b}b=new jQuery.validator(a,this[0]);jQuery.data(this[0],"validator",b);if(b.settings.onsubmit){this.find("input.cancel:submit").click(function(){b.cancelSubmit=true});this.submit(function(c){if(b.settings.debug){c.preventDefault()}function d(){if(b.settings.submitHandler){b.settings.submitHandler.call(b,b.currentForm);return false}$.blockUI(waitingMessage);return true}if(b.cancelSubmit){b.cancelSubmit=false;return d()}if(b.form()){return d()}else{alert(invalidFromMsg);b.focusInvalid();return false}})}return b},push:function(a){return this.setArray(jQuery.merge(this.get(),a))}});jQuery.extend(jQuery.expr[":"],{blank:"!jQuery.trim(a.value)",filled:"!!jQuery.trim(a.value)",unchecked:"!a.checked"});jQuery.format=function(a,b){if(arguments.length==1){return function(){var c=jQuery.makeArray(arguments);c.unshift(a);return jQuery.format.apply(this,c)}}if(arguments.length>2&&b.constructor!=Array){b=jQuery.makeArray(arguments).slice(1)}if(b.constructor!=Array){b=[b]}jQuery.each(b,function(c,d){a=a.replace(new RegExp("\\{"+c+"\\}","g"),d)});return a};jQuery.validator=function(a,b){this.settings=jQuery.extend({},jQuery.validator.defaults,a);this.currentForm=b;this.labelContainer=jQuery(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||jQuery(b);this.containers=jQuery(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.invalid={};this.reset();this.refresh()};jQuery.extend(jQuery.validator,{defaults:{messages:{},errorClass:"error",errorElement:"label",focusInvalid:true,errorContainer:jQuery([]),errorLabelContainer:jQuery([]),onsubmit:true,ignore:[],onblur:function(a){if(!this.checkable(a)&&(a.name in this.submitted||!this.required(a))){this.element(a)}},onkeyup:function(a){if(a.name in this.submitted||a==this.lastElement){this.element(a)}},onclick:function(a){if(a.name in this.submitted){this.element(a)}}},setDefaults:function(a){jQuery.extend(jQuery.validator.defaults,a)},messages:{required:"This field is required.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",dateDE:"Bitte geben Sie ein gültiges Datum ein.",number:"Please enter a valid number.",numberDE:"Bitte geben Sie eine Nummer ein.",digits:"Please enter only digits",creditcard:"Please enter a valid credit card.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxLength:jQuery.format("Please enter a value no longer than {0} characters."),minLength:jQuery.format("Please enter a value of at least {0} characters."),rangeLength:jQuery.format("Please enter a value between {0} and {1} characters long."),rangeValue:jQuery.format("Please enter a value between {0} and {1}."),maxValue:jQuery.format("Please enter a value less than or equal to {0}."),minValue:jQuery.format("Please enter a value greater than or equal to {0}.")},prototype:{form:function(){this.prepareForm();for(var a=0;this.elements[a];a++){this.check(this.elements[a])}jQuery.extend(this.submitted,this.errorMap);this.invalid=jQuery.extend({},this.errorMap);this.settings.invalidHandler&&this.settings.invalidHandler.call(this);this.showErrors();return this.valid()},element:function(b){b=this.clean(b);this.lastElement=b;this.prepareElement(b);var a=this.check(b);if(a){delete this.invalid[b.name]}else{this.invalid[b.name]=true}if(!this.numberOfInvalids()){this.toHide.push(this.containers)}this.showErrors();return a},showErrors:function(a){if(a){jQuery.extend(this.errorMap,a);this.errorList=[];for(name in a){this.errorList.push({message:a[name],element:jQuery("[name='"+name+"']:first",this.currentForm)[0]})}this.successList=jQuery.grep(this.successList,function(b){return !(b.name in a)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){if(jQuery.fn.resetForm){jQuery(this.currentForm).resetForm()}this.prepareForm();this.hideErrors();this.elements.removeClass(this.settings.errorClass)},numberOfInvalids:function(){var a=0;for(i in this.invalid){a++}return a},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{jQuery(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus()}catch(a){}}},findLastActive:function(){var a=this.lastActive;return a&&jQuery.grep(this.errorList,function(b){return b.element.name==a.name}).length==1&&a},refresh:function(){var b=this;b.rulesCache={};function c(){b.lastActive=this;if(b.settings.focusCleanup&&!b.blockFocusCleanup){jQuery(this).removeClass(b.settings.errorClass);b.errorsFor(this).hide()}}this.elements=jQuery(this.currentForm).find("input, select, textarea").not(":submit, :reset").not("[disabled]").not(this.settings.ignore).filter(function(){!this.name&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b.rulesCache||!b.rules(this).length){return false}b.rulesCache[this.name]=b.rules(this);return true});this.elements.focus(c);b.settings.onblur&&b.elements.blur(function(){b.settings.onblur.call(b,this)});b.settings.onkeyup&&b.elements.keyup(function(){b.settings.onkeyup.call(b,this)});if(b.settings.onclick){var a=jQuery([]);b.elements.each(function(){if(b.checkable(this)){a.push(b.checkableGroup(this))}});a.click(function(){b.settings.onclick.call(b,this)})}},clean:function(a){return jQuery(a)[0]},errors:function(){return jQuery(this.settings.errorElement+"."+this.settings.errorClass+","+this.settings.errorElement+"."+this.settings.errorLabelClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=jQuery([]);this.toHide=jQuery([])},prepareForm:function(){this.reset();this.toHide=this.errors().push(this.containers)},prepareElement:function(a){this.reset();this.toHide=this.errorsFor(this.clean(a))},check:function(c){c=this.clean(c);jQuery(c).removeClass(this.settings.errorClass);var g=this.rulesCache[c.name];for(var b=0;g[b];b++){var f=g[b];try{var a=jQuery.validator.methods[f.method].call(this,jQuery.trim(c.value),c,f.parameters);if(a===-1){break}if(!a){jQuery(c).addClass(this.settings.errorClass);this.formatAndAdd(f,c);return false}}catch(d){this.settings.debug&&window.console&&console.warn("exception occured when checking element "+c.id+", check the '"+f.method+"' method");throw d}}if(g.length&&this.settings.success){this.successList.push(c)}return true},configuredMessage:function(c,b){var a=this.settings.messages[c];return a&&(a.constructor==String?a:a[b])},defaultMessage:function(a,b){return this.configuredMessage(a.name,b)||a.title||jQuery.validator.messages[b]||"<strong>Warning: No message defined for "+a.name+"</strong>"},formatAndAdd:function(c,a){var b=this.defaultMessage(a,c.method);if(typeof b=="function"){b=b.call(this,c.parameters,a)}this.errorList.push({message:b,element:a});this.errorMap[a.name]=b;this.submitted[a.name]=b},addWrapper:function(a){if(this.settings.wrapper){a.push(a.parents(this.settings.wrapper))}return a},defaultShowErrors:function(){for(var b=0;this.errorList[b];b++){var a=this.errorList[b];this.showLabel(a.element,a.message)}if(this.errorList.length){this.toShow.push(this.containers)}for(var b=0;this.successList[b];b++){this.showLabel(this.successList[b])}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},showLabel:function(b,c){var a=this.errorsFor(b);if(a.length){a.removeClass().addClass(this.settings.errorLabelClass);if(this.settings.overrideErrors||a.attr("generated")){a.html(c)}}else{a=jQuery("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(b),generated:true}).addClass(this.settings.errorLabelClass).html(c||"");if(this.settings.wrapper){a=a.hide().show().wrap("<"+this.settings.wrapper+">").parent()}if(!this.labelContainer.append(a).length){this.settings.errorPlacement?this.settings.errorPlacement(a,jQuery(b)):a.insertAfter(b)}}if(!c&&this.settings.success){a.text("");typeof this.settings.success=="string"?a.addClass(this.settings.success):this.settings.success(a)}this.toShow.push(a)},errorsFor:function(a){return this.errors().filter("[for='"+this.idOrName(a)+"']")},idOrName:function(a){return this.checkable(a)?a.name:a.id||a.name},rules:function(b){var c=this.data(b);if(!c){return[]}var d=[];if(typeof c=="string"){var a={};a[c]=true;c=a}jQuery.each(c,function(e,f){d[d.length]={method:e,parameters:f}});return d},data:function(a){return this.settings.rules?this.settings.rules[a.name]:this.settings.meta?jQuery(a).metadata()[this.settings.meta]:jQuery(a).metadata()},checkable:function(a){return/radio|checkbox/i.test(a.type)},checkableGroup:function(a){return jQuery(a.form||document).find('[name="'+a.name+'"]')},getLength:function(b,a){switch(a.nodeName.toLowerCase()){case"select":return jQuery("option:selected",a).length;case"input":if(this.checkable(a)){return this.checkableGroup(a).filter(":checked").length}}return b.length},depend:function(b,a){return this.dependTypes[typeof b]?this.dependTypes[typeof b](b,a):true},dependTypes:{"boolean":function(b,a){return b},string:function(b,a){return !!jQuery(b,a.form).length},"function":function(b,a){return b(a)}},required:function(a){return !jQuery.validator.methods.required.call(this,jQuery.trim(a.value),a)}},methods:{required:function(c,b,d){if(!this.depend(d,b)){return -1}switch(b.nodeName.toLowerCase()){case"select":var a=jQuery("option:selected",b);return a.length>0&&(b.type=="select-multiple"||(jQuery.browser.msie&&!(a[0].attributes.value.specified)?a[0].text:a[0].value).length>0);case"input":if(this.checkable(b)){return this.getLength(c,b)>0}default:return c.length>0}},minLength:function(b,a,c){return this.required(a)||this.getLength(b,a)>=c},maxLength:function(b,a,c){return this.required(a)||this.getLength(b,a)<=c},rangeLength:function(c,a,d){var b=this.getLength(c,a);return this.required(a)||(b>=d[0]&&b<=d[1])},minValue:function(b,a,c){return this.required(a)||b>=c},maxValue:function(b,a,c){return this.required(a)||b<=c},rangeValue:function(b,a,c){return this.required(a)||(b>=c[0]&&b<=c[1])},email:function(b,a){return this.required(a)||/^[^\s,;]+@([^\s.,;]+\.)+[\w-]{2,}$/i.test(b)},url:function(b,a){return this.required(a)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(b)},date:function(b,a){return this.required(a)||!/Invalid|NaN/.test(new Date(b))},dateISO:function(b,a){return this.required(a)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(b)},dateDE:function(b,a){return this.required(a)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(b)},number:function(b,a){return this.required(a)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(b)},numberDE:function(b,a){return this.required(a)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(b)},digits:function(b,a){return this.required(a)||/^\d+$/.test(b)},creditcard:function(e,b){if(this.required(b)){return true}var f=0,d=0,a=false;e=e.replace(/\D/g,"");for(n=e.length-1;n>=0;n--){var c=e.charAt(n);var d=parseInt(c,10);if(a){if((d*=2)>9){d-=9}}f+=d;a=!a}return(f%10)==0},accept:function(b,a,c){c=typeof c=="string"?c:"png|jpe?g|gif";return this.required(a)||b.match(new RegExp(".("+c+")$","i"))},equalTo:function(b,a,c){return b==jQuery(c).val()}},addMethod:function(a,c,b){jQuery.validator.methods[a]=c;jQuery.validator.messages[a]=b}});(function(a){var b={onClick:function(){a(this).find(">a").each(function(){if(this.href){window.location=this.href}})},arrowSrc:"",subDelay:300,mainDelay:10};a.fn.clickMenu=function(f){var c=false;var s=((a.browser.msie)?4:2);var r=a.extend({},b,f);var d=function(C,B){if(C.timer&&!C.isVisible){clearTimeout(C.timer)}else{if(C.timer){return}}if(C.isVisible){C.timer=setTimeout(function(){a(k(g(C,"UL"),"LI")).unbind("mouseover",h).unbind("mouseout",t).unbind("click",r.onClick);a(C).hide();C.isVisible=false;C.timer=null},B)}};var m=function(C,B){if(C.timer){clearTimeout(C.timer)}if(!C.isVisible){C.timer=setTimeout(function(){if(!z(C.parentNode,"hover")){return}a(k(g(C,"UL"),"LI")).mouseover(h).mouseout(t).click(r.onClick);if(!z(C.parentNode,"main")){a(C).css("left",C.parentNode.offsetWidth-s)}C.isVisible=true;var F=a(C);F.show();if(a.browser.msie){var D=a(g(C,"UL")).width();if(D<100){D=100}a(C).css("width",D)}var E=a(".clickMenuShadow",F);a(E.get(0)).css({width:F.width()-1,height:F.height()-1,left:5,top:5});a(E.get(1)).css({width:F.width()-3,height:F.height()+1,left:6,top:4});a(E.get(2)).css({width:F.width()+1,height:F.height()-3,left:4,top:6});C.timer=null},B)}};var A=function(C){var B=(C.type=="mouseover"?C.fromElement:C.toElement)||C.relatedTarget;while(B&&B!=this){try{B=B.parentNode}catch(C){B=this}}if(B==this){return false}return true};var u=function(E){var B=k(this.parentNode,"LI");var D=new RegExp("(^|\\s)hover(\\s|$)");for(var C=0;C<B.length;C++){if(D.test(B[C].className)){a(B[C]).removeClass("hover")}}a(this).addClass("hover");if(c){q(this,r.mainDelay)}};var h=function(B){if(!A(B)){return false}if(B.target!=this){if(!j(this,B.target)){return}}q(this,r.subDelay)};var q=function(B,C){var E=g(B,"DIV");var G=B.parentNode.firstChild;for(;G;G=G.nextSibling){if(G.nodeType==1&&G.nodeName.toUpperCase()=="LI"){var F=g(G,"DIV");if(F&&F.timer&&!F.isVisible){clearTimeout(F.timer);F.timer=null}}}var D=B.parentNode;for(;D;D=D.parentNode){if(D.nodeType==1&&D.nodeName.toUpperCase()=="DIV"){if(D.timer){clearTimeout(D.timer);D.timer=null;a(D.parentNode).addClass("hover")}}}a(B).addClass("hover");if(E&&E.isVisible){if(E.timer){clearTimeout(E.timer);E.timer=null}else{return}}a(B.parentNode.getElementsByTagName("DIV")).each(function(){if(this!=E&&this.isVisible){d(this,C);a(this.parentNode).removeClass("hover")}});if(E){m(E,C)}};var t=function(B){if(!A(B)){return false}if(B.target!=this){if(!j(this,B.target)){return}}var C=g(this,"DIV");if(!C){a(this).removeClass("hover")}else{if(!C.isVisible){a(this).removeClass("hover")}}};var v=function(D){var E=g(this,"DIV");var C=D.relatedTarget||D.toElement;var B;if(!c){a(this).removeClass("hover")}else{if(!E&&C){B=e(D.target,"UL","clickMenu");if(B.contains(C)){a(this).removeClass("hover")}}else{if(C){B=e(D.target,"UL","clickMenu");if(!E.isVisible&&(B.contains(C))){a(this).removeClass("hover")}}}}};var l=function(){var B=g(this,"DIV");if(B&&B.isVisible){o();a(this).addClass("hover")}else{q(this,r.mainDelay);c=true;a(document).bind("mousedown",w)}};var p=function(){q(this,r.mainDelay);c=true;a(document).bind("mousedown",w);return false};var w=function(D){var C=false;var B=e(D.target,"UL","clickMenu");if(B){a(B.getElementsByTagName("DIV")).each(function(){if(this.isVisible){C=true}})}if(!C){o()}};var o=function(){a("ul.clickMenu div.outerbox").each(function(){if(this.timer){clearTimeout(this.timer);this.timer=null}if(this.isVisible){a(this).hide();this.isVisible=false}});a("ul.clickMenu li").removeClass("hover");a("ul.clickMenu>li li").unbind("mouseover",h).unbind("mouseout",t).unbind("click",r.onClick);a(document).unbind("mousedown",w);c=false};var g=function(C,B){if(!C){return null}var D=C.firstChild;for(;D;D=D.nextSibling){if(D.nodeType==1&&D.nodeName.toUpperCase()==B){return D}}return null};var k=function(D,B){if(!D){return[]}var C=[];var E=D.firstChild;for(;E;E=E.nextSibling){if(E.nodeType==1&&E.nodeName.toUpperCase()==B){C[C.length]=E}}return C};var e=function(D,C,F){var B=D.parentNode;var E=new RegExp("(^|\\s)"+F+"(\\s|$)");for(;B;B=B.parentNode){if(B.nodeType==1&&B.nodeName.toUpperCase()==C&&E.test(B.className)){return B}}return null};var z=function(B,D){var C=new RegExp("(^|\\s)"+D+"(\\s|$)");if(C.test(B.className)){return true}return false};var j=function(C,B){var D=C.firstChild;for(;D;D=D.nextSibling){if(D==B){return true}}return false};return this.each(function(){if(window.Node&&Node.prototype&&!Node.prototype.contains){Node.prototype.contains=function(D){return !!(this.compareDocumentPosition(D)&16)}}if(!z(this,"clickMenu")){a(this).addClass("clickMenu")}a("ul",this).shadowBox();if(a.browser.msie&&(!a.browser.version||parseInt(a.browser.version)<=6)){if(a.fn.bgiframe){a("div.outerbox",this).bgiframe()}else{a("div.outerbox",this).append('<iframe style="display:block;position:absolute;top:0;left:0;z-index:-1;filter:mask();width:expression(this.parentNode.offsetWidth);height:expression(this.parentNode.offsetHeight)"/>')}}a(this).bind("closemenu",function(){o()});var B=k(this,"LI");for(var C=0;C<B.length;C++){if(g(g(g(B[C],"DIV"),"UL"),"LI")){a(B[C]).click(l)}}a(B).hover(u,v).addClass("main").find(">div").addClass("inner");if(r.arrowSrc){a("div.inner div.outerbox",this).before('<img src="'+r.arrowSrc+'" class="liArrow" />')}a(this).wrap('<div class="cmDiv"><div class="cmDiv2"></div></div>').after('<div style="clear: both; visibility: hidden;"></div>')})};a.fn.clickMenu.setDefaults=function(c){a.extend(b,c)}})(jQuery);(function(a){a.fn.shadowBox=function(){return this.each(function(){var c=a('<div class="outerbox"></div>').get(0);if(a(this).css("position")=="absolute"){a(c).css({position:"relative",width:this.offsetWidth,height:this.offsetHeight})}else{a(c).css("position","absolute")}var e=a('<div class="clickMenuShadow"></div>').css({opacity:0.2});var d=a('<div class="clickMenuShadow"></div>').css({opacity:0.2});var b=a('<div class="clickMenuShadow"></div>').css({opacity:0.2});a(this).addClass("innerBox").wrap(c).after(e).after(d).after(b)})}})(jQuery);function JT_init(){$("a.jTip:not(.init)").hover(function(){JT_show(this.href,this.id,this.name)},function(){JT_remove()}).click(function(){$(this).blur();return false}).addClass("init")}function JT_remove(){$("#JT2").remove()}function JT_show(e,f,D){if(D==false){D=""}var B=document.documentElement;var g=self.innerWidth||(B&&B.clientWidth)||document.body.clientWidth;var z=self.innerHeight||(B&&B.clientHeight)||document.body.clientHeight;var u=$(window).height();var b=$(window).scrollTop();var v=$(window).scrollLeft();var o=g-getAbsoluteLeft(f)-$("#"+f).width()-35;var p=getAbsoluteTop(f)-3;var j=e.lastIndexOf("?");var d=j>=0?e.substr(j+1):e;var C=parseQuery(d);var t=$("#"+C.jtip).html();if(C.width===undefined){var A=t.length;C.width=(A>900)?500:((A>600)?400:((A>300)?300:((A>30)?250:150)))}if(C.link!==undefined){$("#"+f).bind("click",function(){window.location=C.link});$("#"+f).css("cursor","pointer")}JT_remove();if(o>C.width*1){$("body").append("<div id='JT2'><div id='JT' style='width:"+(C.width*1)+"px;z-index:101'><div id='JT_arrow_left'></div>"+((D=="")?"":("<div id='JT_close_left'>"+D+"</div>"))+"<div id='JT_copy'><div class='JT_loader'></div></div></div><div class='jTipShadow'></div><div class='jTipShadow'></div><div class='jTipShadow'></div></div>");var s=getElementWidth(f)+10;var r=getAbsoluteLeft(f)+s}else{var r=getAbsoluteLeft(f)-((C.width*1)+10);if(r<v+6){C.width-=(v+6)-r;r=v+6}var k=($.browser.msie)?-3:0;$("body").append("<div id='JT2'><div id='JT' style='width:"+(C.width*1)+"px;z-index:101'><div id='JT_arrow_right' style='left:"+((C.width*1)+1+k)+"px'></div>"+((D=="")?"":("<div id='JT_close_right'>"+D+"</div>"))+"<div id='JT_copy'><div class='JT_loader'></div></div></div><div class='jTipShadow'></div><div class='jTipShadow'></div><div class='jTipShadow'></div></div>")}var m=$("#JT");m.css({left:r+"px",top:p+"px"});$("#JT_copy").html(t).find("a").each(function(){var h=$(this);h.after(h.html())}).remove();var a=$(".jTipShadow",$("#JT2")).css({opacity:0.2});m.show();var q=m.width();var l=m.height();var c=p+l+28-u-b+(($.browser.msie)?-18:0)+(($.browser.mozilla)?-15:0);if(c>0){p-=c}if(p<b+8){p=b+8}m.css({top:p+"px"});$(a.get(0)).css({width:q-1,height:l-1,left:r+2+5,top:p+2+5});$(a.get(1)).css({width:q-3,height:l+1,left:r+2+6,top:p+2+4});$(a.get(2)).css({width:q+1,height:l-3,left:r+2+4,top:p+2+6});a.show();m.click(function(){JT_remove()})}function getElementWidth(a){return $("#"+a).width()}function getElementHeight(a){return $("#"+a).height()}function getAbsoluteLeft(a){return $("#"+a).offset().left}function getAbsoluteTop(a){return $("#"+a).offset().top}function parseQuery(d){var e=new Object();if(!d){return e}var a=d.split(/[;&]/);for(var c=0;c<a.length;c++){var g=a[c].split("=");if(!g||g.length!=2){continue}var b=unescape(g[0]);var f=unescape(g[1]);f=f.replace(/\+/g," ");e[b]=f}return e}function blockEvents(a){if(a.target){a.preventDefault()}else{a.returnValue=false}}(function(b){b.fn.__bind__=b.fn.bind;b.fn.__unbind__=b.fn.unbind;b.fn.__find__=b.fn.find;var a={version:"0.7.8",override:/keydown|keypress|keyup/g,triggersMap:{},specialKeys:{27:"esc",9:"tab",32:"space",13:"return",8:"backspace",145:"scroll",20:"capslock",144:"numlock",19:"pause",45:"insert",36:"home",46:"del",35:"end",33:"pageup",34:"pagedown",37:"left",38:"up",39:"right",40:"down",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12"},shiftNums:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},newTrigger:function(d,e,c){var f={};f[d]={};f[d][e]={cb:c,disableInInput:false};return f}};if(b.browser.mozilla){a.specialKeys=b.extend(a.specialKeys,{96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"})}b.fn.find=function(c){this.query=c;return b.fn.__find__.apply(this,arguments)};b.fn.unbind=function(c,f,d){if(b.isFunction(f)){d=f;f=null}if(f&&typeof f==="string"){var e=((this.prevObject&&this.prevObject.query)||(this[0].id&&this[0].id)||this[0]).toString();var g=c.split(" ");for(var h=0;h<g.length;h++){delete a.triggersMap[e][g[h]][f]}}return this.__unbind__(c,d)};b.fn.bind=function(j,o,h){var l=j.match(a.override);if(b.isFunction(o)||!l){return this.__bind__(j,o,h)}else{var e=null,k=b.trim(j.replace(a.override,""));if(k){e=this.__bind__(k,o,h)}if(typeof o==="string"){o={combi:o}}if(o.combi){for(var f=0;f<l.length;f++){var c=l[f];var m=o.combi.toLowerCase(),p=a.newTrigger(c,m,h),g=((this.prevObject&&this.prevObject.query)||(this[0].id&&this[0].id)||this[0]).toString();p[c][m].disableInInput=o.disableInInput;if(!a.triggersMap[g]){a.triggersMap[g]=p}else{if(!a.triggersMap[g][c]){a.triggersMap[g][c]=p[c]}}var d=a.triggersMap[g][c][m];if(!d){a.triggersMap[g][c][m]=[p[c][m]]}else{if(d.constructor!==Array){a.triggersMap[g][c][m]=[d]}else{a.triggersMap[g][c][m][d.length]=p[c][m]}}this.each(function(){var q=b(this);if(q.attr("hkId")&&q.attr("hkId")!==g){g=q.attr("hkId")+";"+g}q.attr("hkId",g)});e=this.__bind__(l.join(" "),o,a.handler)}}return e}};a.findElement=function(c){if(!b(c).attr("hkId")){if(b.browser.opera||b.browser.safari){while(!b(c).attr("hkId")&&c.parentNode){c=c.parentNode}}}return c};a.handler=function(u){var j=a.findElement(u.currentTarget),q=b(j),c=q.attr("hkId");if(c){c=c.split(";");var s=u.which,g=u.type,h=a.specialKeys[s],k=!h&&String.fromCharCode(s).toLowerCase(),r=u.shiftKey,d=u.ctrlKey,l=u.altKey||u.originalEvent.altKey,t=null;for(var f=0;f<c.length;f++){if(a.triggersMap[c[f]][g]){t=a.triggersMap[c[f]][g];break}}if(t){var p;if(!r&&!d&&!l){p=t[h]||(k&&t[k])}else{var m="";if(l){m+="alt+"}if(d){m+="ctrl+"}if(r){m+="shift+"}p=t[m+h];if(!p){if(k){p=t[m+k]||t[m+a.shiftNums[k]]||(m==="shift+"&&t[a.shiftNums[k]])}}}if(p){var e=false;for(var f=0;f<p.length;f++){if(p[f].disableInInput){var o=b(u.target);if(q.is("input")||q.is("textarea")||o.is("input")||o.is("textarea")){return true}}e=e||p[f].cb.apply(this,[u])}return e}}}};window.hotkeys=a;return b})(jQuery);var swfobject=function(){var aq="undefined",aD="object",ab="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",aE="application/x-shockwave-flash",ac="SWFObjectExprInst",ax="onreadystatechange",af=window,aL=document,aB=navigator,aa=false,Z=[aN],aG=[],ag=[],al=[],aJ,ad,ap,at,ak=false,aU=false,aH,an,aI=true,ah=function(){var a=typeof aL.getElementById!=aq&&typeof aL.getElementsByTagName!=aq&&typeof aL.createElement!=aq,e=aB.userAgent.toLowerCase(),c=aB.platform.toLowerCase(),h=c?/win/.test(c):/win/.test(e),k=c?/mac/.test(c):/mac/.test(e),g=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,d=!+"\v1",f=[0,0,0],l=null;if(typeof aB.plugins!=aq&&typeof aB.plugins[ab]==aD){l=aB.plugins[ab].description;if(l&&!(typeof aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!aB.mimeTypes[aE].enabledPlugin)){aa=true;d=false;l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");f[0]=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);f[1]=parseInt(l.replace(/^.*\.(.*)\s.*$/,"$1"),10);f[2]=/[a-zA-Z]/.test(l)?parseInt(l.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof af.ActiveXObject!=aq){try{var j=new ActiveXObject(X);if(j){l=j.GetVariable("$version");if(l){d=true;l=l.split(" ")[1].split(",");f=[parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10)]}}}catch(b){}}}return{w3:a,pv:f,wk:g,ie:d,win:h,mac:k}}(),aK=function(){if(!ah.w3){return}if((typeof aL.readyState!=aq&&aL.readyState=="complete")||(typeof aL.readyState==aq&&(aL.getElementsByTagName("body")[0]||aL.body))){aP()}if(!ak){if(typeof aL.addEventListener!=aq){aL.addEventListener("DOMContentLoaded",aP,false)}if(ah.ie&&ah.win){aL.attachEvent(ax,function(){if(aL.readyState=="complete"){aL.detachEvent(ax,arguments.callee);aP()}});if(af==top){(function(){if(ak){return}try{aL.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}aP()})()}}if(ah.wk){(function(){if(ak){return}if(!/loaded|complete/.test(aL.readyState)){setTimeout(arguments.callee,0);return}aP()})()}aC(aP)}}();function aP(){if(ak){return}try{var b=aL.getElementsByTagName("body")[0].appendChild(ar("span"));b.parentNode.removeChild(b)}catch(a){return}ak=true;var d=Z.length;for(var c=0;c<d;c++){Z[c]()}}function aj(a){if(ak){a()}else{Z[Z.length]=a}}function aC(a){if(typeof af.addEventListener!=aq){af.addEventListener("load",a,false)}else{if(typeof aL.addEventListener!=aq){aL.addEventListener("load",a,false)}else{if(typeof af.attachEvent!=aq){aM(af,"onload",a)}else{if(typeof af.onload=="function"){var b=af.onload;af.onload=function(){b();a()}}else{af.onload=a}}}}}function aN(){if(aa){Y()}else{am()}}function Y(){var d=aL.getElementsByTagName("body")[0];var b=ar(aD);b.setAttribute("type",aE);var a=d.appendChild(b);if(a){var c=0;(function(){if(typeof a.GetVariable!=aq){var e=a.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");ah.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}else{if(c<10){c++;setTimeout(arguments.callee,10);return}}d.removeChild(b);a=null;am()})()}else{am()}}function am(){var g=aG.length;if(g>0){for(var h=0;h<g;h++){var c=aG[h].id;var m=aG[h].callbackFn;var a={success:false,id:c};if(ah.pv[0]>0){var j=aS(c);if(j){if(ao(aG[h].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(c,true);if(m){a.success=true;a.ref=av(c);m(a)}}else{if(aG[h].expressInstall&&au()){var e={};e.data=aG[h].expressInstall;e.width=j.getAttribute("width")||"0";e.height=j.getAttribute("height")||"0";if(j.getAttribute("class")){e.styleclass=j.getAttribute("class")}if(j.getAttribute("align")){e.align=j.getAttribute("align")}var f={};var d=j.getElementsByTagName("param");var l=d.length;for(var k=0;k<l;k++){if(d[k].getAttribute("name").toLowerCase()!="movie"){f[d[k].getAttribute("name")]=d[k].getAttribute("value")}}ae(e,f,c,m)}else{aF(j);if(m){m(a)}}}}}else{ay(c,true);if(m){var b=av(c);if(b&&typeof b.SetVariable!=aq){a.success=true;a.ref=b}m(a)}}}}}function av(b){var d=null;var c=aS(b);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=aq){d=c}else{var a=c.getElementsByTagName(aD)[0];if(a){d=a}}}return d}function au(){return !aU&&ao("6.0.65")&&(ah.win||ah.mac)&&!(ah.wk&&ah.wk<312)}function ae(f,d,h,e){aU=true;ap=e||null;at={success:false,id:h};var a=aS(h);if(a){if(a.nodeName=="OBJECT"){aJ=aO(a);ad=null}else{aJ=a;ad=h}f.id=ac;if(typeof f.width==aq||(!/%$/.test(f.width)&&parseInt(f.width,10)<310)){f.width="310"}if(typeof f.height==aq||(!/%$/.test(f.height)&&parseInt(f.height,10)<137)){f.height="137"}aL.title=aL.title.slice(0,47)+" - Flash Player Installation";var b=ah.ie&&ah.win?"ActiveX":"PlugIn",c="MMredirectURL="+af.location.toString().replace(/&/g,"%26")+"&MMplayerType="+b+"&MMdoctitle="+aL.title;if(typeof d.flashvars!=aq){d.flashvars+="&"+c}else{d.flashvars=c}if(ah.ie&&ah.win&&a.readyState!=4){var g=ar("div");h+="SWFObjectNew";g.setAttribute("id",h);a.parentNode.insertBefore(g,a);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}aA(f,d,h)}}function aF(a){if(ah.ie&&ah.win&&a.readyState!=4){var b=ar("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(aO(a),b);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.replaceChild(aO(a),a)}}function aO(b){var d=ar("div");if(ah.win&&ah.ie){d.innerHTML=b.innerHTML}else{var e=b.getElementsByTagName(aD)[0];if(e){var a=e.childNodes;if(a){var f=a.length;for(var c=0;c<f;c++){if(!(a[c].nodeType==1&&a[c].nodeName=="PARAM")&&!(a[c].nodeType==8)){d.appendChild(a[c].cloneNode(true))}}}}}return d}function aA(e,g,c){var d,a=aS(c);if(ah.wk&&ah.wk<312){return d}if(a){if(typeof e.id==aq){e.id=c}if(ah.ie&&ah.win){var f="";for(var j in e){if(e[j]!=Object.prototype[j]){if(j.toLowerCase()=="data"){g.movie=e[j]}else{if(j.toLowerCase()=="styleclass"){f+=' class="'+e[j]+'"'}else{if(j.toLowerCase()!="classid"){f+=" "+j+'="'+e[j]+'"'}}}}}var h="";for(var k in g){if(g[k]!=Object.prototype[k]){h+='<param name="'+k+'" value="'+g[k]+'" />'}}a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+">"+h+"</object>";ag[ag.length]=e.id;d=aS(e.id)}else{var b=ar(aD);b.setAttribute("type",aE);for(var l in e){if(e[l]!=Object.prototype[l]){if(l.toLowerCase()=="styleclass"){b.setAttribute("class",e[l])}else{if(l.toLowerCase()!="classid"){b.setAttribute(l,e[l])}}}}for(var m in g){if(g[m]!=Object.prototype[m]&&m.toLowerCase()!="movie"){aQ(b,m,g[m])}}a.parentNode.replaceChild(b,a);d=b}}return d}function aQ(b,d,c){var a=ar("param");a.setAttribute("name",d);a.setAttribute("value",c);b.appendChild(a)}function aw(a){var b=aS(a);if(b&&b.nodeName=="OBJECT"){if(ah.ie&&ah.win){b.style.display="none";(function(){if(b.readyState==4){aT(a)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.removeChild(b)}}}function aT(a){var b=aS(a);if(b){for(var c in b){if(typeof b[c]=="function"){b[c]=null}}b.parentNode.removeChild(b)}}function aS(a){var c=null;try{c=aL.getElementById(a)}catch(b){}return c}function ar(a){return aL.createElement(a)}function aM(a,c,b){a.attachEvent(c,b);al[al.length]=[a,c,b]}function ao(a){var b=ah.pv,c=a.split(".");c[0]=parseInt(c[0],10);c[1]=parseInt(c[1],10)||0;c[2]=parseInt(c[2],10)||0;return(b[0]>c[0]||(b[0]==c[0]&&b[1]>c[1])||(b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]))?true:false}function az(b,f,a,c){if(ah.ie&&ah.mac){return}var e=aL.getElementsByTagName("head")[0];if(!e){return}var g=(a&&typeof a=="string")?a:"screen";if(c){aH=null;an=null}if(!aH||an!=g){var d=ar("style");d.setAttribute("type","text/css");d.setAttribute("media",g);aH=e.appendChild(d);if(ah.ie&&ah.win&&typeof aL.styleSheets!=aq&&aL.styleSheets.length>0){aH=aL.styleSheets[aL.styleSheets.length-1]}an=g}if(ah.ie&&ah.win){if(aH&&typeof aH.addRule==aD){aH.addRule(b,f)}}else{if(aH&&typeof aL.createTextNode!=aq){aH.appendChild(aL.createTextNode(b+" {"+f+"}"))}}}function ay(a,c){if(!aI){return}var b=c?"visible":"hidden";if(ak&&aS(a)){aS(a).style.visibility=b}else{az("#"+a,"visibility:"+b)}}function ai(b){var a=/[\\\"<>\.;]/;var c=a.exec(b)!=null;return c&&typeof encodeURIComponent!=aq?encodeURIComponent(b):b}var aR=function(){if(ah.ie&&ah.win){window.attachEvent("onunload",function(){var a=al.length;for(var b=0;b<a;b++){al[b][0].detachEvent(al[b][1],al[b][2])}var d=ag.length;for(var c=0;c<d;c++){aw(ag[c])}for(var e in ah){ah[e]=null}ah=null;for(var f in swfobject){swfobject[f]=null}swfobject=null})}}();return{registerObject:function(a,e,c,b){if(ah.w3&&a&&e){var d={};d.id=a;d.swfVersion=e;d.expressInstall=c;d.callbackFn=b;aG[aG.length]=d;ay(a,false)}else{if(b){b({success:false,id:a})}}},getObjectById:function(a){if(ah.w3){return av(a)}},embedSWF:function(l,e,h,f,c,a,b,j,g,k){var d={success:false,id:e};if(ah.w3&&!(ah.wk&&ah.wk<312)&&l&&e&&h&&f&&c){ay(e,false);aj(function(){h+="";f+="";var s={};if(g&&typeof g===aD){for(var q in g){s[q]=g[q]}}s.data=l;s.width=h;s.height=f;var p={};if(j&&typeof j===aD){for(var r in j){p[r]=j[r]}}if(b&&typeof b===aD){for(var m in b){if(typeof p.flashvars!=aq){p.flashvars+="&"+m+"="+b[m]}else{p.flashvars=m+"="+b[m]}}}if(ao(c)){var o=aA(s,p,e);if(s.id==e){ay(e,true)}d.success=true;d.ref=o}else{if(a&&au()){s.data=a;ae(s,p,e,k);return}else{ay(e,true)}}if(k){k(d)}})}else{if(k){k(d)}}},switchOffAutoHideShow:function(){aI=false},ua:ah,getFlashPlayerVersion:function(){return{major:ah.pv[0],minor:ah.pv[1],release:ah.pv[2]}},hasFlashPlayerVersion:ao,createSWF:function(a,b,c){if(ah.w3){return aA(a,b,c)}else{return undefined}},showExpressInstall:function(b,a,d,c){if(ah.w3&&au()){ae(b,a,d,c)}},removeSWF:function(a){if(ah.w3){aw(a)}},createCSS:function(b,a,c,d){if(ah.w3){az(b,a,c,d)}},addDomLoadEvent:aj,addLoadEvent:aC,getQueryParamValue:function(b){var a=aL.location.search||aL.location.hash;if(a){if(/\?/.test(a)){a=a.split("?")[1]}if(b==null){return ai(a)}var c=a.split("&");for(var d=0;d<c.length;d++){if(c[d].substring(0,c[d].indexOf("="))==b){return ai(c[d].substring((c[d].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(aU){var a=aS(ac);if(a&&aJ){a.parentNode.replaceChild(aJ,a);if(ad){ay(ad,true);if(ah.ie&&ah.win){aJ.style.display="block"}}if(ap){ap(at)}}aU=false}}}}();var timeoutDelay=2000;var g_startDay=1;var imgUp=new Image(18,18);imgUp.src="graphic/system/calendar_up.gif";var imgDown=new Image(18,18);imgDown.src="graphic/system/calendar_down.gif";var timeoutId=false;function Browser(){this.dom=document.getElementById?1:0;this.ie4=(document.all&&!this.dom)?1:0;this.ns4=(document.layers&&!this.dom)?1:0;this.ns6=(this.dom&&!document.all)?1:0;this.ie5=(this.dom&&document.all)?1:0;this.ok=this.dom||this.ie4||this.ns4;this.platform=navigator.platform}var browser=new Browser();if(browser.dom||browser.ie4){browser.platform=="Win32"?height=140:height=145;document.writeln("<style>#container{position:absolute;left:100px;top:100px;width:224px;height:"+height+"px;visibility:hidden;background-color:#ffffff}</style>");document.write('<div id="container"');if(timeoutDelay){document.write(' onmouseout="calendarTimeout();" onmouseover="if (timeoutId) clearTimeout(timeoutId);"')}document.write("></div>")}var g_Calendar;function calendarTimeout(){if(browser.ie4||browser.ie5){if(window.event.srcElement&&window.event.srcElement.name!="month"){timeoutId=setTimeout("g_Calendar.hide();",timeoutDelay)}}if(browser.ns6||browser.ns4){timeoutId=setTimeout("g_Calendar.hide();",timeoutDelay)}}function Calendar(){g_Calendar=this;this.daysOfWeek=daysOfWeekName;this.months=monthLongName;this.daysInMonth=new Array(31,28,31,30,31,30,31,31,30,31,30,31);if(browser.ns4){var a=new Layer(127);if(timeoutDelay){a.captureEvents(Event.MOUSEOVER|Event.MOUSEOUT);a.onmouseover=function(b){if(timeoutId){clearTimeout(timeoutId)}};a.onmouseout=function(b){timeoutId=setTimeout("g_Calendar.hide()",timeoutDelay)}}a.x=100;a.y=100;a.bgColor="#ffffff"}if(browser.dom||browser.ie4){var a=browser.dom?document.getElementById("container"):document.all.container}this.containerLayer=a;if(browser.ns4&&browser.platform=="Win32"){this.containerLayer.clip.height=134;this.containerLayer.clip.width=127}}Calendar.prototype.getFirstDOM=function(){var a=new Date();a.setDate(1);a.setMonth(this.month);a.setFullYear(this.year);return a.getDay()};Calendar.prototype.getDaysInMonth=function(){if(this.month!=1){return this.daysInMonth[this.month]}else{if(Date.isLeapYear(this.year)){return 29}else{return 28}}};Calendar.prototype.buildString=function(){var a=new Date();var l=a.getDate();var b=a.getMonth();var p=a.getFullYear();var k='<div id="container2"><div style="position:relative;z-index:101"><form onSubmit="this.year.blur();return false;"><table id="calendarTable" width="229" border="0" cellpadding="2" cellspacing="1" bgcolor="#999999"><tr><td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#E0E0E0"><tr><td><img src="graphic/system/ico_arrow.png" align="absmiddle" width="6" height="9"> <span class="spotText boldText">'+this._title+'</span> </td></tr></table><table width="100%"  border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#999999"><img src="graphic/system/px.gif" width="1" height="2"></td></tr></table><table width="100%"  border="0" cellspacing="0" cellpadding="1"><tr><td><table width="100%"  border="0" cellspacing="0" cellpadding="2"><tr><td width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="1" class="calBgColor"><tr height="25"><td width="60%" align="left">';if(this.hasDropDown){k+='<select class="month" name="month" onchange="g_Calendar.selectChange();">';for(var f=0;f<this.months.length;f++){k+='<option value="'+f+'"';if(f==this.month){k+=" selected"}k+=">"+this.months[f]+"</option>"}k+="</select>"}else{k+='<table border="0" cellspacing="0" cellpadding="0"><tr><td><a href="javascript:g_Calendar.changeMonth(-1)"><img name="calendar" src="graphic/system/calendar_down.gif"  border="0" alt=""></a></td><td width="100%" align="center"><a href="javascript:g_Calendar.changeMonth(+1)" class="boldText">'+this.months[this.month]+'</a></td><td><a href="javascript:g_Calendar.changeMonth(+1)"><img name="calendar" src="graphic/system/calendar_up.gif"  border="0" alt=""></a></td></tr></table>'}k+="</td><td>&nbsp;</td>";k+='<td width="40%" align="right">';if(this.hasDropDown){k+='<input class="year" type="text" size="';(browser.ns4&&browser.platform=="Win32")?k+=1:k+=4;k+='" name="year" maxlength="4" onBlur="g_Calendar.inputChange();" value="'+this.year+'">'}else{k+='<table border="0" cellspacing="0" cellpadding="0"><tr><td align="right"><a href="javascript:g_Calendar.changeYear(-1)"><img name="calendar" src="graphic/system/calendar_down.gif"  border="0" alt=""></a></td><td width="100%" align="center" nowrap><a href="javascript:g_Calendar.changeYear(+1)" class="boldText">'+this.year+'</a></td><td><a href="javascript:g_Calendar.changeYear(+1)"><img name="calendar" src="graphic/system/calendar_up.gif"  border="0" alt=""></a></td></tr></table>'}k+="</td></tr></table>";var h=1;var g=(7+this.getFirstDOM()-g_startDay)%7;var e=this.getDaysInMonth();k+='<table width="100%" border="0" cellspacing="0" cellpadding="2" class="calBgColor"><tr>';for(var f=0;f<7;f++){k+='<td align="center" class="calDaysColor">'+this.daysOfWeek[(g_startDay+f)%7]+"</td>"}k+="</tr>";var q=parseInt(""+this.dateFromYear+this.dateFromMonth+this.dateFromDay,10);var o=parseInt(""+this.dateToYear+this.dateToMonth+this.dateToDay,10);var d;for(var c=1;c<=6;c++){k+="<tr>";for(var f=1;f<=7;f++){k+='<td width="22" align="center"';if((7*(c-1)+f)>=g+1&&h<=e){d=parseInt(""+this.year+padZero(this.month)+padZero(h),10);if(d>=q&&d<=o){k+=' onClick="javascript:g_Calendar.clickDay('+h+");\" onMouseOver=\"this._oldBg=this.style.backgroundColor;this._oldC=this.firstChild.style.color;this.firstChild.style.color='#FFFFFF';this.style.backgroundColor='#606060';this.style.cursor='pointer';\" onMouseOut=\"this.style.backgroundColor=this._oldBg;this.firstChild.style.color=this._oldC\""}if(h==this.day&&this.year==this.oYear&&this.month==this.oMonth){k+='class="calHighlightColor"'}else{if(f==7-g_startDay||f==((7-g_startDay)%7)+1){k+='class="calWeekend"'}else{k+='class="cal"'}}k+=">";var m=h;if(h==l&&this.month==b&&this.year==p){m="<b>"+m+"</b>"}if(d>=q&&d<=o){k+='<a class="cal" href="javascript:g_Calendar.clickDay('+h+');">';if(h==this.day&&this.year==this.oYear&&this.month==this.oMonth){k+='<span class="whiteText">'+m+"</span>"}else{k+=m}k+="</a>"}else{k+='<span class="disabled">'+m+"</span>"}h++}else{if(f==7-g_startDay||f==((7-g_startDay)%7)+1){k+='class="calWeekend"'}else{k+='class="cal"'}k+=">&nbsp;"}k+="</td>"}k+="</tr>"}k+='</table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></form></div></div><div class="calShadow"></div><div class="calShadow"></div><div class="calShadow"></div>';return k};Calendar.prototype.selectChange=function(){this.month=browser.ns6?this.containerLayer.ownerDocument.forms[0].month.selectedIndex:this.containerLayer.document.forms[0].month.selectedIndex;this.writeString(this.buildString())};Calendar.prototype.inputChange=function(){var a=browser.ns6?this.containerLayer.ownerDocument.forms[0].year:this.containerLayer.document.forms[0].year;if(a.value>=1900||a.value<=2100){this.year=a.value;this.writeString(this.buildString())}else{a.value=this.year}};Calendar.prototype.changeYear=function(a){(a==1)?this.year++:this.year--;this.writeString(this.buildString())};Calendar.prototype.changeMonth=function(a){if(this.month==11&&a==1){this.month=0;this.year++}else{if(this.month==0&&a==-1){this.month=11;this.year--}else{(a==1)?this.month++:this.month--}}this.writeString(this.buildString())};Calendar.prototype.clickDay=function(a){var c=$("#"+this.target);var b=c.get(0);b.value=this.formatDateAsString(a,this.month,this.year);if(browser.ns4){this.containerLayer.hidden=true}if(browser.dom||browser.ie4){this.containerLayer.style.visibility="hidden"}b.focus();c.change()};Calendar.prototype.formatDateAsString=function(day,month,year){var delim=eval("/\\"+this.dateDelim+"/g");switch(this.dateFormat.replace(delim,"")){case"ddmmmyyyy":return padZero(day)+this.dateDelim+this.months[month].substr(0,3)+this.dateDelim+year;case"ddmmyyyy":return padZero(day)+this.dateDelim+padZero(month+1)+this.dateDelim+year;case"mmddyyyy":return padZero((month+1))+this.dateDelim+padZero(day)+this.dateDelim+year;case"yyyymmdd":return year+this.dateDelim+padZero(month+1)+this.dateDelim+padZero(day);default:alert("unsupported date format")}};Calendar.prototype.writeString=function(e){if(browser.ns4){this.containerLayer.document.open();this.containerLayer.document.write(e);this.containerLayer.document.close()}if(browser.dom||browser.ie4){this.containerLayer.innerHTML=e}var d=$("#calendarTable");var c=$(".calShadow",$("#container")).css({opacity:0.2});if(browser.ns4){this.containerLayer.hidden=false}if(browser.dom||browser.ie4){this.containerLayer.style.visibility="visible"}var b=d.width();var a=d.height();clickElementx=d.position().left;clickElementy=d.position().top;$(c.get(0)).css({width:b-1,height:a-1,left:clickElementx+5,top:clickElementy+5});$(c.get(1)).css({width:b-3,height:a+1,left:clickElementx+6,top:clickElementy+4});$(c.get(2)).css({width:b+1,height:a-3,left:clickElementx+4,top:clickElementy+6});c.show()};Calendar.prototype.show=function(u,D,c,a,s,E,t,f){this.dateFrom=t||new Date(1900,0,1);this.dateFromDay=padZero(this.dateFrom.getDate());this.dateFromMonth=padZero(this.dateFrom.getMonth());this.dateFromYear=this.dateFrom.getFullYear();this.dateTo=f||new Date(3000,0,1);this.dateToDay=padZero(this.dateTo.getDate());this.dateToMonth=padZero(this.dateTo.getMonth());this.dateToYear=this.dateTo.getFullYear();this.hasDropDown=a;this.dateFormat=s||"dd-mmm-yyyy";this._title=E;switch(this.dateFormat){case"dd-mmm-yyyy":case"dd-mm-yyyy":case"yyyy-mm-dd":this.dateDelim="-";break;case"dd/mm/yyyy":case"mm/dd/yyyy":case"dd/mmm/yyyy":this.dateDelim="/";break}if(browser.ns4){if(!this.containerLayer.hidden){this.containerLayer.hidden=true;return}}if(browser.dom||browser.ie4){if(this.containerLayer.style.visibility=="visible"){this.containerLayer.style.visibility="hidden";return}}if(browser.ie5||browser.ie4){var u=window.event}if(browser.ns4){this.containerLayer.x=u.x+10;this.containerLayer.y=u.y-5}if(browser.ie5||browser.ie4){var k=u.srcElement;x=0;while(k.offsetParent!=null){x+=k.offsetLeft;k=k.offsetParent}x+=k.offsetLeft;y=0;var k=u.srcElement;while(k.offsetParent!=null){y+=k.offsetTop;k=k.offsetParent}y+=k.offsetTop;this.containerLayer.style.left=x+35;if(u.y>0){this.containerLayer.style.top=y}}if(browser.ns6){this.containerLayer.style.left=u.pageX+10;this.containerLayer.style.top=u.pageY-5}var C=document.documentElement;var j=self.innerWidth||(C&&C.clientWidth)||document.body.clientWidth;var A=self.innerHeight||(C&&C.clientHeight)||document.body.clientHeight;var d=$(this.containerLayer);var b=getAbsoluteLeft(c);var m=getAbsoluteTop(c);var g=j-b;var z=A-m;if(g>d.width()+75){var r=getElementWidth(c);var p=getAbsoluteLeft(c)+r}else{var p=getAbsoluteLeft(c)-(d.width()+4)}if(z>d.height()){var o=getAbsoluteTop(c)-3}else{var l=($.browser.mozilla)?57:0;var r=getElementHeight(c);var o=getAbsoluteTop(c)+r-(d.height()+l)}d.css({left:p+"px",top:o+"px"});this.target=D;var B=$("#"+this.target).get(0);if(B&&B.value&&B.value.split(this.dateDelim).length==3&&B.value.indexOf("d")==-1){var e=B.value.split(this.dateDelim);switch(this.dateFormat){case"dd-mmm-yyyy":case"dd/mmm/yyyy":for(var v=0;v<this.months.length;v++){if(e[1].toLowerCase()==this.months[v].substr(0,3).toLowerCase()){this.month=this.oMonth=v;break}}this.day=parseInt(e[0],10);this.year=this.oYear=parseInt(e[2],10);break;case"dd/mm/yyyy":case"dd-mm-yyyy":this.month=this.oMonth=parseInt(e[1]-1,10);this.day=parseInt(e[0],10);this.year=this.oYear=parseInt(e[2],10);break;case"mm/dd/yyyy":case"mm-dd-yyyy":this.month=this.oMonth=parseInt(e[0]-1,10);this.day=parseInt(e[1],10);this.year=this.oYear=parseInt(e[2],10);break;case"yyyy-mm-dd":this.month=this.oMonth=parseInt(e[1]-1,10);this.day=parseInt(e[2],10);this.year=this.oYear=parseInt(e[0],10);break}}else{var q=new Date();this.year=this.oYear=q.getFullYear();this.month=this.oMonth=q.getMonth();this.day=this.oDay=q.getDate()}this.writeString(this.buildString())};Calendar.prototype.hide=function(){if(browser.ns4){this.containerLayer.hidden=true}if(browser.dom||browser.ie4){this.containerLayer.style.visibility="hidden"}};function handleDocumentClick(b){if(browser.ie4||browser.ie5){b=window.event}if(browser.ns6){var a=(b.pageX>parseInt(g_Calendar.containerLayer.style.left,10)&&b.pageX<(parseInt(g_Calendar.containerLayer.style.left,10)+125)&&b.pageY<(parseInt(g_Calendar.containerLayer.style.top,10)+125)&&b.pageY>parseInt(g_Calendar.containerLayer.style.top,10));if(b.target.name!="imgCalendar"&&b.target.name!="month"&&b.target.name!="year"&&b.target.name!="calendar"&&!a){g_Calendar.hide()}}if(browser.ie4||browser.ie5){var a=(b.x>parseInt(g_Calendar.containerLayer.style.left,10)&&b.x<(parseInt(g_Calendar.containerLayer.style.left,10)+125)&&b.y<(parseInt(g_Calendar.containerLayer.style.top,10)+125)&&b.y>parseInt(g_Calendar.containerLayer.style.top,10));if(b.srcElement.name!="imgCalendar"&&b.srcElement.name!="month"&&b.srcElement.name!="year"&&!a&typeof(b.srcElement)!="object"){g_Calendar.hide()}}if(browser.ns4){g_Calendar.hide()}}function padZero(a){return((a<=9)?("0"+a):a)}Date.isLeapYear=function(a){if(a%4==0&&((a%100!=0)||(a%400==0))){return true}else{return false}};Date.daysInYear=function(a){if(Date.isLeapYear(a)){return 366}else{return 365}};var DAY=1000*60*60*24;Date.prototype.addDays=function(a){return new Date((a*DAY)+this.valueOf())};function CalendarOnLoad(){new Calendar(new Date());if(browser.ns4){if(typeof document.NSfix=="undefined"){document.NSfix=new Object();document.NSfix.initWidth=window.innerWidth;document.NSfix.initHeight=window.innerHeight}}}callOnLoad(CalendarOnLoad);if(browser.ns4){window.onresize=function(){if(document.NSfix.initWidth!=window.innerWidth||document.NSfix.initHeight!=window.innerHeight){window.location.reload(false)}}}function confirmSubmit(a){return confirm(a)}function cBrowser(){var a=navigator.userAgent.toLowerCase();this.userAgent=a;this.version=parseInt(navigator.appVersion);this.subVersion=parseFloat(navigator.appVersion);this.ns=((a.indexOf("mozilla")!=-1)&&((a.indexOf("spoofer")==-1)&&(a.indexOf("compatible")==-1)));this.ns2=(this.ns&&(this.version==2));this.ns3=(this.ns&&(this.version==3));this.ns4b=(this.ns&&(this.subVersion<4.04));this.ns4=(this.ns&&(this.version==4));this.ns5=(this.ns&&(this.version==5));this.ie=(a.indexOf("msie")!=-1);this.ie3=(this.ie&&(this.version==2));this.ie4=(this.ie&&(this.version==4)&&(a.indexOf("msie 4.")!=-1));this.ie5=(this.ie&&(this.version==4)&&(a.indexOf("msie 5.0")!=-1));this.ie55=(this.ie&&(this.version==4)&&(a.indexOf("msie 5.5")!=-1));this.ie6=(this.ie&&(this.version==4)&&(a.indexOf("msie 6.0")!=-1));this.op3=(a.indexOf("opera")!=-1);this.win=(a.indexOf("win")!=-1);this.mac=(a.indexOf("mac")!=-1);this.unix=(a.indexOf("x11")!=-1);this.name=navigator.appName;this.dom=this.ns5||this.ie5||this.ie55||this.ie6}var bw=new cBrowser();function addEvent(hElement,sEvent,handler,bCapture){if(hElement.addEventListener){hElement.addEventListener(sEvent,handler,bCapture);return true}else{if(hElement.attachEvent){return hElement.attachEvent("on"+sEvent,handler)}else{if(bw.ie4||bw.ns4){if(bw.ns4){eval("hElement.captureEvents( Event."+sEvent.toUpperCase()+" )")}eval("hElement.on"+sEvent+" = "+handler)}else{alert("Not implemented yet!")}}}}function removeEvent(hElement,sEvent,handler,bCapture){if(hElement.addEventListener){hElement.removeEventListener(sEvent,handler,bCapture);return true}else{if(hElement.attachEvent){return hElement.detachEvent("on"+sEvent,handler)}else{if(bw.ie4||bw.ns4){eval("hElement.on"+sEvent+" = null")}else{alert("Not implemented yet!")}}}}var KEY_TAB=9;var KEY_RETURN=13;var KEY_ESC=27;var KEY_LEFT=37;var KEY_UP=38;var KEY_RIGHT=39;var KEY_DOWN=40;var KEY_PAGE_UP=33;var KEY_PAGE_DOWN=34;var barcode_start=false;var barcode_value;$(document).keydown(function(d){if(barcode_start){if(d.which==13){barcode_start=false;var a=$("#ac_Barcode_sBarcode_");var c=$("#BarcodeForm");var b=$("#BarcodeSubmit");if(a.length&&c.length&&b.length){a.val(barcode_value);b.click()}d.preventDefault();d.stopPropagation()}}else{if(d.ctrlKey&&(d.which==113||d.which==81)){barcode_start=true;barcode_value="";d.preventDefault();d.stopPropagation()}}}).keypress(function(a){if(barcode_start&&!a.ctrlKey&&a.which!=13){barcode_value=barcode_value+String.fromCharCode(a.which);a.preventDefault();a.stopPropagation()}});function getKey(a){if(!a){a=window.event}return(a)?((a.keyCode)?a.keyCode:((a.charCode)?a.charCode:((a.which)?a.which:0))):0}function isNumber(a){return a!=null&&a.length>0&&a.search(new RegExp("[^0-9]"))<0}function numeralsOnly(b){b=(b)?b:event;var a=(b.charCode)?b.charCode:((b.keyCode)?b.keyCode:((b.which)?b.which:0));if(a>31&&(a<48||a>57)){beep_error();return false}return true}function objToString(d,b){var a=b+"={ ";for(var c in d){a+=c+"="+d[c]+"| "}return a+"}"}function beep_error(){var a=window.document.beep_error;if(a){a.Rewind();a.Play()}}function callOnLoad(a){addEvent(window,"load",a,false)}function setVisible(a,b){if(b){$("#"+a).show()}else{$("#"+a).hide()}}function setVisibleAll(a,b){if(b){$("[name="+a+"]").show()}else{$("[name="+a+"]").hide()}}function isVisible(a){return $("#"+a).is(":visible")}function setFocus(a){$("#"+a).focus().select()}function CaretPosition(){var b=null;var a=null}function getCaretPosition(b){var c=new CaretPosition();if(document.selection){b.focus();var a=document.selection.createRange();var d=a.text.length;a.moveStart("character",-b.value.length);c.start=a.text.length-d;c.end=a.text.length}else{if(b.selectionStart||b.selectionStart=="0"){c.start=b.selectionStart;c.end=b.selectionEnd}}return(c)}function setCaretPosition(c,d,b){if(document.selection){c.focus();var a=document.selection.createRange();a.moveStart("character",-c.value.length);a.moveEnd("character",-c.value.length);a.moveEnd("character",(b!=null)?b:d);a.moveStart("character",d);a.select()}else{if(c.selectionStart||c.selectionStart=="0"){c.selectionStart=d;c.selectionEnd=(b!=null)?b:c.selectionEnd=d;c.focus()}}}function clickHider(c){var a=$("#"+c).get(0);var b=(a._idA!=null)?isVisible(a._idA):!isVisible(a._idB);if(b){if(a._idA!=null){setVisible(a._idA,false)}if(a._idB!=null){setVisible(a._idB,true)}if(a._minus!=null){a.innerHTML=a._minus}}else{if(a._idA!=null){setVisible(a._idA,true)}if(a._idB!=null){setVisible(a._idB,false)}if(a._plus!=null){a.innerHTML=a._plus}}}function initHider(g,b,f,e,d){var c=$("#"+g);var a=c.get(0);a._idA=b;a._idB=f;a._plus=e;a._minus=d;c.click(function(h){clickHider(g);this.blur();h.stopPropagation();return false});if(a._idA!=null){setVisible(a._idA,true)}if(a._idB!=null){setVisible(a._idB,false)}if(a._plus!=null){a.innerHTML=a._plus}}function clickHiderAll(b){var a=$("#"+b).get(0);if(a._visibleA){if(a._idA!=null){setVisibleAll(a._idA,false)}if(a._idB!=null){setVisibleAll(a._idB,true)}if(a._minus!=null){a.innerHTML=a._minus}a._visibleA=false}else{if(a._idA!=null){setVisibleAll(a._idA,true)}if(a._idB!=null){setVisibleAll(a._idB,false)}if(a._plus!=null){a.innerHTML=a._plus}a._visibleA=true}}function initHiderAll(g,b,f,e,d){var c=$("#"+g);var a=c.get(0);a._idA=b;a._idB=f;a._plus=e;a._minus=d;c.click(function(h){clickHiderAll(g);this.blur();h.stopPropagation();return false});if(a._idA!=null){setVisibleAll(a._idA,true)}if(a._idB!=null){setVisibleAll(a._idB,false)}if(a._plus!=null){a.innerHTML=a._plus}a._visibleA=true}var g_menuTimeoutDelay=2000;var g_menuTimeoutId=null;var g_menuCurrentId=null;function clickHiderMenu(c){var a=$("#"+c).get(0);if(a!=null){if(a._idA!=null){var b=$("#"+a._idA).get(0);if(b!=null){if(b.style.display!="none"){b.style.display="none";if(a._idA!=null){setVisible(a._idA,false)}if(a._minus!=null){a.innerHTML=a._minus}}else{if(g_menuCurrentId!=null){hideMenu(g_menuCurrentId)}g_menuCurrentId=c;b.style.display="block";if(a._plus!=null){a.innerHTML=a._plus}}}}if(g_menuTimeoutId!=null){clearTimeout(g_menuTimeoutId);g_menuTimeoutId=null}}}function hideMenu(c){var a=$("#"+c).get(0);if(a!=null){if(a._idA!=null){var b=$("#"+a._idA).get(0);if(b!=null){if(b.style.display!="none"){b.style.display="none";if(a._idA!=null){setVisible(a._idA,false)}if(a._minus!=null){a.innerHTML=a._minus}}}}if(a.timeoutId!=null){clearTimeout(a.timeoutId);a.timeoutId=null}}}function initHiderMenu(f,b,e,c){var a=$("#"+f).get(0);if(a!=null){a._idA=b;a._plus=e;a._minus=c;a.onclick=function(){clickHiderMenu(f);this.blur();return false};a.onmouseover=function(g){if(g_menuTimeoutId!=null){clearTimeout(g_menuTimeoutId);g_menuTimeoutId=null}};a.onmouseout=function(g){g_menuTimeoutId=setTimeout("hideMenu('"+f+"')",g_menuTimeoutDelay)};if(a._idA!=null){var d=$("#"+a._idA).get(0);if(d!=null){d._idL=f;d.className="ajaxMenu";d.style.display="none";d.style.position="absolute";d.style.zIndex="99";d.style.border="0";d.style.padding="0";d.onmouseover=function(g){if(g_menuTimeoutId!=null){clearTimeout(g_menuTimeoutId);g_menuTimeoutId=null}};d.onmouseout=function(g){g_menuTimeoutId=setTimeout("hideMenu('"+f+"')",g_menuTimeoutDelay)}}}if(a._plus!=null){a.innerHTML=a._plus}}}function editList(c){var b=$("#"+c+"ActionTable tr[showtoedit],#"+c+"ActionTable div[showtoedit]");var a=$("#"+c+"ActionTable span[hidetoedit]");if(!b.is(":visible")){a.hide();b.show()}else{b.hide();a.show()}}function editLF(g,e,f){var d=$("#"+e+"ActionTable tr[showtoedit="+f+"],#"+e+"ActionTable div[showtoedit="+f+"]");var c=$("#"+e+"ActionTable span[hidetoedit="+f+"]");if(!d.is(":visible")){c.hide();d.show()}else{d.hide();c.show()}var a=$("#"+e+"ActionTable tr[showtoedit=submit]");if($("#"+e+"ActionTable div[showtoedit]").is(":visible")){a.show()}else{a.hide()}}function editLFS(e,c,d){var b=$("#"+c+"ActionTable tr[showtoselect="+c+"],#"+c+"ActionTable div[showtoselect="+c+"]");var a=$("#"+c+"ActionTable span[hidetoselect="+c+"]");if(!b.is(":visible")){a.hide();b.show()}else{b.hide();a.show()}}function clickELFD(k,g,j,f){var e=$("#"+g+"ActionTable tr[showtoedit="+j+"],#"+g+"ActionTable div[showtoedit="+j+"]");var d=$("#"+g+"ActionTable span[hidetoedit="+j+"]");var c=d.is(":visible");d.hide();e.show();var a=$("#"+g+"ActionTable tr[showtoedit=submit]");a.show();if(c){$("#"+f).click()}}function clickELFS(g,e,f,d){var c=$("#"+e+"ActionTable tr[showtoselect="+e+"],#"+e+"ActionTable div[showtoselect="+e+"]");var b=$("#"+e+"ActionTable span[hidetoselect="+e+"]");var a=b.is(":visible");b.hide();c.show();if(a){$("#"+d).click()}}function changeUAF(b,c,a){$("#"+c).val("1");$("#"+a).val("1");var e=$("#"+b+"showmodified");var d=$("#"+b+"hidemodified");d.hide();e.show()}function changeELFC(b,a,c){$("#"+a).removeAttr("showtoedit");$("#"+c).removeAttr("hidetoedit");$("#"+b+"ActionTable tr[showtoedit=submit]").removeAttr("showtoedit")}function changeELFCS(b,a,c){$("#"+a).removeAttr("showtoselect");$("#"+c).removeAttr("hidetoselect")}function clickELF(e,d,a,b){var c=$("#"+a);if(!c.is(":visible")){c.show();$("#"+b).hide();$("#"+d+"ActionTable tr[showtoedit=submit]").show();$("input:visible",c).focus()}}function changeELFD(b,d,a){var c=$("#"+d+"ActionTable input["+a+"]");c.filter(b.checked?":not(:checked)":":checked").click()}function changeELFS(b,d){var c=$("#"+d+"ActionTable input["+d+"selcb]");var a=[];c.filter(b.checked?":not(:checked)":":checked").each(function(){var g=$(this);g.data("noupdate",true);try{g.click()}catch(f){}g.removeData("noupdate");a.push(g.attr("rk"));a.push($("#"+g.attr("qid")).val())});if(a.length>0){updateLS(d,a)}}function clickELS(d,c,a){var b=$("#"+c+"ActionTable input["+a+"]:checked").size();if(b>0){return confirm(d)}return true}function changeELD(d,b,a){var e=$("#"+b);var c=$("#"+a);if(d.checked){e.val("1");c.addClass("listDelete")}else{e.val("0");c.removeClass("listDelete")}}function changeCB(c,a,e){var d=$("#"+a);var b=$("#"+e);if(c.checked){d.val("1");b.removeClass("grayText")}else{d.val("0");b.addClass("grayText")}}function changeCBMN(d,c,b){var e=$("#"+c);var a=parseInt(e.val());if(d.checked){a=a|b}else{a=a&(~b)}e.val(a)}function changeCBMS(d,c,b){var e=$("#"+c);var a=("|"+e.val()+"|").replace("|"+b+"|","").replace("||","");if(a.length>0){if(a.charAt(0)=="|"){a=a.substr(1)}if(a.charAt(a.length-1)=="|"){a=a.substr(0,a.length-1)}}if(d.checked){if(a.length>0){a=a+"|"}a=a+b}e.val(a)}function changeLSCB(d,f,j,b,e){var g=$(d);var a=$("#"+f);var h=$("#"+j);var k=0;if(d.checked){a.val("1");k=1;h.addClass(b)}else{a.val("");k=0;h.removeClass(b)}if(g.data("noupdate")!=true){updateLS(e,[g.attr("rk"),k])}}function changeLSQTY(d,k,f,l,b,g){var h=$("#"+k);var j=$("#"+l);var a=$(d);var m=0;if(f){var e=a.val().replace(",",".").replace(/[^0-9\.]/,"");m=parseFloat(e)}else{var e=a.val();m=parseInt(e,10)}if(isNaN(m)){m=0}if(m==0){a.val("");h.attr("checked",false);j.removeClass(b)}else{a.val(m);h.attr("checked",true);j.addClass(b)}if(h.data("noupdate")!=true){updateLS(g,[h.attr("rk"),m])}}function updateLS(e,d){var c={data_select:1,act:e};for(var b=0;b<d.length-1;b+=2){var a=String((b/2)+1);c["rk"+a]=d[b];c["qt"+a]=d[b+1]}$.post("fw",c,function(g){if(g.substr(0,1)!="1"){pageReload();return}var f=$("#"+e+"selOp"),h=$("td",f);if(g.length>1){h.html(g.substr(1));f.show()}else{f.hide();h.html("")}})}function initQV(a,c,b,d,e){var f=$("#"+c),g=$("#"+a);f.addClass("qvMain");g.hoverIntent(function(){if(f.data("load")!=true){f.data("load",true);var h=g.css("cursor");g.css("cursor","wait");$.get("fw","quick_view=1&t="+b+"&ids="+d+"&c="+e,function(j){g.css("cursor",h);if(j.substr(0,1)!="1"){pageReload();return}if(j.length>1){f.html("<div class='qvContent'>"+j.substr(1)+"</div><div class='qvShadow'></div><div class='qvShadow'></div><div class='qvShadow'>");$(".qvShadow",f).css({opacity:0.2});$("img",f).each(function(){$(this).load(function(){resizeQV(f)})});showQV(f,a);f.data("show",true);$("a",f).click(function(k){k.stopPropagation()});$(f).click(function(k){k.stopPropagation()});JT_init()}})}else{if(f.data("show")==true){showQV(f,a)}}},function(){f.hide()})}function showQV(h,m){var d=$("#"+m);var j=d.offset().top;var a=$(window).scrollTop();var b=$(".qvContent",h);var g=$(window).height();var k=($.browser.msie)?-2:0;var o=($.browser.mozilla)?4:(($.browser.msie)?2:0);var c=d.offset().left+d.width()+o;var l=j-1+k;$(".qvMain").hide();h.show();var f=b.height();var e=j+f+28-g-a+(($.browser.msie)?-18:0)+(($.browser.mozilla)?-15:0);if(e>0){l-=e}if(l<a+8){l=a+8}h.css({left:c+"px",top:l+"px"});resizeQV(h)}function resizeQV(e){var b=$(".qvContent",e);var c=b.width();var a=b.height();var d=$(".qvShadow",e);$(d.get(0)).css({width:c-1,height:a-1,left:5,top:5});$(d.get(1)).css({width:c-3,height:a+1,left:6,top:4});$(d.get(2)).css({width:c+1,height:a-3,left:4,top:6})}function clickTLL(b,c,a){$("span[name^="+b+"]").hide();$("span[name="+b+a+"]").show();$("a[name^="+c+"]").removeClass("boldText");$("a[name="+c+a+"]").addClass("boldText")}function initLPS(a,d,h,l,f,e,j){var b=$("#"+a);var k=1;var m="";for(var c=0;c<d;c++){var g=k+h-1;if(g>l){g=l}m+="<option value='"+k+"'"+((k==f)?" selected":"")+">"+e+" "+k+" "+j+" "+g+"</option>";k=g+1}b.append(m)}function initTIcon(b,h,d,c,g,f,a,e){$("#"+b).data("val",g).click(function(){var j=$(this);$.get("fw","toggle=1&op="+h+"&id1="+d+"&id2="+c+"&val="+((j.data("val")==1)?0:1)+"&c="+e,function(l){if(l.substr(0,1)!="1"){pageReload();return}l=l.substr(1);if(l=="1"||l=="0"){var k=l=="1";j.attr("src",((k)?f:a));j.data("val",((k)?1:0))}})})}function initTLink(a,j,h,l,k,d,e,c,f,g,b){$("#"+j).data("val",d).click(function(){var m=$(this);var o=$("#"+a);$.get("fw","toggle=1&op="+h+"&id1="+l+"&id2="+k+"&val="+((m.data("val")==1)?0:1)+"&c="+b,function(q){if(q.substr(0,1)!="1"){pageReload();return}q=q.substr(1);if(q=="1"||q=="0"){var p=q=="1";o.attr("src",((p)?e:c));m.text(((p)?f:g));m.data("val",((p)?1:0))}});return false})}var menuInits={};function initMenu(b){var a=$("#"+b);if(a.size()>0){if(menuInits[b]!=true){menuInits[b]=true;$.fn.clickMenu.setDefaults({subDelay:10,mainDelay:10,arrowSrc:"plugin/clickmenu.arrow_right.gif",onClick:function(c){runMenu($(this),c.ctrlKey);return false}});a.clickMenu().find("li[h!=sep]").each(function(){var c=$(this),d=c.attr("k");if(c.attr("c")){c.prepend("<img src='/plugin/clickmenu.ico_checked.png' align='absmiddle' border='0'/> ")}if(d){$(document).bind("keydown",d,function(){runMenu(c,false);return false})}$("tr",c).hover(function(){c.css("background-color","#bbb")},function(){c.css("background-color","")})});if(bw.ie){$("li[f!=1]:not(.clickMenuSeparatorLi)",a).css("padding-top","0").css("padding-bottom","0")}a.show()}}}function runMenu(m,openWin){var link=m.attr("h");if(link){if(link.substring(0,11)=="javascript:"){eval(link.substring(11))}else{var target=m.attr("t");if(openWin||target=="_blank"){window.open(link).focus()}else{if(target){window.open(link,target).focus()}else{window.location=link}}}}}function initMLC(b,a){var c=$("#"+b);c.keypress(function(d){updateMLC(c,a)}).keyup(function(d){updateMLC(c,a)}).focus(function(){showMLC(c,a)}).blur(function(){$("#divMLC").remove()})}function showMLC(b,a){$("#divMLC").remove();$("body").append("<div id='divMLC' class='maxLengthCounter'></div>");updateMLC(b,a)}function updateMLC(d,a){var j=$("#divMLC");var g=d.val();var f=g.length+stringCount(g,"\n");j.text(f+"/"+a);if(f>a){j.addClass("maxLengthCounterError")}else{j.removeClass("maxLengthCounterError")}var h=d.offset();var b=($.browser.msie)?-2:(($.browser.mozilla)?1:0);j.css("left",h.left+d.outerWidth(true)-j.outerWidth(true)+b).css("top",h.top+d.outerHeight(true)+2)}function initROTA(a){var b=$("#"+a);b.focus(function(){this.select()})}function initSMCB(c){var b=$("#"+c);var a=b.attr("fId");var d=$("#"+a);b.click(function(){var e="|";$(":checkbox:checked[fId="+a+"]").each(function(){var f=$(this);e+=f.attr("fVal")+"|"});d.val(e.length==1?"":e)})}function initLAB(c,a){var b=$(":"+c+"[id^="+a+"]");b.click(function(){b.filter(":checked").each(function(){$("label[for="+this.id+"].grayText").removeClass("grayText")});b.filter(":not(:checked)").each(function(){$("label[for="+this.id+"]:not(.grayText)").addClass("grayText")})})}function scrollTo(a){var b=(typeof a=="string")?$(a).offset().top:a;$($.browser.msie?"body":"html").animate({scrollTop:b},1)}function stringCount(b,a){var e=0;var d=b.indexOf(a);while(d>=0){e++;d=b.indexOf(a,d+1)}return e}function onSubmitForm(){$.blockUI(waitingMessage)}function blockUI(){$.blockUI(waitingMessage)}function unblockUI(){$.unblockUI()}function initForm(a){$("#"+a).validate()}function initForm2(b,a){$("#"+b).validate({submitHandler:a})}function openHelp(b,c,d){window.open(c,d).focus();b.blur()}var timediff=0;function initClk(d,c,a,b){timediff=(new Date()).getTime()-b;updateClk(c,a);swfobject.embedSWF("/plugin/clock.swf","fClock","31","31","9.0.0","/plugin/expressInstall.swf",{timediff:timediff},{wmode:"transparent"},null)}function updateClk(b,c){var k=new Date((new Date()).getTime()-timediff);var g=k.getDate(),e=k.getMonth(),j=k.getFullYear(),f=k.getHours(),a=k.getMinutes(),l=k.getSeconds();if(f<=9){f="0"+f}if(a<=9){a="0"+a}$("#"+b).text(g+" "+monthName[e]+" "+j);$("#"+c).text(f+":"+a);updateDtDesc();setTimeout("updateClk('"+b+"','"+c+"')",(60-k.getSeconds())*1000)}function updateDtDesc(){var a=new Date((new Date()).getTime()-timediff);$(".updDtDesc").each(function(){var c=$(this),b=new Date(Number(c.attr("time")));c.text(dtDesc(a,b))})}function dtDesc(e,g){var f=g.getMinutes()>0||g.getHours()>0;var k=getDaysDifference(e,g);var l="";if(k==0){if(f){var c=new Date(e.getYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),0);var a=new Date(g.getYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),0);var j=(a.getTime()-c.getTime())/60000;if(j>0){j=Math.floor(j)}else{if(j<0){j=Math.ceil(j)}}if(j==0){l=dtDescNow}else{if(j<=-60||j>=60){var h=j<0;var b=Math.floor((j<0?-j:j)/60);var o=(j<0?-j:j)%60;if(!h){var m=(b==1?(o==1?dtDesca11:dtDesca1n):(o==1?dtDescan1:dtDescann));l=m.replace("%1%",String(b)).replace("%2%",String(o))}else{var m=(b==1?(o==1?dtDescb11:dtDescb1n):(o==1?dtDescbn1:dtDescbnn));l=m.replace("%1%",String(b)).replace("%2%",String(o))}}else{if(j>0){l=(j==1?dtDesca1:dtDescan).replace("%1%",String(j))}else{if(j<0){l=(j==-1?dtDescb1:dtDescbn).replace("%1%",String(-j))}}}}}else{l=dtDescToday}}else{if(k==1){l=dtDescTomorrow}else{if(k==-1){l=dtDescYesterday}else{if(k>0){l=dtDescadn.replace("%1%",String(k))}else{if(k<0){l=dtDescbdn.replace("%1%",String(-k))}}}}}return l}function getDaysDifference(b,a){var e=new Date(b.getFullYear(),b.getMonth(),b.getDate());var c=new Date(a.getFullYear(),a.getMonth(),a.getDate());var f=(c.getTime()-e.getTime())/86400000;if(f>0){f=Math.floor(f)}else{if(f<0){f=Math.ceil(f)}}return f}$.Autocompleter.defaults.minChars=0;$.Autocompleter.defaults.matchSubset=false;$.Autocompleter.defaults.arrowClass="ac_arrow";$.Autocompleter.defaults.max=12;$.Autocompleter.defaults.smallText=false;$.Autocompleter.defaults.scroll=false;$.Autocompleter.defaults.scrollHeight=230;$.ajaxSetup({cache:false});$.blockUI.defaults.fadeIn=0;$.blockUI.defaults.fadeOut=0;$.blockUI.defaults.overlayCSS.backgroundColor="#bbb";$.validator.defaults.errorClass="inputError";$.validator.defaults.errorLabelClass="inputErrorLabel";var iconError="&nbsp;<img src='/graphic/system/ico_error.png' border='0' align='absmiddle'>";$.validator.messages.required=iconError;$.validator.messages.date=iconError;$.validator.messages.number=iconError;$.validator.messages.email=iconError;$.validator.messages.select=iconError;$.validator.messages.digits=iconError;$.validator.messages.equalTo=iconError;$.validator.messages.maxLength=iconError;$.validator.messages.minLength=iconError;$.validator.methods.minLength=function(b,a,c){return this.required(a)||(b.length+stringCount(b,"\n"))>=c};$.validator.methods.maxLength=function(b,a,c){return this.required(a)||(b.length+stringCount(b,"\n"))<=c};$.validator.methods.date=function(c,b,d){var a=/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}([ ]+\d{1,2}(\:|\.)\d{1,2}(\3\d{1,2})?)?$/;return this.required(b)||a.test(c)};$.validator.methods.number=function(c,b,d){var a=/^-?[0-9]+((\.|\,){1}[0-9]+)?$/;return this.required(b)||a.test(c)};$.validator.methods.select=function(b,a,c){b=$("#"+a.id.substr(0,a.id.length-2)).val();return b.length>0&&b>0};function showAHref(){$("a[h]").each(function(){var a=$(this);a.attr("href",a.attr("h")).removeAttr("h")})}function sleep(a){var c=new Date().getTime();for(var b=0;b<10000000;b++){if((new Date().getTime()-c)>a){break}}}function logException(a,b,c){log("exc",a,b,c)}function logWarning(a,b,c){log("wrn",a,b,c)}function log(a,b,c,d){$.post("fw",{log:1,type:a,act:b,msg:c},function(e){if(d){d(e)}})}function pageReload(){window.location.href=currentPageLink;blockUI()}$(function(){showAHref();$("a[href=DENIED]").each(function(){$(this).css("color","#666").css("cursor","default").click(function(){$(this).blur();alert(txtDenied);return false})});$("a[href=NULL]").each(function(){$(this).css("color","#666").css("cursor","default").css("text-decoration","none").click(function(){$(this).blur();return false})});if(focusFieldId!=null&&focusFieldId!=""){$("#"+focusFieldId).focus()}JT_init();$("div.tab").each(function(){var d=$(this);$("a",d).hover(function(){d.addClass("tabHov")},function(){d.removeClass("tabHov")})});$("a.helpToggler").click(function(){$("td.helpToggle").toggle();return false});setTimeout(function(){$("img[_src]").each(function(){var d=$(this);d.attr("src",d.attr("_src"));d.removeAttr("_src")})},200);var c=new Image();c.src="graphic/system/anico_loading.gif";var b=new Image();b.src="plugin/clickmenu.menu_bg2.png";var a=new Image();a.src="plugin/clickmenu.menu_separator.png"});
