// Licence jednotlivych pouzitych JS knihoven. Z duvodu jejich komprese jsou vsechny na zacatku...
/*!
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
/*
 * jQuery Form Plugin
 * version: 2.25 (08-APR-2009)
 * @requires jQuery v1.2.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
/**
 * jGrowl 1.1.2
 *
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * Written by Stan Lemon <stanlemon@mac.com>
 * Last updated: 2008.08.17
 *
 * jGrowl is a jQuery plugin implementing unobtrusive userland notifications.  These
 * notifications function similarly to the Growl Framework available for
 * Mac OS X (http://growl.info).
*/
/*
	jQuery TextAreaResizer plugin
	Created on 17th January 2008 by Ryan O'Dell
	Version 1.0.4

	Converted from Drupal -> textarea.js
	Found source: http://plugins.jquery.com/misc/textarea.js
*/
/*
 * jQuery validation plug-in 1.5.2
 *
 * http://bassistance.de/jquery-plugins/jquery-plugin-validation/
 * http://docs.jquery.com/Plugins/Validation
 *
 * Copyright (c) 2006 - 2008 JĂ¶rn Zaefferer
 *
 * $Id: licence.js,v 1.4 2009/04/27 08:57:22 carney Exp $
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
/*
overLIB 4.21 - You may not remove or change this notice.
Copyright Erik Bosrup 1998-2004. All rights reserved.

Contributors are listed on the homepage.
This file might be old, always check for the latest version at:
http://www.bosrup.com/web/overlib/

Please read the license agreement (available through the link above)
before using overLIB. Direct any licensing questions to erik@bosrup.com.

Do not sell this as your own work or remove this copyright notice.
For full details on copying or changing this script please read the
license agreement at the link above. Please give credit on sites that
use overLIB and submit changes of the script so other people can use
them as well.
*/
/*
overLIB Hide Form Plugin
overLIB Shadow Plugin
*/
/*
TableSort revisited v3.7 by frequency-decoder.com
Released under a creative commons Attribution-ShareAlike 2.5 license (http://creativecommons.org/licenses/by-sa/2.5/)
*/
/*  Copyright Mihai Bazon, 2002-2005  |  www.bazon.net/mishoo
* -----------------------------------------------------------
*
* The DHTML Calendar, version 1.0 "It is happening again"
*
* Details and latest version at:
* www.dynarch.com/projects/calendar
*
* This script is developed by Dynarch.com.  Visit us at www.dynarch.com.
*
* This script is distributed under the GNU Lesser General Public License.
* Read the entire license text here: http://www.gnu.org/licenses/lgpl.html
*/
(function(){var window=this,undefined,_jQuery=window.jQuery,_$=window.$,jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);},quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;this.context=selector;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&&elem.id!=match[3]){return jQuery().find(selector);}var ret=jQuery(elem||[]);ret.context=document;ret.selector=selector;return ret;}}else{return jQuery(context).find(selector);}}else{if(jQuery.isFunction(selector)){return jQuery(document).ready(selector);}}if(selector.selector&&selector.context){this.selector=selector.selector;this.context=selector.context;}return this.setArray(jQuery.isArray(selector)?selector:jQuery.makeArray(selector));},selector:"",jquery:"1.3.2",size:function(){return this.length;
},get:function(num){return num===undefined?Array.prototype.slice.call(this):this[num];},pushStack:function(elems,name,selector){var ret=jQuery(elems);ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector;}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")";}}return ret;},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){return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var options=name;if(typeof name==="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]){var wrap=jQuery(html,this[0].ownerDocument).clone();if(this[0].parentNode){wrap.insertBefore(this[0]);
}wrap.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,function(elem){if(this.nodeType==1){this.appendChild(elem);}});},prepend:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType==1){this.insertBefore(elem,this.firstChild);
}});},before:function(){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},push:[].push,sort:[].sort,splice:[].splice,find:function(selector){if(this.length===1){var ret=this.pushStack([],"find",selector);ret.length=0;jQuery.find(selector,this[0],ret);return ret;}else{return this.pushStack(jQuery.unique(jQuery.map(this,function(elem){return jQuery.find(selector,elem);
})),"find",selector);}},clone:function(events){var ret=this.map(function(){if(!jQuery.support.noCloneEvent&&!jQuery.isXMLDoc(this)){var html=this.outerHTML;if(!html){var div=this.ownerDocument.createElement("div");div.appendChild(this.cloneNode(true));html=div.innerHTML;}return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0];}else{return this.cloneNode(true);}});if(events===true){var orig=this.find("*").andSelf(),i=0;ret.find("*").andSelf().each(function(){if(this.nodeName!==orig[i].nodeName){return;
}var events=jQuery.data(orig[i],"events");for(var type in events){for(var handler in events[type]){jQuery.event.add(this,type,events[type][handler],events[type][handler].data);}}i++;});}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,jQuery.grep(this,function(elem){return elem.nodeType===1;})),"filter",selector);},closest:function(selector){var pos=jQuery.expr.match.POS.test(selector)?jQuery(selector):null,closer=0;
return this.map(function(){var cur=this;while(cur&&cur.ownerDocument){if(pos?pos.index(cur)>-1:jQuery(cur).is(selector)){jQuery.data(cur,"closest",closer);return cur;}cur=cur.parentNode;closer++;}});},not:function(selector){if(typeof selector==="string"){if(isSimple.test(selector)){return this.pushStack(jQuery.multiFilter(selector,this,true),"not",selector);}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 !!selector&&this.is("."+selector);},val:function(value){if(value===undefined){var elem=this[0];if(elem){if(jQuery.nodeName(elem,"option")){return(elem.attributes.value||{}).specified?elem.value:elem.text;
}if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0){return null;}for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery(option).val();if(one){return value;}values.push(value);}}return values;}return(elem.value||"").replace(/\r/g,"");}return undefined;}if(typeof value==="number"){value+="";}return this.each(function(){if(this.nodeType!=1){return;}if(jQuery.isArray(value)&&/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.replace(/ jQuery\d+="(?:\d+|null)"/g,""):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),"slice",Array.prototype.slice.call(arguments).join(","));},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);},domManip:function(args,table,callback){if(this[0]){var fragment=(this[0].ownerDocument||this[0]).createDocumentFragment(),scripts=jQuery.clean(args,(this[0].ownerDocument||this[0]),fragment),first=fragment.firstChild;
if(first){for(var i=0,l=this.length;i<l;i++){callback.call(root(this[i],first),this.length>1||i>0?fragment.cloneNode(true):fragment);}}if(scripts){jQuery.each(scripts,evalScript);}}return this;function root(elem,cur){return table&&jQuery.nodeName(elem,"table")&&jQuery.nodeName(cur,"tr")?(elem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.createElement("tbody"))):elem;}}};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(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2;}if(typeof target!=="object"&&!jQuery.isFunction(target)){target={};}if(length==i){target=this;--i;}for(;i<length;i++){if((options=arguments[i])!=null){for(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 exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{},toString=Object.prototype.toString;jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery;}return jQuery;},isFunction:function(obj){return toString.call(obj)==="[object Function]";
},isArray:function(obj){return toString.call(obj)==="[object Array]";},isXMLDoc:function(elem){return elem.nodeType===9&&elem.documentElement.nodeName!=="HTML"||!!elem.ownerDocument&&jQuery.isXMLDoc(elem.ownerDocument);},globalEval:function(data){if(data&&/\S/.test(data)){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.support.scriptEval){script.appendChild(document.createTextNode(data));}else{script.text=data;
}head.insertBefore(script,head.firstChild);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},each:function(object,callback,args){var name,i=0,length=object.length;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 typeof value==="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 elem&&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,extra){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;if(extra==="border"){return;}jQuery.each(which,function(){if(!extra){val-=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;}if(extra==="margin"){val+=parseFloat(jQuery.curCSS(elem,"margin"+this,true))||0;
}else{val-=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;}});}if(elem.offsetWidth!==0){getWH();}else{jQuery.swap(elem,props,getWH);}return Math.max(0,Math.round(val));}return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;if(name=="opacity"&&!jQuery.support.opacity){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret;}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){ret=computedStyle.getPropertyValue(name);}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,fragment){context=context||document;if(typeof context.createElement==="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;}if(!fragment&&elems.length===1&&typeof elems[0]==="string"){var match=/^<(\w+)\s*\/?>$/.exec(elems[0]);if(match){return[context.createElement(match[1])];}}var ret=[],scripts=[],div=context.createElement("div");
jQuery.each(elems,function(i,elem){if(typeof elem==="number"){elem+="";}if(!elem){return;}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=elem.replace(/^\s+/,"").substring(0,10).toLowerCase();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.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];
div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--){div=div.lastChild;}if(!jQuery.support.tbody){var hasBody=/<tbody/i.test(elem),tbody=!tags.indexOf("<table")&&!hasBody?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&!hasBody?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j]);}}}if(!jQuery.support.leadingWhitespace&&/^\s/.test(elem)){div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);
}elem=jQuery.makeArray(div.childNodes);}if(elem.nodeType){ret.push(elem);}else{ret=jQuery.merge(ret,elem);}});if(fragment){for(var i=0;ret[i];i++){if(jQuery.nodeName(ret[i],"script")&&(!ret[i].type||ret[i].type.toLowerCase()==="text/javascript")){scripts.push(ret[i].parentNode?ret[i].parentNode.removeChild(ret[i]):ret[i]);}else{if(ret[i].nodeType===1){ret.splice.apply(ret,[i+1,0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))));}fragment.appendChild(ret[i]);}}return scripts;}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;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&elem.parentNode){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;
}if(name=="tabIndex"){var attributeNode=elem.getAttributeNode("tabIndex");return attributeNode&&attributeNode.specified?attributeNode.value:elem.nodeName.match(/(button|input|object|select|textarea)/i)?0:elem.nodeName.match(/^(a|area)$/i)&&elem.href?0:undefined;}return elem[name];}if(!jQuery.support.style&&notxml&&name=="style"){return jQuery.attr(elem.style,"cssText",value);}if(set){elem.setAttribute(name,""+value);}var attr=!jQuery.support.hrefNormalized&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);
return attr===null?undefined:attr;}if(!jQuery.support.opacity&&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||typeof array==="string"||jQuery.isFunction(array)||array.setInterval){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.support.getAll){while((elem=second[i++])!=null){if(elem.nodeType!=8){first[pos++]=elem;}}}else{while((elem=second[i++])!=null){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.]+)/)||[0,"0"])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};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),name,selector);};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){var ret=[],insert=jQuery(selector);for(var i=0,l=insert.length;i<l;i++){var elems=(i>0?this.clone(true):this).get();jQuery.fn[original].apply(jQuery(insert[i]),elems);ret=ret.concat(elems);
}return this.pushStack(ret,name,selector);};});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,state){if(typeof state!=="boolean"){state=!jQuery.className.has(this,classNames);}jQuery.className[state?"add":"remove"](this,classNames);},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).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).children().remove();while(this.firstChild){this.removeChild(this.firstChild);}}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}var expando="jQuery"+now(),uuid=0,windowData={};jQuery.extend({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];}},queue:function(elem,type,data){if(elem){type=(type||"fx")+"queue";var q=jQuery.data(elem,type);if(!q||jQuery.isArray(data)){q=jQuery.data(elem,type,jQuery.makeArray(data));}else{if(data){q.push(data);}}}return q;},dequeue:function(elem,type){var queue=jQuery.queue(elem,type),fn=queue.shift();if(!type||type==="fx"){fn=queue[0];}if(fn!==undefined){fn.call(elem);}}});jQuery.fn.extend({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);});},queue:function(type,data){if(typeof type!=="string"){data=type;type="fx";}if(data===undefined){return jQuery.queue(this[0],type);}return this.each(function(){var queue=jQuery.queue(this,type,data);
if(type=="fx"&&queue.length==1){queue[0].call(this);}});},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type);});}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,done=0,toString=Object.prototype.toString;
var Sizzle=function(selector,context,results,seed){results=results||[];context=context||document;if(context.nodeType!==1&&context.nodeType!==9){return[];}if(!selector||typeof selector!=="string"){return results;}var parts=[],m,set,checkSet,check,mode,extra,prune=true;chunker.lastIndex=0;while((m=chunker.exec(selector))!==null){parts.push(m[1]);if(m[2]){extra=RegExp.rightContext;break;}}if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context);
}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector]){selector+=parts.shift();}set=posProcess(selector,set);}}}else{var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&context.parentNode?context.parentNode:context,isXML(context));set=Sizzle.filter(ret.expr,ret.set);if(parts.length>0){checkSet=makeArray(set);}else{prune=false;}while(parts.length){var cur=parts.pop(),pop=cur;
if(!Expr.relative[cur]){cur="";}else{pop=parts.pop();}if(pop==null){pop=context;}Expr.relative[cur](checkSet,pop,isXML(context));}}if(!checkSet){checkSet=set;}if(!checkSet){throw"Syntax error, unrecognized expression: "+(cur||selector);}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet);}else{if(context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i]);
}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i]);}}}}}else{makeArray(checkSet,results);}if(extra){Sizzle(extra,context,results,seed);if(sortOrder){hasDuplicate=false;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1);}}}}}return results;};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set);};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[];
}for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.match[type].exec(expr))){var left=RegExp.leftContext;if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break;}}}}if(!set){set=context.getElementsByTagName("*");}return{set:set,expr:expr};};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);
while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.match[type].exec(expr))!=null){var filter=Expr.filter[type],found,item;anyFound=false;if(curLoop==result){result=[];}if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true;}else{if(match===true){continue;}}}if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=true;
}else{curLoop[i]=false;}}else{if(pass){result.push(item);anyFound=true;}}}}}if(found!==undefined){if(!inplace){curLoop=result;}expr=expr.replace(Expr.match[type],"");if(!anyFound){return[];}break;}}}if(expr==old){if(anyFound==null){throw"Syntax error, unrecognized expression: "+expr;}else{break;}}old=expr;}return curLoop;};var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href");
}},relative:{"+":function(checkSet,part,isXML){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag&&!isXML){part=part.toUpperCase();}for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}checkSet[i]=isPartStrNotTag||elem&&elem.nodeName===part?elem||false:elem===part;}}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true);}},">":function(checkSet,part,isXML){var isPartStr=typeof part==="string";
if(isPartStr&&!/\W/.test(part)){part=isXML?part:part.toUpperCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName===part?parent:false;}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part;}}if(isPartStr){Sizzle.filter(part,checkSet,true);}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(!part.match(/\W/)){var nodeCheck=part=isXML?part:part.toUpperCase();
checkFn=dirNodeCheck;}checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML);},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!part.match(/\W/)){var nodeCheck=part=isXML?part:part.toUpperCase();checkFn=dirNodeCheck;}checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML);}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[];}},NAME:function(match,context,isXML){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);
for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i]);}}return ret.length===0?null:ret;}},TAG:function(match,context){return context.getElementsByTagName(match[1]);}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match;}for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").indexOf(match)>=0)){if(!inplace){result.push(elem);
}}else{if(inplace){curLoop[i]=false;}}}}return false;},ID:function(match){return match[1].replace(/\\/g,"");},TAG:function(match,curLoop){for(var i=0;curLoop[i]===false;i++){}return curLoop[i]&&isXML(curLoop[i])?match[1]:match[1].toUpperCase();},CHILD:function(match){if(match[1]=="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]=="even"&&"2n"||match[2]=="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0;}match[0]=done++;return match;
},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name];}if(match[2]==="~="){match[4]=" "+match[4]+" ";}return match;},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if(match[3].match(chunker).length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop);}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret);}return false;
}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true;}}return match;},POS:function(match){match.unshift(true);return match;}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden";},disabled:function(elem){return elem.disabled===true;},checked:function(elem){return elem.checked===true;},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true;},parent:function(elem){return !!elem.firstChild;},empty:function(elem){return !elem.firstChild;
},has:function(elem,i,match){return !!Sizzle(match[3],elem).length;},header:function(elem){return/h\d/i.test(elem.nodeName);},text:function(elem){return"text"===elem.type;},radio:function(elem){return"radio"===elem.type;},checkbox:function(elem){return"checkbox"===elem.type;},file:function(elem){return"file"===elem.type;},password:function(elem){return"password"===elem.type;},submit:function(elem){return"submit"===elem.type;},image:function(elem){return"image"===elem.type;},reset:function(elem){return"reset"===elem.type;
},button:function(elem){return"button"===elem.type||elem.nodeName.toUpperCase()==="BUTTON";},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName);}},setFilters:{first:function(elem,i){return i===0;},last:function(elem,i,match,array){return i===array.length-1;},even:function(elem,i){return i%2===0;},odd:function(elem,i){return i%2===1;},lt:function(elem,i,match){return i<match[3]-0;},gt:function(elem,i,match){return i>match[3]-0;},nth:function(elem,i,match){return match[3]-0==i;
},eq:function(elem,i,match){return match[3]-0==i;}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array);}else{if(name==="contains"){return(elem.textContent||elem.innerText||"").indexOf(match[3])>=0;}else{if(name==="not"){var not=match[3];for(var i=0,l=not.length;i<l;i++){if(not[i]===elem){return false;}}return true;}}}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case"only":case"first":while(node=node.previousSibling){if(node.nodeType===1){return false;
}}if(type=="first"){return true;}node=elem;case"last":while(node=node.nextSibling){if(node.nodeType===1){return false;}}return true;case"nth":var first=match[2],last=match[3];if(first==1&&last==0){return true;}var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count;}}parent.sizcache=doneName;}var diff=elem.nodeIndex-last;if(first==0){return diff==0;
}else{return(diff%first==0&&diff/first>=0);}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match;},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName===match;},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1;},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];
return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!=check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false;},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array);}}}};var origPOS=Expr.match.POS;
for(var type in Expr.match){Expr.match[type]=RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);}var makeArray=function(array,results){array=Array.prototype.slice.call(array);if(results){results.push.apply(results,array);return results;}return array;};try{Array.prototype.slice.call(document.documentElement.childNodes);}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array);}else{if(typeof array.length==="number"){for(var i=0,l=array.length;
i<l;i++){ret.push(array[i]);}}else{for(var i=0;array[i];i++){ret.push(array[i]);}}}return ret;};}var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=true;}return ret;};}else{if("sourceIndex" in document.documentElement){sortOrder=function(a,b){var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=true;}return ret;};}else{if(document.createRange){sortOrder=function(a,b){var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();
aRange.selectNode(a);aRange.collapse(true);bRange.selectNode(b);bRange.collapse(true);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=true;}return ret;};}}}(function(){var form=document.createElement("form"),id="script"+(new Date).getTime();form.innerHTML="<input name='"+id+"'/>";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(!!document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);
return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[];}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match;};}root.removeChild(form);})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);
if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i]);}}results=tmp;}return results;};}div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2);};}})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return;
}Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra);}catch(e){}}return oldSizzle(query,context,extra,seed);};Sizzle.find=oldSizzle.find;Sizzle.filter=oldSizzle.filter;Sizzle.selectors=oldSizzle.selectors;Sizzle.matches=oldSizzle.matches;})();}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var div=document.createElement("div");
div.innerHTML="<div class='test e'></div><div class='test'></div>";if(div.getElementsByClassName("e").length===0){return;}div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){return;}Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1]);}};})();}function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){var sibDir=dir=="previousSibling"&&!isXML;
for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;elem.sizset=i;}elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i;}if(elem.nodeName===cur){match=elem;break;}elem=elem[dir];}checkSet[i]=match;}}}function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){var sibDir=dir=="previousSibling"&&!isXML;for(var i=0,l=checkSet.length;
i<l;i++){var elem=checkSet[i];if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;elem.sizset=i;}elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i;}if(typeof cur!=="string"){if(elem===cur){match=true;break;}}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;break;}}}elem=elem[dir];}checkSet[i]=match;}}}var contains=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16;
}:function(a,b){return a!==b&&(a.contains?a.contains(b):true);};var isXML=function(elem){return elem.nodeType===9&&elem.documentElement.nodeName!=="HTML"||!!elem.ownerDocument&&isXML(elem.ownerDocument);};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"");}selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;
i<l;i++){Sizzle(selector,root[i],tmpSet);}return Sizzle.filter(later,tmpSet);};jQuery.find=Sizzle;jQuery.filter=Sizzle.filter;jQuery.expr=Sizzle.selectors;jQuery.expr[":"]=jQuery.expr.filters;Sizzle.selectors.filters.hidden=function(elem){return elem.offsetWidth===0||elem.offsetHeight===0;};Sizzle.selectors.filters.visible=function(elem){return elem.offsetWidth>0||elem.offsetHeight>0;};Sizzle.selectors.filters.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem;
}).length;};jQuery.multiFilter=function(expr,elems,not){if(not){expr=":not("+expr+")";}return Sizzle.matches(expr,elems);};jQuery.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;};jQuery.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;};jQuery.sibling=function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem){r.push(n);
}}return r;};return;window.Sizzle=Sizzle;})();jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8){return;}if(elem.setInterval&&elem!=window){elem=window;}if(!handler.guid){handler.guid=this.guid++;}if(data!==undefined){var fn=handler;handler=this.proxy(fn);handler.data=data;}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){return typeof jQuery!=="undefined"&&!jQuery.event.triggered?jQuery.event.handle.apply(arguments.callee.elem,arguments):undefined;
});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var namespaces=type.split(".");type=namespaces.shift();handler.type=namespaces.slice().sort().join(".");var handlers=events[type];if(jQuery.event.specialAll[type]){jQuery.event.specialAll[type].setup.call(elem,data,namespaces);}if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem,data,namespaces)===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 namespaces=type.split(".");
type=namespaces.shift();var namespace=RegExp("(^|\\.)"+namespaces.slice().sort().join(".*\\.")+"(\\.|$)");if(events[type]){if(handler){delete events[type][handler.guid];}else{for(var handle in events[type]){if(namespace.test(events[type][handle].type)){delete events[type][handle];}}}if(jQuery.event.specialAll[type]){jQuery.event.specialAll[type].teardown.call(elem,namespaces);}for(ret in events[type]){break;}if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem,namespaces)===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(event,data,elem,bubbling){var type=event.type||event;if(!bubbling){event=typeof event==="object"?event[expando]?event:jQuery.extend(jQuery.Event(type),event):jQuery.Event(type);if(type.indexOf("!")>=0){event.type=type=type.slice(0,-1);
event.exclusive=true;}if(!elem){event.stopPropagation();if(this.global[type]){jQuery.each(jQuery.cache,function(){if(this.events&&this.events[type]){jQuery.event.trigger(event,data,this.handle.elem);}});}}if(!elem||elem.nodeType==3||elem.nodeType==8){return undefined;}event.result=undefined;event.target=elem;data=jQuery.makeArray(data);data.unshift(event);}event.currentTarget=elem;var handle=jQuery.data(elem,"handle");if(handle){handle.apply(elem,data);}if((!elem[type]||(jQuery.nodeName(elem,"a")&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false){event.result=false;
}if(!bubbling&&elem[type]&&!event.isDefaultPrevented()&&!(jQuery.nodeName(elem,"a")&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;if(!event.isPropagationStopped()){var parent=elem.parentNode||elem.ownerDocument;if(parent){jQuery.event.trigger(event,data,parent,true);}}},handle:function(event){var all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);event.currentTarget=this;var namespaces=event.type.split(".");event.type=namespaces.shift();
all=!namespaces.length&&!event.exclusive;var namespace=RegExp("(^|\\.)"+namespaces.slice().sort().join(".*\\.")+"(\\.|$)");handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||namespace.test(handler.type)){event.handler=handler;event.data=handler.data;var ret=handler.apply(this,arguments);if(ret!==undefined){event.result=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}if(event.isImmediatePropagationStopped()){break;}}}},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 toElement view wheelDelta which".split(" "),fix:function(event){if(event[expando]){return event;
}var originalEvent=event;event=jQuery.Event(originalEvent);for(var i=this.props.length,prop;i;){prop=this.props[--i];event[prop]=originalEvent[prop];}if(!event.target){event.target=event.srcElement||document;}if(event.target.nodeType==3){event.target=event.target.parentNode;}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;}if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;
event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.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=proxy||function(){return fn.apply(this,arguments);
};proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:bindReady,teardown:function(){}}},specialAll:{live:{setup:function(selector,namespaces){jQuery.event.add(this,namespaces[0],liveHandler);},teardown:function(namespaces){if(namespaces.length){var remove=0,name=RegExp("(^|\\.)"+namespaces[0]+"(\\.|$)");jQuery.each((jQuery.data(this,"events").live||{}),function(){if(name.test(this.type)){remove++;}});if(remove<1){jQuery.event.remove(this,namespaces[0],liveHandler);
}}}}}};jQuery.Event=function(src){if(!this.preventDefault){return new jQuery.Event(src);}if(src&&src.type){this.originalEvent=src;this.type=src.type;}else{this.type=src;}this.timeStamp=now();this[expando]=true;};function returnFalse(){return false;}function returnTrue(){return true;}jQuery.Event.prototype={preventDefault:function(){this.isDefaultPrevented=returnTrue;var e=this.originalEvent;if(!e){return;}if(e.preventDefault){e.preventDefault();}e.returnValue=false;},stopPropagation:function(){this.isPropagationStopped=returnTrue;
var e=this.originalEvent;if(!e){return;}if(e.stopPropagation){e.stopPropagation();}e.cancelBubble=true;},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=returnTrue;this.stopPropagation();},isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse};var withinElement=function(event){var parent=event.relatedTarget;while(parent&&parent!=this){try{parent=parent.parentNode;}catch(e){parent=this;}}if(parent!=this){event.type=event.data;
jQuery.event.handle.apply(this,arguments);}};jQuery.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(orig,fix){jQuery.event.special[fix]={setup:function(){jQuery.event.add(this,orig,withinElement,fix);},teardown:function(){jQuery.event.remove(this,orig,withinElement);}};});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){return this.each(function(){jQuery.event.trigger(type,data,this);});},triggerHandler:function(type,data){if(this[0]){var event=jQuery.Event(type);event.preventDefault();event.stopPropagation();jQuery.event.trigger(event,data,this[0]);return event.result;}},toggle:function(fn){var args=arguments,i=1;
while(i<args.length){jQuery.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.mouseenter(fnOver).mouseleave(fnOut);},ready:function(fn){bindReady();if(jQuery.isReady){fn.call(document,jQuery);}else{jQuery.readyList.push(fn);}return this;},live:function(type,fn){var proxy=jQuery.event.proxy(fn);proxy.guid+=this.selector+type;
jQuery(document).bind(liveConvert(type,this.selector),this.selector,proxy);return this;},die:function(type,fn){jQuery(document).unbind(liveConvert(type,this.selector),fn?{guid:fn.guid+this.selector+type}:null);return this;}});function liveHandler(event){var check=RegExp("(^|\\.)"+event.type+"(\\.|$)"),stop=true,elems=[];jQuery.each(jQuery.data(this,"events").live||[],function(i,fn){if(check.test(fn.type)){var elem=jQuery(event.target).closest(fn.data)[0];if(elem){elems.push({elem:elem,fn:fn});}}});
elems.sort(function(a,b){return jQuery.data(a.elem,"closest")-jQuery.data(b.elem,"closest");});jQuery.each(elems,function(){if(this.fn.call(this.elem,event,this.fn.data)===false){return(stop=false);}});return stop;}function liveConvert(type,selector){return["live",type,selector.replace(/\./g,"`").replace(/ /g,"|")].join(".");}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);
});jQuery.readyList=null;}jQuery(document).triggerHandler("ready");}}});var readyBound=false;function bindReady(){if(readyBound){return;}readyBound=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);jQuery.ready();},false);}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);
jQuery.ready();}});if(document.documentElement.doScroll&&window==window.top){(function(){if(jQuery.isReady){return;}try{document.documentElement.doScroll("left");}catch(error){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,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);
};});jQuery(window).bind("unload",function(){for(var id in jQuery.cache){if(id!=1&&jQuery.cache[id].handle){jQuery.event.remove(jQuery.cache[id].handle.elem);}}});(function(){jQuery.support={};var root=document.documentElement,script=document.createElement("script"),div=document.createElement("div"),id="script"+(new Date).getTime();div.style.display="none";div.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
var all=div.getElementsByTagName("*"),a=div.getElementsByTagName("a")[0];if(!all||!all.length||!a){return;}jQuery.support={leadingWhitespace:div.firstChild.nodeType==3,tbody:!div.getElementsByTagName("tbody").length,objectAll:!!div.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/red/.test(a.getAttribute("style")),hrefNormalized:a.getAttribute("href")==="/a",opacity:a.style.opacity==="0.5",cssFloat:!!a.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};
script.type="text/javascript";try{script.appendChild(document.createTextNode("window."+id+"=1;"));}catch(e){}root.insertBefore(script,root.firstChild);if(window[id]){jQuery.support.scriptEval=true;delete window[id];}root.removeChild(script);if(div.attachEvent&&div.fireEvent){div.attachEvent("onclick",function(){jQuery.support.noCloneEvent=false;div.detachEvent("onclick",arguments.callee);});div.cloneNode(true).fireEvent("onclick");}jQuery(function(){var div=document.createElement("div");div.style.width=div.style.paddingLeft="1px";
document.body.appendChild(div);jQuery.boxModel=jQuery.support.boxModel=div.offsetWidth===2;document.body.removeChild(div).style.display="none";});})();var styleFloat=jQuery.support.cssFloat?"cssFloat":"styleFloat";jQuery.props={"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};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);}var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null;}else{if(typeof params==="object"){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);
}if(callback){self.each(callback,[res.responseText,status,res]);}}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val,i){return{name:elem.name,value:val};
}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});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",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},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 parts=/^(\w+:)?\/\/([^\/?#]+)/.exec(s.url);if(s.dataType=="script"&&type=="GET"&&parts&&(parts[1]&&parts[1]!=location.protocol||parts[2]!=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();script.onload=script.onreadystatechange=null;head.removeChild(script);}};}head.appendChild(script);return undefined;}var requestDone=false;var xhr=s.xhr();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){if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop");}xhr.abort();return false;}if(s.global){jQuery.event.trigger("ajaxSend",[xhr,s]);}var onreadystatechange=function(isTimeout){if(xhr.readyState==0){if(ival){clearInterval(ival);ival=null;if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop");}}}else{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);}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(isTimeout){xhr.abort();}if(s.async){xhr=null;}}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0){setTimeout(function(){if(xhr&&!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;}catch(e){}return false;},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url];
}catch(e){}return false;},httpData:function(xhr,type,s){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(s&&s.dataFilter){data=s.dataFilter(data,type);}if(typeof data==="string"){if(type=="script"){jQuery.globalEval(data);}if(type=="json"){data=window["eval"]("("+data+")");}}return data;},param:function(a){var s=[];function add(key,value){s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value);
}if(jQuery.isArray(a)||a.jquery){jQuery.each(a,function(){add(this.name,this.value);});}else{for(var j in a){if(jQuery.isArray(a[j])){jQuery.each(a[j],function(){add(j,this);});}else{add(j,jQuery.isFunction(a[j])?a[j]():a[j]);}}}return s.join("&").replace(/%20/g,"+");}});var elemdisplay={},timerId,fxAttrs=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function genFx(type,num){var obj={};jQuery.each(fxAttrs.concat.apply([],fxAttrs.slice(0,num)),function(){obj[this]=type;
});return obj;}jQuery.fn.extend({show:function(speed,callback){if(speed){return this.animate(genFx("show",3),speed,callback);}else{for(var i=0,l=this.length;i<l;i++){var old=jQuery.data(this[i],"olddisplay");this[i].style.display=old||"";if(jQuery.css(this[i],"display")==="none"){var tagName=this[i].tagName,display;if(elemdisplay[tagName]){display=elemdisplay[tagName];}else{var elem=jQuery("<"+tagName+" />").appendTo("body");display=elem.css("display");if(display==="none"){display="block";}elem.remove();
elemdisplay[tagName]=display;}jQuery.data(this[i],"olddisplay",display);}}for(var i=0,l=this.length;i<l;i++){this[i].style.display=jQuery.data(this[i],"olddisplay")||"";}return this;}},hide:function(speed,callback){if(speed){return this.animate(genFx("hide",3),speed,callback);}else{for(var i=0,l=this.length;i<l;i++){var old=jQuery.data(this[i],"olddisplay");if(!old&&old!=="none"){jQuery.data(this[i],"olddisplay",jQuery.css(this[i],"display"));}}for(var i=0,l=this.length;i<l;i++){this[i].style.display="none";
}return this;}},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){var bool=typeof fn==="boolean";return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn==null||bool?this.each(function(){var state=bool?fn:jQuery(this).is(":hidden");jQuery(this)[state?"show":"hide"]();}):this.animate(genFx("toggle",3),fn,fn2);},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(){var opt=jQuery.extend({},optall),p,hidden=this.nodeType==1&&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")&&this.style){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;});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;
if(clearQueue){this.queue([]);}this.each(function(){for(var i=timers.length-1;i>=0;i--){if(timers[i].elem==this){if(gotoEnd){timers[i](true);}timers.splice(i,1);}}});if(!gotoEnd){this.dequeue();}return this;}});jQuery.each({slideDown:genFx("show",1),slideUp:genFx("hide",1),slideToggle:genFx("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(name,props){jQuery.fn[name]=function(speed,callback){return this.animate(props,speed,callback);};});jQuery.extend({speed:function(speed,easing,fn){var opt=typeof speed==="object"?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!jQuery.isFunction(easing)&&easing};
opt.duration=jQuery.fx.off?0:typeof opt.duration==="number"?opt.duration:jQuery.fx.speeds[opt.duration]||jQuery.fx.speeds._default;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){jQuery(this).dequeue();}if(jQuery.isFunction(opt.old)){opt.old.call(this);}};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],fx:function(elem,options,prop){this.options=options;
this.elem=elem;this.prop=prop;if(!options.orig){options.orig={};}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this);}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block";}},cur:function(force){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];}var r=parseFloat(jQuery.css(this.elem,this.prop,force));
return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;var self=this;function t(gotoEnd){return self.step(gotoEnd);}t.elem=this.elem;if(t()&&jQuery.timers.push(t)&&!timerId){timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1);}}if(!timers.length){clearInterval(timerId);
timerId=undefined;}},13);}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.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){jQuery(this.elem).hide();}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p]);
}}this.options.complete.call(this.elem);}return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;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,_default:400},step:{opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){if(fx.elem.style&&fx.elem.style[fx.prop]!=null){fx.elem.style[fx.prop]=fx.now+fx.unit;
}else{fx.elem[fx.prop]=fx.now;}}}});if(document.documentElement.getBoundingClientRect){jQuery.fn.offset=function(){if(!this[0]){return{top:0,left:0};}if(this[0]===this[0].ownerDocument.body){return jQuery.offset.bodyOffset(this[0]);}var box=this[0].getBoundingClientRect(),doc=this[0].ownerDocument,body=doc.body,docElem=doc.documentElement,clientTop=docElem.clientTop||body.clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0,top=box.top+(self.pageYOffset||jQuery.boxModel&&docElem.scrollTop||body.scrollTop)-clientTop,left=box.left+(self.pageXOffset||jQuery.boxModel&&docElem.scrollLeft||body.scrollLeft)-clientLeft;
return{top:top,left:left};};}else{jQuery.fn.offset=function(){if(!this[0]){return{top:0,left:0};}if(this[0]===this[0].ownerDocument.body){return jQuery.offset.bodyOffset(this[0]);}jQuery.offset.initialized||jQuery.offset.initialize();var elem=this[0],offsetParent=elem.offsetParent,prevOffsetParent=elem,doc=elem.ownerDocument,computedStyle,docElem=doc.documentElement,body=doc.body,defaultView=doc.defaultView,prevComputedStyle=defaultView.getComputedStyle(elem,null),top=elem.offsetTop,left=elem.offsetLeft;
while((elem=elem.parentNode)&&elem!==body&&elem!==docElem){computedStyle=defaultView.getComputedStyle(elem,null);top-=elem.scrollTop,left-=elem.scrollLeft;if(elem===offsetParent){top+=elem.offsetTop,left+=elem.offsetLeft;if(jQuery.offset.doesNotAddBorder&&!(jQuery.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(elem.tagName))){top+=parseInt(computedStyle.borderTopWidth,10)||0,left+=parseInt(computedStyle.borderLeftWidth,10)||0;}prevOffsetParent=offsetParent,offsetParent=elem.offsetParent;
}if(jQuery.offset.subtractsBorderForOverflowNotVisible&&computedStyle.overflow!=="visible"){top+=parseInt(computedStyle.borderTopWidth,10)||0,left+=parseInt(computedStyle.borderLeftWidth,10)||0;}prevComputedStyle=computedStyle;}if(prevComputedStyle.position==="relative"||prevComputedStyle.position==="static"){top+=body.offsetTop,left+=body.offsetLeft;}if(prevComputedStyle.position==="fixed"){top+=Math.max(docElem.scrollTop,body.scrollTop),left+=Math.max(docElem.scrollLeft,body.scrollLeft);}return{top:top,left:left};
};}jQuery.offset={initialize:function(){if(this.initialized){return;}var body=document.body,container=document.createElement("div"),innerDiv,checkDiv,table,td,rules,prop,bodyMarginTop=body.style.marginTop,html='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';
rules={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(prop in rules){container.style[prop]=rules[prop];}container.innerHTML=html;body.insertBefore(container,body.firstChild);innerDiv=container.firstChild,checkDiv=innerDiv.firstChild,td=innerDiv.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(checkDiv.offsetTop!==5);this.doesAddBorderForTableAndCells=(td.offsetTop===5);innerDiv.style.overflow="hidden",innerDiv.style.position="relative";
this.subtractsBorderForOverflowNotVisible=(checkDiv.offsetTop===-5);body.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(body.offsetTop===0);body.style.marginTop=bodyMarginTop;body.removeChild(container);this.initialized=true;},bodyOffset:function(body){jQuery.offset.initialized||jQuery.offset.initialize();var top=body.offsetTop,left=body.offsetLeft;if(jQuery.offset.doesNotIncludeMarginInBodyOffset){top+=parseInt(jQuery.curCSS(body,"marginTop",true),10)||0,left+=parseInt(jQuery.curCSS(body,"marginLeft",true),10)||0;
}return{top:top,left:left};}};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||document.body;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 null;}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",lower=name.toLowerCase();jQuery.fn["inner"+name]=function(){return this[0]?jQuery.css(this[0],lower,false,"padding"):null;};jQuery.fn["outer"+name]=function(margin){return this[0]?jQuery.css(this[0],lower,false,margin?"margin":"border"):null;
};var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(document.documentElement["client"+name],document.body["scroll"+name],document.documentElement["scroll"+name],document.body["offset"+name],document.documentElement["offset"+name]):size===undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,typeof size==="string"?size:size+"px");
};});})();(function($){$.fn.ajaxSubmit=function(options){if(!this.length){log("ajaxSubmit: skipping submit process - no element selected");return this;}if(typeof options=="function"){options={success:options};}var url=this.attr("action")||window.location.href;url=(url.match(/^([^#]+)/)||[])[1];url=url||"";options=$.extend({url:url,type:this.attr("method")||"GET"},options||{});var veto={};this.trigger("form-pre-serialize",[this,options,veto]);if(veto.veto){log("ajaxSubmit: submit vetoed via form-pre-serialize trigger");
return this;}if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log("ajaxSubmit: submit aborted via beforeSerialize callback");return this;}var a=this.formToArray(options.semantic);if(options.data){options.extraData=options.data;for(var n in options.data){if(options.data[n] instanceof Array){for(var k in options.data[n]){a.push({name:n,value:options.data[n][k]});}}else{a.push({name:n,value:options.data[n]});}}}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log("ajaxSubmit: submit aborted via beforeSubmit callback");
return this;}this.trigger("form-submit-validate",[a,this,options,veto]);if(veto.veto){log("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this;}var q=$.param(a);if(options.type.toUpperCase()=="GET"){options.url+=(options.url.indexOf("?")>=0?"&":"?")+q;options.data=null;}else{options.data=q;}var $form=this,callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm();});}if(options.clearForm){callbacks.push(function(){$form.clearForm();});}if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};
callbacks.push(function(data){$(options.target).html(data).each(oldSuccess,arguments);});}else{if(options.success){callbacks.push(options.success);}}options.success=function(data,status){for(var i=0,max=callbacks.length;i<max;i++){callbacks[i].apply(options,[data,status,$form]);}};var files=$("input:file",this).fieldValue();var found=false;for(var j=0;j<files.length;j++){if(files[j]){found=true;}}if(options.iframe||found){if(options.closeKeepAlive){$.get(options.closeKeepAlive,fileUpload);}else{fileUpload();
}}else{$.ajax(options);}this.trigger("form-submit-notify",[this,options]);return this;function fileUpload(){var form=$form[0];if($(":input[name=submit]",form).length){alert('Error: Form elements must not be named "submit".');return;}var opts=$.extend({},$.ajaxSettings,options);var s=$.extend(true,{},$.extend(true,{},$.ajaxSettings),opts);var id="jqFormIO"+(new Date().getTime());var $io=$('<iframe id="'+id+'" name="'+id+'" src="about:blank" />');var io=$io[0];$io.css({position:"absolute",top:"-1000px",left:"-1000px"});
var xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;$io.attr("src","about:blank");}};var g=opts.global;if(g&&!$.active++){$.event.trigger("ajaxStart");}if(g){$.event.trigger("ajaxSend",[xhr,opts]);}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&$.active--;return;}if(xhr.aborted){return;}var cbInvoked=0;var timedOut=0;var sub=form.clk;
if(sub){var n=sub.name;if(n&&!sub.disabled){options.extraData=options.extraData||{};options.extraData[n]=sub.value;if(sub.type=="image"){options.extraData[name+".x"]=form.clk_x;options.extraData[name+".y"]=form.clk_y;}}}setTimeout(function(){var t=$form.attr("target"),a=$form.attr("action");form.setAttribute("target",id);if(form.getAttribute("method")!="POST"){form.setAttribute("method","POST");}if(form.getAttribute("action")!=opts.url){form.setAttribute("action",opts.url);}if(!options.skipEncodingOverride){$form.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});
}if(opts.timeout){setTimeout(function(){timedOut=true;cb();},opts.timeout);}var extraInputs=[];try{if(options.extraData){for(var n in options.extraData){extraInputs.push($('<input type="hidden" name="'+n+'" value="'+options.extraData[n]+'" />').appendTo(form)[0]);}}$io.appendTo("body");io.attachEvent?io.attachEvent("onload",cb):io.addEventListener("load",cb,false);form.submit();}finally{form.setAttribute("action",a);t?form.setAttribute("target",t):$form.removeAttr("target");$(extraInputs).remove();
}},10);var nullCheckFlag=0;function cb(){if(cbInvoked++){return;}io.detachEvent?io.detachEvent("onload",cb):io.removeEventListener("load",cb,false);var ok=true;try{if(timedOut){throw"timeout";}var data,doc;doc=io.contentWindow?io.contentWindow.document:io.contentDocument?io.contentDocument:io.document;if((doc.body==null||doc.body.innerHTML=="")&&!nullCheckFlag){nullCheckFlag=1;cbInvoked--;setTimeout(cb,100);return;}xhr.responseText=doc.body?doc.body.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;
xhr.getResponseHeader=function(header){var headers={"content-type":opts.dataType};return headers[header];};if(opts.dataType=="json"||opts.dataType=="script"){var ta=doc.getElementsByTagName("textarea")[0];xhr.responseText=ta?ta.value:xhr.responseText;}else{if(opts.dataType=="xml"&&!xhr.responseXML&&xhr.responseText!=null){xhr.responseXML=toXml(xhr.responseText);}}data=$.httpData(xhr,opts.dataType);}catch(e){ok=false;$.handleError(opts,xhr,"error",e);}if(ok){opts.success(data,"success");if(g){$.event.trigger("ajaxSuccess",[xhr,opts]);
}}if(g){$.event.trigger("ajaxComplete",[xhr,opts]);}if(g&&!--$.active){$.event.trigger("ajaxStop");}if(opts.complete){opts.complete(xhr,ok?"success":"error");}setTimeout(function(){$io.remove();xhr.responseXML=null;},100);}function toXml(s,doc){if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(s);}else{doc=(new DOMParser()).parseFromString(s,"text/xml");}return(doc&&doc.documentElement&&doc.documentElement.tagName!="parsererror")?doc:null;}}};$.fn.ajaxForm=function(options){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){$(this).ajaxSubmit(options);
return false;}).each(function(){$(":submit,input:image",this).bind("click.form-plugin",function(e){var form=this.form;form.clk=this;if(this.type=="image"){if(e.offsetX!=undefined){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else{if(typeof $.fn.offset=="function"){var offset=$(this).offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-this.offsetLeft;form.clk_y=e.pageY-this.offsetTop;}}}setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},10);});});};
$.fn.ajaxFormUnbind=function(){this.unbind("submit.form-plugin");return this.each(function(){$(":submit,input:image",this).unbind("click.form-plugin");});};$.fn.formToArray=function(semantic){var a=[];if(this.length==0){return a;}var form=this[0];var els=semantic?form.getElementsByTagName("*"):form.elements;if(!els){return a;}for(var i=0,max=els.length;i<max;i++){var el=els[i];var n=el.name;if(!n){continue;}if(semantic&&form.clk&&el.type=="image"){if(!el.disabled&&form.clk==el){a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y});
}continue;}var v=$.fieldValue(el,true);if(v&&v.constructor==Array){for(var j=0,jmax=v.length;j<jmax;j++){a.push({name:n,value:v[j]});}}else{if(v!==null&&typeof v!="undefined"){a.push({name:n,value:v});}}}if(!semantic&&form.clk){var inputs=form.getElementsByTagName("input");for(var i=0,max=inputs.length;i<max;i++){var input=inputs[i];var n=input.name;if(n&&!input.disabled&&input.type=="image"&&form.clk==input){a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y});}}}return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));
};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n){return;}var v=$.fieldValue(this,successful);if(v&&v.constructor==Array){for(var i=0,max=v.length;i<max;i++){a.push({name:n,value:v[i]});}}else{if(v!==null&&typeof v!="undefined"){a.push({name:this.name,value:v});}}});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v=="undefined"||(v.constructor==Array&&!v.length)){continue;
}v.constructor==Array?$.merge(val,v):val.push(v);}return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(typeof successful=="undefined"){successful=true;}if(successful&&(!n||el.disabled||t=="reset"||t=="button"||(t=="checkbox"||t=="radio")&&!el.checked||(t=="submit"||t=="image")&&el.form&&el.form.clk!=el||tag=="select"&&el.selectedIndex==-1)){return null;}if(tag=="select"){var index=el.selectedIndex;if(index<0){return null;}var a=[],ops=el.options;
var one=(t=="select-one");var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected){var v=op.value;if(!v){v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value;}if(one){return v;}a.push(v);}}return a;}return el.value;};$.fn.clearForm=function(){return this.each(function(){$("input,select,textarea",this).clearFields();});};$.fn.clearFields=$.fn.clearInputs=function(){return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();
if(t=="text"||t=="password"||tag=="textarea"){this.value="";}else{if(t=="checkbox"||t=="radio"){this.checked=false;}else{if(tag=="select"){this.selectedIndex=-1;}}}});};$.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset();}});};$.fn.enable=function(b){if(b==undefined){b=true;}return this.each(function(){this.disabled=!b;});};$.fn.selected=function(select){if(select==undefined){select=true;}return this.each(function(){var t=this.type;
if(t=="checkbox"||t=="radio"){this.checked=select;}else{if(this.tagName.toLowerCase()=="option"){var $sel=$(this).parent("select");if(select&&$sel[0]&&$sel[0].type=="select-one"){$sel.find("option").selected(false);}this.selected=select;}}});};function log(){if($.fn.ajaxSubmit.debug&&window.console&&window.console.log){window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""));}}})(jQuery);(function($){$.extend($.fn,{validate:function(options){if(!this.length){options&&options.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");
return;}var validator=$.data(this[0],"validator");if(validator){return validator;}validator=new $.validator(options,this[0]);$.data(this[0],"validator",validator);if(validator.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){validator.cancelSubmit=true;});this.submit(function(event){if(validator.settings.debug){event.preventDefault();}function handle(){if(validator.settings.submitHandler){validator.settings.submitHandler.call(validator,validator.currentForm);return false;
}return true;}if(validator.cancelSubmit){validator.cancelSubmit=false;return handle();}if(validator.form()){if(validator.pendingRequest){validator.formSubmitted=true;return false;}return handle();}else{validator.focusInvalid();return false;}});}return validator;},valid:function(){if($(this[0]).is("form")){return this.validate().form();}else{var valid=false;var validator=$(this[0].form).validate();this.each(function(){valid|=validator.element(this);});return valid;}},removeAttrs:function(attributes){var result={},$element=this;
$.each(attributes.split(/\s/),function(index,value){result[value]=$element.attr(value);$element.removeAttr(value);});return result;},rules:function(command,argument){var element=this[0];if(command){var settings=$.data(element.form,"validator").settings;var staticRules=settings.rules;var existingRules=$.validator.staticRules(element);switch(command){case"add":$.extend(existingRules,$.validator.normalizeRule(argument));staticRules[element.name]=existingRules;if(argument.messages){settings.messages[element.name]=$.extend(settings.messages[element.name],argument.messages);
}break;case"remove":if(!argument){delete staticRules[element.name];return existingRules;}var filtered={};$.each(argument.split(/\s/),function(index,method){filtered[method]=existingRules[method];delete existingRules[method];});return filtered;}}var data=$.validator.normalizeRules($.extend({},$.validator.metadataRules(element),$.validator.classRules(element),$.validator.attributeRules(element),$.validator.staticRules(element)),element);if(data.required){var param=data.required;delete data.required;
data=$.extend({required:param},data);}return data;}});$.extend($.expr[":"],{blank:function(a){return !$.trim(a.value);},filled:function(a){return !!$.trim(a.value);},unchecked:function(a){return !a.checked;}});$.format=function(source,params){if(arguments.length==1){return function(){var args=$.makeArray(arguments);args.unshift(source);return $.format.apply(this,args);};}if(arguments.length>2&&params.constructor!=Array){params=$.makeArray(arguments).slice(1);}if(params.constructor!=Array){params=[params];
}$.each(params,function(i,n){source=source.replace(new RegExp("\\{"+i+"\\}","g"),n);});return source;};$.validator=function(options,form){this.settings=$.extend({},$.validator.defaults,options);this.currentForm=form;this.init();};$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",errorElement:"label",focusInvalid:true,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(element){this.lastActive=element;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,element,this.settings.errorClass);
this.errorsFor(element).hide();}},onfocusout:function(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.optional(element))){this.element(element);}},onkeyup:function(element){if(element.name in this.submitted||element==this.lastElement){this.element(element);}},onclick:function(element){if(element.name in this.submitted){this.element(element);}},highlight:function(element,errorClass){$(element).addClass(errorClass);},unhighlight:function(element,errorClass){$(element).removeClass(errorClass);
}},setDefaults:function(settings){$.extend($.validator.defaults,settings);},messages:{required:"This field is required.",remote:"Please fix this field.",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 number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:$.format("Please enter no more than {0} characters."),minlength:$.format("Please enter at least {0} characters."),rangelength:$.format("Please enter a value between {0} and {1} characters long."),range:$.format("Please enter a value between {0} and {1}."),max:$.format("Please enter a value less than or equal to {0}."),min:$.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=$(this.settings.errorLabelContainer);
this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm);this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var groups=(this.groups={});$.each(this.settings.groups,function(key,value){$.each(value.split(/\s/),function(index,name){groups[name]=key;});});var rules=this.settings.rules;$.each(rules,function(key,value){rules[key]=$.validator.normalizeRule(value);
});function delegate(event){var validator=$.data(this[0].form,"validator");validator.settings["on"+event.type]&&validator.settings["on"+event.type].call(validator,this[0]);}$(this.currentForm).delegate("focusin focusout keyup",":text, :password, :file, select, textarea",delegate).delegate("click",":radio, :checkbox",delegate);if(this.settings.invalidHandler){$(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler);}},form:function(){this.checkForm();$.extend(this.submitted,this.errorMap);
this.invalid=$.extend({},this.errorMap);if(!this.valid()){$(this.currentForm).triggerHandler("invalid-form",[this]);}this.showErrors();return this.valid();},checkForm:function(){this.prepareForm();for(var i=0,elements=(this.currentElements=this.elements());elements[i];i++){this.check(elements[i]);}return this.valid();},element:function(element){element=this.clean(element);this.lastElement=element;this.prepareElement(element);this.currentElements=$(element);var result=this.check(element);if(result){delete this.invalid[element.name];
}else{this.invalid[element.name]=true;}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers);}this.showErrors();return result;},showErrors:function(errors){if(errors){$.extend(this.errorMap,errors);this.errorList=[];for(var name in errors){this.errorList.push({message:errors[name],element:this.findByName(name)[0]});}this.successList=$.grep(this.successList,function(element){return !(element.name in errors);});}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors();
},resetForm:function(){if($.fn.resetForm){$(this.currentForm).resetForm();}this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass);},numberOfInvalids:function(){return this.objectLength(this.invalid);},objectLength:function(obj){var count=0;for(var i in obj){count++;}return count;},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{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus();
}catch(e){}}},findLastActive:function(){var lastActive=this.lastActive;return lastActive&&$.grep(this.errorList,function(n){return n.element.name==lastActive.name;}).length==1&&lastActive;},elements:function(){var validator=this,rulesCache={};return $([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&validator.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in rulesCache||!validator.objectLength($(this).rules())){return false;
}rulesCache[this.name]=true;return true;});},clean:function(selector){return $(selector)[0];},errors:function(){return $(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext);},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=$([]);this.toHide=$([]);this.formSubmitted=false;this.currentElements=$([]);},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers);},prepareElement:function(element){this.reset();this.toHide=this.errorsFor(element);
},check:function(element){element=this.clean(element);if(this.checkable(element)){element=this.findByName(element.name)[0];}var rules=$(element).rules();var dependencyMismatch=false;for(method in rules){var rule={method:method,parameters:rules[method]};try{var result=$.validator.methods[method].call(this,element.value.replace(/\r/g,""),element,rule.parameters);if(result=="dependency-mismatch"){dependencyMismatch=true;continue;}dependencyMismatch=false;if(result=="pending"){this.toHide=this.toHide.not(this.errorsFor(element));
return;}if(!result){this.formatAndAdd(element,rule);return false;}}catch(e){this.settings.debug&&window.console&&console.log("exception occured when checking element "+element.id+", check the '"+rule.method+"' method");throw e;}}if(dependencyMismatch){return;}if(this.objectLength(rules)){this.successList.push(element);}return true;},customMetaMessage:function(element,method){if(!$.metadata){return;}var meta=this.settings.meta?$(element).metadata()[this.settings.meta]:$(element).metadata();return meta&&meta.messages&&meta.messages[method];
},customMessage:function(name,method){var m=this.settings.messages[name];return m&&(m.constructor==String?m:m[method]);},findDefined:function(){for(var i=0;i<arguments.length;i++){if(arguments[i]!==undefined){return arguments[i];}}return undefined;},defaultMessage:function(element,method){return this.findDefined(this.customMessage(element.name,method),this.customMetaMessage(element,method),!this.settings.ignoreTitle&&element.title||undefined,$.validator.messages[method],"<strong>Warning: No message defined for "+element.name+"</strong>");
},formatAndAdd:function(element,rule){var message=this.defaultMessage(element,rule.method);if(typeof message=="function"){message=message.call(this,rule.parameters,element);}this.errorList.push({message:message,element:element});this.errorMap[element.name]=message;this.submitted[element.name]=message;},addWrapper:function(toToggle){if(this.settings.wrapper){toToggle=toToggle.add(toToggle.parents(this.settings.wrapper));}return toToggle;},defaultShowErrors:function(){for(var i=0;this.errorList[i];
i++){var error=this.errorList[i];this.settings.highlight&&this.settings.highlight.call(this,error.element,this.settings.errorClass);this.showLabel(error.element,error.message);}if(this.errorList.length){this.toShow=this.toShow.add(this.containers);}if(this.settings.success){for(var i=0;this.successList[i];i++){this.showLabel(this.successList[i]);}}if(this.settings.unhighlight){for(var i=0,elements=this.validElements();elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass);
}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show();},validElements:function(){return this.currentElements.not(this.invalidElements());},invalidElements:function(){return $(this.errorList).map(function(){return this.element;});},showLabel:function(element,message){var label=this.errorsFor(element);if(label.length){label.removeClass().addClass(this.settings.errorClass);label.attr("generated")&&label.html(message);}else{label=$("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(element),generated:true}).addClass(this.settings.errorClass).html(message||"");
if(this.settings.wrapper){label=label.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();}if(!this.labelContainer.append(label).length){this.settings.errorPlacement?this.settings.errorPlacement(label,$(element)):label.insertAfter(element);}}if(!message&&this.settings.success){label.text("");typeof this.settings.success=="string"?label.addClass(this.settings.success):this.settings.success(label);}this.toShow=this.toShow.add(label);},errorsFor:function(element){return this.errors().filter("[for='"+this.idOrName(element)+"']");
},idOrName:function(element){return this.groups[element.name]||(this.checkable(element)?element.name:element.id||element.name);},checkable:function(element){return/radio|checkbox/i.test(element.type);},findByName:function(name){var form=this.currentForm;return $(document.getElementsByName(name)).map(function(index,element){return element.form==form&&element.name==name&&element||null;});},getLength:function(value,element){switch(element.nodeName.toLowerCase()){case"select":return $("option:selected",element).length;
case"input":if(this.checkable(element)){return this.findByName(element.name).filter(":checked").length;}}return value.length;},depend:function(param,element){return this.dependTypes[typeof param]?this.dependTypes[typeof param](param,element):true;},dependTypes:{"boolean":function(param,element){return param;},string:function(param,element){return !!$(param,element.form).length;},"function":function(param,element){return param(element);}},optional:function(element){return !$.validator.methods.required.call(this,$.trim(element.value),element)&&"dependency-mismatch";
},startRequest:function(element){if(!this.pending[element.name]){this.pendingRequest++;this.pending[element.name]=true;}},stopRequest:function(element,valid){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0;}delete this.pending[element.name];if(valid&&this.pendingRequest==0&&this.formSubmitted&&this.form()){$(this.currentForm).submit();}else{if(!valid&&this.pendingRequest==0&&this.formSubmitted){$(this.currentForm).triggerHandler("invalid-form",[this]);}}},previousValue:function(element){return $.data(element,"previousValue")||$.data(element,"previousValue",previous={old:null,valid:true,message:this.defaultMessage(element,"remote")});
}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(className,rules){className.constructor==String?this.classRuleSettings[className]=rules:$.extend(this.classRuleSettings,className);},classRules:function(element){var rules={};var classes=$(element).attr("class");classes&&$.each(classes.split(" "),function(){if(this in $.validator.classRuleSettings){$.extend(rules,$.validator.classRuleSettings[this]);
}});return rules;},attributeRules:function(element){var rules={};var $element=$(element);for(method in $.validator.methods){var value=$element.attr(method);if(value){rules[method]=value;}}if(rules.maxlength&&/-1|2147483647|524288/.test(rules.maxlength)){delete rules.maxlength;}return rules;},metadataRules:function(element){if(!$.metadata){return{};}var meta=$.data(element.form,"validator").settings.meta;return meta?$(element).metadata()[meta]:$(element).metadata();},staticRules:function(element){var rules={};
var validator=$.data(element.form,"validator");if(validator.settings.rules){rules=$.validator.normalizeRule(validator.settings.rules[element.name])||{};}return rules;},normalizeRules:function(rules,element){$.each(rules,function(prop,val){if(val===false){delete rules[prop];return;}if(val.param||val.depends){var keepRule=true;switch(typeof val.depends){case"string":keepRule=!!$(val.depends,element.form).length;break;case"function":keepRule=val.depends.call(element,element);break;}if(keepRule){rules[prop]=val.param!==undefined?val.param:true;
}else{delete rules[prop];}}});$.each(rules,function(rule,parameter){rules[rule]=$.isFunction(parameter)?parameter(element):parameter;});$.each(["minlength","maxlength","min","max"],function(){if(rules[this]){rules[this]=Number(rules[this]);}});$.each(["rangelength","range"],function(){if(rules[this]){rules[this]=[Number(rules[this][0]),Number(rules[this][1])];}});if($.validator.autoCreateRanges){if(rules.min&&rules.max){rules.range=[rules.min,rules.max];delete rules.min;delete rules.max;}if(rules.minlength&&rules.maxlength){rules.rangelength=[rules.minlength,rules.maxlength];
delete rules.minlength;delete rules.maxlength;}}if(rules.messages){delete rules.messages;}return rules;},normalizeRule:function(data){if(typeof data=="string"){var transformed={};$.each(data.split(/\s/),function(){transformed[this]=true;});data=transformed;}return data;},addMethod:function(name,method,message){$.validator.methods[name]=method;$.validator.messages[name]=message;if(method.length<3){$.validator.addClassRules(name,$.validator.normalizeRule(name));}},methods:{required:function(value,element,param){if(!this.depend(param,element)){return"dependency-mismatch";
}switch(element.nodeName.toLowerCase()){case"select":var options=$("option:selected",element);return options.length>0&&(element.type=="select-multiple"||($.browser.msie&&!(options[0].attributes.value.specified)?options[0].text:options[0].value).length>0);case"input":if(this.checkable(element)){return this.getLength(value,element)>0;}default:return $.trim(value).length>0;}},remote:function(value,element,param){if(this.optional(element)){return"dependency-mismatch";}var previous=this.previousValue(element);
if(!this.settings.messages[element.name]){this.settings.messages[element.name]={};}this.settings.messages[element.name].remote=typeof previous.message=="function"?previous.message(value):previous.message;param=typeof param=="string"&&{url:param}||param;if(previous.old!==value){previous.old=value;var validator=this;this.startRequest(element);var data={};data[element.name]=value;$.ajax($.extend(true,{url:param,mode:"abort",port:"validate"+element.name,dataType:"json",data:data,success:function(response){if(response){var submitted=validator.formSubmitted;
validator.prepareElement(element);validator.formSubmitted=submitted;validator.successList.push(element);validator.showErrors();}else{var errors={};errors[element.name]=response||validator.defaultMessage(element,"remote");validator.showErrors(errors);}previous.valid=response;validator.stopRequest(element,response);}},param));return"pending";}else{if(this.pending[element.name]){return"pending";}}return previous.valid;},minlength:function(value,element,param){return this.optional(element)||this.getLength($.trim(value),element)>=param;
},maxlength:function(value,element,param){return this.optional(element)||this.getLength($.trim(value),element)<=param;},rangelength:function(value,element,param){var length=this.getLength($.trim(value),element);return this.optional(element)||(length>=param[0]&&length<=param[1]);},min:function(value,element,param){if(/^-?(?:\d+|\d{1,3}(?:[,\.]\d{3})+)(?:[,\.]\d+)?$/.test(value)){value=value.replace(",",".");return this.optional(element)||Number(value)>=Number(param);}return this.optional(element)||Number(value)>=param;
},max:function(value,element,param){if(/^-?(?:\d+|\d{1,3}(?:[,\.]\d{3})+)(?:[,\.]\d+)?$/.test(value)){value=value.replace(",",".");return this.optional(element)||Number(value)<=Number(param);}return this.optional(element)||Number(value)<=param;},range:function(value,element,param){if(/^-?(?:\d+|\d{1,3}(?:[,\.]\d{3})+)(?:[,\.]\d+)?$/.test(value)){value=value.replace(",",".");return this.optional(element)||(Number(value)>=Number(param[0])&&Number(value)<=Number(param[1]));}return this.optional(element)||(value>=param[0]&&value<=param[1]);
},email:function(value,element){return this.optional(element)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([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])))\.?$/i.test(value);
},url:function(value,element){return this.optional(element)||/^(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(value);
},date:function(value,element){return this.optional(element)||!/Invalid|NaN/.test(new Date(value));},dateISO:function(value,element){return this.optional(element)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value);},dateDE:function(value,element){return this.optional(element)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value);},number:function(value,element){return this.optional(element)||/^-?(?:\d+|\d{1,3}(?:[,\.]\d{3})+)(?:[,\.]\d+)?$/.test(value);},numberDE:function(value,element){return this.optional(element)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);
},digits:function(value,element){return this.optional(element)||/^\d+$/.test(value);},creditcard:function(value,element){if(this.optional(element)){return"dependency-mismatch";}if(/[^0-9-]+/.test(value)){return false;}var nCheck=0,nDigit=0,bEven=false;value=value.replace(/\D/g,"");for(n=value.length-1;n>=0;n--){var cDigit=value.charAt(n);var nDigit=parseInt(cDigit,10);if(bEven){if((nDigit*=2)>9){nDigit-=9;}}nCheck+=nDigit;bEven=!bEven;}return(nCheck%10)==0;},accept:function(value,element,param){param=typeof param=="string"?param:"png|jpe?g|gif";
return this.optional(element)||value.match(new RegExp(".("+param+")$","i"));},equalTo:function(value,element,param){return value==$(param).val();}}});})(jQuery);(function($){var ajax=$.ajax;var pendingRequests={};$.ajax=function(settings){settings=$.extend(settings,$.extend({},$.ajaxSettings,settings));var port=settings.port;if(settings.mode=="abort"){if(pendingRequests[port]){pendingRequests[port].abort();}return(pendingRequests[port]=ajax.apply(this,arguments));}return ajax.apply(this,arguments);
};})(jQuery);(function($){$.each({focus:"focusin",blur:"focusout"},function(original,fix){$.event.special[fix]={setup:function(){if($.browser.msie){return false;}this.addEventListener(original,$.event.special[fix].handler,true);},teardown:function(){if($.browser.msie){return false;}this.removeEventListener(original,$.event.special[fix].handler,true);},handler:function(e){arguments[0]=$.event.fix(e);arguments[0].type=fix;return $.event.handle.apply(this,arguments);}};});$.extend($.fn,{delegate:function(type,delegate,handler){return this.bind(type,function(event){var target=$(event.target);
if(target.is(delegate)){return handler.apply(target,arguments);}});},triggerEvent:function(type,target){return this.triggerHandler(type,[$.event.fix({type:type,target:target})]);}});})(jQuery);jQuery.validator.setDefaults({errorClass:"validation-failed",errorLabelContainer:"#validation_errors",onfocusout:false,onkeyup:false,onclick:false,focusInvalid:false});jQuery.validator.addMethod("validate-date-cz",function(value,element){if(this.optional(element)){return true;}var regex=/(^(\d{1,2})\.(\d{1,2})\.((\d{4})|(\d{2}))$)|(^%$)/;
if(!regex.test($.trim(value))){return false;}if(RegExp.$2==""){return true;}var year=Number(RegExp.$4);if(year<99){year+=2000;}var d=new Date(RegExp.$3+"/"+RegExp.$2+"/"+year);return(parseInt(RegExp.$3,10)==(1+d.getMonth()))&&(parseInt(RegExp.$2,10)==d.getDate())&&(parseInt(year,10)==d.getFullYear());},"Use valid date format: dd.mm.yyyy, dd.mm.yy or %.");jQuery.validator.addMethod("validate-time",function(value,element){if(this.optional(element)){return true;}return/^[0-2]{0,1}[0-9]{0,1}[:][0-5][0-9]{0,1}$/.test($.trim(value));
},"Pou\u017Eijte tento form\u00E1t: hh:mm, nebo h:mm. Nap\u0159\u00EDklad 13:20.");jQuery.validator.addMethod("validate-nonproc",function(value,element){if(this.optional(element)){return true;}return $.trim(value)!="%";},"Zad&#225;n pouze speci&#225;ln&#237; znak % - nedostate&#269;n&#233; zad&#225;n&#237;, up&#345;esn&#283;te jej...");jQuery.validator.addMethod("validate-year",function(value,element){var trimmed=$.trim(value);if(this.optional(element)&&trimmed.length==0){return true;}if(trimmed.indexOf("%")==-1){if(trimmed.length!=4){return false;
}else{if(isNaN(trimmed)){return false;}}}else{if(trimmed.length<5){var newCislo=trimmed.replace("%","");return !isNaN(newCislo);}else{return false;}}return true;},"Zadali jste špatný rok. Zadejte rok ve formátu YYYY.");(function($){$.extend($.fn,{swapClass:function(c1,c2){var c1Elements=this.filter("."+c1);this.filter("."+c2).removeClass(c2).addClass(c1);c1Elements.removeClass(c1).addClass(c2);return this;},replaceClass:function(c1,c2){return this.filter("."+c1).removeClass(c1).addClass(c2).end();
},hoverClass:function(className){className=className||"hover";return this.hover(function(){$(this).addClass(className);},function(){$(this).removeClass(className);});},heightToggle:function(animated,callback){animated?this.animate({height:"toggle"},animated,callback):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();if(callback){callback.apply(this,arguments);}});},heightHide:function(animated,callback){if(animated){this.animate({height:"hide"},animated,callback);}else{this.hide();
if(callback){this.each(callback);}}},prepareBranches:function(settings){if(!settings.prerendered){this.filter(":last-child:not(ul)").addClass(CLASSES.last);this.filter((settings.collapsed?"":"."+CLASSES.closed)+":not(."+CLASSES.open+")").find(">ul").hide();}return this.filter(":has(>ul)");},applyClasses:function(settings,toggler){this.filter(":has(>ul):not(:has(>a))").find(">span").click(function(event){toggler.apply($(this).next());}).add($("a",this)).hoverClass();if(!settings.prerendered){this.filter(":has(>ul:hidden)").addClass(CLASSES.expandable).replaceClass(CLASSES.last,CLASSES.lastExpandable);
this.not(":has(>ul:hidden)").addClass(CLASSES.collapsable).replaceClass(CLASSES.last,CLASSES.lastCollapsable);this.prepend('<div class="'+CLASSES.hitarea+'"/>').find("div."+CLASSES.hitarea).each(function(){var classes="";$.each($(this).parent().attr("class").split(" "),function(){classes+=this+"-hitarea ";});$(this).addClass(classes);});}this.find("div."+CLASSES.hitarea).click(toggler);},treeview:function(settings){settings=$.extend({cookieId:"treeview"},settings);if(settings.add){return this.trigger("add",[settings.add]);
}if(settings.toggle){var callback=settings.toggle;settings.toggle=function(){return callback.apply($(this).parent()[0],arguments);};}function treeController(tree,control){function handler(filter){return function(){toggler.apply($("div."+CLASSES.hitarea,tree).filter(function(){return filter?$(this).parent("."+filter).length:true;}));return false;};}$("a:eq(0)",control).click(handler(CLASSES.collapsable));$("a:eq(1)",control).click(handler(CLASSES.expandable));$("a:eq(2)",control).click(handler());
}function toggler(){$(this).parent().find(">.hitarea").swapClass(CLASSES.collapsableHitarea,CLASSES.expandableHitarea).swapClass(CLASSES.lastCollapsableHitarea,CLASSES.lastExpandableHitarea).end().swapClass(CLASSES.collapsable,CLASSES.expandable).swapClass(CLASSES.lastCollapsable,CLASSES.lastExpandable).find(">ul").heightToggle(settings.animated,settings.toggle);if(settings.unique){$(this).parent().siblings().find(">.hitarea").replaceClass(CLASSES.collapsableHitarea,CLASSES.expandableHitarea).replaceClass(CLASSES.lastCollapsableHitarea,CLASSES.lastExpandableHitarea).end().replaceClass(CLASSES.collapsable,CLASSES.expandable).replaceClass(CLASSES.lastCollapsable,CLASSES.lastExpandable).find(">ul").heightHide(settings.animated,settings.toggle);
}}function serialize(){function binary(arg){return arg?1:0;}var data=[];branches.each(function(i,e){data[i]=$(e).is(":has(>ul:visible)")?1:0;});$.cookie(settings.cookieId,data.join(""));}function deserialize(){var stored=$.cookie(settings.cookieId);if(stored){var data=stored.split("");branches.each(function(i,e){$(e).find(">ul")[parseInt(data[i])?"show":"hide"]();});}}this.addClass("treeview");var branches=this.find("li").prepareBranches(settings);switch(settings.persist){case"cookie":var toggleCallback=settings.toggle;
settings.toggle=function(){serialize();if(toggleCallback){toggleCallback.apply(this,arguments);}};deserialize();break;case"location":var current=this.find("a").filter(function(){return this.href.toLowerCase()==location.href.toLowerCase();});if(current.length){current.addClass("selected").parents("ul, li").add(current.next()).show();}break;}branches.applyClasses(settings,toggler);if(settings.control){treeController(this,settings.control);$(settings.control).show();}return this.bind("add",function(event,branches){$(branches).prev().removeClass(CLASSES.last).removeClass(CLASSES.lastCollapsable).removeClass(CLASSES.lastExpandable).find(">.hitarea").removeClass(CLASSES.lastCollapsableHitarea).removeClass(CLASSES.lastExpandableHitarea);
$(branches).find("li").andSelf().prepareBranches(settings).applyClasses(settings,toggler);});}});var CLASSES=$.fn.treeview.classes={open:"open",closed:"closed",expandable:"expandable",expandableHitarea:"expandable-hitarea",lastExpandableHitarea:"lastExpandable-hitarea",collapsable:"collapsable",collapsableHitarea:"collapsable-hitarea",lastCollapsableHitarea:"lastCollapsable-hitarea",lastCollapsable:"lastCollapsable",lastExpandable:"lastExpandable",last:"last",hitarea:"hitarea"};$.fn.Treeview=$.fn.treeview;
})(jQuery);var olLoaded=0;var pmStart=10000000;var pmUpper=10001000;var pmCount=pmStart+1;var pmt="";var pms=new Array();var olInfo=new Info("4.21",1);var FREPLACE=0;var FBEFORE=1;var FAFTER=2;var FALTERNATE=3;var FCHAIN=4;var olHideForm=0;var olHautoFlag=0;var olVautoFlag=0;var hookPts=new Array(),postParse=new Array(),cmdLine=new Array(),runTime=new Array();var overlibPars;var myAjax;registerCommands("donothing,inarray,caparray,sticky,background,noclose,caption,left,right,center,offsetx,offsety,fgcolor,bgcolor,textcolor,capcolor,closecolor,width,border,cellpad,status,autostatus,autostatuscap,height,closetext,snapx,snapy,fixx,fixy,relx,rely,fgbackground,bgbackground,padx,pady,fullhtml,above,below,capicon,textfont,captionfont,closefont,textsize,captionsize,closesize,timeout,function,delay,hauto,vauto,closeclick,wrap,followmouse,mouseoff,closetitle,cssoff,compatmode,cssclass,fgclass,bgclass,textfontclass,captionfontclass,closefontclass");
if(typeof ol_fgcolor=="undefined"){var ol_fgcolor="#fffdcf";}if(typeof ol_bgcolor=="undefined"){var ol_bgcolor="black";}if(typeof ol_textcolor=="undefined"){var ol_textcolor="#000000";}if(typeof ol_capcolor=="undefined"){var ol_capcolor="#fffdcf";}if(typeof ol_closecolor=="undefined"){var ol_closecolor="#fffdcf";}if(typeof ol_textfont=="undefined"){var ol_textfont="Verdana,Arial,Helvetica";}if(typeof ol_captionfont=="undefined"){var ol_captionfont="Verdana,Arial,Helvetica";}if(typeof ol_closefont=="undefined"){var ol_closefont="Verdana,Arial,Helvetica";
}if(typeof ol_textsize=="undefined"){var ol_textsize="1";}if(typeof ol_captionsize=="undefined"){var ol_captionsize="1";}if(typeof ol_closesize=="undefined"){var ol_closesize="1";}if(typeof ol_width=="undefined"){var ol_width="250";}if(typeof ol_border=="undefined"){var ol_border="2";}if(typeof ol_cellpad=="undefined"){var ol_cellpad=2;}if(typeof ol_offsetx=="undefined"){var ol_offsetx=10;}if(typeof ol_offsety=="undefined"){var ol_offsety=10;}if(typeof ol_text=="undefined"){var ol_text="Default Text";
}if(typeof ol_cap=="undefined"){var ol_cap="";}if(typeof ol_sticky=="undefined"){var ol_sticky=0;}if(typeof ol_background=="undefined"){var ol_background="";}if(typeof ol_close=="undefined"){var ol_close="<img src='/zdroje/images/icons/tooltipClose.gif' />";}if(typeof ol_hpos=="undefined"){var ol_hpos=RIGHT;}if(typeof ol_status=="undefined"){var ol_status="";}if(typeof ol_autostatus=="undefined"){var ol_autostatus=0;}if(typeof ol_height=="undefined"){var ol_height=-1;}if(typeof ol_snapx=="undefined"){var ol_snapx=0;
}if(typeof ol_snapy=="undefined"){var ol_snapy=0;}if(typeof ol_fixx=="undefined"){var ol_fixx=-1;}if(typeof ol_fixy=="undefined"){var ol_fixy=-1;}if(typeof ol_relx=="undefined"){var ol_relx=null;}if(typeof ol_rely=="undefined"){var ol_rely=null;}if(typeof ol_fgbackground=="undefined"){var ol_fgbackground="";}if(typeof ol_bgbackground=="undefined"){var ol_bgbackground="";}if(typeof ol_padxl=="undefined"){var ol_padxl=1;}if(typeof ol_padxr=="undefined"){var ol_padxr=1;}if(typeof ol_padyt=="undefined"){var ol_padyt=1;
}if(typeof ol_padyb=="undefined"){var ol_padyb=1;}if(typeof ol_fullhtml=="undefined"){var ol_fullhtml=0;}if(typeof ol_vpos=="undefined"){var ol_vpos=BELOW;}if(typeof ol_aboveheight=="undefined"){var ol_aboveheight=0;}if(typeof ol_capicon=="undefined"){var ol_capicon="";}if(typeof ol_frame=="undefined"){var ol_frame=self;}if(typeof ol_timeout=="undefined"){var ol_timeout=0;}if(typeof ol_function=="undefined"){var ol_function=null;}if(typeof ol_delay=="undefined"){var ol_delay=0;}if(typeof ol_hauto=="undefined"){var ol_hauto=1;
}if(typeof ol_vauto=="undefined"){var ol_vauto=1;}if(typeof ol_closeclick=="undefined"){var ol_closeclick=0;}if(typeof ol_wrap=="undefined"){var ol_wrap=0;}if(typeof ol_followmouse=="undefined"){var ol_followmouse=1;}if(typeof ol_mouseoff=="undefined"){var ol_mouseoff=0;}if(typeof ol_closetitle=="undefined"){var ol_closetitle="Close";}if(typeof ol_compatmode=="undefined"){var ol_compatmode=0;}if(typeof ol_css=="undefined"){var ol_css=CSSOFF;}if(typeof ol_fgclass=="undefined"){var ol_fgclass="";}if(typeof ol_bgclass=="undefined"){var ol_bgclass="";
}if(typeof ol_textfontclass=="undefined"){var ol_textfontclass="";}if(typeof ol_captionfontclass=="undefined"){var ol_captionfontclass="";}if(typeof ol_closefontclass=="undefined"){var ol_closefontclass="";}if(typeof ol_ajaxloading=="undefined"){var ol_ajaxloading="<img src=/zdroje/images/icons/spinner.gif>Loading page, please wait...";}if(typeof ol_ajaxerror=="undefined"){var ol_ajaxerror="Error loading tooltip...";}if(typeof ol_texts=="undefined"){var ol_texts=new Array("Text 0","Text 1");}if(typeof ol_caps=="undefined"){var ol_caps=new Array("Caption 0","Caption 1");
}var o3_text="";var o3_cap="";var o3_sticky=0;var o3_background="";var o3_close="Close";var o3_hpos=RIGHT;var o3_offsetx=2;var o3_offsety=2;var o3_fgcolor="";var o3_bgcolor="";var o3_textcolor="";var o3_capcolor="";var o3_closecolor="";var o3_width=100;var o3_border=1;var o3_cellpad=2;var o3_status="";var o3_autostatus=0;var o3_height=-1;var o3_snapx=0;var o3_snapy=0;var o3_fixx=-1;var o3_fixy=-1;var o3_relx=null;var o3_rely=null;var o3_fgbackground="";var o3_bgbackground="";var o3_padxl=0;var o3_padxr=0;
var o3_padyt=0;var o3_padyb=0;var o3_fullhtml=0;var o3_vpos=BELOW;var o3_aboveheight=0;var o3_capicon="";var o3_textfont="Verdana,Arial,Helvetica";var o3_captionfont="Verdana,Arial,Helvetica";var o3_closefont="Verdana,Arial,Helvetica";var o3_textsize="1";var o3_captionsize="1";var o3_closesize="1";var o3_frame=self;var o3_timeout=0;var o3_timerid=0;var o3_allowmove=0;var o3_function=null;var o3_delay=0;var o3_delayid=0;var o3_hauto=0;var o3_vauto=0;var o3_closeclick=0;var o3_wrap=0;var o3_followmouse=1;
var o3_mouseoff=0;var o3_closetitle="";var o3_compatmode=0;var o3_css=CSSOFF;var o3_fgclass="";var o3_bgclass="";var o3_textfontclass="";var o3_captionfontclass="";var o3_closefontclass="";var o3_x=0;var o3_y=0;var o3_showingsticky=0;var o3_removecounter=0;var over=null;var fnRef,hoveringSwitch=false;var olHideDelay;var isMac=(navigator.userAgent.indexOf("Mac")!=-1);var olOp=(navigator.userAgent.toLowerCase().indexOf("opera")>-1&&document.createTextNode);var olNs4=(navigator.appName=="Netscape"&&parseInt(navigator.appVersion)==4);
var olNs6=(document.getElementById)?true:false;var olKq=(olNs6&&/konqueror/i.test(navigator.userAgent));var olIe4=(document.all)?true:false;var olIe5=false;var olIe55=false;var docRoot="document.body";function ajaxOverlib(){var url=ajaxOverlib.arguments[0];var aa=ajaxOverlib.arguments;aa[0]=ol_ajaxloading;overlib(aa);overlibPars=ajaxOverlib.arguments;myAjax=jQuery.ajax({type:"GET",url:url,contentType:"text/html; charset=utf-8",success:function(msg){showAjaxOverlib(msg);},error:function(request,settings){request.abort();
myAjax=null;aa[0]=ol_ajaxerror;overlib(aa);}});}function showAjaxOverlib(response){var title=response.match(new RegExp("(<title[>])(.*)(</title[>])"));if(title!=null){for(var i=0;i<overlibPars.length;i++){if(overlibPars[i]==CAPTION){if(overlibPars[i+1]=="xxx"){overlibPars[i+1]=title[2];}break;}}}overlibPars[0]=response;overlib(overlibPars);}function ajaxNd(delay){if(myAjax!=null){try{myAjax.abort();myAjax=null;}catch(e){}}nd(delay);}if(olNs4){var oW=window.innerWidth;var oH=window.innerHeight;window.onresize=function(){if(oW!=window.innerWidth||oH!=window.innerHeight){location.reload();
}};}if(olIe4){var agent=navigator.userAgent;if(/MSIE/.test(agent)){var versNum=parseFloat(agent.match(/MSIE[ ](\d\.\d+)\.*/i)[1]);if(versNum>=5){olIe5=true;olIe55=(versNum>=5.5&&!olOp)?true:false;if(olNs6){olNs6=false;}}}if(olNs6){olIe4=false;}}if(document.compatMode&&document.compatMode=="CSS1Compat"){docRoot=((olIe4&&!olOp)?"document.documentElement":docRoot);}if(window.addEventListener){window.addEventListener("load",OLonLoad_handler,false);}else{if(window.attachEvent){window.attachEvent("onload",OLonLoad_handler);
}}var capExtent;function overlib(){if(!olLoaded||isExclusive(overlib.arguments)){return true;}if(olCheckMouseCapture){olMouseCapture();}if(over){over=(typeof over.id!="string")?o3_frame.document.all.overDiv:over;cClick();}$(document).keyup(function(event){if(event.keyCode==27){cClick();}});olHideDelay=0;o3_text=ol_text;o3_cap=ol_cap;o3_sticky=ol_sticky;o3_background=ol_background;o3_close=ol_close;o3_hpos=ol_hpos;o3_offsetx=ol_offsetx;o3_offsety=ol_offsety;o3_fgcolor=ol_fgcolor;o3_bgcolor=ol_bgcolor;
o3_textcolor=ol_textcolor;o3_capcolor=ol_capcolor;o3_closecolor=ol_closecolor;o3_width=ol_width;o3_border=ol_border;o3_cellpad=ol_cellpad;o3_status=ol_status;o3_autostatus=ol_autostatus;o3_height=ol_height;o3_snapx=ol_snapx;o3_snapy=ol_snapy;o3_fixx=ol_fixx;o3_fixy=ol_fixy;o3_relx=ol_relx;o3_rely=ol_rely;o3_fgbackground=ol_fgbackground;o3_bgbackground=ol_bgbackground;o3_padxl=ol_padxl;o3_padxr=ol_padxr;o3_padyt=ol_padyt;o3_padyb=ol_padyb;o3_fullhtml=ol_fullhtml;o3_vpos=ol_vpos;o3_aboveheight=ol_aboveheight;
o3_capicon=ol_capicon;o3_textfont=ol_textfont;o3_captionfont=ol_captionfont;o3_closefont=ol_closefont;o3_textsize=ol_textsize;o3_captionsize=ol_captionsize;o3_closesize=ol_closesize;o3_timeout=ol_timeout;o3_function=ol_function;o3_delay=ol_delay;o3_hauto=ol_hauto;o3_vauto=ol_vauto;o3_closeclick=ol_closeclick;o3_wrap=ol_wrap;o3_followmouse=ol_followmouse;o3_mouseoff=ol_mouseoff;o3_closetitle=ol_closetitle;o3_css=ol_css;o3_compatmode=ol_compatmode;o3_fgclass=ol_fgclass;o3_bgclass=ol_bgclass;o3_textfontclass=ol_textfontclass;
o3_captionfontclass=ol_captionfontclass;o3_closefontclass=ol_closefontclass;setRunTimeVariables();fnRef="";o3_frame=ol_frame;if(!(over=createDivContainer())){return false;}parseTokens("o3_",overlib.arguments);if(!postParseChecks()){return false;}if(o3_delay==0){return runHook("olMain",FREPLACE);}else{o3_delayid=setTimeout("runHook('olMain', FREPLACE)",o3_delay);return false;}}function nd(time){if(olLoaded&&!isExclusive()){hideDelay(time);if(o3_removecounter>=1){o3_showingsticky=0;}if(o3_showingsticky==0){o3_allowmove=0;
if(over!=null&&o3_timerid==0){runHook("hideObject",FREPLACE,over);}}else{o3_removecounter++;}}return true;}function cClick(){if(olLoaded){runHook("hideObject",FREPLACE,over);o3_showingsticky=0;}return false;}function overlib_pagedefaults(){parseTokens("ol_",overlib_pagedefaults.arguments);}function olMain(){var layerhtml,styleType;runHook("olMain",FBEFORE);if(o3_background!=""||o3_fullhtml){layerhtml=runHook("ol_content_background",FALTERNATE,o3_css,o3_text,o3_background,o3_fullhtml);}else{styleType=(pms[o3_css-1-pmStart]=="cssoff"||pms[o3_css-1-pmStart]=="cssclass");
if(o3_fgbackground!=""){o3_fgbackground='background="'+o3_fgbackground+'"';}if(o3_bgbackground!=""){o3_bgbackground=(styleType?'background="'+o3_bgbackground+'"':o3_bgbackground);}if(o3_fgcolor!=""){o3_fgcolor=(styleType?'bgcolor="'+o3_fgcolor+'"':o3_fgcolor);}if(o3_bgcolor!=""){o3_bgcolor=(styleType?'bgcolor="'+o3_bgcolor+'"':o3_bgcolor);}if(o3_height>0){o3_height=(styleType?'height="'+o3_height+'"':o3_height);}else{o3_height="";}if(o3_cap==""){layerhtml=runHook("ol_content_simple",FALTERNATE,o3_css,o3_text);
}else{if(o3_sticky){layerhtml=runHook("ol_content_caption",FALTERNATE,o3_css,o3_text,o3_cap,o3_close);}else{layerhtml=runHook("ol_content_caption",FALTERNATE,o3_css,o3_text,o3_cap,"");}}}if(o3_sticky){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0;}o3_showingsticky=1;o3_removecounter=0;}if(!runHook("createPopup",FREPLACE,layerhtml)){return false;}if(o3_autostatus>0){o3_status=o3_text;if(o3_autostatus>1){o3_status=o3_cap;}}o3_allowmove=0;if(o3_timeout>0){if(o3_timerid>0){clearTimeout(o3_timerid);
}o3_timerid=setTimeout("cClick()",o3_timeout);}runHook("disp",FREPLACE,o3_status);runHook("olMain",FAFTER);return(olOp&&event&&event.type=="mouseover"&&!o3_status)?"":(o3_status!="");}function ol_content_simple(text){var cpIsMultiple=/,/.test(o3_cellpad);var txt='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+" "+o3_height)+'><tr><td><table width="100%" border="0" '+((olNs4||!cpIsMultiple)?'cellpadding="'+o3_cellpad+'" ':"")+'cellspacing="0" '+(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+" "+o3_fgbackground+" "+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+'">':((!olNs4&&cpIsMultiple)?' style="'+setCellPadStr(o3_cellpad)+'">':">"))+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+text+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"</td></tr></table></td></tr></table>";
set_background("");return txt;}function ol_content_caption(text,title,close){var nameId,txt,cpIsMultiple=/,/.test(o3_cellpad);var closing,closeevent;closing="";closeevent="onmouseover";if(o3_closeclick==1){closeevent=(o3_closetitle?"title='"+o3_closetitle+"'":"")+" onclick";}if(o3_capicon!=""){nameId=' hspace = "5" align = "middle" alt = ""';if(typeof o3_dragimg!="undefined"&&o3_dragimg){nameId=' hspace="5" name="'+o3_dragimg+'" id="'+o3_dragimg+'" align="middle" alt="Drag Enabled" title="Drag Enabled"';
}o3_capicon='<img src="'+o3_capicon+'"'+nameId+" />";}if(close!=""){closing="<td "+(!o3_compatmode&&o3_closefontclass?'class="'+o3_closefontclass:'align="RIGHT')+'"><a href="javascript:return '+fnRef+'cClick();"'+((o3_compatmode&&o3_closefontclass)?' class="'+o3_closefontclass+'" ':" ")+closeevent+'="return '+fnRef+'cClick();">'+(o3_closefontclass?"":wrapStr(0,o3_closesize,"close"))+close+(o3_closefontclass?"":wrapStr(1,o3_closesize,"close"))+"</a></td>";}txt='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+" "+o3_bgbackground+" "+o3_height)+'><tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td'+(o3_captionfontclass?' class="'+o3_captionfontclass+'">':">")+(o3_captionfontclass?"":"<b>"+wrapStr(0,o3_captionsize,"caption"))+o3_capicon+title+(o3_captionfontclass?"":wrapStr(1,o3_captionsize)+"</b>")+"</td>"+closing+'</tr></table><table width="100%" border="0" '+((olNs4||!cpIsMultiple)?'cellpadding="'+o3_cellpad+'" ':"")+'cellspacing="0" '+(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+" "+o3_fgbackground+" "+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+'">':((!olNs4&&cpIsMultiple)?' style="'+setCellPadStr(o3_cellpad)+'">':">"))+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+text+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"</td></tr></table></td></tr></table>";
set_background("");return txt;}function ol_content_background(text,picture,hasfullhtml){if(hasfullhtml){txt=text;}else{txt='<table width="'+o3_width+'" border="0" cellpadding="0" cellspacing="0" height="'+o3_height+'"><tr><td colspan="3" height="'+o3_padyt+'"></td></tr><tr><td width="'+o3_padxl+'"></td><td valign="TOP" width="'+(o3_width-o3_padxl-o3_padxr)+(o3_textfontclass?'" class="'+o3_textfontclass:"")+'">'+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+text+(o3_textfontclass?"":wrapStr(1,o3_textsize))+'</td><td width="'+o3_padxr+'"></td></tr><tr><td colspan="3" height="'+o3_padyb+'"></td></tr></table>';
}set_background(picture);return txt;}function set_background(pic){if(pic==""){if(olNs4){over.background.src=null;}else{if(over.style){over.style.backgroundImage="none";}}}else{if(olNs4){over.background.src=pic;}else{if(over.style){over.style.width=o3_width+"px";over.style.backgroundImage="url("+pic+")";}}}}var olShowId=-1;function disp(statustext){runHook("disp",FBEFORE);if(o3_allowmove==0){runHook("placeLayer",FREPLACE);(olNs6&&olShowId<0)?olShowId=setTimeout("runHook('showObject', FREPLACE, over)",1):runHook("showObject",FREPLACE,over);
o3_allowmove=(o3_sticky||o3_followmouse==0)?0:1;}runHook("disp",FAFTER);if(statustext!=""){self.status=statustext;}}function createPopup(lyrContent){runHook("createPopup",FBEFORE);if(o3_wrap){var wd,ww,theObj=(olNs4?over:over.style);theObj.top=theObj.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?"px":0);layerWrite(lyrContent);wd=(olNs4?over.clip.width:over.offsetWidth);if(wd>(ww=windowWidth())){lyrContent=lyrContent.replace(/\&nbsp;/g," ");o3_width=ww;o3_wrap=0;}}layerWrite(lyrContent);if(o3_wrap){o3_width=(olNs4?over.clip.width:over.offsetWidth);
}runHook("createPopup",FAFTER,lyrContent);return true;}function placeLayer(){var placeX,placeY,widthFix=0;if(o3_frame.innerWidth){widthFix=18;}iwidth=windowWidth();winoffset=(olIe4)?eval("o3_frame."+docRoot+".scrollLeft"):o3_frame.pageXOffset;placeX=runHook("horizontalPlacement",FCHAIN,iwidth,winoffset,widthFix);if(o3_frame.innerHeight){iheight=o3_frame.innerHeight;}else{if(eval("o3_frame."+docRoot)&&eval("typeof o3_frame."+docRoot+".clientHeight=='number'")&&eval("o3_frame."+docRoot+".clientHeight")){iheight=eval("o3_frame."+docRoot+".clientHeight");
}}scrolloffset=(olIe4)?eval("o3_frame."+docRoot+".scrollTop"):o3_frame.pageYOffset;placeY=runHook("verticalPlacement",FCHAIN,iheight,scrolloffset);repositionTo(over,placeX,placeY);}function olMouseMove(e){var e=(e)?e:event;if(e.pageX){o3_x=e.pageX;o3_y=e.pageY;}else{if(e.clientX){o3_x=eval("e.clientX+o3_frame."+docRoot+".scrollLeft");o3_y=eval("e.clientY+o3_frame."+docRoot+".scrollTop");}}if(o3_allowmove==1){runHook("placeLayer",FREPLACE);}if(hoveringSwitch&&!olNs4&&runHook("cursorOff",FREPLACE)){(olHideDelay?hideDelay(olHideDelay):cClick());
hoveringSwitch=!hoveringSwitch;}}function no_overlib(){return ver3fix;}function olMouseCapture(){capExtent=document;var fN,str="",l,k,f,wMv,sS,mseHandler=olMouseMove;var re=/function[ ]*(\w*)\(/;wMv=(!olIe4&&window.onmousemove);if(document.onmousemove||wMv){if(wMv){capExtent=window;}f=capExtent.onmousemove.toString();fN=f.match(re);if(fN==null){str=f+"(e); ";}else{if(fN[1]=="anonymous"||fN[1]=="olMouseMove"||(wMv&&fN[1]=="onmousemove")){if(!olOp&&wMv){l=f.indexOf("{")+1;k=f.lastIndexOf("}");sS=f.substring(l,k);
if((l=sS.indexOf("("))!=-1){sS=sS.substring(0,l).replace(/^\s+/,"").replace(/\s+$/,"");if(eval("typeof "+sS+" == 'undefined'")){window.onmousemove=null;}else{str=sS+"(e);";}}}if(!str){olCheckMouseCapture=false;return;}}else{if(fN[1]){str=fN[1]+"(e); ";}else{l=f.indexOf("{")+1;k=f.lastIndexOf("}");str=f.substring(l,k)+"\n";}}}str+="olMouseMove(e); ";mseHandler=new Function("e",str);}capExtent.onmousemove=mseHandler;if(olNs4){capExtent.captureEvents(Event.MOUSEMOVE);}}function parseTokens(pf,ar){if((ar.length==1)&&(typeof ar[0]=="object")){ar=ar[0];
}var v,i,mode=-1,par=(pf!="ol_");var fnMark=(par&&!ar.length?1:0);for(i=0;i<ar.length;i++){if(mode<0){if(typeof ar[i]=="number"&&ar[i]>pmStart&&ar[i]<pmUpper){fnMark=(par?1:0);i--;}else{switch(pf){case"ol_":ol_text=ar[i].toString();break;default:o3_text=ar[i].toString();}}mode=0;}else{if(ar[i]>=pmCount||ar[i]==DONOTHING){continue;}if(ar[i]==INARRAY){fnMark=0;eval(pf+"text=ol_texts["+ar[i+1]+"].toString()");continue;}if(ar[i]==CAPARRAY){eval(pf+"cap=ol_caps["+ar[i+1]+"].toString()");continue;}if(ar[i]==STICKY){if(pf!="ol_"){eval(pf+"sticky=1");
}continue;}if(ar[i]==BACKGROUND){eval(pf+'background="'+ar[i+1]+'"');continue;}if(ar[i]==NOCLOSE){if(pf!="ol_"){opt_NOCLOSE();}continue;}if(ar[i]==CAPTION){eval(pf+"cap='"+escSglQuote(ar[i+1])+"'");continue;}if(ar[i]==CENTER||ar[i]==LEFT||ar[i]==RIGHT){eval(pf+"hpos="+ar[i]);if(pf!="ol_"){olHautoFlag=1;}continue;}if(ar[i]==OFFSETX){eval(pf+"offsetx="+ar[i+1]);continue;}if(ar[i]==OFFSETY){eval(pf+"offsety="+ar[i+1]);continue;}if(ar[i]==FGCOLOR){eval(pf+'fgcolor="'+ar[i+1]+'"');continue;}if(ar[i]==BGCOLOR){eval(pf+'bgcolor="'+ar[i+1]+'"');
continue;}if(ar[i]==TEXTCOLOR){eval(pf+'textcolor="'+ar[i+1]+'"');continue;}if(ar[i]==CAPCOLOR){eval(pf+'capcolor="'+ar[i+1]+'"');continue;}if(ar[i]==CLOSECOLOR){eval(pf+'closecolor="'+ar[i+1]+'"');continue;}if(ar[i]==WIDTH){eval(pf+"width="+ar[i+1]);continue;}if(ar[i]==BORDER){eval(pf+"border="+ar[i+1]);continue;}if(ar[i]==CELLPAD){i=opt_MULTIPLEARGS(i+1,ar,(pf+"cellpad"));continue;}if(ar[i]==STATUS){eval(pf+"status='"+escSglQuote(ar[i+1])+"'");continue;}if(ar[i]==AUTOSTATUS){eval(pf+"autostatus=("+pf+"autostatus == 1) ? 0 : 1");
continue;}if(ar[i]==AUTOSTATUSCAP){eval(pf+"autostatus=("+pf+"autostatus == 2) ? 0 : 2");continue;}if(ar[i]==HEIGHT){eval(pf+"height="+pf+"aboveheight="+ar[i+1]);continue;}if(ar[i]==CLOSETEXT){eval(pf+"close='"+escSglQuote(ar[i+1])+"'");continue;}if(ar[i]==SNAPX){eval(pf+"snapx="+ar[i+1]);continue;}if(ar[i]==SNAPY){eval(pf+"snapy="+ar[i+1]);continue;}if(ar[i]==FIXX){eval(pf+"fixx="+ar[i+1]);continue;}if(ar[i]==FIXY){eval(pf+"fixy="+ar[i+1]);continue;}if(ar[i]==RELX){eval(pf+"relx="+ar[i+1]);continue;
}if(ar[i]==RELY){eval(pf+"rely="+ar[i+1]);continue;}if(ar[i]==FGBACKGROUND){eval(pf+'fgbackground="'+ar[i+1]+'"');continue;}if(ar[i]==BGBACKGROUND){eval(pf+'bgbackground="'+ar[i+1]+'"');continue;}if(ar[i]==PADX){eval(pf+"padxl="+ar[i+1]);eval(pf+"padxr="+ar[i+2]);continue;}if(ar[i]==PADY){eval(pf+"padyt="+ar[i+1]);eval(pf+"padyb="+ar[i+2]);continue;}if(ar[i]==FULLHTML){if(pf!="ol_"){eval(pf+"fullhtml=1");}continue;}if(ar[i]==BELOW||ar[i]==ABOVE){eval(pf+"vpos="+ar[i]);if(pf!="ol_"){olVautoFlag=1;
}continue;}if(ar[i]==CAPICON){eval(pf+'capicon="'+ar[i+1]+'"');continue;}if(ar[i]==TEXTFONT){eval(pf+"textfont='"+escSglQuote(ar[i+1])+"'");continue;}if(ar[i]==CAPTIONFONT){eval(pf+"captionfont='"+escSglQuote(ar[i+1])+"'");continue;}if(ar[i]==CLOSEFONT){eval(pf+"closefont='"+escSglQuote(ar[i+1])+"'");continue;}if(ar[i]==TEXTSIZE){eval(pf+'textsize="'+ar[i+1]+'"');continue;}if(ar[i]==CAPTIONSIZE){eval(pf+'captionsize="'+ar[i+1]+'"');continue;}if(ar[i]==CLOSESIZE){eval(pf+'closesize="'+ar[i+1]+'"');
continue;}if(ar[i]==TIMEOUT){eval(pf+"timeout="+ar[i+1]);continue;}if(ar[i]==FUNCTION){if(pf=="ol_"){if(typeof ar[i+1]!="number"){v=ar[i+1];ol_function=(typeof v=="function"?v:null);}}else{fnMark=0;v=null;if(typeof ar[i+1]!="number"){v=ar[i+1];}opt_FUNCTION(v);}continue;}if(ar[i]==DELAY){eval(pf+"delay="+ar[i+1]);continue;}if(ar[i]==HAUTO){eval(pf+"hauto=("+pf+"hauto == 0) ? 1 : 0");continue;}if(ar[i]==VAUTO){eval(pf+"vauto=("+pf+"vauto == 0) ? 1 : 0");continue;}if(ar[i]==CLOSECLICK){eval(pf+"closeclick=("+pf+"closeclick == 0) ? 1 : 0");
continue;}if(ar[i]==WRAP){eval(pf+"wrap=("+pf+"wrap == 0) ? 1 : 0");continue;}if(ar[i]==FOLLOWMOUSE){eval(pf+"followmouse=("+pf+"followmouse == 1) ? 0 : 1");continue;}if(ar[i]==MOUSEOFF){eval(pf+"mouseoff=("+pf+"mouseoff==0) ? 1 : 0");v=ar[i+1];if(pf!="ol_"&&eval(pf+"mouseoff")&&typeof v=="number"&&(v<pmStart||v>pmUpper)){olHideDelay=ar[i+1];}continue;}if(ar[i]==CLOSETITLE){eval(pf+"closetitle='"+escSglQuote(ar[i+1])+"'");continue;}if(ar[i]==CSSOFF||ar[i]==CSSCLASS){eval(pf+"css="+ar[i]);continue;
}if(ar[i]==COMPATMODE){eval(pf+"compatmode=("+pf+"compatmode==0) ? 1 : 0");continue;}if(ar[i]==FGCLASS){eval(pf+'fgclass="'+ar[i+1]+'"');continue;}if(ar[i]==BGCLASS){eval(pf+'bgclass="'+ar[i+1]+'"');continue;}if(ar[i]==TEXTFONTCLASS){eval(pf+'textfontclass="'+ar[i+1]+'"');continue;}if(ar[i]==CAPTIONFONTCLASS){eval(pf+'captionfontclass="'+ar[i+1]+'"');continue;}if(ar[i]==CLOSEFONTCLASS){eval(pf+'closefontclass="'+ar[i+1]+'"');continue;}i=parseCmdLine(pf,i,ar);}}if(fnMark&&o3_function){o3_text=o3_function();
}if((pf=="o3_")&&o3_wrap){o3_width=0;var tReg=/<.*\n*>/ig;if(!tReg.test(o3_text)){o3_text=o3_text.replace(/[ ]+/g,"&nbsp;");}if(!tReg.test(o3_cap)){o3_cap=o3_cap.replace(/[ ]+/g,"&nbsp;");}}if((pf=="o3_")&&o3_sticky){if(!o3_close&&(o3_frame!=ol_frame)){o3_close=ol_close;}if(o3_mouseoff&&(o3_frame==ol_frame)){opt_NOCLOSE(" ");}}}function layerWrite(txt){txt+="\n";if(olNs4){var lyr=o3_frame.document.layers.overDiv.document;lyr.write(txt);lyr.close();}else{if(typeof over.innerHTML!="undefined"){if(olIe5&&isMac){over.innerHTML="";
}over.innerHTML=txt;}else{range=o3_frame.document.createRange();range.setStartAfter(over);domfrag=range.createContextualFragment(txt);while(over.hasChildNodes()){over.removeChild(over.lastChild);}over.appendChild(domfrag);}}}function showObject(obj){runHook("showObject",FBEFORE);var theObj=(olNs4?obj:obj.style);theObj.visibility="visible";runHook("showObject",FAFTER);}function hideObject(obj){runHook("hideObject",FBEFORE);var theObj=(olNs4?obj:obj.style);if(olNs6&&olShowId>0){clearTimeout(olShowId);
olShowId=0;}theObj.visibility="hidden";theObj.top=theObj.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?"px":0);if(o3_timerid>0){clearTimeout(o3_timerid);}if(o3_delayid>0){clearTimeout(o3_delayid);}o3_timerid=0;o3_delayid=0;self.status="";if(obj.onmouseout||obj.onmouseover){if(olNs4){obj.releaseEvents(Event.MOUSEOUT||Event.MOUSEOVER);}obj.onmouseout=obj.onmouseover=null;}runHook("hideObject",FAFTER);}function repositionTo(obj,xL,yL){var theObj=(olNs4?obj:obj.style);theObj.left=xL+(!olNs4?"px":0);theObj.top=yL+(!olNs4?"px":0);
}function cursorOff(){var left=parseInt(over.style.left);var top=parseInt(over.style.top);var right=left+(over.offsetWidth>=parseInt(o3_width)?over.offsetWidth:parseInt(o3_width));var bottom=top+(over.offsetHeight>=o3_aboveheight?over.offsetHeight:o3_aboveheight);if(o3_x<left||o3_x>right||o3_y<top||o3_y>bottom){return true;}return false;}function opt_FUNCTION(callme){o3_text=(callme?(typeof callme=="string"?(/.+\(.*\)/.test(callme)?eval(callme):callme):callme()):(o3_function?o3_function():"No Function"));
return 0;}function opt_NOCLOSE(unused){if(!unused){o3_close="";}if(olNs4){over.captureEvents(Event.MOUSEOUT||Event.MOUSEOVER);over.onmouseover=function(){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0;}};over.onmouseout=function(e){if(olHideDelay){hideDelay(olHideDelay);}else{cClick(e);}};}else{over.onmouseover=function(){hoveringSwitch=true;if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0;}};}return 0;}function opt_MULTIPLEARGS(i,args,parameter){var k=i,re,pV,str="";for(k=i;k<args.length;
k++){if(typeof args[k]=="number"&&args[k]>pmStart){break;}str+=args[k]+",";}if(str){str=str.substring(0,--str.length);}k--;pV=(olNs4&&/cellpad/i.test(parameter))?str.split(",")[0]:str;eval(parameter+'="'+pV+'"');return k;}function nbspCleanup(){if(o3_wrap){o3_text=o3_text.replace(/\&nbsp;/g," ");o3_cap=o3_cap.replace(/\&nbsp;/g," ");}}function escSglQuote(str){return str.toString().replace(/'/g,"\\'");}function OLonLoad_handler(e){var re=/\w+\(.*\)[;\s]+/g,olre=/overlib\(|nd\(|cClick\(/,fn,l,i;if(!olLoaded){olLoaded=1;
}if(window.removeEventListener&&e.eventPhase==3){window.removeEventListener("load",OLonLoad_handler,false);}else{if(window.detachEvent){window.detachEvent("onload",OLonLoad_handler);var fN=document.body.getAttribute("onload");if(fN){fN=fN.toString().match(re);if(fN&&fN.length){for(i=0;i<fN.length;i++){if(/anonymous/.test(fN[i])){continue;}while((l=fN[i].search(/\)[;\s]+/))!=-1){fn=fN[i].substring(0,l+1);fN[i]=fN[i].substring(l+2);if(olre.test(fn)){eval(fn);}}}}}}}}function wrapStr(endWrap,fontSizeStr,whichString){var fontStr,fontColor,isClose=((whichString=="close")?1:0),hasDims=/[%\-a-z]+$/.test(fontSizeStr);
fontSizeStr=(olNs4)?(!hasDims?fontSizeStr:"1"):fontSizeStr;if(endWrap){return(hasDims&&!olNs4)?(isClose?"</span>":"</div>"):"</font>";}else{fontStr="o3_"+whichString+"font";fontColor="o3_"+((whichString=="caption")?"cap":whichString)+"color";return(hasDims&&!olNs4)?(isClose?'<span style="font-family: '+quoteMultiNameFonts(eval(fontStr))+"; color: "+eval(fontColor)+"; font-size: "+fontSizeStr+';">':'<div style="font-family: '+quoteMultiNameFonts(eval(fontStr))+"; color: "+eval(fontColor)+"; font-size: "+fontSizeStr+';">'):'<font face="'+eval(fontStr)+'" color="'+eval(fontColor)+'" size="'+(parseInt(fontSizeStr)>7?"7":fontSizeStr)+'">';
}}function quoteMultiNameFonts(theFont){var v,pM=theFont.split(",");for(var i=0;i<pM.length;i++){v=pM[i];v=v.replace(/^\s+/,"").replace(/\s+$/,"");if(/\s/.test(v)&&!/['"]/.test(v)){v="'"+v+"'";pM[i]=v;}}return pM.join();}function isExclusive(args){return false;}function setCellPadStr(parameter){var Str="",j=0,ary=new Array(),top,bottom,left,right;Str+="padding: ";ary=parameter.replace(/\s+/g,"").split(",");switch(ary.length){case 2:top=bottom=ary[j];left=right=ary[++j];break;case 3:top=ary[j];left=right=ary[++j];
bottom=ary[++j];break;case 4:top=ary[j];right=ary[++j];bottom=ary[++j];left=ary[++j];break;}Str+=((ary.length==1)?ary[0]+"px;":top+"px "+right+"px "+bottom+"px "+left+"px;");return Str;}function hideDelay(time){if(time){if(o3_timerid>0){clearTimeout(o3_timerid);}o3_timerid=setTimeout("cClick()",(o3_timeout=time));}}function horizontalPlacement(browserWidth,horizontalScrollAmount,widthFix){var placeX,iwidth=browserWidth,winoffset=horizontalScrollAmount;var parsedWidth=parseInt(o3_width);if(o3_fixx>-1||o3_relx!=null){placeX=(o3_relx!=null?(o3_relx<0?winoffset+o3_relx+iwidth-parsedWidth-widthFix:winoffset+o3_relx):o3_fixx);
}else{if(o3_hauto==1){if((o3_x-winoffset)>(iwidth/2)){o3_hpos=LEFT;}else{o3_hpos=RIGHT;}}if(o3_hpos==CENTER){placeX=o3_x+o3_offsetx-(parsedWidth/2);if(placeX<winoffset){placeX=winoffset;}}if(o3_hpos==RIGHT){placeX=o3_x+o3_offsetx;if((placeX+parsedWidth)>(winoffset+iwidth-widthFix)){placeX=iwidth+winoffset-parsedWidth-widthFix;if(placeX<0){placeX=0;}}}if(o3_hpos==LEFT){placeX=o3_x-o3_offsetx-parsedWidth;if(placeX<winoffset){placeX=winoffset;}}if(o3_snapx>1){var snapping=placeX%o3_snapx;if(o3_hpos==LEFT){placeX=placeX-(o3_snapx+snapping);
}else{placeX=placeX+(o3_snapx-snapping);}if(placeX<winoffset){placeX=winoffset;}}}return placeX;}function verticalPlacement(browserHeight,verticalScrollAmount){var placeY,iheight=browserHeight,scrolloffset=verticalScrollAmount;var parsedHeight=(o3_aboveheight?parseInt(o3_aboveheight):(olNs4?over.clip.height:over.offsetHeight));if(o3_fixy>-1||o3_rely!=null){placeY=(o3_rely!=null?(o3_rely<0?scrolloffset+o3_rely+iheight-parsedHeight:scrolloffset+o3_rely):o3_fixy);}else{if(o3_vauto==1){if((o3_y-scrolloffset)>(iheight/2)&&o3_vpos==BELOW&&(o3_y+parsedHeight+o3_offsety-(scrolloffset+iheight)>0)){o3_vpos=ABOVE;
}else{if(o3_vpos==ABOVE&&(o3_y-(parsedHeight+o3_offsety)-scrolloffset<0)){o3_vpos=BELOW;}}}if(o3_vpos==ABOVE){if(o3_aboveheight==0){o3_aboveheight=parsedHeight;}placeY=o3_y-(o3_aboveheight+o3_offsety);if(placeY<scrolloffset){placeY=scrolloffset;}}else{placeY=o3_y+o3_offsety;}if(o3_snapy>1){var snapping=placeY%o3_snapy;if(o3_aboveheight>0&&o3_vpos==ABOVE){placeY=placeY-(o3_snapy+snapping);}else{placeY=placeY+(o3_snapy-snapping);}if(placeY<scrolloffset){placeY=scrolloffset;}}}return placeY;}function checkPositionFlags(){if(olHautoFlag){olHautoFlag=o3_hauto=0;
}if(olVautoFlag){olVautoFlag=o3_vauto=0;}return true;}function windowWidth(){var w;if(o3_frame.innerWidth){w=o3_frame.innerWidth;}else{if(eval("o3_frame."+docRoot)&&eval("typeof o3_frame."+docRoot+".clientWidth=='number'")&&eval("o3_frame."+docRoot+".clientWidth")){w=eval("o3_frame."+docRoot+".clientWidth");}}return w;}function createDivContainer(id,frm,zValue){id=(id||"overDiv"),frm=(frm||o3_frame),zValue=(zValue||1000);var objRef,divContainer=layerReference(id);if(divContainer==null){if(olNs4){divContainer=frm.document.layers[id]=new Layer(window.innerWidth,frm);
objRef=divContainer;}else{var body=(olIe4?frm.document.all.tags("BODY")[0]:frm.document.getElementsByTagName("BODY")[0]);if(olIe4&&!document.getElementById){body.insertAdjacentHTML("beforeEnd",'<div id="'+id+'"></div>');divContainer=layerReference(id);}else{divContainer=frm.document.createElement("DIV");divContainer.id=id;body.appendChild(divContainer);}objRef=divContainer.style;}objRef.position="absolute";objRef.visibility="hidden";objRef.zIndex=zValue;if(olIe4&&!olOp){objRef.left=objRef.top="0px";
}else{objRef.left=objRef.top=-10000+(!olNs4?"px":0);}}return divContainer;}function layerReference(id){return(olNs4?o3_frame.document.layers[id]:(document.all?o3_frame.document.all[id]:o3_frame.document.getElementById(id)));}function isFunction(fnRef){var rtn=true;if(typeof fnRef=="object"){for(var i=0;i<fnRef.length;i++){if(typeof fnRef[i]=="function"){continue;}rtn=false;break;}}else{if(typeof fnRef!="function"){rtn=false;}}return rtn;}function argToString(array,strtInd,argName){var jS=strtInd,aS="",ar=array;
argName=(argName?argName:"ar");if(ar.length>jS){for(var k=jS;k<ar.length;k++){aS+=argName+"["+k+"], ";}aS=aS.substring(0,aS.length-2);}return aS;}function reOrder(hookPt,fnRef,order){var newPt=new Array(),match,i,j;if(!order||typeof order=="undefined"||typeof order=="number"){return hookPt;}if(typeof order=="function"){if(typeof fnRef=="object"){newPt=newPt.concat(fnRef);}else{newPt[newPt.length++]=fnRef;}for(i=0;i<hookPt.length;i++){match=false;if(typeof fnRef=="function"&&hookPt[i]==fnRef){continue;
}else{for(j=0;j<fnRef.length;j++){if(hookPt[i]==fnRef[j]){match=true;break;}}}if(!match){newPt[newPt.length++]=hookPt[i];}}newPt[newPt.length++]=order;}else{if(typeof order=="object"){if(typeof fnRef=="object"){newPt=newPt.concat(fnRef);}else{newPt[newPt.length++]=fnRef;}for(j=0;j<hookPt.length;j++){match=false;if(typeof fnRef=="function"&&hookPt[j]==fnRef){continue;}else{for(i=0;i<fnRef.length;i++){if(hookPt[j]==fnRef[i]){match=true;break;}}}if(!match){newPt[newPt.length++]=hookPt[j];}}for(i=0;i<newPt.length;
i++){hookPt[i]=newPt[i];}newPt.length=0;for(j=0;j<hookPt.length;j++){match=false;for(i=0;i<order.length;i++){if(hookPt[j]==order[i]){match=true;break;}}if(!match){newPt[newPt.length++]=hookPt[j];}}newPt=newPt.concat(order);}}hookPt=newPt;return hookPt;}function setRunTimeVariables(){if(typeof runTime!="undefined"&&runTime.length){for(var k=0;k<runTime.length;k++){runTime[k]();}}}function parseCmdLine(pf,i,args){if(typeof cmdLine!="undefined"&&cmdLine.length){for(var k=0;k<cmdLine.length;k++){var j=cmdLine[k](pf,i,args);
if(j>-1){i=j;break;}}}return i;}function postParseChecks(pf,args){if(typeof postParse!="undefined"&&postParse.length){for(var k=0;k<postParse.length;k++){if(postParse[k](pf,args)){continue;}return false;}}return true;}function registerCommands(cmdStr){if(typeof cmdStr!="string"){return;}var pM=cmdStr.split(",");pms=pms.concat(pM);for(var i=0;i<pM.length;i++){eval(pM[i].toUpperCase()+"="+pmCount++);}}function registerNoParameterCommands(cmdStr){if(!cmdStr&&typeof cmdStr!="string"){return;}pmt=(!pmt)?cmdStr:pmt+","+cmdStr;
}function registerHook(fnHookTo,fnRef,hookType,optPm){var hookPt,last=typeof optPm;if(fnHookTo=="plgIn"||fnHookTo=="postParse"){return;}if(typeof hookPts[fnHookTo]=="undefined"){hookPts[fnHookTo]=new FunctionReference();}hookPt=hookPts[fnHookTo];if(hookType!=null){if(hookType==FREPLACE){hookPt.ovload=fnRef;if(fnHookTo.indexOf("ol_content_")>-1){hookPt.alt[pms[CSSOFF-1-pmStart]]=fnRef;}}else{if(hookType==FBEFORE||hookType==FAFTER){var hookPt=(hookType==1?hookPt.before:hookPt.after);if(typeof fnRef=="object"){hookPt=hookPt.concat(fnRef);
}else{hookPt[hookPt.length++]=fnRef;}if(optPm){hookPt=reOrder(hookPt,fnRef,optPm);}}else{if(hookType==FALTERNATE){if(last=="number"){hookPt.alt[pms[optPm-1-pmStart]]=fnRef;}}else{if(hookType==FCHAIN){hookPt=hookPt.chain;if(typeof fnRef=="object"){hookPt=hookPt.concat(fnRef);}else{hookPt[hookPt.length++]=fnRef;}}}}}return;}}function registerRunTimeFunction(fn){if(isFunction(fn)){if(typeof fn=="object"){runTime=runTime.concat(fn);}else{runTime[runTime.length++]=fn;}}}function registerCmdLineFunction(fn){if(isFunction(fn)){if(typeof fn=="object"){cmdLine=cmdLine.concat(fn);
}else{cmdLine[cmdLine.length++]=fn;}}}function registerPostParseFunction(fn){if(isFunction(fn)){if(typeof fn=="object"){postParse=postParse.concat(fn);}else{postParse[postParse.length++]=fn;}}}function runHook(fnHookTo,hookType){var l=hookPts[fnHookTo],k,rtnVal=null,optPm,arS,ar=runHook.arguments;if(hookType==FREPLACE){arS=argToString(ar,2);if(typeof l=="undefined"||!(l=l.ovload)){rtnVal=eval(fnHookTo+"("+arS+")");}else{rtnVal=eval("l("+arS+")");}}else{if(hookType==FBEFORE||hookType==FAFTER){if(typeof l!="undefined"){l=(hookType==1?l.before:l.after);
if(l.length){arS=argToString(ar,2);for(var k=0;k<l.length;k++){eval("l[k]("+arS+")");}}}}else{if(hookType==FALTERNATE){optPm=ar[2];arS=argToString(ar,3);if(typeof l=="undefined"||(l=l.alt[pms[optPm-1-pmStart]])=="undefined"){rtnVal=eval(fnHookTo+"("+arS+")");}else{rtnVal=eval("l("+arS+")");}}else{if(hookType==FCHAIN){arS=argToString(ar,2);l=l.chain;for(k=l.length;k>0;k--){if((rtnVal=eval("l[k-1]("+arS+")"))!=void (0)){break;}}}}}}return rtnVal;}function FunctionReference(){this.ovload=null;this.before=new Array();
this.after=new Array();this.alt=new Array();this.chain=new Array();}function Info(version,prerelease){this.version=version;this.prerelease=prerelease;this.simpleversion=Math.round(this.version*100);this.major=parseInt(this.simpleversion/100);this.minor=parseInt(this.simpleversion/10)-this.major*10;this.revision=parseInt(this.simpleversion)-this.major*100-this.minor*10;this.meets=meets;}function meets(reqdVersion){return(!reqdVersion)?false:this.simpleversion>=Math.round(100*parseFloat(reqdVersion));
}registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSOFF);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSOFF);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSOFF);registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSCLASS);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSCLASS);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSCLASS);registerPostParseFunction(checkPositionFlags);registerHook("hideObject",nbspCleanup,FAFTER);
registerHook("horizontalPlacement",horizontalPlacement,FCHAIN);registerHook("verticalPlacement",verticalPlacement,FCHAIN);if(olNs4||(olIe5&&isMac)||olKq){olLoaded=1;}registerNoParameterCommands("sticky,autostatus,autostatuscap,fullhtml,hauto,vauto,closeclick,wrap,followmouse,mouseoff,compatmode");var olCheckMouseCapture=true;if((olNs4||olNs6||olIe4)){olMouseCapture();}else{overlib=no_overlib;nd=no_overlib;ver3fix=true;}if(typeof olInfo=="undefined"||typeof olInfo.meets=="undefined"||!olInfo.meets(4.1)){alert("overLIB 4.10 or later is required for the Shadow Plugin.");
}else{registerCommands("shadow,shadowcolor,shadowimage,shadowopacity,shadowx,shadowy");if(typeof ol_shadowadjust=="undefined"){var ol_shadowadjust=2;}if(typeof ol_shadow=="undefined"){var ol_shadow=0;}if(typeof ol_shadowcolor=="undefined"){var ol_shadowcolor="#CCCCCC";}if(typeof ol_shadowimage=="undefined"){var ol_shadowimage="";}if(typeof ol_shadowopacity=="undefined"){var ol_shadowopacity=0;}if(typeof ol_shadowx=="undefined"){var ol_shadowx=5;}if(typeof ol_shadowy=="undefined"){var ol_shadowy=5;
}var o3_shadow=0;var o3_shadowcolor="#cccccc";var o3_shadowimage="";var o3_shadowopacity=0;var o3_shadowx=5;var o3_shadowy=5;var bkSet=0;function setShadowVariables(){o3_shadow=ol_shadow;o3_shadowcolor=ol_shadowcolor;o3_shadowimage=ol_shadowimage;o3_shadowopacity=ol_shadowopacity;o3_shadowx=ol_shadowx;o3_shadowy=ol_shadowy;}function parseShadowExtras(pf,i,ar){var k=i,v;if(k<ar.length){if(ar[k]==SHADOW){eval(pf+"shadow=("+pf+"shadow==0) ? 1 : 0");return k;}if(ar[k]==SHADOWCOLOR){eval(pf+'shadowcolor="'+ar[++k]+'"');
return k;}if(ar[k]==SHADOWOPACITY){v=ar[++k];eval(pf+"shadowopacity="+(olOp?0:v));return k;}if(ar[k]==SHADOWIMAGE){eval(pf+'shadowimage="'+ar[++k]+'"');return k;}if(ar[k]==SHADOWX){eval(pf+"shadowx="+ar[++k]);return k;}if(ar[k]==SHADOWY){eval(pf+"shadowy="+ar[++k]);return k;}}return -1;}function shadow_cursorOff(){var left=parseInt(over.style.left);var top=parseInt(over.style.top);var right=left+(o3_shadow?o3_width:over.offsetWidth);var bottom=top+(o3_shadow?o3_aboveheight:over.offsetHeight);if(o3_x<left||o3_x>right||o3_y<top||o3_y>bottom){return true;
}return false;}function checkShadowPreHide(){if(o3_shadow&&o3_shadowopacity){cleanUpShadowEffects();}if(o3_shadow&&(olIe4&&isMac)){over.style.pixelWidth=over.style.pixelHeight=0;}}function generateShadow(content){var wd,ht,X=0,Y=0,zIdx=0,txt,dpObj,puObj,bS="",aPos,posStr=new Array();if(!o3_shadow||(o3_shadowx==0&&o3_shadowy==0)){return;}X=Math.abs(o3_shadowx);Y=Math.abs(o3_shadowy);wd=parseInt(o3_width);ht=(olNs4)?over.clip.height:over.offsetHeight;if(o3_shadowx==0){if(o3_shadowy<0){posStr[0]=" left:0; top: 0";
posStr[1]=" left:0; top: "+Y+"px";}else{if(o3_shadowy>0){posStr[0]=" left:0; top: "+Y+"px";posStr[1]=" left:0; top:0";}}}else{if(o3_shadowy==0){if(o3_shadowx<0){posStr[0]=" left:0; top: 0";posStr[1]=" left: "+X+"px";}else{if(o3_shadowx>0){posStr[0]=" left: "+X+"px; top: 0";posStr[1]=" left:0; top:0";}}}else{if(o3_shadowx>0){if(o3_shadowy>0){posStr[0]=" left:"+X+"px; top:"+Y+"px";posStr[1]=" left:0; top:0";}else{if(o3_shadowy<0){posStr[0]=" left:"+X+"px; top:0";posStr[1]=" left:0; top: "+Y+"px";}}}else{if(o3_shadowx<0){if(o3_shadowy>0){posStr[0]=" left:0; top:"+Y+"px";
posStr[1]=" left:"+X+"px; top:0";}else{if(o3_shadowy<0){posStr[0]=" left:0; top:0";posStr[1]=" left:"+X+"px; top:"+Y+"px";}}}}}}txt=(olNs4)?'<div id="backdrop"></div>':((olIe55&&olHideForm)?backDropSource(wd+X,ht+Y,zIdx++):"")+'<div id="backdrop" style="position: absolute;'+posStr[0]+"; width: "+wd+"px; height: "+ht+"px; z-index: "+(zIdx++)+"; ";if(o3_shadowimage){bS="background-image: url("+o3_shadowimage+");";if(olNs4){bkSet=1;}}else{bS="background-color: "+o3_shadowcolor+";";if(olNs4){bkSet=2;
}}if(olNs4){txt+='<div id="PUContent">'+content+"</div>";}else{txt+=bS+'"></div><div id="PUContent" style="position: absolute;'+posStr[1]+"; width: "+wd+"px; z-index: "+(zIdx++)+';">'+content+"</div>";}layerWrite(txt);if(olNs4&&bkSet){dpObj=over.document.layers.backdrop;if(typeof dpObj=="undefined"){return;}puObj=over.document.layers.PUContent;wd=puObj.clip.width;ht=puObj.clip.height;aPos=posStr[0].split(";");dpObj.clip.width=wd;dpObj.clip.height=ht;dpObj.left=parseInt(aPos[0].split(":")[1]);dpObj.top=parseInt(aPos[1].split(":")[1]);
dpObj.bgColor=(bkSet==1)?null:o3_shadowcolor;dpObj.background.src=(bkSet==2)?null:o3_shadowimage;dpObj.zIndex=0;aPos=posStr[1].split(";");puObj.left=parseInt(aPos[0].split(":")[1]);puObj.top=parseInt(aPos[1].split(":")[1]);puObj.zIndex=1;}else{puObj=(olIe4?o3_frame.document.all.PUContent:o3_frame.document.getElementById("PUContent"));dpObj=(olIe4?o3_frame.document.all.backdrop:o3_frame.document.getElementById("backdrop"));ht=puObj.offsetHeight;dpObj.style.height=ht+"px";if(o3_shadowopacity){var op=o3_shadowopacity;
op=(op<=100?op:100);setBrowserOpacity(op,dpObj);}}o3_width=wd+X;o3_aboveheight=ht+Y;}function cleanUpShadowEffects(){if(olNs4||olOp){return;}var dpObj=(olIe4?o3_frame.document.all.backdrop:o3_frame.document.getElementById("backdrop"));cleanUpBrowserOpacity(dpObj);}function setBrowserOpacity(op,lyr){if(olNs4||!op){return;}lyr=(lyr)?lyr:over;if(olIe4&&typeof lyr.filters!="undefined"){lyr.style.filter="Alpha(Opacity="+op+")";lyr.filters.alpha.enabled=true;}else{var sOp=(typeof(lyr.style.MozOpacity)!="undefined")?"MozOpacity":(typeof(lyr.style.KhtmlOpacity)!="undefined"?"KhtmlOpacity":(typeof(lyr.style.opacity)!="undefined"?"opacity":""));
if(sOp){eval("lyr.style."+sOp+"=op/100");}}}function cleanUpBrowserOpacity(lyr){if(olNs4){return;}lyr=(lyr)?lyr:over;if(olIe4&&(typeof lyr.filters!="undefined"&&lyr.filters.alpha.enabled)){lyr.style.filter="Alpha(Opacity=100)";lyr.filters.alpha.enabled=false;}else{var sOp=(typeof(lyr.style.MozOpacity)!="undefined")?"MozOpacity":(typeof(lyr.style.KhtmlOpacity)!="undefined"?"KhtmlOpacity":(typeof(lyr.style.opacity)!="undefined"?"opacity":""));if(sOp){eval("lyr.style."+sOp+"=1.0");}}}function shadowAdjust(){if(!olNs4){return;
}var fac=ol_shadowadjust;if(olNs4){document.write('<style type="text/css">\n<!--\n');document.write("#backdrop, #PUContent {position: absolute; left: "+fac*o3_shadowx+"px; top: "+fac*o3_shadowy+"px; }\n");document.write("-->\n</style>");}}var before=(typeof rmrkPreface!="undefined"?rmrkPreface:null);registerRunTimeFunction(setShadowVariables);registerCmdLineFunction(parseShadowExtras);registerHook("cursorOff",shadow_cursorOff,FREPLACE);registerHook("hideObject",checkShadowPreHide,FBEFORE);registerHook("createPopup",generateShadow,FAFTER,before);
if(olInfo.meets(4.1)){registerNoParameterCommands("shadow");}if(olNs4){shadowAdjust();}}if(typeof olInfo=="undefined"||typeof olInfo.meets=="undefined"||!olInfo.meets(4.1)){alert("overLIB 4.10 or later is required for the HideForm Plugin.");}else{function generatePopUp(content){if(!olIe4||olOp||!olIe55||(typeof o3_shadow!="undefined"&&o3_shadow)||(typeof o3_bubble!="undefined"&&o3_bubble)){return;}var wd,ht,txt,zIdx=0;wd=parseInt(o3_width);ht=over.offsetHeight;txt=backDropSource(wd,ht,zIdx++);txt+='<div style="position: absolute; top: 0; left: 0; width: '+wd+"px; z-index: "+zIdx+';">'+content+"</div>";
layerWrite(txt);}function backDropSource(width,height,Z){return'<iframe frameborder="0" scrolling="no" src="javascript:false;" width="'+width+'" height="'+height+'" style="z-index: '+Z+'; filter: Beta(Style=0,Opacity=0);"></iframe>';}function hideSelectBox(){if(olNs4||olOp||olIe55){return;}var px,py,pw,ph,sx,sw,sy,sh,selEl,v;if(olIe4){v=0;}else{v=navigator.userAgent.match(/Gecko\/(\d{8})/i);if(!v){return;}v=parseInt(v[1]);}if(v<20030624){px=parseInt(over.style.left);py=parseInt(over.style.top);pw=o3_width;
ph=(o3_aboveheight?parseInt(o3_aboveheight):over.offsetHeight);selEl=(olIe4)?o3_frame.document.all.tags("SELECT"):o3_frame.document.getElementsByTagName("SELECT");for(var i=0;i<selEl.length;i++){if(!olIe4&&selEl[i].size<2){continue;}sx=pageLocation(selEl[i],"Left");sy=pageLocation(selEl[i],"Top");sw=selEl[i].offsetWidth;sh=selEl[i].offsetHeight;if((px+pw)<sx||px>(sx+sw)||(py+ph)<sy||py>(sy+sh)){continue;}selEl[i].isHidden=1;selEl[i].style.visibility="hidden";}}}function showSelectBox(){if(olNs4||olOp||olIe55){return;
}var selEl,v;if(olIe4){v=0;}else{v=navigator.userAgent.match(/Gecko\/(\d{8})/i);if(!v){return;}v=parseInt(v[1]);}if(v<20030624){selEl=(olIe4)?o3_frame.document.all.tags("SELECT"):o3_frame.document.getElementsByTagName("SELECT");for(var i=0;i<selEl.length;i++){if(typeof selEl[i].isHidden!="undefined"&&selEl[i].isHidden){selEl[i].isHidden=0;selEl[i].style.visibility="visible";}}}}function pageLocation(o,t){var x=0;while(o.offsetParent){x+=o["offset"+t];o=o.offsetParent;}x+=o["offset"+t];return x;}if(!(olNs4||olOp||olIe55||navigator.userAgent.indexOf("Netscape6")!=-1||navigator.userAgent.indexOf("KHTML")!=-1)){var MMStr=olMouseMove.toString();
var strRe=/(if\s*\(o3_allowmove\s*==\s*1.*\)\s*)/;var f=MMStr.match(strRe);if(f){var ls=MMStr.search(strRe);ls+=f[1].length;var le=MMStr.substring(ls).search(/[;|}]\n/);MMStr=MMStr.substring(0,ls)+' { runHook("placeLayer",FREPLACE); if(olHideForm) hideSelectBox(); '+MMStr.substring(ls+(le!=-1?le+3:0));document.writeln('<script type="text/javascript">\n<!--\n'+MMStr+"\n//-->\n<\/script>");}f=capExtent.onmousemove.toString().match(/function[ ]+(\w*)\(/);if(f&&f[1]!="anonymous"){capExtent.onmousemove=olMouseMove;
}}registerHook("createPopup",generatePopUp,FAFTER);registerHook("hideObject",showSelectBox,FAFTER);olHideForm=1;}function naseptavacOverlib(){jQuery(document).unbind("click");var url=naseptavacOverlib.arguments[0];var data=naseptavacOverlib.arguments[1];overlib(ol_ajaxloading);var myAjax=jQuery.ajax({type:"POST",url:url,timeout:20000,data:data,success:function(msg,textStatus){var title;var titleRegExp=msg.substr(0,400).match(new RegExp('(id="overlibHlavicka" title=")([^"]+)(")'));if(titleRegExp!=null){title=titleRegExp[2];
}overlib(msg,STICKY,"Close by clicking",CAPTION,(title?title:" "),WIDTH,350,CLOSECLICK);jQuery(document).bind("click",function(){nd();});var lis=jQuery("#overDiv li a");if(lis.size()==1){window.setTimeout(function(){if(PPK_BrowserDetect.browser=="Explorer"){lis.get()[0].click();}else{lis.click();eval(lis.attr("onclick"));}},2000);}},error:function(request,textStatus,errorThrown){request.abort();if(textStatus=="timeout"){textStatus=Suggest.prototype.timeoutLabel;}if(textStatus=="error"){textStatus=Suggest.prototype.errorLabel;
}if(errorThrown){errorThrown=" ("+errorThrown+")";}else{errorThrown="";}overlib('<div class="xg_msgFromServerError">'+Suggest.prototype.errorDiv+textStatus+errorThrown+"</div>",STICKY,"Close by clicking",CAPTION,'<span id="overlibHlavicka">Chyba</span>',WIDTH,350,CLOSECLICK);jQuery(document).bind("click",function(){nd();});myAjax=null;}});}function Suggest(suggestURL,varName,porLo){this.porLo=(porLo?porLo:"cs");this.sugestURL=suggestURL;this.varName=varName;this.parentDiv=null;this.inputTxtUcitel="'ucitelInput'";
this.inputTxtUcitelPlneJmeno="ucitelPlneInput";this.inputTxtUcitidno="ucitidno";this.inputTxtKatedra="'katedraInput'";this.inputTxtCisKatedra="searchCisloPracoviste";this.inputTxtMistnost="mistnostInput";this.inputTxtMistCislo="mistnostCislo";this.inputTxtMistBudova="mistnostBudova";this.inputTxtMistKapacita="mistnostKapacita";this.inputTxtNazev="nazevInput";this.inputTxtRok="rokInput";this.inputTxtPredmet="predmetInput";this.inputTxtKrouzek="krouzekSearchKod";this.inputTxtProgram="programInput";
this.inputTxtProgramIdno="programIdnoInput";this.inputTxtObor="oborInput";this.inputTxtOborIdno="oborIdnoInput";this.inputTxtZkrKombinace="zkratkaKombinaceInput";this.inputTxtBudova="mistnostSearchBudova";this.inputTxtLokalita="lokalitaInput";this.inputSelectStav="studentSearchStav";this.inputTxtOsCislo="studentSearchOsCislo";this.inputTxtRocnikOd="studentSearchRocnikOd";this.inputTxtRocnikDo="studentSearchRocnikDo";this.inputTxtPrijmeni="studentSearchPrijmeni";this.inputTxtStudent="studentUniSearch";
this.inputTxtSemestr="semestrZkrInput";this.inputTxtTermidno="termidnoInput";this.inputTxtLiterAutor="literAutorInput";this.inputTxtLiterNazev="literNazevInput";this.inputTxtLiterISBN="literISBNInput";this.inputTxtLiterISSN="literISSNInput";this.inputTxtLiterLiteidno="literLiteidnoInput";this.inputTxtLiterURL="literURLInput";this.inputTxtLiterIdentVSyst="literIdentVSystInput";this.inputTxtLiterRok="literRokInput";this.inputTxtLiterZdrojDok="literZdrojDokInput";this.inputTxtLiterMisto="literMistoInput";
this.inputSelectLiterTyp="literTypSelect";this.inputSelectFakulta="krouzekSearchFakulta";}Suggest.prototype.katedraTitle="Dohledání pracovišť";Suggest.prototype.predmetTitle="Dohledání předmětů";Suggest.prototype.mistnostTitle="Dohledání místností";Suggest.prototype.ucitelTitle="Dohledání vyučujících";Suggest.prototype.literaturaTitle="Dohledání literatury";Suggest.prototype.studentTitle="Dohledání studentů";Suggest.prototype.krouzekTitle="Dohledání studijních kroužků";Suggest.prototype.programTitle="Dohledání studijních kroužků";
Suggest.prototype.oborTitle="Dohledání studijních kroužků";Suggest.prototype.zkrKombinaceTitle="Dohledání studijních kroužků";Suggest.prototype.budovaTitle="Dohledání budovy";Suggest.prototype.timeoutLabel="Vypršel čas pro volání (20 vteřin)";Suggest.prototype.errorLabel="Chyba na straně serveru";Suggest.prototype.errorDiv="Omlouváme se, ale nastala chyba při spouštění dohledávače: ";Suggest.prototype.katedraSet=function(){return false;};Suggest.prototype.predmetSet=function(){return false;};Suggest.prototype.predmetTermSet=function(){return false;
};Suggest.prototype.predmetBezRokuSet=function(){return false;};Suggest.prototype.mistnostSet=function(){return false;};Suggest.prototype.ucitelSet=function(){return false;};Suggest.prototype.literaturaSet=function(){return false;};Suggest.prototype.krouzekSet=function(){return false;};Suggest.prototype.programSet=function(){return false;};Suggest.prototype.oborSet=function(){return false;};Suggest.prototype.zkrKombinaceSet=function(){return false;};Suggest.prototype.studentSet=function(){return false;
};Suggest.prototype.budovaSet=function(){return false;};Suggest.prototype.getSuggestButton=function(functName,title){return'<input tabIndex="666" type="button" class="xg_dohledavac suggestBtn" title="'+title+'" onclick="return '+this.varName+functName+';">';};Suggest.prototype.initKatedraSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtKatedra+"]").after(this.getSuggestButton(".hledejKatedru('"+parentDiv+"')",this.katedraTitle));};Suggest.prototype.initMistnostSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtMistnost+"]").after(this.getSuggestButton(".hledejMistnost('"+parentDiv+"')",this.mistnostTitle));
};Suggest.prototype.initPredmetSearch=function(parentDiv){this.initKatedraSearch(parentDiv);jQuery("#"+parentDiv+" input[name="+this.inputTxtPredmet+"]").after(this.getSuggestButton(".hledejPredmet('"+parentDiv+"')",this.predmetTitle));};Suggest.prototype.initPredmetBezRokuSearch=function(parentDiv){this.initKatedraSearch(parentDiv);jQuery("#"+parentDiv+" input[name="+this.inputTxtPredmet+"]").after(this.getSuggestButton(".hledejPredmetBezRoku('"+parentDiv+"')",this.predmetTitle));};Suggest.prototype.initPredmetTermSearch=function(parentDiv){this.initKatedraSearch(parentDiv);
jQuery("#"+parentDiv+" input[name="+this.inputTxtPredmet+"]").after(this.getSuggestButton(".hledejPredmetTerm('"+parentDiv+"')",this.predmetTitle));jQuery("#"+parentDiv+" input[name="+this.inputTxtNazev+"]").after(this.getSuggestButton(".hledejPredmetTerm('"+parentDiv+"')",this.predmetTitle));};Suggest.prototype.initUcitelSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtUcitel+"]").after(this.getSuggestButton(".hledejUcitele('"+parentDiv+"')",this.ucitelTitle));jQuery("#"+parentDiv+" input[name="+this.inputTxtUcitelPlneJmeno+"]").after(this.getSuggestButton(".hledejUcitele('"+parentDiv+"')",this.ucitelTitle));
};Suggest.prototype.initLiteraturaSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtLiterAutor+"]").after(this.getSuggestButton(".hledejLiteraturu('"+parentDiv+"', 'a')",this.literaturaTitle));jQuery("#"+parentDiv+" input[name="+this.inputTxtLiterNazev+"]").after(this.getSuggestButton(".hledejLiteraturu('"+parentDiv+"', 'a')",this.literaturaTitle));jQuery("#"+parentDiv+" input[name="+this.inputTxtLiterISBN+"]").after(this.getSuggestButton(".hledejLiteraturu('"+parentDiv+"', 'b')",this.literaturaTitle));
jQuery("#"+parentDiv+" input[name="+this.inputTxtLiterISSN+"]").after(this.getSuggestButton(".hledejLiteraturu('"+parentDiv+"', 's')",this.literaturaTitle));};Suggest.prototype.initKrouzekSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtKrouzek+"]").after(this.getSuggestButton(".hledejKrouzek('"+parentDiv+"')",this.krouzekTitle));};Suggest.prototype.initProgramSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtProgram+"]").after(this.getSuggestButton(".hledejProgram('"+parentDiv+"')",this.programTitle));
};Suggest.prototype.initOborSearch=function(parentDiv){var inputTxtProgramIdno=this.inputTxtProgramIdno;var inputTxtProgram=this.inputTxtProgram;jQuery("#"+parentDiv+" select[name="+this.inputSelectFakulta+"]").change(function(){jQuery("#"+parentDiv+" input[name="+inputTxtProgram+"]").val("%");jQuery("#"+parentDiv+" input[name="+inputTxtProgramIdno+"]").val("%");});jQuery("#"+parentDiv+" input[name="+this.inputTxtProgram+"]").keyup(function(){jQuery("#"+parentDiv+" input[name="+inputTxtProgramIdno+"]").val("%");
});jQuery("#"+parentDiv+" input[name="+this.inputTxtObor+"]").after(this.getSuggestButton(".hledejObor('"+parentDiv+"')",this.oborTitle));};Suggest.prototype.initZkrKombinaceSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtZkrKombinace+"]").after(this.getSuggestButton(".hledejZkrKombinace('"+parentDiv+"')",this.zkrKombinaceTitle));};Suggest.prototype.initStudentSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtPrijmeni+"]").after(this.getSuggestButton(".hledejStudenta('"+parentDiv+"')",this.studentTitle));
jQuery("#"+parentDiv+" input[name="+this.inputTxtOsCislo+"]").after(this.getSuggestButton(".hledejStudenta('"+parentDiv+"')",this.studentTitle));};Suggest.prototype.initStudentTerminuSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtStudent+"]").after(this.getSuggestButton(".hledejStudentaTerminu('"+parentDiv+"')",this.studentTitle));};Suggest.prototype.initStudentKPSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtPrijmeni+"]").after(this.getSuggestButton(".hledejStudentaKP('"+parentDiv+"')",this.studentTitle));
jQuery("#"+parentDiv+" input[name="+this.inputTxtOsCislo+"]").after(this.getSuggestButton(".hledejStudentaKP('"+parentDiv+"')",this.studentTitle));};Suggest.prototype.initBudovaSearch=function(parentDiv){jQuery("#"+parentDiv+" input[name="+this.inputTxtBudova+"]").after(this.getSuggestButton(".hledejBudova('"+parentDiv+"')",this.budovaTitle));};Suggest.prototype.nastavKatedru=function(zkrKat,cisPrac){jQuery("#"+this.parentDiv+" input[name="+this.inputTxtKatedra+"]").val(zkrKat);jQuery("#"+this.parentDiv+" input[name="+this.inputTxtCisKatedra+"]").val(cisPrac);
cClick();return this.katedraSet();};Suggest.prototype.nastavMistnost=function(zkrBudova,cisMistnost,zkrMistnost,kapacita){var input;if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtMistBudova+"]")).length>0){input.val(zkrBudova);}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtMistCislo+"]")).length>0){input.val(cisMistnost);}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtMistnost+"]")).length>0){input.val(zkrMistnost);}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtMistKapacita+"]")).length>0){input.val(kapacita);
}cClick();return this.mistnostSet();};Suggest.prototype.nastavUcitele=function(ucitidno,jmeno,plneInfo){jQuery("#"+this.parentDiv+" input[name="+this.inputTxtUcitidno+"]").val(ucitidno);jQuery("#"+this.parentDiv+" input[name="+this.inputTxtUcitel+"]").val(jmeno);jQuery("#"+this.parentDiv+" input[name="+this.inputTxtUcitelPlneJmeno+"]").val(plneInfo);cClick();return this.ucitelSet();};Suggest.prototype.nastavPredmet=function(zkrKat,zkrPredm,nazevPredm){var input;if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtKatedra+"]")).length>0){input.val(zkrKat);
}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtPredmet+"]")).length>0){input.val(zkrPredm);}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtNazev+"]")).length>0){input.val(nazevPredm);}cClick();return this.predmetSet();};Suggest.prototype.nastavLiteraturu=function(valuesHash){input=jQuery("#"+this.parentDiv+" form").get(0).reset();if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtLiterAutor+"]")).length>0){input.val(valuesHash.AUTOR);}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtLiterNazev+"]")).length>0){input.val(valuesHash.NAZEV);
}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtLiterISBN+"]")).length>0){input.val(valuesHash.ISBN);}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtLiterISSN+"]")).length>0){input.val(valuesHash.ISSN);}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtLiterMisto+"]")).length>0){input.val(valuesHash.MISTO_VYDANI);}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtLiterRok+"]")).length>0){input.val(valuesHash.ROK_VYDANI);}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtLiterURL+"]")).length>0){input.val(valuesHash.URL);
}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtLiterZdrojDok+"]")).length>0){input.val(valuesHash.ZDROJ_DOK);}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtLiterIdentVSyst+"]")).length>0){input.val(valuesHash.IDENT_V_SYST);}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtLiterLiteidno+"]")).length>0){input.val(valuesHash.LITEIDNO);}jQuery("#"+this.parentDiv+" select[name="+this.inputSelectLiterTyp+"] > option[value="+valuesHash.TYP+"]").attr("selected",true);
cClick();return this.literaturaSet();};Suggest.prototype.nastavPredzKrouzek=function(kodKrouzku){jQuery("#"+this.parentDiv+" input[name="+this.inputTxtKrouzek+"]").val(kodKrouzku);cClick();return this.krouzekSet();};Suggest.prototype.nastavProgram=function(program){jQuery("#"+this.parentDiv+" input[name="+this.inputTxtProgram+"]").val(program);cClick();return this.programSet();};Suggest.prototype.nastavProgram=function(program,programIdno){jQuery("#"+this.parentDiv+" input[name="+this.inputTxtProgram+"]").val(program);
jQuery("#"+this.parentDiv+" input[name="+this.inputTxtProgramIdno+"]").val(programIdno);cClick();return this.programSet();};Suggest.prototype.nastavObor=function(obor){jQuery("#"+this.parentDiv+" input[name="+this.inputTxtObor+"]").val(obor);cClick();return this.oborSet();};Suggest.prototype.nastavObor=function(obor,oborIdno){jQuery("#"+this.parentDiv+" input[name="+this.inputTxtObor+"]").val(obor);jQuery("#"+this.parentDiv+" input[name="+this.inputTxtOborIdno+"]").val(oborIdno);cClick();return this.oborSet();
};Suggest.prototype.nastavZkrKombinace=function(zkrKombinace){jQuery("#"+this.parentDiv+" input[name="+this.inputTxtZkrKombinace+"]").val(zkrKombinace);cClick();return this.zkrKombinaceSet();};Suggest.prototype.nastavStudenta=function(osCislo,prijmeni){var input;if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtPrijmeni+"]")).length>0){input.val(prijmeni);}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtOsCislo+"]")).length>0){input.val(osCislo);}cClick();return this.studentSet();
};Suggest.prototype.nastavStudentaTerminu=function(osCislo,semestr,jmeno){var input;if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtStudent+"]")).length>0){input.val(jmeno);}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtOsCislo+"]")).length>0){input.val(osCislo);}if((input=jQuery("#"+this.parentDiv+" input[name="+this.inputTxtSemestr+"]")).length>0){input.val(semestr);}cClick();return this.studentSet();};Suggest.prototype.nastavBudova=function(budova,lokalita){jQuery("#"+this.parentDiv+" input[name="+this.inputTxtBudova+"]").val(budova);
jQuery("#"+this.parentDiv+" input[name="+this.inputTxtLokalita+"]").val(lokalita);cClick();return this.budovaSet();};Suggest.prototype.hledejKatedru=function(parentDiv){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacOverlib(this.sugestURL,"type=katedra&varName="+this.varName+"&"+pars+"&porLo="+this.porLo);};Suggest.prototype.hledejUcitele=function(parentDiv){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv+" input[type=text]").serialize();return naseptavacOverlib(this.sugestURL,"type=ucitel&varName="+this.varName+"&"+pars+"&porLo="+this.porLo);
};Suggest.prototype.hledejMistnost=function(parentDiv){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv+" input").serialize();return naseptavacOverlib(this.sugestURL,"type=mistnost&varName="+this.varName+"&"+pars+"&porLo="+this.porLo);};Suggest.prototype.hledejPredmet=function(parentDiv){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv+" input[type=text], #"+parentDiv+" select").serialize();return naseptavacOverlib(this.sugestURL,"type=predmet&varName="+this.varName+"&"+pars+"&porLo="+this.porLo);
};Suggest.prototype.hledejPredmetBezRoku=function(parentDiv){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv+" input[type=text], #"+parentDiv+" select").serialize();return naseptavacOverlib(this.sugestURL,"type=predmetBezRoku&varName="+this.varName+"&"+pars+"&porLo="+this.porLo);};Suggest.prototype.hledejPredmetTerm=function(parentDiv){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv+" input").serialize();return naseptavacOverlib(this.sugestURL,"type=predmetTerm&varName="+this.varName+"&"+pars+"&porLo="+this.porLo);
};Suggest.prototype.hledejLiteraturu=function(parentDiv,subType){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv+" input[type=text]").serialize();return naseptavacOverlib(this.sugestURL,"type=literatura&varName="+this.varName+"&subType="+subType+"&"+pars+"&porLo="+this.porLo);};Suggest.prototype.hledejKrouzek=function(parentDiv){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacOverlib(this.sugestURL,"type=predzapisKrouzek&varName="+this.varName+"&"+pars+"&porLo="+this.porLo);
};Suggest.prototype.hledejProgram=function(parentDiv){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacOverlib(this.sugestURL,"type=program&varName="+this.varName+"&"+pars+"&porLo="+this.porLo);};Suggest.prototype.hledejObor=function(parentDiv){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacOverlib(this.sugestURL,"type=obor&varName="+this.varName+"&"+pars+"&porLo="+this.porLo);};Suggest.prototype.hledejStudenta=function(parentDiv){this.parentDiv=parentDiv;
var fooVal=jQuery("#"+parentDiv+" input[name="+this.inputTxtOsCislo+"]").val();var fooVal2=jQuery("#"+parentDiv+" input[name="+this.inputTxtPrijmeni+"]").val();if((fooVal.length==0||fooVal=="%")&&(fooVal2.length==0||fooVal2=="%")){return overlib('<div class="xg_msgFromServerError">Zadejte podrobnější parametry vyhledávání</div>',STICKY,"Close by clicking",CAPTION,'<span id="overlibHlavicka">Chyba</span>',WIDTH,350,CLOSECLICK);}var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacOverlib(this.sugestURL,"type=student&varName="+this.varName+"&"+pars+"&porLo="+this.porLo);
};Suggest.prototype.hledejStudentaTerminu=function(parentDiv){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacOverlib(this.sugestURL,"type=studentTerminu&varName="+this.varName+"&"+pars+"&porLo="+this.porLo);};Suggest.prototype.hledejStudentaKP=function(parentDiv){this.parentDiv=parentDiv;var fooVal=jQuery("#"+parentDiv+" input[name="+this.inputTxtOsCislo+"]").val();var fooVal2=jQuery("#"+parentDiv+" input[name="+this.inputTxtPrijmeni+"]").val();if((fooVal.length==0||fooVal=="%")&&(fooVal2.length==0||fooVal2=="%")){return overlib('<div class="xg_msgFromServerError">Zadejte podrobnější parametry vyhledávání</div>',STICKY,"Close by clicking",CAPTION,'<span id="overlibHlavicka">Chyba</span>',WIDTH,350,CLOSECLICK);
}var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacOverlib(this.sugestURL,"type=studentKP&varName="+this.varName+"&"+pars+"&porLo="+this.porLo);};Suggest.prototype.hledejBudova=function(parentDiv){this.parentDiv=parentDiv;var pars=jQuery("#"+parentDiv).formSerialize();return naseptavacOverlib(this.sugestURL,"type=budova&varName="+this.varName+"&"+pars+"&porLo="+this.porLo);};Suggest.prototype.hledejZkrKombinace=function(parentDiv){alert("Nepodporováno!");};function naseptavacFVOverlib(url){jQuery(document).unbind("click");
overlib(ol_ajaxloading);myAjax=jQuery.ajax({type:"POST",url:url,timeout:10000,success:function(msg){var title;var titleRegExp=msg.substr(0,400).match(new RegExp('(id="overlibHlavicka" title=")([^"]+)(")'));if(titleRegExp!=null){title=titleRegExp[2];}overlib(msg,STICKY,"Close by clicking",CAPTION,(title?title:" "),WIDTH,350,CLOSECLICK);jQuery(document).bind("click",function(){nd();});var lis=jQuery("#overDiv li a");if(lis.size()==1){window.setTimeout(function(){if(PPK_BrowserDetect.browser=="Explorer"){lis.get()[0].click();
}else{lis.click();eval(lis.attr("onclick"));}},2000);}},error:function(request,textStatus,errorThrown){request.abort();if(textStatus=="timeout"){textStatus=Suggest.prototype.timeoutLabel;}if(textStatus=="error"){textStatus=Suggest.prototype.errorLabel;}if(errorThrown){errorThrown=" ("+errorThrown+")";}else{errorThrown="";}overlib('<div class="xg_msgFromServerError">'+Suggest.prototype.errorDiv+textStatus+errorThrown+"</div>",STICKY,"Close by clicking",CAPTION,'<span id="overlibHlavicka">Chyba</span>',WIDTH,350,CLOSECLICK);
jQuery(document).bind("click",function(){nd();});myAjax=null;}});}function renewSession(url,interval,i,warning){var foo;if(i>0){jQuery.get(url);foo=window.setTimeout(function(){renewSession(url,interval,i-1,warning);},interval);jQuery(window).unload(function(){window.clearTimeout(foo);});}else{if(typeof warning=="function"){warning();}else{alert(warning);}}}function XGuiAssignClassToElement(elId,className){var element;element=document.getElementById(elId);if(element){element.className=className;}}function XGuiSetParameter(elName,parameter,value){var element;
element=document.getElementById(elName);if(element){eval("element.style."+parameter+" = '"+value+"';");}}function XGuiGetWPHeight(){var viewportheight;if(typeof window.innerWidth!="undefined"){viewportheight=window.innerHeight;}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){viewportheight=document.documentElement.clientHeight;}else{viewportheight=document.getElementsByTagName("body")[0].clientHeight;
}}return viewportheight;}function XGuiEnlightRow(elName,onOff){if(document.getElementById(elName).className=="zebra_1"){if(onOff){document.getElementById(elName).style.backgroundColor="#EFEBBB";}else{document.getElementById(elName).style.backgroundColor="#F7F4D4";}}else{if(onOff){document.getElementById(elName).style.backgroundColor="#F3D8C1";}else{document.getElementById(elName).style.backgroundColor="#F7E6D8";}}}function XGuiROS(name,className,state,imgWidth,isActive){this.name=name;this.className=className;
this.state=state;this.imgWidth=imgWidth;if(isActive==undefined){this.active=true;}else{this.active=isActive;}this.switchState=function(){if(this.state){this.setState(false);}else{this.setState(true);}};this.setState=function(newState){if(isActive){if(!newState){XGuiAssignClassToElement(this.name+"_outer",this.className+"_a_off");XGuiAssignClassToElement(this.name+"_inner",this.className+"_a_off");this.state=false;}else{XGuiAssignClassToElement(this.name+"_outer",this.className+"_a_on");XGuiAssignClassToElement(this.name+"_inner",this.className+"_a_on");
this.state=true;}}};this.enlight=function(){if(this.active){if(this.state){XGuiSetParameter(this.name+"_inner","backgroundPosition","-"+(3*this.imgWidth)+"px 0");}else{XGuiSetParameter(this.name+"_inner","backgroundPosition","-"+(1*this.imgWidth)+"px 0");}}else{if(this.state){XGuiSetParameter(this.name+"_inner","backgroundPosition","-"+(7*this.imgWidth)+"px 0");}else{XGuiSetParameter(this.name+"_inner","backgroundPosition","-"+(5*this.imgWidth)+"px 0");}}};this.darken=function(){if(this.active){if(this.state){XGuiSetParameter(this.name+"_inner","backgroundPosition","");
XGuiAssignClassToElement(this.name+"_inner",this.className+"_a_on");}else{XGuiSetParameter(this.name+"_inner","backgroundPosition","");XGuiAssignClassToElement(this.name+"_inner",this.className+"_a_off");}}else{if(this.state){XGuiSetParameter(this.name+"_inner","backgroundPosition","");XGuiAssignClassToElement(this.name+"_inner",this.className+"_i_on");}else{XGuiSetParameter(this.name+"_inner","backgroundPosition","");XGuiAssignClassToElement(this.name+"_inner",this.className+"_i_off");}}};}var PPK_BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";
this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";},searchString:function(data){for(var i=0;i<data.length;i++){var dataString=data[i].string;var dataProp=data[i].prop;this.versionSearchString=data[i].versionSearch||data[i].identity;if(dataString){if(dataString.indexOf(data[i].subString)!=-1){return data[i].identity;}}else{if(dataProp){return data[i].identity;}}}},searchVersion:function(dataString){var index=dataString.indexOf(this.versionSearchString);
if(index==-1){return;}return parseFloat(dataString.substring(index+this.versionSearchString.length+1));},dataBrowser:[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};
PPK_BrowserDetect.init();function XGuiSetCheckboxes(form_name,checkbox_name,do_check){if(typeof(document.forms[form_name].elements[checkbox_name])=="undefined"){alert("XGuiSetCheckboxes::Neni co zaskrtnout / odskrtnout...");return true;}var soab=document.forms[form_name].elements[checkbox_name];var soab_cnt=(typeof(soab.length)!="undefined")?soab.length:0;if(soab_cnt){for(var i=0;i<soab_cnt;i++){soab[i].checked=do_check;}}else{soab.checked=do_check;}return true;}function validateForm(form,pNamespace,hlaska,ignorovane){var invalid=true;
for(i=0;i<form.elements.length;i++){var element=form.elements[i];var ignorovat=false;if(typeof(ignorovane)!="undefined"){if(typeof(ignorovane)!="object"){alert("Wrong parametr type - parameter ignorovane should be an array!");return true;}else{for(j=0;j<ignorovane.length;j++){if(ignorovane[j]==element.name){ignorovat=true;break;}}}}if(!ignorovat){if(element.type=="text"){if(element.value.replace(/^\s+|\s+$/g,"")!="%"&&element.value.replace(/^\s+|\s+$/g,"")!=""){invalid=false;}}else{if(element.type=="select-one"){if(element.options[element.selectedIndex].value!="%"){invalid=false;
}}}}}var errorDiv=window.document.getElementById(pNamespace+"validation_errors");errorDiv.innerHTML="";if(invalid){errorDiv.innerHTML='<div class="xg_msgFromServerError">'+hlaska+"</div>";}return !invalid;}function trim(s){while((s.substring(0,1)==" ")||(s.substring(0,1)=="\n")||(s.substring(0,1)=="\r")){s=s.substring(1,s.length);}while((s.substring(s.length-1,s.length)==" ")||(s.substring(s.length-1,s.length)=="\n")||(s.substring(s.length-1,s.length)=="\r")){s=s.substring(0,s.length-1);}return s;
}function trim_polozka(polozka){polozka.value=trim(polozka.value);}function debugObject(obj){var ret="";var soo=true;if(typeof obj=="object"){if(obj instanceof Array){ret+="[";for(var i in obj){ret+=(soo?" { ":", { ")+debugObject(obj[i])+" }";soo=false;}ret+="]";}else{if(obj instanceof Date){ret=obj.getUTCDate()+"."+(obj.getUTCMonth()+1)+"."+obj.getUTCFullYear()+" "+(obj.getUTCHours())+":"+(obj.getUTCMinutes());}else{if(obj instanceof Event){ret+=obj+".target: "+obj.target;}else{for(var j in obj){ret+=(soo?" { ":", { ")+j+" : "+(typeof obj[j]=="object"?debugObject(obj[j]):obj[j])+" }";
soo=false;}}}}}else{ret+=obj;}return ret;}function timeFromString(timeString){var ret=new Number(timeString.substring(0,timeString.indexOf(":")))*60+new Number(timeString.substring(timeString.indexOf(":")+1,timeString.length));if(isNaN(ret)){return 0;}return ret;}function stringFromMilis(milis){var hours=Math.floor(milis/3600000);var minutes=Math.floor((milis-hours*3600000)/60000);var seconds=Math.floor((milis-hours*3600000-minutes*60000)/1000);return hours+":"+minutes+":"+seconds;}function XGuiSetCookie(name,value,days,path){if(!path){path="";
}if(days){var date=new Date();date.setTime(date.getTime()+(days*86400000));var expires="; expires="+date.toGMTString();}else{var expires="";}document.cookie=name+"="+value+expires+"; path="+path;}function XGuiGetCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" "){c=c.substring(1,c.length);}if(c.indexOf(nameEQ)==0){return c.substring(nameEQ.length,c.length);}}return null;}function XGuiSetMultiCookie(key,value){var foo=XGuiGetCookie("multiCookie");
var keyx="&&"+key+":";var valuex=keyx+value;var idx=-1;if(foo&&foo!=""){if((idx=foo.indexOf(keyx))==-1){valuex=valuex+foo;}else{var cookies=foo.split("&&");for(var i=0;i<cookies.length;i++){if(cookies[i]==""){continue;}if(cookies[i].indexOf(key+":")==0){continue;}valuex=valuex+"&&"+cookies[i];}}}if(valuex.charCodeAt(valuex.length-1)!="&"){valuex=valuex+"&&";}XGuiSetCookie("multiCookie",valuex,5,"/");}function XGuiGetMultiCookie(key){var foo=XGuiGetCookie("multiCookie");var keyx="&&"+key+":";var idx=-1;
var bar;if(foo&&foo!=""){if((idx=foo.indexOf(keyx))!=-1){bar=foo.slice(idx+keyx.length);return bar.slice(0,bar.indexOf("&&"));}}return null;}function XGuiDeleteCookie(name){XGuiSetCookie(name,"",-1);}function XGuiCookiesContainer(){return XGuiCookiesContainer(null,null);}function XGuiCookiesContainer(x_expdays,x_path){if(x_expdays==undefined||x_expday==null){this.expdays=100;}else{this.expdays=x_expdays;}if(x_path==undefined||x_path==null){this.path="/";}else{this.path=x_path;}this.tabPages=new Array;
this.tabPagesAA=new Array;this.downClicks=new Array;this.downClicksAA=new Array;this.downClickGroupers=new Array;this.downClickGroupersAA=new Array;this.tableSorts=new Array;this.tableSortsAA=new Array;this.init=function(cookieSet){if(((cookieSet==undefined)||(cookieSet=="tpCookie"))&&(this.tabPages.length==0)){var tpCookie=XGuiGetCookie("tpCookie");if(tpCookie&&tpCookie!=""){var tpca=tpCookie.split("&");for(var i=0;i<tpca.length;i++){var tp=tpca[i].split("#");this.tabPages[this.tabPages.length]=new Array(tp[0],tp[1]);
this.tabPagesAA[tp[0]]=tp[1];}}}if(((cookieSet==undefined)||(cookieSet=="dcCookie"))&&(this.downClicks.length==0)){var dcCookie=XGuiGetCookie("dcCookie");if(dcCookie&&dcCookie!=""){var dcca=dcCookie.split("&");for(var i=0;i<dcca.length;i++){var dc=dcca[i].split("#");this.downClicks[this.downClicks.length]=new Array(dc[0],dc[1]);this.downClicksAA[dc[0]]=dc[1];}}}if(((cookieSet==undefined)||(cookieSet=="dcgCookie"))&&(this.downClickGroupers.length==0)){var dcgCookie=XGuiGetCookie("dcgCookie");if(dcgCookie&&dcgCookie!=""){var dcgca=dcgCookie.split("&");
for(var i=0;i<dcgca.length;i++){var dcg=dcgca[i].split("#");this.downClickGroupers[this.downClickGroupers.length]=new Array(dcg[0],dcg[1]);this.downClickGroupersAA[dcg[0]]=dcg[1];}}}if(((cookieSet==undefined)||(cookieSet=="tsCookie"))&&(this.tableSorts.length==0)){var tsCookie=XGuiGetCookie("tsCookie");if(tsCookie&&tsCookie!=""){var tsca=tsCookie.split("&");for(var i=0;i<tsca.length;i++){var ts=tsca[i].split("#");this.tableSorts[this.tableSorts.length]=new Array(ts[0],ts[1],ts[2]);this.tableSortsAA[ts[0]]=new Array(ts[1],ts[2]);
}}}};this.setValue=function(cookieSet,variable,value1,value2){var found=0;if((cookieSet==undefined)||(cookieSet=="tpCookie")){for(var i=0;i<this.tabPages.length;i++){if(this.tabPages[i][0]==variable){this.tabPages[i][1]=value1;found++;break;}}if(found==0){this.tabPages[this.tabPages.length]=new Array(variable,value1);this.tabPagesAA[variable]=value1;}else{this.tabPagesAA[variable]=value1;}}if((cookieSet==undefined)||(cookieSet=="dcCookie")){for(var i=0;i<this.downClicks.length;i++){if(this.downClicks[i][0]==variable){this.downClicks[i][1]=value1;
found++;break;}}if(found==0){this.downClicks[this.downClicks.length]=new Array(variable,value1);this.downClicksAA[variable]=value1;}else{this.downClicksAA[variable]=value1;}}if((cookieSet==undefined)||(cookieSet=="dcgCookie")){for(var i=0;i<this.downClickGroupers.length;i++){if(this.downClickGroupers[i][0]==variable){this.downClickGroupers[i][1]=value1;found++;break;}}if(found==0){this.downClickGroupers[this.downClickGroupers.length]=new Array(variable,value1);this.downClickGroupersAA[variable]=value1;
}else{this.downClickGroupersAA[variable]=value1;}}if((cookieSet==undefined)||(cookieSet=="tsCookie")){for(var i=0;i<this.tableSorts.length;i++){if(this.tableSorts[i][0]==variable){this.tableSorts[i][1]=value1;this.tableSorts[i][2]=value2;found++;break;}}if(found==0){this.tableSorts[this.tableSorts.length]=new Array(variable,value1,value2);this.tableSortsAA[variable]=new Array(value1,value2);}else{this.tableSortsAA[variable][0]=value1;this.tableSortsAA[variable][1]=value2;}}};this.flushSet=function(cookieSet){var newCookie="";
if((cookieSet==undefined)||(cookieSet=="tpCookie")){for(var i=0;i<this.tabPages.length;i++){newCookie+=this.tabPages[i][0]+"#"+this.tabPages[i][1]+"&";}newCookie=newCookie.substring(0,newCookie.length-1);XGuiSetCookie("tpCookie",newCookie,XGuiGCC.expdays,XGuiGCC.path);}if((cookieSet==undefined)||(cookieSet=="dcCookie")){for(var i=0;i<this.downClicks.length;i++){newCookie+=this.downClicks[i][0]+"#"+this.downClicks[i][1]+"&";}newCookie=newCookie.substring(0,newCookie.length-1);XGuiSetCookie("dcCookie",newCookie,XGuiGCC.expdays,XGuiGCC.path);
}if((cookieSet==undefined)||(cookieSet=="dcgCookie")){for(var i=0;i<this.downClickGroupers.length;i++){newCookie+=this.downClickGroupers[i][0]+"#"+this.downClickGroupers[i][1]+"&";}newCookie=newCookie.substring(0,newCookie.length-1);XGuiSetCookie("dcgCookie",newCookie,XGuiGCC.expdays,XGuiGCC.path);}if((cookieSet==undefined)||(cookieSet=="tsCookie")){for(var i=0;i<this.tableSorts.length;i++){newCookie+=this.tableSorts[i][0]+"#"+this.tableSorts[i][1]+"#"+this.tableSorts[i][2]+"&";}newCookie=newCookie.substring(0,newCookie.length-1);
XGuiSetCookie("tsCookie",newCookie,XGuiGCC.expdays,XGuiGCC.path);}};this.preview=function(cookieSet){var out="XGuiCookiesContainer.preview('"+cookieSet+"'):\n\n";if((cookieSet==undefined)||(cookieSet=="tpCookie")){for(var i=0;i<this.tabPages.length;i++){out+=this.tabPages[i][0]+" = "+this.tabPages[i][1]+"\n";}alert(out);}if((cookieSet==undefined)||(cookieSet=="dcCookie")){for(var i=0;i<this.downClicks.length;i++){out+=this.downClicks[i][0]+" = "+this.downClicks[i][1]+"\n";}alert(out);}if((cookieSet==undefined)||(cookieSet=="dcgCookie")){for(var i=0;
i<this.downClickGroupers.length;i++){out+=this.downClickGroupers[i][0]+" = "+this.downClickGroupers[i][1]+"\n";}alert(out);}if((cookieSet==undefined)||(cookieSet=="tsCookie")){for(var i=0;i<this.tableSorts.length;i++){out+=this.tableSorts[i][0]+" = "+this.tableSorts[i][1]+", "+this.tableSorts[i][2]+"\n";}alert(out);}};}function XGuiPage(name,isActive,iconName){this.name=name;if(isActive==undefined){this.active=true;}else{this.active=isActive;}if(iconName==undefined){this.iconName=null;}else{this.iconName=iconName;
}this.selected=false;this.pageSet=null;this.beforePageSelect=null;this.afterPageSelect=null;this.beforePageActivate=null;this.afterPageActivate=null;this.beforePageDeactivate=null;this.afterPageDeactivate=null;}function XGuiPageSet(cookiesContainer,name,schemaPrefix,operationMode,isCooked,isImaged){this.cookiesContainer=cookiesContainer;this.pages=new Array;this.name=name;this.selectedIndex=null;this.selected=null;this.schemaPrefix=schemaPrefix;if(isCooked==undefined){this.cooked=true;}else{this.cooked=isCooked;
}if(isImaged==undefined){this.imaged=true;}else{this.imaged=isImaged;}if((operationMode==undefined)||(operationMode=="auto")){this.oMode="auto";}else{if(operationMode=="none"){this.oMode=operationMode;}else{if(isNaN(parseInt(operationMode))){this.oMode="auto";alert('XGuiPageSet.CONSTRUCTOR: zadany argument operationMode = "'+operationMode+'" nema povolenou hodnotu, bude ignorovan...');}else{this.oMode=operationMode;}}}this.maxHeight=-1;this.registerPage=function(name,isActive,iconName){var tp=this.pages[this.pages.length]=new XGuiPage(name,isActive,iconName);
tp.pageSet=this;};this.setSpacers=function(){for(i=0;i<this.pages.length;i++){if(document.getElementById(this.name+"_idP"+i).offsetHeight>this.maxHeight){this.maxHeight=document.getElementById(this.name+"_idP"+i).offsetHeight;}XGuiSetParameter(this.name+"_idP"+i,"display","");}if(this.oMode!="none"){XGuiSetParameter(this.name+"_coat","height",this.maxHeight+4+"px");}};this.deselectPage=function(){var i;for(i=0;i<this.pages.length;i++){if(this.pages[i].selected==true){this.pages[i].selected=false;
this.selected=null;this.selectedIndex=null;XGuiAssignClassToElement(this.name+"_idP"+i,this.schemaPrefix+"tab_page_content");XGuiAssignClassToElement(this.name+"_idH"+i,this.schemaPrefix+"tab_page_heading"+(i==0?"_1":""));this.hIIHandle(i,"a_off_d");}}};this.selectPageByName=function(name,skipCooking){var i;if(skipCooking==undefined){skipCooking=false;}for(i=0;i<this.pages.length;i++){if(this.pages[i].name==name){if((this.pages[i].selected==false)&&(this.pages[i].active==true)){if(this.pages[i].beforePageSelect!=null){if(this.pages[i].beforePageSelect()==0){return;
}}this.deselectPage();this.pages[i].selected=true;this.selected=this.pages[i];this.selectedIndex=i;XGuiAssignClassToElement(this.name+"_idP"+i,this.schemaPrefix+"tab_page_content_selected");XGuiAssignClassToElement(this.name+"_idH"+i,this.schemaPrefix+"tab_page_heading_selected"+(i==0?"_1 current":" current"));this.hIIHandle(i,"a_on_d");if((this.cookiesContainer)&&(this.cooked)&&(!skipCooking)){this.cookiesContainer.setValue("tpCookie",this.name,i);this.cookiesContainer.flushSet("tpCookie");}if(this.pages[i].afterPageSelect!=null){this.pages[i].afterPageSelect();
}}return;}}alert('XGuiPageSet.selectPageByName: "'+name+'" nenalezeno!');};this.selectPageByIndex=function(i,skipCooking){if(skipCooking==undefined){skipCooking=false;}if(this.pages[i]==undefined){alert("XGuiPageSet.selectPageByIndex: stranka s indexem "+i+" nenalezena!");}else{if((this.pages[i].selected==false)&&(this.pages[i].active==true)){if(this.pages[i].beforePageSelect!=null){if(this.pages[i].beforePageSelect()==0){return;}}this.deselectPage();this.pages[i].selected=true;this.selected=this.pages[i];
this.selectedIndex=i;XGuiAssignClassToElement(this.name+"_idP"+i,this.schemaPrefix+"tab_page_content_selected");XGuiAssignClassToElement(this.name+"_idH"+i,this.schemaPrefix+"tab_page_heading_selected"+(i==0?"_1 current":" current"));this.hIIHandle(i,"a_on_d");if((this.cookiesContainer)&&(this.cooked)&&(!skipCooking)){this.cookiesContainer.setValue("tpCookie",this.name,i);this.cookiesContainer.flushSet("tpCookie");}if(this.pages[i].afterPageSelect!=null){this.pages[i].afterPageSelect();}}}};this.getNextActivePage=function(from){var i;
if(from==undefined){if(!isSet){alert("XGuiPageSet.getNextActivePage: nezadan parametr FROM!");}return -1;}for(i=parseInt(from)+1;i<this.pages.length;i++){if(this.pages[i].active){return i;}}for(i=0;i<parseInt(from);i++){if(this.pages[i].active){return i;}}return -1;};this.setPageByName=function(name,state){isSet=0;var i;var notDefined=false;var next;for(i=0;i<this.pages.length;i++){if(this.pages[i].name==name){if(state==undefined){notDefined=true;state=(!this.pages[i].active);}if(this.pages[i].active!=state){if(notDefined){if(this.pages[i].active){if(this.pages[i].beforePageDeactivate!=null){if(this.pages[i].beforePageDeactivate()==0){return;
}}if(this.pages[i].selected){next=this.getNextActivePage(i);if(next==-1){alert("XGuiPageSet.setPageByName: Stranku nelze zneaktivnit, je prave vybrana a jina aktivni neni k dispozici pro vyber.");return;}this.selectPageByIndex(next);}XGuiAssignClassToElement(this.name+"_idH"+i,this.schemaPrefix+"tab_page_heading_inactive"+(i==0?"_1":""));this.hIIHandle(i,"i_off_d");if(this.pages[i].afterPageDeactivate!=null){this.pages[i].afterPageDeactivate();}}else{if(this.pages[i].beforePageActivate!=null){if(this.pages[i].beforePageActivate()==0){return;
}}XGuiAssignClassToElement(this.name+"_idH"+i,this.schemaPrefix+"tab_page_heading"+(i==0?"_1":""));this.hIIHandle(i,"a_off_d");if(this.pages[i].afterPageActivate!=null){this.pages[i].afterPageActivate();}}this.pages[i].active=state;}else{if(this.pages[i].active){if(this.pages[i].beforePageDeactivate!=null){if(this.pages[i].beforePageDeactivate()==0){return;}}if(this.pages[i].selected){next=this.getNextActivePage(i);if(next==-1){alert("XGuiPageSet.setPageByName: Stranku nelze zneaktivnit, je prave vybrana a jina aktivni neni k dispozici pro vyber.");
return;}this.selectPageByIndex(next);}XGuiAssignClassToElement(this.name+"_idH"+i,this.schemaPrefix+"tab_page_heading_inactive"+(i==0?"_1":""));this.hIIHandle(i,"i_off_d");if(this.pages[i].afterPageDeactivate!=null){this.pages[i].afterPageDeactivate();}}else{if(this.pages[i].beforePageActivate!=null){if(this.pages[i].beforePageActivate()==0){return;}}XGuiAssignClassToElement(this.name+"_idH"+i,this.schemaPrefix+"tab_page_heading"+(i==0?"_1":""));this.hIIHandle(i,"a_off_d");if(this.pages[i].afterPageActivate!=null){this.pages[i].afterPageActivate();
}}this.pages[i].active=(state);}}isSet=1;break;}}if(!isSet){alert('XGuiPageSet.setPageByName: stranka "'+name+'" nenalezena!');}};this.setPageByIndex=function(idx,state){var notDefined=false;var prenos=idx;var next;if(this.pages[idx]!=undefined){if(state==undefined){notDefined=true;state=(!this.pages[idx].active);}if(this.pages[idx].active!=state){if(notDefined){if(this.pages[idx].active){if(this.pages[idx].beforePageDeactivate!=null){if(this.pages[idx].beforePageDeactivate()==0){return;}}if(this.pages[idx].selected){next=this.getNextActivePage(prenos);
if(next==-1){alert("XGuiPageSet.setPageByIndex: Stranku nelze zneaktivnit, je prave vybrana a jina aktivni neni k dispozici pro vyber.");return;}this.selectPageByIndex(next);}XGuiAssignClassToElement(this.name+"_idH"+idx,this.schemaPrefix+"tab_page_heading_inactive"+(i==0?"_1":""));this.hIIHandle(i,"i_off_d");if(this.pages[idx].afterPageDeactivate!=null){this.pages[idx].afterPageDeactivate();}}else{if(this.pages[idx].beforePageActivate!=null){if(this.pages[idx].beforePageActivate()==0){return;}}XGuiAssignClassToElement(this.name+"_idH"+idx,this.schemaPrefix+"tab_page_heading"+(i==0?"_1":""));
this.hIIHandle(i,"a_off_d");if(this.pages[idx].afterPageActivate!=null){this.pages[idx].afterPageActivate();}}this.pages[idx].active=state;}else{if(this.pages[idx].active){if(this.pages[idx].beforePageDeactivate!=null){if(this.pages[idx].beforePageDeactivate()==0){return;}}if(this.pages[idx].selected){next=this.getNextActivePage(idx);if(next==-1){alert("XGuiPageSet.setPageByIndex: Stranku nelze zneaktivnit, je prave vybrana a jina aktivni neni k dispozici pro vyber.");return;}this.selectPageByIndex(next);
}XGuiAssignClassToElement(this.name+"_idH"+idx,this.schemaPrefix+"tab_page_heading_inactive"+(i==0?"_1":""));this.hIIHandle(i,"i_off_d");if(this.pages[idx].afterPageDeactivate!=null){this.pages[idx].afterPageDeactivate();}}else{if(this.pages[idx].beforePageActivate!=null){if(this.pages[idx].beforePageActivate()==0){return;}}XGuiAssignClassToElement(this.name+"_idH"+idx,this.schemaPrefix+"tab_page_heading"+(i==0?"_1":""));this.hIIHandle(i,"a_off_d");if(this.pages[idx].afterPageActivate!=null){this.pages[idx].afterPageActivate();
}}this.pages[idx].active=(state);}}}else{alert("XGuiPageSet.setPageByIndex: stranka s indexem "+idx+" nenalezena!");}};this.hIIHandle=function(idx,namePart){if(this.imaged){if(this.pages[idx].iconName!=undefined){XGuiAssignClassToElement(this.name+"_idH"+idx+"_img",this.pages[idx].iconName+"_"+namePart);}else{XGuiAssignClassToElement(this.name+"_idH"+idx+"_img","tph_img_"+this.schemaPrefix+namePart);}}};this.onMouseOverHeadingByName=function(name){var i;for(i=0;i<this.pages.length;i++){if(this.pages[i].name==name){if(this.pages[i].active==true){if(this.pages[i].selected==false){XGuiAssignClassToElement(this.name+"_idH"+i,this.schemaPrefix+"tab_page_heading_enlighted"+(i==0?"_1":""));
this.hIIHandle(i,"a_off_l");XGuiAssignClassToElement(this.name+"_idP"+i,this.schemaPrefix+"tab_page_content");}}return;}}alert('XGuiPageSet.onMouseOverHeadingByName: "'+name+'" nenalezeno!');};this.onMouseOutOfHeadingByName=function(name){var i;for(i=0;i<this.pages.length;i++){if(this.pages[i].name==name){if(this.pages[i].active==true){if(this.pages[i].selected==false){XGuiAssignClassToElement(this.name+"_idH"+i,this.schemaPrefix+"tab_page_heading"+(i==0?"_1":""));this.hIIHandle(i,"a_off_d");XGuiAssignClassToElement(this.name+"_idP"+i,this.schemaPrefix+"tab_page_content");
}}return;}}alert('XGuiPageSet.onMouseOutOfHeadingByName: "'+name+'" nenalezeno!');};this.onMouseOverHeadingByIndex=function(i){if(this.pages[i]==undefined){alert("XGuiPageSet.onMouseOverHeadingByIndex: stranka s indexem "+i+" nenalezena!");}else{if(this.pages[i].active==true){if(this.pages[i].selected==false){XGuiAssignClassToElement(this.name+"_idH"+i,this.schemaPrefix+"tab_page_heading_enlighted"+(i==0?"_1":""));this.hIIHandle(i,"a_off_l");XGuiAssignClassToElement(this.name+"_idP"+i,this.schemaPrefix+"tab_page_content");
}}}};this.onMouseOutOfHeadingByIndex=function(i){if(this.pages[i]==undefined){alert("XGuiPageSet.onMouseOutOfHeadingByIndex: stranka s indexem "+i+" nenalezena!");}else{if(this.pages[i].active==true){if(this.pages[i].selected==false){XGuiAssignClassToElement(this.name+"_idH"+i,this.schemaPrefix+"tab_page_heading"+(i==0?"_1":""));this.hIIHandle(i,"a_off_d");XGuiAssignClassToElement(this.name+"_idP"+i,this.schemaPrefix+"tab_page_content");}}}};this.onMouseClickOnHeadingByIndex=function(i){if(this.pages[i]==undefined){alert("XGuiPageSet.onMouseClickOnHeadingByIndex: stranka s indexem "+i+" nenalezena!");
}else{if(this.pages[i].active==true){if(this.pages[i].selected==false){this.selectPageByIndex(i);}}}return false;};this.onMouseClickOnHeadingByName=function(name){var i;var clicked=0;for(i=0;i<this.pages.length;i++){if(this.pages[i].name==name){if(this.pages[i].active==true){if(this.pages[i].selected==false){this.selectPageByIndex(i);}}return;}}if(!clicked){alert('XGuiPageSet.onMouseClickOnHeadingByName: "'+name+'" nenalezeno!');}return false;};this.initPageSetByName=function(name,cooked){var i;var initialized=0;
for(i=0;i<this.pages.length;i++){if(this.pages[i].active==false){XGuiAssignClassToElement(this.name+"_idH"+i,this.schemaPrefix+"tab_page_heading_inactive"+(i==0?"_1":""));this.hIIHandle(i,"i_off_d");}}this.setSpacers();if(cooked==undefined){if(this.cooked==true){cooked=true;}else{cooked=false;}}if(cooked){if((cookiesContainer.tabPagesAA)&&(cookiesContainer.tabPagesAA[this.name])){if((this.pages[Number(cookiesContainer.tabPagesAA[this.name])])&&(this.pages[Number(cookiesContainer.tabPagesAA[this.name])].active==true)){this.selectPageByIndex(cookiesContainer.tabPagesAA[this.name],true);
return;}else{alert("XGuiPageSet.initPageSetByName: nelze inicializovat pageSet podle nastaveni v cookies, zadana stranka neni aktivni nebo neexistuje, implicitne bude vybrana prvni stranka v setu...");}}}if(name==undefined){for(i=0;i<this.pages.length;i++){if(this.pages[i].active==true){this.selectPageByName(this.pages[i].name,true);initialized=1;break;}}if(!initialized){alert("XGuiPageSet.initPageSetByName: nelze inicializovat pageSet, zadna stranka neni aktivni!");}}else{for(i=0;i<this.pages.length;
i++){if(this.pages[i].name==name){if(this.pages[i].active==true){this.selectPageByName(name,true);initialized=1;break;}else{alert("XGuiPageSet.initPageSetByName: nelze inicializovat pageSet, zadana stranka neni aktivni!");return;}}}if(!initialized){alert("XGuiPageSet.initPageSetByName: nelze inicializovat pageSet, zadana stranka nebyla nalezena!");}}};this.initPageSetByIndex=function(idx,cooked){var i;var initialized=0;var headingToSetInactiveCss;for(i=0;i<this.pages.length;i++){if(this.pages[i].active==false){XGuiAssignClassToElement(this.name+"_idH"+i,this.schemaPrefix+"tab_page_heading_inactive"+(i==0?"_1":""));
this.hIIHandle(i,"i_off_d");}}this.setSpacers();if(cooked==undefined){if(this.cooked==true){cooked=true;}else{cooked=false;}}if(cooked){if((cookiesContainer.tabPagesAA)&&(cookiesContainer.tabPagesAA[this.name])){if((this.pages[Number(cookiesContainer.tabPagesAA[this.name])])&&(this.pages[Number(cookiesContainer.tabPagesAA[this.name])].active==true)){this.selectPageByIndex(cookiesContainer.tabPagesAA[this.name],true);return;}else{alert("XGuiPageSet.initPageSetByName: nelze inicializovat pageSet podle nastaveni v cookies, zadana stranka neni aktivni nebo neexistuje, implicitne bude vybrana prvni stranka v setu...");
}}}if(idx==undefined){for(i=0;i<this.pages.length;i++){if(this.pages[i].active==true){this.selectPageByName(this.pages[i].name,true);initialized=1;break;}}if(!initialized){alert("XGuiPageSet.initPageSetByIndex: nelze inicializovat pageSet, zadna stranka neni aktivni!");}}else{if(this.pages[idx]!=undefined){if(this.pages[idx].active==true){this.selectPageByName(this.pages[idx].name,true);initialized=1;}else{alert("XGuiPageSet.initPageSetByIndex: nelze inicializovat pageSet, zadana stranka neni aktivni!");
return;}}else{alert("XGuiPageSet.initPageSetByIndex: nelze inicializovat pageSet, zadana stranka nebyla nalezena!");return;}if(!initialized){alert("XGuiPageSet.initPageSetByIndex: nelze inicializovat pageSet, zadana stranka nebyla nalezena!");}}};this.initPageSetByURLHash=function(fallbackName,cooked){for(var i=0;i<this.pages.length;i++){if(location.hash.indexOf(this.pages[i].name)==1){this.selectPageByIndex(i);return;}}if(this.pages.length!=0){if((fallbackName!=undefined)&&(fallbackName!=null)){this.selectPageByName(fallbackName,cooked);
}else{this.selectPageByIndex(0,cooked);}}};this.browsePageSet=function(textarea){var i;var txt="";textarea.value="";txt=this.name+" ("+this.pages.length+" pages)\n-------------------------------\n";txt=txt+this.name+".name = "+this.name+"\n";txt=txt+this.name+".selectedIndex = "+this.selectedIndex+"\n";txt=txt+this.name+".schemaPrefix = "+this.schemaPrefix+"\n";txt=txt+this.name+".cooked = "+this.cooked+"\n";txt=txt+this.name+".maxHeight = "+this.maxHeight+"\n";txt=txt+this.name+".imaged = "+this.imaged+"\n";
txt=txt+"\nselected page:\n-------------------------------\n";txt=txt+this.name+".selected.name = "+this.selected.name+"\n";txt=txt+this.name+".selected.active = "+this.selected.active+"\n";txt=txt+this.name+".selected.iconName = "+this.selected.iconName+"\n";txt=txt+this.name+".selected.selected = "+this.selected.selected+"\n";txt=txt+this.name+".selected.pageSet.name = "+this.selected.pageSet.name+"\n";txt=txt+"\npages:\n-------------------------------\n";for(i=0;i<this.pages.length;i++){txt=txt+"\n"+i+": name = "+this.pages[i].name+"\n";
txt=txt+"   active = "+this.pages[i].active+"\n";txt=txt+"   iconName = "+this.pages[i].iconName+"\n";txt=txt+"   selected = "+this.pages[i].selected+"\n";txt=txt+"   pageSet.name = "+this.pages[i].pageSet.name+"\n";if(this.pages[i].beforePageSelect!=null){txt=txt+"   --> beforePageSelect IS SET\n";}if(this.pages[i].afterPageSelect!=null){txt=txt+"   --> afterPageSelect IS SET\n";}if(this.pages[i].beforePageActivate!=null){txt=txt+"   --> beforePageActivate IS SET\n";}if(this.pages[i].afterPageActivate!=null){txt=txt+"   --> afterPageActivate IS SET\n";
}if(this.pages[i].beforePageDeactivate!=null){txt=txt+"   --> beforePageDeactivate IS SET\n";}if(this.pages[i].afterPageDeactivate!=null){txt=txt+"   --> afterPageDeactivate IS SET\n";}}textarea.value=txt;};}function XGuiDownClick(cookiesContainer,name,schemaPrefix,initState,isActive,isCooked,isImaged,groupDispatcher,iconName){this.cookiesContainer=cookiesContainer;this.name=name;this.schemaPrefix=schemaPrefix;if(initState==undefined){this.state=false;}else{this.state=initState;}if(isActive==undefined){this.active=true;
}else{this.active=isActive;}if(isCooked==undefined){this.cooked=true;}else{this.cooked=isCooked;}if(isImaged==undefined){this.imaged=true;}else{this.imaged=isImaged;}if(groupDispatcher==undefined){this.groupDispatcher=null;}else{this.groupDispatcher=groupDispatcher;}if(iconName==undefined){this.iconName=null;}else{this.iconName=iconName;}this.DCSwitch=function(mouseClicked){if(this.active==true){if(this.state==true){this.DCTurnOff(mouseClicked);}else{this.DCTurnOn(mouseClicked);}}};this.hIIHandle=function(namePart){XGuiAssignClassToElement(this.name+"_id_h",this.schemaPrefix+"DCHeading_"+namePart);
if(this.imaged){if(this.iconName!=undefined){XGuiAssignClassToElement(this.name+"_id_img",this.iconName+"_"+namePart);}else{XGuiAssignClassToElement(this.name+"_id_img","tph_img_"+this.schemaPrefix+namePart);}}};this.DCTurnOn=function(mouseClicked,forced){if(forced==undefined){forced=false;}if(mouseClicked==undefined){mouseClicked=false;}if(this.active==true){if(forced||(this.state==false)){XGuiSetParameter(this.name+"_id_c","display","block");if(mouseClicked==true){this.hIIHandle("a_on_l");}else{this.hIIHandle("a_on_d");
}this.state=true;if((this.cookiesContainer)&&(this.cooked)&&(!forced)){if(this.state){this.cookiesContainer.setValue("dcCookie",this.name,1);}else{this.cookiesContainer.setValue("dcCookie",this.name,0);}this.cookiesContainer.flushSet("dcCookie");}}}else{if(!forced){alert("XGuiDownClick.DCSwitch: Rozklikavac neni aktivni, nelze ho zapnout...");}}};this.DCTurnOff=function(mouseClicked,forced){if(forced==undefined){forced=false;}if(mouseClicked==undefined){mouseClicked=false;}if((forced)||(this.active==true)){if(forced||(this.state==true)){XGuiSetParameter(this.name+"_id_c","display","none");
if(mouseClicked==true){this.hIIHandle("a_off_l");}else{this.hIIHandle("a_off_d");}this.state=false;if((this.cookiesContainer)&&(this.cooked)&&(!forced)){if(this.state){this.cookiesContainer.setValue("dcCookie",this.name,1);}else{this.cookiesContainer.setValue("dcCookie",this.name,0);}this.cookiesContainer.flushSet("dcCookie");}}}else{if(!forced){alert("XGuiDownClick.DCSwitch: Rozklikavac neni aktivni, nelze ho vypnout...");}}};this.DCOnMouseOver=function(){if(this.active==true){if(this.state==true){this.hIIHandle("a_on_l");
}else{this.hIIHandle("a_off_l");}}};this.DCOnMouseOut=function(){if(this.active==true){if(this.state==true){this.hIIHandle("a_on_d");}else{this.hIIHandle("a_off_d");}}};this.DCActivate=function(forced){if(forced==undefined){forced=false;}if((forced)||(this.active==false)){if(this.state==true){this.hIIHandle("a_on_d");}else{this.hIIHandle("a_off_d");}this.active=true;}};this.DCInactivate=function(forced){if(forced==undefined){forced=false;}if((forced)||(this.active==true)){if(this.state==true){this.hIIHandle("i_on_d");
}else{this.hIIHandle("i_off_d");}this.active=false;}};this.DCInit=function(){if((this.cooked)&&(this.cookiesContainer.downClicksAA)&&(this.cookiesContainer.downClicksAA[this.name])){if(this.cookiesContainer.downClicksAA[this.name]==1){this.DCTurnOn(false,true);}else{this.DCTurnOff(false,true);}}else{if(this.state){this.DCTurnOn(false,true);}else{this.DCTurnOff(false,true);}}if(this.active){this.DCActivate(true);}else{this.DCInactivate(true);}};if(this.groupDispatcher==null){this.DCInit();}else{this.groupDispatcher.DCGRegister(this);
}}function XGuiDCG(cookiesContainer,name,selectedIndex,isCooked){this.dCs=new Array;this.cookiesContainer=cookiesContainer;this.name=name;if(selectedIndex==undefined){this.selectedIndex=-1;}else{this.selectedIndex=selectedIndex;}if(isCooked==undefined){this.cooked=false;}else{this.cooked=isCooked;}this.DCGRegister=function(dc){this.dCs[this.dCs.length]=dc;};this.DCGInfo=function(){var out="";for(var i=0;i<this.dCs.length;i++){out+="\n"+this.dCs[i].name+" | "+this.dCs[i].state+" | "+this.dCs[i].active;
}alert("DCGInfo: --------------\nName: "+this.name+"\nselectedIndex: "+this.selectedIndex+"\ncookiesContainer: "+this.cookiesContainer+"\ncooked: "+this.cooked+"\ndCs (count: "+this.dCs.length+"): --------------"+out);};this.DCGSwitchByName=function(whichNameToSwitchOn,mouseClicked){if(mouseClicked==undefined){mouseClicked=false;}for(var i=0;i<this.dCs.length;i++){if((this.dCs[i].name==whichNameToSwitchOn)&&(this.dCs[i].active)){if(this.selectedIndex!=-1){this.dCs[this.selectedIndex].DCTurnOff(mouseClicked);
}this.dCs[i].DCTurnOn(mouseClicked);this.selectedIndex=i;if((this.cookiesContainer)&&(this.cooked)){this.cookiesContainer.setValue("dcgCookie",this.name,this.selectedIndex);this.cookiesContainer.flushSet("dcgCookie");}break;}}};this.DCGInit=function(){if((this.cooked)&&(this.cookiesContainer.downClickGroupersAA)&&(this.cookiesContainer.downClickGroupersAA[this.name])){for(var i=0;i<this.dCs.length;i++){if(this.cookiesContainer.downClickGroupersAA[this.name]==i){this.dCs[i].DCTurnOn(false,true);this.selectedIndex=i;
}else{this.dCs[i].DCTurnOff(false,true);}if(this.dCs[i].active){this.dCs[i].DCActivate(true);}else{this.dCs[i].DCInactivate(true);}}}else{for(var i=0;i<this.dCs.length;i++){if(i==this.selectedIndex){this.dCs[i].DCTurnOn(false,true);}else{this.dCs[i].DCTurnOff(false,true);}if(this.dCs[i].active){this.dCs[i].DCActivate(true);}else{this.dCs[i].DCInactivate(true);}}}};}if(XGuiGCC==undefined){var XGuiGCC=new XGuiCookiesContainer();XGuiGCC.init("tsCookie");}var fdTableSort={regExp_Currency:/^[�$���]/,regExp_Number:/^(\-)?[0-9]+(\.[0-9]*)?$/,pos:-1,uniqueHash:1,thNode:null,tableId:null,tableCache:{},tmpCache:{},
/*@cc_on
        /*@if (@_win32)
        colspan:                "colSpan",
        rowspan:                "rowSpan",
        @else @*/
colspan:"colspan",rowspan:"rowspan",
/*@end
        @*/
addEvent:function(obj,type,fn,tmp){tmp||(tmp=true);
if(obj.attachEvent){obj["e"+type+fn]=fn;obj[type+fn]=function(){obj["e"+type+fn](window.event);};obj.attachEvent("on"+type,obj[type+fn]);}else{obj.addEventListener(type,fn,true);}},removeEvent:function(obj,type,fn,tmp){tmp||(tmp=true);try{if(obj.detachEvent){obj.detachEvent("on"+type,obj[type+fn]);obj[type+fn]=null;}else{obj.removeEventListener(type,fn,true);}}catch(err){}},stopEvent:function(e){e=e||window.event;if(e.stopPropagation){e.stopPropagation();e.preventDefault();}
/*@cc_on@*/
/*@if(@_win32)
                e.cancelBubble = true;
                e.returnValue = false;
                /*@end@*/
return false;
},initEvt:function(e){fdTableSort.init(false);},init:function(tableId){if(!document.getElementsByTagName||!document.createElement||!document.getElementById){return;}var tables=tableId&&document.getElementById(tableId)?new Array(document.getElementById(tableId)):document.getElementsByTagName("table");var workArr,sortable,headers,thtext,aclone,a,span,columnNum,noArrow,colCnt,cel,allRowArr,rowArr,sortableTable,celCount,colspan,rowspan,rowLength;var onLoadTables=[];a=document.createElement("a");a.href="#";
a.onkeypress=fdTableSort.keyWrapper;span=document.createElement("span");for(var k=0,tbl;tbl=tables[k];k++){if(tbl.id){fdTableSort.removeTableCache(tbl.id);}if(tbl.id){fdTableSort.removeTmpCache(tbl.id);}allRowArr=tbl.getElementsByTagName("thead").length?tbl.getElementsByTagName("thead")[0].getElementsByTagName("tr"):tbl.getElementsByTagName("tr");rowArr=[];sortableTable=false;for(var i=0,tr;tr=allRowArr[i];i++){if(tr.getElementsByTagName("td").length||!tr.getElementsByTagName("th").length){continue;
}rowArr[rowArr.length]=tr.getElementsByTagName("th");for(var j=0,th;th=rowArr[rowArr.length-1][j];j++){if(th.className.search(/sortable/)!=-1){sortableTable=true;}}}if(!sortableTable){continue;}if(!tbl.id){tbl.id="fd-table-"+fdTableSort.uniqueHash++;}sortable=false;if(XGuiGCC.tableSortsAA[tbl.id]&&XGuiGCC.tableSortsAA[tbl.id][0]&&XGuiGCC.tableSortsAA[tbl.id][1]&&(tbl.className.search(/sortable-onload-cookies/)!=-1)){columnNum=XGuiGCC.tableSortsAA[tbl.id][0];reverse=(XGuiGCC.tableSortsAA[tbl.id][1]==1?true:false);
}else{columnNum=tbl.className.search(/sortable-onload-([0-9]+)/)!=-1?parseInt(tbl.className.match(/sortable-onload-([0-9]+)/)[1])-1:-1;reverse=tbl.className.search(/sortable-onload-([0-9]+)-reverse/)!=-1;}showArrow=tbl.className.search(/no-arrow/)==-1;rowLength=rowArr[0].length;for(var c=0;c<rowArr[0].length;c++){if(rowArr[0][c].getAttribute(fdTableSort.colspan)&&rowArr[0][c].getAttribute(fdTableSort.colspan)>1){rowLength=rowLength+(rowArr[0][c].getAttribute(fdTableSort.colspan)-1);}}workArr=new Array(rowArr.length);
for(var c=rowArr.length;c--;){workArr[c]=new Array(rowLength);}for(var c=0;c<workArr.length;c++){celCount=0;for(var i=0;i<rowLength;i++){if(!workArr[c][i]){cel=rowArr[c][celCount];colspan=(cel.getAttribute(fdTableSort.colspan)>1)?cel.getAttribute(fdTableSort.colspan):1;rowspan=(cel.getAttribute(fdTableSort.rowspan)>1)?cel.getAttribute(fdTableSort.rowspan):1;for(var t=0;((t<colspan)&&((i+t)<rowLength));t++){for(var n=0;((n<rowspan)&&((c+n)<workArr.length));n++){workArr[(c+n)][(i+t)]=cel;}}if(++celCount==rowArr[c].length){break;
}}}}for(var c=0;c<workArr.length;c++){for(var i=0;i<workArr[c].length;i++){if(workArr[c][i].className.search("fd-column-")==-1&&workArr[c][i].className.search("sortable")!=-1){workArr[c][i].className=workArr[c][i].className+" fd-column-"+i;}if(workArr[c][i].className.match("sortable")){workArr[c][i].className=workArr[c][i].className.replace(/forwardSort|reverseSort/,"");if(i==columnNum){sortable=workArr[c][i];}thtext=fdTableSort.getInnerText(workArr[c][i]);if(workArr[c][i].getElementsByTagName&&workArr[c][i].getElementsByTagName("a").length){workArr[c][i].getElementsByTagName("a")[0].onclick=workArr[c][i].getElementsByTagName("a")[0].onkeypress=null;
}while(workArr[c][i].firstChild){workArr[c][i].removeChild(workArr[c][i].firstChild);}aclone=a.cloneNode(true);aclone.appendChild(document.createTextNode(thtext));aclone.title="Setridit podle \u201c"+thtext+"\u201d";aclone.onclick=workArr[c][i].onclick=fdTableSort.clickWrapper;workArr[c][i].appendChild(aclone);if(showArrow){workArr[c][i].appendChild(span.cloneNode(false));}workArr[c][i].className=workArr[c][i].className.replace(/fd-identical|fd-not-identical/,"");fdTableSort.disableSelection(workArr[c][i]);
aclone=null;}}}fdTableSort.tmpCache[tbl.id]={cols:rowLength,headers:workArr};workArr=null;if(sortable){onLoadTables[onLoadTables.length]=sortable;if(reverse){onLoadTables[onLoadTables.length]=sortable;}}}for(var i=0,thNode;thNode=onLoadTables[i];i++){fdTableSort.thNode=thNode;fdTableSort.initSort(false,true);}aclone=a.onkeypress=a=span=workArr=sortable=thNode=onLoadTables=tbl=allRowArr=rowArr=null;},disableSelection:function(element){element.onselectstart=function(){return false;};element.unselectable="on";
element.style.MozUserSelect="none";},clickWrapper:function(e){e=e||window.event;if(fdTableSort.thNode==null){var targ=this;while(targ.tagName.toLowerCase()!="th"){targ=targ.parentNode;}fdTableSort.thNode=targ;fdTableSort.addSortActiveClass();setTimeout(fdTableSort.initSort,5,false,false);}return fdTableSort.stopEvent(e);},keyWrapper:function(e){e=e||window.event;var kc=e.keyCode!=null?e.keyCode:e.charCode;if(kc==13){var targ=this;while(targ.tagName.toLowerCase()!="th"){targ=targ.parentNode;}fdTableSort.thNode=targ;
fdTableSort.addSortActiveClass();setTimeout(fdTableSort.initSort,5,false,false);return fdTableSort.stopEvent(e);}return true;},jsWrapper:function(tableid,colNum){if(!fdTableSort.tmpCache[tableid]||fdTableSort.tmpCache[tableid].headers[0].length<=colNum||fdTableSort.tmpCache[tableid].headers[0][colNum].className.search(/fd-column/)==-1){return false;}fdTableSort.thNode=fdTableSort.tmpCache[tableid].headers[0][colNum];fdTableSort.initSort(true,false);},addSortActiveClass:function(){if(fdTableSort.thNode==null){return;
}fdTableSort.addClass(fdTableSort.thNode,"sort-active");fdTableSort.addClass(document.getElementsByTagName("body")[0],"sort-active");var tableElem=fdTableSort.thNode;while(tableElem.tagName.toLowerCase()!="table"&&tableElem.parentNode){tableElem=tableElem.parentNode;}if("sortInitiatedCallback-"+tableElem.id in window){window["sortInitiatedCallback-"+tableElem.id]();}else{if("sortInitiatedCallback" in window){sortInitiatedCallback(tableElem.id);}}},removeSortActiveClass:function(){fdTableSort.removeClass(fdTableSort.thNode,"sort-active");
fdTableSort.removeClass(document.getElementsByTagName("body")[0],"sort-active");var tableElem=fdTableSort.thNode;while(tableElem.tagName.toLowerCase()!="table"&&tableElem.parentNode){tableElem=tableElem.parentNode;}if("sortCompleteCallback-"+tableElem.id in window){window["sortCompleteCallback-"+tableElem.id]();}else{if("sortCompleteCallback" in window){sortCompleteCallback(tableElem.id);}}},addClass:function(e,c){if(new RegExp("(^|\\s)"+c+"(\\s|$)").test(e.className)){return;}e.className+=(e.className?" ":"")+c;
},removeClass:function(e,c){e.className=!c?"":e.className.replace(new RegExp("(^|\\s*\\b[^-])"+c+"($|\\b(?=[^-]))","g"),"");},prepareTableData:function(table){var data=[];var start=table.getElementsByTagName("tbody");start=start.length?start[0]:table;var trs=start.getElementsByTagName("tr");var ths=table.getElementsByTagName("th");var numberOfRows=trs.length;var numberOfCols=fdTableSort.tmpCache[table.id].cols;var data=[];var identical=new Array(numberOfCols);var identVal=new Array(numberOfCols);
for(var tmp=0;tmp<numberOfCols;tmp++){identical[tmp]=true;}var tr,td,th,txt,tds,col,row;var re=new RegExp(/fd-column-([0-9]+)/);var rowCnt=0;var sortableColumnNumbers=[];for(var tmp=0,th;th=ths[tmp];tmp++){if(th.className.search(re)==-1){continue;}sortableColumnNumbers[sortableColumnNumbers.length]=th;}for(row=0;row<numberOfRows;row++){tr=trs[row];if(tr.parentNode!=start||tr.getElementsByTagName("th").length||(tr.parentNode.tagName&&tr.parentNode.tagName.toLowerCase()=="tfoot")){continue;}data[rowCnt]=[];
tds=tr.getElementsByTagName("td");for(var tmp=0,th;th=sortableColumnNumbers[tmp];tmp++){col=th.className.match(re)[1];td=tds[col];txt=fdTableSort.getInnerText(td)+" ";txt=txt.replace(/^\s+/,"").replace(/\s+$/,"");if(th.className.search(/sortable-date/)!=-1){if(th.className.search(/sortable-datetime-dmyhms/)!=-1){txt=fdTableSort.dateTimeFormat(txt);}else{txt=fdTableSort.dateFormat(txt,th.className.search(/sortable-date-dmy/)!=-1);}}else{if(th.className.search(/sortable-numeric|sortable-currency/)!=-1){txt=parseFloat(txt.replace(/[^0-9\.\-]/g,""));
if(isNaN(txt)){txt="";}}else{if(th.className.search(/sortable-text/)!=-1){txt=txt.toLowerCase();}else{if(th.className.search(/sortable-keep/)!=-1){txt=rowCnt;}else{if(th.className.search(/sortable-([a-zA-Z\_]+)/)!=-1){if((th.className.match(/sortable-([a-zA-Z\_]+)/)[1]+"PrepareData") in window){txt=window[th.className.match(/sortable-([a-zA-Z\_]+)/)[1]+"PrepareData"](td,txt);}}else{if(txt!=""){fdTableSort.removeClass(th,"sortable");if(fdTableSort.dateFormat(txt)!=0){fdTableSort.addClass(th,"sortable-date");
txt=fdTableSort.dateFormat(txt);}else{if(txt.search(fdTableSort.regExp_Number)!=-1||txt.search(fdTableSort.regExp_Currency)!=-1){fdTableSort.addClass(th,"sortable-numeric");txt=parseFloat(txt.replace(/[^0-9\.\-]/g,""));if(isNaN(txt)){txt="";}}else{fdTableSort.addClass(th,"sortable-text");txt=txt.toLowerCase();}}}}}}}}if(rowCnt>0&&identical[col]&&identVal[col]!=txt){identical[col]=false;}identVal[col]=txt;data[rowCnt][col]=txt;}data[rowCnt][numberOfCols]=tr;rowCnt++;}var colStyle=table.className.search(/colstyle-([\S]+)/)!=-1?table.className.match(/colstyle-([\S]+)/)[1]:false;
var rowStyle=table.className.search(/rowstyle-([\S]+)/)!=-1?table.className.match(/rowstyle-([\S]+)/)[1]:false;fdTableSort.tableCache[table.id]={data:data,identical:identical,colStyle:colStyle,rowStyle:rowStyle,noArrow:table.className.search(/no-arrow/)!=-1};sortableColumnNumbers=data=tr=td=th=trs=identical=identVal=null;},onUnload:function(){for(tbl in fdTableSort.tableCache){fdTableSort.removeTableCache(tbl);}for(tbl in fdTableSort.tmpCache){fdTableSort.removeTmpCache(tbl);}fdTableSort.removeEvent(window,"load",fdTableSort.initEvt);
fdTableSort.removeEvent(window,"unload",fdTableSort.onUnload);fdTableSort.tmpCache=fdTableSort.tableCache=null;},removeTableCache:function(tableId){if(!(tableId in fdTableSort.tableCache)){return;}var data=fdTableSort.tableCache[tableId].data;for(var i=0,row;row=data[i];i++){row[row.length-1]=null;}data=row=null;fdTableSort.tableCache[tableId]=null;delete fdTableSort.tableCache[tableId];var tbl=document.getElementById(tableId);if(!tbl){return;}var ths=tbl.getElementsByTagName("th");var a;for(var i=0,th;
th=ths[i];i++){a=th.getElementsByTagName("a");if(a.length){a[0].onkeypress=a[0].onclick=null;}th.onclick=th.onselectstart=th=a=null;}},removeTmpCache:function(tableId){if(!(tableId in fdTableSort.tmpCache)){return;}var headers=fdTableSort.tmpCache[tableId].headers;var a;for(var i=0,row;row=headers[i];i++){for(var j=0,th;th=row[j];j++){a=th.getElementsByTagName("a");if(a.length){a[0].onkeypress=a[0].onclick=null;}th.onclick=th.onselectstart=th=a=null;}}fdTableSort.tmpCache[tableId]=null;delete fdTableSort.tmpCache[tableId];
},initSort:function(noCallback,onInit){var span;var thNode=fdTableSort.thNode;var tableElem=fdTableSort.thNode;while(tableElem.tagName.toLowerCase()!="table"&&tableElem.parentNode){tableElem=tableElem.parentNode;}if(!tableElem.id||!(tableElem.id in fdTableSort.tableCache)){fdTableSort.prepareTableData(tableElem);}fdTableSort.tableId=tableElem.id;fdTableSort.pos=thNode.className.match(/fd-column-([0-9]+)/)[1];var dataObj=fdTableSort.tableCache[tableElem.id];var lastPos=dataObj.pos?dataObj.pos.className.match(/fd-column-([0-9]+)/)[1]:-1;
var data=dataObj.data;var colStyle=dataObj.colStyle;var rowStyle=dataObj.rowStyle;var len1=data.length;var len2=data.length>0?data[0].length-1:0;var identical=dataObj.identical[fdTableSort.pos];var noArrow=dataObj.noArrow;if(lastPos!=fdTableSort.pos&&lastPos!=-1){var th=dataObj.pos;fdTableSort.removeClass(th,"(forwardSort|reverseSort)");if(!noArrow){span=th.getElementsByTagName("span")[0];while(span.firstChild){span.removeChild(span.firstChild);}}}var classToAdd="forwardSort";if((lastPos==fdTableSort.pos&&!identical)||(thNode.className.search(/sortable-keep/)!=-1&&lastPos==-1)){data.reverse();
classToAdd=thNode.className.search(/reverseSort/)!=-1?"forwardSort":"reverseSort";if(thNode.className.search(/sortable-keep/)!=-1&&lastPos==-1){fdTableSort.tableCache[tableElem.id].pos=thNode;}}else{fdTableSort.tableCache[tableElem.id].pos=thNode;if(!identical){if(thNode.className.match(/sortable-(numeric|currency|date|keep)/)){data.sort(fdTableSort.sortNumeric);}else{if(thNode.className.match("sortable-text")){data.sort(fdTableSort.sortText);}else{if(thNode.className.search(/sortable-([a-zA-Z\_]+)/)!=-1&&thNode.className.match(/sortable-([a-zA-Z\_]+)/)[1] in window){data.sort(window[thNode.className.match(/sortable-([a-zA-Z\_]+)/)[1]]);
}}}}}fdTableSort.removeClass(thNode,"(forwardSort|reverseSort)");fdTableSort.addClass(thNode,classToAdd);if(!noArrow){var arrow=thNode.className.search(/forwardSort/)!=-1?" \u2193":" \u2191";span=thNode.getElementsByTagName("span")[0];while(span.firstChild){span.removeChild(span.firstChild);}span.appendChild(document.createTextNode(arrow));}if(!rowStyle&&!colStyle&&identical){if(!noCallback){fdTableSort.removeSortActiveClass();}fdTableSort.thNode=null;return;}var hook=tableElem.getElementsByTagName("tbody");
hook=hook.length?hook[0]:tableElem;var tr,tds;var rowReg=rowStyle?new RegExp("(^|\\s*\\b[^-])"+rowStyle+"($|\\b(?=[^-]))","g"):false;var colReg=colStyle?new RegExp("(^|\\s*\\b[^-])"+colStyle+"($|\\b(?=[^-]))","g"):false;for(var i=0;i<len1;i++){tr=data[i][len2];if(colStyle){tds=tr.getElementsByTagName("td");if(lastPos!=-1){tds[lastPos].className=tds[lastPos].className.replace(colReg,"");}fdTableSort.addClass(tds[fdTableSort.pos],colStyle);tds=null;}if(!identical){if(rowStyle){if(i%2){fdTableSort.addClass(tr,rowStyle);
}else{tr.className=tr.className.replace(rowReg,"");}}hook.removeChild(tr);hook.appendChild(tr);}tr=null;}if(!noCallback){fdTableSort.removeSortActiveClass();}if(!onInit&&(tableElem.className.search(/sortable-onload-cookies/)!=-1)){if(XGuiGCC==undefined){alert("tablesort::initSort: cookie saving - unable to save cookie, Global Cookie Container is not defined...\ncookie value: {"+tableElem.id+", "+fdTableSort.pos+", "+((fdTableSort.thNode.className.search(/forwardSort/)==-1)?"true":"false")+"}");}else{XGuiGCC.setValue("tsCookie",tableElem.id,fdTableSort.pos,((fdTableSort.thNode.className.search(/forwardSort/)==-1)?1:0));
XGuiGCC.flushSet("tsCookie");}}fdTableSort.thNode=hook=null;},getInnerText:function(el){if(typeof el=="string"||typeof el=="undefined"){return el;}if(el.innerText){return el.innerText;}var txt="",i;for(i=el.firstChild;i;i=i.nextSibling){if(i.nodeType==3){txt+=i.nodeValue;}else{if(i.nodeType==1){txt+=fdTableSort.getInnerText(i);}}}return txt;},dateFormat:function(dateIn,favourDMY){var dateTest=[{regExp:/^(0?[1-9]|1[012])([- \/.])(0?[1-9]|[12][0-9]|3[01])([- \/.])((\d\d)?\d\d)$/,d:3,m:1,y:5},{regExp:/^(0?[1-9]|[12][0-9]|3[01])([- \/.])(0?[1-9]|1[012])([- \/.])((\d\d)?\d\d)$/,d:1,m:3,y:5},{regExp:/^(\d\d\d\d)([- \/.])(0?[1-9]|1[012])([- \/.])(0?[1-9]|[12][0-9]|3[01])$/,d:5,m:3,y:1}];
var start;var cnt=0;var numFormats=dateTest.length;while(cnt<numFormats){start=(cnt+(favourDMY?numFormats+1:numFormats))%numFormats;if(dateIn.match(dateTest[start].regExp)){res=dateIn.match(dateTest[start].regExp);y=res[dateTest[start].y];m=res[dateTest[start].m];d=res[dateTest[start].d];if(m.length==1){m="0"+String(m);}if(d.length==1){d="0"+String(d);}if(y.length!=4){y=(parseInt(y)<50)?"20"+String(y):"19"+String(y);}return y+String(m)+d;}cnt++;}return 0;},dateTimeFormat:function(dateIn){var dateTest=[{regExp:/^(0?[1-9]|[12][0-9]|3[01])([- \/.])(0?[1-9]|1[012])([- \/.])((\d\d)?\d\d)([- \/.])((\d)?\d)([- \/.:])((\d)?\d)([- \/.:])((\d)?\d)$/,d:1,m:3,y:5,h:8,min:11,sec:14}];
var start;var cnt=0;var numFormats=dateTest.length;while(cnt<numFormats){start=(cnt+numFormats)%numFormats;if(dateIn.match(dateTest[start].regExp)){res=dateIn.match(dateTest[start].regExp);y=res[dateTest[start].y];m=res[dateTest[start].m];d=res[dateTest[start].d];h=res[dateTest[start].h];min=res[dateTest[start].min];sec=res[dateTest[start].sec];if(h.length==1){h="0"+String(h);}if(min.length==1){min="0"+String(min);}if(sec.length==1){sec="0"+String(sec);}if(m.length==1){m="0"+String(m);}if(d.length==1){d="0"+String(d);
}if(y.length!=4){y=(parseInt(y)<50)?"20"+String(y):"19"+String(y);}return y+String(m)+d+h+min+sec;}cnt++;}return 0;},sortDate:function(a,b){var aa=a[fdTableSort.pos];var bb=b[fdTableSort.pos];return aa-bb;},sortNumeric:function(a,b){var aa=a[fdTableSort.pos];var bb=b[fdTableSort.pos];if(aa==bb){return 0;}if(aa===""&&!isNaN(bb)){return -1;}if(bb===""&&!isNaN(aa)){return 1;}return aa-bb;},sortText:function(a,b){var aa=a[fdTableSort.pos];var bb=b[fdTableSort.pos];if(aa==bb){return 0;}if(aa<bb){return -1;
}return 1;}};function char2Diacritic(transDiacritic){var charDiacritic="\u00e1\u010d\u010f\u00e9\u00ed\u013a\u013e\u0148\u00f3\u00f4\u0155\u0159\u0161\u0165\u00fa\u016f\u00fd\u017e\u011b\u00e4\u00f6\u0171\u00eb";var numDiacritic="acdeillnoorrstuuyzeaoue";var tmpDiacritic="";var newDiacritic="";transDiacritic=transDiacritic.toLowerCase();for(i=0;i<transDiacritic.length;i++){if(charDiacritic.indexOf(transDiacritic.charAt(i))!=-1){tmpDiacritic+=numDiacritic.charAt(charDiacritic.indexOf(transDiacritic.charAt(i)))+"|";
}else{tmpDiacritic+=transDiacritic.charAt(i);}}return tmpDiacritic;}function localeTextPrepareData(tdNode,innerText){return char2Diacritic(innerText);}function localeText(a,b){var aa=a[fdTableSort.pos];var bb=b[fdTableSort.pos];if(aa==bb){return 0;}if(aa<bb){return -1;}return 1;}function getSpanInnerText(span){var _innerText=span.innerText;if(_innerText==undefined){_innerText=span.firstChild.nodeValue;}return _innerText;}function textInSpanPrepareData(tdNode,innerText){var span=tdNode.getElementsByTagName("span");
return getSpanInnerText(span[0]);}function textInSpan(a,b){var aa=a[fdTableSort.pos];var bb=b[fdTableSort.pos];if(aa==bb){return 0;}if(aa<bb){return -1;}return 1;}function localeTextInSpanPrepareData(tdNode,innerText){var span=tdNode.getElementsByTagName("span");return char2Diacritic(getSpanInnerText(span[0]));}function localeTextInSpan(a,b){var aa=a[fdTableSort.pos];var bb=b[fdTableSort.pos];if(aa==bb){return 0;}if(aa<bb){return -1;}return 1;}function numberInSpanPrepareData(tdNode,innerText){var span=tdNode.getElementsByTagName("span");
return parseInt(getSpanInnerText(span[0]));}function numberInSpan(a,b){var aa=a[fdTableSort.pos];var bb=b[fdTableSort.pos];return aa-bb;}function sortCompleteCallback(tableId){tablePaginater.showPage(tableId);}var tablePaginater={tableInfo:{},init:function(){var tables=document.getElementsByTagName("table");for(var t=0,tbl;tbl=tables[t];t++){if(!tbl.id||tbl.id==""||tbl.className.search(/paginate-([0-9]+)/)==-1||(tablePaginater.getTableRows(tbl.id).length<=tbl.className.match(/paginate-([0-9]+)/)[1])){continue;
}tablePaginater.tableInfo[tbl.id]={rowsPerPage:tbl.className.match(/paginate-([0-9]+)/)[1],currentPage:0};tablePaginater.showPage(tbl.id,0);tablePaginater.createPageinationList(tbl.id);}},addClass:function(e,c){if(new RegExp("(^|\\s)"+c+"(\\s|$)").test(e.className)){return;}e.className+=(e.className?" ":"")+c;},removeClass:function(e,c){e.className=!c?"":e.className.replace(new RegExp("(^|\\s*\\b[^-])"+c+"($|\\b(?=[^-]))","g"),"");},createPageinationList:function(tableId){var tbl=document.getElementById(tableId);
var br=document.createElement("br");var ul=document.createElement("ul");ul.className="tablePaginater";ul.id="paginateList-"+tableId;var ulc=ul.cloneNode(true);ulc.id="paginateList-"+tableId+"-clone";var rows=tablePaginater.getTableRows(tableId);var total=rows.length;var rowsPerPage;var pages=Math.max(1,Math.ceil(total/tablePaginater.tableInfo[tableId].rowsPerPage));var li=document.createElement("li");var a=document.createElement("a");a.href="#";var lic,ac;for(var i=0;i<pages;i++){lic=li.cloneNode(false);
ac=a.cloneNode(true);ac.title="View page "+(i+1);ac.appendChild(document.createTextNode(i+1));lic.onclick=a.onclick=tablePaginater.show;lic.appendChild(ac);if(i==0){lic.className="currentPage";}ul.appendChild(lic);lic=lic.cloneNode(true);lic.onclick=lic.getElementsByTagName("a")[0].onclick=tablePaginater.show;ulc.appendChild(lic);}if(tbl.nextSibling){tbl.parentNode.insertBefore(ul,tbl.nextSibling);tbl.parentNode.insertBefore(br,tbl.nextSibling);}else{tbl.parentNode.appendChild(ul);tbl.parentNode.appendChild(br);
}tbl.parentNode.insertBefore(ulc,tbl);},getTableRows:function(tableId){var rows=[];var tbl=document.getElementById(tableId);var tbody=tbl.getElementsByTagName("tbody");if(tbody&&tbody.length){tbody=tbody[0];rows=tbody.getElementsByTagName("tr");}else{var tmp=tbl.getElementsByTagName("tr");for(var i=tmp.length;i--;){if(tmp[i].getElementsByTagName("th")||tmp[i].parentNode.tagName=="TFOOT"){continue;}rows[rows.length]=tmp[i];}}return rows;},showPage:function(tableId,page){if(!(tableId in tablePaginater.tableInfo)){return;
}var tbl=document.getElementById(tableId);var rowsPerPage=tablePaginater.tableInfo[tableId].rowsPerPage;var rows=tablePaginater.getTableRows(tableId);page=typeof page=="undefined"?tablePaginater.tableInfo[tableId].currentPage:page;var min=rowsPerPage*page;var max=Number(min)+Number(rowsPerPage);var rowStyle=tbl.className.search(/rowstyle-([\S]+)/)!=-1?tbl.className.match(/rowstyle-([\S]+)/)[1]:false;var cnt=0;var len=rows.length;for(var i=0;i<len;i++){rows[i].style.display=(i>=min&&i<max)?"":"none";
if(rowsPerPage%2&&rowStyle&&i>=min&&i<max){tablePaginater.removeClass(rows[i],rowStyle);if(cnt++%2){tablePaginater.addClass(rows[i],rowStyle);}}}tablePaginater.tableInfo[tableId].currentPage=page;},show:function(e){var li=(this.tagName&&this.tagName=="A")?this.parentNode:this;var tableId=li.parentNode.id.replace("paginateList-","").replace("-clone","");var cnt=0;while(li.previousSibling){li=li.previousSibling;if(li.tagName&&li.tagName.toLowerCase()=="li"){cnt++;}}tablePaginater.showPage(tableId,cnt);
var ul=document.getElementById("paginateList-"+tableId);var ulc=document.getElementById("paginateList-"+tableId+"-clone");var i=0;while(ul.childNodes[i]){ul.childNodes[i].className=ulc.childNodes[i].className=i==cnt?"currentPage":"";i++;}return false;}};function initialZebraStripe(){var tables=document.getElementsByTagName("table");var rowStyle,start,trs;for(var k=0,table;table=tables[k];k++){if(table.className.search(/rowstyle-([\S]+)/)==-1){continue;}rowStyle=table.className.match(/rowstyle-([\S]+)/)[1];
start=table.getElementsByTagName("tbody");start=start.length?start[0]:table;trs=start.getElementsByTagName("tr");for(var i=0,tr;tr=trs[i];i++){if(tr.getElementsByTagName("th").length>0||(tr.parentNode&&tr.parentNode.tagName.toLowerCase()=="tfoot")){continue;}if(tr.className.search(/rowstyle-noStripMe/)>=0){continue;}if(i%2){fdTableSort.addClass(tr,rowStyle);}else{fdTableSort.removeClass(tr,rowStyle);}
/*@cc_on
                                /*@if (@_jscript_version >= 5)
                                // fdTableSort.addEvent(tr, "mouseover", function() { fdTableSort.addClass(this, this.className.search("alternative") == -1 ? "ieRowHover" : "ieRowHoverAlt"); });
                                // fdTableSort.addEvent(tr, "mouseout",  function() { fdTableSort.removeClass(this, this.className.search("alternative") == -1 ? "ieRowHover" : "ieRowHoverAlt"); });
                                /*@end
                        @*/
}}}fdTableSort.addEvent(window,"load",fdTableSort.initEvt);
fdTableSort.addEvent(window,"unload",fdTableSort.onUnload);fdTableSort.addEvent(window,"load",initialZebraStripe);fdTableSort.addEvent(window,"load",tablePaginater.init);if(document._dynarchDefined==undefined){Calendar=function(firstDayOfWeek,dateStr,onSelected,onClose){this.activeDiv=null;this.currentDateEl=null;this.getDateStatus=null;this.getDateToolTip=null;this.getDateText=null;this.timeout=null;this.onSelected=onSelected||null;this.onClose=onClose||null;this.dragging=false;this.hidden=false;
this.minYear=1970;this.maxYear=2050;this.dateFormat=Calendar._TT.DEF_DATE_FORMAT;this.ttDateFormat=Calendar._TT.TT_DATE_FORMAT;this.isPopup=true;this.weekNumbers=true;this.firstDayOfWeek=typeof firstDayOfWeek=="number"?firstDayOfWeek:Calendar._FD;this.showsOtherMonths=false;this.dateStr=dateStr;this.ar_days=null;this.showsTime=false;this.time24=true;this.yearStep=2;this.hiliteToday=true;this.multiple=null;this.table=null;this.element=null;this.tbody=null;this.firstdayname=null;this.monthsCombo=null;
this.yearsCombo=null;this.hilitedMonth=null;this.activeMonth=null;this.hilitedYear=null;this.activeYear=null;this.dateClicked=false;if(typeof Calendar._SDN=="undefined"){if(typeof Calendar._SDN_len=="undefined"){Calendar._SDN_len=3;}var ar=new Array();for(var i=8;i>0;){ar[--i]=Calendar._DN[i].substr(0,Calendar._SDN_len);}Calendar._SDN=ar;if(typeof Calendar._SMN_len=="undefined"){Calendar._SMN_len=3;}ar=new Array();for(var i=12;i>0;){ar[--i]=Calendar._MN[i].substr(0,Calendar._SMN_len);}Calendar._SMN=ar;
}};Calendar._C=null;Calendar.is_ie=(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent));Calendar.is_ie5=(Calendar.is_ie&&/msie 5\.0/i.test(navigator.userAgent));Calendar.is_opera=/opera/i.test(navigator.userAgent);Calendar.is_khtml=/Konqueror|Safari|KHTML/i.test(navigator.userAgent);Calendar.getAbsolutePos=function(el){var SL=0,ST=0;var is_div=/^div$/i.test(el.tagName);if(is_div&&el.scrollLeft){SL=el.scrollLeft;}if(is_div&&el.scrollTop){ST=el.scrollTop;}var r={x:el.offsetLeft-SL,y:el.offsetTop-ST};
if(el.offsetParent){var tmp=this.getAbsolutePos(el.offsetParent);r.x+=tmp.x;r.y+=tmp.y;}return r;};Calendar.isRelated=function(el,evt){var related=evt.relatedTarget;if(!related){var type=evt.type;if(type=="mouseover"){related=evt.fromElement;}else{if(type=="mouseout"){related=evt.toElement;}}}while(related){if(related==el){return true;}related=related.parentNode;}return false;};Calendar.removeClass=function(el,className){if(!(el&&el.className)){return;}var cls=el.className.split(" ");var ar=new Array();
for(var i=cls.length;i>0;){if(cls[--i]!=className){ar[ar.length]=cls[i];}}el.className=ar.join(" ");};Calendar.addClass=function(el,className){Calendar.removeClass(el,className);el.className+=" "+className;};Calendar.getElement=function(ev){var f=Calendar.is_ie?window.event.srcElement:ev.currentTarget;while(f.nodeType!=1||/^div$/i.test(f.tagName)){f=f.parentNode;}return f;};Calendar.getTargetElement=function(ev){var f=Calendar.is_ie?window.event.srcElement:ev.target;while(f.nodeType!=1){f=f.parentNode;
}return f;};Calendar.stopEvent=function(ev){ev||(ev=window.event);if(Calendar.is_ie){ev.cancelBubble=true;ev.returnValue=false;}else{ev.preventDefault();ev.stopPropagation();}return false;};Calendar.addEvent=function(el,evname,func){if(el.attachEvent){el.attachEvent("on"+evname,func);}else{if(el.addEventListener){el.addEventListener(evname,func,true);}else{el["on"+evname]=func;}}};Calendar.removeEvent=function(el,evname,func){if(el.detachEvent){el.detachEvent("on"+evname,func);}else{if(el.removeEventListener){el.removeEventListener(evname,func,true);
}else{el["on"+evname]=null;}}};Calendar.createElement=function(type,parent){var el=null;if(document.createElementNS){el=document.createElementNS("http://www.w3.org/1999/xhtml",type);}else{el=document.createElement(type);}if(typeof parent!="undefined"){parent.appendChild(el);}return el;};Calendar._add_evs=function(el){with(Calendar){addEvent(el,"mouseover",dayMouseOver);addEvent(el,"mousedown",dayMouseDown);addEvent(el,"mouseout",dayMouseOut);if(is_ie){addEvent(el,"dblclick",dayMouseDblClick);el.setAttribute("unselectable",true);
}}};Calendar.findMonth=function(el){if(typeof el.month!="undefined"){return el;}else{if(typeof el.parentNode.month!="undefined"){return el.parentNode;}}return null;};Calendar.findYear=function(el){if(typeof el.year!="undefined"){return el;}else{if(typeof el.parentNode.year!="undefined"){return el.parentNode;}}return null;};Calendar.showMonthsCombo=function(){var cal=Calendar._C;if(!cal){return false;}var cal=cal;var cd=cal.activeDiv;var mc=cal.monthsCombo;if(cal.hilitedMonth){Calendar.removeClass(cal.hilitedMonth,"hilite");
}if(cal.activeMonth){Calendar.removeClass(cal.activeMonth,"active");}var mon=cal.monthsCombo.getElementsByTagName("div")[cal.date.getMonth()];Calendar.addClass(mon,"active");cal.activeMonth=mon;var s=mc.style;s.display="block";if(cd.navtype<0){s.left=cd.offsetLeft+"px";}else{var mcw=mc.offsetWidth;if(typeof mcw=="undefined"){mcw=50;}s.left=(cd.offsetLeft+cd.offsetWidth-mcw)+"px";}s.top=(cd.offsetTop+cd.offsetHeight)+"px";};Calendar.showYearsCombo=function(fwd){var cal=Calendar._C;if(!cal){return false;
}var cal=cal;var cd=cal.activeDiv;var yc=cal.yearsCombo;if(cal.hilitedYear){Calendar.removeClass(cal.hilitedYear,"hilite");}if(cal.activeYear){Calendar.removeClass(cal.activeYear,"active");}cal.activeYear=null;var Y=cal.date.getFullYear()+(fwd?1:-1);var yr=yc.firstChild;var show=false;for(var i=12;i>0;--i){if(Y>=cal.minYear&&Y<=cal.maxYear){yr.innerHTML=Y;yr.year=Y;yr.style.display="block";show=true;}else{yr.style.display="none";}yr=yr.nextSibling;Y+=fwd?cal.yearStep:-cal.yearStep;}if(show){var s=yc.style;
s.display="block";if(cd.navtype<0){s.left=cd.offsetLeft+"px";}else{var ycw=yc.offsetWidth;if(typeof ycw=="undefined"){ycw=50;}s.left=(cd.offsetLeft+cd.offsetWidth-ycw)+"px";}s.top=(cd.offsetTop+cd.offsetHeight)+"px";}};Calendar.tableMouseUp=function(ev){var cal=Calendar._C;if(!cal){return false;}if(cal.timeout){clearTimeout(cal.timeout);}var el=cal.activeDiv;if(!el){return false;}var target=Calendar.getTargetElement(ev);ev||(ev=window.event);Calendar.removeClass(el,"active");if(target==el||target.parentNode==el){Calendar.cellClick(el,ev);
}var mon=Calendar.findMonth(target);var date=null;if(mon){date=new Date(cal.date);if(mon.month!=date.getMonth()){date.setMonth(mon.month);cal.setDate(date);cal.dateClicked=false;cal.callHandler();}}else{var year=Calendar.findYear(target);if(year){date=new Date(cal.date);if(year.year!=date.getFullYear()){date.setFullYear(year.year);cal.setDate(date);cal.dateClicked=false;cal.callHandler();}}}with(Calendar){removeEvent(document,"mouseup",tableMouseUp);removeEvent(document,"mouseover",tableMouseOver);
removeEvent(document,"mousemove",tableMouseOver);cal._hideCombos();_C=null;return stopEvent(ev);}};Calendar.tableMouseOver=function(ev){var cal=Calendar._C;if(!cal){return;}var el=cal.activeDiv;var target=Calendar.getTargetElement(ev);if(target==el||target.parentNode==el){Calendar.addClass(el,"hilite active");Calendar.addClass(el.parentNode,"rowhilite");}else{if(typeof el.navtype=="undefined"||(el.navtype!=50&&(el.navtype==0||Math.abs(el.navtype)>2))){Calendar.removeClass(el,"active");}Calendar.removeClass(el,"hilite");
Calendar.removeClass(el.parentNode,"rowhilite");}ev||(ev=window.event);if(el.navtype==50&&target!=el){var pos=Calendar.getAbsolutePos(el);var w=el.offsetWidth;var x=ev.clientX;var dx;var decrease=true;if(x>pos.x+w){dx=x-pos.x-w;decrease=false;}else{dx=pos.x-x;}if(dx<0){dx=0;}var range=el._range;var current=el._current;var count=Math.floor(dx/10)%range.length;for(var i=range.length;--i>=0;){if(range[i]==current){break;}}while(count-->0){if(decrease){if(--i<0){i=range.length-1;}}else{if(++i>=range.length){i=0;
}}}var newval=range[i];el.innerHTML=newval;cal.onUpdateTime();}var mon=Calendar.findMonth(target);if(mon){if(mon.month!=cal.date.getMonth()){if(cal.hilitedMonth){Calendar.removeClass(cal.hilitedMonth,"hilite");}Calendar.addClass(mon,"hilite");cal.hilitedMonth=mon;}else{if(cal.hilitedMonth){Calendar.removeClass(cal.hilitedMonth,"hilite");}}}else{if(cal.hilitedMonth){Calendar.removeClass(cal.hilitedMonth,"hilite");}var year=Calendar.findYear(target);if(year){if(year.year!=cal.date.getFullYear()){if(cal.hilitedYear){Calendar.removeClass(cal.hilitedYear,"hilite");
}Calendar.addClass(year,"hilite");cal.hilitedYear=year;}else{if(cal.hilitedYear){Calendar.removeClass(cal.hilitedYear,"hilite");}}}else{if(cal.hilitedYear){Calendar.removeClass(cal.hilitedYear,"hilite");}}}return Calendar.stopEvent(ev);};Calendar.tableMouseDown=function(ev){if(Calendar.getTargetElement(ev)==Calendar.getElement(ev)){return Calendar.stopEvent(ev);}};Calendar.calDragIt=function(ev){var cal=Calendar._C;if(!(cal&&cal.dragging)){return false;}var posX;var posY;if(Calendar.is_ie){posY=window.event.clientY+document.body.scrollTop;
posX=window.event.clientX+document.body.scrollLeft;}else{posX=ev.pageX;posY=ev.pageY;}cal.hideShowCovered();var st=cal.element.style;st.left=(posX-cal.xOffs)+"px";st.top=(posY-cal.yOffs)+"px";return Calendar.stopEvent(ev);};Calendar.calDragEnd=function(ev){var cal=Calendar._C;if(!cal){return false;}cal.dragging=false;with(Calendar){removeEvent(document,"mousemove",calDragIt);removeEvent(document,"mouseup",calDragEnd);tableMouseUp(ev);}cal.hideShowCovered();};Calendar.dayMouseDown=function(ev){var el=Calendar.getElement(ev);
if(el.disabled){return false;}var cal=el.calendar;cal.activeDiv=el;Calendar._C=cal;if(el.navtype!=300){with(Calendar){if(el.navtype==50){el._current=el.innerHTML;addEvent(document,"mousemove",tableMouseOver);}else{addEvent(document,Calendar.is_ie5?"mousemove":"mouseover",tableMouseOver);}addClass(el,"hilite active");addEvent(document,"mouseup",tableMouseUp);}}else{if(cal.isPopup){cal._dragStart(ev);}}if(el.navtype==-1||el.navtype==1){if(cal.timeout){clearTimeout(cal.timeout);}cal.timeout=setTimeout("Calendar.showMonthsCombo()",250);
}else{if(el.navtype==-2||el.navtype==2){if(cal.timeout){clearTimeout(cal.timeout);}cal.timeout=setTimeout((el.navtype>0)?"Calendar.showYearsCombo(true)":"Calendar.showYearsCombo(false)",250);}else{cal.timeout=null;}}return Calendar.stopEvent(ev);};Calendar.dayMouseDblClick=function(ev){Calendar.cellClick(Calendar.getElement(ev),ev||window.event);if(Calendar.is_ie){document.selection.empty();}};Calendar.dayMouseOver=function(ev){var el=Calendar.getElement(ev);if(Calendar.isRelated(el,ev)||Calendar._C||el.disabled){return false;
}if(el.ttip){if(el.ttip.substr(0,1)=="_"){el.ttip=el.caldate.print(el.calendar.ttDateFormat)+el.ttip.substr(1);}el.calendar.tooltips.innerHTML=el.ttip;}if(el.navtype!=300){Calendar.addClass(el,"hilite");if(el.caldate){Calendar.addClass(el.parentNode,"rowhilite");}}return Calendar.stopEvent(ev);};Calendar.dayMouseOut=function(ev){with(Calendar){var el=getElement(ev);if(isRelated(el,ev)||_C||el.disabled){return false;}removeClass(el,"hilite");if(el.caldate){removeClass(el.parentNode,"rowhilite");}if(el.calendar){el.calendar.tooltips.innerHTML=_TT.SEL_DATE;
}return stopEvent(ev);}};Calendar.cellClick=function(el,ev){var cal=el.calendar;var closing=false;var newdate=false;var date=null;if(typeof el.navtype=="undefined"){if(cal.currentDateEl){Calendar.removeClass(cal.currentDateEl,"selected_x");Calendar.addClass(el,"selected_x");closing=(cal.currentDateEl==el);if(!closing){cal.currentDateEl=el;}}cal.date.setDateOnly(el.caldate);date=cal.date;var other_month=!(cal.dateClicked=!el.otherMonth);if(!other_month&&!cal.currentDateEl){cal._toggleMultipleDate(new Date(date));
}else{newdate=!el.disabled;}if(other_month){cal._init(cal.firstDayOfWeek,date);}}else{if(el.navtype==200){Calendar.removeClass(el,"hilite");cal.callCloseHandler();return;}date=new Date(cal.date);if(el.navtype==0){date.setDateOnly(new Date());}cal.dateClicked=false;var year=date.getFullYear();var mon=date.getMonth();function setMonth(m){var day=date.getDate();var max=date.getMonthDays(m);if(day>max){date.setDate(max);}date.setMonth(m);}switch(el.navtype){case 400:Calendar.removeClass(el,"hilite");
var text=Calendar._TT.ABOUT;if(typeof text!="undefined"){text+=cal.showsTime?Calendar._TT.ABOUT_TIME:"";}else{text='Help and about box text is not translated into this language.\nIf you know this language and you feel generous please update\nthe corresponding file in "lang" subdir to match calendar-en.js\nand send it back to <mihai_bazon@yahoo.com> to get it into the distribution  ;-)\n\nThank you!\nhttp://dynarch.com/mishoo/calendar.epl\n';}alert(text);return;case -2:if(year>cal.minYear){date.setFullYear(year-1);
}break;case -1:if(mon>0){setMonth(mon-1);}else{if(year-->cal.minYear){date.setFullYear(year);setMonth(11);}}break;case 1:if(mon<11){setMonth(mon+1);}else{if(year<cal.maxYear){date.setFullYear(year+1);setMonth(0);}}break;case 2:if(year<cal.maxYear){date.setFullYear(year+1);}break;case 100:cal.setFirstDayOfWeek(el.fdow);return;case 50:var range=el._range;var current=el.innerHTML;for(var i=range.length;--i>=0;){if(range[i]==current){break;}}if(ev&&ev.shiftKey){if(--i<0){i=range.length-1;}}else{if(++i>=range.length){i=0;
}}var newval=range[i];el.innerHTML=newval;cal.onUpdateTime();return;case 0:if((typeof cal.getDateStatus=="function")&&cal.getDateStatus(date,date.getFullYear(),date.getMonth(),date.getDate()),el){return false;}break;}if(!date.equalsTo(cal.date)){cal.setDate(date);newdate=true;}else{if(el.navtype==0){newdate=closing=true;}}}if(newdate){ev&&cal.callHandler();}if(closing){Calendar.removeClass(el,"hilite");ev&&cal.callCloseHandler();}};Calendar.prototype.create=function(_par){var parent=null;if(!_par){parent=document.getElementsByTagName("body")[0];
this.isPopup=true;}else{parent=_par;this.isPopup=false;}this.date=this.dateStr?new Date(this.dateStr):new Date();var table=Calendar.createElement("table");this.table=table;table.cellSpacing=0;table.cellPadding=0;table.calendar=this;Calendar.addEvent(table,"mousedown",Calendar.tableMouseDown);var div=Calendar.createElement("div");this.element=div;div.className="calendar";if(this.isPopup){div.style.position="absolute";div.style.display="none";}div.appendChild(table);var thead=Calendar.createElement("thead",table);
var cell=null;var row=null;var cal=this;var hh=function(text,cs,navtype){cell=Calendar.createElement("td",row);cell.colSpan=cs;cell.className="button";if(navtype!=0&&Math.abs(navtype)<=2){cell.className+=" nav";}if(navtype==0){cell.className+="_x";}Calendar._add_evs(cell);cell.calendar=cal;cell.navtype=navtype;cell.innerHTML="<div unselectable='on'>"+text+"</div>";return cell;};row=Calendar.createElement("tr",thead);var title_length=6;(this.isPopup)&&--title_length;(this.weekNumbers)&&++title_length;
hh("?",1,400).ttip=Calendar._TT.INFO;this.title=hh("",title_length,300);this.title.className="title";if(this.isPopup){this.title.ttip=Calendar._TT.DRAG_TO_MOVE;this.title.style.cursor="move";hh("X",1,200).ttip=Calendar._TT.CLOSE;}row=Calendar.createElement("tr",thead);row.className="headrow";this._nav_py=hh("&#x00ab;",1,-2);this._nav_py.ttip=Calendar._TT.PREV_YEAR;this._nav_pm=hh("&#x2039;",1,-1);this._nav_pm.ttip=Calendar._TT.PREV_MONTH;this._nav_now=hh(Calendar._TT.TODAY,this.weekNumbers?4:3,0);
this._nav_now.ttip=Calendar._TT.GO_TODAY;this._nav_nm=hh("&#x203a;",1,1);this._nav_nm.ttip=Calendar._TT.NEXT_MONTH;this._nav_ny=hh("&#x00bb;",1,2);this._nav_ny.ttip=Calendar._TT.NEXT_YEAR;row=Calendar.createElement("tr",thead);row.className="daynames";if(this.weekNumbers){cell=Calendar.createElement("td",row);cell.className="name wn";cell.innerHTML=Calendar._TT.WK;}for(var i=7;i>0;--i){cell=Calendar.createElement("td",row);if(!i){cell.navtype=100;cell.calendar=this;Calendar._add_evs(cell);}}this.firstdayname=(this.weekNumbers)?row.firstChild.nextSibling:row.firstChild;
this._displayWeekdays();var tbody=Calendar.createElement("tbody",table);this.tbody=tbody;for(i=6;i>0;--i){row=Calendar.createElement("tr",tbody);if(this.weekNumbers){cell=Calendar.createElement("td",row);}for(var j=7;j>0;--j){cell=Calendar.createElement("td",row);cell.calendar=this;Calendar._add_evs(cell);}}if(this.showsTime){row=Calendar.createElement("tr",tbody);row.className="time";cell=Calendar.createElement("td",row);cell.className="time";cell.colSpan=2;cell.innerHTML=Calendar._TT.TIME||"&nbsp;";
cell=Calendar.createElement("td",row);cell.className="time";cell.colSpan=this.weekNumbers?4:3;(function(){function makeTimePart(className,init,range_start,range_end){var part=Calendar.createElement("span",cell);part.className=className;part.innerHTML=init;part.calendar=cal;part.ttip=Calendar._TT.TIME_PART;part.navtype=50;part._range=[];if(typeof range_start!="number"){part._range=range_start;}else{for(var i=range_start;i<=range_end;++i){var txt;if(i<10&&range_end>=10){txt="0"+i;}else{txt=""+i;}part._range[part._range.length]=txt;
}}Calendar._add_evs(part);return part;}var hrs=cal.date.getHours();var mins=cal.date.getMinutes();var t12=!cal.time24;var pm=(hrs>12);if(t12&&pm){hrs-=12;}var H=makeTimePart("hour",hrs,t12?1:0,t12?12:23);var span=Calendar.createElement("span",cell);span.innerHTML=":";span.className="colon";var M=makeTimePart("minute",mins,0,59);var AP=null;cell=Calendar.createElement("td",row);cell.className="time";cell.colSpan=2;if(t12){AP=makeTimePart("ampm",pm?"pm":"am",["am","pm"]);}else{cell.innerHTML="&nbsp;";
}cal.onSetTime=function(){var pm,hrs=this.date.getHours(),mins=this.date.getMinutes();if(t12){pm=(hrs>=12);if(pm){hrs-=12;}if(hrs==0){hrs=12;}AP.innerHTML=pm?"pm":"am";}H.innerHTML=(hrs<10)?("0"+hrs):hrs;M.innerHTML=(mins<10)?("0"+mins):mins;};cal.onUpdateTime=function(){var date=this.date;var h=parseInt(H.innerHTML,10);if(t12){if(/pm/i.test(AP.innerHTML)&&h<12){h+=12;}else{if(/am/i.test(AP.innerHTML)&&h==12){h=0;}}}var d=date.getDate();var m=date.getMonth();var y=date.getFullYear();date.setHours(h);
date.setMinutes(parseInt(M.innerHTML,10));date.setFullYear(y);date.setMonth(m);date.setDate(d);this.dateClicked=false;this.callHandler();};})();}else{this.onSetTime=this.onUpdateTime=function(){};}var tfoot=Calendar.createElement("tfoot",table);row=Calendar.createElement("tr",tfoot);row.className="footrow";cell=hh(Calendar._TT.SEL_DATE,this.weekNumbers?8:7,300);cell.className="ttip";if(this.isPopup){cell.ttip=Calendar._TT.DRAG_TO_MOVE;cell.style.cursor="move";}this.tooltips=cell;div=Calendar.createElement("div",this.element);
this.monthsCombo=div;div.className="combo";for(i=0;i<Calendar._MN.length;++i){var mn=Calendar.createElement("div");mn.className=Calendar.is_ie?"label-IEfix":"label";mn.month=i;mn.innerHTML=Calendar._SMN[i];div.appendChild(mn);}div=Calendar.createElement("div",this.element);this.yearsCombo=div;div.className="combo";for(i=12;i>0;--i){var yr=Calendar.createElement("div");yr.className=Calendar.is_ie?"label-IEfix":"label";div.appendChild(yr);}this._init(this.firstDayOfWeek,this.date);parent.appendChild(this.element);
};Calendar._keyEvent=function(ev){var cal=window._dynarch_popupCalendar;if(!cal||cal.multiple){return false;}(Calendar.is_ie)&&(ev=window.event);var act=(Calendar.is_ie||ev.type=="keypress"),K=ev.keyCode;if(ev.ctrlKey){switch(K){case 37:act&&Calendar.cellClick(cal._nav_pm);break;case 38:act&&Calendar.cellClick(cal._nav_py);break;case 39:act&&Calendar.cellClick(cal._nav_nm);break;case 40:act&&Calendar.cellClick(cal._nav_ny);break;default:return false;}}else{switch(K){case 32:Calendar.cellClick(cal._nav_now);
break;case 27:act&&cal.callCloseHandler();break;case 37:case 38:case 39:case 40:if(act){var prev,x,y,ne,el,step;prev=K==37||K==38;step=(K==37||K==39)?1:7;function setVars(){el=cal.currentDateEl;var p=el.pos;x=p&15;y=p>>4;ne=cal.ar_days[y][x];}setVars();function prevMonth(){var date=new Date(cal.date);date.setDate(date.getDate()-step);cal.setDate(date);}function nextMonth(){var date=new Date(cal.date);date.setDate(date.getDate()+step);cal.setDate(date);}while(1){switch(K){case 37:if(--x>=0){ne=cal.ar_days[y][x];
}else{x=6;K=38;continue;}break;case 38:if(--y>=0){ne=cal.ar_days[y][x];}else{prevMonth();setVars();}break;case 39:if(++x<7){ne=cal.ar_days[y][x];}else{x=0;K=40;continue;}break;case 40:if(++y<cal.ar_days.length){ne=cal.ar_days[y][x];}else{nextMonth();setVars();}break;}break;}if(ne){if(!ne.disabled){Calendar.cellClick(ne);}else{if(prev){prevMonth();}else{nextMonth();}}}}break;case 13:if(act){Calendar.cellClick(cal.currentDateEl,ev);}break;default:return false;}}return Calendar.stopEvent(ev);};Calendar.prototype._init=function(firstDayOfWeek,date){var today=new Date(),TY=today.getFullYear(),TM=today.getMonth(),TD=today.getDate();
this.table.style.visibility="hidden";var year=date.getFullYear();if(year<this.minYear){year=this.minYear;date.setFullYear(year);}else{if(year>this.maxYear){year=this.maxYear;date.setFullYear(year);}}this.firstDayOfWeek=firstDayOfWeek;this.date=new Date(date);var month=date.getMonth();var mday=date.getDate();var no_days=date.getMonthDays();date.setDate(1);var day1=(date.getDay()-this.firstDayOfWeek)%7;if(day1<0){day1+=7;}date.setDate(-day1);date.setDate(date.getDate()+1);var row=this.tbody.firstChild;
var MN=Calendar._SMN[month];var ar_days=this.ar_days=new Array();var weekend=Calendar._TT.WEEKEND;var dates=this.multiple?(this.datesCells={}):null;for(var i=0;i<6;++i,row=row.nextSibling){var cell=row.firstChild;if(this.weekNumbers){cell.className="day wn";cell.innerHTML=date.getWeekNumber();cell=cell.nextSibling;}row.className="daysrow";var hasdays=false,iday,dpos=ar_days[i]=[];for(var j=0;j<7;++j,cell=cell.nextSibling,date.setDate(iday+1)){iday=date.getDate();var wday=date.getDay();cell.className="day";
cell.pos=i<<4|j;dpos[j]=cell;var current_month=(date.getMonth()==month);if(!current_month){if(this.showsOtherMonths){cell.className+=" othermonth";cell.otherMonth=true;}else{cell.className="emptycell";cell.innerHTML="&nbsp;";cell.disabled=true;continue;}}else{cell.otherMonth=false;hasdays=true;}cell.disabled=false;cell.innerHTML=this.getDateText?this.getDateText(date,iday):iday;if(dates){dates[date.print("%Y%m%d")]=cell;}if(this.getDateStatus){var status=this.getDateStatus(date,year,month,iday,cell);
if(this.getDateToolTip){var toolTip=this.getDateToolTip(date,year,month,iday);if(toolTip){cell.title=toolTip;}}if(status===true){cell.className+=" disabled";cell.disabled=true;}else{if(/disabled/i.test(status)){cell.disabled=true;}cell.className+=" "+status;}}if(!cell.disabled){cell.caldate=new Date(date);cell.ttip="_";if(!this.multiple&&current_month&&iday==mday&&this.hiliteToday){cell.className+=" selected_x";this.currentDateEl=cell;}if(date.getFullYear()==TY&&date.getMonth()==TM&&iday==TD){cell.className+=" today";
cell.ttip+=Calendar._TT.PART_TODAY;}if(weekend.indexOf(wday.toString())!=-1){cell.className+=cell.otherMonth?" oweekend":" weekend";}}}if(!(hasdays||this.showsOtherMonths)){row.className="emptyrow";}}this.title.innerHTML=Calendar._MN[month]+", "+year;this.onSetTime();this.table.style.visibility="visible";this._initMultipleDates();};Calendar.prototype._initMultipleDates=function(){if(this.multiple){for(var i in this.multiple){var cell=this.datesCells[i];var d=this.multiple[i];if(!d){continue;}if(cell){cell.className+=" selected_x";
}}}};Calendar.prototype._toggleMultipleDate=function(date){if(this.multiple){var ds=date.print("%Y%m%d");var cell=this.datesCells[ds];if(cell){var d=this.multiple[ds];if(!d){Calendar.addClass(cell,"selected_x");this.multiple[ds]=date;}else{Calendar.removeClass(cell,"selected_x");delete this.multiple[ds];}}}};Calendar.prototype.setDateToolTipHandler=function(unaryFunction){this.getDateToolTip=unaryFunction;};Calendar.prototype.setDate=function(date){if(!date.equalsTo(this.date)){this._init(this.firstDayOfWeek,date);
}};Calendar.prototype.refresh=function(){this._init(this.firstDayOfWeek,this.date);};Calendar.prototype.setFirstDayOfWeek=function(firstDayOfWeek){this._init(firstDayOfWeek,this.date);this._displayWeekdays();};Calendar.prototype.setDateStatusHandler=Calendar.prototype.setDisabledHandler=function(unaryFunction){this.getDateStatus=unaryFunction;};Calendar.prototype.setRange=function(a,z){this.minYear=a;this.maxYear=z;};Calendar.prototype.callHandler=function(){if(this.onSelected){this.onSelected(this,this.date.print(this.dateFormat));
}};Calendar.prototype.callCloseHandler=function(){if(this.onClose){this.onClose(this);}this.hideShowCovered();};Calendar.prototype.destroy=function(){var el=this.element.parentNode;el.removeChild(this.element);Calendar._C=null;window._dynarch_popupCalendar=null;};Calendar.prototype.reparent=function(new_parent){var el=this.element;el.parentNode.removeChild(el);new_parent.appendChild(el);};Calendar._checkCalendar=function(ev){var calendar=window._dynarch_popupCalendar;if(!calendar){return false;}var el=Calendar.is_ie?Calendar.getElement(ev):Calendar.getTargetElement(ev);
for(;el!=null&&el!=calendar.element;el=el.parentNode){}if(el==null){window._dynarch_popupCalendar.callCloseHandler();return Calendar.stopEvent(ev);}};Calendar.prototype.show=function(){var rows=this.table.getElementsByTagName("tr");for(var i=rows.length;i>0;){var row=rows[--i];Calendar.removeClass(row,"rowhilite");var cells=row.getElementsByTagName("td");for(var j=cells.length;j>0;){var cell=cells[--j];Calendar.removeClass(cell,"hilite");Calendar.removeClass(cell,"active");}}this.element.style.display="block";
this.hidden=false;if(this.isPopup){window._dynarch_popupCalendar=this;Calendar.addEvent(document,"keydown",Calendar._keyEvent);Calendar.addEvent(document,"keypress",Calendar._keyEvent);Calendar.addEvent(document,"mousedown",Calendar._checkCalendar);}this.hideShowCovered();};Calendar.prototype.hide=function(){if(this.isPopup){Calendar.removeEvent(document,"keydown",Calendar._keyEvent);Calendar.removeEvent(document,"keypress",Calendar._keyEvent);Calendar.removeEvent(document,"mousedown",Calendar._checkCalendar);
}this.element.style.display="none";this.hidden=true;this.hideShowCovered();};Calendar.prototype.showAt=function(x,y){var s=this.element.style;s.left=x+"px";s.top=y+"px";this.show();};Calendar.prototype.showAtElement=function(el,opts){var self=this;var p=Calendar.getAbsolutePos(el);if(!opts||typeof opts!="string"){this.showAt(p.x,p.y+el.offsetHeight);return true;}function fixPosition(box){if(box.x<0){box.x=0;}if(box.y<0){box.y=0;}var cp=document.createElement("div");var s=cp.style;s.position="absolute";
s.right=s.bottom=s.width=s.height="0px";document.body.appendChild(cp);var br=Calendar.getAbsolutePos(cp);document.body.removeChild(cp);if(Calendar.is_ie){if(jQuery.browser.version=="8.0"||jQuery.browser.version=="7.0"){br.y+=window.scrollY;br.x+=window.scrollX;}else{br.y+=document.body.scrollTop;br.x+=document.body.scrollLeft;}}else{br.y+=window.scrollY;br.x+=window.scrollX;}var tmp=box.x+box.width-br.x;if(tmp>0){box.x-=tmp;}tmp=box.y+box.height-br.y;if(tmp>0){box.y-=tmp;}}this.element.style.display="block";
Calendar.continuation_for_the_fucking_khtml_browser=function(){var w=self.element.offsetWidth;var h=self.element.offsetHeight;self.element.style.display="none";var valign=opts.substr(0,1);var halign="l";if(opts.length>1){halign=opts.substr(1,1);}switch(valign){case"T":p.y-=h;break;case"B":p.y+=el.offsetHeight;break;case"C":p.y+=(el.offsetHeight-h)/2;break;case"t":p.y+=el.offsetHeight-h;break;case"b":break;}switch(halign){case"L":p.x-=w;break;case"R":p.x+=el.offsetWidth;break;case"C":p.x+=(el.offsetWidth-w)/2;
break;case"l":p.x+=el.offsetWidth-w;break;case"r":break;}p.width=w;p.height=h+40;self.monthsCombo.style.display="none";fixPosition(p);self.showAt(p.x,p.y);};if(Calendar.is_khtml){setTimeout("Calendar.continuation_for_the_fucking_khtml_browser()",10);}else{Calendar.continuation_for_the_fucking_khtml_browser();}};Calendar.prototype.setDateFormat=function(str){this.dateFormat=str;};Calendar.prototype.setTtDateFormat=function(str){this.ttDateFormat=str;};Calendar.prototype.parseDate=function(str,fmt){if(!fmt){fmt=this.dateFormat;
}this.setDate(Date.parseDate(str,fmt));};Calendar.prototype.hideShowCovered=function(){if(!Calendar.is_ie&&!Calendar.is_opera){return;}function getVisib(obj){var value=obj.style.visibility;if(!value){if(document.defaultView&&typeof(document.defaultView.getComputedStyle)=="function"){if(!Calendar.is_khtml){value=document.defaultView.getComputedStyle(obj,"").getPropertyValue("visibility");}else{value="";}}else{if(obj.currentStyle){value=obj.currentStyle.visibility;}else{value="";}}}return value;}var tags=new Array("applet","iframe","select");
var el=this.element;var p=Calendar.getAbsolutePos(el);var EX1=p.x;var EX2=el.offsetWidth+EX1;var EY1=p.y;var EY2=el.offsetHeight+EY1;for(var k=tags.length;k>0;){var ar=document.getElementsByTagName(tags[--k]);var cc=null;for(var i=ar.length;i>0;){cc=ar[--i];p=Calendar.getAbsolutePos(cc);var CX1=p.x;var CX2=cc.offsetWidth+CX1;var CY1=p.y;var CY2=cc.offsetHeight+CY1;if(this.hidden||(CX1>EX2)||(CX2<EX1)||(CY1>EY2)||(CY2<EY1)){if(!cc.__msh_save_visibility){cc.__msh_save_visibility=getVisib(cc);}cc.style.visibility=cc.__msh_save_visibility;
}else{if(!cc.__msh_save_visibility){cc.__msh_save_visibility=getVisib(cc);}cc.style.visibility="hidden";}}}};Calendar.prototype._displayWeekdays=function(){var fdow=this.firstDayOfWeek;var cell=this.firstdayname;var weekend=Calendar._TT.WEEKEND;for(var i=0;i<7;++i){cell.className="day name";var realday=(i+fdow)%7;if(i){cell.ttip=Calendar._TT.DAY_FIRST.replace("%s",Calendar._DN[realday]);cell.navtype=100;cell.calendar=this;cell.fdow=realday;Calendar._add_evs(cell);}if(weekend.indexOf(realday.toString())!=-1){Calendar.addClass(cell,"weekend");
}cell.innerHTML=Calendar._SDN[(i+fdow)%7];cell=cell.nextSibling;}};Calendar.prototype._hideCombos=function(){this.monthsCombo.style.display="none";this.yearsCombo.style.display="none";};Calendar.prototype._dragStart=function(ev){if(this.dragging){return;}this.dragging=true;var posX;var posY;if(Calendar.is_ie){posY=window.event.clientY+document.body.scrollTop;posX=window.event.clientX+document.body.scrollLeft;}else{posY=ev.clientY+window.scrollY;posX=ev.clientX+window.scrollX;}var st=this.element.style;
this.xOffs=posX-parseInt(st.left);this.yOffs=posY-parseInt(st.top);with(Calendar){addEvent(document,"mousemove",calDragIt);addEvent(document,"mouseup",calDragEnd);}};Date._MD=new Array(31,28,31,30,31,30,31,31,30,31,30,31);Date.SECOND=1000;Date.MINUTE=60*Date.SECOND;Date.HOUR=60*Date.MINUTE;Date.DAY=24*Date.HOUR;Date.WEEK=7*Date.DAY;Date.parseDate=function(str,fmt){var today=new Date();var y=0;var m=-1;var d=0;var a=str.split(/\W+/);var b=fmt.match(/%./g);var i=0,j=0;var hr=0;var min=0;for(i=0;i<a.length;
++i){if(!a[i]){continue;}switch(b[i]){case"%d":case"%e":d=parseInt(a[i],10);break;case"%m":m=parseInt(a[i],10)-1;break;case"%Y":case"%y":y=parseInt(a[i],10);(y<100)&&(y+=(y>29)?1900:2000);break;case"%b":case"%B":for(j=0;j<12;++j){if(Calendar._MN[j].substr(0,a[i].length).toLowerCase()==a[i].toLowerCase()){m=j;break;}}break;case"%H":case"%I":case"%k":case"%l":hr=parseInt(a[i],10);break;case"%P":case"%p":if(/pm/i.test(a[i])&&hr<12){hr+=12;}else{if(/am/i.test(a[i])&&hr>=12){hr-=12;}}break;case"%M":min=parseInt(a[i],10);
break;}}if(isNaN(y)){y=today.getFullYear();}if(isNaN(m)){m=today.getMonth();}if(isNaN(d)){d=today.getDate();}if(isNaN(hr)){hr=today.getHours();}if(isNaN(min)){min=today.getMinutes();}if(y!=0&&m!=-1&&d!=0){return new Date(y,m,d,hr,min,0);}y=0;m=-1;d=0;for(i=0;i<a.length;++i){if(a[i].search(/[a-zA-Z]+/)!=-1){var t=-1;for(j=0;j<12;++j){if(Calendar._MN[j].substr(0,a[i].length).toLowerCase()==a[i].toLowerCase()){t=j;break;}}if(t!=-1){if(m!=-1){d=m+1;}m=t;}}else{if(parseInt(a[i],10)<=12&&m==-1){m=a[i]-1;
}else{if(parseInt(a[i],10)>31&&y==0){y=parseInt(a[i],10);(y<100)&&(y+=(y>29)?1900:2000);}else{if(d==0){d=a[i];}}}}}if(y==0){y=today.getFullYear();}if(m!=-1&&d!=0){return new Date(y,m,d,hr,min,0);}return today;};Date.prototype.getMonthDays=function(month){var year=this.getFullYear();if(typeof month=="undefined"){month=this.getMonth();}if(((0==(year%4))&&((0!=(year%100))||(0==(year%400))))&&month==1){return 29;}else{return Date._MD[month];}};Date.prototype.getDayOfYear=function(){var now=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);
var then=new Date(this.getFullYear(),0,0,0,0,0);var time=now-then;return Math.floor(time/Date.DAY);};Date.prototype.getWeekNumber=function(){var d=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var DoW=d.getDay();d.setDate(d.getDate()-(DoW+6)%7+3);var ms=d.valueOf();d.setMonth(0);d.setDate(4);return Math.round((ms-d.valueOf())/(7*86400000))+1;};Date.prototype.equalsTo=function(date){return((this.getFullYear()==date.getFullYear())&&(this.getMonth()==date.getMonth())&&(this.getDate()==date.getDate())&&(this.getHours()==date.getHours())&&(this.getMinutes()==date.getMinutes()));
};Date.prototype.setDateOnly=function(date){var tmp=new Date(date);this.setDate(1);this.setFullYear(tmp.getFullYear());this.setMonth(tmp.getMonth());this.setDate(tmp.getDate());};Date.prototype.print=function(str){var m=this.getMonth();var d=this.getDate();var y=this.getFullYear();var wn=this.getWeekNumber();var w=this.getDay();var s={};var hr=this.getHours();var pm=(hr>=12);var ir=(pm)?(hr-12):hr;var dy=this.getDayOfYear();if(ir==0){ir=12;}var min=this.getMinutes();var sec=this.getSeconds();s["%a"]=Calendar._SDN[w];
s["%A"]=Calendar._DN[w];s["%b"]=Calendar._SMN[m];s["%B"]=Calendar._MN[m];s["%C"]=1+Math.floor(y/100);s["%d"]=(d<10)?("0"+d):d;s["%e"]=d;s["%H"]=(hr<10)?("0"+hr):hr;s["%I"]=(ir<10)?("0"+ir):ir;s["%j"]=(dy<100)?((dy<10)?("00"+dy):("0"+dy)):dy;s["%k"]=hr;s["%l"]=ir;s["%m"]=(m<9)?("0"+(1+m)):(1+m);s["%M"]=(min<10)?("0"+min):min;s["%n"]="\n";s["%p"]=pm?"PM":"AM";s["%P"]=pm?"pm":"am";s["%s"]=Math.floor(this.getTime()/1000);s["%S"]=(sec<10)?("0"+sec):sec;s["%t"]="\t";s["%U"]=s["%W"]=s["%V"]=(wn<10)?("0"+wn):wn;
s["%u"]=w+1;s["%w"]=w;s["%y"]=(""+y).substr(2,2);s["%Y"]=y;s["%%"]="%";var re=/%./g;if(!Calendar.is_ie5&&!Calendar.is_khtml){return str.replace(re,function(par){return s[par]||par;});}var a=str.match(re);for(var i=0;i<a.length;i++){var tmp=s[a[i]];if(tmp){re=new RegExp(a[i],"g");str=str.replace(re,tmp);}}return str;};Date.prototype.__msh_oldSetFullYear=Date.prototype.setFullYear;Date.prototype.setFullYear=function(y){var d=new Date(this);d.__msh_oldSetFullYear(y);if(d.getMonth()!=this.getMonth()){this.setDate(28);
}this.__msh_oldSetFullYear(y);};window._dynarch_popupCalendar=null;document._dynarchDefined=true;}Calendar.setup=function(params){function param_default(pname,def){if(typeof params[pname]=="undefined"){params[pname]=def;}}param_default("inputField",null);param_default("displayArea",null);param_default("button",null);param_default("eventName","click");param_default("ifFormat","%Y/%m/%d");param_default("daFormat","%Y/%m/%d");param_default("singleClick",true);param_default("disableFunc",null);param_default("dateStatusFunc",params.disableFunc);
param_default("dateText",null);param_default("firstDay",null);param_default("align","Br");param_default("range",[1900,2999]);param_default("weekNumbers",true);param_default("flat",null);param_default("flatCallback",null);param_default("onSelect",null);param_default("onClose",null);param_default("onUpdate",null);param_default("date",null);param_default("showsTime",false);param_default("timeFormat","24");param_default("electric",true);param_default("step",2);param_default("position",null);param_default("cache",false);
param_default("showOthers",false);param_default("multiple",null);var tmp=["inputField","displayArea","button"];for(var i in tmp){if(typeof params[tmp[i]]=="string"){params[tmp[i]]=document.getElementById(params[tmp[i]]);}}if(!(params.flat||params.multiple||params.inputField||params.displayArea||params.button)){alert("Calendar.setup:\n  Nothing to setup (no fields found).  Please check your code");return false;}function onSelect(cal){var p=cal.params;var update=(cal.dateClicked||p.electric);if(update&&p.inputField){p.inputField.value=cal.date.print(p.ifFormat);
if(typeof p.inputField.onchange=="function"){p.inputField.onchange();}}if(update&&p.displayArea){p.displayArea.innerHTML=cal.date.print(p.daFormat);}if(update&&typeof p.onUpdate=="function"){p.onUpdate(cal);}if(update&&p.flat){if(typeof p.flatCallback=="function"){p.flatCallback(cal);}}if(update&&p.singleClick&&cal.dateClicked){cal.callCloseHandler();}}if(params.flat!=null){if(typeof params.flat=="string"){params.flat=document.getElementById(params.flat);}if(!params.flat){alert("Calendar.setup:\n  Flat specified but can't find parent.");
return false;}var cal=new Calendar(params.firstDay,params.date,params.onSelect||onSelect);cal.showsOtherMonths=params.showOthers;cal.showsTime=params.showsTime;cal.time24=(params.timeFormat=="24");cal.params=params;cal.weekNumbers=params.weekNumbers;cal.setRange(params.range[0],params.range[1]);cal.setDateStatusHandler(params.dateStatusFunc);cal.getDateText=params.dateText;if(params.ifFormat){cal.setDateFormat(params.ifFormat);}if(params.inputField&&typeof params.inputField.value=="string"){cal.parseDate(params.inputField.value);
}cal.create(params.flat);cal.show();return false;}var triggerEl=params.button||params.displayArea||params.inputField;triggerEl["on"+params.eventName]=function(){var dateEl=params.inputField||params.displayArea;var dateFmt=params.inputField?params.ifFormat:params.daFormat;var mustCreate=false;var cal=window.calendar;if(dateEl){params.date=Date.parseDate(dateEl.value||dateEl.innerHTML,dateFmt);}if(!(cal&&params.cache)){window.calendar=cal=new Calendar(params.firstDay,params.date,params.onSelect||onSelect,params.onClose||function(cal){cal.hide();
});cal.showsTime=params.showsTime;cal.time24=(params.timeFormat=="24");cal.weekNumbers=params.weekNumbers;mustCreate=true;}else{if(params.date){cal.setDate(params.date);}cal.hide();}if(params.multiple){cal.multiple={};for(var i=params.multiple.length;--i>=0;){var d=params.multiple[i];var ds=d.print("%Y%m%d");cal.multiple[ds]=d;}}cal.showsOtherMonths=params.showOthers;cal.yearStep=params.step;cal.setRange(params.range[0],params.range[1]);cal.params=params;cal.setDateStatusHandler(params.dateStatusFunc);
cal.getDateText=params.dateText;cal.setDateFormat(dateFmt);if(mustCreate){cal.create();}cal.refresh();if(!params.position){cal.showAtElement(params.button||params.displayArea||params.inputField,params.align);}else{cal.showAt(params.position[0],params.position[1]);}return false;};return cal;};Calendar._DN=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");Calendar._SDN=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun");Calendar._FD=0;Calendar._MN=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
Calendar._SMN=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");Calendar._TT={};Calendar._TT.INFO="About the calendar";Calendar._TT.ABOUT="DHTML Date/Time Selector\n(c) dynarch.com 2002-2005 / Author: Mihai Bazon\nFor latest version visit: http://www.dynarch.com/projects/calendar/\nDistributed under GNU LGPL.  See http://gnu.org/licenses/lgpl.html for details.\n\nDate selection:\n- Use the \xab, \xbb buttons to select year\n- Use the "+String.fromCharCode(8249)+", "+String.fromCharCode(8250)+" buttons to select month\n- Hold mouse button on any of the above buttons for faster selection.";
Calendar._TT.ABOUT_TIME="\n\nTime selection:\n- Click on any of the time parts to increase it\n- or Shift-click to decrease it\n- or click and drag for faster selection.";Calendar._TT.PREV_YEAR="Prev. year (hold for menu)";Calendar._TT.PREV_MONTH="Prev. month (hold for menu)";Calendar._TT.GO_TODAY="Go Today";Calendar._TT.NEXT_MONTH="Next month (hold for menu)";Calendar._TT.NEXT_YEAR="Next year (hold for menu)";Calendar._TT.SEL_DATE="Select date";Calendar._TT.DRAG_TO_MOVE="Drag to move";Calendar._TT.PART_TODAY=" (today)";
Calendar._TT.DAY_FIRST="Display %s first";Calendar._TT.WEEKEND="0,6";Calendar._TT.CLOSE="Close";Calendar._TT.TODAY="Today";Calendar._TT.TIME_PART="(Shift-)Click or drag to change value";Calendar._TT.DEF_DATE_FORMAT="%Y-%m-%d";Calendar._TT.TT_DATE_FORMAT="%a, %b %e";Calendar._TT.WK="wk";Calendar._TT.TIME="Time:";(function($){var textarea,staticOffset;var iLastMousePos=0;var iMin=32;var grip;$.fn.TextAreaResizer=function(){return this.each(function(){textarea=$(this).addClass("processed"),staticOffset=null;
$(this).wrap('<div class="resizable-textarea"><span></span></div>').parent().append($('<div class="resizeGrippie"></div>').bind("mousedown",{el:this},startDrag));var grippie=$("div.resizeGrippie",$(this).parent())[0];grippie.style.marginRight=(grippie.offsetWidth-$(this)[0].offsetWidth)+"px";});};function startDrag(e){textarea=$(e.data.el);textarea.blur();iLastMousePos=mousePosition(e).y;staticOffset=textarea.height()-iLastMousePos;textarea.css("opacity",0.25);$(document).mousemove(performDrag).mouseup(endDrag);
return false;}function performDrag(e){var iThisMousePos=mousePosition(e).y;var iMousePos=staticOffset+iThisMousePos;if(iLastMousePos>=(iThisMousePos)){iMousePos-=5;}iLastMousePos=iThisMousePos;iMousePos=Math.max(iMin,iMousePos);textarea.height(iMousePos+"px");if(iMousePos<iMin){endDrag(e);}return false;}function endDrag(e){XGuiSetMultiCookie("splitter",textarea.height());$(document).unbind("mousemove",performDrag).unbind("mouseup",endDrag);textarea.css("opacity",1);textarea.focus();textarea=null;
staticOffset=null;iLastMousePos=0;}function mousePosition(e){return{x:e.clientX+document.documentElement.scrollLeft,y:e.clientY+document.documentElement.scrollTop};}})(jQuery);